@esri/calcite-components 1.0.0-next.312 → 1.0.0-next.316
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-2a714a22.entry.js → p-04a2538a.entry.js} +1 -1
- package/dist/calcite/{p-d6e30c54.entry.js → p-051cc8c6.entry.js} +1 -1
- package/dist/calcite/{p-765fb8ed.entry.js → p-058ee7b0.entry.js} +1 -1
- package/dist/calcite/{p-5efd81e1.entry.js → p-0c827dec.entry.js} +1 -1
- package/dist/calcite/{p-59a285d8.system.entry.js → p-0f33798d.system.entry.js} +1 -1
- package/dist/calcite/{p-e70cb594.system.entry.js → p-0f9f1f89.system.entry.js} +1 -1
- package/dist/calcite/{p-1a962bdd.js → p-1161e56f.js} +1 -1
- package/dist/calcite/{p-044d603d.system.entry.js → p-18fbf2af.system.entry.js} +1 -1
- package/dist/calcite/{p-9338b0bc.entry.js → p-198902ca.entry.js} +1 -1
- package/dist/calcite/{p-cc788d2e.entry.js → p-1ad123f9.entry.js} +1 -1
- package/dist/calcite/{p-e33fe285.system.entry.js → p-1eb04aad.system.entry.js} +1 -1
- package/dist/calcite/{p-deb36fde.system.entry.js → p-1f809e6c.system.entry.js} +1 -1
- package/dist/calcite/{p-1c8fe17f.system.entry.js → p-2033f545.system.entry.js} +1 -1
- package/dist/calcite/{p-f1e111f4.system.entry.js → p-20f91a4e.system.entry.js} +1 -1
- package/dist/calcite/{p-7ba971b5.system.entry.js → p-227bc238.system.entry.js} +1 -1
- package/dist/calcite/p-239b44dd.system.entry.js +5 -0
- package/dist/calcite/{p-f9c46578.entry.js → p-23bc2d32.entry.js} +1 -1
- package/dist/calcite/{p-a19e423a.entry.js → p-266ee9db.entry.js} +1 -1
- package/dist/calcite/{p-4f1f83d2.entry.js → p-2c66fb61.entry.js} +1 -1
- package/dist/calcite/{p-63e60894.entry.js → p-343cd887.entry.js} +1 -1
- package/dist/calcite/{p-ecc00ef0.entry.js → p-3d69fba9.entry.js} +1 -1
- package/dist/calcite/p-3ec67fae.entry.js +5 -0
- package/dist/calcite/p-42091a1f.system.entry.js +5 -0
- package/dist/calcite/p-42c7e2f0.system.entry.js +5 -0
- package/dist/calcite/p-43020fb5.js +5 -0
- package/dist/calcite/p-44a07313.system.entry.js +5 -0
- package/dist/calcite/{p-c34c4414.system.js → p-47f55191.system.js} +1 -1
- package/dist/calcite/{p-e52495d3.system.entry.js → p-4a8b3cf3.system.entry.js} +1 -1
- package/dist/calcite/p-4cc182af.system.entry.js +5 -0
- package/dist/calcite/{p-cced5508.system.entry.js → p-4ee2f6cf.system.entry.js} +1 -1
- package/dist/calcite/{p-c87c04a9.entry.js → p-50273eed.entry.js} +1 -1
- package/dist/calcite/p-5035488d.entry.js +5 -0
- package/dist/calcite/p-52578054.js +5 -0
- package/dist/calcite/{p-34038a94.system.entry.js → p-538e542a.system.entry.js} +1 -1
- package/dist/calcite/{p-ef39847e.entry.js → p-55bfe4fc.entry.js} +1 -1
- package/dist/calcite/{p-55a5535b.system.entry.js → p-57e9b7cb.system.entry.js} +1 -1
- package/dist/calcite/{p-e6d05ad6.system.entry.js → p-6c5b849f.system.entry.js} +1 -1
- package/dist/calcite/{p-9577dfd9.entry.js → p-6ca051ef.entry.js} +1 -1
- package/dist/calcite/{p-c61ebee9.entry.js → p-702140ce.entry.js} +1 -1
- package/dist/calcite/{p-523bc291.system.js → p-71cdeee3.system.js} +1 -1
- package/dist/calcite/p-71e299a6.system.js +5 -0
- package/dist/calcite/{p-a5e8f022.system.entry.js → p-730b8963.system.entry.js} +1 -1
- package/dist/calcite/{p-4d11efdb.system.entry.js → p-7325e7fc.system.entry.js} +1 -1
- package/dist/calcite/{p-25caf637.system.entry.js → p-784e4e32.system.entry.js} +1 -1
- package/dist/calcite/{p-2aa3007a.entry.js → p-80a527ef.entry.js} +1 -1
- package/dist/calcite/{p-cf03b144.system.entry.js → p-832affcb.system.entry.js} +1 -1
- package/dist/calcite/p-837f9bb4.system.entry.js +5 -0
- package/dist/calcite/{p-840f2937.system.entry.js → p-83fca16e.system.entry.js} +1 -1
- package/dist/calcite/{p-e616f9b5.entry.js → p-84d6696b.entry.js} +1 -1
- package/dist/calcite/{p-38bd222a.entry.js → p-87f1831b.entry.js} +1 -1
- package/dist/calcite/{p-4acfb654.entry.js → p-88b4f504.entry.js} +1 -1
- package/dist/calcite/{p-f1c5e7cf.entry.js → p-89987575.entry.js} +1 -1
- package/dist/calcite/{p-c4cb4fab.system.entry.js → p-8b2d4eac.system.entry.js} +1 -1
- package/dist/calcite/p-8da7ad4b.entry.js +5 -0
- package/dist/calcite/p-8e252799.system.js +1 -1
- package/dist/calcite/{p-1dd440e6.system.entry.js → p-9470d123.system.entry.js} +1 -1
- package/dist/calcite/{p-4e16515a.system.entry.js → p-99de28b4.system.entry.js} +1 -1
- package/dist/calcite/{p-004460a0.system.entry.js → p-99e52ea7.system.entry.js} +1 -1
- package/dist/calcite/{p-29771742.entry.js → p-9be50494.entry.js} +1 -1
- package/dist/calcite/{p-15f3a0d7.system.entry.js → p-a821e9b3.system.entry.js} +1 -1
- package/dist/calcite/{p-b94bf8ac.system.entry.js → p-a98e5444.system.entry.js} +2 -2
- package/dist/calcite/p-ab9c6a18.entry.js +5 -0
- package/dist/calcite/{p-6484ffb7.system.entry.js → p-abdc7a4b.system.entry.js} +1 -1
- package/dist/calcite/{p-74f390e1.system.entry.js → p-ac38b743.system.entry.js} +2 -2
- package/dist/calcite/{p-dbe899c6.system.entry.js → p-b0b6baf4.system.entry.js} +1 -1
- package/dist/calcite/{p-6296644b.entry.js → p-b16b831d.entry.js} +1 -1
- package/dist/calcite/{p-0f014648.entry.js → p-b174f9ac.entry.js} +1 -1
- package/dist/calcite/{p-16f2d814.system.entry.js → p-b37b7b9e.system.entry.js} +1 -1
- package/dist/calcite/{p-9a3bed69.entry.js → p-b3e418f0.entry.js} +1 -1
- package/dist/calcite/{p-defcee80.system.entry.js → p-b5d21a5d.system.entry.js} +1 -1
- package/dist/calcite/p-b5f412fb.entry.js +5 -0
- package/dist/calcite/{p-0229a408.js → p-b6b6ec04.js} +1 -1
- package/dist/calcite/{p-127e3513.system.entry.js → p-b7518275.system.entry.js} +1 -1
- package/dist/calcite/{p-85032edc.system.entry.js → p-b75ffebb.system.entry.js} +1 -1
- package/dist/calcite/{p-8603b2e1.entry.js → p-bef1f0d9.entry.js} +1 -1
- package/dist/calcite/{p-c0e35328.entry.js → p-c0690971.entry.js} +1 -1
- package/dist/calcite/{p-05da7439.entry.js → p-c12e88cd.entry.js} +1 -1
- package/dist/calcite/p-c1794615.entry.js +5 -0
- package/dist/calcite/{p-cbf6bb04.system.js → p-c937f25f.system.js} +1 -1
- package/dist/calcite/{p-8baa9ba4.entry.js → p-c9551366.entry.js} +1 -1
- package/dist/calcite/{p-efb2169a.entry.js → p-ca5c0679.entry.js} +1 -1
- package/dist/calcite/{p-e5e3b591.entry.js → p-cd1cdf3c.entry.js} +1 -1
- package/dist/calcite/{p-35a5c74c.system.js → p-d07ff1ee.system.js} +1 -1
- package/dist/calcite/{p-16bb48f6.system.entry.js → p-d102e280.system.entry.js} +1 -1
- package/dist/calcite/p-d830efad.entry.js +5 -0
- package/dist/calcite/p-dacd3cf8.entry.js +5 -0
- package/dist/calcite/{p-9be6633a.entry.js → p-dcc6b40f.entry.js} +1 -1
- package/dist/calcite/p-dccb5ffd.entry.js +5 -0
- package/dist/calcite/{p-a5269f14.system.entry.js → p-e2d18d39.system.entry.js} +1 -1
- package/dist/calcite/p-e5305b02.js +5 -0
- package/dist/calcite/{p-10708f87.system.entry.js → p-e6a47d34.system.entry.js} +1 -1
- package/dist/calcite/p-e78e743b.entry.js +5 -0
- package/dist/calcite/{p-45b4443f.entry.js → p-ea3fee96.entry.js} +1 -1
- package/dist/calcite/{p-aaec0d11.system.entry.js → p-eb0f1e0f.system.entry.js} +1 -1
- package/dist/calcite/{p-5eee672a.system.entry.js → p-ed3f000d.system.entry.js} +1 -1
- package/dist/calcite/{p-592da79d.system.entry.js → p-ee40deba.system.entry.js} +1 -1
- package/dist/calcite/{p-a46c3870.system.entry.js → p-ee45cff5.system.entry.js} +1 -1
- package/dist/calcite/{p-aec398f3.system.entry.js → p-eeb8dfe5.system.entry.js} +1 -1
- package/dist/calcite/{p-63da2e34.system.entry.js → p-f05b5dc9.system.entry.js} +1 -1
- package/dist/calcite/{p-a61d85db.system.entry.js → p-f1832595.system.entry.js} +1 -1
- package/dist/calcite/p-f2620bc3.js +5 -0
- package/dist/calcite/{p-f278dd53.entry.js → p-f333e31b.entry.js} +1 -1
- package/dist/calcite/{p-4778c5cf.system.entry.js → p-f6323ffa.system.entry.js} +1 -1
- package/dist/calcite/p-f87ba8eb.system.js +5 -0
- package/dist/calcite/{p-578509a8.entry.js → p-f97e1a2d.entry.js} +1 -1
- package/dist/calcite/p-fb817417.entry.js +5 -0
- package/dist/calcite/{p-ace12b8d.entry.js → p-fb8b2c96.entry.js} +1 -1
- package/dist/calcite/{p-2451da5b.entry.js → p-fba77b86.entry.js} +1 -1
- package/dist/calcite/{p-289bc56f.entry.js → p-fc32b022.entry.js} +1 -1
- package/dist/calcite/p-fccc1605.entry.js +5 -0
- package/dist/calcite/{p-5f2a9710.system.entry.js → p-fd1ddcd2.system.entry.js} +1 -1
- package/dist/cjs/{CalciteExpandToggle-5f60c98b.js → CalciteExpandToggle-ca629f39.js} +3 -3
- package/dist/cjs/calcite-accordion_2.cjs.entry.js +1 -1
- package/dist/cjs/calcite-action-bar.cjs.entry.js +2 -2
- package/dist/cjs/calcite-action-group.cjs.entry.js +1 -1
- package/dist/cjs/calcite-action-menu.cjs.entry.js +1 -1
- package/dist/cjs/calcite-action-pad.cjs.entry.js +2 -2
- package/dist/cjs/calcite-alert.cjs.entry.js +13 -18
- package/dist/cjs/calcite-avatar.cjs.entry.js +1 -1
- package/dist/cjs/calcite-block_2.cjs.entry.js +2 -2
- package/dist/cjs/calcite-button.cjs.entry.js +2 -2
- package/dist/cjs/calcite-card.cjs.entry.js +1 -1
- 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 +5 -5
- package/dist/cjs/calcite-date-picker_4.cjs.entry.js +1 -1
- 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 +3 -3
- package/dist/cjs/calcite-icon.cjs.entry.js +1 -1
- package/dist/cjs/calcite-inline-editable.cjs.entry.js +2 -2
- package/dist/cjs/calcite-input-date-picker.cjs.entry.js +4 -4
- 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 +12 -7
- package/dist/cjs/calcite-label.cjs.entry.js +1 -1
- 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 +1 -1
- package/dist/cjs/calcite-option_3.cjs.entry.js +5 -4
- package/dist/cjs/calcite-pagination.cjs.entry.js +1 -1
- package/dist/cjs/calcite-panel.cjs.entry.js +8 -7
- 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-group_2.cjs.entry.js +18 -20
- package/dist/cjs/calcite-radio_2.cjs.entry.js +4 -4
- package/dist/cjs/calcite-rating.cjs.entry.js +3 -3
- package/dist/cjs/calcite-shell_3.cjs.entry.js +17 -8
- package/dist/cjs/calcite-split-button.cjs.entry.js +1 -1
- package/dist/cjs/calcite-stepper_2.cjs.entry.js +1 -1
- package/dist/cjs/calcite-switch.cjs.entry.js +3 -3
- package/dist/cjs/calcite-tab_4.cjs.entry.js +5 -5
- package/dist/cjs/calcite-tile-select_2.cjs.entry.js +1 -1
- package/dist/cjs/calcite-tile.cjs.entry.js +1 -1
- package/dist/cjs/calcite-tip_3.cjs.entry.js +2 -2
- package/dist/cjs/calcite-tooltip_2.cjs.entry.js +2 -2
- package/dist/cjs/calcite-tree_2.cjs.entry.js +1 -1
- package/dist/cjs/calcite-value-list_2.cjs.entry.js +2 -2
- package/dist/cjs/{dom-19822169.js → dom-41ce6029.js} +7 -0
- package/dist/cjs/{form-a5b44a1f.js → form-7f276aa5.js} +1 -1
- package/dist/cjs/{label-8e3552b2.js → label-98a31f7d.js} +1 -1
- package/dist/cjs/{popper-a7580aca.js → popper-4c24a334.js} +1 -1
- package/dist/cjs/{resources-cd25dbae.js → resources-1177e39b.js} +1 -1
- package/dist/collection/components/calcite-alert/calcite-alert.js +12 -17
- package/dist/collection/components/calcite-block-section/calcite-block-section.js +2 -2
- package/dist/collection/components/calcite-combobox/calcite-combobox.js +2 -2
- package/dist/collection/components/calcite-dropdown/calcite-dropdown.js +1 -1
- package/dist/collection/components/calcite-input/calcite-input.js +11 -5
- package/dist/collection/components/calcite-modal/calcite-modal.js +1 -1
- package/dist/collection/components/calcite-panel/calcite-panel.css +4 -1
- package/dist/collection/components/calcite-panel/calcite-panel.js +9 -8
- package/dist/collection/components/calcite-panel/resources.js +1 -0
- package/dist/collection/components/calcite-radio-button/calcite-radio-button.js +2 -3
- package/dist/collection/components/calcite-radio-group/calcite-radio-group.js +16 -18
- package/dist/collection/components/calcite-radio-group-item/calcite-radio-group-item.js +1 -1
- package/dist/collection/components/calcite-select/calcite-select.js +2 -1
- package/dist/collection/components/calcite-shell-panel/calcite-shell-panel.js +17 -8
- package/dist/collection/components/calcite-tab-nav/calcite-tab-nav.js +3 -3
- package/dist/collection/components/calcite-tab-title/calcite-tab-title.js +3 -3
- package/dist/collection/components/calcite-tip-manager/calcite-tip-manager.js +2 -2
- package/dist/collection/components/functional/CalciteExpandToggle.js +3 -3
- package/dist/collection/utils/dom.js +6 -0
- package/dist/components/CalciteExpandToggle.js +3 -3
- package/dist/components/calcite-alert.js +12 -17
- package/dist/components/calcite-avatar.js +1 -1
- package/dist/components/calcite-block-section.js +2 -2
- package/dist/components/calcite-button2.js +1 -1
- package/dist/components/calcite-color-picker-swatch2.js +1 -1
- package/dist/components/calcite-combobox.js +2 -2
- package/dist/components/calcite-dropdown2.js +1 -1
- package/dist/components/calcite-input2.js +9 -4
- package/dist/components/calcite-modal.js +2 -2
- package/dist/components/calcite-panel.js +8 -7
- package/dist/components/calcite-popover-manager.js +1 -1
- package/dist/components/calcite-radio-button.js +2 -2
- package/dist/components/calcite-radio-group.js +16 -18
- package/dist/components/calcite-select.js +2 -1
- package/dist/components/calcite-shell-panel.js +17 -8
- package/dist/components/calcite-slider.js +1 -1
- package/dist/components/calcite-tab-nav2.js +3 -3
- package/dist/components/calcite-tab-title2.js +3 -3
- package/dist/components/calcite-tip-manager.js +2 -2
- package/dist/components/calcite-tree-item.js +1 -1
- package/dist/components/dom.js +7 -1
- package/dist/components/form.js +1 -1
- package/dist/components/label.js +1 -1
- package/dist/custom-elements/index.js +79 -64
- package/dist/esm/{CalciteExpandToggle-677f2f8b.js → CalciteExpandToggle-4b38a7d1.js} +3 -3
- package/dist/esm/calcite-accordion_2.entry.js +1 -1
- package/dist/esm/calcite-action-bar.entry.js +2 -2
- package/dist/esm/calcite-action-group.entry.js +1 -1
- package/dist/esm/calcite-action-menu.entry.js +1 -1
- package/dist/esm/calcite-action-pad.entry.js +2 -2
- package/dist/esm/calcite-alert.entry.js +13 -18
- package/dist/esm/calcite-avatar.entry.js +1 -1
- package/dist/esm/calcite-block_2.entry.js +2 -2
- package/dist/esm/calcite-button.entry.js +2 -2
- package/dist/esm/calcite-card.entry.js +1 -1
- 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 +5 -5
- package/dist/esm/calcite-date-picker_4.entry.js +1 -1
- 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 +3 -3
- package/dist/esm/calcite-icon.entry.js +1 -1
- package/dist/esm/calcite-inline-editable.entry.js +2 -2
- package/dist/esm/calcite-input-date-picker.entry.js +4 -4
- 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 +12 -7
- package/dist/esm/calcite-label.entry.js +1 -1
- 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 +1 -1
- package/dist/esm/calcite-option_3.entry.js +5 -4
- package/dist/esm/calcite-pagination.entry.js +1 -1
- package/dist/esm/calcite-panel.entry.js +8 -7
- 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-group_2.entry.js +18 -20
- package/dist/esm/calcite-radio_2.entry.js +4 -4
- package/dist/esm/calcite-rating.entry.js +3 -3
- package/dist/esm/calcite-shell_3.entry.js +17 -8
- package/dist/esm/calcite-split-button.entry.js +1 -1
- package/dist/esm/calcite-stepper_2.entry.js +1 -1
- package/dist/esm/calcite-switch.entry.js +3 -3
- package/dist/esm/calcite-tab_4.entry.js +5 -5
- package/dist/esm/calcite-tile-select_2.entry.js +1 -1
- package/dist/esm/calcite-tile.entry.js +1 -1
- package/dist/esm/calcite-tip_3.entry.js +2 -2
- package/dist/esm/calcite-tooltip_2.entry.js +2 -2
- package/dist/esm/calcite-tree_2.entry.js +1 -1
- package/dist/esm/calcite-value-list_2.entry.js +2 -2
- package/dist/esm/{dom-f24e866c.js → dom-dc012a45.js} +7 -1
- package/dist/esm/{form-160b0fb5.js → form-6b717ce8.js} +1 -1
- package/dist/esm/{label-5559055d.js → label-0d804a87.js} +1 -1
- package/dist/esm/{popper-f5caedc4.js → popper-ed1eefa6.js} +1 -1
- package/dist/esm/{resources-16a2a25a.js → resources-eafda211.js} +1 -1
- package/dist/esm-es5/CalciteExpandToggle-4b38a7d1.js +5 -0
- package/dist/esm-es5/calcite-accordion_2.entry.js +1 -1
- package/dist/esm-es5/calcite-action-bar.entry.js +1 -1
- package/dist/esm-es5/calcite-action-group.entry.js +1 -1
- package/dist/esm-es5/calcite-action-menu.entry.js +1 -1
- package/dist/esm-es5/calcite-action-pad.entry.js +1 -1
- package/dist/esm-es5/calcite-alert.entry.js +1 -1
- package/dist/esm-es5/calcite-avatar.entry.js +1 -1
- package/dist/esm-es5/calcite-block_2.entry.js +1 -1
- package/dist/esm-es5/calcite-button.entry.js +1 -1
- package/dist/esm-es5/calcite-card.entry.js +1 -1
- package/dist/esm-es5/calcite-checkbox.entry.js +1 -1
- package/dist/esm-es5/calcite-chip.entry.js +1 -1
- package/dist/esm-es5/calcite-color-picker_3.entry.js +1 -1
- package/dist/esm-es5/calcite-combobox_3.entry.js +1 -1
- 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-label.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-pagination.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 +1 -1
- package/dist/esm-es5/calcite-radio-group_2.entry.js +2 -2
- package/dist/esm-es5/calcite-radio_2.entry.js +1 -1
- package/dist/esm-es5/calcite-rating.entry.js +1 -1
- package/dist/esm-es5/calcite-shell_3.entry.js +1 -1
- package/dist/esm-es5/calcite-split-button.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-select_2.entry.js +1 -1
- package/dist/esm-es5/calcite-tile.entry.js +1 -1
- package/dist/esm-es5/calcite-tip_3.entry.js +1 -1
- package/dist/esm-es5/calcite-tooltip_2.entry.js +1 -1
- package/dist/esm-es5/calcite-tree_2.entry.js +1 -1
- package/dist/esm-es5/calcite-value-list_2.entry.js +1 -1
- package/dist/esm-es5/dom-dc012a45.js +5 -0
- package/dist/esm-es5/{form-160b0fb5.js → form-6b717ce8.js} +1 -1
- package/dist/esm-es5/{label-5559055d.js → label-0d804a87.js} +1 -1
- package/dist/esm-es5/{popper-f5caedc4.js → popper-ed1eefa6.js} +1 -1
- package/dist/esm-es5/{resources-16a2a25a.js → resources-eafda211.js} +1 -1
- package/dist/extras/docs-json.json +2 -1
- package/dist/types/components/calcite-alert/calcite-alert.d.ts +2 -2
- package/dist/types/components/calcite-panel/resources.d.ts +1 -0
- package/dist/types/components/calcite-radio-group/calcite-radio-group.d.ts +1 -2
- package/dist/types/utils/dom.d.ts +4 -0
- package/hydrate/index.js +79 -64
- package/package.json +4 -3
- package/readme.md +2 -2
- package/dist/calcite/assets/calcite-icon/checkSquareF16.json +0 -1
- package/dist/calcite/assets/calcite-icon/checkSquareF24.json +0 -1
- package/dist/calcite/assets/calcite-icon/checkSquareF32.json +0 -1
- package/dist/calcite/assets/calcite-icon/lineSolid4.json +0 -1
- package/dist/calcite/assets/calcite-icon/squareF16.json +0 -1
- package/dist/calcite/assets/calcite-icon/squareF24.json +0 -1
- package/dist/calcite/assets/calcite-icon/squareF32.json +0 -1
- package/dist/calcite/assets/calcite-icon/xHexagon16.json +0 -1
- package/dist/calcite/assets/calcite-icon/xHexagon24.json +0 -1
- package/dist/calcite/assets/calcite-icon/xHexagon32.json +0 -1
- package/dist/calcite/assets/calcite-icon/xHexagonF16.json +0 -1
- package/dist/calcite/assets/calcite-icon/xHexagonF24.json +0 -1
- package/dist/calcite/assets/calcite-icon/xHexagonF32.json +0 -1
- package/dist/calcite/assets/calcite-icon/xOctagonF16.json +0 -1
- package/dist/calcite/assets/calcite-icon/xOctagonF24.json +0 -1
- package/dist/calcite/assets/calcite-icon/xOctagonF32.json +0 -1
- package/dist/calcite/p-0d807182.system.entry.js +0 -5
- package/dist/calcite/p-0fa1ba75.entry.js +0 -5
- package/dist/calcite/p-1434e37e.entry.js +0 -5
- package/dist/calcite/p-1942876c.js +0 -5
- package/dist/calcite/p-1aa89347.system.entry.js +0 -5
- package/dist/calcite/p-21290fba.system.entry.js +0 -5
- package/dist/calcite/p-33226317.entry.js +0 -5
- package/dist/calcite/p-34e89de8.entry.js +0 -5
- package/dist/calcite/p-362cb320.entry.js +0 -5
- package/dist/calcite/p-3b29e94a.entry.js +0 -5
- package/dist/calcite/p-3dae9da3.js +0 -5
- package/dist/calcite/p-3e6fcede.entry.js +0 -5
- package/dist/calcite/p-52cc870b.js +0 -5
- package/dist/calcite/p-6cc23c39.system.js +0 -5
- package/dist/calcite/p-6d44b7d9.system.js +0 -5
- package/dist/calcite/p-81ab443c.entry.js +0 -5
- package/dist/calcite/p-8445bc9c.system.entry.js +0 -5
- package/dist/calcite/p-bab99544.entry.js +0 -5
- package/dist/calcite/p-bdb92546.entry.js +0 -5
- package/dist/calcite/p-ca3bb147.entry.js +0 -5
- package/dist/calcite/p-cbbfa133.system.entry.js +0 -5
- package/dist/calcite/p-d6f20229.js +0 -5
- package/dist/calcite/p-ed15771f.system.entry.js +0 -5
- package/dist/calcite/p-ed453bfb.entry.js +0 -5
- package/dist/collection/components/calcite-icon/assets/calcite-icon/checkSquareF16.json +0 -1
- package/dist/collection/components/calcite-icon/assets/calcite-icon/checkSquareF24.json +0 -1
- package/dist/collection/components/calcite-icon/assets/calcite-icon/checkSquareF32.json +0 -1
- package/dist/collection/components/calcite-icon/assets/calcite-icon/lineSolid4.json +0 -1
- package/dist/collection/components/calcite-icon/assets/calcite-icon/squareF16.json +0 -1
- package/dist/collection/components/calcite-icon/assets/calcite-icon/squareF24.json +0 -1
- package/dist/collection/components/calcite-icon/assets/calcite-icon/squareF32.json +0 -1
- package/dist/collection/components/calcite-icon/assets/calcite-icon/xHexagon16.json +0 -1
- package/dist/collection/components/calcite-icon/assets/calcite-icon/xHexagon24.json +0 -1
- package/dist/collection/components/calcite-icon/assets/calcite-icon/xHexagon32.json +0 -1
- package/dist/collection/components/calcite-icon/assets/calcite-icon/xHexagonF16.json +0 -1
- package/dist/collection/components/calcite-icon/assets/calcite-icon/xHexagonF24.json +0 -1
- package/dist/collection/components/calcite-icon/assets/calcite-icon/xHexagonF32.json +0 -1
- package/dist/collection/components/calcite-icon/assets/calcite-icon/xOctagonF16.json +0 -1
- package/dist/collection/components/calcite-icon/assets/calcite-icon/xOctagonF24.json +0 -1
- package/dist/collection/components/calcite-icon/assets/calcite-icon/xOctagonF32.json +0 -1
- package/dist/collection/components/calcite-label/interfaces.js +0 -1
- package/dist/collection/demos/_assets/demo-spacer.js +0 -17
- package/dist/collection/demos/_assets/demo-template.js +0 -13
- package/dist/collection/demos/_assets/head.js +0 -45
- package/dist/esm-es5/CalciteExpandToggle-677f2f8b.js +0 -5
- package/dist/esm-es5/dom-f24e866c.js +0 -5
|
@@ -216,6 +216,12 @@ function nodeListToArray(nodeList) {
|
|
|
216
216
|
function getThemeName(el) {
|
|
217
217
|
return closestElementCrossShadowBoundary(el, `.${CSS_UTILITY.darkTheme}`) ? "dark" : "light";
|
|
218
218
|
}
|
|
219
|
+
function getElementStyleDir(el) {
|
|
220
|
+
return window.getComputedStyle(el).direction || "ltr";
|
|
221
|
+
}
|
|
222
|
+
/**
|
|
223
|
+
* @deprecated use getElementStyleDir instead.
|
|
224
|
+
*/
|
|
219
225
|
function getElementDir(el) {
|
|
220
226
|
const prop = "dir";
|
|
221
227
|
const selector = `[${prop}]`;
|
|
@@ -689,7 +695,7 @@ const setTooltipReference = ({ tooltip, referenceElement, expanded, ref }) => {
|
|
|
689
695
|
return referenceElement;
|
|
690
696
|
};
|
|
691
697
|
const CalciteExpandToggle = ({ expanded, intlExpand, intlCollapse, toggle, el, position, tooltip, ref, scale }) => {
|
|
692
|
-
const rtl =
|
|
698
|
+
const rtl = getElementStyleDir(el) === "rtl";
|
|
693
699
|
const expandText = expanded ? intlCollapse : intlExpand;
|
|
694
700
|
const icons = [ICONS$d.chevronsLeft, ICONS$d.chevronsRight];
|
|
695
701
|
if (rtl) {
|
|
@@ -698,7 +704,7 @@ const CalciteExpandToggle = ({ expanded, intlExpand, intlCollapse, toggle, el, p
|
|
|
698
704
|
const end = getCalcitePosition(position, el) === "end";
|
|
699
705
|
const expandIcon = end ? icons[1] : icons[0];
|
|
700
706
|
const collapseIcon = end ? icons[0] : icons[1];
|
|
701
|
-
const actionNode = (h("calcite-action", { dir: rtl ? "rtl" : "ltr", icon: expanded ? expandIcon : collapseIcon, onClick: toggle, ref: (referenceElement) => setTooltipReference({ tooltip, referenceElement, expanded, ref }), scale: scale, text: expandText, textEnabled: expanded }));
|
|
707
|
+
const actionNode = (h("calcite-action", { dir: getElementDir(el) === "rtl" ? "rtl" : "ltr", icon: expanded ? expandIcon : collapseIcon, onClick: toggle, ref: (referenceElement) => setTooltipReference({ tooltip, referenceElement, expanded, ref }), scale: scale, text: expandText, textEnabled: expanded }));
|
|
702
708
|
return tooltip ? h("calcite-tooltip-manager", null, actionNode) : actionNode;
|
|
703
709
|
};
|
|
704
710
|
|
|
@@ -2683,13 +2689,11 @@ let CalciteAlert$1 = class extends HTMLElement$1 {
|
|
|
2683
2689
|
this.queueLength = 0;
|
|
2684
2690
|
/** is the alert queued */
|
|
2685
2691
|
this.queued = false;
|
|
2686
|
-
this.
|
|
2687
|
-
this.trackTimer =
|
|
2692
|
+
this.autoDismissTimeoutId = null;
|
|
2693
|
+
this.trackTimer = Date.now();
|
|
2688
2694
|
/** close and emit the closed alert and the queue */
|
|
2689
2695
|
this.closeAlert = () => {
|
|
2690
|
-
|
|
2691
|
-
this.autoDismissTimeout = null;
|
|
2692
|
-
}
|
|
2696
|
+
this.autoDismissTimeoutId = null;
|
|
2693
2697
|
this.queued = false;
|
|
2694
2698
|
this.active = false;
|
|
2695
2699
|
this.queue = this.queue.filter((e) => e !== this.el);
|
|
@@ -2713,10 +2717,10 @@ let CalciteAlert$1 = class extends HTMLElement$1 {
|
|
|
2713
2717
|
updateRequestedIcon() {
|
|
2714
2718
|
this.requestedIcon = setRequestedIcon(StatusIcons, this.icon, this.color);
|
|
2715
2719
|
}
|
|
2716
|
-
updateDuration(
|
|
2717
|
-
if (this.autoDismiss &&
|
|
2718
|
-
window.clearTimeout(this.
|
|
2719
|
-
this.
|
|
2720
|
+
updateDuration() {
|
|
2721
|
+
if (this.autoDismiss && this.autoDismissTimeoutId) {
|
|
2722
|
+
window.clearTimeout(this.autoDismissTimeoutId);
|
|
2723
|
+
this.autoDismissTimeoutId = window.setTimeout(() => this.closeAlert(), DURATIONS[this.autoDismissDuration] - (Date.now() - this.trackTimer));
|
|
2720
2724
|
}
|
|
2721
2725
|
}
|
|
2722
2726
|
//--------------------------------------------------------------------------
|
|
@@ -2736,9 +2740,7 @@ let CalciteAlert$1 = class extends HTMLElement$1 {
|
|
|
2736
2740
|
this.alertLinkEl = this.el.querySelectorAll("calcite-link")[0];
|
|
2737
2741
|
}
|
|
2738
2742
|
disconnectedCallback() {
|
|
2739
|
-
|
|
2740
|
-
window.clearTimeout(this.autoDismissTimeout);
|
|
2741
|
-
}
|
|
2743
|
+
window.clearTimeout(this.autoDismissTimeoutId);
|
|
2742
2744
|
}
|
|
2743
2745
|
render() {
|
|
2744
2746
|
const dir = getElementDir(this.el);
|
|
@@ -2746,14 +2748,13 @@ let CalciteAlert$1 = class extends HTMLElement$1 {
|
|
|
2746
2748
|
const queueText = `+${this.queueLength > 2 ? this.queueLength - 1 : 1}`;
|
|
2747
2749
|
const queueCount = (h("div", { class: `${this.queueLength > 1 ? "active " : ""}alert-queue-count` }, h("calcite-chip", { scale: this.scale, value: queueText }, queueText)));
|
|
2748
2750
|
const { active, autoDismiss, label, queued, requestedIcon } = this;
|
|
2749
|
-
const progressBar = h("div", { class: "alert-dismiss-progress" });
|
|
2750
2751
|
const role = autoDismiss ? "alert" : "alertdialog";
|
|
2751
2752
|
const hidden = !active;
|
|
2752
2753
|
return (h(Host, { "aria-hidden": hidden.toString(), "aria-label": label, "calcite-hydrated-hidden": hidden, role: role }, h("div", { class: {
|
|
2753
2754
|
container: true,
|
|
2754
2755
|
queued,
|
|
2755
2756
|
[CSS_UTILITY.rtl]: dir === "rtl"
|
|
2756
|
-
} }, requestedIcon ? (h("div", { class: "alert-icon" }, h("calcite-icon", { icon: requestedIcon, scale: this.scale === "l" ? "m" : "s" }))) : null, h("div", { class: "alert-content" }, h("slot", { name: SLOTS$l.title }), h("slot", { name: SLOTS$l.message }), h("slot", { name: SLOTS$l.link })), queueCount, !autoDismiss ? closeButton : null, active && !queued && autoDismiss ?
|
|
2757
|
+
} }, requestedIcon ? (h("div", { class: "alert-icon" }, h("calcite-icon", { icon: requestedIcon, scale: this.scale === "l" ? "m" : "s" }))) : null, h("div", { class: "alert-content" }, h("slot", { name: SLOTS$l.title }), h("slot", { name: SLOTS$l.message }), h("slot", { name: SLOTS$l.link })), queueCount, !autoDismiss ? closeButton : null, active && !queued && autoDismiss ? h("div", { class: "alert-dismiss-progress" }) : null)));
|
|
2757
2758
|
}
|
|
2758
2759
|
// when an alert is opened or closed, update queue and determine active alert
|
|
2759
2760
|
alertSync(event) {
|
|
@@ -2799,9 +2800,9 @@ let CalciteAlert$1 = class extends HTMLElement$1 {
|
|
|
2799
2800
|
var _a;
|
|
2800
2801
|
if (((_a = this.queue) === null || _a === void 0 ? void 0 : _a[0]) === this.el) {
|
|
2801
2802
|
this.openAlert();
|
|
2802
|
-
if (this.autoDismiss && !this.
|
|
2803
|
-
this.trackTimer =
|
|
2804
|
-
this.
|
|
2803
|
+
if (this.autoDismiss && !this.autoDismissTimeoutId) {
|
|
2804
|
+
this.trackTimer = Date.now();
|
|
2805
|
+
this.autoDismissTimeoutId = window.setTimeout(() => this.closeAlert(), DURATIONS[this.autoDismissDuration]);
|
|
2805
2806
|
}
|
|
2806
2807
|
}
|
|
2807
2808
|
else {
|
|
@@ -3283,7 +3284,7 @@ let CalciteBlockSection$1 = class extends HTMLElement$1 {
|
|
|
3283
3284
|
}
|
|
3284
3285
|
render() {
|
|
3285
3286
|
const { el, intlCollapse, intlExpand, open, text, toggleDisplay } = this;
|
|
3286
|
-
const dir =
|
|
3287
|
+
const dir = getElementStyleDir(el);
|
|
3287
3288
|
const arrowIcon = open
|
|
3288
3289
|
? ICONS$b.menuOpen
|
|
3289
3290
|
: dir === "rtl"
|
|
@@ -9229,7 +9230,7 @@ let CalciteCombobox$1 = class extends HTMLElement$1 {
|
|
|
9229
9230
|
this.setFocus();
|
|
9230
9231
|
};
|
|
9231
9232
|
this.keydownHandler = (event) => {
|
|
9232
|
-
const key = getKey(event.key,
|
|
9233
|
+
const key = getKey(event.key, getElementStyleDir(this.el));
|
|
9233
9234
|
switch (key) {
|
|
9234
9235
|
case "Tab":
|
|
9235
9236
|
this.activeChipIndex = -1;
|
|
@@ -11295,7 +11296,7 @@ let CalciteDropdown$1 = class extends HTMLElement$1 {
|
|
|
11295
11296
|
//
|
|
11296
11297
|
//--------------------------------------------------------------------------
|
|
11297
11298
|
this.items = [];
|
|
11298
|
-
this.activeTransitionProp = "
|
|
11299
|
+
this.activeTransitionProp = "visibility";
|
|
11299
11300
|
this.mutationObserver = createObserver("mutation", () => this.updateItems());
|
|
11300
11301
|
//--------------------------------------------------------------------------
|
|
11301
11302
|
//
|
|
@@ -12845,6 +12846,8 @@ let CalciteInput$1 = class extends HTMLElement$1 {
|
|
|
12845
12846
|
* Note that the following types add type-specific icons by default: `date`, `email`, `password`, `search`, `tel`, `time`
|
|
12846
12847
|
*/
|
|
12847
12848
|
this.type = "text";
|
|
12849
|
+
/** input value */
|
|
12850
|
+
this.value = "";
|
|
12848
12851
|
/** keep track of the rendered child type */
|
|
12849
12852
|
this.childElType = "input";
|
|
12850
12853
|
//--------------------------------------------------------------------------
|
|
@@ -12866,7 +12869,7 @@ let CalciteInput$1 = class extends HTMLElement$1 {
|
|
|
12866
12869
|
}
|
|
12867
12870
|
};
|
|
12868
12871
|
this.clearInputValue = (nativeEvent) => {
|
|
12869
|
-
this.setValue(
|
|
12872
|
+
this.setValue("", nativeEvent, true);
|
|
12870
12873
|
};
|
|
12871
12874
|
this.inputBlurHandler = () => {
|
|
12872
12875
|
if (this.type === "number") {
|
|
@@ -13008,7 +13011,7 @@ let CalciteInput$1 = class extends HTMLElement$1 {
|
|
|
13008
13011
|
this.setLocalizedValue(this.value);
|
|
13009
13012
|
}
|
|
13010
13013
|
if (nativeEvent) {
|
|
13011
|
-
if (this.type === "number" &&
|
|
13014
|
+
if (this.type === "number" && value.endsWith(".")) {
|
|
13012
13015
|
return;
|
|
13013
13016
|
}
|
|
13014
13017
|
const calciteInputInputEvent = this.calciteInputInput.emit({
|
|
@@ -13043,6 +13046,10 @@ let CalciteInput$1 = class extends HTMLElement$1 {
|
|
|
13043
13046
|
this.minString = ((_a = this.min) === null || _a === void 0 ? void 0 : _a.toString()) || null;
|
|
13044
13047
|
}
|
|
13045
13048
|
valueWatcher(newValue) {
|
|
13049
|
+
if (newValue == null) {
|
|
13050
|
+
this.value = "";
|
|
13051
|
+
return;
|
|
13052
|
+
}
|
|
13046
13053
|
if (this.type === "number" &&
|
|
13047
13054
|
this.localizedValue !== localizeNumberString(newValue, this.locale)) {
|
|
13048
13055
|
this.setLocalizedValue(newValue);
|
|
@@ -13055,8 +13062,7 @@ let CalciteInput$1 = class extends HTMLElement$1 {
|
|
|
13055
13062
|
this.requestedIcon = setRequestedIcon(INPUT_TYPE_ICONS, this.icon, this.type);
|
|
13056
13063
|
}
|
|
13057
13064
|
get isClearable() {
|
|
13058
|
-
|
|
13059
|
-
return !this.isTextarea && (this.clearable || this.type === "search") && ((_a = this.value) === null || _a === void 0 ? void 0 : _a.length) > 0;
|
|
13065
|
+
return !this.isTextarea && (this.clearable || this.type === "search") && this.value.length > 0;
|
|
13060
13066
|
}
|
|
13061
13067
|
get isTextarea() {
|
|
13062
13068
|
return this.childElType === "textarea";
|
|
@@ -14563,7 +14569,7 @@ let CalciteModal$1 = class extends HTMLElement$1 {
|
|
|
14563
14569
|
return this.hasFooter ? (h("div", { class: CSS$m.footer }, h("span", { class: CSS$m.back }, h("slot", { name: SLOTS$e.back })), h("span", { class: CSS$m.secondary }, h("slot", { name: SLOTS$e.secondary })), h("span", { class: CSS$m.primary }, h("slot", { name: SLOTS$e.primary })))) : null;
|
|
14564
14570
|
}
|
|
14565
14571
|
renderCloseButton() {
|
|
14566
|
-
return !this.disableCloseButton ? (h("button", { "aria-label": this.intlClose, class: CSS$m.close, onClick: this.close, ref: (el) => (this.closeButtonEl = el), title: this.intlClose }, h("calcite-icon", { icon: ICONS$6.close, scale: this.scale === "s" ? "s" : "l" }))) : null;
|
|
14572
|
+
return !this.disableCloseButton ? (h("button", { "aria-label": this.intlClose, class: CSS$m.close, onClick: this.close, ref: (el) => (this.closeButtonEl = el), title: this.intlClose }, h("calcite-icon", { icon: ICONS$6.close, scale: this.scale === "s" ? "s" : this.scale === "m" ? "m" : this.scale === "l" ? "l" : null }))) : null;
|
|
14567
14573
|
}
|
|
14568
14574
|
renderStyle() {
|
|
14569
14575
|
const hasCustomWidth = !isNaN(parseInt(`${this.width}`));
|
|
@@ -15062,6 +15068,7 @@ const CSS$j = {
|
|
|
15062
15068
|
headerActionsStart: "header-actions--start",
|
|
15063
15069
|
contentWrapper: "content-wrapper",
|
|
15064
15070
|
contentContainer: "content-container",
|
|
15071
|
+
contentHeight: "content-height",
|
|
15065
15072
|
fabContainer: "fab-container",
|
|
15066
15073
|
footer: "footer",
|
|
15067
15074
|
menuContainer: "menu-container",
|
|
@@ -15092,7 +15099,7 @@ const TEXT$8 = {
|
|
|
15092
15099
|
};
|
|
15093
15100
|
const HEADING_LEVEL$4 = 3;
|
|
15094
15101
|
|
|
15095
|
-
const calcitePanelCss = "@-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:300ms}.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{-webkit-box-sizing:border-box;box-sizing:border-box;background-color:var(--calcite-ui-foreground-1);color:var(--calcite-ui-text-2);font-size:var(--calcite-font-size--1)}:host *{-webkit-box-sizing:border-box;box-sizing:border-box}:root{--calcite-popper-transition:150ms ease-in-out}:host([hidden]){display:none}:host{display:-ms-flexbox;display:flex;-ms-flex:1 1 auto;flex:1 1 auto;overflow:hidden;position:relative;width:100%;--calcite-min-header-height:calc(var(--calcite-icon-size) * 3);--calcite-panel-max-height:unset;--calcite-panel-width:100%;--calcite-panel-min-width:unset;--calcite-panel-max-width:unset}.header{margin:0;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-line-pack:justify;align-content:space-between;color:var(--calcite-ui-text-2);}.heading{font-weight:var(--calcite-font-weight-medium);margin:0;padding:0}.header .heading{-ms-flex:1 1 auto;flex:1 1 auto;padding:0.5rem}h1.heading{font-size:var(--calcite-font-size-2);line-height:1.5rem}h2.heading{font-size:var(--calcite-font-size-1);line-height:1.5rem}h3.heading{font-size:var(--calcite-font-size-0);line-height:1.25rem}h4.heading,h5.heading{font-size:var(--calcite-font-size--1);line-height:1rem}.container{display:-ms-flexbox;display:flex;-ms-flex:1 1 auto;flex:1 1 auto;-ms-flex-direction:column;flex-direction:column;-ms-flex-align:stretch;align-items:stretch;background-color:var(--calcite-ui-background);width:100%;padding:0;margin:0;max-height:var(--calcite-panel-max-height);width:var(--calcite-panel-width);max-width:var(--calcite-panel-max-width);min-width:var(--calcite-panel-min-width);-webkit-transition:max-height 150ms ease-in-out, width 150ms ease-in-out;transition:max-height 150ms ease-in-out, width 150ms ease-in-out}:host([height-scale=s]){--calcite-panel-max-height:40vh}:host([height-scale=m]){--calcite-panel-max-height:60vh}:host([height-scale=l]){--calcite-panel-max-height:80vh}:host([width-scale=s]){--calcite-panel-width:calc(var(--calcite-panel-width-multiplier) * 12vw);--calcite-panel-max-width:calc(var(--calcite-panel-width-multiplier) * 300px);--calcite-panel-min-width:calc(var(--calcite-panel-width-multiplier) * 150px)}:host([width-scale=m]){--calcite-panel-width:calc(var(--calcite-panel-width-multiplier) * 20vw);--calcite-panel-max-width:calc(var(--calcite-panel-width-multiplier) * 420px);--calcite-panel-min-width:calc(var(--calcite-panel-width-multiplier) * 240px)}:host([width-scale=l]){--calcite-panel-width:calc(var(--calcite-panel-width-multiplier) * 45vw);--calcite-panel-max-width:calc(var(--calcite-panel-width-multiplier) * 680px);--calcite-panel-min-width:calc(var(--calcite-panel-width-multiplier) * 340px)}.container[hidden]{display:none}:host([loading]) .container,:host([disabled]) .container{position:relative;z-index:1}.header{border-bottom:1px solid;-ms-flex-align:stretch;align-items:stretch;background-color:var(--calcite-ui-foreground-1);-ms-flex-pack:start;justify-content:flex-start;position:-webkit-sticky;position:sticky;top:0;border-bottom-color:var(--calcite-ui-border-3);width:100%;-ms-flex:0 0 auto;flex:0 0 auto;min-height:3rem;z-index:2}.header-content{overflow:hidden;margin-right:auto;padding-left:0.75rem;padding-right:0.75rem;padding-top:1rem;padding-bottom:1rem;display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column}.header-content .heading,.header-content .summary{padding:0;display:block;overflow:hidden;white-space:nowrap;width:100%;text-overflow:ellipsis}.header-content .heading{font-weight:var(--calcite-font-weight-medium);margin-top:0;margin-left:0;margin-right:0;margin-bottom:0.25rem;font-size:var(--calcite-font-size-0);line-height:1.25rem}.header-content .heading:only-child{margin-bottom:0}.header-content .summary{color:var(--calcite-ui-text-2);font-size:var(--calcite-font-size--1);line-height:1rem}.back-button{border-color:var(--calcite-ui-border-3);border-style:solid;border-width:0;border-right-width:1px}.calcite--rtl .back-button{border-right-width:0;border-left-width:1px}.header-actions{display:-ms-flexbox;display:flex;-ms-flex-align:stretch;align-items:stretch;-ms-flex-direction:row;flex-direction:row;-ms-flex-wrap:nowrap;flex-wrap:nowrap}.header-actions--end{margin-left:auto}.menu-container:only-child{margin-left:auto}.menu-button{-ms-flex-item-align:stretch;align-self:stretch;-ms-flex:0 1 auto;flex:0 1 auto;height:100%;position:relative}.menu{min-width:10rem;-ms-flex-flow:column nowrap;flex-flow:column nowrap}.content-wrapper{
|
|
15102
|
+
const calcitePanelCss = "@-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:300ms}.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{-webkit-box-sizing:border-box;box-sizing:border-box;background-color:var(--calcite-ui-foreground-1);color:var(--calcite-ui-text-2);font-size:var(--calcite-font-size--1)}:host *{-webkit-box-sizing:border-box;box-sizing:border-box}:root{--calcite-popper-transition:150ms ease-in-out}:host([hidden]){display:none}:host{display:-ms-flexbox;display:flex;-ms-flex:1 1 auto;flex:1 1 auto;overflow:hidden;position:relative;width:100%;--calcite-min-header-height:calc(var(--calcite-icon-size) * 3);--calcite-panel-max-height:unset;--calcite-panel-width:100%;--calcite-panel-min-width:unset;--calcite-panel-max-width:unset}.header{margin:0;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-line-pack:justify;align-content:space-between;color:var(--calcite-ui-text-2);}.heading{font-weight:var(--calcite-font-weight-medium);margin:0;padding:0}.header .heading{-ms-flex:1 1 auto;flex:1 1 auto;padding:0.5rem}h1.heading{font-size:var(--calcite-font-size-2);line-height:1.5rem}h2.heading{font-size:var(--calcite-font-size-1);line-height:1.5rem}h3.heading{font-size:var(--calcite-font-size-0);line-height:1.25rem}h4.heading,h5.heading{font-size:var(--calcite-font-size--1);line-height:1rem}.container{display:-ms-flexbox;display:flex;-ms-flex:1 1 auto;flex:1 1 auto;-ms-flex-direction:column;flex-direction:column;-ms-flex-align:stretch;align-items:stretch;background-color:var(--calcite-ui-background);width:100%;padding:0;margin:0;max-height:var(--calcite-panel-max-height);width:var(--calcite-panel-width);max-width:var(--calcite-panel-max-width);min-width:var(--calcite-panel-min-width);-webkit-transition:max-height 150ms ease-in-out, width 150ms ease-in-out;transition:max-height 150ms ease-in-out, width 150ms ease-in-out}:host([height-scale=s]){--calcite-panel-max-height:40vh}:host([height-scale=m]){--calcite-panel-max-height:60vh}:host([height-scale=l]){--calcite-panel-max-height:80vh}:host([width-scale=s]){--calcite-panel-width:calc(var(--calcite-panel-width-multiplier) * 12vw);--calcite-panel-max-width:calc(var(--calcite-panel-width-multiplier) * 300px);--calcite-panel-min-width:calc(var(--calcite-panel-width-multiplier) * 150px)}:host([width-scale=m]){--calcite-panel-width:calc(var(--calcite-panel-width-multiplier) * 20vw);--calcite-panel-max-width:calc(var(--calcite-panel-width-multiplier) * 420px);--calcite-panel-min-width:calc(var(--calcite-panel-width-multiplier) * 240px)}:host([width-scale=l]){--calcite-panel-width:calc(var(--calcite-panel-width-multiplier) * 45vw);--calcite-panel-max-width:calc(var(--calcite-panel-width-multiplier) * 680px);--calcite-panel-min-width:calc(var(--calcite-panel-width-multiplier) * 340px)}.container[hidden]{display:none}:host([loading]) .container,:host([disabled]) .container{position:relative;z-index:1}.header{border-bottom:1px solid;-ms-flex-align:stretch;align-items:stretch;background-color:var(--calcite-ui-foreground-1);-ms-flex-pack:start;justify-content:flex-start;position:-webkit-sticky;position:sticky;top:0;border-bottom-color:var(--calcite-ui-border-3);width:100%;-ms-flex:0 0 auto;flex:0 0 auto;min-height:3rem;z-index:2}.header-content{overflow:hidden;margin-right:auto;padding-left:0.75rem;padding-right:0.75rem;padding-top:1rem;padding-bottom:1rem;display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column}.header-content .heading,.header-content .summary{padding:0;display:block;overflow:hidden;white-space:nowrap;width:100%;text-overflow:ellipsis}.header-content .heading{font-weight:var(--calcite-font-weight-medium);margin-top:0;margin-left:0;margin-right:0;margin-bottom:0.25rem;font-size:var(--calcite-font-size-0);line-height:1.25rem}.header-content .heading:only-child{margin-bottom:0}.header-content .summary{color:var(--calcite-ui-text-2);font-size:var(--calcite-font-size--1);line-height:1rem}.back-button{border-color:var(--calcite-ui-border-3);border-style:solid;border-width:0;border-right-width:1px}.calcite--rtl .back-button{border-right-width:0;border-left-width:1px}.header-actions{display:-ms-flexbox;display:flex;-ms-flex-align:stretch;align-items:stretch;-ms-flex-direction:row;flex-direction:row;-ms-flex-wrap:nowrap;flex-wrap:nowrap}.header-actions--end{margin-left:auto}.menu-container:only-child{margin-left:auto}.menu-button{-ms-flex-item-align:stretch;align-self:stretch;-ms-flex:0 1 auto;flex:0 1 auto;height:100%;position:relative}.menu{min-width:10rem;-ms-flex-flow:column nowrap;flex-flow:column nowrap}.content-wrapper{overflow:auto}.content-height{height:100%}.content-container{-ms-flex-align:stretch;align-items:stretch;background-color:var(--calcite-ui-background);display:-ms-flexbox;display:flex;-ms-flex:1 1 auto;flex:1 1 auto;-ms-flex-wrap:nowrap;flex-wrap:nowrap;-ms-flex-direction:column;flex-direction:column}.footer{border-top:1px solid;background-color:var(--calcite-ui-foreground-1);border-top-color:var(--calcite-ui-border-3);display:-ms-flexbox;display:flex;-ms-flex-pack:space-evenly;justify-content:space-evenly;position:-webkit-sticky;position:sticky;bottom:0;width:100%;-ms-flex:0 0 auto;flex:0 0 auto;min-height:3rem;padding:0.5rem}.calcite--rtl .header-content{margin-left:auto;margin-right:unset}.calcite--rtl .header-actions--end{margin-right:auto;margin-left:unset}.calcite--rtl .menu-container:only-child{margin-right:auto;margin-left:unset}.fab-container{display:block;position:-webkit-sticky;position:sticky;margin-top:0;margin-bottom:0;margin-left:auto;margin-right:auto;padding:0.5rem;bottom:0;left:0;right:0;width:-moz-fit-content;width:-webkit-fit-content;width:fit-content;z-index:1}";
|
|
15096
15103
|
|
|
15097
15104
|
let CalcitePanel$1 = class extends HTMLElement$1 {
|
|
15098
15105
|
constructor() {
|
|
@@ -15188,7 +15195,7 @@ let CalcitePanel$1 = class extends HTMLElement$1 {
|
|
|
15188
15195
|
// --------------------------------------------------------------------------
|
|
15189
15196
|
renderBackButton() {
|
|
15190
15197
|
const { el } = this;
|
|
15191
|
-
const rtl =
|
|
15198
|
+
const rtl = getElementStyleDir(el) === "rtl";
|
|
15192
15199
|
const { showBackButton, intlBack, backButtonClick } = this;
|
|
15193
15200
|
const label = intlBack || TEXT$8.back;
|
|
15194
15201
|
const icon = rtl ? ICONS$5.backRight : ICONS$5.backLeft;
|
|
@@ -15254,12 +15261,12 @@ let CalcitePanel$1 = class extends HTMLElement$1 {
|
|
|
15254
15261
|
return hasFooterActions ? (h("footer", { class: CSS$j.footer }, h("slot", { name: SLOTS$c.footerActions }))) : null;
|
|
15255
15262
|
}
|
|
15256
15263
|
renderContent() {
|
|
15257
|
-
return (h("div", { class: CSS$j.contentWrapper, onScroll: this.panelScrollHandler, tabIndex: 0 }, h("section", { class: CSS$j.contentContainer }, h("slot", null)), this.renderFab()));
|
|
15258
|
-
}
|
|
15259
|
-
renderFab() {
|
|
15260
15264
|
const { el } = this;
|
|
15261
15265
|
const hasFab = getSlotted(el, SLOTS$c.fab);
|
|
15262
|
-
return hasFab ? (h("div", { class: CSS$j.
|
|
15266
|
+
return hasFab ? (h("div", { class: { [CSS$j.contentWrapper]: true, [CSS$j.contentHeight]: true }, onScroll: this.panelScrollHandler, tabIndex: 0 }, h("section", { class: CSS$j.contentContainer }, h("slot", null)), this.renderFab())) : (h("section", { class: { [CSS$j.contentWrapper]: true, [CSS$j.contentContainer]: true }, onScroll: this.panelScrollHandler, tabIndex: 0 }, h("slot", null)));
|
|
15267
|
+
}
|
|
15268
|
+
renderFab() {
|
|
15269
|
+
return (h("div", { class: CSS$j.fabContainer }, h("slot", { name: SLOTS$c.fab })));
|
|
15263
15270
|
}
|
|
15264
15271
|
render() {
|
|
15265
15272
|
const { dismissed, disabled, dismissible, el, loading, panelKeyUpHandler } = this;
|
|
@@ -16414,7 +16421,7 @@ let CalciteRadioButton$1 = class extends HTMLElement$1 {
|
|
|
16414
16421
|
return;
|
|
16415
16422
|
}
|
|
16416
16423
|
let adjustedKey = key;
|
|
16417
|
-
if (
|
|
16424
|
+
if (getElementStyleDir(el) === "rtl") {
|
|
16418
16425
|
if (key === "ArrowRight") {
|
|
16419
16426
|
adjustedKey = "ArrowLeft";
|
|
16420
16427
|
}
|
|
@@ -16703,7 +16710,7 @@ let CalciteRadioGroup$1 = class extends HTMLElement$1 {
|
|
|
16703
16710
|
//--------------------------------------------------------------------------
|
|
16704
16711
|
this.handleClick = (event) => {
|
|
16705
16712
|
if (event.target.localName === "calcite-radio-group-item") {
|
|
16706
|
-
this.selectItem(event.target);
|
|
16713
|
+
this.selectItem(event.target, true);
|
|
16707
16714
|
}
|
|
16708
16715
|
};
|
|
16709
16716
|
}
|
|
@@ -16722,7 +16729,6 @@ let CalciteRadioGroup$1 = class extends HTMLElement$1 {
|
|
|
16722
16729
|
.pop();
|
|
16723
16730
|
if (match) {
|
|
16724
16731
|
this.selectItem(match);
|
|
16725
|
-
this.calciteRadioGroupChange.emit(match.value);
|
|
16726
16732
|
}
|
|
16727
16733
|
else if (items[0]) {
|
|
16728
16734
|
items[0].tabIndex = 0;
|
|
@@ -16733,7 +16739,7 @@ let CalciteRadioGroup$1 = class extends HTMLElement$1 {
|
|
|
16733
16739
|
// Lifecycle
|
|
16734
16740
|
//
|
|
16735
16741
|
//--------------------------------------------------------------------------
|
|
16736
|
-
|
|
16742
|
+
componentWillLoad() {
|
|
16737
16743
|
const items = this.getItems();
|
|
16738
16744
|
const lastChecked = Array.from(items)
|
|
16739
16745
|
.filter((item) => item.checked)
|
|
@@ -16744,6 +16750,8 @@ let CalciteRadioGroup$1 = class extends HTMLElement$1 {
|
|
|
16744
16750
|
else if (items[0]) {
|
|
16745
16751
|
items[0].tabIndex = 0;
|
|
16746
16752
|
}
|
|
16753
|
+
}
|
|
16754
|
+
connectedCallback() {
|
|
16747
16755
|
connectLabel(this);
|
|
16748
16756
|
connectForm(this);
|
|
16749
16757
|
}
|
|
@@ -16751,19 +16759,13 @@ let CalciteRadioGroup$1 = class extends HTMLElement$1 {
|
|
|
16751
16759
|
disconnectLabel(this);
|
|
16752
16760
|
disconnectForm(this);
|
|
16753
16761
|
}
|
|
16754
|
-
componentDidLoad() {
|
|
16755
|
-
this.hasLoaded = true;
|
|
16756
|
-
}
|
|
16757
16762
|
render() {
|
|
16758
16763
|
return (h(Host, { onClick: this.handleClick, role: "radiogroup", tabIndex: this.disabled ? -1 : null }, h("slot", null), h(HiddenFormInputSlot, { component: this })));
|
|
16759
16764
|
}
|
|
16760
16765
|
handleSelected(event) {
|
|
16761
|
-
|
|
16762
|
-
|
|
16763
|
-
|
|
16764
|
-
event.preventDefault();
|
|
16765
|
-
this.selectItem(event.target);
|
|
16766
|
-
}
|
|
16766
|
+
event.stopPropagation();
|
|
16767
|
+
event.preventDefault();
|
|
16768
|
+
this.selectItem(event.target);
|
|
16767
16769
|
}
|
|
16768
16770
|
handleKeyDown(event) {
|
|
16769
16771
|
const keys = ["ArrowLeft", "ArrowUp", "ArrowRight", "ArrowDown", " "];
|
|
@@ -16773,7 +16775,7 @@ let CalciteRadioGroup$1 = class extends HTMLElement$1 {
|
|
|
16773
16775
|
return;
|
|
16774
16776
|
}
|
|
16775
16777
|
let adjustedKey = key;
|
|
16776
|
-
if (
|
|
16778
|
+
if (getElementStyleDir(el) === "rtl") {
|
|
16777
16779
|
if (key === "ArrowRight") {
|
|
16778
16780
|
adjustedKey = "ArrowLeft";
|
|
16779
16781
|
}
|
|
@@ -16793,17 +16795,17 @@ let CalciteRadioGroup$1 = class extends HTMLElement$1 {
|
|
|
16793
16795
|
case "ArrowUp":
|
|
16794
16796
|
event.preventDefault();
|
|
16795
16797
|
const previous = selectedIndex < 1 ? items.item(items.length - 1) : items.item(selectedIndex - 1);
|
|
16796
|
-
this.selectItem(previous);
|
|
16798
|
+
this.selectItem(previous, true);
|
|
16797
16799
|
return;
|
|
16798
16800
|
case "ArrowRight":
|
|
16799
16801
|
case "ArrowDown":
|
|
16800
16802
|
event.preventDefault();
|
|
16801
16803
|
const next = selectedIndex === -1 ? items.item(1) : items.item(selectedIndex + 1) || items.item(0);
|
|
16802
|
-
this.selectItem(next);
|
|
16804
|
+
this.selectItem(next, true);
|
|
16803
16805
|
return;
|
|
16804
16806
|
case " ":
|
|
16805
16807
|
event.preventDefault();
|
|
16806
|
-
this.selectItem(event.target);
|
|
16808
|
+
this.selectItem(event.target, true);
|
|
16807
16809
|
return;
|
|
16808
16810
|
default:
|
|
16809
16811
|
return;
|
|
@@ -16830,7 +16832,7 @@ let CalciteRadioGroup$1 = class extends HTMLElement$1 {
|
|
|
16830
16832
|
getItems() {
|
|
16831
16833
|
return this.el.querySelectorAll("calcite-radio-group-item");
|
|
16832
16834
|
}
|
|
16833
|
-
selectItem(selected) {
|
|
16835
|
+
selectItem(selected, emit = false) {
|
|
16834
16836
|
if (selected === this.selectedItem) {
|
|
16835
16837
|
return;
|
|
16836
16838
|
}
|
|
@@ -16844,6 +16846,9 @@ let CalciteRadioGroup$1 = class extends HTMLElement$1 {
|
|
|
16844
16846
|
item.tabIndex = matches ? 0 : -1;
|
|
16845
16847
|
if (matches) {
|
|
16846
16848
|
match = item;
|
|
16849
|
+
if (emit) {
|
|
16850
|
+
this.calciteRadioGroupChange.emit(match.value);
|
|
16851
|
+
}
|
|
16847
16852
|
}
|
|
16848
16853
|
});
|
|
16849
16854
|
this.selectedItem = match;
|
|
@@ -17242,6 +17247,7 @@ let CalciteSelect$1 = class extends HTMLElement$1 {
|
|
|
17242
17247
|
this.updateNativeElement(optionOrGroup, nativeEl);
|
|
17243
17248
|
if (isOption(optionOrGroup) && optionOrGroup.selected) {
|
|
17244
17249
|
this.deselectAllExcept(optionOrGroup);
|
|
17250
|
+
this.selectedOption = optionOrGroup;
|
|
17245
17251
|
}
|
|
17246
17252
|
}
|
|
17247
17253
|
//--------------------------------------------------------------------------
|
|
@@ -17281,7 +17287,7 @@ let CalciteSelect$1 = class extends HTMLElement$1 {
|
|
|
17281
17287
|
}
|
|
17282
17288
|
});
|
|
17283
17289
|
if (futureSelected) {
|
|
17284
|
-
|
|
17290
|
+
this.selectedOption = futureSelected;
|
|
17285
17291
|
}
|
|
17286
17292
|
}
|
|
17287
17293
|
toNativeElement(optionOrGroup) {
|
|
@@ -17526,7 +17532,7 @@ let CalciteShellPanel$1 = class extends HTMLElement$1 {
|
|
|
17526
17532
|
};
|
|
17527
17533
|
this.getKeyAdjustedWidth = (event) => {
|
|
17528
17534
|
const { key } = event;
|
|
17529
|
-
const { step, stepMultiplier, contentWidthMin, contentWidthMax, initialContentWidth, position } = this;
|
|
17535
|
+
const { el, step, stepMultiplier, contentWidthMin, contentWidthMax, initialContentWidth, position } = this;
|
|
17530
17536
|
const multipliedStep = step * stepMultiplier;
|
|
17531
17537
|
const MOVEMENT_KEYS = [
|
|
17532
17538
|
"ArrowUp",
|
|
@@ -17541,15 +17547,20 @@ let CalciteShellPanel$1 = class extends HTMLElement$1 {
|
|
|
17541
17547
|
if (MOVEMENT_KEYS.indexOf(key) > -1) {
|
|
17542
17548
|
event.preventDefault();
|
|
17543
17549
|
}
|
|
17544
|
-
const
|
|
17550
|
+
const dir = getElementStyleDir(el);
|
|
17551
|
+
const directionKeys = ["ArrowLeft", "ArrowRight"];
|
|
17552
|
+
const directionFactor = dir === "rtl" && directionKeys.includes(key) ? -1 : 1;
|
|
17553
|
+
const increaseKeys = key === "ArrowUp" ||
|
|
17554
|
+
(position === "end" ? key === directionKeys[0] : key === directionKeys[1]);
|
|
17545
17555
|
if (increaseKeys) {
|
|
17546
17556
|
const stepValue = event.shiftKey ? multipliedStep : step;
|
|
17547
|
-
return initialContentWidth + stepValue;
|
|
17557
|
+
return initialContentWidth + directionFactor * stepValue;
|
|
17548
17558
|
}
|
|
17549
|
-
const decreaseKeys = key === "ArrowDown" ||
|
|
17559
|
+
const decreaseKeys = key === "ArrowDown" ||
|
|
17560
|
+
(position === "end" ? key === directionKeys[1] : key === directionKeys[0]);
|
|
17550
17561
|
if (decreaseKeys) {
|
|
17551
17562
|
const stepValue = event.shiftKey ? multipliedStep : step;
|
|
17552
|
-
return initialContentWidth - stepValue;
|
|
17563
|
+
return initialContentWidth - directionFactor * stepValue;
|
|
17553
17564
|
}
|
|
17554
17565
|
if (typeof contentWidthMin === "number" && key === "Home") {
|
|
17555
17566
|
return contentWidthMin;
|
|
@@ -17574,9 +17585,13 @@ let CalciteShellPanel$1 = class extends HTMLElement$1 {
|
|
|
17574
17585
|
};
|
|
17575
17586
|
this.separatorPointerMove = (event) => {
|
|
17576
17587
|
event.preventDefault();
|
|
17577
|
-
const { initialContentWidth, position, initialClientX } = this;
|
|
17588
|
+
const { el, initialContentWidth, position, initialClientX } = this;
|
|
17578
17589
|
const offset = event.clientX - initialClientX;
|
|
17579
|
-
|
|
17590
|
+
const dir = getElementStyleDir(el);
|
|
17591
|
+
const adjustmentDirection = dir === "rtl" ? -1 : 1;
|
|
17592
|
+
const adjustedOffset = position === "end" ? -adjustmentDirection * offset : adjustmentDirection * offset;
|
|
17593
|
+
const width = initialContentWidth + adjustedOffset;
|
|
17594
|
+
this.setContentWidth(width);
|
|
17580
17595
|
};
|
|
17581
17596
|
this.separatorPointerUp = (event) => {
|
|
17582
17597
|
event.preventDefault();
|
|
@@ -22269,7 +22284,7 @@ let CalciteTabNav$1 = class extends HTMLElement$1 {
|
|
|
22269
22284
|
}
|
|
22270
22285
|
}
|
|
22271
22286
|
render() {
|
|
22272
|
-
const dir =
|
|
22287
|
+
const dir = getElementStyleDir(this.el);
|
|
22273
22288
|
const width = `${this.indicatorWidth}px`;
|
|
22274
22289
|
const offset = `${this.indicatorOffset}px`;
|
|
22275
22290
|
const indicatorStyle = dir !== "rtl" ? { width, left: offset } : { width, right: offset };
|
|
@@ -22326,7 +22341,7 @@ let CalciteTabNav$1 = class extends HTMLElement$1 {
|
|
|
22326
22341
|
}
|
|
22327
22342
|
updateOffsetPosition() {
|
|
22328
22343
|
var _a, _b, _c, _d, _e;
|
|
22329
|
-
const dir =
|
|
22344
|
+
const dir = getElementStyleDir(this.el);
|
|
22330
22345
|
const navWidth = (_a = this.activeIndicatorContainerEl) === null || _a === void 0 ? void 0 : _a.offsetWidth;
|
|
22331
22346
|
const tabLeft = (_b = this.selectedTabEl) === null || _b === void 0 ? void 0 : _b.offsetLeft;
|
|
22332
22347
|
const tabWidth = (_c = this.selectedTabEl) === null || _c === void 0 ? void 0 : _c.offsetWidth;
|
|
@@ -22486,7 +22501,7 @@ let CalciteTabTitle$1 = class extends HTMLElement$1 {
|
|
|
22486
22501
|
e.preventDefault();
|
|
22487
22502
|
break;
|
|
22488
22503
|
case "ArrowRight":
|
|
22489
|
-
if (
|
|
22504
|
+
if (getElementStyleDir(this.el) === "ltr") {
|
|
22490
22505
|
this.calciteTabsFocusNext.emit();
|
|
22491
22506
|
}
|
|
22492
22507
|
else {
|
|
@@ -22494,7 +22509,7 @@ let CalciteTabTitle$1 = class extends HTMLElement$1 {
|
|
|
22494
22509
|
}
|
|
22495
22510
|
break;
|
|
22496
22511
|
case "ArrowLeft":
|
|
22497
|
-
if (
|
|
22512
|
+
if (getElementStyleDir(this.el) === "ltr") {
|
|
22498
22513
|
this.calciteTabsFocusPrevious.emit();
|
|
22499
22514
|
}
|
|
22500
22515
|
else {
|
|
@@ -23806,7 +23821,7 @@ let CalciteTipManager$1 = class extends HTMLElement$1 {
|
|
|
23806
23821
|
//
|
|
23807
23822
|
// --------------------------------------------------------------------------
|
|
23808
23823
|
renderPagination() {
|
|
23809
|
-
const dir =
|
|
23824
|
+
const dir = getElementStyleDir(this.el);
|
|
23810
23825
|
const { selectedIndex, tips, total, intlNext, intlPrevious, intlPaginationLabel } = this;
|
|
23811
23826
|
const nextLabel = intlNext || TEXT$1.next;
|
|
23812
23827
|
const previousLabel = intlPrevious || TEXT$1.previous;
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
* See https://github.com/Esri/calcite-components/blob/master/LICENSE.md for details.
|
|
4
4
|
*/
|
|
5
5
|
import { f as forceUpdate, h } from './index-9de00868.js';
|
|
6
|
-
import { a as getElementDir } from './dom-
|
|
6
|
+
import { a as getElementStyleDir, b as getElementDir } from './dom-dc012a45.js';
|
|
7
7
|
import { S as SLOTS } from './resources-584acd9b.js';
|
|
8
8
|
import { S as SLOTS$1 } from './resources-7c6029b6.js';
|
|
9
9
|
|
|
@@ -71,7 +71,7 @@ const setTooltipReference = ({ tooltip, referenceElement, expanded, ref }) => {
|
|
|
71
71
|
return referenceElement;
|
|
72
72
|
};
|
|
73
73
|
const CalciteExpandToggle = ({ expanded, intlExpand, intlCollapse, toggle, el, position, tooltip, ref, scale }) => {
|
|
74
|
-
const rtl =
|
|
74
|
+
const rtl = getElementStyleDir(el) === "rtl";
|
|
75
75
|
const expandText = expanded ? intlCollapse : intlExpand;
|
|
76
76
|
const icons = [ICONS.chevronsLeft, ICONS.chevronsRight];
|
|
77
77
|
if (rtl) {
|
|
@@ -80,7 +80,7 @@ const CalciteExpandToggle = ({ expanded, intlExpand, intlCollapse, toggle, el, p
|
|
|
80
80
|
const end = getCalcitePosition(position, el) === "end";
|
|
81
81
|
const expandIcon = end ? icons[1] : icons[0];
|
|
82
82
|
const collapseIcon = end ? icons[0] : icons[1];
|
|
83
|
-
const actionNode = (h("calcite-action", { dir: rtl ? "rtl" : "ltr", icon: expanded ? expandIcon : collapseIcon, onClick: toggle, ref: (referenceElement) => setTooltipReference({ tooltip, referenceElement, expanded, ref }), scale: scale, text: expandText, textEnabled: expanded }));
|
|
83
|
+
const actionNode = (h("calcite-action", { dir: getElementDir(el) === "rtl" ? "rtl" : "ltr", icon: expanded ? expandIcon : collapseIcon, onClick: toggle, ref: (referenceElement) => setTooltipReference({ tooltip, referenceElement, expanded, ref }), scale: scale, text: expandText, textEnabled: expanded }));
|
|
84
84
|
return tooltip ? h("calcite-tooltip-manager", null, actionNode) : actionNode;
|
|
85
85
|
};
|
|
86
86
|
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
*/
|
|
5
5
|
import { r as registerInstance, c as createEvent, h, g as getElement, H as Host } from './index-9de00868.js';
|
|
6
6
|
import { g as getKey } from './key-69001a68.js';
|
|
7
|
-
import {
|
|
7
|
+
import { e as getElementProp, b as getElementDir, C as CSS_UTILITY } from './dom-dc012a45.js';
|
|
8
8
|
import './guid-196bd5ea.js';
|
|
9
9
|
|
|
10
10
|
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:300ms}.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:150ms ease-in-out}: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{display:block;position:relative;max-width:100%;border-width:1px;border-style:solid;border-color:var(--calcite-ui-border-2);border-bottom-width:0;line-height:1.5rem;--calcite-accordion-item-border:var(--calcite-ui-border-2);--calcite-accordion-item-background:var(--calcite-ui-foreground-1)}:host([appearance=minimal]){--calcite-accordion-item-padding:var(--calcite-accordion-item-spacing-unit) 0;border-color:transparent}:host([appearance=transparent]){border-color:transparent;--calcite-accordion-item-border:transparent;--calcite-accordion-item-background:transparent}";
|
|
@@ -3,8 +3,8 @@
|
|
|
3
3
|
* See https://github.com/Esri/calcite-components/blob/master/LICENSE.md for details.
|
|
4
4
|
*/
|
|
5
5
|
import { r as registerInstance, c as createEvent, h, H as Host, g as getElement } from './index-9de00868.js';
|
|
6
|
-
import { t as toggleChildActionText, o as overflowActionsDebounceInMs, q as queryActions, a as overflowActions, C as CalciteExpandToggle, g as getOverflowCount } from './CalciteExpandToggle-
|
|
7
|
-
import { f as focusElement, g as getSlotted } from './dom-
|
|
6
|
+
import { t as toggleChildActionText, o as overflowActionsDebounceInMs, q as queryActions, a as overflowActions, C as CalciteExpandToggle, g as getOverflowCount } from './CalciteExpandToggle-4b38a7d1.js';
|
|
7
|
+
import { f as focusElement, g as getSlotted } from './dom-dc012a45.js';
|
|
8
8
|
import { c as createObserver } from './observers-8f0bc419.js';
|
|
9
9
|
import { d as debounce } from './debounce-79648d42.js';
|
|
10
10
|
import './resources-584acd9b.js';
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
*/
|
|
5
5
|
import { r as registerInstance, h, F as Fragment, g as getElement } from './index-9de00868.js';
|
|
6
6
|
import { S as SLOTS, I as ICONS, T as TEXT } from './resources-7c6029b6.js';
|
|
7
|
-
import { g as getSlotted } from './dom-
|
|
7
|
+
import { g as getSlotted } from './dom-dc012a45.js';
|
|
8
8
|
import { S as SLOTS$1 } from './resources-584acd9b.js';
|
|
9
9
|
import './guid-196bd5ea.js';
|
|
10
10
|
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
*/
|
|
5
5
|
import { r as registerInstance, c as createEvent, h, F as Fragment, g as getElement } from './index-9de00868.js';
|
|
6
6
|
import { C as CSS, I as ICONS, S as SLOTS } from './resources-584acd9b.js';
|
|
7
|
-
import { g as getSlotted, f as focusElement } from './dom-
|
|
7
|
+
import { g as getSlotted, f as focusElement } from './dom-dc012a45.js';
|
|
8
8
|
import { g as getRoundRobinIndex } from './array-91a648e2.js';
|
|
9
9
|
import { g as guid } from './guid-196bd5ea.js';
|
|
10
10
|
import { c as createObserver } from './observers-8f0bc419.js';
|
|
@@ -3,8 +3,8 @@
|
|
|
3
3
|
* See https://github.com/Esri/calcite-components/blob/master/LICENSE.md for details.
|
|
4
4
|
*/
|
|
5
5
|
import { r as registerInstance, c as createEvent, h, H as Host, g as getElement } from './index-9de00868.js';
|
|
6
|
-
import { t as toggleChildActionText, C as CalciteExpandToggle } from './CalciteExpandToggle-
|
|
7
|
-
import { f as focusElement, g as getSlotted,
|
|
6
|
+
import { t as toggleChildActionText, C as CalciteExpandToggle } from './CalciteExpandToggle-4b38a7d1.js';
|
|
7
|
+
import { f as focusElement, g as getSlotted, b as getElementDir, C as CSS_UTILITY } from './dom-dc012a45.js';
|
|
8
8
|
import './resources-584acd9b.js';
|
|
9
9
|
import './resources-7c6029b6.js';
|
|
10
10
|
import './guid-196bd5ea.js';
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
* See https://github.com/Esri/calcite-components/blob/master/LICENSE.md for details.
|
|
4
4
|
*/
|
|
5
5
|
import { r as registerInstance, c as createEvent, h, H as Host, g as getElement } from './index-9de00868.js';
|
|
6
|
-
import { s as setRequestedIcon,
|
|
6
|
+
import { s as setRequestedIcon, b as getElementDir, C as CSS_UTILITY } from './dom-dc012a45.js';
|
|
7
7
|
import { S as StatusIcons } from './interfaces-51dc4e1b.js';
|
|
8
8
|
import './guid-196bd5ea.js';
|
|
9
9
|
|
|
@@ -60,13 +60,11 @@ let CalciteAlert = class {
|
|
|
60
60
|
this.queueLength = 0;
|
|
61
61
|
/** is the alert queued */
|
|
62
62
|
this.queued = false;
|
|
63
|
-
this.
|
|
64
|
-
this.trackTimer =
|
|
63
|
+
this.autoDismissTimeoutId = null;
|
|
64
|
+
this.trackTimer = Date.now();
|
|
65
65
|
/** close and emit the closed alert and the queue */
|
|
66
66
|
this.closeAlert = () => {
|
|
67
|
-
|
|
68
|
-
this.autoDismissTimeout = null;
|
|
69
|
-
}
|
|
67
|
+
this.autoDismissTimeoutId = null;
|
|
70
68
|
this.queued = false;
|
|
71
69
|
this.active = false;
|
|
72
70
|
this.queue = this.queue.filter((e) => e !== this.el);
|
|
@@ -90,10 +88,10 @@ let CalciteAlert = class {
|
|
|
90
88
|
updateRequestedIcon() {
|
|
91
89
|
this.requestedIcon = setRequestedIcon(StatusIcons, this.icon, this.color);
|
|
92
90
|
}
|
|
93
|
-
updateDuration(
|
|
94
|
-
if (this.autoDismiss &&
|
|
95
|
-
window.clearTimeout(this.
|
|
96
|
-
this.
|
|
91
|
+
updateDuration() {
|
|
92
|
+
if (this.autoDismiss && this.autoDismissTimeoutId) {
|
|
93
|
+
window.clearTimeout(this.autoDismissTimeoutId);
|
|
94
|
+
this.autoDismissTimeoutId = window.setTimeout(() => this.closeAlert(), DURATIONS[this.autoDismissDuration] - (Date.now() - this.trackTimer));
|
|
97
95
|
}
|
|
98
96
|
}
|
|
99
97
|
//--------------------------------------------------------------------------
|
|
@@ -113,9 +111,7 @@ let CalciteAlert = class {
|
|
|
113
111
|
this.alertLinkEl = this.el.querySelectorAll("calcite-link")[0];
|
|
114
112
|
}
|
|
115
113
|
disconnectedCallback() {
|
|
116
|
-
|
|
117
|
-
window.clearTimeout(this.autoDismissTimeout);
|
|
118
|
-
}
|
|
114
|
+
window.clearTimeout(this.autoDismissTimeoutId);
|
|
119
115
|
}
|
|
120
116
|
render() {
|
|
121
117
|
const dir = getElementDir(this.el);
|
|
@@ -123,14 +119,13 @@ let CalciteAlert = class {
|
|
|
123
119
|
const queueText = `+${this.queueLength > 2 ? this.queueLength - 1 : 1}`;
|
|
124
120
|
const queueCount = (h("div", { class: `${this.queueLength > 1 ? "active " : ""}alert-queue-count` }, h("calcite-chip", { scale: this.scale, value: queueText }, queueText)));
|
|
125
121
|
const { active, autoDismiss, label, queued, requestedIcon } = this;
|
|
126
|
-
const progressBar = h("div", { class: "alert-dismiss-progress" });
|
|
127
122
|
const role = autoDismiss ? "alert" : "alertdialog";
|
|
128
123
|
const hidden = !active;
|
|
129
124
|
return (h(Host, { "aria-hidden": hidden.toString(), "aria-label": label, "calcite-hydrated-hidden": hidden, role: role }, h("div", { class: {
|
|
130
125
|
container: true,
|
|
131
126
|
queued,
|
|
132
127
|
[CSS_UTILITY.rtl]: dir === "rtl"
|
|
133
|
-
} }, requestedIcon ? (h("div", { class: "alert-icon" }, h("calcite-icon", { icon: requestedIcon, scale: this.scale === "l" ? "m" : "s" }))) : null, h("div", { class: "alert-content" }, h("slot", { name: SLOTS.title }), h("slot", { name: SLOTS.message }), h("slot", { name: SLOTS.link })), queueCount, !autoDismiss ? closeButton : null, active && !queued && autoDismiss ?
|
|
128
|
+
} }, requestedIcon ? (h("div", { class: "alert-icon" }, h("calcite-icon", { icon: requestedIcon, scale: this.scale === "l" ? "m" : "s" }))) : null, h("div", { class: "alert-content" }, h("slot", { name: SLOTS.title }), h("slot", { name: SLOTS.message }), h("slot", { name: SLOTS.link })), queueCount, !autoDismiss ? closeButton : null, active && !queued && autoDismiss ? h("div", { class: "alert-dismiss-progress" }) : null)));
|
|
134
129
|
}
|
|
135
130
|
// when an alert is opened or closed, update queue and determine active alert
|
|
136
131
|
alertSync(event) {
|
|
@@ -176,9 +171,9 @@ let CalciteAlert = class {
|
|
|
176
171
|
var _a;
|
|
177
172
|
if (((_a = this.queue) === null || _a === void 0 ? void 0 : _a[0]) === this.el) {
|
|
178
173
|
this.openAlert();
|
|
179
|
-
if (this.autoDismiss && !this.
|
|
180
|
-
this.trackTimer =
|
|
181
|
-
this.
|
|
174
|
+
if (this.autoDismiss && !this.autoDismissTimeoutId) {
|
|
175
|
+
this.trackTimer = Date.now();
|
|
176
|
+
this.autoDismissTimeoutId = window.setTimeout(() => this.closeAlert(), DURATIONS[this.autoDismissDuration]);
|
|
182
177
|
}
|
|
183
178
|
}
|
|
184
179
|
else {
|