@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
|
@@ -8,9 +8,9 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
|
8
8
|
|
|
9
9
|
const index = require('./index-6b5d2de5.js');
|
|
10
10
|
const guid = require('./guid-b270f0db.js');
|
|
11
|
-
const form = require('./form-
|
|
12
|
-
const label = require('./label-
|
|
13
|
-
require('./dom-
|
|
11
|
+
const form = require('./form-237cf392.js');
|
|
12
|
+
const label = require('./label-6b18ca08.js');
|
|
13
|
+
require('./dom-f3df220d.js');
|
|
14
14
|
|
|
15
15
|
const calciteCheckboxCss = "@-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-checkbox-size:0.75rem}:host([scale=m]){--calcite-checkbox-size:var(--calcite-font-size--1)}:host([scale=l]){--calcite-checkbox-size:1rem}:host{position:relative;display:-ms-inline-flexbox;display:inline-flex;cursor:pointer;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;-webkit-tap-highlight-color:transparent}:host .check-svg{pointer-events:none;-webkit-box-sizing:border-box;box-sizing:border-box;display:block;background-color:var(--calcite-ui-foreground-1);fill:currentColor;stroke:currentColor;stroke-width:1;-webkit-transition-property:all;transition-property:all;-webkit-transition-duration:150ms;transition-duration:150ms;-webkit-transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);overflow:hidden;width:var(--calcite-checkbox-size);height:var(--calcite-checkbox-size);-webkit-box-shadow:inset 0 0 0 1px var(--calcite-ui-border-input);box-shadow:inset 0 0 0 1px var(--calcite-ui-border-input);color:var(--calcite-ui-background)}:host([checked]) .check-svg,:host([indeterminate]) .check-svg{background-color:var(--calcite-ui-brand);-webkit-box-shadow:inset 0 0 0 1px var(--calcite-ui-brand);box-shadow:inset 0 0 0 1px var(--calcite-ui-brand)}:host([hovered]) .toggle .check-svg,:host .toggle:hover .check-svg{-webkit-box-shadow:inset 0 0 0 2px var(--calcite-ui-brand);box-shadow:inset 0 0 0 2px var(--calcite-ui-brand)}:host .toggle:focus .check-svg,:host .toggle:active .check-svg{-webkit-box-shadow:inset 0 0 0 1px var(--calcite-ui-brand), 0 0 0 2px var(--calcite-ui-foreground-1), 0 0 0 4px var(--calcite-ui-brand);box-shadow:inset 0 0 0 1px var(--calcite-ui-brand), 0 0 0 2px var(--calcite-ui-foreground-1), 0 0 0 4px var(--calcite-ui-brand);-webkit-transition:var(--calcite-animation-timing);transition:var(--calcite-animation-timing)}:host([disabled]){pointer-events:none;cursor:default;opacity:var(--calcite-ui-opacity-disabled)}::slotted(input[slot=hidden-form-input]){bottom:0 !important;left:0 !important;margin:0 !important;opacity:0 !important;outline:none !important;padding:0 !important;position:absolute !important;right:0 !important;top:0 !important;-webkit-transform:none !important;transform:none !important;-webkit-appearance:none !important;z-index:-1 !important}";
|
|
16
16
|
|
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
8
8
|
|
|
9
9
|
const index = require('./index-6b5d2de5.js');
|
|
10
|
-
const dom = require('./dom-
|
|
10
|
+
const dom = require('./dom-f3df220d.js');
|
|
11
11
|
const guid = require('./guid-b270f0db.js');
|
|
12
12
|
const conditionalSlot = require('./conditionalSlot-92505fba.js');
|
|
13
13
|
require('./observers-79bfb8bc.js');
|
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
8
8
|
|
|
9
9
|
const index = require('./index-6b5d2de5.js');
|
|
10
|
-
const dom = require('./dom-
|
|
10
|
+
const dom = require('./dom-f3df220d.js');
|
|
11
11
|
const utils = require('./utils-55d67711.js');
|
|
12
12
|
const math = require('./math-145c80e2.js');
|
|
13
13
|
const debounce = require('./debounce-95979061.js');
|
|
@@ -9,12 +9,13 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
|
9
9
|
const index = require('./index-6b5d2de5.js');
|
|
10
10
|
const debounce = require('./debounce-95979061.js');
|
|
11
11
|
const forIn = require('./forIn-a5d553af.js');
|
|
12
|
-
const popper = require('./popper-
|
|
12
|
+
const popper = require('./popper-13a2bb46.js');
|
|
13
13
|
const guid = require('./guid-b270f0db.js');
|
|
14
|
-
const dom = require('./dom-
|
|
15
|
-
const label = require('./label-
|
|
16
|
-
const form = require('./form-
|
|
14
|
+
const dom = require('./dom-f3df220d.js');
|
|
15
|
+
const label = require('./label-6b18ca08.js');
|
|
16
|
+
const form = require('./form-237cf392.js');
|
|
17
17
|
const observers = require('./observers-79bfb8bc.js');
|
|
18
|
+
const conditionalSlot = require('./conditionalSlot-92505fba.js');
|
|
18
19
|
|
|
19
20
|
/**
|
|
20
21
|
* A specialized version of `_.map` for arrays without support for iteratee
|
|
@@ -744,7 +745,6 @@ let CalciteCombobox = class {
|
|
|
744
745
|
const item = document.createElement(ComboboxItem);
|
|
745
746
|
item.value = value;
|
|
746
747
|
item.textLabel = value;
|
|
747
|
-
item.guid = `${chipUidPrefix}${guid.guid()}`;
|
|
748
748
|
item.selected = true;
|
|
749
749
|
this.el.appendChild(item);
|
|
750
750
|
this.resetText();
|
|
@@ -794,7 +794,9 @@ let CalciteCombobox = class {
|
|
|
794
794
|
focusChip() {
|
|
795
795
|
var _a;
|
|
796
796
|
const guid = (_a = this.selectedItems[this.activeChipIndex]) === null || _a === void 0 ? void 0 : _a.guid;
|
|
797
|
-
const chip =
|
|
797
|
+
const chip = guid
|
|
798
|
+
? this.referenceEl.querySelector(`#${chipUidPrefix}${guid}`)
|
|
799
|
+
: null;
|
|
798
800
|
chip === null || chip === void 0 ? void 0 : chip.setFocus();
|
|
799
801
|
}
|
|
800
802
|
shiftActiveItemIndex(delta) {
|
|
@@ -849,7 +851,7 @@ let CalciteCombobox = class {
|
|
|
849
851
|
const ancestors = [...getItemAncestors(item)].reverse();
|
|
850
852
|
const pathLabel = [...ancestors, item].map((el) => el.textLabel);
|
|
851
853
|
const label = selectionMode !== "ancestors" ? item.textLabel : pathLabel.join(" / ");
|
|
852
|
-
return (index.h("calcite-chip", { class: chipClasses, dismissLabel: intlRemoveTag, dismissible: true, icon: item.icon, id: `${chipUidPrefix}${item.guid}
|
|
854
|
+
return (index.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));
|
|
853
855
|
});
|
|
854
856
|
}
|
|
855
857
|
renderInput() {
|
|
@@ -872,7 +874,7 @@ let CalciteCombobox = class {
|
|
|
872
874
|
}, 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" })));
|
|
873
875
|
}
|
|
874
876
|
renderListBoxOptions() {
|
|
875
|
-
return this.visibleItems.map((item) => (index.h("li", { "aria-selected": (!!item.selected).toString(), id: `${itemUidPrefix}${item.guid}
|
|
877
|
+
return this.visibleItems.map((item) => (index.h("li", { "aria-selected": (!!item.selected).toString(), id: item.guid ? `${itemUidPrefix}${item.guid}` : null, role: "option", tabindex: "-1" }, item.textLabel)));
|
|
876
878
|
}
|
|
877
879
|
renderPopperContainer() {
|
|
878
880
|
const { active, maxScrollerHeight, setMenuEl, setListContainerEl, hideList, open } = this;
|
|
@@ -972,9 +974,10 @@ let CalciteComboboxItem = class {
|
|
|
972
974
|
connectedCallback() {
|
|
973
975
|
this.ancestors = getAncestors(this.el);
|
|
974
976
|
this.scale = dom.getElementProp(this.el, "scale", this.scale);
|
|
977
|
+
conditionalSlot.connectConditionalSlotComponent(this);
|
|
975
978
|
}
|
|
976
|
-
|
|
977
|
-
|
|
979
|
+
disconnectedCallback() {
|
|
980
|
+
conditionalSlot.disconnectConditionalSlotComponent(this);
|
|
978
981
|
}
|
|
979
982
|
// --------------------------------------------------------------------------
|
|
980
983
|
//
|
|
@@ -1014,10 +1017,10 @@ let CalciteComboboxItem = class {
|
|
|
1014
1017
|
}, icon: icon || iconPath, scale: "s" }));
|
|
1015
1018
|
}
|
|
1016
1019
|
renderChildren() {
|
|
1017
|
-
if (
|
|
1018
|
-
return null;
|
|
1020
|
+
if (dom.getSlotted(this.el)) {
|
|
1021
|
+
return (index.h("ul", { key: "default-slot-container" }, index.h("slot", null)));
|
|
1019
1022
|
}
|
|
1020
|
-
return
|
|
1023
|
+
return null;
|
|
1021
1024
|
}
|
|
1022
1025
|
render() {
|
|
1023
1026
|
const isSingleSelect = dom.getElementProp(this.el, "selection-mode", "multi") === "single";
|
|
@@ -7,8 +7,8 @@
|
|
|
7
7
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
8
8
|
|
|
9
9
|
const index = require('./index-6b5d2de5.js');
|
|
10
|
-
const resources = require('./resources-
|
|
11
|
-
const dom = require('./dom-
|
|
10
|
+
const resources = require('./resources-f70fb01b.js');
|
|
11
|
+
const dom = require('./dom-f3df220d.js');
|
|
12
12
|
const CalciteHeading = require('./CalciteHeading-112c19f9.js');
|
|
13
13
|
require('./locale-02462821.js');
|
|
14
14
|
require('./number-e813e801.js');
|
|
@@ -7,8 +7,8 @@
|
|
|
7
7
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
8
8
|
|
|
9
9
|
const index = require('./index-6b5d2de5.js');
|
|
10
|
-
const dom = require('./dom-
|
|
11
|
-
const popper = require('./popper-
|
|
10
|
+
const dom = require('./dom-f3df220d.js');
|
|
11
|
+
const popper = require('./popper-13a2bb46.js');
|
|
12
12
|
const observers = require('./observers-79bfb8bc.js');
|
|
13
13
|
require('./guid-b270f0db.js');
|
|
14
14
|
|
|
@@ -79,7 +79,7 @@ let CalciteDropdown = class {
|
|
|
79
79
|
//--------------------------------------------------------------------------
|
|
80
80
|
this.updateItems = () => {
|
|
81
81
|
this.updateSelectedItems();
|
|
82
|
-
this.triggers =
|
|
82
|
+
this.triggers = dom.getSlotted(this.el, "dropdown-trigger", { all: true });
|
|
83
83
|
this.items = Array.from(this.el.querySelectorAll("calcite-dropdown-item"));
|
|
84
84
|
this.reposition();
|
|
85
85
|
};
|
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
8
8
|
|
|
9
9
|
const index = require('./index-6b5d2de5.js');
|
|
10
|
-
const dom = require('./dom-
|
|
10
|
+
const dom = require('./dom-f3df220d.js');
|
|
11
11
|
const debounce = require('./debounce-95979061.js');
|
|
12
12
|
const forIn = require('./forIn-a5d553af.js');
|
|
13
13
|
require('./guid-b270f0db.js');
|
|
@@ -9,10 +9,10 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
|
9
9
|
const index = require('./index-6b5d2de5.js');
|
|
10
10
|
const guid = require('./guid-b270f0db.js');
|
|
11
11
|
const observers = require('./observers-79bfb8bc.js');
|
|
12
|
-
const dom = require('./dom-
|
|
12
|
+
const dom = require('./dom-f3df220d.js');
|
|
13
13
|
const math = require('./math-145c80e2.js');
|
|
14
|
-
const label = require('./label-
|
|
15
|
-
const form = require('./form-
|
|
14
|
+
const label = require('./label-6b18ca08.js');
|
|
15
|
+
const form = require('./form-237cf392.js');
|
|
16
16
|
|
|
17
17
|
/**
|
|
18
18
|
* Calculate slope of the tangents
|
|
@@ -283,9 +283,7 @@ let CalciteSlider = class {
|
|
|
283
283
|
}
|
|
284
284
|
};
|
|
285
285
|
this.dragEnd = (event) => {
|
|
286
|
-
|
|
287
|
-
document.removeEventListener("pointerup", this.dragEnd);
|
|
288
|
-
document.removeEventListener("pointercancel", this.dragEnd);
|
|
286
|
+
this.removeDragListeners();
|
|
289
287
|
this.focusActiveHandle(event.clientX);
|
|
290
288
|
if (this.lastDragPropValue != this[this.dragProp]) {
|
|
291
289
|
this.emitChange();
|
|
@@ -320,6 +318,7 @@ let CalciteSlider = class {
|
|
|
320
318
|
disconnectedCallback() {
|
|
321
319
|
label.disconnectLabel(this);
|
|
322
320
|
form.disconnectForm(this);
|
|
321
|
+
this.removeDragListeners();
|
|
323
322
|
}
|
|
324
323
|
componentWillLoad() {
|
|
325
324
|
this.isRange = !!(this.maxValue || this.maxValue === 0);
|
|
@@ -655,6 +654,11 @@ let CalciteSlider = class {
|
|
|
655
654
|
emitChange() {
|
|
656
655
|
this.calciteSliderChange.emit();
|
|
657
656
|
}
|
|
657
|
+
removeDragListeners() {
|
|
658
|
+
document.removeEventListener("pointermove", this.dragUpdate);
|
|
659
|
+
document.removeEventListener("pointerup", this.dragEnd);
|
|
660
|
+
document.removeEventListener("pointercancel", this.dragEnd);
|
|
661
|
+
}
|
|
658
662
|
/**
|
|
659
663
|
* Set the prop value if changed at the component level
|
|
660
664
|
* @param valueProp
|
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
8
8
|
|
|
9
9
|
const index = require('./index-6b5d2de5.js');
|
|
10
|
-
const dom = require('./dom-
|
|
10
|
+
const dom = require('./dom-f3df220d.js');
|
|
11
11
|
const observers = require('./observers-79bfb8bc.js');
|
|
12
12
|
require('./guid-b270f0db.js');
|
|
13
13
|
|
|
@@ -7,8 +7,9 @@
|
|
|
7
7
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
8
8
|
|
|
9
9
|
const index = require('./index-6b5d2de5.js');
|
|
10
|
-
const dom = require('./dom-
|
|
11
|
-
const label = require('./label-
|
|
10
|
+
const dom = require('./dom-f3df220d.js');
|
|
11
|
+
const label = require('./label-6b18ca08.js');
|
|
12
|
+
const observers = require('./observers-79bfb8bc.js');
|
|
12
13
|
require('./guid-b270f0db.js');
|
|
13
14
|
|
|
14
15
|
const CSS = {
|
|
@@ -59,26 +60,31 @@ let CalciteInlineEditable = class {
|
|
|
59
60
|
* @default "Save"
|
|
60
61
|
*/
|
|
61
62
|
this.intlConfirmChanges = TEXT.intlConfirmChanges;
|
|
63
|
+
this.mutationObserver = observers.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 = class {
|
|
|
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 = class {
|
|
|
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 = class {
|
|
|
144
154
|
//
|
|
145
155
|
//--------------------------------------------------------------------------
|
|
146
156
|
connectedCallback() {
|
|
157
|
+
var _a;
|
|
147
158
|
label.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
|
label.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 || label.getLabelText(this);
|
|
156
|
-
this.scale =
|
|
157
|
-
this.scale || this.inputElement.scale || dom.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 (index.h("div", { class: CSS.wrapper, onClick: this.enableEditingHandler, onKeyDown: this.escapeKeyHandler, onTransitionEnd: this.transitionEnd }, index.h("div", { class: CSS.inputWrapper }, index.h("slot", null)), index.h("div", { class: CSS.controlsWrapper }, index.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 = class {
|
|
|
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) || dom.getElementProp(this.el, "scale", undefined);
|
|
210
|
+
}
|
|
197
211
|
onLabelClick() {
|
|
198
212
|
this.setFocus();
|
|
199
213
|
}
|
|
214
|
+
updateSlottedInput() {
|
|
215
|
+
const inputElement = dom.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 || label.getLabelText(this);
|
|
224
|
+
}
|
|
200
225
|
get shouldShowControls() {
|
|
201
226
|
return this.editingEnabled && this.controls;
|
|
202
227
|
}
|
|
@@ -7,13 +7,13 @@
|
|
|
7
7
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
8
8
|
|
|
9
9
|
const index = require('./index-6b5d2de5.js');
|
|
10
|
-
const resources = require('./resources-
|
|
11
|
-
const label = require('./label-
|
|
12
|
-
const form = require('./form-
|
|
13
|
-
const popper = require('./popper-
|
|
10
|
+
const resources = require('./resources-f70fb01b.js');
|
|
11
|
+
const label = require('./label-6b18ca08.js');
|
|
12
|
+
const form = require('./form-237cf392.js');
|
|
13
|
+
const popper = require('./popper-13a2bb46.js');
|
|
14
14
|
require('./locale-02462821.js');
|
|
15
15
|
require('./number-e813e801.js');
|
|
16
|
-
require('./dom-
|
|
16
|
+
require('./dom-f3df220d.js');
|
|
17
17
|
require('./guid-b270f0db.js');
|
|
18
18
|
|
|
19
19
|
const calciteInputDatePickerCss = "@-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}:host{--calcite-icon-size:1rem;--calcite-spacing-eighth:0.125rem;--calcite-spacing-quarter:0.25rem;--calcite-spacing-half:0.5rem;--calcite-spacing-three-quarters:0.75rem;--calcite-spacing:1rem;--calcite-spacing-plus-quarter:1.25rem;--calcite-spacing-plus-half:1.5rem;--calcite-spacing-double:2rem;--calcite-menu-min-width:10rem;--calcite-header-min-height:3rem;--calcite-footer-min-height:3rem}:root{--calcite-popper-transition:var(--calcite-animation-timing)}:host([hidden]){display:none}:host{position:relative;display:inline-block;width:100%;overflow:visible;vertical-align:top;--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;-webkit-box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow)}:host .menu-container .calcite-popper-anim{position:relative;z-index:1;-webkit-transition:var(--calcite-popper-transition);transition:var(--calcite-popper-transition);visibility:hidden;-webkit-transition-property:visibility, opacity, -webkit-transform;transition-property:visibility, opacity, -webkit-transform;transition-property:transform, visibility, opacity;transition-property:transform, visibility, opacity, -webkit-transform;opacity:0;-webkit-box-shadow:0 0 16px 0 rgba(0, 0, 0, 0.16);box-shadow:0 0 16px 0 rgba(0, 0, 0, 0.16);border-radius:0.25rem}:host .menu-container[data-popper-placement^=bottom] .calcite-popper-anim{-webkit-transform:translateY(-5px);transform:translateY(-5px)}:host .menu-container[data-popper-placement^=top] .calcite-popper-anim{-webkit-transform:translateY(5px);transform:translateY(5px)}:host .menu-container[data-popper-placement^=left] .calcite-popper-anim{-webkit-transform:translateX(5px);transform:translateX(5px)}:host .menu-container[data-popper-placement^=right] .calcite-popper-anim{-webkit-transform:translateX(-5px);transform:translateX(-5px)}:host .menu-container[data-popper-placement] .calcite-popper-anim--active{opacity:1;visibility:visible;-webkit-transform:translate(0);transform:translate(0)}.calendar-picker-wrapper{position:static;width:100%;--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;-webkit-box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);-webkit-transform:translate3d(0, 0, 0);transform:translate3d(0, 0, 0)}.input-wrapper{position:relative}:host([range]) .input-container{display:-ms-flexbox;display:flex}:host([range]) .input-wrapper{-ms-flex:1 1 auto;flex:1 1 auto}:host([range]) .horizontal-arrow-container{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;border-width:1px;border-left-width:0px;border-right-width:0px;border-style:solid;border-color:var(--calcite-ui-border-input);background-color:var(--calcite-ui-background);padding-top:0px;padding-bottom:0px;padding-left:0.25rem;padding-right:0.25rem}:host([range][layout=vertical]) .input-wrapper{width:100%}:host([range][layout=vertical]) .input-container{-ms-flex-direction:column;flex-direction:column;-ms-flex-align:start;align-items:flex-start}:host([range][layout=vertical]) .calendar-picker-wrapper--end{-webkit-transform:translate3d(0, 0, 0);transform:translate3d(0, 0, 0)}:host([range][layout=vertical]) .vertical-arrow-container{top:1.5rem;position:absolute;left:0px;z-index:10;margin-left:1px;margin-right:1px;background-color:var(--calcite-ui-foreground-1);padding-left:0.625rem;padding-right:0.625rem}:host([scale=s][range]:not([layout=vertical])) .calendar-picker-wrapper{width:216px}:host([scale=m][range]:not([layout=vertical])) .calendar-picker-wrapper{width:286px}:host([scale=l][range]:not([layout=vertical])) .calendar-picker-wrapper{width:398px}.menu-container{display:block;position:absolute;z-index:900;-webkit-transform:scale(0);transform:scale(0);pointer-events:none;visibility:hidden}:host([active]) .menu-container{pointer-events:auto;visibility:visible}.input .calcite-input__wrapper{margin-top:0px}:host([range][layout=vertical][scale=m]) .vertical-arrow-container{top:1.5rem;padding-left:0.75rem}:host([range][layout=vertical][scale=m]) .vertical-arrow-container calcite-icon{height:0.75rem;width:0.75rem;min-width:0px}:host([range][layout=vertical][scale=l]) .vertical-arrow-container{top:2.25rem;padding-left:0.875rem;padding-right:0.875rem}:host([range][layout=vertical][active]) .vertical-arrow-container{display:none}::slotted(input[slot=hidden-form-input]){bottom:0 !important;left:0 !important;margin:0 !important;opacity:0 !important;outline:none !important;padding:0 !important;position:absolute !important;right:0 !important;top:0 !important;-webkit-transform:none !important;transform:none !important;-webkit-appearance:none !important;z-index:-1 !important}";
|
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
8
8
|
|
|
9
9
|
const index = require('./index-6b5d2de5.js');
|
|
10
|
-
const dom = require('./dom-
|
|
10
|
+
const dom = require('./dom-f3df220d.js');
|
|
11
11
|
require('./guid-b270f0db.js');
|
|
12
12
|
|
|
13
13
|
var StatusIconDefaults;
|
|
@@ -9,9 +9,9 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
|
9
9
|
const index = require('./index-6b5d2de5.js');
|
|
10
10
|
const guid = require('./guid-b270f0db.js');
|
|
11
11
|
const number = require('./number-e813e801.js');
|
|
12
|
-
const label = require('./label-
|
|
13
|
-
const form = require('./form-
|
|
14
|
-
require('./dom-
|
|
12
|
+
const label = require('./label-6b18ca08.js');
|
|
13
|
+
const form = require('./form-237cf392.js');
|
|
14
|
+
require('./dom-f3df220d.js');
|
|
15
15
|
|
|
16
16
|
const maxTenthForMinuteAndSecond = 5;
|
|
17
17
|
function createLocaleDateTimeFormatter(locale, includeSeconds = true) {
|
|
@@ -7,12 +7,13 @@
|
|
|
7
7
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
8
8
|
|
|
9
9
|
const index = require('./index-6b5d2de5.js');
|
|
10
|
-
const dom = require('./dom-
|
|
11
|
-
const label = require('./label-
|
|
12
|
-
const form = require('./form-
|
|
10
|
+
const dom = require('./dom-f3df220d.js');
|
|
11
|
+
const label = require('./label-6b18ca08.js');
|
|
12
|
+
const form = require('./form-237cf392.js');
|
|
13
13
|
const locale = require('./locale-02462821.js');
|
|
14
14
|
const number = require('./number-e813e801.js');
|
|
15
15
|
const math = require('./math-145c80e2.js');
|
|
16
|
+
const observers = require('./observers-79bfb8bc.js');
|
|
16
17
|
require('./guid-b270f0db.js');
|
|
17
18
|
|
|
18
19
|
const CSS = {
|
|
@@ -111,6 +112,7 @@ let CalciteInput = class {
|
|
|
111
112
|
this.childElType = "input";
|
|
112
113
|
/** whether the value of the input was changed as a result of user typing or not */
|
|
113
114
|
this.internalValueChange = false;
|
|
115
|
+
this.mutationObserver = observers.createObserver("mutation", () => this.setDisabledAction());
|
|
114
116
|
//--------------------------------------------------------------------------
|
|
115
117
|
//
|
|
116
118
|
// Private Methods
|
|
@@ -149,7 +151,8 @@ let CalciteInput = class {
|
|
|
149
151
|
}
|
|
150
152
|
};
|
|
151
153
|
this.inputFocusHandler = (event) => {
|
|
152
|
-
|
|
154
|
+
const slottedActionEl = dom.getSlotted(this.el, "action");
|
|
155
|
+
if (event.target !== slottedActionEl) {
|
|
153
156
|
this.setFocus();
|
|
154
157
|
}
|
|
155
158
|
this.calciteInputFocus.emit({
|
|
@@ -393,6 +396,7 @@ let CalciteInput = class {
|
|
|
393
396
|
//
|
|
394
397
|
//--------------------------------------------------------------------------
|
|
395
398
|
connectedCallback() {
|
|
399
|
+
var _a;
|
|
396
400
|
this.scale = dom.getElementProp(this.el, "scale", this.scale);
|
|
397
401
|
this.status = dom.getElementProp(this.el, "status", this.status);
|
|
398
402
|
this.inlineEditableEl = this.el.closest("calcite-inline-editable");
|
|
@@ -409,10 +413,14 @@ let CalciteInput = class {
|
|
|
409
413
|
}
|
|
410
414
|
label.connectLabel(this);
|
|
411
415
|
form.connectForm(this);
|
|
416
|
+
(_a = this.mutationObserver) === null || _a === void 0 ? void 0 : _a.observe(this.el, { childList: true });
|
|
417
|
+
this.setDisabledAction();
|
|
412
418
|
}
|
|
413
419
|
disconnectedCallback() {
|
|
420
|
+
var _a;
|
|
414
421
|
label.disconnectLabel(this);
|
|
415
422
|
form.disconnectForm(this);
|
|
423
|
+
(_a = this.mutationObserver) === null || _a === void 0 ? void 0 : _a.disconnect();
|
|
416
424
|
}
|
|
417
425
|
componentWillLoad() {
|
|
418
426
|
var _a, _b;
|
|
@@ -421,10 +429,6 @@ let CalciteInput = class {
|
|
|
421
429
|
this.minString = (_b = this.min) === null || _b === void 0 ? void 0 : _b.toString();
|
|
422
430
|
this.requestedIcon = dom.setRequestedIcon(INPUT_TYPE_ICONS, this.icon, this.type);
|
|
423
431
|
}
|
|
424
|
-
componentDidLoad() {
|
|
425
|
-
this.slottedActionEl = this.el.querySelector("[slot=action]");
|
|
426
|
-
this.setDisabledAction();
|
|
427
|
-
}
|
|
428
432
|
componentShouldUpdate(newValue, oldValue, property) {
|
|
429
433
|
if (this.type === "number" && property === "value" && newValue && !number.isValidNumber(newValue)) {
|
|
430
434
|
this.setValue({
|
|
@@ -496,10 +500,10 @@ let CalciteInput = class {
|
|
|
496
500
|
}
|
|
497
501
|
}
|
|
498
502
|
setDisabledAction() {
|
|
499
|
-
|
|
503
|
+
const slottedActionEl = dom.getSlotted(this.el, "action");
|
|
504
|
+
if (!slottedActionEl) {
|
|
500
505
|
return;
|
|
501
506
|
}
|
|
502
|
-
const slottedActionEl = this.slottedActionEl;
|
|
503
507
|
this.disabled
|
|
504
508
|
? slottedActionEl.setAttribute("disabled", "")
|
|
505
509
|
: slottedActionEl.removeAttribute("disabled");
|
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
8
8
|
|
|
9
9
|
const index = require('./index-6b5d2de5.js');
|
|
10
|
-
const dom = require('./dom-
|
|
10
|
+
const dom = require('./dom-f3df220d.js');
|
|
11
11
|
require('./guid-b270f0db.js');
|
|
12
12
|
|
|
13
13
|
const calciteLinkCss = "@-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:inline}:host a,:host span{position:relative;display:-ms-flexbox;display:flex;cursor:pointer;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;border-radius:0px;border-style:none;font-family:inherit;-webkit-transition-property:all;transition-property:all;-webkit-transition-duration:var(--calcite-animation-timing);transition-duration:var(--calcite-animation-timing);-webkit-transition-timing-function:ease-in-out;transition-timing-function:ease-in-out;-webkit-transition-delay:0s;transition-delay:0s;text-decoration:none;line-height:inherit;font-size:inherit;-webkit-appearance:none}:host a:hover,:host span:hover{text-decoration:none}:host a,:host span{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 a:focus,:host span:focus{outline:2px solid var(--calcite-ui-brand);outline-offset:-2px}calcite-icon{width:1em;height:1em;min-width:unset;min-height:unset}.calcite-link--icon{vertical-align:text-top;-webkit-transition-property:all;transition-property:all;-webkit-transition-duration:var(--calcite-animation-timing);transition-duration:var(--calcite-animation-timing);-webkit-transition-timing-function:ease-in-out;transition-timing-function:ease-in-out;-webkit-transition-delay:0s;transition-delay:0s;margin-top:0.125rem}:host([disabled]){pointer-events:none}:host([disabled]) span,:host([disabled]) a{pointer-events:none;opacity:var(--calcite-ui-opacity-disabled)}:host .calcite-link--icon.icon-start{-webkit-margin-end:0.5rem;margin-inline-end:0.5rem}:host .calcite-link--icon.icon-end{-webkit-margin-start:0.5rem;margin-inline-start:0.5rem}:host span,:host a{position:relative;display:inline;border-style:none;background-color:transparent;padding:0px;color:var(--calcite-ui-text-link);-webkit-transition-property:all;transition-property:all;-webkit-transition-duration:var(--calcite-animation-timing);transition-duration:var(--calcite-animation-timing);-webkit-transition-timing-function:ease-in-out;transition-timing-function:ease-in-out;-webkit-transition-delay:0s;transition-delay:0s;line-height:inherit;white-space:initial;background-image:-webkit-gradient(linear, left top, left bottom, from(currentColor), to(currentColor)), -webkit-gradient(linear, left top, left bottom, from(var(--calcite-link-blue-underline)), to(var(--calcite-link-blue-underline)));background-image:linear-gradient(currentColor, currentColor), linear-gradient(var(--calcite-link-blue-underline), var(--calcite-link-blue-underline));background-position:0% 100%, 100% 100%;background-repeat:no-repeat, no-repeat;background-size:0% 1px, 100% 1px}:host span:hover,:host span:focus,:host a:hover,:host a:focus{background-size:100% 1px, 100% 1px}:host span:active,:host a:active{background-size:100% 2px, 100% 2px}:host span.calcite--rtl,:host a.calcite--rtl{background-position:100% 100%, 100% 100%}";
|
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
8
8
|
|
|
9
9
|
const index = require('./index-6b5d2de5.js');
|
|
10
|
-
const dom = require('./dom-
|
|
10
|
+
const dom = require('./dom-f3df220d.js');
|
|
11
11
|
const conditionalSlot = require('./conditionalSlot-92505fba.js');
|
|
12
12
|
const CalciteHeading = require('./CalciteHeading-112c19f9.js');
|
|
13
13
|
require('./guid-b270f0db.js');
|
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
8
8
|
|
|
9
9
|
const index = require('./index-6b5d2de5.js');
|
|
10
|
-
const dom = require('./dom-
|
|
10
|
+
const dom = require('./dom-f3df220d.js');
|
|
11
11
|
const observers = require('./observers-79bfb8bc.js');
|
|
12
12
|
const conditionalSlot = require('./conditionalSlot-92505fba.js');
|
|
13
13
|
require('./guid-b270f0db.js');
|
|
@@ -227,7 +227,7 @@ let CalciteModal = class {
|
|
|
227
227
|
}
|
|
228
228
|
};
|
|
229
229
|
this.updateFooterVisibility = () => {
|
|
230
|
-
this.hasFooter = !!this.el
|
|
230
|
+
this.hasFooter = !!dom.getSlotted(this.el, [SLOTS.back, SLOTS.primary, SLOTS.secondary]);
|
|
231
231
|
};
|
|
232
232
|
}
|
|
233
233
|
//--------------------------------------------------------------------------
|
|
@@ -8,7 +8,7 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
|
8
8
|
|
|
9
9
|
const index = require('./index-6b5d2de5.js');
|
|
10
10
|
const interfaces = require('./interfaces-54651c1c.js');
|
|
11
|
-
const dom = require('./dom-
|
|
11
|
+
const dom = require('./dom-f3df220d.js');
|
|
12
12
|
const conditionalSlot = require('./conditionalSlot-92505fba.js');
|
|
13
13
|
require('./guid-b270f0db.js');
|
|
14
14
|
require('./observers-79bfb8bc.js');
|
|
@@ -83,9 +83,6 @@ let CalciteNotice = class {
|
|
|
83
83
|
componentWillLoad() {
|
|
84
84
|
this.requestedIcon = dom.setRequestedIcon(interfaces.StatusIcons, this.icon, this.color);
|
|
85
85
|
}
|
|
86
|
-
componentDidLoad() {
|
|
87
|
-
this.noticeLinkEl = this.el.querySelector("calcite-link");
|
|
88
|
-
}
|
|
89
86
|
render() {
|
|
90
87
|
const { el } = this;
|
|
91
88
|
const closeButton = (index.h("button", { "aria-label": this.intlClose, class: CSS.close, onClick: this.close, ref: (el) => (this.closeButton = el) }, index.h("calcite-icon", { icon: "x", scale: this.scale === "l" ? "m" : "s" })));
|
|
@@ -99,11 +96,12 @@ let CalciteNotice = class {
|
|
|
99
96
|
//--------------------------------------------------------------------------
|
|
100
97
|
/** Sets focus on the component. */
|
|
101
98
|
async setFocus() {
|
|
102
|
-
|
|
99
|
+
const noticeLinkEl = this.el.querySelector("calcite-link");
|
|
100
|
+
if (!this.closeButton && !noticeLinkEl) {
|
|
103
101
|
return;
|
|
104
102
|
}
|
|
105
|
-
if (
|
|
106
|
-
|
|
103
|
+
if (noticeLinkEl) {
|
|
104
|
+
noticeLinkEl.setFocus();
|
|
107
105
|
}
|
|
108
106
|
else if (this.closeButton) {
|
|
109
107
|
this.closeButton.focus();
|
|
@@ -8,9 +8,9 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
|
8
8
|
|
|
9
9
|
const index = require('./index-6b5d2de5.js');
|
|
10
10
|
const observers = require('./observers-79bfb8bc.js');
|
|
11
|
-
const dom = require('./dom-
|
|
12
|
-
const label = require('./label-
|
|
13
|
-
const form = require('./form-
|
|
11
|
+
const dom = require('./dom-f3df220d.js');
|
|
12
|
+
const label = require('./label-6b18ca08.js');
|
|
13
|
+
const form = require('./form-237cf392.js');
|
|
14
14
|
require('./guid-b270f0db.js');
|
|
15
15
|
|
|
16
16
|
const calciteOptionCss = "@-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:block}";
|
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
8
8
|
|
|
9
9
|
const index = require('./index-6b5d2de5.js');
|
|
10
|
-
const dom = require('./dom-
|
|
10
|
+
const dom = require('./dom-f3df220d.js');
|
|
11
11
|
const CalciteHeading = require('./CalciteHeading-112c19f9.js');
|
|
12
12
|
const resources = require('./resources-ffe563a2.js');
|
|
13
13
|
const conditionalSlot = require('./conditionalSlot-92505fba.js');
|
|
@@ -155,6 +155,20 @@ let CalcitePanel = class {
|
|
|
155
155
|
}
|
|
156
156
|
(_c = this.containerEl) === null || _c === void 0 ? void 0 : _c.focus();
|
|
157
157
|
}
|
|
158
|
+
/** Scrolls panel content to a particular set of coordinates.
|
|
159
|
+
*
|
|
160
|
+
* ```
|
|
161
|
+
* myCalcitePanel.scrollContentTo({
|
|
162
|
+
* left: 0, // Specifies the number of pixels along the X axis to scroll the window or element.
|
|
163
|
+
* top: 0, // Specifies the number of pixels along the Y axis to scroll the window or element
|
|
164
|
+
* behavior: "auto" // Specifies whether the scrolling should animate smoothly (smooth), or happen instantly in a single jump (auto, the default value).
|
|
165
|
+
* });
|
|
166
|
+
* ```
|
|
167
|
+
*/
|
|
168
|
+
async scrollContentTo(options) {
|
|
169
|
+
var _a;
|
|
170
|
+
(_a = this.panelScrollEl) === null || _a === void 0 ? void 0 : _a.scrollTo(options);
|
|
171
|
+
}
|
|
158
172
|
// --------------------------------------------------------------------------
|
|
159
173
|
//
|
|
160
174
|
// Render Methods
|
|
@@ -223,7 +237,9 @@ let CalcitePanel = class {
|
|
|
223
237
|
renderContent() {
|
|
224
238
|
const { el } = this;
|
|
225
239
|
const hasFab = dom.getSlotted(el, SLOTS.fab);
|
|
226
|
-
|
|
240
|
+
const defaultSlotNode = index.h("slot", { key: "default-slot" });
|
|
241
|
+
const contentWrapperKey = "content-wrapper";
|
|
242
|
+
return hasFab ? (index.h("div", { class: { [CSS.contentWrapper]: true, [CSS.contentHeight]: true }, key: contentWrapperKey, onScroll: this.panelScrollHandler, ref: (el) => (this.panelScrollEl = el), tabIndex: 0 }, index.h("section", { class: CSS.contentContainer }, defaultSlotNode), this.renderFab())) : (index.h("section", { class: { [CSS.contentWrapper]: true, [CSS.contentContainer]: true }, key: contentWrapperKey, onScroll: this.panelScrollHandler, ref: (el) => (this.panelScrollEl = el), tabIndex: 0 }, defaultSlotNode));
|
|
227
243
|
}
|
|
228
244
|
renderFab() {
|
|
229
245
|
return (index.h("div", { class: CSS.fabContainer }, index.h("slot", { name: SLOTS.fab })));
|