@esri/calcite-components 1.0.0-next.371 → 1.0.0-next.375
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/assets/calcite-date-picker/nls/pt-BR.json +31 -0
- package/dist/calcite/assets/calcite-date-picker/nls/pt-PT.json +3 -3
- 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-bc770774.system.entry.js → p-4d88c604.system.entry.js} +1 -1
- 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-b3e034cb.entry.js +5 -0
- package/dist/calcite/p-b78f6de5.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-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 +15 -8
- 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/assets/calcite-date-picker/nls/pt-BR.json +31 -0
- package/dist/collection/components/calcite-date-picker/assets/calcite-date-picker/nls/pt-PT.json +3 -3
- 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-item/calcite-tree-item.js +16 -7
- 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 +14 -7
- package/dist/components/dom.js +13 -10
- package/dist/custom-elements/index.js +165 -88
- 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 +15 -8
- 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/calcite-tree-item/calcite-tree-item.d.ts +2 -0
- package/dist/types/components.d.ts +4 -0
- package/dist/types/utils/dom.d.ts +1 -0
- package/hydrate/index.js +160 -86
- 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-3063b012.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-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-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,9 +3,10 @@
|
|
|
3
3
|
* See https://github.com/Esri/calcite-components/blob/master/LICENSE.md for details.
|
|
4
4
|
*/
|
|
5
5
|
import { Component, Element, Event, h, Listen, Method, Prop, Watch } from "@stencil/core";
|
|
6
|
-
import { getElementProp } from "../../utils/dom";
|
|
6
|
+
import { getElementProp, getSlotted } from "../../utils/dom";
|
|
7
7
|
import { TEXT, CSS } from "./resources";
|
|
8
8
|
import { connectLabel, disconnectLabel, getLabelText } from "../../utils/label";
|
|
9
|
+
import { createObserver } from "../../utils/observers";
|
|
9
10
|
/**
|
|
10
11
|
* @slot - A slot for adding a `calcite-input`.
|
|
11
12
|
*/
|
|
@@ -36,26 +37,31 @@ export class CalciteInlineEditable {
|
|
|
36
37
|
* @default "Save"
|
|
37
38
|
*/
|
|
38
39
|
this.intlConfirmChanges = TEXT.intlConfirmChanges;
|
|
40
|
+
this.mutationObserver = createObserver("mutation", () => this.mutationObserverCallback());
|
|
39
41
|
this.transitionEnd = () => {
|
|
40
42
|
if (!this.editingEnabled && !!this.shouldEmitCancel) {
|
|
41
43
|
this.calciteInlineEditableEditCancel.emit();
|
|
42
44
|
}
|
|
43
45
|
};
|
|
44
46
|
this.enableEditing = () => {
|
|
45
|
-
|
|
47
|
+
var _a, _b;
|
|
48
|
+
this.valuePriorToEditing = (_a = this.inputElement) === null || _a === void 0 ? void 0 : _a.value;
|
|
46
49
|
this.editingEnabled = true;
|
|
47
|
-
this.inputElement.setFocus();
|
|
50
|
+
(_b = this.inputElement) === null || _b === void 0 ? void 0 : _b.setFocus();
|
|
48
51
|
this.calciteInlineEditableEnableEditingChange.emit();
|
|
49
52
|
};
|
|
50
53
|
this.disableEditing = () => {
|
|
51
54
|
this.editingEnabled = false;
|
|
52
55
|
};
|
|
53
56
|
this.cancelEditing = () => {
|
|
54
|
-
this.inputElement
|
|
57
|
+
if (this.inputElement) {
|
|
58
|
+
this.inputElement.value = this.valuePriorToEditing;
|
|
59
|
+
}
|
|
55
60
|
this.disableEditing();
|
|
56
61
|
this.enableEditingButton.setFocus();
|
|
57
62
|
};
|
|
58
63
|
this.escapeKeyHandler = async (e) => {
|
|
64
|
+
var _a;
|
|
59
65
|
if (e.key !== "Escape") {
|
|
60
66
|
if (e.key === "Tab" && this.shouldShowControls) {
|
|
61
67
|
if (!e.shiftKey && e.target === this.inputElement) {
|
|
@@ -65,7 +71,7 @@ export class CalciteInlineEditable {
|
|
|
65
71
|
if (!!e.shiftKey && e.target === this.cancelEditingButton) {
|
|
66
72
|
e.preventDefault();
|
|
67
73
|
e.stopPropagation();
|
|
68
|
-
this.inputElement.setFocus();
|
|
74
|
+
(_a = this.inputElement) === null || _a === void 0 ? void 0 : _a.setFocus();
|
|
69
75
|
}
|
|
70
76
|
}
|
|
71
77
|
return;
|
|
@@ -107,10 +113,14 @@ export class CalciteInlineEditable {
|
|
|
107
113
|
};
|
|
108
114
|
}
|
|
109
115
|
disabledWatcher(disabled) {
|
|
110
|
-
this.inputElement
|
|
116
|
+
if (this.inputElement) {
|
|
117
|
+
this.inputElement.disabled = disabled;
|
|
118
|
+
}
|
|
111
119
|
}
|
|
112
120
|
editingEnabledWatcher(newValue, oldValue) {
|
|
113
|
-
this.inputElement
|
|
121
|
+
if (this.inputElement) {
|
|
122
|
+
this.inputElement.editingEnabled = newValue;
|
|
123
|
+
}
|
|
114
124
|
if (!newValue && !!oldValue) {
|
|
115
125
|
this.shouldEmitCancel = true;
|
|
116
126
|
}
|
|
@@ -121,17 +131,15 @@ export class CalciteInlineEditable {
|
|
|
121
131
|
//
|
|
122
132
|
//--------------------------------------------------------------------------
|
|
123
133
|
connectedCallback() {
|
|
134
|
+
var _a;
|
|
124
135
|
connectLabel(this);
|
|
136
|
+
(_a = this.mutationObserver) === null || _a === void 0 ? void 0 : _a.observe(this.el, { childList: true });
|
|
137
|
+
this.mutationObserverCallback();
|
|
125
138
|
}
|
|
126
139
|
disconnectedCallback() {
|
|
140
|
+
var _a;
|
|
127
141
|
disconnectLabel(this);
|
|
128
|
-
|
|
129
|
-
componentWillLoad() {
|
|
130
|
-
this.inputElement = this.el.querySelector("calcite-input");
|
|
131
|
-
this.inputElement.disabled = this.disabled;
|
|
132
|
-
this.inputElement.label = this.inputElement.label || getLabelText(this);
|
|
133
|
-
this.scale =
|
|
134
|
-
this.scale || this.inputElement.scale || getElementProp(this.el, "scale", undefined);
|
|
142
|
+
(_a = this.mutationObserver) === null || _a === void 0 ? void 0 : _a.disconnect();
|
|
135
143
|
}
|
|
136
144
|
render() {
|
|
137
145
|
return (h("div", { class: CSS.wrapper, onClick: this.enableEditingHandler, onKeyDown: this.escapeKeyHandler, onTransitionEnd: this.transitionEnd },
|
|
@@ -177,9 +185,26 @@ export class CalciteInlineEditable {
|
|
|
177
185
|
// Private Methods
|
|
178
186
|
//
|
|
179
187
|
//--------------------------------------------------------------------------
|
|
188
|
+
mutationObserverCallback() {
|
|
189
|
+
var _a;
|
|
190
|
+
this.updateSlottedInput();
|
|
191
|
+
this.scale =
|
|
192
|
+
this.scale || ((_a = this.inputElement) === null || _a === void 0 ? void 0 : _a.scale) || getElementProp(this.el, "scale", undefined);
|
|
193
|
+
}
|
|
180
194
|
onLabelClick() {
|
|
181
195
|
this.setFocus();
|
|
182
196
|
}
|
|
197
|
+
updateSlottedInput() {
|
|
198
|
+
const inputElement = getSlotted(this.el, {
|
|
199
|
+
matches: "calcite-input"
|
|
200
|
+
});
|
|
201
|
+
this.inputElement = inputElement;
|
|
202
|
+
if (!inputElement) {
|
|
203
|
+
return;
|
|
204
|
+
}
|
|
205
|
+
this.inputElement.disabled = this.disabled;
|
|
206
|
+
this.inputElement.label = this.inputElement.label || getLabelText(this);
|
|
207
|
+
}
|
|
183
208
|
get shouldShowControls() {
|
|
184
209
|
return this.editingEnabled && this.controls;
|
|
185
210
|
}
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
* See https://github.com/Esri/calcite-components/blob/master/LICENSE.md for details.
|
|
4
4
|
*/
|
|
5
5
|
import { Component, Element, Event, h, Host, Method, Prop, State, Watch } from "@stencil/core";
|
|
6
|
-
import { getElementDir, getElementProp, setRequestedIcon } from "../../utils/dom";
|
|
6
|
+
import { getElementDir, getElementProp, getSlotted, setRequestedIcon } from "../../utils/dom";
|
|
7
7
|
import { CSS, INPUT_TYPE_ICONS, SLOTS } from "./resources";
|
|
8
8
|
import { connectLabel, disconnectLabel, getLabelText } from "../../utils/label";
|
|
9
9
|
import { connectForm, disconnectForm, HiddenFormInputSlot } from "../../utils/form";
|
|
@@ -12,6 +12,7 @@ import { numberKeys } from "../../utils/key";
|
|
|
12
12
|
import { isValidNumber, parseNumberString, sanitizeNumberString } from "../../utils/number";
|
|
13
13
|
import { CSS_UTILITY, TEXT } from "../../utils/resources";
|
|
14
14
|
import { decimalPlaces } from "../../utils/math";
|
|
15
|
+
import { createObserver } from "../../utils/observers";
|
|
15
16
|
/**
|
|
16
17
|
* @slot action - A slot for positioning a button next to an input
|
|
17
18
|
*/
|
|
@@ -76,6 +77,7 @@ export class CalciteInput {
|
|
|
76
77
|
this.childElType = "input";
|
|
77
78
|
/** whether the value of the input was changed as a result of user typing or not */
|
|
78
79
|
this.internalValueChange = false;
|
|
80
|
+
this.mutationObserver = createObserver("mutation", () => this.setDisabledAction());
|
|
79
81
|
//--------------------------------------------------------------------------
|
|
80
82
|
//
|
|
81
83
|
// Private Methods
|
|
@@ -114,7 +116,8 @@ export class CalciteInput {
|
|
|
114
116
|
}
|
|
115
117
|
};
|
|
116
118
|
this.inputFocusHandler = (event) => {
|
|
117
|
-
|
|
119
|
+
const slottedActionEl = getSlotted(this.el, "action");
|
|
120
|
+
if (event.target !== slottedActionEl) {
|
|
118
121
|
this.setFocus();
|
|
119
122
|
}
|
|
120
123
|
this.calciteInputFocus.emit({
|
|
@@ -358,6 +361,7 @@ export class CalciteInput {
|
|
|
358
361
|
//
|
|
359
362
|
//--------------------------------------------------------------------------
|
|
360
363
|
connectedCallback() {
|
|
364
|
+
var _a;
|
|
361
365
|
this.scale = getElementProp(this.el, "scale", this.scale);
|
|
362
366
|
this.status = getElementProp(this.el, "status", this.status);
|
|
363
367
|
this.inlineEditableEl = this.el.closest("calcite-inline-editable");
|
|
@@ -374,10 +378,14 @@ export class CalciteInput {
|
|
|
374
378
|
}
|
|
375
379
|
connectLabel(this);
|
|
376
380
|
connectForm(this);
|
|
381
|
+
(_a = this.mutationObserver) === null || _a === void 0 ? void 0 : _a.observe(this.el, { childList: true });
|
|
382
|
+
this.setDisabledAction();
|
|
377
383
|
}
|
|
378
384
|
disconnectedCallback() {
|
|
385
|
+
var _a;
|
|
379
386
|
disconnectLabel(this);
|
|
380
387
|
disconnectForm(this);
|
|
388
|
+
(_a = this.mutationObserver) === null || _a === void 0 ? void 0 : _a.disconnect();
|
|
381
389
|
}
|
|
382
390
|
componentWillLoad() {
|
|
383
391
|
var _a, _b;
|
|
@@ -386,10 +394,6 @@ export class CalciteInput {
|
|
|
386
394
|
this.minString = (_b = this.min) === null || _b === void 0 ? void 0 : _b.toString();
|
|
387
395
|
this.requestedIcon = setRequestedIcon(INPUT_TYPE_ICONS, this.icon, this.type);
|
|
388
396
|
}
|
|
389
|
-
componentDidLoad() {
|
|
390
|
-
this.slottedActionEl = this.el.querySelector("[slot=action]");
|
|
391
|
-
this.setDisabledAction();
|
|
392
|
-
}
|
|
393
397
|
componentShouldUpdate(newValue, oldValue, property) {
|
|
394
398
|
if (this.type === "number" && property === "value" && newValue && !isValidNumber(newValue)) {
|
|
395
399
|
this.setValue({
|
|
@@ -461,10 +465,10 @@ export class CalciteInput {
|
|
|
461
465
|
}
|
|
462
466
|
}
|
|
463
467
|
setDisabledAction() {
|
|
464
|
-
|
|
468
|
+
const slottedActionEl = getSlotted(this.el, "action");
|
|
469
|
+
if (!slottedActionEl) {
|
|
465
470
|
return;
|
|
466
471
|
}
|
|
467
|
-
const slottedActionEl = this.slottedActionEl;
|
|
468
472
|
this.disabled
|
|
469
473
|
? slottedActionEl.setAttribute("disabled", "")
|
|
470
474
|
: slottedActionEl.removeAttribute("disabled");
|
|
@@ -98,7 +98,7 @@ export class CalciteModal {
|
|
|
98
98
|
}
|
|
99
99
|
};
|
|
100
100
|
this.updateFooterVisibility = () => {
|
|
101
|
-
this.hasFooter = !!this.el
|
|
101
|
+
this.hasFooter = !!getSlotted(this.el, [SLOTS.back, SLOTS.primary, SLOTS.secondary]);
|
|
102
102
|
};
|
|
103
103
|
}
|
|
104
104
|
//--------------------------------------------------------------------------
|
|
@@ -66,9 +66,6 @@ export class CalciteNotice {
|
|
|
66
66
|
componentWillLoad() {
|
|
67
67
|
this.requestedIcon = setRequestedIcon(StatusIcons, this.icon, this.color);
|
|
68
68
|
}
|
|
69
|
-
componentDidLoad() {
|
|
70
|
-
this.noticeLinkEl = this.el.querySelector("calcite-link");
|
|
71
|
-
}
|
|
72
69
|
render() {
|
|
73
70
|
const { el } = this;
|
|
74
71
|
const closeButton = (h("button", { "aria-label": this.intlClose, class: CSS.close, onClick: this.close, ref: (el) => (this.closeButton = el) },
|
|
@@ -92,11 +89,12 @@ export class CalciteNotice {
|
|
|
92
89
|
//--------------------------------------------------------------------------
|
|
93
90
|
/** Sets focus on the component. */
|
|
94
91
|
async setFocus() {
|
|
95
|
-
|
|
92
|
+
const noticeLinkEl = this.el.querySelector("calcite-link");
|
|
93
|
+
if (!this.closeButton && !noticeLinkEl) {
|
|
96
94
|
return;
|
|
97
95
|
}
|
|
98
|
-
if (
|
|
99
|
-
|
|
96
|
+
if (noticeLinkEl) {
|
|
97
|
+
noticeLinkEl.setFocus();
|
|
100
98
|
}
|
|
101
99
|
else if (this.closeButton) {
|
|
102
100
|
this.closeButton.focus();
|
|
@@ -110,6 +110,20 @@ export class CalcitePanel {
|
|
|
110
110
|
}
|
|
111
111
|
(_c = this.containerEl) === null || _c === void 0 ? void 0 : _c.focus();
|
|
112
112
|
}
|
|
113
|
+
/** Scrolls panel content to a particular set of coordinates.
|
|
114
|
+
*
|
|
115
|
+
* ```
|
|
116
|
+
* myCalcitePanel.scrollContentTo({
|
|
117
|
+
* left: 0, // Specifies the number of pixels along the X axis to scroll the window or element.
|
|
118
|
+
* top: 0, // Specifies the number of pixels along the Y axis to scroll the window or element
|
|
119
|
+
* behavior: "auto" // Specifies whether the scrolling should animate smoothly (smooth), or happen instantly in a single jump (auto, the default value).
|
|
120
|
+
* });
|
|
121
|
+
* ```
|
|
122
|
+
*/
|
|
123
|
+
async scrollContentTo(options) {
|
|
124
|
+
var _a;
|
|
125
|
+
(_a = this.panelScrollEl) === null || _a === void 0 ? void 0 : _a.scrollTo(options);
|
|
126
|
+
}
|
|
113
127
|
// --------------------------------------------------------------------------
|
|
114
128
|
//
|
|
115
129
|
// Render Methods
|
|
@@ -193,11 +207,11 @@ export class CalcitePanel {
|
|
|
193
207
|
renderContent() {
|
|
194
208
|
const { el } = this;
|
|
195
209
|
const hasFab = getSlotted(el, SLOTS.fab);
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
h("
|
|
210
|
+
const defaultSlotNode = h("slot", { key: "default-slot" });
|
|
211
|
+
const contentWrapperKey = "content-wrapper";
|
|
212
|
+
return hasFab ? (h("div", { class: { [CSS.contentWrapper]: true, [CSS.contentHeight]: true }, key: contentWrapperKey, onScroll: this.panelScrollHandler, ref: (el) => (this.panelScrollEl = el), tabIndex: 0 },
|
|
213
|
+
h("section", { class: CSS.contentContainer }, defaultSlotNode),
|
|
214
|
+
this.renderFab())) : (h("section", { class: { [CSS.contentWrapper]: true, [CSS.contentContainer]: true }, key: contentWrapperKey, onScroll: this.panelScrollHandler, ref: (el) => (this.panelScrollEl = el), tabIndex: 0 }, defaultSlotNode));
|
|
201
215
|
}
|
|
202
216
|
renderFab() {
|
|
203
217
|
return (h("div", { class: CSS.fabContainer },
|
|
@@ -566,6 +580,28 @@ export class CalcitePanel {
|
|
|
566
580
|
"text": "Sets focus on the component.",
|
|
567
581
|
"tags": []
|
|
568
582
|
}
|
|
583
|
+
},
|
|
584
|
+
"scrollContentTo": {
|
|
585
|
+
"complexType": {
|
|
586
|
+
"signature": "(options?: ScrollToOptions) => Promise<void>",
|
|
587
|
+
"parameters": [{
|
|
588
|
+
"tags": [],
|
|
589
|
+
"text": ""
|
|
590
|
+
}],
|
|
591
|
+
"references": {
|
|
592
|
+
"Promise": {
|
|
593
|
+
"location": "global"
|
|
594
|
+
},
|
|
595
|
+
"ScrollToOptions": {
|
|
596
|
+
"location": "global"
|
|
597
|
+
}
|
|
598
|
+
},
|
|
599
|
+
"return": "Promise<void>"
|
|
600
|
+
},
|
|
601
|
+
"docs": {
|
|
602
|
+
"text": "Scrolls panel content to a particular set of coordinates.\n\n```\n myCalcitePanel.scrollContentTo({\n left: 0, // Specifies the number of pixels along the X axis to scroll the window or element.\n top: 0, // Specifies the number of pixels along the Y axis to scroll the window or element\n behavior: \"auto\" // Specifies whether the scrolling should animate smoothly (smooth), or happen instantly in a single jump (auto, the default value).\n });\n```",
|
|
603
|
+
"tags": []
|
|
604
|
+
}
|
|
569
605
|
}
|
|
570
606
|
}; }
|
|
571
607
|
static get elementRef() { return "el"; }
|
|
@@ -129,10 +129,6 @@ export class CalciteRadioButton {
|
|
|
129
129
|
}
|
|
130
130
|
nameChanged() {
|
|
131
131
|
this.checkLastRadioButton();
|
|
132
|
-
const currentValue = this.rootNode.querySelector(`input[name="${this.name}"]:checked`);
|
|
133
|
-
if (!(currentValue === null || currentValue === void 0 ? void 0 : currentValue.value)) {
|
|
134
|
-
this.uncheckAllRadioButtonsInGroup();
|
|
135
|
-
}
|
|
136
132
|
}
|
|
137
133
|
//--------------------------------------------------------------------------
|
|
138
134
|
//
|
|
@@ -3,6 +3,7 @@
|
|
|
3
3
|
* See https://github.com/Esri/calcite-components/blob/master/LICENSE.md for details.
|
|
4
4
|
*/
|
|
5
5
|
import { Component, Host, h, Element, Prop, Watch, Event, Listen } from "@stencil/core";
|
|
6
|
+
import { createObserver } from "../../utils/observers";
|
|
6
7
|
/**
|
|
7
8
|
* @slot - A slot for adding `calcite-radio-button`s.
|
|
8
9
|
*/
|
|
@@ -23,6 +24,12 @@ export class CalciteRadioButtonGroup {
|
|
|
23
24
|
this.required = false;
|
|
24
25
|
/** The scale (size) of the radio button group. */
|
|
25
26
|
this.scale = "m";
|
|
27
|
+
// --------------------------------------------------------------------------
|
|
28
|
+
//
|
|
29
|
+
// Private Properties
|
|
30
|
+
//
|
|
31
|
+
// --------------------------------------------------------------------------
|
|
32
|
+
this.mutationObserver = createObserver("mutation", () => this.passPropsToRadioButtons());
|
|
26
33
|
//--------------------------------------------------------------------------
|
|
27
34
|
//
|
|
28
35
|
// Private Methods
|
|
@@ -59,7 +66,13 @@ export class CalciteRadioButtonGroup {
|
|
|
59
66
|
//
|
|
60
67
|
//--------------------------------------------------------------------------
|
|
61
68
|
connectedCallback() {
|
|
69
|
+
var _a;
|
|
62
70
|
this.passPropsToRadioButtons();
|
|
71
|
+
(_a = this.mutationObserver) === null || _a === void 0 ? void 0 : _a.observe(this.el, { childList: true, subtree: true });
|
|
72
|
+
}
|
|
73
|
+
disconnectedCallback() {
|
|
74
|
+
var _a;
|
|
75
|
+
(_a = this.mutationObserver) === null || _a === void 0 ? void 0 : _a.disconnect();
|
|
63
76
|
}
|
|
64
77
|
//--------------------------------------------------------------------------
|
|
65
78
|
//
|
|
@@ -47,19 +47,21 @@ export class CalciteShell {
|
|
|
47
47
|
return hasHeader ? h("slot", { key: "header", name: SLOTS.header }) : null;
|
|
48
48
|
}
|
|
49
49
|
renderContent() {
|
|
50
|
+
const defaultSlotNode = h("slot", { key: "default-slot" });
|
|
51
|
+
const centerRowSlotNode = h("slot", { key: "center-row-slot", name: SLOTS.centerRow });
|
|
52
|
+
const contentContainerKey = "content-container";
|
|
50
53
|
const content = !!this.contentBehind
|
|
51
54
|
? [
|
|
52
55
|
h("div", { class: {
|
|
53
56
|
[CSS.content]: true,
|
|
54
|
-
[CSS.contentBehind]:
|
|
55
|
-
} },
|
|
56
|
-
|
|
57
|
-
h("slot", { name: SLOTS.centerRow })
|
|
57
|
+
[CSS.contentBehind]: true
|
|
58
|
+
}, key: contentContainerKey }, defaultSlotNode),
|
|
59
|
+
centerRowSlotNode
|
|
58
60
|
]
|
|
59
61
|
: [
|
|
60
|
-
h("div", { class: CSS.content },
|
|
61
|
-
|
|
62
|
-
|
|
62
|
+
h("div", { class: CSS.content, key: contentContainerKey },
|
|
63
|
+
defaultSlotNode,
|
|
64
|
+
centerRowSlotNode)
|
|
63
65
|
];
|
|
64
66
|
return content;
|
|
65
67
|
}
|
|
@@ -83,9 +83,7 @@ export class CalciteSlider {
|
|
|
83
83
|
}
|
|
84
84
|
};
|
|
85
85
|
this.dragEnd = (event) => {
|
|
86
|
-
|
|
87
|
-
document.removeEventListener("pointerup", this.dragEnd);
|
|
88
|
-
document.removeEventListener("pointercancel", this.dragEnd);
|
|
86
|
+
this.removeDragListeners();
|
|
89
87
|
this.focusActiveHandle(event.clientX);
|
|
90
88
|
if (this.lastDragPropValue != this[this.dragProp]) {
|
|
91
89
|
this.emitChange();
|
|
@@ -120,6 +118,7 @@ export class CalciteSlider {
|
|
|
120
118
|
disconnectedCallback() {
|
|
121
119
|
disconnectLabel(this);
|
|
122
120
|
disconnectForm(this);
|
|
121
|
+
this.removeDragListeners();
|
|
123
122
|
}
|
|
124
123
|
componentWillLoad() {
|
|
125
124
|
this.isRange = !!(this.maxValue || this.maxValue === 0);
|
|
@@ -515,6 +514,11 @@ export class CalciteSlider {
|
|
|
515
514
|
emitChange() {
|
|
516
515
|
this.calciteSliderChange.emit();
|
|
517
516
|
}
|
|
517
|
+
removeDragListeners() {
|
|
518
|
+
document.removeEventListener("pointermove", this.dragUpdate);
|
|
519
|
+
document.removeEventListener("pointerup", this.dragEnd);
|
|
520
|
+
document.removeEventListener("pointercancel", this.dragEnd);
|
|
521
|
+
}
|
|
518
522
|
/**
|
|
519
523
|
* Set the prop value if changed at the component level
|
|
520
524
|
* @param valueProp
|
|
@@ -34,7 +34,7 @@ export class CalciteTreeItem {
|
|
|
34
34
|
this.expanded = !this.expanded;
|
|
35
35
|
if (this.selectionMode !== TreeSelectionMode.Ancestors) {
|
|
36
36
|
this.calciteTreeItemSelect.emit({
|
|
37
|
-
modifyCurrentSelection:
|
|
37
|
+
modifyCurrentSelection: this.isSelectionMultiLike,
|
|
38
38
|
forceToggle: true
|
|
39
39
|
});
|
|
40
40
|
}
|
|
@@ -68,6 +68,11 @@ export class CalciteTreeItem {
|
|
|
68
68
|
expandedHandler(newValue) {
|
|
69
69
|
this.updateParentIsExpanded(this.el, newValue);
|
|
70
70
|
}
|
|
71
|
+
getselectionMode() {
|
|
72
|
+
this.isSelectionMultiLike =
|
|
73
|
+
this.selectionMode === TreeSelectionMode.Multi ||
|
|
74
|
+
this.selectionMode === TreeSelectionMode.MultiChildren;
|
|
75
|
+
}
|
|
71
76
|
//--------------------------------------------------------------------------
|
|
72
77
|
//
|
|
73
78
|
// Lifecycle
|
|
@@ -119,9 +124,10 @@ export class CalciteTreeItem {
|
|
|
119
124
|
[CSS.chevron]: true,
|
|
120
125
|
[CSS_UTILITY.rtl]: rtl
|
|
121
126
|
}, "data-test-id": "icon", icon: ICONS.chevronRight, onClick: this.iconClickHandler, scale: "s" })) : null;
|
|
122
|
-
const
|
|
127
|
+
const defaultSlotNode = h("slot", { key: "default-slot" });
|
|
128
|
+
const checkbox = this.selectionMode === TreeSelectionMode.Ancestors ? (h("label", { class: CSS.checkboxLabel, key: "checkbox-label" },
|
|
123
129
|
h("calcite-checkbox", { checked: this.selected, class: CSS.checkbox, "data-test-id": "checkbox", indeterminate: this.hasChildren && this.indeterminate, scale: this.scale, tabIndex: -1 }),
|
|
124
|
-
|
|
130
|
+
defaultSlotNode)) : null;
|
|
125
131
|
const selectedIcon = showBulletPoint
|
|
126
132
|
? ICONS.bulletPoint
|
|
127
133
|
: showCheckmark
|
|
@@ -140,7 +146,7 @@ export class CalciteTreeItem {
|
|
|
140
146
|
}, "data-selection-mode": this.selectionMode, ref: (el) => (this.defaultSlotWrapper = el) },
|
|
141
147
|
chevron,
|
|
142
148
|
bulletOrCheckIcon,
|
|
143
|
-
checkbox ? checkbox :
|
|
149
|
+
checkbox ? checkbox : defaultSlotNode),
|
|
144
150
|
h("div", { class: {
|
|
145
151
|
[CSS.childrenContainer]: true,
|
|
146
152
|
[CSS_UTILITY.rtl]: rtl
|
|
@@ -161,7 +167,7 @@ export class CalciteTreeItem {
|
|
|
161
167
|
window.open(link.href, target);
|
|
162
168
|
}
|
|
163
169
|
this.calciteTreeItemSelect.emit({
|
|
164
|
-
modifyCurrentSelection:
|
|
170
|
+
modifyCurrentSelection: this.selectionMode === TreeSelectionMode.Ancestors || this.isSelectionMultiLike,
|
|
165
171
|
forceToggle: false
|
|
166
172
|
});
|
|
167
173
|
}
|
|
@@ -170,7 +176,7 @@ export class CalciteTreeItem {
|
|
|
170
176
|
switch (e.key) {
|
|
171
177
|
case " ":
|
|
172
178
|
this.calciteTreeItemSelect.emit({
|
|
173
|
-
modifyCurrentSelection:
|
|
179
|
+
modifyCurrentSelection: this.isSelectionMultiLike,
|
|
174
180
|
forceToggle: false
|
|
175
181
|
});
|
|
176
182
|
e.preventDefault();
|
|
@@ -185,7 +191,7 @@ export class CalciteTreeItem {
|
|
|
185
191
|
}
|
|
186
192
|
else {
|
|
187
193
|
this.calciteTreeItemSelect.emit({
|
|
188
|
-
modifyCurrentSelection:
|
|
194
|
+
modifyCurrentSelection: this.isSelectionMultiLike,
|
|
189
195
|
forceToggle: false
|
|
190
196
|
});
|
|
191
197
|
}
|
|
@@ -504,6 +510,9 @@ export class CalciteTreeItem {
|
|
|
504
510
|
static get watchers() { return [{
|
|
505
511
|
"propName": "expanded",
|
|
506
512
|
"methodName": "expandedHandler"
|
|
513
|
+
}, {
|
|
514
|
+
"propName": "selectionMode",
|
|
515
|
+
"methodName": "getselectionMode"
|
|
507
516
|
}]; }
|
|
508
517
|
static get listeners() { return [{
|
|
509
518
|
"name": "click",
|
|
@@ -109,9 +109,9 @@ export async function focusElement(el) {
|
|
|
109
109
|
}
|
|
110
110
|
return isCalciteFocusable(el) ? el.setFocus() : el.focus();
|
|
111
111
|
}
|
|
112
|
-
const defaultSlotSelector = "
|
|
112
|
+
const defaultSlotSelector = ":not([slot])";
|
|
113
113
|
export function getSlotted(element, slotName, options) {
|
|
114
|
-
if (!Array.isArray(slotName) && typeof slotName !== "string") {
|
|
114
|
+
if (slotName && !Array.isArray(slotName) && typeof slotName !== "string") {
|
|
115
115
|
options = slotName;
|
|
116
116
|
slotName = null;
|
|
117
117
|
}
|
|
@@ -125,12 +125,15 @@ export function getSlotted(element, slotName, options) {
|
|
|
125
125
|
}
|
|
126
126
|
return querySingle(element, slotSelector, options);
|
|
127
127
|
}
|
|
128
|
+
function getDirectChildren(el, selector) {
|
|
129
|
+
return el ? Array.from(el.children || []).filter((child) => child === null || child === void 0 ? void 0 : child.matches(selector)) : [];
|
|
130
|
+
}
|
|
128
131
|
function queryMultiple(element, slotSelector, options) {
|
|
129
|
-
let matches =
|
|
132
|
+
let matches = slotSelector === defaultSlotSelector
|
|
133
|
+
? getDirectChildren(element, defaultSlotSelector)
|
|
134
|
+
: Array.from(element.querySelectorAll(slotSelector));
|
|
130
135
|
matches = options && options.direct === false ? matches : matches.filter((el) => el.parentElement === element);
|
|
131
|
-
|
|
132
|
-
matches = matches.filter((match) => match === null || match === void 0 ? void 0 : match.assignedSlot);
|
|
133
|
-
}
|
|
136
|
+
matches = (options === null || options === void 0 ? void 0 : options.matches) ? matches.filter((el) => el === null || el === void 0 ? void 0 : el.matches(options.matches)) : matches;
|
|
134
137
|
const selector = options === null || options === void 0 ? void 0 : options.selector;
|
|
135
138
|
return selector
|
|
136
139
|
? matches
|
|
@@ -140,11 +143,11 @@ function queryMultiple(element, slotSelector, options) {
|
|
|
140
143
|
: matches;
|
|
141
144
|
}
|
|
142
145
|
function querySingle(element, slotSelector, options) {
|
|
143
|
-
let match =
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
}
|
|
146
|
+
let match = slotSelector === defaultSlotSelector
|
|
147
|
+
? getDirectChildren(element, defaultSlotSelector)[0] || null
|
|
148
|
+
: element.querySelector(slotSelector);
|
|
147
149
|
match = options && options.direct === false ? match : (match === null || match === void 0 ? void 0 : match.parentElement) === element ? match : null;
|
|
150
|
+
match = (options === null || options === void 0 ? void 0 : options.matches) ? ((match === null || match === void 0 ? void 0 : match.matches(options.matches)) ? match : null) : match;
|
|
148
151
|
const selector = options === null || options === void 0 ? void 0 : options.selector;
|
|
149
152
|
return selector ? match === null || match === void 0 ? void 0 : match.querySelector(selector) : match;
|
|
150
153
|
}
|
|
@@ -6,7 +6,7 @@ import { HTMLElement, createEvent, h, Host, proxyCustomElement } from '@stencil/
|
|
|
6
6
|
import { g as getElementProp, a as getElementDir, C as CSS_UTILITY } from './dom.js';
|
|
7
7
|
import { d as defineCustomElement$2 } from './calcite-icon2.js';
|
|
8
8
|
|
|
9
|
-
const calciteAccordionItemCss = "@-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}.icon-position--end,.icon-position--start{--calcite-accordion-item-icon-rotation:calc(90deg * -1);--calcite-accordion-item-active-icon-rotation:0deg;--calcite-accordion-item-icon-rotation-rtl:90deg;--calcite-accordion-item-active-icon-rotation-rtl:0deg}.icon-position--start{--calcite-accordion-item-flex-direction:row-reverse;--calcite-accordion-item-icon-spacing-start:0;--calcite-accordion-item-icon-spacing-end:var(--calcite-accordion-icon-margin)}.icon-position--end{--calcite-accordion-item-flex-direction:row;--calcite-accordion-item-icon-spacing-start:var(--calcite-accordion-icon-margin);--calcite-accordion-item-icon-spacing-end:0}.icon-position--end:not(.icon-type--plus-minus){--calcite-accordion-item-icon-rotation:0deg;--calcite-accordion-item-active-icon-rotation:180deg;--calcite-accordion-item-icon-rotation-rtl:0deg;--calcite-accordion-item-active-icon-rotation-rtl:calc(180deg * -1)}:host{
|
|
9
|
+
const calciteAccordionItemCss = "@-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}.icon-position--end,.icon-position--start{--calcite-accordion-item-icon-rotation:calc(90deg * -1);--calcite-accordion-item-active-icon-rotation:0deg;--calcite-accordion-item-icon-rotation-rtl:90deg;--calcite-accordion-item-active-icon-rotation-rtl:0deg}.icon-position--start{--calcite-accordion-item-flex-direction:row-reverse;--calcite-accordion-item-icon-spacing-start:0;--calcite-accordion-item-icon-spacing-end:var(--calcite-accordion-icon-margin)}.icon-position--end{--calcite-accordion-item-flex-direction:row;--calcite-accordion-item-icon-spacing-start:var(--calcite-accordion-icon-margin);--calcite-accordion-item-icon-spacing-end:0}.icon-position--end:not(.icon-type--plus-minus){--calcite-accordion-item-icon-rotation:0deg;--calcite-accordion-item-active-icon-rotation:180deg;--calcite-accordion-item-icon-rotation-rtl:0deg;--calcite-accordion-item-active-icon-rotation-rtl:calc(180deg * -1)}:host{position:relative;display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;color:var(--calcite-ui-text-3);-webkit-text-decoration-line:none;text-decoration-line:none;outline:2px solid transparent;outline-offset:2px;background-color:var(--calcite-accordion-item-background, var(--calcite-ui-foreground-1))}:host .accordion-item-header{outline-offset:0;outline-color:transparent;-webkit-transition:outline-offset 100ms ease-in-out, outline-color 100ms ease-in-out;transition:outline-offset 100ms ease-in-out, outline-color 100ms ease-in-out}:host(:focus) .accordion-item-header{outline:2px solid var(--calcite-ui-brand);outline-offset:-2px}:host([active]){color:var(--calcite-ui-text-1)}:host([active]) .accordion-item-content{display:block;color:var(--calcite-ui-text-1)}:host([active]) .accordion-item-header{border-bottom-color:transparent}:host .accordion-item-header{display:-ms-flexbox;display:flex;cursor:pointer;-ms-flex-align:center;align-items:center;-ms-flex-direction:var(--calcite-accordion-item-flex-direction);flex-direction:var(--calcite-accordion-item-flex-direction)}:host .accordion-item-icon{position:relative;margin:0px;display:-ms-inline-flexbox;display:inline-flex;color:var(--calcite-ui-text-3);-webkit-transition-duration:150ms;transition-duration:150ms;-webkit-transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);-webkit-margin-end:var(--calcite-accordion-item-icon-spacing-start);margin-inline-end:var(--calcite-accordion-item-icon-spacing-start);-webkit-margin-start:var(--calcite-accordion-item-icon-spacing-end);margin-inline-start:var(--calcite-accordion-item-icon-spacing-end)}:host .accordion-item-content,:host .accordion-item-header{padding:var(--calcite-accordion-item-padding);border-bottom:1px solid var(--calcite-accordion-item-border, var(--calcite-ui-border-2))}:host .accordion-item-header *{display:-ms-inline-flexbox;display:inline-flex;-ms-flex-align:center;align-items:center;-webkit-transition-duration:150ms;transition-duration:150ms;-webkit-transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1)}:host .accordion-item-content{display:none;padding-top:0px;color:var(--calcite-ui-text-3);text-align:initial}:host .accordion-item-expand-icon{color:var(--calcite-ui-text-3);-webkit-margin-start:var(--calcite-accordion-item-icon-spacing-start);margin-inline-start:var(--calcite-accordion-item-icon-spacing-start);-webkit-margin-end:var(--calcite-accordion-item-icon-spacing-end);margin-inline-end:var(--calcite-accordion-item-icon-spacing-end);-webkit-transform:rotate(var(--calcite-accordion-item-icon-rotation));transform:rotate(var(--calcite-accordion-item-icon-rotation))}.calcite--rtl .accordion-item-expand-icon{-webkit-transform:rotate(var(--calcite-accordion-item-icon-rotation-rtl));transform:rotate(var(--calcite-accordion-item-icon-rotation-rtl))}:host([active]) .accordion-item-expand-icon{color:var(--calcite-ui-text-1);-webkit-transform:rotate(var(--calcite-accordion-item-active-icon-rotation));transform:rotate(var(--calcite-accordion-item-active-icon-rotation))}:host([active]) .calcite--rtl .accordion-item-expand-icon{-webkit-transform:rotate(var(--calcite-accordion-item-active-icon-rotation-rtl));transform:rotate(var(--calcite-accordion-item-active-icon-rotation-rtl))}:host .accordion-item-header-text{margin-top:0px;margin-bottom:0px;-ms-flex-positive:1;flex-grow:1;-ms-flex-direction:column;flex-direction:column;padding-top:0px;padding-bottom:0px;text-align:initial;-webkit-margin-end:auto;margin-inline-end:auto}:host .accordion-item-title,:host .accordion-item-subtitle{display:-ms-flexbox;display:flex;width:100%}:host .accordion-item-title{font-weight:var(--calcite-font-weight-medium);color:var(--calcite-ui-text-2)}:host .accordion-item-subtitle{margin-top:0.25rem;color:var(--calcite-ui-text-3)}:host(:focus) .accordion-item-title,:host(:hover) .accordion-item-title{color:var(--calcite-ui-text-1)}:host(:focus) .accordion-item-icon,:host(:hover) .accordion-item-icon{color:var(--calcite-ui-text-1)}:host(:focus) .accordion-item-expand-icon,:host(:hover) .accordion-item-expand-icon{color:var(--calcite-ui-text-1)}:host(:focus) .accordion-item-subtitle,:host(:hover) .accordion-item-subtitle{color:var(--calcite-ui-text-2)}:host(:focus) .accordion-item-title,:host(:active) .accordion-item-title,:host([active]) .accordion-item-title{color:var(--calcite-ui-text-1)}:host(:focus) .accordion-item-icon,:host(:active) .accordion-item-icon,:host([active]) .accordion-item-icon{color:var(--calcite-ui-text-1)}:host(:focus) .accordion-item-expand-icon,:host(:active) .accordion-item-expand-icon,:host([active]) .accordion-item-expand-icon{color:var(--calcite-ui-text-1)}:host(:focus) .accordion-item-subtitle,:host(:active) .accordion-item-subtitle,:host([active]) .accordion-item-subtitle{color:var(--calcite-ui-text-2)}";
|
|
10
10
|
|
|
11
11
|
let CalciteAccordionItem$1 = class extends HTMLElement {
|
|
12
12
|
constructor() {
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
*/
|
|
5
5
|
import { HTMLElement, createEvent, h, proxyCustomElement } from '@stencil/core/internal/client';
|
|
6
6
|
|
|
7
|
-
const calciteAccordionCss = "@-webkit-keyframes in{0%{opacity:0}100%{opacity:1}}@keyframes in{0%{opacity:0}100%{opacity:1}}@-webkit-keyframes in-down{0%{opacity:0;-webkit-transform:translate3D(0, -5px, 0);transform:translate3D(0, -5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@keyframes in-down{0%{opacity:0;-webkit-transform:translate3D(0, -5px, 0);transform:translate3D(0, -5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@-webkit-keyframes in-up{0%{opacity:0;-webkit-transform:translate3D(0, 5px, 0);transform:translate3D(0, 5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@keyframes in-up{0%{opacity:0;-webkit-transform:translate3D(0, 5px, 0);transform:translate3D(0, 5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@-webkit-keyframes in-scale{0%{opacity:0;-webkit-transform:scale3D(0.95, 0.95, 1);transform:scale3D(0.95, 0.95, 1)}100%{opacity:1;-webkit-transform:scale3D(1, 1, 1);transform:scale3D(1, 1, 1)}}@keyframes in-scale{0%{opacity:0;-webkit-transform:scale3D(0.95, 0.95, 1);transform:scale3D(0.95, 0.95, 1)}100%{opacity:1;-webkit-transform:scale3D(1, 1, 1);transform:scale3D(1, 1, 1)}}:root{--calcite-animation-timing:calc(150ms * var(--calcite-internal-duration-factor));--calcite-internal-duration-factor:var(--calcite-duration-factor, 1);--calcite-internal-animation-timing-fast:calc(100ms * var(--calcite-internal-duration-factor));--calcite-internal-animation-timing-medium:calc(200ms * var(--calcite-internal-duration-factor));--calcite-internal-animation-timing-slow:calc(300ms * var(--calcite-internal-duration-factor))}.calcite-animate{opacity:0;-webkit-animation-fill-mode:both;animation-fill-mode:both;-webkit-animation-duration:var(--calcite-animation-timing);animation-duration:var(--calcite-animation-timing)}.calcite-animate__in{-webkit-animation-name:in;animation-name:in}.calcite-animate__in-down{-webkit-animation-name:in-down;animation-name:in-down}.calcite-animate__in-up{-webkit-animation-name:in-up;animation-name:in-up}.calcite-animate__in-scale{-webkit-animation-name:in-scale;animation-name:in-scale}:root{--calcite-popper-transition:var(--calcite-animation-timing)}:host([hidden]){display:none}:host([scale=s]){--calcite-accordion-item-spacing-unit:0.25rem;--calcite-accordion-icon-margin:0.5rem;--calcite-accordion-item-padding:var(--calcite-accordion-item-spacing-unit) 0.5rem;font-size:var(--calcite-font-size--2);line-height:1rem}:host([scale=m]){--calcite-accordion-item-spacing-unit:0.5rem;--calcite-accordion-icon-margin:0.75rem;--calcite-accordion-item-padding:var(--calcite-accordion-item-spacing-unit) 0.75rem;font-size:var(--calcite-font-size--1);line-height:1rem}:host([scale=l]){--calcite-accordion-item-spacing-unit:0.75rem;--calcite-accordion-icon-margin:1rem;--calcite-accordion-item-padding:var(--calcite-accordion-item-spacing-unit) 1rem;font-size:var(--calcite-font-size-0);line-height:1.25rem}:host{position:relative;display:block;max-width:100%;border-width:1px;border-bottom-width:0px;border-style:solid;border-color:var(--calcite-ui-border-2);line-height:1.5rem;--calcite-accordion-item-border:var(--calcite-ui-border-2);--calcite-accordion-item-background:var(--calcite-ui-foreground-1)}:
|
|
7
|
+
const calciteAccordionCss = "@-webkit-keyframes in{0%{opacity:0}100%{opacity:1}}@keyframes in{0%{opacity:0}100%{opacity:1}}@-webkit-keyframes in-down{0%{opacity:0;-webkit-transform:translate3D(0, -5px, 0);transform:translate3D(0, -5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@keyframes in-down{0%{opacity:0;-webkit-transform:translate3D(0, -5px, 0);transform:translate3D(0, -5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@-webkit-keyframes in-up{0%{opacity:0;-webkit-transform:translate3D(0, 5px, 0);transform:translate3D(0, 5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@keyframes in-up{0%{opacity:0;-webkit-transform:translate3D(0, 5px, 0);transform:translate3D(0, 5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@-webkit-keyframes in-scale{0%{opacity:0;-webkit-transform:scale3D(0.95, 0.95, 1);transform:scale3D(0.95, 0.95, 1)}100%{opacity:1;-webkit-transform:scale3D(1, 1, 1);transform:scale3D(1, 1, 1)}}@keyframes in-scale{0%{opacity:0;-webkit-transform:scale3D(0.95, 0.95, 1);transform:scale3D(0.95, 0.95, 1)}100%{opacity:1;-webkit-transform:scale3D(1, 1, 1);transform:scale3D(1, 1, 1)}}:root{--calcite-animation-timing:calc(150ms * var(--calcite-internal-duration-factor));--calcite-internal-duration-factor:var(--calcite-duration-factor, 1);--calcite-internal-animation-timing-fast:calc(100ms * var(--calcite-internal-duration-factor));--calcite-internal-animation-timing-medium:calc(200ms * var(--calcite-internal-duration-factor));--calcite-internal-animation-timing-slow:calc(300ms * var(--calcite-internal-duration-factor))}.calcite-animate{opacity:0;-webkit-animation-fill-mode:both;animation-fill-mode:both;-webkit-animation-duration:var(--calcite-animation-timing);animation-duration:var(--calcite-animation-timing)}.calcite-animate__in{-webkit-animation-name:in;animation-name:in}.calcite-animate__in-down{-webkit-animation-name:in-down;animation-name:in-down}.calcite-animate__in-up{-webkit-animation-name:in-up;animation-name:in-up}.calcite-animate__in-scale{-webkit-animation-name:in-scale;animation-name:in-scale}:root{--calcite-popper-transition:var(--calcite-animation-timing)}:host([hidden]){display:none}:host([scale=s]){--calcite-accordion-item-spacing-unit:0.25rem;--calcite-accordion-icon-margin:0.5rem;--calcite-accordion-item-padding:var(--calcite-accordion-item-spacing-unit) 0.5rem;font-size:var(--calcite-font-size--2);line-height:1rem}:host([scale=m]){--calcite-accordion-item-spacing-unit:0.5rem;--calcite-accordion-icon-margin:0.75rem;--calcite-accordion-item-padding:var(--calcite-accordion-item-spacing-unit) 0.75rem;font-size:var(--calcite-font-size--1);line-height:1rem}:host([scale=l]){--calcite-accordion-item-spacing-unit:0.75rem;--calcite-accordion-icon-margin:1rem;--calcite-accordion-item-padding:var(--calcite-accordion-item-spacing-unit) 1rem;font-size:var(--calcite-font-size-0);line-height:1.25rem}:host{position:relative;display:block;max-width:100%;border-width:1px;border-bottom-width:0px;border-style:solid;border-color:var(--calcite-ui-border-2);line-height:1.5rem;--calcite-accordion-item-border:var(--calcite-ui-border-2);--calcite-accordion-item-background:var(--calcite-ui-foreground-1)}.accordion--transparent{border-color:transparent;--calcite-accordion-item-border:transparent;--calcite-accordion-item-background:transparent}.accordion--minimal{--calcite-accordion-item-padding:var(--calcite-accordion-item-spacing-unit) 0;border-color:transparent}";
|
|
8
8
|
|
|
9
9
|
let CalciteAccordion$1 = class extends HTMLElement {
|
|
10
10
|
constructor() {
|
|
@@ -51,7 +51,10 @@ let CalciteAccordion$1 = class extends HTMLElement {
|
|
|
51
51
|
}
|
|
52
52
|
}
|
|
53
53
|
render() {
|
|
54
|
-
return h("
|
|
54
|
+
return (h("div", { class: {
|
|
55
|
+
"accordion--transparent": this.appearance === "transparent",
|
|
56
|
+
"accordion--minimal": this.appearance === "minimal"
|
|
57
|
+
} }, h("slot", null)));
|
|
55
58
|
}
|
|
56
59
|
//--------------------------------------------------------------------------
|
|
57
60
|
//
|
|
@@ -144,10 +144,7 @@ let CalciteActionMenu = class extends HTMLElement {
|
|
|
144
144
|
};
|
|
145
145
|
this.getActions = () => {
|
|
146
146
|
const { el } = this;
|
|
147
|
-
const
|
|
148
|
-
const actionElements = assignedActions.length
|
|
149
|
-
? assignedActions
|
|
150
|
-
: Array.from(el.querySelectorAll("calcite-action:not([slot=trigger])"));
|
|
147
|
+
const actionElements = getSlotted(el, { all: true, matches: "calcite-action" });
|
|
151
148
|
this.updateActions(actionElements);
|
|
152
149
|
this.actionElements = actionElements;
|
|
153
150
|
this.connectMenuButtonEl();
|