@esri/calcite-components 1.0.0-next.460 → 1.0.0-next.463
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 +2 -2
- package/dist/calcite/calcite.js +1 -1
- package/dist/calcite/index.esm.js +1 -1
- package/dist/calcite/{p-18873966.system.entry.js → p-012bac2f.system.entry.js} +2 -2
- package/dist/calcite/p-03763324.entry.js +6 -0
- package/dist/calcite/p-04937667.system.entry.js +6 -0
- package/dist/calcite/p-0522f64b.system.entry.js +6 -0
- package/dist/calcite/{p-8e6d12b8.system.js → p-05b658c3.system.js} +1 -1
- package/dist/calcite/{p-30ff5207.system.js → p-05ff73fa.system.js} +1 -1
- package/dist/calcite/p-067ec802.entry.js +6 -0
- package/dist/calcite/p-072c5078.entry.js +6 -0
- package/dist/calcite/{p-99066459.system.js → p-073fd396.system.js} +1 -1
- package/dist/calcite/p-08a0e5e7.system.entry.js +6 -0
- package/dist/calcite/{p-3e21be06.entry.js → p-0b234a4e.entry.js} +2 -2
- package/dist/calcite/{p-de803e0e.system.js → p-137de7a9.system.js} +2 -2
- package/dist/calcite/{p-d2d4f39e.system.entry.js → p-13e51a75.system.entry.js} +2 -2
- package/dist/calcite/{p-837910ca.system.entry.js → p-17cfb9c1.system.entry.js} +2 -2
- package/dist/calcite/{p-6dc32060.js → p-18214d4e.js} +1 -1
- package/dist/calcite/{p-88fa0aa1.system.js → p-185f9c9b.system.js} +1 -1
- package/dist/calcite/p-1db9909c.system.entry.js +6 -0
- package/dist/calcite/{p-4738ca8f.js → p-1e972f14.js} +1 -1
- package/dist/calcite/{p-dcd120aa.entry.js → p-21e2f111.entry.js} +2 -2
- package/dist/calcite/{p-1531ca90.system.js → p-225e070b.system.js} +1 -1
- package/dist/calcite/p-24639718.system.entry.js +6 -0
- package/dist/calcite/{p-7febaf2b.entry.js → p-26bfa2c8.entry.js} +2 -2
- package/dist/calcite/p-27420098.entry.js +6 -0
- package/dist/calcite/p-278c6aa7.system.entry.js +6 -0
- package/dist/calcite/p-27a45f19.entry.js +6 -0
- package/dist/calcite/{p-cf07e076.system.entry.js → p-29ed09b3.system.entry.js} +3 -3
- package/dist/calcite/p-2a615182.system.entry.js +6 -0
- package/dist/calcite/{p-bb0c44b0.system.entry.js → p-2afda726.system.entry.js} +2 -2
- package/dist/calcite/{p-5d4ff560.system.entry.js → p-2e89b88a.system.entry.js} +2 -2
- package/dist/calcite/{p-3f025198.js → p-2eb0e6b1.js} +2 -2
- package/dist/calcite/p-30b68104.system.entry.js +6 -0
- package/dist/calcite/p-30dffd65.system.entry.js +6 -0
- package/dist/calcite/p-317352ba.entry.js +6 -0
- package/dist/calcite/{p-d59c594f.js → p-35bd5b33.js} +1 -1
- package/dist/calcite/{p-503903b8.entry.js → p-360efa27.entry.js} +2 -2
- package/dist/calcite/{p-d46a5053.system.js → p-36a10379.system.js} +1 -1
- package/dist/calcite/p-39ab2b28.entry.js +6 -0
- package/dist/calcite/{p-a33322b5.entry.js → p-3a4c9534.entry.js} +2 -2
- package/dist/calcite/p-3b0435eb.entry.js +6 -0
- package/dist/calcite/{p-b7dfb289.entry.js → p-3b663fe3.entry.js} +2 -2
- package/dist/calcite/{p-898bbc37.js → p-3c53fae2.js} +2 -2
- package/dist/calcite/p-3cd9efd8.entry.js +6 -0
- package/dist/calcite/{p-2ec4474b.entry.js → p-3ecd932e.entry.js} +2 -2
- package/dist/calcite/p-3fc798b0.js +6 -0
- package/dist/calcite/p-4190c2db.js +6 -0
- package/dist/calcite/{p-a1da11d4.system.entry.js → p-41de1929.system.entry.js} +2 -2
- package/dist/calcite/{p-75f77bad.js → p-41edf365.js} +2 -2
- package/dist/calcite/{p-65c7a71b.system.js → p-42ca4516.system.js} +2 -2
- package/dist/calcite/{p-fb6d978e.system.js → p-430e291b.system.js} +1 -1
- package/dist/calcite/{p-f8b04802.system.js → p-44002bba.system.js} +2 -2
- package/dist/calcite/{p-17135b9a.system.entry.js → p-44d3686d.system.entry.js} +2 -2
- package/dist/calcite/p-45721bc0.system.entry.js +6 -0
- package/dist/calcite/p-489d6ea3.entry.js +6 -0
- package/dist/calcite/{p-d43c578e.entry.js → p-493cf5fc.entry.js} +2 -2
- package/dist/calcite/{p-4ff298fe.js → p-499ed95d.js} +2 -2
- package/dist/calcite/{p-e64ad06b.system.entry.js → p-4b8c54ff.system.entry.js} +2 -2
- package/dist/calcite/p-4baae866.entry.js +6 -0
- package/dist/calcite/{p-1ba33b3b.system.js → p-54921a0f.system.js} +1 -1
- package/dist/calcite/{p-fae07bff.system.entry.js → p-55e8aae7.system.entry.js} +2 -2
- package/dist/calcite/{p-9d562aa6.js → p-586668c1.js} +1 -1
- package/dist/calcite/p-5d3ce50b.system.entry.js +6 -0
- package/dist/calcite/{p-426220ba.entry.js → p-5d71b7da.entry.js} +2 -2
- package/dist/calcite/p-5f2ab479.system.js +6 -0
- package/dist/calcite/p-5f44791e.system.entry.js +6 -0
- package/dist/calcite/p-6071b8bf.entry.js +6 -0
- package/dist/calcite/{p-9b790cd6.system.js → p-63e00123.system.js} +2 -2
- package/dist/calcite/{p-132c4fbc.entry.js → p-640889b4.entry.js} +2 -2
- package/dist/calcite/{p-1b3cd523.entry.js → p-67114561.entry.js} +2 -2
- package/dist/calcite/{p-7cb5488d.entry.js → p-6720f642.entry.js} +2 -2
- package/dist/calcite/{p-7c252d22.system.js → p-676a9d2a.system.js} +2 -2
- package/dist/calcite/{p-bbc23e1d.system.js → p-676ea8f3.system.js} +1 -1
- package/dist/calcite/{p-d6e4ed4b.system.entry.js → p-689daf2f.system.entry.js} +2 -2
- package/dist/calcite/{p-8256e10b.system.entry.js → p-68d9e58f.system.entry.js} +2 -2
- package/dist/calcite/p-698a69e3.entry.js +6 -0
- package/dist/calcite/p-69ed1a6a.system.entry.js +6 -0
- package/dist/calcite/{p-f2d72a02.system.js → p-6ad06ac7.system.js} +1 -1
- package/dist/calcite/{p-7093828d.entry.js → p-6b82d37a.entry.js} +2 -2
- package/dist/calcite/p-6f876aa0.system.js +6 -0
- package/dist/calcite/{p-c06f1557.js → p-70b93d65.js} +1 -1
- package/dist/calcite/{p-1c002fcb.entry.js → p-71236fc9.entry.js} +2 -2
- package/dist/calcite/{p-002a5b22.system.entry.js → p-723e6a58.system.entry.js} +2 -2
- package/dist/calcite/p-7247130b.system.entry.js +6 -0
- package/dist/calcite/p-7475a9e7.system.entry.js +6 -0
- package/dist/calcite/{p-ec562709.js → p-74bf1ba2.js} +1 -1
- package/dist/calcite/p-76e38da9.system.entry.js +6 -0
- package/dist/calcite/{p-8440e79f.js → p-77d89707.js} +1 -1
- package/dist/calcite/p-77e0f1ba.system.js +6 -0
- package/dist/calcite/{p-2278a71e.system.entry.js → p-79a24ed8.system.entry.js} +2 -2
- package/dist/calcite/{p-afdfd261.system.js → p-7b4eb54d.system.js} +3 -3
- package/dist/calcite/p-7be626d2.entry.js +6 -0
- package/dist/calcite/p-7bf6b07a.system.entry.js +6 -0
- package/dist/calcite/{p-3473ca95.entry.js → p-807c0746.entry.js} +2 -2
- package/dist/calcite/{p-7acb41e5.js → p-80c66ef6.js} +1 -1
- package/dist/calcite/{p-6e96b12f.system.entry.js → p-85b200b1.system.entry.js} +2 -2
- package/dist/calcite/p-88812e35.entry.js +6 -0
- package/dist/calcite/p-895fa8d6.js +6 -0
- package/dist/calcite/{p-03bf13ce.js → p-8a331a16.js} +1 -1
- package/dist/calcite/{p-2ecde02d.entry.js → p-8a835fa9.entry.js} +2 -2
- package/dist/calcite/{p-d79d3502.system.entry.js → p-8b7d78b5.system.entry.js} +2 -2
- package/dist/calcite/p-8f0f191f.entry.js +6 -0
- package/dist/calcite/p-920eeb64.entry.js +6 -0
- package/dist/calcite/{p-cc9c446b.entry.js → p-9325521b.entry.js} +2 -2
- package/dist/calcite/{p-4cd5391e.entry.js → p-935d3d34.entry.js} +2 -2
- package/dist/calcite/p-946dfbbe.entry.js +6 -0
- package/dist/calcite/{p-6386a010.js → p-966eacae.js} +2 -2
- package/dist/calcite/{p-79ee3046.system.entry.js → p-977e2f2b.system.entry.js} +2 -2
- package/dist/calcite/p-995a2abe.system.js +6 -0
- package/dist/calcite/{p-e7088de0.system.entry.js → p-9a39f2ad.system.entry.js} +2 -2
- package/dist/calcite/p-9f34e6ed.system.entry.js +6 -0
- package/dist/calcite/{p-031256e6.system.entry.js → p-a10a7033.system.entry.js} +2 -2
- package/dist/calcite/{p-635134ee.system.entry.js → p-a116f984.system.entry.js} +2 -2
- package/dist/calcite/{p-0d3ee826.system.entry.js → p-a32c02b2.system.entry.js} +2 -2
- package/dist/calcite/{p-cc00c1e0.system.js → p-a36c3433.system.js} +2 -2
- package/dist/calcite/p-a46f9a15.entry.js +6 -0
- package/dist/calcite/p-a576cc5c.entry.js +6 -0
- package/dist/calcite/{p-7d751138.system.entry.js → p-a6715157.system.entry.js} +2 -2
- package/dist/calcite/{p-46067095.js → p-a8c3f4e4.js} +1 -1
- package/dist/calcite/{p-a6bf61eb.js → p-a9b775b2.js} +1 -1
- package/dist/calcite/{p-4abfedbe.entry.js → p-aa7868b7.entry.js} +2 -2
- package/dist/calcite/{p-985b0ca1.js → p-b04542ff.js} +1 -1
- package/dist/calcite/p-b21561ed.system.entry.js +6 -0
- package/dist/calcite/{p-de6cf59a.js → p-b5f633a5.js} +1 -1
- package/dist/calcite/{p-8cd6f314.system.entry.js → p-b9447f9d.system.entry.js} +2 -2
- package/dist/calcite/{p-da30d63c.system.entry.js → p-bb2d0079.system.entry.js} +2 -2
- package/dist/calcite/p-bcf85a09.system.entry.js +6 -0
- package/dist/calcite/{p-b866654a.system.js → p-bfd25463.system.js} +1 -1
- package/dist/calcite/p-c4d7b59e.entry.js +6 -0
- package/dist/calcite/{p-4870e446.system.entry.js → p-c58e1477.system.entry.js} +2 -2
- package/dist/calcite/p-c5d15f7c.system.entry.js +6 -0
- package/dist/calcite/p-c5fbab16.entry.js +6 -0
- package/dist/calcite/p-c6bd1de7.system.entry.js +6 -0
- package/dist/calcite/{p-e709a866.system.entry.js → p-c706af28.system.entry.js} +2 -2
- package/dist/calcite/{p-f48de06f.system.entry.js → p-cbdaab9c.system.entry.js} +2 -2
- package/dist/calcite/p-cd25fd53.entry.js +6 -0
- package/dist/calcite/{p-4c06be13.js → p-cdb71230.js} +2 -2
- package/dist/calcite/{p-06e5a9ca.system.entry.js → p-d159bdc7.system.entry.js} +2 -2
- package/dist/calcite/{p-df4a0b4a.entry.js → p-d1a695ef.entry.js} +2 -2
- package/dist/calcite/p-d2bd3e50.system.js +6 -0
- package/dist/calcite/{p-09b5cdce.system.entry.js → p-d36cbfc9.system.entry.js} +2 -2
- package/dist/calcite/{p-277153f9.entry.js → p-d3ed373e.entry.js} +2 -2
- package/dist/calcite/p-d3fff0e6.system.entry.js +6 -0
- package/dist/calcite/{p-b950de85.entry.js → p-d604f84d.entry.js} +2 -2
- package/dist/calcite/p-d64a7840.js +6 -0
- package/dist/calcite/{p-b47ca820.system.entry.js → p-dad38a9d.system.entry.js} +2 -2
- package/dist/calcite/{p-3d03d240.entry.js → p-db491eaa.entry.js} +2 -2
- package/dist/calcite/p-db524aef.entry.js +6 -0
- package/dist/calcite/p-dee24ce2.system.entry.js +6 -0
- package/dist/calcite/p-e18b1b95.system.entry.js +6 -0
- package/dist/calcite/{p-171df6d5.system.js → p-e7ad40f8.system.js} +1 -1
- package/dist/calcite/{p-ce3e0ceb.entry.js → p-eba1098d.entry.js} +2 -2
- package/dist/calcite/p-ecf5a2bd.js +6 -0
- package/dist/calcite/{p-cec41051.system.js → p-ee130cac.system.js} +1 -1
- package/dist/calcite/{p-e05ca959.entry.js → p-f452a7ef.entry.js} +2 -2
- package/dist/calcite/p-f468edcd.entry.js +6 -0
- package/dist/calcite/p-f54d8728.entry.js +6 -0
- package/dist/calcite/{p-0f147bc7.entry.js → p-f72f050b.entry.js} +2 -2
- package/dist/calcite/{p-005bb727.system.js → p-f7435fc9.system.js} +1 -1
- package/dist/calcite/p-f7850dc8.entry.js +6 -0
- package/dist/calcite/{p-164f2d13.entry.js → p-f903ded8.entry.js} +2 -2
- package/dist/calcite/{p-e5d15c01.entry.js → p-f937bc8c.entry.js} +2 -2
- package/dist/calcite/{p-43dcff1c.entry.js → p-f94ef41e.entry.js} +2 -2
- package/dist/calcite/{p-2ce8bc86.system.entry.js → p-f991d05a.system.entry.js} +2 -2
- package/dist/calcite/p-fbc26740.entry.js +6 -0
- package/dist/calcite/{p-a0356871.system.entry.js → p-feb710e4.system.entry.js} +2 -2
- package/dist/cjs/{ExpandToggle-29ae1a57.js → ExpandToggle-eec03d68.js} +5 -5
- package/dist/cjs/{Heading-5ac9dde8.js → Heading-3dca469a.js} +2 -2
- package/dist/cjs/{array-7c34ba51.js → array-c55dfade.js} +1 -1
- package/dist/cjs/calcite-accordion_2.cjs.entry.js +5 -5
- package/dist/cjs/calcite-action-bar.cjs.entry.js +10 -10
- package/dist/cjs/calcite-action-group.cjs.entry.js +8 -8
- package/dist/cjs/calcite-action-menu.cjs.entry.js +9 -9
- package/dist/cjs/calcite-action-pad.cjs.entry.js +9 -9
- package/dist/cjs/calcite-action.cjs.entry.js +7 -5
- package/dist/cjs/calcite-alert.cjs.entry.js +6 -6
- package/dist/cjs/calcite-avatar.cjs.entry.js +5 -5
- package/dist/cjs/calcite-block_2.cjs.entry.js +12 -12
- package/dist/cjs/calcite-button.cjs.entry.js +11 -10
- package/dist/cjs/calcite-card.cjs.entry.js +7 -7
- package/dist/cjs/calcite-checkbox.cjs.entry.js +8 -8
- package/dist/cjs/calcite-chip.cjs.entry.js +6 -6
- package/dist/cjs/calcite-color-picker_3.cjs.entry.js +21 -11
- package/dist/cjs/calcite-combobox_3.cjs.entry.js +18 -15
- package/dist/cjs/calcite-date-picker_4.cjs.entry.js +9 -9
- package/dist/cjs/calcite-dropdown_3.cjs.entry.js +9 -9
- package/dist/cjs/calcite-fab.cjs.entry.js +5 -5
- package/dist/cjs/calcite-filter.cjs.entry.js +12 -9
- package/dist/cjs/calcite-flow.cjs.entry.js +3 -3
- package/dist/cjs/calcite-graph_2.cjs.entry.js +9 -9
- package/dist/cjs/calcite-handle.cjs.entry.js +5 -3
- package/dist/cjs/calcite-icon.cjs.entry.js +6 -6
- package/dist/cjs/calcite-inline-editable.cjs.entry.js +7 -7
- package/dist/cjs/calcite-input-date-picker.cjs.entry.js +17 -12
- package/dist/cjs/calcite-input-message.cjs.entry.js +4 -4
- package/dist/cjs/calcite-input-time-picker_2.cjs.entry.js +19 -14
- package/dist/cjs/calcite-input.cjs.entry.js +53 -32
- package/dist/cjs/calcite-label.cjs.entry.js +5 -5
- package/dist/cjs/calcite-link.cjs.entry.js +5 -5
- package/dist/cjs/calcite-list_3.cjs.entry.js +8 -8
- package/dist/cjs/calcite-loader.cjs.entry.js +3 -3
- package/dist/cjs/calcite-modal.cjs.entry.js +6 -6
- package/dist/cjs/calcite-notice.cjs.entry.js +7 -7
- package/dist/cjs/calcite-option_3.cjs.entry.js +8 -8
- package/dist/cjs/calcite-pagination.cjs.entry.js +2 -2
- package/dist/cjs/calcite-panel.cjs.entry.js +10 -10
- package/dist/cjs/calcite-pick-list_3.cjs.entry.js +12 -12
- package/dist/cjs/calcite-popover_2.cjs.entry.js +9 -9
- package/dist/cjs/calcite-progress.cjs.entry.js +2 -2
- package/dist/cjs/calcite-radio-button-group.cjs.entry.js +3 -3
- package/dist/cjs/calcite-radio-button.cjs.entry.js +9 -9
- package/dist/cjs/calcite-radio-group_2.cjs.entry.js +8 -8
- package/dist/cjs/calcite-rating.cjs.entry.js +7 -7
- package/dist/cjs/calcite-scrim.cjs.entry.js +2 -2
- package/dist/cjs/calcite-shell_3.cjs.entry.js +7 -7
- package/dist/cjs/calcite-sortable-list.cjs.entry.js +5 -5
- package/dist/cjs/calcite-split-button.cjs.entry.js +3 -3
- package/dist/cjs/calcite-stepper_2.cjs.entry.js +6 -6
- package/dist/cjs/calcite-switch.cjs.entry.js +8 -8
- package/dist/cjs/calcite-tab_4.cjs.entry.js +8 -8
- package/dist/cjs/calcite-tile-select_2.cjs.entry.js +4 -4
- package/dist/cjs/calcite-tile.cjs.entry.js +7 -7
- package/dist/cjs/calcite-tip_3.cjs.entry.js +8 -8
- package/dist/cjs/calcite-tooltip_2.cjs.entry.js +6 -6
- package/dist/cjs/calcite-tree_2.cjs.entry.js +7 -7
- package/dist/cjs/calcite-value-list_2.cjs.entry.js +12 -12
- package/dist/cjs/calcite.cjs.js +2 -2
- package/dist/cjs/{conditionalSlot-06d76ae7.js → conditionalSlot-a75bd651.js} +3 -3
- package/dist/cjs/{debounce-4cf96666.js → debounce-81dd86f2.js} +1 -1
- package/dist/cjs/{dom-abb07de0.js → dom-638a3591.js} +13 -2
- package/dist/cjs/{forIn-3c860503.js → forIn-f55313be.js} +2 -2
- package/dist/cjs/{form-ba671b5b.js → form-3294e196.js} +19 -3
- package/dist/cjs/{guid-932a13e8.js → guid-d5bb6094.js} +1 -1
- package/dist/cjs/{index-15183423.js → index-92a35a7d.js} +1 -1
- package/dist/cjs/index.cjs.js +1 -1
- package/dist/cjs/{interactive-b8f67cd2.js → interactive-5cbde708.js} +1 -1
- package/dist/cjs/{interfaces-424466b0.js → interfaces-7b17a4dd.js} +1 -1
- package/dist/cjs/{label-a92f86c2.js → label-c132e6a6.js} +2 -2
- package/dist/cjs/loader.cjs.js +2 -2
- package/dist/cjs/{locale-da69ea9a.js → locale-6602a5f7.js} +2 -2
- package/dist/cjs/{math-4b5ed92f.js → math-99f530cf.js} +1 -1
- package/dist/cjs/{number-a09f456c.js → number-501f63b2.js} +1 -1
- package/dist/cjs/{observers-775a55de.js → observers-bfab8337.js} +1 -1
- package/dist/cjs/{popper-dd03f435.js → popper-7f7e9026.js} +2 -2
- package/dist/cjs/{resources-37c81e6d.js → resources-2b6a1a83.js} +3 -3
- package/dist/cjs/{resources-1bc3b371.js → resources-73235792.js} +6 -6
- package/dist/cjs/{resources-b3893e4c.js → resources-9c8d43de.js} +1 -1
- package/dist/cjs/{resources-abb78051.js → resources-ac912490.js} +1 -1
- package/dist/cjs/{sortable.esm-e51b7bf6.js → sortable.esm-91bcdc48.js} +1 -1
- package/dist/cjs/{utils-40514965.js → utils-e6fb1a55.js} +1 -1
- package/dist/collection/components/accordion/accordion.js +1 -1
- package/dist/collection/components/accordion/interfaces.js +1 -1
- package/dist/collection/components/accordion-item/accordion-item.js +3 -3
- package/dist/collection/components/action/action.js +3 -2
- package/dist/collection/components/action/resources.js +1 -1
- package/dist/collection/components/action-bar/action-bar.js +1 -1
- package/dist/collection/components/action-bar/resources.js +1 -1
- package/dist/collection/components/action-bar/utils.js +1 -1
- package/dist/collection/components/action-group/action-group.js +1 -1
- package/dist/collection/components/action-group/resources.js +1 -1
- package/dist/collection/components/action-menu/action-menu.js +3 -3
- package/dist/collection/components/action-menu/resources.js +1 -1
- package/dist/collection/components/action-pad/action-pad.js +1 -1
- package/dist/collection/components/action-pad/resources.js +1 -1
- package/dist/collection/components/alert/alert.js +3 -3
- package/dist/collection/components/alert/interfaces.js +1 -1
- package/dist/collection/components/alert/resources.js +1 -1
- package/dist/collection/components/avatar/avatar.js +1 -1
- package/dist/collection/components/avatar/utils.js +1 -1
- package/dist/collection/components/block/block.js +5 -5
- package/dist/collection/components/block/resources.js +1 -1
- package/dist/collection/components/block-section/block-section.js +3 -3
- package/dist/collection/components/block-section/interfaces.js +1 -1
- package/dist/collection/components/block-section/resources.js +1 -1
- package/dist/collection/components/button/button.js +5 -4
- package/dist/collection/components/button/interfaces.js +1 -1
- package/dist/collection/components/button/resources.js +1 -1
- package/dist/collection/components/card/card.js +3 -3
- package/dist/collection/components/card/resources.js +1 -1
- package/dist/collection/components/checkbox/checkbox.js +3 -2
- package/dist/collection/components/chip/chip.js +1 -1
- package/dist/collection/components/chip/interfaces.js +1 -1
- package/dist/collection/components/chip/resources.js +1 -1
- package/dist/collection/components/color-picker/color-picker.css +2 -9
- package/dist/collection/components/color-picker/color-picker.js +7 -2
- package/dist/collection/components/color-picker/interfaces.js +1 -1
- package/dist/collection/components/color-picker/resources.js +1 -1
- package/dist/collection/components/color-picker/utils.js +1 -1
- package/dist/collection/components/color-picker-hex-input/color-picker-hex-input.js +7 -2
- package/dist/collection/components/color-picker-hex-input/resources.js +1 -1
- package/dist/collection/components/color-picker-swatch/color-picker-swatch.js +1 -1
- package/dist/collection/components/color-picker-swatch/resources.js +1 -1
- package/dist/collection/components/combobox/combobox.js +9 -5
- package/dist/collection/components/combobox/interfaces.js +1 -1
- package/dist/collection/components/combobox/resources.js +1 -1
- package/dist/collection/components/combobox/utils.js +1 -1
- package/dist/collection/components/combobox-item/combobox-item.js +1 -1
- package/dist/collection/components/combobox-item/resources.js +1 -1
- package/dist/collection/components/combobox-item-group/combobox-item-group.js +1 -1
- package/dist/collection/components/combobox-item-group/resources.js +1 -1
- package/dist/collection/components/date-picker/date-picker.js +1 -1
- package/dist/collection/components/date-picker/interfaces.js +1 -1
- package/dist/collection/components/date-picker/resources.js +1 -1
- package/dist/collection/components/date-picker/utils.js +1 -1
- package/dist/collection/components/date-picker-day/date-picker-day.js +1 -1
- package/dist/collection/components/date-picker-month/date-picker-month.js +1 -1
- package/dist/collection/components/date-picker-month-header/date-picker-month-header.js +1 -1
- package/dist/collection/components/dropdown/dropdown.js +4 -4
- package/dist/collection/components/dropdown/interfaces.js +1 -1
- package/dist/collection/components/dropdown/resources.js +1 -1
- package/dist/collection/components/dropdown-group/dropdown-group.js +1 -1
- package/dist/collection/components/dropdown-group/interfaces.js +1 -1
- package/dist/collection/components/dropdown-group/resources.js +1 -1
- package/dist/collection/components/dropdown-item/dropdown-item.js +3 -3
- package/dist/collection/components/dropdown-item/resources.js +1 -1
- package/dist/collection/components/fab/fab.js +1 -1
- package/dist/collection/components/fab/resources.js +1 -1
- package/dist/collection/components/filter/filter.js +6 -3
- package/dist/collection/components/filter/resources.js +1 -1
- package/dist/collection/components/flow/flow.js +1 -1
- package/dist/collection/components/flow/interfaces.js +1 -1
- package/dist/collection/components/flow/resources.js +1 -1
- package/dist/collection/components/functional/ExpandToggle.js +1 -1
- package/dist/collection/components/functional/Heading.js +1 -1
- package/dist/collection/components/graph/graph.js +1 -1
- package/dist/collection/components/graph/interfaces.js +1 -1
- package/dist/collection/components/graph/util.js +1 -1
- package/dist/collection/components/handle/handle.js +3 -2
- package/dist/collection/components/handle/resources.js +1 -1
- package/dist/collection/components/icon/icon.js +3 -3
- package/dist/collection/components/icon/resources.js +1 -1
- package/dist/collection/components/icon/utils.js +1 -1
- package/dist/collection/components/inline-editable/inline-editable.js +1 -1
- package/dist/collection/components/inline-editable/resources.js +1 -1
- package/dist/collection/components/input/input.js +44 -23
- package/dist/collection/components/input/interfaces.js +1 -1
- package/dist/collection/components/input/resources.js +1 -1
- package/dist/collection/components/input-date-picker/input-date-picker.js +11 -5
- package/dist/collection/components/input-message/input-message.js +1 -1
- package/dist/collection/components/input-message/interfaces.js +1 -1
- package/dist/collection/components/input-time-picker/input-time-picker.js +13 -8
- package/dist/collection/components/interfaces.js +1 -1
- package/dist/collection/components/label/label.js +1 -1
- package/dist/collection/components/label/resources.js +1 -1
- package/dist/collection/components/link/link.js +1 -1
- package/dist/collection/components/list/list.js +1 -1
- package/dist/collection/components/list/resources.js +1 -1
- package/dist/collection/components/list-item/list-item.js +1 -1
- package/dist/collection/components/list-item/resources.js +1 -1
- package/dist/collection/components/list-item-group/list-item-group.js +1 -1
- package/dist/collection/components/list-item-group/resources.js +1 -1
- package/dist/collection/components/loader/loader.js +1 -1
- package/dist/collection/components/modal/interfaces.js +1 -1
- package/dist/collection/components/modal/modal.js +1 -1
- package/dist/collection/components/modal/resources.js +1 -1
- package/dist/collection/components/notice/notice.js +1 -1
- package/dist/collection/components/notice/resources.js +1 -1
- package/dist/collection/components/option/option.js +1 -1
- package/dist/collection/components/option-group/option-group.js +1 -1
- package/dist/collection/components/pagination/pagination.js +1 -1
- package/dist/collection/components/pagination/resources.js +1 -1
- package/dist/collection/components/panel/panel.js +3 -3
- package/dist/collection/components/panel/resources.js +1 -1
- package/dist/collection/components/pick-list/pick-list.js +1 -1
- package/dist/collection/components/pick-list/resources.js +1 -1
- package/dist/collection/components/pick-list/shared-list-logic.js +1 -1
- package/dist/collection/components/pick-list/shared-list-render.js +3 -2
- package/dist/collection/components/pick-list-group/pick-list-group.js +1 -1
- package/dist/collection/components/pick-list-group/resources.js +1 -1
- package/dist/collection/components/pick-list-item/pick-list-item.js +3 -3
- package/dist/collection/components/pick-list-item/resources.js +1 -1
- package/dist/collection/components/popover/PopoverManager.js +1 -1
- package/dist/collection/components/popover/popover.js +4 -4
- package/dist/collection/components/popover/resources.js +1 -1
- package/dist/collection/components/popover-manager/popover-manager.js +1 -1
- package/dist/collection/components/progress/progress.js +1 -1
- package/dist/collection/components/radio-button/radio-button.js +3 -3
- package/dist/collection/components/radio-button/resources.js +1 -1
- package/dist/collection/components/radio-button-group/radio-button-group.js +1 -1
- package/dist/collection/components/radio-group/interfaces.js +1 -1
- package/dist/collection/components/radio-group/radio-group.js +1 -1
- package/dist/collection/components/radio-group-item/radio-group-item.js +3 -3
- package/dist/collection/components/radio-group-item/resources.js +1 -1
- package/dist/collection/components/rating/rating.js +1 -1
- package/dist/collection/components/rating/resources.js +1 -1
- package/dist/collection/components/scrim/resources.js +1 -1
- package/dist/collection/components/scrim/scrim.js +1 -1
- package/dist/collection/components/select/resources.js +1 -1
- package/dist/collection/components/select/select.js +1 -1
- package/dist/collection/components/shell/resources.js +1 -1
- package/dist/collection/components/shell/shell.js +1 -1
- package/dist/collection/components/shell-center-row/resources.js +1 -1
- package/dist/collection/components/shell-center-row/shell-center-row.js +1 -1
- package/dist/collection/components/shell-panel/resources.js +1 -1
- package/dist/collection/components/shell-panel/shell-panel.js +1 -1
- package/dist/collection/components/slider/slider.js +1 -1
- package/dist/collection/components/sortable-list/resources.js +1 -1
- package/dist/collection/components/sortable-list/sortable-list.js +1 -1
- package/dist/collection/components/split-button/resources.js +1 -1
- package/dist/collection/components/split-button/split-button.js +1 -1
- package/dist/collection/components/stepper/stepper.js +1 -1
- package/dist/collection/components/stepper-item/stepper-item.js +3 -3
- package/dist/collection/components/switch/switch.js +3 -3
- package/dist/collection/components/tab/interfaces.js +1 -1
- package/dist/collection/components/tab/tab.js +3 -3
- package/dist/collection/components/tab-nav/tab-nav.js +1 -1
- package/dist/collection/components/tab-title/tab-title.js +3 -3
- package/dist/collection/components/tabs/interfaces.js +1 -1
- package/dist/collection/components/tabs/resources.js +1 -1
- package/dist/collection/components/tabs/tabs.js +1 -1
- package/dist/collection/components/tile/resources.js +1 -1
- package/dist/collection/components/tile/tile.js +1 -1
- package/dist/collection/components/tile-select/interfaces.js +1 -1
- package/dist/collection/components/tile-select/resources.js +1 -1
- package/dist/collection/components/tile-select/tile-select.js +1 -1
- package/dist/collection/components/tile-select-group/interfaces.js +1 -1
- package/dist/collection/components/tile-select-group/tile-select-group.js +1 -1
- package/dist/collection/components/time-picker/resources.js +1 -1
- package/dist/collection/components/time-picker/time-picker.js +1 -1
- package/dist/collection/components/tip/resources.js +1 -1
- package/dist/collection/components/tip/tip.js +1 -1
- package/dist/collection/components/tip-group/tip-group.js +1 -1
- package/dist/collection/components/tip-manager/resources.js +1 -1
- package/dist/collection/components/tip-manager/tip-manager.js +3 -3
- package/dist/collection/components/tooltip/TooltipManager.js +1 -1
- package/dist/collection/components/tooltip/resources.js +1 -1
- package/dist/collection/components/tooltip/tooltip.js +3 -3
- package/dist/collection/components/tooltip-manager/tooltip-manager.js +1 -1
- package/dist/collection/components/tree/interfaces.js +1 -1
- package/dist/collection/components/tree/tree.js +1 -1
- package/dist/collection/components/tree-item/interfaces.js +1 -1
- package/dist/collection/components/tree-item/resources.js +1 -1
- package/dist/collection/components/tree-item/tree-item.js +3 -3
- package/dist/collection/components/value-list/resources.js +1 -1
- package/dist/collection/components/value-list/value-list.js +1 -1
- package/dist/collection/components/value-list-item/resources.js +1 -1
- package/dist/collection/components/value-list-item/value-list-item.js +3 -3
- package/dist/collection/utils/array.js +1 -1
- package/dist/collection/utils/conditionalSlot.js +1 -1
- package/dist/collection/utils/date.js +1 -1
- package/dist/collection/utils/dom.js +11 -1
- package/dist/collection/utils/filter.js +1 -1
- package/dist/collection/utils/form.js +15 -1
- package/dist/collection/utils/globalAttributes.js +1 -1
- package/dist/collection/utils/guid.js +1 -1
- package/dist/collection/utils/interactive.js +1 -1
- package/dist/collection/utils/key.js +1 -1
- package/dist/collection/utils/label.js +1 -1
- package/dist/collection/utils/locale.js +1 -1
- package/dist/collection/utils/math.js +1 -1
- package/dist/collection/utils/number.js +1 -1
- package/dist/collection/utils/observers.js +1 -1
- package/dist/collection/utils/popper.js +1 -1
- package/dist/collection/utils/resources.js +1 -1
- package/dist/collection/utils/time.js +1 -1
- package/dist/components/ExpandToggle.js +1 -1
- package/dist/components/Heading.js +1 -1
- package/dist/components/action-group.js +1 -1
- package/dist/components/action-menu.js +3 -3
- package/dist/components/action.js +3 -2
- package/dist/components/array.js +1 -1
- package/dist/components/button.js +5 -4
- package/dist/components/calcite-accordion-item.js +3 -3
- package/dist/components/calcite-accordion.js +1 -1
- package/dist/components/calcite-action-bar.js +1 -1
- package/dist/components/calcite-action-group.js +1 -1
- package/dist/components/calcite-action-menu.js +1 -1
- package/dist/components/calcite-action-pad.js +1 -1
- package/dist/components/calcite-action.js +1 -1
- package/dist/components/calcite-alert.js +3 -3
- package/dist/components/calcite-avatar.js +1 -1
- package/dist/components/calcite-block-section.js +3 -3
- package/dist/components/calcite-block.js +5 -5
- package/dist/components/calcite-button.js +1 -1
- package/dist/components/calcite-card.js +3 -3
- package/dist/components/calcite-checkbox.js +1 -1
- package/dist/components/calcite-chip.js +1 -1
- package/dist/components/calcite-color-picker-hex-input.js +1 -1
- package/dist/components/calcite-color-picker-swatch.js +1 -1
- package/dist/components/calcite-color-picker.js +8 -3
- package/dist/components/calcite-combobox-item-group.js +1 -1
- package/dist/components/calcite-combobox-item.js +1 -1
- package/dist/components/calcite-combobox.js +9 -5
- package/dist/components/calcite-date-picker-day.js +1 -1
- package/dist/components/calcite-date-picker-month-header.js +1 -1
- package/dist/components/calcite-date-picker-month.js +1 -1
- package/dist/components/calcite-date-picker.js +1 -1
- package/dist/components/calcite-dropdown-group.js +1 -1
- package/dist/components/calcite-dropdown-item.js +3 -3
- package/dist/components/calcite-dropdown.js +1 -1
- package/dist/components/calcite-fab.js +1 -1
- package/dist/components/calcite-filter.js +1 -1
- package/dist/components/calcite-flow.js +1 -1
- package/dist/components/calcite-graph.js +1 -1
- package/dist/components/calcite-handle.js +1 -1
- package/dist/components/calcite-icon.js +1 -1
- package/dist/components/calcite-inline-editable.js +1 -1
- package/dist/components/calcite-input-date-picker.js +9 -3
- package/dist/components/calcite-input-message.js +1 -1
- package/dist/components/calcite-input-time-picker.js +13 -8
- package/dist/components/calcite-input.js +1 -1
- package/dist/components/calcite-label.js +1 -1
- package/dist/components/calcite-link.js +1 -1
- package/dist/components/calcite-list-item-group.js +1 -1
- package/dist/components/calcite-list-item.js +1 -1
- package/dist/components/calcite-list.js +1 -1
- package/dist/components/calcite-loader.js +1 -1
- package/dist/components/calcite-modal.js +1 -1
- package/dist/components/calcite-notice.js +1 -1
- package/dist/components/calcite-option-group.js +1 -1
- package/dist/components/calcite-option.js +1 -1
- package/dist/components/calcite-pagination.js +1 -1
- package/dist/components/calcite-panel.js +3 -3
- package/dist/components/calcite-pick-list-group.js +1 -1
- package/dist/components/calcite-pick-list-item.js +1 -1
- package/dist/components/calcite-pick-list.js +1 -1
- package/dist/components/calcite-popover-manager.js +1 -1
- package/dist/components/calcite-popover.js +1 -1
- package/dist/components/calcite-progress.js +1 -1
- package/dist/components/calcite-radio-button-group.js +1 -1
- package/dist/components/calcite-radio-button.js +3 -3
- package/dist/components/calcite-radio-group-item.js +3 -3
- package/dist/components/calcite-radio-group.js +1 -1
- package/dist/components/calcite-rating.js +1 -1
- package/dist/components/calcite-scrim.js +1 -1
- package/dist/components/calcite-select.js +1 -1
- package/dist/components/calcite-shell-center-row.js +1 -1
- package/dist/components/calcite-shell-panel.js +1 -1
- package/dist/components/calcite-shell.js +1 -1
- package/dist/components/calcite-slider.js +1 -1
- package/dist/components/calcite-sortable-list.js +1 -1
- package/dist/components/calcite-split-button.js +1 -1
- package/dist/components/calcite-stepper-item.js +3 -3
- package/dist/components/calcite-stepper.js +1 -1
- package/dist/components/calcite-switch.js +1 -1
- package/dist/components/calcite-tab-nav.js +1 -1
- package/dist/components/calcite-tab-title.js +1 -1
- package/dist/components/calcite-tab.js +1 -1
- package/dist/components/calcite-tabs.js +1 -1
- package/dist/components/calcite-tile-select-group.js +1 -1
- package/dist/components/calcite-tile-select.js +1 -1
- package/dist/components/calcite-tile.js +1 -1
- package/dist/components/calcite-time-picker.js +1 -1
- package/dist/components/calcite-tip-group.js +1 -1
- package/dist/components/calcite-tip-manager.js +3 -3
- package/dist/components/calcite-tip.js +1 -1
- package/dist/components/calcite-tooltip-manager.js +1 -1
- package/dist/components/calcite-tooltip.js +3 -3
- package/dist/components/calcite-tree-item.js +3 -3
- package/dist/components/calcite-tree.js +1 -1
- package/dist/components/calcite-value-list-item.js +3 -3
- package/dist/components/calcite-value-list.js +1 -1
- package/dist/components/checkbox.js +3 -2
- package/dist/components/chip.js +1 -1
- package/dist/components/color-picker-hex-input.js +7 -2
- package/dist/components/color-picker-swatch.js +1 -1
- package/dist/components/conditionalSlot.js +1 -1
- package/dist/components/date-picker-day.js +1 -1
- package/dist/components/date-picker-month-header.js +1 -1
- package/dist/components/date-picker-month.js +1 -1
- package/dist/components/date-picker.js +1 -1
- package/dist/components/date.js +1 -1
- package/dist/components/debounce.js +1 -1
- package/dist/components/dom.js +12 -2
- package/dist/components/dropdown.js +3 -3
- package/dist/components/filter.js +6 -3
- package/dist/components/forIn.js +1 -1
- package/dist/components/form.js +16 -2
- package/dist/components/graph.js +1 -1
- package/dist/components/guid.js +1 -1
- package/dist/components/handle.js +3 -2
- package/dist/components/icon.js +3 -3
- package/dist/components/index.js +1 -1
- package/dist/components/input.js +44 -23
- package/dist/components/interactive.js +1 -1
- package/dist/components/interfaces.js +1 -1
- package/dist/components/interfaces2.js +1 -1
- package/dist/components/label.js +1 -1
- package/dist/components/label2.js +1 -1
- package/dist/components/link.js +1 -1
- package/dist/components/loader.js +1 -1
- package/dist/components/locale.js +1 -1
- package/dist/components/math.js +1 -1
- package/dist/components/number.js +1 -1
- package/dist/components/observers.js +1 -1
- package/dist/components/pick-list-item.js +3 -3
- package/dist/components/popover.js +4 -4
- package/dist/components/popper.js +1 -1
- package/dist/components/progress.js +1 -1
- package/dist/components/resources.js +1 -1
- package/dist/components/resources2.js +1 -1
- package/dist/components/resources3.js +1 -1
- package/dist/components/scrim.js +1 -1
- package/dist/components/shared-list-render.js +3 -3
- package/dist/components/sortable.esm.js +1 -1
- package/dist/components/switch.js +3 -3
- package/dist/components/tab-nav.js +1 -1
- package/dist/components/tab-title.js +3 -3
- package/dist/components/tab.js +3 -3
- package/dist/components/tabs.js +1 -1
- package/dist/components/tile.js +1 -1
- package/dist/components/time-picker.js +1 -1
- package/dist/components/utils.js +1 -1
- package/dist/components/utils2.js +1 -1
- package/dist/custom-elements/index.js +307 -236
- package/dist/esm/{ExpandToggle-094da9ae.js → ExpandToggle-fdd1d5e0.js} +5 -5
- package/dist/esm/{Heading-03c506f1.js → Heading-d9ebdbbf.js} +2 -2
- package/dist/esm/{array-6754b500.js → array-2b4c1f87.js} +1 -1
- package/dist/esm/calcite-accordion_2.entry.js +5 -5
- package/dist/esm/calcite-action-bar.entry.js +10 -10
- package/dist/esm/calcite-action-group.entry.js +8 -8
- package/dist/esm/calcite-action-menu.entry.js +9 -9
- package/dist/esm/calcite-action-pad.entry.js +9 -9
- package/dist/esm/calcite-action.entry.js +7 -5
- package/dist/esm/calcite-alert.entry.js +6 -6
- package/dist/esm/calcite-avatar.entry.js +5 -5
- package/dist/esm/calcite-block_2.entry.js +12 -12
- package/dist/esm/calcite-button.entry.js +11 -10
- package/dist/esm/calcite-card.entry.js +7 -7
- package/dist/esm/calcite-checkbox.entry.js +8 -8
- package/dist/esm/calcite-chip.entry.js +6 -6
- package/dist/esm/calcite-color-picker_3.entry.js +21 -11
- package/dist/esm/calcite-combobox_3.entry.js +18 -15
- package/dist/esm/calcite-date-picker_4.entry.js +9 -9
- package/dist/esm/calcite-dropdown_3.entry.js +9 -9
- package/dist/esm/calcite-fab.entry.js +5 -5
- package/dist/esm/calcite-filter.entry.js +12 -9
- package/dist/esm/calcite-flow.entry.js +3 -3
- package/dist/esm/calcite-graph_2.entry.js +9 -9
- package/dist/esm/calcite-handle.entry.js +5 -3
- package/dist/esm/calcite-icon.entry.js +6 -6
- package/dist/esm/calcite-inline-editable.entry.js +7 -7
- package/dist/esm/calcite-input-date-picker.entry.js +17 -12
- package/dist/esm/calcite-input-message.entry.js +4 -4
- package/dist/esm/calcite-input-time-picker_2.entry.js +19 -14
- package/dist/esm/calcite-input.entry.js +53 -32
- package/dist/esm/calcite-label.entry.js +5 -5
- package/dist/esm/calcite-link.entry.js +5 -5
- package/dist/esm/calcite-list_3.entry.js +8 -8
- package/dist/esm/calcite-loader.entry.js +3 -3
- package/dist/esm/calcite-modal.entry.js +6 -6
- package/dist/esm/calcite-notice.entry.js +7 -7
- package/dist/esm/calcite-option_3.entry.js +8 -8
- package/dist/esm/calcite-pagination.entry.js +2 -2
- package/dist/esm/calcite-panel.entry.js +10 -10
- package/dist/esm/calcite-pick-list_3.entry.js +12 -12
- package/dist/esm/calcite-popover_2.entry.js +9 -9
- package/dist/esm/calcite-progress.entry.js +2 -2
- package/dist/esm/calcite-radio-button-group.entry.js +3 -3
- package/dist/esm/calcite-radio-button.entry.js +9 -9
- package/dist/esm/calcite-radio-group_2.entry.js +8 -8
- package/dist/esm/calcite-rating.entry.js +7 -7
- package/dist/esm/calcite-scrim.entry.js +2 -2
- package/dist/esm/calcite-shell_3.entry.js +7 -7
- package/dist/esm/calcite-sortable-list.entry.js +5 -5
- package/dist/esm/calcite-split-button.entry.js +3 -3
- package/dist/esm/calcite-stepper_2.entry.js +6 -6
- package/dist/esm/calcite-switch.entry.js +8 -8
- package/dist/esm/calcite-tab_4.entry.js +8 -8
- package/dist/esm/calcite-tile-select_2.entry.js +4 -4
- package/dist/esm/calcite-tile.entry.js +7 -7
- package/dist/esm/calcite-tip_3.entry.js +8 -8
- package/dist/esm/calcite-tooltip_2.entry.js +6 -6
- package/dist/esm/calcite-tree_2.entry.js +7 -7
- package/dist/esm/calcite-value-list_2.entry.js +12 -12
- package/dist/esm/calcite.js +2 -2
- package/dist/esm/{conditionalSlot-43e1cf73.js → conditionalSlot-89778d70.js} +3 -3
- package/dist/esm/{debounce-110f54b4.js → debounce-ba30afcb.js} +1 -1
- package/dist/esm/{dom-88db3eb6.js → dom-214e75a1.js} +13 -3
- package/dist/esm/{forIn-9da70b7d.js → forIn-31833178.js} +2 -2
- package/dist/esm/{form-dcab88cf.js → form-d34ea9da.js} +18 -4
- package/dist/esm/{guid-33cefddf.js → guid-8f74d44f.js} +1 -1
- package/dist/esm/{index-beb6bcc7.js → index-1caffe24.js} +1 -1
- package/dist/esm/index.js +1 -1
- package/dist/esm/{interactive-5bd99416.js → interactive-fd6bb7b4.js} +1 -1
- package/dist/esm/{interfaces-3902fbb4.js → interfaces-de98f02e.js} +1 -1
- package/dist/esm/{label-0dbdffd7.js → label-837acdbb.js} +2 -2
- package/dist/esm/loader.js +2 -2
- package/dist/esm/{locale-39a250fd.js → locale-8b4a419a.js} +2 -2
- package/dist/esm/{math-06091d4c.js → math-f0a6db03.js} +1 -1
- package/dist/esm/{number-7002c994.js → number-9105c8e0.js} +1 -1
- package/dist/esm/{observers-1cacecaa.js → observers-29febf6c.js} +1 -1
- package/dist/esm/{popper-48bbd4f4.js → popper-2e46e645.js} +2 -2
- package/dist/esm/{resources-ba5f3249.js → resources-2ac98c80.js} +1 -1
- package/dist/esm/{resources-76531691.js → resources-75a96a0b.js} +6 -6
- package/dist/esm/{resources-d77dd261.js → resources-e24b29c2.js} +1 -1
- package/dist/esm/{resources-bfefa000.js → resources-e42a37cb.js} +3 -3
- package/dist/esm/{sortable.esm-984301c7.js → sortable.esm-a459ad18.js} +1 -1
- package/dist/esm/{utils-dd48d28f.js → utils-70278bc4.js} +1 -1
- package/dist/esm-es5/{ExpandToggle-094da9ae.js → ExpandToggle-fdd1d5e0.js} +2 -2
- package/dist/esm-es5/{Heading-03c506f1.js → Heading-d9ebdbbf.js} +2 -2
- package/dist/esm-es5/{array-6754b500.js → array-2b4c1f87.js} +1 -1
- package/dist/esm-es5/calcite-accordion_2.entry.js +2 -2
- package/dist/esm-es5/calcite-action-bar.entry.js +2 -2
- package/dist/esm-es5/calcite-action-group.entry.js +2 -2
- package/dist/esm-es5/calcite-action-menu.entry.js +2 -2
- package/dist/esm-es5/calcite-action-pad.entry.js +3 -3
- package/dist/esm-es5/calcite-action.entry.js +2 -2
- package/dist/esm-es5/calcite-alert.entry.js +2 -2
- package/dist/esm-es5/calcite-avatar.entry.js +2 -2
- package/dist/esm-es5/calcite-block_2.entry.js +2 -2
- package/dist/esm-es5/calcite-button.entry.js +2 -2
- package/dist/esm-es5/calcite-card.entry.js +2 -2
- package/dist/esm-es5/calcite-checkbox.entry.js +2 -2
- package/dist/esm-es5/calcite-chip.entry.js +2 -2
- package/dist/esm-es5/calcite-color-picker_3.entry.js +2 -2
- package/dist/esm-es5/calcite-combobox_3.entry.js +2 -2
- package/dist/esm-es5/calcite-date-picker_4.entry.js +2 -2
- package/dist/esm-es5/calcite-dropdown_3.entry.js +2 -2
- package/dist/esm-es5/calcite-fab.entry.js +2 -2
- package/dist/esm-es5/calcite-filter.entry.js +2 -2
- package/dist/esm-es5/calcite-flow.entry.js +2 -2
- package/dist/esm-es5/calcite-graph_2.entry.js +2 -2
- package/dist/esm-es5/calcite-handle.entry.js +2 -2
- package/dist/esm-es5/calcite-icon.entry.js +2 -2
- package/dist/esm-es5/calcite-inline-editable.entry.js +2 -2
- package/dist/esm-es5/calcite-input-date-picker.entry.js +2 -2
- package/dist/esm-es5/calcite-input-message.entry.js +2 -2
- package/dist/esm-es5/calcite-input-time-picker_2.entry.js +2 -2
- package/dist/esm-es5/calcite-input.entry.js +2 -2
- package/dist/esm-es5/calcite-label.entry.js +2 -2
- package/dist/esm-es5/calcite-link.entry.js +3 -3
- package/dist/esm-es5/calcite-list_3.entry.js +2 -2
- package/dist/esm-es5/calcite-loader.entry.js +2 -2
- package/dist/esm-es5/calcite-modal.entry.js +2 -2
- package/dist/esm-es5/calcite-notice.entry.js +3 -3
- package/dist/esm-es5/calcite-option_3.entry.js +2 -2
- package/dist/esm-es5/calcite-pagination.entry.js +2 -2
- package/dist/esm-es5/calcite-panel.entry.js +2 -2
- package/dist/esm-es5/calcite-pick-list_3.entry.js +2 -2
- package/dist/esm-es5/calcite-popover_2.entry.js +2 -2
- package/dist/esm-es5/calcite-progress.entry.js +2 -2
- package/dist/esm-es5/calcite-radio-button-group.entry.js +2 -2
- package/dist/esm-es5/calcite-radio-button.entry.js +2 -2
- package/dist/esm-es5/calcite-radio-group_2.entry.js +2 -2
- package/dist/esm-es5/calcite-rating.entry.js +2 -2
- package/dist/esm-es5/calcite-scrim.entry.js +2 -2
- package/dist/esm-es5/calcite-shell_3.entry.js +2 -2
- package/dist/esm-es5/calcite-sortable-list.entry.js +2 -2
- package/dist/esm-es5/calcite-split-button.entry.js +2 -2
- package/dist/esm-es5/calcite-stepper_2.entry.js +2 -2
- package/dist/esm-es5/calcite-switch.entry.js +2 -2
- package/dist/esm-es5/calcite-tab_4.entry.js +2 -2
- package/dist/esm-es5/calcite-tile-select_2.entry.js +2 -2
- package/dist/esm-es5/calcite-tile.entry.js +2 -2
- package/dist/esm-es5/calcite-tip_3.entry.js +2 -2
- package/dist/esm-es5/calcite-tooltip_2.entry.js +2 -2
- package/dist/esm-es5/calcite-tree_2.entry.js +2 -2
- package/dist/esm-es5/calcite-value-list_2.entry.js +2 -2
- package/dist/esm-es5/calcite.js +2 -2
- package/dist/esm-es5/{conditionalSlot-43e1cf73.js → conditionalSlot-89778d70.js} +2 -2
- package/dist/esm-es5/{debounce-110f54b4.js → debounce-ba30afcb.js} +1 -1
- package/dist/esm-es5/{dom-88db3eb6.js → dom-214e75a1.js} +2 -2
- package/dist/esm-es5/{forIn-9da70b7d.js → forIn-31833178.js} +2 -2
- package/dist/esm-es5/form-d34ea9da.js +6 -0
- package/dist/esm-es5/{guid-33cefddf.js → guid-8f74d44f.js} +1 -1
- package/dist/esm-es5/{index-beb6bcc7.js → index-1caffe24.js} +1 -1
- package/dist/esm-es5/index.js +1 -1
- package/dist/esm-es5/{interactive-5bd99416.js → interactive-fd6bb7b4.js} +1 -1
- package/dist/esm-es5/{interfaces-3902fbb4.js → interfaces-de98f02e.js} +1 -1
- package/dist/esm-es5/{label-0dbdffd7.js → label-837acdbb.js} +2 -2
- package/dist/esm-es5/loader.js +2 -2
- package/dist/esm-es5/{locale-39a250fd.js → locale-8b4a419a.js} +2 -2
- package/dist/esm-es5/{math-06091d4c.js → math-f0a6db03.js} +1 -1
- package/dist/esm-es5/{number-7002c994.js → number-9105c8e0.js} +1 -1
- package/dist/esm-es5/{observers-1cacecaa.js → observers-29febf6c.js} +1 -1
- package/dist/esm-es5/{popper-48bbd4f4.js → popper-2e46e645.js} +2 -2
- package/dist/esm-es5/{resources-ba5f3249.js → resources-2ac98c80.js} +1 -1
- package/dist/esm-es5/resources-75a96a0b.js +6 -0
- package/dist/esm-es5/{resources-d77dd261.js → resources-e24b29c2.js} +1 -1
- package/dist/esm-es5/{resources-bfefa000.js → resources-e42a37cb.js} +2 -2
- package/dist/esm-es5/{sortable.esm-984301c7.js → sortable.esm-a459ad18.js} +1 -1
- package/dist/esm-es5/{utils-dd48d28f.js → utils-70278bc4.js} +1 -1
- package/dist/extras/docs-json.json +1 -1
- package/dist/loader/cdn.js +1 -1
- package/dist/loader/index.cjs.js +1 -1
- package/dist/loader/index.es2017.js +1 -1
- package/dist/loader/index.js +1 -1
- package/dist/types/components/button/button.d.ts +2 -1
- package/dist/types/components/color-picker/color-picker.d.ts +1 -0
- package/dist/types/components/color-picker-hex-input/color-picker-hex-input.d.ts +1 -0
- package/dist/types/components/filter/filter.d.ts +1 -1
- package/dist/types/components/input/input.d.ts +6 -4
- package/dist/types/components/input-date-picker/input-date-picker.d.ts +1 -0
- package/dist/types/components/input-time-picker/input-time-picker.d.ts +1 -0
- package/dist/types/utils/dom.d.ts +8 -0
- package/dist/types/utils/form.d.ts +20 -5
- package/hydrate/index.js +307 -236
- package/package.json +1 -1
- package/dist/calcite/p-01b0c871.system.js +0 -6
- package/dist/calcite/p-04299a51.system.entry.js +0 -6
- package/dist/calcite/p-055a310a.entry.js +0 -6
- package/dist/calcite/p-085c76ff.system.entry.js +0 -6
- package/dist/calcite/p-0cdaa4f8.system.entry.js +0 -6
- package/dist/calcite/p-0e4972d4.entry.js +0 -6
- package/dist/calcite/p-0fe88df3.system.entry.js +0 -6
- package/dist/calcite/p-102b4832.entry.js +0 -6
- package/dist/calcite/p-12cbdc16.entry.js +0 -6
- package/dist/calcite/p-161eb9c3.entry.js +0 -6
- package/dist/calcite/p-17d9f806.entry.js +0 -6
- package/dist/calcite/p-298f168e.entry.js +0 -6
- package/dist/calcite/p-2a88ba04.system.js +0 -6
- package/dist/calcite/p-2bfb28ad.system.entry.js +0 -6
- package/dist/calcite/p-320aba58.system.entry.js +0 -6
- package/dist/calcite/p-366bc2f0.system.entry.js +0 -6
- package/dist/calcite/p-3849a4a0.entry.js +0 -6
- package/dist/calcite/p-392ff169.system.entry.js +0 -6
- package/dist/calcite/p-3ed4170a.entry.js +0 -6
- package/dist/calcite/p-3eebe544.entry.js +0 -6
- package/dist/calcite/p-4009d73a.js +0 -6
- package/dist/calcite/p-44d14c83.system.entry.js +0 -6
- package/dist/calcite/p-5120c543.system.js +0 -6
- package/dist/calcite/p-529118bb.entry.js +0 -6
- package/dist/calcite/p-5a91233b.entry.js +0 -6
- package/dist/calcite/p-5f11f4bf.system.entry.js +0 -6
- package/dist/calcite/p-73b26bc5.system.entry.js +0 -6
- package/dist/calcite/p-76106c73.entry.js +0 -6
- package/dist/calcite/p-7fc9d0b9.system.entry.js +0 -6
- package/dist/calcite/p-83136cd0.system.entry.js +0 -6
- package/dist/calcite/p-86b46c97.system.entry.js +0 -6
- package/dist/calcite/p-8980b208.entry.js +0 -6
- package/dist/calcite/p-8f2c41a4.system.entry.js +0 -6
- package/dist/calcite/p-9315bda8.entry.js +0 -6
- package/dist/calcite/p-958639c7.system.entry.js +0 -6
- package/dist/calcite/p-9c2cd29f.entry.js +0 -6
- package/dist/calcite/p-9fdc5349.system.entry.js +0 -6
- package/dist/calcite/p-a01e5fe9.system.entry.js +0 -6
- package/dist/calcite/p-a24a238b.entry.js +0 -6
- package/dist/calcite/p-a49895f7.system.entry.js +0 -6
- package/dist/calcite/p-ae5eddbb.entry.js +0 -6
- package/dist/calcite/p-b1402cde.entry.js +0 -6
- package/dist/calcite/p-b1fde550.system.entry.js +0 -6
- package/dist/calcite/p-b3eff92b.entry.js +0 -6
- package/dist/calcite/p-bbb68909.js +0 -6
- package/dist/calcite/p-c3546b8a.entry.js +0 -6
- package/dist/calcite/p-c5cb2ebd.js +0 -6
- package/dist/calcite/p-c6a1f570.entry.js +0 -6
- package/dist/calcite/p-ca8f22df.entry.js +0 -6
- package/dist/calcite/p-cacc3837.entry.js +0 -6
- package/dist/calcite/p-cc3eb33f.entry.js +0 -6
- package/dist/calcite/p-d724d06b.system.js +0 -6
- package/dist/calcite/p-de664d3f.system.entry.js +0 -6
- package/dist/calcite/p-df206edd.entry.js +0 -6
- package/dist/calcite/p-df91106d.entry.js +0 -6
- package/dist/calcite/p-e2dfa7b3.system.entry.js +0 -6
- package/dist/calcite/p-e367747f.js +0 -6
- package/dist/calcite/p-e5fae2b3.js +0 -6
- package/dist/calcite/p-e78835b0.system.entry.js +0 -6
- package/dist/calcite/p-eec4db78.system.entry.js +0 -6
- package/dist/calcite/p-f6370e81.entry.js +0 -6
- package/dist/calcite/p-fa29b3f0.system.entry.js +0 -6
- package/dist/calcite/p-fa62ceff.system.js +0 -6
- package/dist/esm-es5/form-dcab88cf.js +0 -6
- package/dist/esm-es5/resources-76531691.js +0 -6
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* All material copyright ESRI, All Rights Reserved, unless otherwise specified.
|
|
3
3
|
* See https://github.com/Esri/calcite-components/blob/master/LICENSE.md for details.
|
|
4
|
-
* v1.0.0-next.
|
|
4
|
+
* v1.0.0-next.463
|
|
5
5
|
*/
|
|
6
6
|
import { HTMLElement as HTMLElement$1, createEvent, h, Host, Build, forceUpdate, Fragment, getAssetPath, proxyCustomElement } from '@stencil/core/internal/client';
|
|
7
7
|
export { setAssetPath, setPlatformOptions } from '@stencil/core/internal/client';
|
|
@@ -345,6 +345,16 @@ function intersects(rect1, rect2) {
|
|
|
345
345
|
rect2.top > rect1.bottom ||
|
|
346
346
|
rect2.bottom < rect1.top);
|
|
347
347
|
}
|
|
348
|
+
/**
|
|
349
|
+
* This helper makes sure that boolean aria attributes are properly converted to a string.
|
|
350
|
+
*
|
|
351
|
+
* It should only be used for aria attributes that require a string value of "true" or "false".
|
|
352
|
+
*
|
|
353
|
+
* @returns {string} The string conversion of a boolean value ("true" | "false").
|
|
354
|
+
*/
|
|
355
|
+
function toAriaBoolean(value) {
|
|
356
|
+
return (!!value).toString();
|
|
357
|
+
}
|
|
348
358
|
|
|
349
359
|
const accordionItemCss = "@-webkit-keyframes in{0%{opacity:0}100%{opacity:1}}@keyframes in{0%{opacity:0}100%{opacity:1}}@-webkit-keyframes in-down{0%{opacity:0;-webkit-transform:translate3D(0, -5px, 0);transform:translate3D(0, -5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@keyframes in-down{0%{opacity:0;-webkit-transform:translate3D(0, -5px, 0);transform:translate3D(0, -5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@-webkit-keyframes in-up{0%{opacity:0;-webkit-transform:translate3D(0, 5px, 0);transform:translate3D(0, 5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@keyframes in-up{0%{opacity:0;-webkit-transform:translate3D(0, 5px, 0);transform:translate3D(0, 5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@-webkit-keyframes in-scale{0%{opacity:0;-webkit-transform:scale3D(0.95, 0.95, 1);transform:scale3D(0.95, 0.95, 1)}100%{opacity:1;-webkit-transform:scale3D(1, 1, 1);transform:scale3D(1, 1, 1)}}@keyframes in-scale{0%{opacity:0;-webkit-transform:scale3D(0.95, 0.95, 1);transform:scale3D(0.95, 0.95, 1)}100%{opacity:1;-webkit-transform:scale3D(1, 1, 1);transform:scale3D(1, 1, 1)}}:root{--calcite-animation-timing:calc(150ms * var(--calcite-internal-duration-factor));--calcite-internal-duration-factor:var(--calcite-duration-factor, 1);--calcite-internal-animation-timing-fast:calc(100ms * var(--calcite-internal-duration-factor));--calcite-internal-animation-timing-medium:calc(200ms * var(--calcite-internal-duration-factor));--calcite-internal-animation-timing-slow:calc(300ms * var(--calcite-internal-duration-factor))}.calcite-animate{opacity:0;-webkit-animation-fill-mode:both;animation-fill-mode:both;-webkit-animation-duration:var(--calcite-animation-timing);animation-duration:var(--calcite-animation-timing)}.calcite-animate__in{-webkit-animation-name:in;animation-name:in}.calcite-animate__in-down{-webkit-animation-name:in-down;animation-name:in-down}.calcite-animate__in-up{-webkit-animation-name:in-up;animation-name:in-up}.calcite-animate__in-scale{-webkit-animation-name:in-scale;animation-name:in-scale}:root{--calcite-popper-transition:var(--calcite-animation-timing)}:host([hidden]){display:none}.icon-position--end,.icon-position--start{--calcite-accordion-item-icon-rotation:calc(90deg * -1);--calcite-accordion-item-active-icon-rotation:0deg;--calcite-accordion-item-icon-rotation-rtl:90deg;--calcite-accordion-item-active-icon-rotation-rtl:0deg}.icon-position--start{--calcite-accordion-item-flex-direction:row-reverse;--calcite-accordion-item-icon-spacing-start:0;--calcite-accordion-item-icon-spacing-end:var(--calcite-accordion-icon-margin)}.icon-position--end{--calcite-accordion-item-flex-direction:row;--calcite-accordion-item-icon-spacing-start:var(--calcite-accordion-icon-margin);--calcite-accordion-item-icon-spacing-end:0}.icon-position--end:not(.icon-type--plus-minus){--calcite-accordion-item-icon-rotation:0deg;--calcite-accordion-item-active-icon-rotation:180deg;--calcite-accordion-item-icon-rotation-rtl:0deg;--calcite-accordion-item-active-icon-rotation-rtl:calc(180deg * -1)}:host{position:relative;display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;color:var(--calcite-ui-text-3);-webkit-text-decoration-line:none;text-decoration-line:none;outline:2px solid transparent;outline-offset:2px;background-color:var(--calcite-accordion-item-background, var(--calcite-ui-foreground-1))}:host .accordion-item-header{outline-offset:0;outline-color:transparent;-webkit-transition:outline-offset 100ms ease-in-out, outline-color 100ms ease-in-out;transition:outline-offset 100ms ease-in-out, outline-color 100ms ease-in-out}:host(:focus) .accordion-item-header{outline:2px solid var(--calcite-ui-brand);outline-offset:-2px}:host([active]){color:var(--calcite-ui-text-1)}:host([active]) .accordion-item-content{display:block;color:var(--calcite-ui-text-1)}:host([active]) .accordion-item-header{border-bottom-color:transparent}:host .accordion-item-header{display:-ms-flexbox;display:flex;cursor:pointer;-ms-flex-align:center;align-items:center;-ms-flex-direction:var(--calcite-accordion-item-flex-direction);flex-direction:var(--calcite-accordion-item-flex-direction)}:host .accordion-item-icon{position:relative;margin:0px;display:-ms-inline-flexbox;display:inline-flex;color:var(--calcite-ui-text-3);-webkit-transition-duration:150ms;transition-duration:150ms;-webkit-transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);-webkit-margin-end:var(--calcite-accordion-item-icon-spacing-start);margin-inline-end:var(--calcite-accordion-item-icon-spacing-start);-webkit-margin-start:var(--calcite-accordion-item-icon-spacing-end);margin-inline-start:var(--calcite-accordion-item-icon-spacing-end)}:host .accordion-item-content,:host .accordion-item-header{padding:var(--calcite-accordion-item-padding);border-bottom:1px solid var(--calcite-accordion-item-border, var(--calcite-ui-border-2))}:host .accordion-item-header *{display:-ms-inline-flexbox;display:inline-flex;-ms-flex-align:center;align-items:center;-webkit-transition-duration:150ms;transition-duration:150ms;-webkit-transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1)}:host .accordion-item-content{display:none;padding-top:0px;color:var(--calcite-ui-text-3);text-align:initial}:host .accordion-item-expand-icon{color:var(--calcite-ui-text-3);-webkit-margin-start:var(--calcite-accordion-item-icon-spacing-start);margin-inline-start:var(--calcite-accordion-item-icon-spacing-start);-webkit-margin-end:var(--calcite-accordion-item-icon-spacing-end);margin-inline-end:var(--calcite-accordion-item-icon-spacing-end);-webkit-transform:rotate(var(--calcite-accordion-item-icon-rotation));transform:rotate(var(--calcite-accordion-item-icon-rotation))}.calcite--rtl .accordion-item-expand-icon{-webkit-transform:rotate(var(--calcite-accordion-item-icon-rotation-rtl));transform:rotate(var(--calcite-accordion-item-icon-rotation-rtl))}:host([active]) .accordion-item-expand-icon{color:var(--calcite-ui-text-1);-webkit-transform:rotate(var(--calcite-accordion-item-active-icon-rotation));transform:rotate(var(--calcite-accordion-item-active-icon-rotation))}:host([active]) .calcite--rtl .accordion-item-expand-icon{-webkit-transform:rotate(var(--calcite-accordion-item-active-icon-rotation-rtl));transform:rotate(var(--calcite-accordion-item-active-icon-rotation-rtl))}:host .accordion-item-header-text{margin-top:0px;margin-bottom:0px;-ms-flex-positive:1;flex-grow:1;-ms-flex-direction:column;flex-direction:column;padding-top:0px;padding-bottom:0px;text-align:initial;-webkit-margin-end:auto;margin-inline-end:auto}:host .accordion-item-title,:host .accordion-item-subtitle{display:-ms-flexbox;display:flex;width:100%}:host .accordion-item-title{font-weight:var(--calcite-font-weight-medium);color:var(--calcite-ui-text-2)}:host .accordion-item-subtitle{margin-top:0.25rem;color:var(--calcite-ui-text-3)}:host(:focus) .accordion-item-title,:host(:hover) .accordion-item-title{color:var(--calcite-ui-text-1)}:host(:focus) .accordion-item-icon,:host(:hover) .accordion-item-icon{color:var(--calcite-ui-text-1)}:host(:focus) .accordion-item-expand-icon,:host(:hover) .accordion-item-expand-icon{color:var(--calcite-ui-text-1)}:host(:focus) .accordion-item-subtitle,:host(:hover) .accordion-item-subtitle{color:var(--calcite-ui-text-2)}:host(:focus) .accordion-item-title,:host(:active) .accordion-item-title,:host([active]) .accordion-item-title{color:var(--calcite-ui-text-1)}:host(:focus) .accordion-item-icon,:host(:active) .accordion-item-icon,:host([active]) .accordion-item-icon{color:var(--calcite-ui-text-1)}:host(:focus) .accordion-item-expand-icon,:host(:active) .accordion-item-expand-icon,:host([active]) .accordion-item-expand-icon{color:var(--calcite-ui-text-1)}:host(:focus) .accordion-item-subtitle,:host(:active) .accordion-item-subtitle,:host([active]) .accordion-item-subtitle{color:var(--calcite-ui-text-2)}";
|
|
350
360
|
|
|
@@ -408,7 +418,7 @@ const AccordionItem = class extends HTMLElement$1 {
|
|
|
408
418
|
? "caretDown"
|
|
409
419
|
: this.active
|
|
410
420
|
? "minus"
|
|
411
|
-
: "plus", scale: "s" })), h("div", { "aria-expanded": this.active
|
|
421
|
+
: "plus", scale: "s" })), h("div", { "aria-expanded": toAriaBoolean(this.active), "aria-labelledby": buttonId, class: "accordion-item-content", id: regionId, role: "region" }, h("slot", null)))));
|
|
412
422
|
}
|
|
413
423
|
//--------------------------------------------------------------------------
|
|
414
424
|
//
|
|
@@ -666,7 +676,7 @@ const Action = class extends HTMLElement$1 {
|
|
|
666
676
|
[CSS$P.buttonTextVisible]: textEnabled,
|
|
667
677
|
[CSS$P.buttonCompact]: compact
|
|
668
678
|
};
|
|
669
|
-
return (h(Host, { onClick: this.calciteActionClickHandler }, h("button", { "aria-busy": loading
|
|
679
|
+
return (h(Host, { onClick: this.calciteActionClickHandler }, h("button", { "aria-busy": toAriaBoolean(loading), "aria-disabled": toAriaBoolean(disabled), "aria-label": ariaLabel, class: buttonClasses, disabled: disabled, ref: (buttonEl) => (this.buttonEl = buttonEl) }, this.renderIconContainer(), this.renderTextContainer())));
|
|
670
680
|
}
|
|
671
681
|
get el() { return this; }
|
|
672
682
|
static get style() { return actionCss; }
|
|
@@ -2381,7 +2391,7 @@ const ActionMenu = class extends HTMLElement$1 {
|
|
|
2381
2391
|
}
|
|
2382
2392
|
menuButtonEl.active = open;
|
|
2383
2393
|
menuButtonEl.setAttribute("aria-controls", menuId);
|
|
2384
|
-
menuButtonEl.setAttribute("aria-expanded", open
|
|
2394
|
+
menuButtonEl.setAttribute("aria-expanded", toAriaBoolean(open));
|
|
2385
2395
|
menuButtonEl.setAttribute("aria-haspopup", "true");
|
|
2386
2396
|
if (!menuButtonEl.id) {
|
|
2387
2397
|
menuButtonEl.id = menuButtonId;
|
|
@@ -2852,7 +2862,7 @@ const Alert = class extends HTMLElement$1 {
|
|
|
2852
2862
|
const { active, autoDismiss, label, placement, queued, requestedIcon } = this;
|
|
2853
2863
|
const role = autoDismiss ? "alert" : "alertdialog";
|
|
2854
2864
|
const hidden = !active;
|
|
2855
|
-
return (h(Host, { "aria-hidden": hidden
|
|
2865
|
+
return (h(Host, { "aria-hidden": toAriaBoolean(hidden), "aria-label": label, "calcite-hydrated-hidden": hidden, role: role }, h("div", { class: {
|
|
2856
2866
|
container: true,
|
|
2857
2867
|
queued,
|
|
2858
2868
|
[placement]: true
|
|
@@ -3331,10 +3341,10 @@ const Block = class extends HTMLElement$1 {
|
|
|
3331
3341
|
const { guid } = this;
|
|
3332
3342
|
const regionId = `${guid}-region`;
|
|
3333
3343
|
const buttonId = `${guid}-button`;
|
|
3334
|
-
const headerNode = (h("div", { class: CSS$L.headerContainer }, this.dragHandle ? h("calcite-handle", null) : null, collapsible ? (h("button", { "aria-controls": regionId, "aria-expanded": collapsible ? open
|
|
3335
|
-
return (h(Host, null, h("article", { "aria-busy": loading
|
|
3344
|
+
const headerNode = (h("div", { class: CSS$L.headerContainer }, this.dragHandle ? h("calcite-handle", null) : null, collapsible ? (h("button", { "aria-controls": regionId, "aria-expanded": collapsible ? toAriaBoolean(open) : null, "aria-label": toggleLabel, class: CSS$L.toggle, id: buttonId, onClick: this.onHeaderClick, title: toggleLabel }, headerContent, !hasControl && !hasMenuActions ? (h("calcite-icon", { "aria-hidden": "true", class: CSS$L.toggleIcon, icon: collapseIcon, scale: "s" })) : null)) : (headerContent), loading ? (h("calcite-loader", { inline: true, "is-active": true, label: intlLoading })) : hasControl ? (h("div", { class: CSS$L.controlContainer }, h("slot", { name: SLOTS$k.control }))) : null, hasMenuActions ? (h("calcite-action-menu", { label: this.intlOptions || TEXT$m.options }, h("slot", { name: SLOTS$k.headerMenuActions }))) : null));
|
|
3345
|
+
return (h(Host, null, h("article", { "aria-busy": toAriaBoolean(loading), class: {
|
|
3336
3346
|
[CSS$L.article]: true
|
|
3337
|
-
} }, headerNode, h("section", { "aria-expanded":
|
|
3347
|
+
} }, headerNode, h("section", { "aria-expanded": toAriaBoolean(open), "aria-labelledby": buttonId, class: CSS$L.content, hidden: !open, id: regionId }, this.renderScrim()))));
|
|
3338
3348
|
}
|
|
3339
3349
|
get el() { return this; }
|
|
3340
3350
|
static get style() { return blockCss; }
|
|
@@ -3435,7 +3445,7 @@ const BlockSection = class extends HTMLElement$1 {
|
|
|
3435
3445
|
[CSS$K.sectionHeader]: true,
|
|
3436
3446
|
[CSS$K.toggle]: true
|
|
3437
3447
|
}, id: buttonId, name: toggleLabel, onClick: this.toggleSection }, h("calcite-icon", { icon: arrowIcon, scale: "s" }), h("span", { class: CSS$K.sectionHeaderText }, text), this.renderStatusIcon()));
|
|
3438
|
-
return (h(Host, null, headerNode, h("section", { "aria-expanded": open
|
|
3448
|
+
return (h(Host, null, headerNode, h("section", { "aria-expanded": toAriaBoolean(open), "aria-labelledby": buttonId, class: CSS$K.content, hidden: !open, id: regionId }, h("slot", null))));
|
|
3439
3449
|
}
|
|
3440
3450
|
get el() { return this; }
|
|
3441
3451
|
static get style() { return blockSectionCss; }
|
|
@@ -3596,6 +3606,187 @@ function onLabelDisconnected() {
|
|
|
3596
3606
|
document.addEventListener(labelConnectedEvent, boundOnLabelConnected);
|
|
3597
3607
|
}
|
|
3598
3608
|
|
|
3609
|
+
/**
|
|
3610
|
+
* Exported for testing purposes.
|
|
3611
|
+
*/
|
|
3612
|
+
const hiddenFormInputSlotName = "hidden-form-input";
|
|
3613
|
+
function isCheckable(component) {
|
|
3614
|
+
return "checked" in component;
|
|
3615
|
+
}
|
|
3616
|
+
const onFormResetMap = new WeakMap();
|
|
3617
|
+
const formComponentSet = new WeakSet();
|
|
3618
|
+
function hasRegisteredFormComponentParent(form, formComponentEl) {
|
|
3619
|
+
// we use events as a way to test for nested form-associated components across shadow bounds
|
|
3620
|
+
const formComponentRegisterEventName = "calciteInternalFormComponentRegister";
|
|
3621
|
+
let hasRegisteredFormComponentParent = false;
|
|
3622
|
+
form.addEventListener(formComponentRegisterEventName, (event) => {
|
|
3623
|
+
hasRegisteredFormComponentParent = event
|
|
3624
|
+
.composedPath()
|
|
3625
|
+
.some((element) => formComponentSet.has(element));
|
|
3626
|
+
event.stopPropagation();
|
|
3627
|
+
}, { once: true });
|
|
3628
|
+
formComponentEl.dispatchEvent(new CustomEvent(formComponentRegisterEventName, {
|
|
3629
|
+
bubbles: true,
|
|
3630
|
+
composed: true
|
|
3631
|
+
}));
|
|
3632
|
+
return hasRegisteredFormComponentParent;
|
|
3633
|
+
}
|
|
3634
|
+
/**
|
|
3635
|
+
* Helper to submit a form.
|
|
3636
|
+
*/
|
|
3637
|
+
function submitForm(component) {
|
|
3638
|
+
var _a;
|
|
3639
|
+
(_a = component.formEl) === null || _a === void 0 ? void 0 : _a.requestSubmit();
|
|
3640
|
+
}
|
|
3641
|
+
/**
|
|
3642
|
+
* Helper to reset a form.
|
|
3643
|
+
*/
|
|
3644
|
+
function resetForm(component) {
|
|
3645
|
+
var _a;
|
|
3646
|
+
(_a = component.formEl) === null || _a === void 0 ? void 0 : _a.reset();
|
|
3647
|
+
}
|
|
3648
|
+
/**
|
|
3649
|
+
* Helper to set up form interactions on connectedCallback.
|
|
3650
|
+
*/
|
|
3651
|
+
function connectForm(component) {
|
|
3652
|
+
const { el, value } = component;
|
|
3653
|
+
const form = closestElementCrossShadowBoundary(el, "form");
|
|
3654
|
+
if (!form || hasRegisteredFormComponentParent(form, el)) {
|
|
3655
|
+
return;
|
|
3656
|
+
}
|
|
3657
|
+
component.formEl = form;
|
|
3658
|
+
component.defaultValue = value;
|
|
3659
|
+
if (isCheckable(component)) {
|
|
3660
|
+
component.defaultChecked = component.checked;
|
|
3661
|
+
}
|
|
3662
|
+
const boundOnFormReset = (component.onFormReset || onFormReset).bind(component);
|
|
3663
|
+
form.addEventListener("reset", boundOnFormReset);
|
|
3664
|
+
onFormResetMap.set(component.el, boundOnFormReset);
|
|
3665
|
+
formComponentSet.add(el);
|
|
3666
|
+
}
|
|
3667
|
+
function onFormReset() {
|
|
3668
|
+
if (isCheckable(this)) {
|
|
3669
|
+
this.checked = this.defaultChecked;
|
|
3670
|
+
return;
|
|
3671
|
+
}
|
|
3672
|
+
this.value = this.defaultValue;
|
|
3673
|
+
}
|
|
3674
|
+
/**
|
|
3675
|
+
* Helper to tear down form interactions on disconnectedCallback.
|
|
3676
|
+
*/
|
|
3677
|
+
function disconnectForm(component) {
|
|
3678
|
+
const { el, formEl } = component;
|
|
3679
|
+
if (!formEl) {
|
|
3680
|
+
return;
|
|
3681
|
+
}
|
|
3682
|
+
const boundOnFormReset = onFormResetMap.get(el);
|
|
3683
|
+
formEl.removeEventListener("reset", boundOnFormReset);
|
|
3684
|
+
onFormResetMap.delete(el);
|
|
3685
|
+
component.formEl = null;
|
|
3686
|
+
formComponentSet.delete(el);
|
|
3687
|
+
}
|
|
3688
|
+
/**
|
|
3689
|
+
* Helper for setting the default value on initialization after connectedCallback.
|
|
3690
|
+
*
|
|
3691
|
+
* Note that this is only needed if the default value cannot be determined on connectedCallback.
|
|
3692
|
+
*/
|
|
3693
|
+
function afterConnectDefaultValueSet(component, value) {
|
|
3694
|
+
component.defaultValue = value;
|
|
3695
|
+
}
|
|
3696
|
+
/**
|
|
3697
|
+
* Helper for maintaining a form-associated's hidden input in sync with the component.
|
|
3698
|
+
*
|
|
3699
|
+
* Based on Ionic's approach: https://github.com/ionic-team/ionic-framework/blob/e4bf052794af9aac07f887013b9250d2a045eba3/core/src/utils/helpers.ts#L198
|
|
3700
|
+
*/
|
|
3701
|
+
function syncHiddenFormInput(component) {
|
|
3702
|
+
const { el, formEl, name, value } = component;
|
|
3703
|
+
const { ownerDocument } = el;
|
|
3704
|
+
const inputs = el.querySelectorAll(`input[slot="${hiddenFormInputSlotName}"]`);
|
|
3705
|
+
if (!formEl || !name) {
|
|
3706
|
+
inputs.forEach((input) => input.remove());
|
|
3707
|
+
return;
|
|
3708
|
+
}
|
|
3709
|
+
const values = Array.isArray(value) ? value : [value];
|
|
3710
|
+
const extra = [];
|
|
3711
|
+
const seen = new Set();
|
|
3712
|
+
inputs.forEach((input) => {
|
|
3713
|
+
const valueMatch = values.find((val) =>
|
|
3714
|
+
/* intentional non-strict equality check */
|
|
3715
|
+
val == input.value);
|
|
3716
|
+
if (valueMatch != null) {
|
|
3717
|
+
seen.add(valueMatch);
|
|
3718
|
+
defaultSyncHiddenFormInput(component, input, valueMatch);
|
|
3719
|
+
}
|
|
3720
|
+
else {
|
|
3721
|
+
extra.push(input);
|
|
3722
|
+
}
|
|
3723
|
+
});
|
|
3724
|
+
let docFrag;
|
|
3725
|
+
values.forEach((value) => {
|
|
3726
|
+
if (seen.has(value)) {
|
|
3727
|
+
return;
|
|
3728
|
+
}
|
|
3729
|
+
let input = extra.pop();
|
|
3730
|
+
if (!input) {
|
|
3731
|
+
input = ownerDocument.createElement("input");
|
|
3732
|
+
input.slot = hiddenFormInputSlotName;
|
|
3733
|
+
}
|
|
3734
|
+
if (!docFrag) {
|
|
3735
|
+
docFrag = ownerDocument.createDocumentFragment();
|
|
3736
|
+
}
|
|
3737
|
+
docFrag.append(input);
|
|
3738
|
+
defaultSyncHiddenFormInput(component, input, value);
|
|
3739
|
+
});
|
|
3740
|
+
if (docFrag) {
|
|
3741
|
+
el.append(docFrag);
|
|
3742
|
+
}
|
|
3743
|
+
extra.forEach((input) => input.remove());
|
|
3744
|
+
}
|
|
3745
|
+
function defaultSyncHiddenFormInput(component, input, value) {
|
|
3746
|
+
var _a;
|
|
3747
|
+
const { defaultValue, disabled, name, required } = component;
|
|
3748
|
+
// keep in sync to prevent losing reset value
|
|
3749
|
+
input.defaultValue = defaultValue;
|
|
3750
|
+
input.disabled = disabled;
|
|
3751
|
+
input.name = name;
|
|
3752
|
+
input.required = required;
|
|
3753
|
+
input.tabIndex = -1;
|
|
3754
|
+
if (isCheckable(component)) {
|
|
3755
|
+
// keep in sync to prevent losing reset value
|
|
3756
|
+
input.defaultChecked = component.defaultChecked;
|
|
3757
|
+
// heuristic to support default/on mode from https://html.spec.whatwg.org/multipage/input.html#dom-input-value-default-on
|
|
3758
|
+
input.value = component.checked ? value || "on" : "";
|
|
3759
|
+
// we disable the component when not checked to avoid having its value submitted
|
|
3760
|
+
if (!disabled && !component.checked) {
|
|
3761
|
+
input.disabled = true;
|
|
3762
|
+
}
|
|
3763
|
+
}
|
|
3764
|
+
else {
|
|
3765
|
+
input.value = value || "";
|
|
3766
|
+
}
|
|
3767
|
+
(_a = component.syncHiddenFormInput) === null || _a === void 0 ? void 0 : _a.call(component, input);
|
|
3768
|
+
}
|
|
3769
|
+
/**
|
|
3770
|
+
* Helper to render the slot for form-associated component's hidden input.
|
|
3771
|
+
*
|
|
3772
|
+
* If the component has a default slot, this must be placed at the bottom of the component's root container to ensure it is the last child.
|
|
3773
|
+
*
|
|
3774
|
+
* render(): VNode {
|
|
3775
|
+
* <Host>
|
|
3776
|
+
* <div class={CSS.container}>
|
|
3777
|
+
* // ...
|
|
3778
|
+
* <HiddenFormInputSlot component={this} />
|
|
3779
|
+
* </div>
|
|
3780
|
+
* </Host>
|
|
3781
|
+
* }
|
|
3782
|
+
*
|
|
3783
|
+
* Note that the hidden-form-input Sass mixin must be added to the component's style to apply specific styles.
|
|
3784
|
+
*/
|
|
3785
|
+
const HiddenFormInputSlot = ({ component }) => {
|
|
3786
|
+
syncHiddenFormInput(component);
|
|
3787
|
+
return h("slot", { name: hiddenFormInputSlotName });
|
|
3788
|
+
};
|
|
3789
|
+
|
|
3599
3790
|
const buttonCss = "@-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-block;width:auto;vertical-align:middle}:host([round]){border-radius:50px}:host([round]) a,:host([round]) button{border-radius:50px}:host button,:host a{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 button:focus,:host a:focus{outline:2px solid var(--calcite-ui-brand);outline-offset:2px}:host button,:host a{--calcite-button-content-margin:0.5rem;--calcite-button-padding-x:7px;--calcite-button-padding-y:3px;padding:var(--calcite-button-padding-y) var(--calcite-button-padding-x) var(--calcite-button-padding-y) var(--calcite-button-padding-x);position:relative;-webkit-box-sizing:border-box;box-sizing:border-box;display:-ms-flexbox;display:flex;height:100%;width:100%;cursor:pointer;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;-webkit-appearance:none;-moz-appearance:none;appearance:none;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;border-radius:0px;border-style:none;text-align:center;font-family:inherit;font-weight:var(--calcite-font-weight-normal);-webkit-text-decoration-line:none;text-decoration-line:none;-webkit-transition:color var(--calcite-animation-timing) ease-in-out, background-color var(--calcite-animation-timing) ease-in-out, outline-offset var(--calcite-internal-animation-timing-fast) ease-in-out, outline-color var(--calcite-internal-animation-timing-fast) ease-in-out, -webkit-box-shadow var(--calcite-animation-timing) ease-in-out;transition:color var(--calcite-animation-timing) ease-in-out, background-color var(--calcite-animation-timing) ease-in-out, outline-offset var(--calcite-internal-animation-timing-fast) ease-in-out, outline-color var(--calcite-internal-animation-timing-fast) ease-in-out, -webkit-box-shadow var(--calcite-animation-timing) ease-in-out;transition:color var(--calcite-animation-timing) ease-in-out, background-color var(--calcite-animation-timing) ease-in-out, box-shadow var(--calcite-animation-timing) ease-in-out, outline-offset var(--calcite-internal-animation-timing-fast) ease-in-out, outline-color var(--calcite-internal-animation-timing-fast) ease-in-out;transition:color var(--calcite-animation-timing) ease-in-out, background-color var(--calcite-animation-timing) ease-in-out, box-shadow var(--calcite-animation-timing) ease-in-out, outline-offset var(--calcite-internal-animation-timing-fast) ease-in-out, outline-color var(--calcite-internal-animation-timing-fast) ease-in-out, -webkit-box-shadow var(--calcite-animation-timing) ease-in-out}:host button:hover,:host a:hover{-webkit-text-decoration-line:none;text-decoration-line:none}.content{display:-ms-flexbox;display:flex;-ms-flex-preferred-size:auto;flex-basis:auto;-webkit-margin-start:var(--calcite-button-content-margin);margin-inline-start:var(--calcite-button-content-margin);-webkit-margin-end:var(--calcite-button-content-margin);margin-inline-end:var(--calcite-button-content-margin)}.icon-start-empty .content{-webkit-margin-start:unset;margin-inline-start:unset}.icon-end-empty .content{-webkit-margin-end:unset;margin-inline-end:unset}:host([scale=m]) button,:host([scale=m]) a{--calcite-button-content-margin:0.75rem}:host([scale=l]) button,:host([scale=l]) a{--calcite-button-content-margin:1rem}:host([width=auto]){width:auto}:host([width=half]){width:50%}:host([width=full]){width:100%}:host([alignment=center]:not([width=auto])) a,:host([alignment=center]:not([width=auto])) button{-ms-flex-pack:center;justify-content:center}:host([alignment=start]:not([width=auto])) a,:host([alignment=start]:not([width=auto])) button{-ms-flex-pack:start;justify-content:flex-start}:host([alignment=end]:not([width=auto])) a,:host([alignment=end]:not([width=auto])) button{-ms-flex-pack:end;justify-content:flex-end}:host([alignment*=space-between]:not([width=auto])) a,:host([alignment*=space-between]:not([width=auto])) button{-ms-flex-pack:justify;justify-content:space-between}:host([alignment=icon-start-space-between]:not([width=auto])) .icon--start{-webkit-margin-end:auto;margin-inline-end:auto}:host([alignment=icon-start-space-between]:not([width=auto])) a,:host([alignment=icon-start-space-between]:not([width=auto])) button{text-align:unset}:host([alignment=icon-end-space-between]:not([width=auto])) .icon--end{-webkit-margin-start:auto;margin-inline-start:auto}:host([alignment=icon-end-space-between]:not([width=auto])) a,:host([alignment=icon-end-space-between]:not([width=auto])) button{text-align:unset}:host([alignment=center]) a:not(.content--slotted) .icon--start+.icon--end,:host([alignment=center]) button:not(.content--slotted) .icon--start+.icon--end{-webkit-margin-start:var(--calcite-button-content-margin);margin-inline-start:var(--calcite-button-content-margin)}.icon{position:relative;margin:0px;display:-ms-inline-flexbox;display:inline-flex;font-weight:var(--calcite-font-weight-normal);line-height:inherit}:host([disabled]){pointer-events:none;cursor:default;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;opacity:var(--calcite-ui-opacity-disabled)}:host([disabled]) ::slotted([calcite-hydrated][disabled]),:host([disabled]) [calcite-hydrated][disabled]{opacity:1}:host([loading]){pointer-events:none}:host([loading]) button,:host([loading]) a{pointer-events:none;opacity:var(--calcite-ui-opacity-disabled)}@-webkit-keyframes loader-in{0%{width:0;opacity:0;-webkit-transform:scale(0.5);transform:scale(0.5)}100%{width:1em;opacity:1;-webkit-transform:scale(1);transform:scale(1)}}@keyframes loader-in{0%{width:0;opacity:0;-webkit-transform:scale(0.5);transform:scale(0.5)}100%{width:1em;opacity:1;-webkit-transform:scale(1);transform:scale(1)}}@-webkit-keyframes loader-out{0%{width:1em;opacity:1;-webkit-transform:scale(1);transform:scale(1)}100%{width:0;opacity:0;-webkit-transform:scale(0.5);transform:scale(0.5)}}@keyframes loader-out{0%{width:1em;opacity:1;-webkit-transform:scale(1);transform:scale(1)}100%{width:0;opacity:0;-webkit-transform:scale(0.5);transform:scale(0.5)}}.calcite-button--loader{display:-ms-flexbox;display:flex}.calcite-button--loader calcite-loader{margin:0px;-webkit-transition:width var(--calcite-internal-animation-timing-slow) ease-in-out, opacity var(--calcite-internal-animation-timing-slow) ease-in-out, -webkit-transform var(--calcite-internal-animation-timing-slow) ease-in-out;transition:width var(--calcite-internal-animation-timing-slow) ease-in-out, opacity var(--calcite-internal-animation-timing-slow) ease-in-out, -webkit-transform var(--calcite-internal-animation-timing-slow) ease-in-out;transition:width var(--calcite-internal-animation-timing-slow) ease-in-out, opacity var(--calcite-internal-animation-timing-slow) ease-in-out, transform var(--calcite-internal-animation-timing-slow) ease-in-out;transition:width var(--calcite-internal-animation-timing-slow) ease-in-out, opacity var(--calcite-internal-animation-timing-slow) ease-in-out, transform var(--calcite-internal-animation-timing-slow) ease-in-out, -webkit-transform var(--calcite-internal-animation-timing-slow) ease-in-out}.calcite-button--loader calcite-loader.loading-in{-webkit-animation-name:loader-in;animation-name:loader-in;-webkit-animation-duration:310ms;animation-duration:310ms}.calcite-button--loader calcite-loader.loading-out{-webkit-animation-name:loader-out;animation-name:loader-out;-webkit-animation-duration:310ms;animation-duration:310ms}:host([loading]) button.content--slotted .calcite-button--loader calcite-loader,:host([loading]) a.content--slotted .calcite-button--loader calcite-loader{-webkit-margin-end:var(--calcite-button-content-margin);margin-inline-end:var(--calcite-button-content-margin)}:host([loading]) button:not(.content--slotted) .icon--start,:host([loading]) button:not(.content--slotted) .icon--end,:host([loading]) a:not(.content--slotted) .icon--start,:host([loading]) a:not(.content--slotted) .icon--end{display:none}:host([appearance=solid]) button,:host([appearance=solid]) a{border-width:1px;border-style:solid;border-color:transparent}:host([appearance=solid][color=blue]) button,:host([appearance=solid][color=blue]) a{background-color:var(--calcite-ui-brand);color:var(--calcite-ui-text-inverse)}:host([appearance=solid][color=blue]) button:hover,:host([appearance=solid][color=blue]) button:focus,:host([appearance=solid][color=blue]) a:hover,:host([appearance=solid][color=blue]) a:focus{background-color:var(--calcite-ui-brand-hover)}:host([appearance=solid][color=blue]) button:active,:host([appearance=solid][color=blue]) a:active{background-color:var(--calcite-ui-brand-press)}:host([appearance=solid][color=blue]) button calcite-loader,:host([appearance=solid][color=blue]) a calcite-loader{color:var(--calcite-ui-text-inverse)}:host([appearance=solid][color=red]) button,:host([appearance=solid][color=red]) a{background-color:var(--calcite-ui-danger);color:var(--calcite-ui-text-inverse)}:host([appearance=solid][color=red]) button:hover,:host([appearance=solid][color=red]) button:focus,:host([appearance=solid][color=red]) a:hover,:host([appearance=solid][color=red]) a:focus{background-color:var(--calcite-ui-danger-hover)}:host([appearance=solid][color=red]) button:active,:host([appearance=solid][color=red]) a:active{background-color:var(--calcite-ui-danger-press)}:host([appearance=solid][color=red]) button calcite-loader,:host([appearance=solid][color=red]) a calcite-loader{color:var(--calcite-ui-text-inverse)}:host([appearance=solid][color=neutral]) button,:host([appearance=solid][color=neutral]) a{background-color:var(--calcite-ui-foreground-3);color:var(--calcite-ui-text-1)}:host([appearance=solid][color=neutral]) button:hover,:host([appearance=solid][color=neutral]) button:focus,:host([appearance=solid][color=neutral]) a:hover,:host([appearance=solid][color=neutral]) a:focus{background-color:var(--calcite-ui-foreground-2)}:host([appearance=solid][color=neutral]) button:active,:host([appearance=solid][color=neutral]) a:active{background-color:var(--calcite-ui-foreground-1)}:host([appearance=solid][color=neutral]) button calcite-loader,:host([appearance=solid][color=neutral]) a calcite-loader{color:var(--calcite-ui-text-1)}:host([appearance=solid][color=inverse]) button,:host([appearance=solid][color=inverse]) a{color:var(--calcite-ui-text-inverse);background-color:var(--calcite-ui-inverse)}:host([appearance=solid][color=inverse]) button:hover,:host([appearance=solid][color=inverse]) button:focus,:host([appearance=solid][color=inverse]) a:hover,:host([appearance=solid][color=inverse]) a:focus{background-color:var(--calcite-ui-inverse-hover)}:host([appearance=solid][color=inverse]) button:active,:host([appearance=solid][color=inverse]) a:active{background-color:var(--calcite-ui-inverse-press)}:host([appearance=solid][color=inverse]) button calcite-loader,:host([appearance=solid][color=inverse]) a calcite-loader{color:var(--calcite-ui-text-inverse)}:host([appearance=outline]) button,:host([appearance=outline]) a{border-width:1px;border-style:solid;background-color:var(--calcite-ui-foreground-1);-webkit-box-shadow:inset 0 0 0 1px transparent;box-shadow:inset 0 0 0 1px transparent}:host([appearance=outline][color=blue]) button,:host([appearance=outline][color=blue]) a{border-color:var(--calcite-ui-brand);color:var(--calcite-ui-brand)}:host([appearance=outline][color=blue]) button:hover,:host([appearance=outline][color=blue]) a:hover{border-color:var(--calcite-ui-brand-hover);color:var(--calcite-ui-brand-hover);-webkit-box-shadow:inset 0 0 0 1px var(--calcite-ui-brand-hover);box-shadow:inset 0 0 0 1px var(--calcite-ui-brand-hover)}:host([appearance=outline][color=blue]) button:focus,:host([appearance=outline][color=blue]) a:focus{border-color:var(--calcite-ui-brand);color:var(--calcite-ui-brand);-webkit-box-shadow:inset 0 0 0 2px var(--calcite-ui-brand);box-shadow:inset 0 0 0 2px var(--calcite-ui-brand)}:host([appearance=outline][color=blue]) button:active,:host([appearance=outline][color=blue]) a:active{border-color:var(--calcite-ui-brand-press);color:var(--calcite-ui-brand-press);-webkit-box-shadow:inset 0 0 0 2px var(--calcite-ui-brand-press);box-shadow:inset 0 0 0 2px var(--calcite-ui-brand-press)}:host([appearance=outline][color=blue]) button calcite-loader,:host([appearance=outline][color=blue]) a calcite-loader{color:var(--calcite-ui-brand)}:host([appearance=outline][color=red]) button,:host([appearance=outline][color=red]) a{border-color:var(--calcite-ui-danger);color:var(--calcite-ui-danger)}:host([appearance=outline][color=red]) button:hover,:host([appearance=outline][color=red]) a:hover{border-color:var(--calcite-ui-danger-hover);color:var(--calcite-ui-danger-hover);-webkit-box-shadow:inset 0 0 0 1px var(--calcite-ui-danger-hover);box-shadow:inset 0 0 0 1px var(--calcite-ui-danger-hover)}:host([appearance=outline][color=red]) button:focus,:host([appearance=outline][color=red]) a:focus{border-color:var(--calcite-ui-danger);color:var(--calcite-ui-danger);-webkit-box-shadow:inset 0 0 0 2px var(--calcite-ui-danger);box-shadow:inset 0 0 0 2px var(--calcite-ui-danger)}:host([appearance=outline][color=red]) button:active,:host([appearance=outline][color=red]) a:active{border-color:var(--calcite-ui-danger-press);color:var(--calcite-ui-danger-press);-webkit-box-shadow:inset 0 0 0 2px var(--calcite-ui-danger-press);box-shadow:inset 0 0 0 2px var(--calcite-ui-danger-press)}:host([appearance=outline][color=red]) button calcite-loader,:host([appearance=outline][color=red]) a calcite-loader{color:var(--calcite-ui-danger)}:host([appearance=outline][color=neutral]) button,:host([appearance=outline][color=neutral]) a{color:var(--calcite-ui-text-1);border-color:var(--calcite-ui-foreground-3)}:host([appearance=outline][color=neutral]) button:hover,:host([appearance=outline][color=neutral]) a:hover{-webkit-box-shadow:inset 0 0 0 1px var(--calcite-ui-foreground-3);box-shadow:inset 0 0 0 1px var(--calcite-ui-foreground-3)}:host([appearance=outline][color=neutral]) button:focus,:host([appearance=outline][color=neutral]) a:focus{-webkit-box-shadow:inset 0 0 0 2px var(--calcite-ui-foreground-3);box-shadow:inset 0 0 0 2px var(--calcite-ui-foreground-3)}:host([appearance=outline][color=neutral]) button:active,:host([appearance=outline][color=neutral]) a:active{-webkit-box-shadow:inset 0 0 0 2px var(--calcite-ui-foreground-3);box-shadow:inset 0 0 0 2px var(--calcite-ui-foreground-3)}:host([appearance=outline][color=neutral]) button calcite-loader,:host([appearance=outline][color=neutral]) a calcite-loader{color:var(--calcite-ui-text-1)}:host([appearance=outline][color=inverse]) button,:host([appearance=outline][color=inverse]) a{color:var(--calcite-ui-text-1);border-color:var(--calcite-ui-inverse)}:host([appearance=outline][color=inverse]) button:hover,:host([appearance=outline][color=inverse]) a:hover{border-color:var(--calcite-ui-inverse-hover);-webkit-box-shadow:inset 0 0 0 1px var(--calcite-ui-inverse-hover);box-shadow:inset 0 0 0 1px var(--calcite-ui-inverse-hover)}:host([appearance=outline][color=inverse]) button:focus,:host([appearance=outline][color=inverse]) a:focus{border-color:var(--calcite-ui-inverse);-webkit-box-shadow:inset 0 0 0 2px var(--calcite-ui-inverse);box-shadow:inset 0 0 0 2px var(--calcite-ui-inverse)}:host([appearance=outline][color=inverse]) button:active,:host([appearance=outline][color=inverse]) a:active{border-color:var(--calcite-ui-inverse-press);-webkit-box-shadow:inset 0 0 0 2px var(--calcite-ui-inverse-press);box-shadow:inset 0 0 0 2px var(--calcite-ui-inverse-press)}:host([appearance=outline][color=inverse]) button calcite-loader,:host([appearance=outline][color=inverse]) a calcite-loader{color:var(--calcite-ui-text-1)}:host([appearance=clear]) button,:host([appearance=clear]) a{border-width:1px;border-style:solid;background-color:transparent;-webkit-box-shadow:inset 0 0 0 1px transparent;box-shadow:inset 0 0 0 1px transparent}:host([appearance=clear][color=blue]) button,:host([appearance=clear][color=blue]) a{border-color:var(--calcite-ui-brand);color:var(--calcite-ui-brand)}:host([appearance=clear][color=blue]) button:hover,:host([appearance=clear][color=blue]) a:hover{border-color:var(--calcite-ui-brand-hover);color:var(--calcite-ui-brand-hover);-webkit-box-shadow:inset 0 0 0 1px var(--calcite-ui-brand-hover);box-shadow:inset 0 0 0 1px var(--calcite-ui-brand-hover)}:host([appearance=clear][color=blue]) button:focus,:host([appearance=clear][color=blue]) a:focus{border-color:var(--calcite-ui-brand);color:var(--calcite-ui-brand);-webkit-box-shadow:inset 0 0 0 2px var(--calcite-ui-brand);box-shadow:inset 0 0 0 2px var(--calcite-ui-brand)}:host([appearance=clear][color=blue]) button:active,:host([appearance=clear][color=blue]) a:active{border-color:var(--calcite-ui-brand-press);color:var(--calcite-ui-brand-press);-webkit-box-shadow:inset 0 0 0 2px var(--calcite-ui-brand-press);box-shadow:inset 0 0 0 2px var(--calcite-ui-brand-press)}:host([appearance=clear][color=blue]) button calcite-loader,:host([appearance=clear][color=blue]) a calcite-loader{color:var(--calcite-ui-brand)}:host([appearance=clear][color=red]) button,:host([appearance=clear][color=red]) a{border-color:var(--calcite-ui-danger);color:var(--calcite-ui-danger)}:host([appearance=clear][color=red]) button:hover,:host([appearance=clear][color=red]) a:hover{border-color:var(--calcite-ui-danger-hover);color:var(--calcite-ui-danger-hover);-webkit-box-shadow:inset 0 0 0 1px var(--calcite-ui-danger-hover);box-shadow:inset 0 0 0 1px var(--calcite-ui-danger-hover)}:host([appearance=clear][color=red]) button:focus,:host([appearance=clear][color=red]) a:focus{border-color:var(--calcite-ui-danger);color:var(--calcite-ui-danger);-webkit-box-shadow:inset 0 0 0 2px var(--calcite-ui-danger);box-shadow:inset 0 0 0 2px var(--calcite-ui-danger)}:host([appearance=clear][color=red]) button:active,:host([appearance=clear][color=red]) a:active{border-color:var(--calcite-ui-danger-press);color:var(--calcite-ui-danger-press);-webkit-box-shadow:inset 0 0 0 2px var(--calcite-ui-danger-press);box-shadow:inset 0 0 0 2px var(--calcite-ui-danger-press)}:host([appearance=clear][color=red]) button calcite-loader,:host([appearance=clear][color=red]) a calcite-loader{color:var(--calcite-ui-danger)}:host([appearance=clear][color=neutral]) button,:host([appearance=clear][color=neutral]) a{color:var(--calcite-ui-text-1);border-color:var(--calcite-ui-foreground-3)}:host([appearance=clear][color=neutral]) button:hover,:host([appearance=clear][color=neutral]) a:hover{-webkit-box-shadow:inset 0 0 0 1px var(--calcite-ui-foreground-3);box-shadow:inset 0 0 0 1px var(--calcite-ui-foreground-3)}:host([appearance=clear][color=neutral]) button:focus,:host([appearance=clear][color=neutral]) a:focus{-webkit-box-shadow:inset 0 0 0 2px var(--calcite-ui-foreground-3);box-shadow:inset 0 0 0 2px var(--calcite-ui-foreground-3)}:host([appearance=clear][color=neutral]) button:active,:host([appearance=clear][color=neutral]) a:active{-webkit-box-shadow:inset 0 0 0 2px var(--calcite-ui-foreground-3);box-shadow:inset 0 0 0 2px var(--calcite-ui-foreground-3)}:host([appearance=clear][color=neutral]) button calcite-loader,:host([appearance=clear][color=neutral]) a calcite-loader{color:var(--calcite-ui-text-1)}:host([appearance=clear][color=inverse]) button,:host([appearance=clear][color=inverse]) a{color:var(--calcite-ui-text-1);border-color:var(--calcite-ui-inverse)}:host([appearance=clear][color=inverse]) button:hover,:host([appearance=clear][color=inverse]) a:hover{border-color:var(--calcite-ui-inverse-hover);-webkit-box-shadow:inset 0 0 0 1px var(--calcite-ui-inverse-hover);box-shadow:inset 0 0 0 1px var(--calcite-ui-inverse-hover)}:host([appearance=clear][color=inverse]) button:focus,:host([appearance=clear][color=inverse]) a:focus{border-color:var(--calcite-ui-inverse);-webkit-box-shadow:inset 0 0 0 2px var(--calcite-ui-inverse);box-shadow:inset 0 0 0 2px var(--calcite-ui-inverse)}:host([appearance=clear][color=inverse]) button:active,:host([appearance=clear][color=inverse]) a:active{border-color:var(--calcite-ui-inverse-press);-webkit-box-shadow:inset 0 0 0 2px var(--calcite-ui-inverse-press);box-shadow:inset 0 0 0 2px var(--calcite-ui-inverse-press)}:host([appearance=clear][color=inverse]) button calcite-loader,:host([appearance=clear][color=inverse]) a calcite-loader{color:var(--calcite-ui-text-1)}:host([appearance=outline][split-child=primary]) button,:host([appearance=clear][split-child=primary]) button{border-inline-end-width:0;border-inline-start-width:1px}:host([appearance=outline][split-child=secondary]) button,:host([appearance=clear][split-child=secondary]) button{border-inline-start-width:0;border-inline-end-width:1px}:host([appearance=transparent]:not(.enable-editing-button)) button,:host([appearance=transparent]:not(.enable-editing-button)) a{background-color:transparent}:host([appearance=transparent]:not(.enable-editing-button)) button:hover,:host([appearance=transparent]:not(.enable-editing-button)) button:focus,:host([appearance=transparent]:not(.enable-editing-button)) a:hover,:host([appearance=transparent]:not(.enable-editing-button)) a:focus{background-color:var(--calcite-button-transparent-hover)}:host([appearance=transparent]:not(.enable-editing-button)) button:active,:host([appearance=transparent]:not(.enable-editing-button)) a:active{background-color:var(--calcite-button-transparent-press)}:host([appearance=transparent][color=blue]) button,:host([appearance=transparent][color=blue]) a{color:var(--calcite-ui-brand)}:host([appearance=transparent][color=blue]) button:hover,:host([appearance=transparent][color=blue]) a:hover{color:var(--calcite-ui-brand-hover)}:host([appearance=transparent][color=blue]) button:focus,:host([appearance=transparent][color=blue]) a:focus{color:var(--calcite-ui-brand)}:host([appearance=transparent][color=blue]) button:active,:host([appearance=transparent][color=blue]) a:active{color:var(--calcite-ui-brand-press)}:host([appearance=transparent][color=blue]) button calcite-loader,:host([appearance=transparent][color=blue]) a calcite-loader{color:var(--calcite-ui-brand)}:host([appearance=transparent][color=red]) button,:host([appearance=transparent][color=red]) a{color:var(--calcite-ui-danger)}:host([appearance=transparent][color=red]) button:hover,:host([appearance=transparent][color=red]) a:hover{color:var(--calcite-ui-danger-hover)}:host([appearance=transparent][color=red]) button:focus,:host([appearance=transparent][color=red]) a:focus{color:var(--calcite-ui-danger)}:host([appearance=transparent][color=red]) button:active,:host([appearance=transparent][color=red]) a:active{color:var(--calcite-ui-danger-press)}:host([appearance=transparent][color=red]) button calcite-loader,:host([appearance=transparent][color=red]) a calcite-loader{color:var(--calcite-ui-danger)}:host([appearance=transparent][color=neutral]:not(.cancel-editing-button)) button,:host([appearance=transparent][color=neutral]:not(.cancel-editing-button)) a,:host([appearance=transparent][color=neutral]:not(.cancel-editing-button)) calcite-loader{color:var(--calcite-ui-text-1)}:host([appearance=transparent][color=neutral].cancel-editing-button) button{border-top-width:1px;border-bottom-width:1px;color:var(--calcite-ui-text-3);border-top-color:var(--calcite-ui-border-input);border-bottom-color:var(--calcite-ui-border-input);border-bottom-style:solid;border-top-style:solid}:host([appearance=transparent][color=neutral].cancel-editing-button) button:not(.content--slotted){--calcite-button-padding-y:0}:host([appearance=transparent][color=neutral].cancel-editing-button) button:hover{color:var(--calcite-ui-text-1)}:host([appearance=transparent][color=neutral].enable-editing-button) button{background-color:transparent}:host(.confirm-changes-button) button:focus,:host(.cancel-editing-button) button:focus,:host(.enable-editing-button) button:focus{outline-offset:-2px}:host([appearance=transparent][color=inverse]) button,:host([appearance=transparent][color=inverse]) a,:host([appearance=transparent][color=inverse]) calcite-loader{color:var(--calcite-ui-text-inverse)}:host([scale=s]) button.content--slotted,:host([scale=s]) a.content--slotted{font-size:var(--calcite-font-size--2);line-height:1rem}:host([scale=s][appearance=transparent]) button.content--slotted,:host([scale=s][appearance=transparent]) a.content--slotted{--calcite-button-padding-x:0.5rem;--calcite-button-padding-y:0.25rem}:host([scale=m]) button.content--slotted,:host([scale=m]) a.content--slotted{--calcite-button-padding-x:11px;font-size:var(--calcite-font-size--1);line-height:1rem}:host([scale=m]:not([appearance=transparent])) button.content--slotted,:host([scale=m]:not([appearance=transparent])) a.content--slotted{--calcite-button-padding-y:7px}:host([scale=m][appearance=transparent]) button.content--slotted,:host([scale=m][appearance=transparent]) a.content--slotted{--calcite-button-padding-x:0.75rem;--calcite-button-padding-y:0.5rem}:host([scale=l]) button.content--slotted,:host([scale=l]) a.content--slotted{--calcite-button-padding-x:15px;font-size:var(--calcite-font-size-0);line-height:1.25rem}:host([scale=l]:not([appearance=transparent])) button.content--slotted,:host([scale=l]:not([appearance=transparent])) a.content--slotted{--calcite-button-padding-y:11px}:host([scale=l][appearance=transparent]) button.content--slotted,:host([scale=l][appearance=transparent]) a.content--slotted{--calcite-button-padding-x:1rem;--calcite-button-padding-y:0.75rem}:host([scale=s]) button:not(.content--slotted),:host([scale=s]) a:not(.content--slotted){--calcite-button-padding-x:0.125rem;--calcite-button-padding-y:3px;width:1.5rem;font-size:var(--calcite-font-size-0);line-height:1.25rem;min-height:1.5rem}:host([scale=s][appearance=transparent]) button:not(.content--slotted),:host([scale=s][appearance=transparent]) a:not(.content--slotted){--calcite-button-padding-y:0.25rem}:host([scale=m]) button:not(.content--slotted),:host([scale=m]) a:not(.content--slotted){--calcite-button-padding-x:0.125rem;--calcite-button-padding-y:7px;width:2rem;font-size:var(--calcite-font-size-0);line-height:1.25rem;min-height:2rem}:host([scale=m][appearance=transparent]) button:not(.content--slotted),:host([scale=m][appearance=transparent]) a:not(.content--slotted){--calcite-button-padding-y:0.5rem}:host([scale=l]) button:not(.content--slotted),:host([scale=l]) a:not(.content--slotted){--calcite-button-padding-x:0.125rem;--calcite-button-padding-y:9px;width:2.75rem;font-size:var(--calcite-font-size-0);line-height:1.25rem;min-height:2.75rem}:host([scale=l][appearance=transparent]) button:not(.content--slotted),:host([scale=l][appearance=transparent]) a:not(.content--slotted){--calcite-button-padding-y:0.625rem}:host([scale=s][icon-start][icon-end]) button:not(.content--slotted),:host([scale=s][icon-start][icon-end]) a:not(.content--slotted){--calcite-button-padding-x:23px;height:1.5rem;font-size:var(--calcite-font-size-0);line-height:1.25rem}:host([scale=s][icon-start][icon-end][appearance=transparent]) button:not(.content--slotted),:host([scale=s][icon-start][icon-end][appearance=transparent]) a:not(.content--slotted){--calcite-button-padding-x:1.5rem}:host([scale=m][icon-start][icon-end]) button:not(.content--slotted),:host([scale=m][icon-start][icon-end]) a:not(.content--slotted){--calcite-button-padding-x:2rem;height:2rem;font-size:var(--calcite-font-size-0);line-height:1.25rem}:host([scale=m][icon-start][icon-end][appearance=transparent]) button:not(.content--slotted),:host([scale=m][icon-start][icon-end][appearance=transparent]) a:not(.content--slotted){--calcite-button-padding-x:33px}:host([scale=l][icon-start][icon-end]) button:not(.content--slotted),:host([scale=l][icon-start][icon-end]) a:not(.content--slotted){--calcite-button-padding-x:43px;height:2.75rem;font-size:var(--calcite-font-size-0);line-height:1.25rem}:host([scale=l][icon-start][icon-end]) button:not(.content--slotted) .icon--start+.icon--end,:host([scale=l][icon-start][icon-end]) a:not(.content--slotted) .icon--start+.icon--end{-webkit-margin-start:1rem;margin-inline-start:1rem}:host([scale=l][icon-start][icon-end][appearance=transparent]) button:not(.content--slotted),:host([scale=l][icon-start][icon-end][appearance=transparent]) a:not(.content--slotted){--calcite-button-padding-x:2.75rem}";
|
|
3600
3791
|
|
|
3601
3792
|
const Button = class extends HTMLElement$1 {
|
|
@@ -3640,16 +3831,16 @@ const Button = class extends HTMLElement$1 {
|
|
|
3640
3831
|
this.hasLoader = false;
|
|
3641
3832
|
// act on a requested or nearby form based on type
|
|
3642
3833
|
this.handleClick = () => {
|
|
3643
|
-
const {
|
|
3834
|
+
const { type } = this;
|
|
3644
3835
|
if (this.href) {
|
|
3645
3836
|
return;
|
|
3646
3837
|
}
|
|
3647
3838
|
// this.type refers to type attribute, not child element type
|
|
3648
3839
|
if (type === "submit") {
|
|
3649
|
-
|
|
3840
|
+
submitForm(this);
|
|
3650
3841
|
}
|
|
3651
3842
|
else if (type === "reset") {
|
|
3652
|
-
|
|
3843
|
+
resetForm(this);
|
|
3653
3844
|
}
|
|
3654
3845
|
};
|
|
3655
3846
|
}
|
|
@@ -3826,7 +4017,7 @@ const Card = class extends HTMLElement$1 {
|
|
|
3826
4017
|
disconnectConditionalSlotComponent(this);
|
|
3827
4018
|
}
|
|
3828
4019
|
render() {
|
|
3829
|
-
return (h("div", { class: "calcite-card-container" }, this.loading ? (h("div", { class: "calcite-card-loader-container" }, h("calcite-loader", { active: true, label: this.intlLoading }))) : null, h("section", { "aria-busy": this.loading
|
|
4020
|
+
return (h("div", { class: "calcite-card-container" }, this.loading ? (h("div", { class: "calcite-card-loader-container" }, h("calcite-loader", { active: true, label: this.intlLoading }))) : null, h("section", { "aria-busy": toAriaBoolean(this.loading), class: { [CSS$I.container]: true } }, this.selectable ? this.renderCheckbox() : null, this.renderThumbnail(), this.renderHeader(), h("div", { class: "card-content" }, h("slot", null)), this.renderFooter())));
|
|
3830
4021
|
}
|
|
3831
4022
|
selectCard() {
|
|
3832
4023
|
this.selected = !this.selected;
|
|
@@ -3857,173 +4048,6 @@ const Card = class extends HTMLElement$1 {
|
|
|
3857
4048
|
static get style() { return cardCss; }
|
|
3858
4049
|
};
|
|
3859
4050
|
|
|
3860
|
-
/**
|
|
3861
|
-
* Exported for testing purposes.
|
|
3862
|
-
*/
|
|
3863
|
-
const hiddenFormInputSlotName = "hidden-form-input";
|
|
3864
|
-
function isCheckable(component) {
|
|
3865
|
-
return "checked" in component;
|
|
3866
|
-
}
|
|
3867
|
-
const onFormResetMap = new WeakMap();
|
|
3868
|
-
const formComponentSet = new WeakSet();
|
|
3869
|
-
function hasRegisteredFormComponentParent(form, formComponentEl) {
|
|
3870
|
-
// we use events as a way to test for nested form-associated components across shadow bounds
|
|
3871
|
-
const formComponentRegisterEventName = "calciteInternalFormComponentRegister";
|
|
3872
|
-
let hasRegisteredFormComponentParent = false;
|
|
3873
|
-
form.addEventListener(formComponentRegisterEventName, (event) => {
|
|
3874
|
-
hasRegisteredFormComponentParent = event
|
|
3875
|
-
.composedPath()
|
|
3876
|
-
.some((element) => formComponentSet.has(element));
|
|
3877
|
-
event.stopPropagation();
|
|
3878
|
-
}, { once: true });
|
|
3879
|
-
formComponentEl.dispatchEvent(new CustomEvent(formComponentRegisterEventName, {
|
|
3880
|
-
bubbles: true,
|
|
3881
|
-
composed: true
|
|
3882
|
-
}));
|
|
3883
|
-
return hasRegisteredFormComponentParent;
|
|
3884
|
-
}
|
|
3885
|
-
/**
|
|
3886
|
-
* Helper to set up form interactions on connectedCallback.
|
|
3887
|
-
*/
|
|
3888
|
-
function connectForm(component) {
|
|
3889
|
-
const { el, value } = component;
|
|
3890
|
-
const form = closestElementCrossShadowBoundary(el, "form");
|
|
3891
|
-
if (!form || hasRegisteredFormComponentParent(form, el)) {
|
|
3892
|
-
return;
|
|
3893
|
-
}
|
|
3894
|
-
component.formEl = form;
|
|
3895
|
-
component.defaultValue = value;
|
|
3896
|
-
if (isCheckable(component)) {
|
|
3897
|
-
component.defaultChecked = component.checked;
|
|
3898
|
-
}
|
|
3899
|
-
const boundOnFormReset = (component.onFormReset || onFormReset).bind(component);
|
|
3900
|
-
form.addEventListener("reset", boundOnFormReset);
|
|
3901
|
-
onFormResetMap.set(component.el, boundOnFormReset);
|
|
3902
|
-
formComponentSet.add(el);
|
|
3903
|
-
}
|
|
3904
|
-
function onFormReset() {
|
|
3905
|
-
if (isCheckable(this)) {
|
|
3906
|
-
this.checked = this.defaultChecked;
|
|
3907
|
-
return;
|
|
3908
|
-
}
|
|
3909
|
-
this.value = this.defaultValue;
|
|
3910
|
-
}
|
|
3911
|
-
/**
|
|
3912
|
-
* Helper to tear down form interactions on disconnectedCallback.
|
|
3913
|
-
*/
|
|
3914
|
-
function disconnectForm(component) {
|
|
3915
|
-
const { el, formEl } = component;
|
|
3916
|
-
if (!formEl) {
|
|
3917
|
-
return;
|
|
3918
|
-
}
|
|
3919
|
-
const boundOnFormReset = onFormResetMap.get(el);
|
|
3920
|
-
formEl.removeEventListener("reset", boundOnFormReset);
|
|
3921
|
-
onFormResetMap.delete(el);
|
|
3922
|
-
component.formEl = null;
|
|
3923
|
-
formComponentSet.delete(el);
|
|
3924
|
-
}
|
|
3925
|
-
/**
|
|
3926
|
-
* Helper for setting the default value on initialization after connectedCallback.
|
|
3927
|
-
*
|
|
3928
|
-
* Note that this is only needed if the default value cannot be determined on connectedCallback.
|
|
3929
|
-
*/
|
|
3930
|
-
function afterConnectDefaultValueSet(component, value) {
|
|
3931
|
-
component.defaultValue = value;
|
|
3932
|
-
}
|
|
3933
|
-
/**
|
|
3934
|
-
* Helper for maintaining a form-associated's hidden input in sync with the component.
|
|
3935
|
-
*
|
|
3936
|
-
* Based on Ionic's approach: https://github.com/ionic-team/ionic-framework/blob/e4bf052794af9aac07f887013b9250d2a045eba3/core/src/utils/helpers.ts#L198
|
|
3937
|
-
*/
|
|
3938
|
-
function syncHiddenFormInput(component) {
|
|
3939
|
-
const { el, formEl, name, value } = component;
|
|
3940
|
-
const { ownerDocument } = el;
|
|
3941
|
-
const inputs = el.querySelectorAll(`input[slot="${hiddenFormInputSlotName}"]`);
|
|
3942
|
-
if (!formEl || !name) {
|
|
3943
|
-
inputs.forEach((input) => input.remove());
|
|
3944
|
-
return;
|
|
3945
|
-
}
|
|
3946
|
-
const values = Array.isArray(value) ? value : [value];
|
|
3947
|
-
const extra = [];
|
|
3948
|
-
const seen = new Set();
|
|
3949
|
-
inputs.forEach((input) => {
|
|
3950
|
-
const valueMatch = values.find((val) =>
|
|
3951
|
-
/* intentional non-strict equality check */
|
|
3952
|
-
val == input.value);
|
|
3953
|
-
if (valueMatch != null) {
|
|
3954
|
-
seen.add(valueMatch);
|
|
3955
|
-
defaultSyncHiddenFormInput(component, input, valueMatch);
|
|
3956
|
-
}
|
|
3957
|
-
else {
|
|
3958
|
-
extra.push(input);
|
|
3959
|
-
}
|
|
3960
|
-
});
|
|
3961
|
-
let docFrag;
|
|
3962
|
-
values.forEach((value) => {
|
|
3963
|
-
if (seen.has(value)) {
|
|
3964
|
-
return;
|
|
3965
|
-
}
|
|
3966
|
-
let input = extra.pop();
|
|
3967
|
-
if (!input) {
|
|
3968
|
-
input = ownerDocument.createElement("input");
|
|
3969
|
-
input.slot = hiddenFormInputSlotName;
|
|
3970
|
-
}
|
|
3971
|
-
if (!docFrag) {
|
|
3972
|
-
docFrag = ownerDocument.createDocumentFragment();
|
|
3973
|
-
}
|
|
3974
|
-
docFrag.append(input);
|
|
3975
|
-
defaultSyncHiddenFormInput(component, input, value);
|
|
3976
|
-
});
|
|
3977
|
-
if (docFrag) {
|
|
3978
|
-
el.append(docFrag);
|
|
3979
|
-
}
|
|
3980
|
-
extra.forEach((input) => input.remove());
|
|
3981
|
-
}
|
|
3982
|
-
function defaultSyncHiddenFormInput(component, input, value) {
|
|
3983
|
-
var _a;
|
|
3984
|
-
const { defaultValue, disabled, name, required } = component;
|
|
3985
|
-
// keep in sync to prevent losing reset value
|
|
3986
|
-
input.defaultValue = defaultValue;
|
|
3987
|
-
input.disabled = disabled;
|
|
3988
|
-
input.name = name;
|
|
3989
|
-
input.required = required;
|
|
3990
|
-
input.tabIndex = -1;
|
|
3991
|
-
if (isCheckable(component)) {
|
|
3992
|
-
// keep in sync to prevent losing reset value
|
|
3993
|
-
input.defaultChecked = component.defaultChecked;
|
|
3994
|
-
// heuristic to support default/on mode from https://html.spec.whatwg.org/multipage/input.html#dom-input-value-default-on
|
|
3995
|
-
input.value = component.checked ? value || "on" : "";
|
|
3996
|
-
// we disable the component when not checked to avoid having its value submitted
|
|
3997
|
-
if (!disabled && !component.checked) {
|
|
3998
|
-
input.disabled = true;
|
|
3999
|
-
}
|
|
4000
|
-
}
|
|
4001
|
-
else {
|
|
4002
|
-
input.value = value || "";
|
|
4003
|
-
}
|
|
4004
|
-
(_a = component.syncHiddenFormInput) === null || _a === void 0 ? void 0 : _a.call(component, input);
|
|
4005
|
-
}
|
|
4006
|
-
/**
|
|
4007
|
-
* Helper to render the slot for form-associated component's hidden input.
|
|
4008
|
-
*
|
|
4009
|
-
* If the component has a default slot, this must be placed at the bottom of the component's root container to ensure it is the last child.
|
|
4010
|
-
*
|
|
4011
|
-
* render(): VNode {
|
|
4012
|
-
* <Host>
|
|
4013
|
-
* <div class={CSS.container}>
|
|
4014
|
-
* // ...
|
|
4015
|
-
* <HiddenFormInputSlot component={this} />
|
|
4016
|
-
* </div>
|
|
4017
|
-
* </Host>
|
|
4018
|
-
* }
|
|
4019
|
-
*
|
|
4020
|
-
* Note that the hidden-form-input Sass mixin must be added to the component's style to apply specific styles.
|
|
4021
|
-
*/
|
|
4022
|
-
const HiddenFormInputSlot = ({ component }) => {
|
|
4023
|
-
syncHiddenFormInput(component);
|
|
4024
|
-
return h("slot", { name: hiddenFormInputSlotName });
|
|
4025
|
-
};
|
|
4026
|
-
|
|
4027
4051
|
const checkboxCss = "@-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;overflow:hidden;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);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)}.toggle:focus-visible{outline:none}:host([disabled]){pointer-events:none;cursor:default;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;opacity:var(--calcite-ui-opacity-disabled)}:host([disabled]) ::slotted([calcite-hydrated][disabled]),:host([disabled]) [calcite-hydrated][disabled]{opacity:1}::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}";
|
|
4028
4052
|
|
|
4029
4053
|
const Checkbox = class extends HTMLElement$1 {
|
|
@@ -4140,7 +4164,7 @@ const Checkbox = class extends HTMLElement$1 {
|
|
|
4140
4164
|
//
|
|
4141
4165
|
// --------------------------------------------------------------------------
|
|
4142
4166
|
render() {
|
|
4143
|
-
return (h(Host, { onClick: this.clickHandler, onKeyDown: this.keyDownHandler }, h("div", { "aria-checked": this.checked
|
|
4167
|
+
return (h(Host, { onClick: this.clickHandler, onKeyDown: this.keyDownHandler }, h("div", { "aria-checked": toAriaBoolean(this.checked), "aria-label": getLabelText(this), class: "toggle", onBlur: this.onToggleBlur, onFocus: this.onToggleFocus, ref: (toggleEl) => (this.toggleEl = toggleEl), role: "checkbox", tabIndex: this.disabled ? undefined : 0 }, h("svg", { class: "check-svg", viewBox: "0 0 16 16" }, h("path", { d: this.getPath() })), h("slot", null)), h(HiddenFormInputSlot, { component: this })));
|
|
4144
4168
|
}
|
|
4145
4169
|
get el() { return this; }
|
|
4146
4170
|
static get style() { return checkboxCss; }
|
|
@@ -6465,7 +6489,7 @@ const decimalPlaces = (value) => {
|
|
|
6465
6489
|
(match[2] ? +match[2] : 0));
|
|
6466
6490
|
};
|
|
6467
6491
|
|
|
6468
|
-
const colorPickerCss = "@-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-block;font-size:var(--calcite-font-size--2);line-height:1rem;font-weight:var(--calcite-font-weight-normal)}:host([disabled]){pointer-events:none;cursor:default;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;opacity:var(--calcite-ui-opacity-disabled)}:host([disabled]) ::slotted([calcite-hydrated][disabled]),:host([disabled]) [calcite-hydrated][disabled]{opacity:1}:host([scale=s]) .container{width:160px}:host([scale=s]) .saved-colors{grid-template-columns:repeat(auto-fill, minmax(20px, 1fr))}:host([scale=s]) .channels{-ms-flex-direction:column;flex-direction:column}:host([scale=s]) .channel{width:100%;margin-bottom:4px}:host([scale=s]) .channel:last-child{margin-bottom:0}:host([scale=m]) .container{width:272px}:host([scale=l]) .header{padding-bottom:0px}:host([scale=l]){font-size:var(--calcite-font-size--1);line-height:1rem}:host([scale=l]) .container{width:464px}:host([scale=l]) .color-field-and-slider{margin-bottom:-20px}:host([scale=l]) .section{padding:0 16px 16px}:host([scale=l]) .section:first-of-type{padding-top:16px}:host([scale=l]) .saved-colors{grid-template-columns:repeat(auto-fill, minmax(28px, 1fr));grid-gap:12px;padding-top:16px}:host([scale=l]) .control-section{-ms-flex-wrap:nowrap;flex-wrap:nowrap;-ms-flex-align:baseline;align-items:baseline}:host([scale=l]) .control-section>:nth-child(2){-webkit-margin-start:12px;margin-inline-start:12px}:host([scale=l]) .color-hex-options{display:-ms-flexbox;display:flex;-ms-flex-negative:1;flex-shrink:1;-ms-flex-direction:column;flex-direction:column;-ms-flex-pack:distribute;justify-content:space-around;min-height:98px;width:160px}:host([scale=l]) .color-mode-container{-ms-flex-negative:3;flex-shrink:3}:host([appearance=minimal]) .container{border:none}.container{background-color:var(--calcite-ui-foreground-1);display:inline-block;border:1px solid var(--calcite-ui-border-1)}.color-field-and-slider-wrap{position:relative}.scope{pointer-events:none;position:absolute;
|
|
6492
|
+
const colorPickerCss = "@-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-block;font-size:var(--calcite-font-size--2);line-height:1rem;font-weight:var(--calcite-font-weight-normal)}:host([disabled]){pointer-events:none;cursor:default;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;opacity:var(--calcite-ui-opacity-disabled)}:host([disabled]) ::slotted([calcite-hydrated][disabled]),:host([disabled]) [calcite-hydrated][disabled]{opacity:1}:host([scale=s]) .container{width:160px}:host([scale=s]) .saved-colors{grid-template-columns:repeat(auto-fill, minmax(20px, 1fr))}:host([scale=s]) .channels{-ms-flex-direction:column;flex-direction:column}:host([scale=s]) .channel{width:100%;margin-bottom:4px}:host([scale=s]) .channel:last-child{margin-bottom:0}:host([scale=m]) .container{width:272px}:host([scale=l]) .header{padding-bottom:0px}:host([scale=l]){font-size:var(--calcite-font-size--1);line-height:1rem}:host([scale=l]) .container{width:464px}:host([scale=l]) .color-field-and-slider{margin-bottom:-20px}:host([scale=l]) .section{padding:0 16px 16px}:host([scale=l]) .section:first-of-type{padding-top:16px}:host([scale=l]) .saved-colors{grid-template-columns:repeat(auto-fill, minmax(28px, 1fr));grid-gap:12px;padding-top:16px}:host([scale=l]) .control-section{-ms-flex-wrap:nowrap;flex-wrap:nowrap;-ms-flex-align:baseline;align-items:baseline}:host([scale=l]) .control-section>:nth-child(2){-webkit-margin-start:12px;margin-inline-start:12px}:host([scale=l]) .color-hex-options{display:-ms-flexbox;display:flex;-ms-flex-negative:1;flex-shrink:1;-ms-flex-direction:column;flex-direction:column;-ms-flex-pack:distribute;justify-content:space-around;min-height:98px;width:160px}:host([scale=l]) .color-mode-container{-ms-flex-negative:3;flex-shrink:3}:host([appearance=minimal]) .container{border:none}.container{background-color:var(--calcite-ui-foreground-1);display:inline-block;border:1px solid var(--calcite-ui-border-1)}.color-field-and-slider-wrap{position:relative}.scope{pointer-events:none;position:absolute;font-size:var(--calcite-font-size--1);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;outline-offset:14px}.scope:focus{outline:2px solid var(--calcite-ui-brand);outline-offset:16px}.color-field-and-slider{margin-bottom:-16px}.color-field-and-slider--interactive{cursor:pointer}.control-section{display:-ms-flexbox;display:flex;-ms-flex-direction:row;flex-direction:row;-ms-flex-wrap:wrap;flex-wrap:wrap}.section{padding:0 12px 12px}.section:first-of-type{padding-top:12px}.color-hex-options,.section--split{-ms-flex-positive:1;flex-grow:1}.header{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:justify;justify-content:space-between;padding-bottom:0.25rem;color:var(--calcite-ui-text-1)}.header--hex,.color-mode-container{padding-top:12px}.channels{display:-ms-flexbox;display:flex;-ms-flex-pack:justify;justify-content:space-between}.channel{width:31%}.saved-colors{padding-top:12px;display:grid;grid-template-columns:repeat(auto-fill, minmax(24px, 1fr));grid-gap:8px;width:100%}.saved-colors-buttons{display:-ms-flexbox;display:flex}.saved-color{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;cursor:pointer}.saved-color:focus{outline:2px solid var(--calcite-ui-brand);outline-offset:2px}.saved-color:hover{-webkit-transition:outline-color var(--calcite-internal-animation-timing-fast) ease-in-out;transition:outline-color var(--calcite-internal-animation-timing-fast) ease-in-out;outline:2px solid var(--calcite-ui-border-2);outline-offset:2px}";
|
|
6469
6493
|
|
|
6470
6494
|
const throttleFor60FpsInMs = 16;
|
|
6471
6495
|
const defaultValue = normalizeHex(DEFAULT_COLOR$1.hex());
|
|
@@ -6869,7 +6893,7 @@ const ColorPicker = class extends HTMLElement$1 {
|
|
|
6869
6893
|
/* the channel container is ltr, so we apply the host's direction */
|
|
6870
6894
|
this.renderChannel(channel, index, channelLabels[index], channelAriaLabels[index], direction)))));
|
|
6871
6895
|
};
|
|
6872
|
-
this.renderChannel = (value, index, label, ariaLabel, direction) => (h("calcite-input", { class: CSS$G.channel, "data-channel-index": index, dir: direction, label: ariaLabel, numberButtonType: "none", onCalciteInputChange: this.handleChannelChange, onCalciteInputInput: this.handleChannelInput, prefixText: label, scale: this.scale === "l" ? "m" : "s", type: "number", value: value === null || value === void 0 ? void 0 : value.toString() }));
|
|
6896
|
+
this.renderChannel = (value, index, label, ariaLabel, direction) => (h("calcite-input", { class: CSS$G.channel, "data-channel-index": index, dir: direction, label: ariaLabel, numberButtonType: "none", onCalciteInputChange: this.handleChannelChange, onCalciteInputInput: this.handleChannelInput, onKeyDown: this.handleKeyDown, prefixText: label, scale: this.scale === "l" ? "m" : "s", type: "number", value: value === null || value === void 0 ? void 0 : value.toString() }));
|
|
6873
6897
|
this.deleteColor = () => {
|
|
6874
6898
|
const colorToDelete = this.color.hex();
|
|
6875
6899
|
const inStorage = this.savedColors.indexOf(colorToDelete) > -1;
|
|
@@ -7068,6 +7092,11 @@ const ColorPicker = class extends HTMLElement$1 {
|
|
|
7068
7092
|
// Private Methods
|
|
7069
7093
|
//
|
|
7070
7094
|
//--------------------------------------------------------------------------
|
|
7095
|
+
handleKeyDown(event) {
|
|
7096
|
+
if (event.key === "Enter") {
|
|
7097
|
+
event.preventDefault();
|
|
7098
|
+
}
|
|
7099
|
+
}
|
|
7071
7100
|
showIncompatibleColorWarning(value, format) {
|
|
7072
7101
|
console.warn(`ignoring color value (${value}) as it is not compatible with the current format (${format})`);
|
|
7073
7102
|
}
|
|
@@ -7367,7 +7396,7 @@ const ColorPickerHexInput = class extends HTMLElement$1 {
|
|
|
7367
7396
|
render() {
|
|
7368
7397
|
const { intlHex, value } = this;
|
|
7369
7398
|
const hexInputValue = this.formatForInternalInput(value);
|
|
7370
|
-
return (h("div", { class: CSS$F.container }, h("calcite-input", { class: CSS$F.input, label: intlHex, maxLength: 6, onCalciteInputBlur: this.onCalciteInputBlur, onCalciteInputChange: this.onInputChange, prefixText: "#", ref: this.storeInputRef, scale: this.scale, value: hexInputValue }), hexInputValue ? (h("calcite-color-picker-swatch", { active: true, class: CSS$F.preview, color: `#${hexInputValue}`, scale: this.scale })) : null));
|
|
7399
|
+
return (h("div", { class: CSS$F.container }, h("calcite-input", { class: CSS$F.input, label: intlHex, maxLength: 6, onCalciteInputBlur: this.onCalciteInputBlur, onCalciteInputChange: this.onInputChange, onKeyDown: this.handleKeyDown, prefixText: "#", ref: this.storeInputRef, scale: this.scale, value: hexInputValue }), hexInputValue ? (h("calcite-color-picker-swatch", { active: true, class: CSS$F.preview, color: `#${hexInputValue}`, scale: this.scale })) : null));
|
|
7371
7400
|
}
|
|
7372
7401
|
//--------------------------------------------------------------------------
|
|
7373
7402
|
//
|
|
@@ -7414,6 +7443,11 @@ const ColorPickerHexInput = class extends HTMLElement$1 {
|
|
|
7414
7443
|
nudgeRGBChannels(color$1, amount) {
|
|
7415
7444
|
return color.rgb(color$1.array().map((channel) => channel + amount));
|
|
7416
7445
|
}
|
|
7446
|
+
handleKeyDown(event) {
|
|
7447
|
+
if (event.key === "Enter") {
|
|
7448
|
+
event.preventDefault();
|
|
7449
|
+
}
|
|
7450
|
+
}
|
|
7417
7451
|
get el() { return this; }
|
|
7418
7452
|
static get watchers() { return {
|
|
7419
7453
|
"value": ["handleValueChange"]
|
|
@@ -9483,7 +9517,7 @@ const Combobox = class extends HTMLElement$1 {
|
|
|
9483
9517
|
: null;
|
|
9484
9518
|
};
|
|
9485
9519
|
this.getValue = () => {
|
|
9486
|
-
const items = this.selectedItems.map((item) => item === null || item === void 0 ? void 0 : item.value.toString());
|
|
9520
|
+
const items = this.selectedItems.map((item) => { var _a; return (_a = item === null || item === void 0 ? void 0 : item.value) === null || _a === void 0 ? void 0 : _a.toString(); });
|
|
9487
9521
|
return (items === null || items === void 0 ? void 0 : items.length) ? (items.length > 1 ? items : items[0]) : "";
|
|
9488
9522
|
};
|
|
9489
9523
|
this.onLabelClick = () => {
|
|
@@ -9566,6 +9600,9 @@ const Combobox = class extends HTMLElement$1 {
|
|
|
9566
9600
|
else if (this.allowCustomValues && this.text) {
|
|
9567
9601
|
this.addCustomChip(this.text, true);
|
|
9568
9602
|
}
|
|
9603
|
+
else if (!event.defaultPrevented) {
|
|
9604
|
+
submitForm(this);
|
|
9605
|
+
}
|
|
9569
9606
|
break;
|
|
9570
9607
|
case "Delete":
|
|
9571
9608
|
case "Backspace":
|
|
@@ -10137,7 +10174,7 @@ const Combobox = class extends HTMLElement$1 {
|
|
|
10137
10174
|
}, 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" })));
|
|
10138
10175
|
}
|
|
10139
10176
|
renderListBoxOptions() {
|
|
10140
|
-
return this.visibleItems.map((item) => (h("li", { "aria-selected": (
|
|
10177
|
+
return this.visibleItems.map((item) => (h("li", { "aria-selected": toAriaBoolean(item.selected), id: item.guid ? `${itemUidPrefix}${item.guid}` : null, role: "option", tabindex: "-1" }, item.textLabel)));
|
|
10141
10178
|
}
|
|
10142
10179
|
renderPopperContainer() {
|
|
10143
10180
|
const { active, setMenuEl, setListContainerEl } = this;
|
|
@@ -10161,7 +10198,7 @@ const Combobox = class extends HTMLElement$1 {
|
|
|
10161
10198
|
render() {
|
|
10162
10199
|
const { active, guid, label } = this;
|
|
10163
10200
|
const single = this.selectionMode === "single";
|
|
10164
|
-
return (h(Host, { onKeyDown: this.keydownHandler }, h("div", { "aria-autocomplete": "list", "aria-expanded": active
|
|
10201
|
+
return (h(Host, { onKeyDown: this.keydownHandler }, h("div", { "aria-autocomplete": "list", "aria-expanded": toAriaBoolean(active), "aria-haspopup": "listbox", "aria-labelledby": `${labelUidPrefix}${guid}`, "aria-owns": `${listboxUidPrefix}${guid}`, class: {
|
|
10165
10202
|
wrapper: true,
|
|
10166
10203
|
"wrapper--single": single || !this.selectedItems.length,
|
|
10167
10204
|
"wrapper--active": active
|
|
@@ -11817,7 +11854,7 @@ const Dropdown = class extends HTMLElement$1 {
|
|
|
11817
11854
|
}
|
|
11818
11855
|
render() {
|
|
11819
11856
|
const { active } = this;
|
|
11820
|
-
return (h(Host, null, h("div", { class: "calcite-dropdown-trigger-container", onClick: this.openCalciteDropdown, onKeyDown: this.keyDownHandler, ref: this.setReferenceEl }, h("slot", { "aria-expanded": active
|
|
11857
|
+
return (h(Host, null, h("div", { class: "calcite-dropdown-trigger-container", onClick: this.openCalciteDropdown, onKeyDown: this.keyDownHandler, ref: this.setReferenceEl }, h("slot", { "aria-expanded": toAriaBoolean(active), "aria-haspopup": "true", name: SLOTS$h.dropdownTrigger, onSlotchange: this.updateTriggers })), h("div", { "aria-hidden": toAriaBoolean(!active), class: "calcite-dropdown-wrapper", ref: this.setMenuEl }, h("div", { class: {
|
|
11821
11858
|
["calcite-dropdown-content"]: true,
|
|
11822
11859
|
[CSS$D.animation]: true,
|
|
11823
11860
|
[CSS$D.animationActive]: active
|
|
@@ -12148,7 +12185,7 @@ const DropdownItem = class extends HTMLElement$1 {
|
|
|
12148
12185
|
: this.selectionMode === "multi"
|
|
12149
12186
|
? "menuitemcheckbox"
|
|
12150
12187
|
: "menuitem";
|
|
12151
|
-
const itemAria = this.selectionMode !== "none" ? this.active
|
|
12188
|
+
const itemAria = this.selectionMode !== "none" ? toAriaBoolean(this.active) : null;
|
|
12152
12189
|
return (h(Host, { "aria-checked": itemAria, role: itemRole, tabindex: "0" }, h("div", { class: {
|
|
12153
12190
|
container: true,
|
|
12154
12191
|
[CSS$z.containerLink]: !!this.href,
|
|
@@ -12416,10 +12453,13 @@ const Filter = class extends HTMLElement$1 {
|
|
|
12416
12453
|
this.value = target.value;
|
|
12417
12454
|
this.filter(target.value, true);
|
|
12418
12455
|
};
|
|
12419
|
-
this.keyDownHandler = (
|
|
12420
|
-
if (key === "Escape") {
|
|
12456
|
+
this.keyDownHandler = (event) => {
|
|
12457
|
+
if (event.key === "Escape") {
|
|
12421
12458
|
this.clear();
|
|
12422
12459
|
}
|
|
12460
|
+
if (event.key === "Enter") {
|
|
12461
|
+
event.preventDefault();
|
|
12462
|
+
}
|
|
12423
12463
|
};
|
|
12424
12464
|
this.clear = () => {
|
|
12425
12465
|
this.value = "";
|
|
@@ -12854,7 +12894,7 @@ const Handle = class extends HTMLElement$1 {
|
|
|
12854
12894
|
render() {
|
|
12855
12895
|
return (
|
|
12856
12896
|
// Needs to be a span because of https://github.com/SortableJS/Sortable/issues/1486
|
|
12857
|
-
h("span", { "aria-pressed": this.activated
|
|
12897
|
+
h("span", { "aria-pressed": toAriaBoolean(this.activated), class: { [CSS$v.handle]: true, [CSS$v.handleActivated]: this.activated }, onBlur: this.handleBlur, onKeyDown: this.handleKeyDown, ref: (el) => {
|
|
12858
12898
|
this.handleButton = el;
|
|
12859
12899
|
}, role: "button", tabindex: "0", title: this.textTitle }, h("calcite-icon", { icon: ICONS$7.drag, scale: "s" })));
|
|
12860
12900
|
}
|
|
@@ -12977,7 +13017,7 @@ const Icon = class extends HTMLElement$1 {
|
|
|
12977
13017
|
const size = scaleToPx[scale];
|
|
12978
13018
|
const semantic = !!textLabel;
|
|
12979
13019
|
const paths = [].concat(pathData || "");
|
|
12980
|
-
return (h(Host, { "aria-hidden": (!semantic)
|
|
13020
|
+
return (h(Host, { "aria-hidden": toAriaBoolean(!semantic), "aria-label": semantic ? textLabel : null, role: semantic ? "img" : null }, h("svg", { class: {
|
|
12981
13021
|
[CSS$u.flipRtl]: dir === "rtl" && flipRtl,
|
|
12982
13022
|
svg: true
|
|
12983
13023
|
}, fill: "currentColor", height: "100%", viewBox: `0 0 ${size} ${size}`, width: "100%", xmlns: "http://www.w3.org/2000/svg" }, paths.map((path) => typeof path === "string" ? (h("path", { d: path })) : (h("path", { d: path.d, opacity: "opacity" in path ? path.opacity : 1 }))))));
|
|
@@ -13340,9 +13380,9 @@ const Input = class extends HTMLElement$1 {
|
|
|
13340
13380
|
this.value = "";
|
|
13341
13381
|
/** keep track of the rendered child type */
|
|
13342
13382
|
this.childElType = "input";
|
|
13343
|
-
|
|
13344
|
-
this.internalValueChange = false;
|
|
13383
|
+
this.previousValueOrigin = "initial";
|
|
13345
13384
|
this.mutationObserver = createObserver("mutation", () => this.setDisabledAction());
|
|
13385
|
+
this.userChangedValue = false;
|
|
13346
13386
|
//--------------------------------------------------------------------------
|
|
13347
13387
|
//
|
|
13348
13388
|
// Private Methods
|
|
@@ -13356,25 +13396,30 @@ const Input = class extends HTMLElement$1 {
|
|
|
13356
13396
|
this.clearInputValue(event);
|
|
13357
13397
|
event.preventDefault();
|
|
13358
13398
|
}
|
|
13399
|
+
if (event.key === "Enter" && !event.defaultPrevented) {
|
|
13400
|
+
submitForm(this);
|
|
13401
|
+
}
|
|
13359
13402
|
};
|
|
13360
13403
|
this.clearInputValue = (nativeEvent) => {
|
|
13361
13404
|
this.setValue({
|
|
13362
13405
|
committing: true,
|
|
13363
13406
|
nativeEvent,
|
|
13407
|
+
origin: "user",
|
|
13364
13408
|
value: ""
|
|
13365
13409
|
});
|
|
13366
13410
|
};
|
|
13367
|
-
this.
|
|
13368
|
-
if (this.
|
|
13369
|
-
this.
|
|
13411
|
+
this.emitChangeIfUserModified = () => {
|
|
13412
|
+
if (this.previousValueOrigin === "user" && this.value !== this.previousEmittedValue) {
|
|
13413
|
+
this.calciteInputChange.emit();
|
|
13370
13414
|
}
|
|
13415
|
+
this.previousEmittedValue = this.value;
|
|
13416
|
+
};
|
|
13417
|
+
this.inputBlurHandler = () => {
|
|
13371
13418
|
this.calciteInputBlur.emit({
|
|
13372
13419
|
element: this.childEl,
|
|
13373
13420
|
value: this.value
|
|
13374
13421
|
});
|
|
13375
|
-
|
|
13376
|
-
this.calciteInputChange.emit();
|
|
13377
|
-
}
|
|
13422
|
+
this.emitChangeIfUserModified();
|
|
13378
13423
|
};
|
|
13379
13424
|
this.inputFocusHandler = (event) => {
|
|
13380
13425
|
const slottedActionEl = getSlotted(this.el, "action");
|
|
@@ -13385,7 +13430,6 @@ const Input = class extends HTMLElement$1 {
|
|
|
13385
13430
|
element: this.childEl,
|
|
13386
13431
|
value: this.value
|
|
13387
13432
|
});
|
|
13388
|
-
this.preFocusValue = this.value;
|
|
13389
13433
|
};
|
|
13390
13434
|
this.inputInputHandler = (nativeEvent) => {
|
|
13391
13435
|
if (this.disabled || this.readOnly) {
|
|
@@ -13393,6 +13437,7 @@ const Input = class extends HTMLElement$1 {
|
|
|
13393
13437
|
}
|
|
13394
13438
|
this.setValue({
|
|
13395
13439
|
nativeEvent,
|
|
13440
|
+
origin: "user",
|
|
13396
13441
|
value: nativeEvent.target.value
|
|
13397
13442
|
});
|
|
13398
13443
|
};
|
|
@@ -13401,7 +13446,7 @@ const Input = class extends HTMLElement$1 {
|
|
|
13401
13446
|
return;
|
|
13402
13447
|
}
|
|
13403
13448
|
if (event.key === "Enter") {
|
|
13404
|
-
this.
|
|
13449
|
+
this.emitChangeIfUserModified();
|
|
13405
13450
|
}
|
|
13406
13451
|
};
|
|
13407
13452
|
this.inputNumberInputHandler = (nativeEvent) => {
|
|
@@ -13416,6 +13461,7 @@ const Input = class extends HTMLElement$1 {
|
|
|
13416
13461
|
}
|
|
13417
13462
|
this.setValue({
|
|
13418
13463
|
nativeEvent,
|
|
13464
|
+
origin: "user",
|
|
13419
13465
|
value: parseNumberString(delocalizedValue)
|
|
13420
13466
|
});
|
|
13421
13467
|
this.childNumberEl.value = this.localizedValue;
|
|
@@ -13423,6 +13469,7 @@ const Input = class extends HTMLElement$1 {
|
|
|
13423
13469
|
else {
|
|
13424
13470
|
this.setValue({
|
|
13425
13471
|
nativeEvent,
|
|
13472
|
+
origin: "user",
|
|
13426
13473
|
value: delocalizedValue
|
|
13427
13474
|
});
|
|
13428
13475
|
}
|
|
@@ -13457,7 +13504,7 @@ const Input = class extends HTMLElement$1 {
|
|
|
13457
13504
|
const isShiftTabEvent = event.shiftKey && event.key === "Tab";
|
|
13458
13505
|
if (supportedKeys.includes(event.key) && (!event.shiftKey || isShiftTabEvent)) {
|
|
13459
13506
|
if (event.key === "Enter") {
|
|
13460
|
-
this.
|
|
13507
|
+
this.emitChangeIfUserModified();
|
|
13461
13508
|
}
|
|
13462
13509
|
return;
|
|
13463
13510
|
}
|
|
@@ -13531,6 +13578,14 @@ const Input = class extends HTMLElement$1 {
|
|
|
13531
13578
|
}
|
|
13532
13579
|
this[`child${this.type === "number" ? "Number" : ""}El`].value = newInputValue;
|
|
13533
13580
|
};
|
|
13581
|
+
this.setPreviousEmittedValue = (newPreviousEmittedValue) => {
|
|
13582
|
+
this.previousEmittedValue =
|
|
13583
|
+
this.type === "number"
|
|
13584
|
+
? isValidNumber(newPreviousEmittedValue)
|
|
13585
|
+
? newPreviousEmittedValue
|
|
13586
|
+
: ""
|
|
13587
|
+
: newPreviousEmittedValue;
|
|
13588
|
+
};
|
|
13534
13589
|
this.setPreviousValue = (newPreviousValue) => {
|
|
13535
13590
|
this.previousValue =
|
|
13536
13591
|
this.type === "number"
|
|
@@ -13539,7 +13594,7 @@ const Input = class extends HTMLElement$1 {
|
|
|
13539
13594
|
: ""
|
|
13540
13595
|
: newPreviousValue;
|
|
13541
13596
|
};
|
|
13542
|
-
this.setValue = ({ committing = false, nativeEvent, origin
|
|
13597
|
+
this.setValue = ({ committing = false, nativeEvent, origin, previousValue, value }) => {
|
|
13543
13598
|
const previousLocalizedValue = this.type === "number"
|
|
13544
13599
|
? localizeNumberString(this.previousValue, this.locale, this.groupSeparator)
|
|
13545
13600
|
: "";
|
|
@@ -13552,13 +13607,14 @@ const Input = class extends HTMLElement$1 {
|
|
|
13552
13607
|
const newLocalizedValue = this.type === "number"
|
|
13553
13608
|
? localizeNumberString(newValue, this.locale, this.groupSeparator)
|
|
13554
13609
|
: "";
|
|
13555
|
-
this.
|
|
13556
|
-
this.
|
|
13610
|
+
this.setPreviousValue(previousValue || this.value);
|
|
13611
|
+
this.previousValueOrigin = origin;
|
|
13612
|
+
this.userChangedValue = origin === "user" && this.value !== newValue;
|
|
13557
13613
|
this.value = newValue;
|
|
13558
13614
|
if (this.type === "number") {
|
|
13559
13615
|
this.localizedValue = newLocalizedValue;
|
|
13560
13616
|
}
|
|
13561
|
-
if (origin === "
|
|
13617
|
+
if (origin === "direct") {
|
|
13562
13618
|
this.setInputValue(this.type === "number" ? newLocalizedValue : newValue);
|
|
13563
13619
|
}
|
|
13564
13620
|
if (nativeEvent) {
|
|
@@ -13572,7 +13628,7 @@ const Input = class extends HTMLElement$1 {
|
|
|
13572
13628
|
this.localizedValue = previousLocalizedValue;
|
|
13573
13629
|
}
|
|
13574
13630
|
else if (committing) {
|
|
13575
|
-
this.
|
|
13631
|
+
this.emitChangeIfUserModified();
|
|
13576
13632
|
}
|
|
13577
13633
|
}
|
|
13578
13634
|
};
|
|
@@ -13593,10 +13649,11 @@ const Input = class extends HTMLElement$1 {
|
|
|
13593
13649
|
var _a;
|
|
13594
13650
|
this.minString = ((_a = this.min) === null || _a === void 0 ? void 0 : _a.toString()) || null;
|
|
13595
13651
|
}
|
|
13596
|
-
valueWatcher(newValue) {
|
|
13597
|
-
if (!this.
|
|
13652
|
+
valueWatcher(newValue, previousValue) {
|
|
13653
|
+
if (!this.userChangedValue) {
|
|
13598
13654
|
this.setValue({
|
|
13599
|
-
origin: "
|
|
13655
|
+
origin: "direct",
|
|
13656
|
+
previousValue,
|
|
13600
13657
|
value: newValue == null || newValue == ""
|
|
13601
13658
|
? ""
|
|
13602
13659
|
: this.type === "number"
|
|
@@ -13607,7 +13664,7 @@ const Input = class extends HTMLElement$1 {
|
|
|
13607
13664
|
});
|
|
13608
13665
|
this.warnAboutInvalidNumberValue(newValue);
|
|
13609
13666
|
}
|
|
13610
|
-
this.
|
|
13667
|
+
this.userChangedValue = false;
|
|
13611
13668
|
}
|
|
13612
13669
|
updateRequestedIcon() {
|
|
13613
13670
|
this.requestedIcon = setRequestedIcon(INPUT_TYPE_ICONS, this.icon, this.type);
|
|
@@ -13631,11 +13688,12 @@ const Input = class extends HTMLElement$1 {
|
|
|
13631
13688
|
if (this.inlineEditableEl) {
|
|
13632
13689
|
this.editingEnabled = this.inlineEditableEl.editingEnabled || false;
|
|
13633
13690
|
}
|
|
13691
|
+
this.setPreviousEmittedValue(this.value);
|
|
13634
13692
|
this.setPreviousValue(this.value);
|
|
13635
13693
|
if (this.type === "number") {
|
|
13636
13694
|
this.warnAboutInvalidNumberValue(this.value);
|
|
13637
13695
|
this.setValue({
|
|
13638
|
-
origin: "
|
|
13696
|
+
origin: "connected",
|
|
13639
13697
|
value: isValidNumber(this.value) ? this.value : ""
|
|
13640
13698
|
});
|
|
13641
13699
|
}
|
|
@@ -13660,6 +13718,7 @@ const Input = class extends HTMLElement$1 {
|
|
|
13660
13718
|
componentShouldUpdate(newValue, oldValue, property) {
|
|
13661
13719
|
if (this.type === "number" && property === "value" && newValue && !isValidNumber(newValue)) {
|
|
13662
13720
|
this.setValue({
|
|
13721
|
+
origin: "reset",
|
|
13663
13722
|
value: oldValue
|
|
13664
13723
|
});
|
|
13665
13724
|
return false;
|
|
@@ -13702,11 +13761,13 @@ const Input = class extends HTMLElement$1 {
|
|
|
13702
13761
|
this.setValue({
|
|
13703
13762
|
committing: true,
|
|
13704
13763
|
nativeEvent,
|
|
13764
|
+
origin: "user",
|
|
13705
13765
|
value: finalValue.toFixed(Math.max(inputValPlaces, inputStepPlaces))
|
|
13706
13766
|
});
|
|
13707
13767
|
}
|
|
13708
13768
|
onFormReset() {
|
|
13709
13769
|
this.setValue({
|
|
13770
|
+
origin: "reset",
|
|
13710
13771
|
value: this.defaultValue
|
|
13711
13772
|
});
|
|
13712
13773
|
}
|
|
@@ -13883,6 +13944,11 @@ const InputDatePicker = class extends HTMLElement$1 {
|
|
|
13883
13944
|
this.deactivate = () => {
|
|
13884
13945
|
this.active = false;
|
|
13885
13946
|
};
|
|
13947
|
+
this.keyDownHandler = (event) => {
|
|
13948
|
+
if (event.key === "Enter" && !event.defaultPrevented) {
|
|
13949
|
+
submitForm(this);
|
|
13950
|
+
}
|
|
13951
|
+
};
|
|
13886
13952
|
this.keyUpHandler = (e) => {
|
|
13887
13953
|
if (e.key === "Escape") {
|
|
13888
13954
|
this.active = false;
|
|
@@ -14076,7 +14142,7 @@ const InputDatePicker = class extends HTMLElement$1 {
|
|
|
14076
14142
|
: null;
|
|
14077
14143
|
const formattedEndDate = endDate ? endDate.toLocaleDateString(this.locale) : "";
|
|
14078
14144
|
const formattedDate = date ? date.toLocaleDateString(this.locale) : "";
|
|
14079
|
-
return (h(Host, { onBlur: this.deactivate, onKeyUp: this.keyUpHandler, role: "application" }, this.localeData && (h("div", { "aria-expanded": this.active
|
|
14145
|
+
return (h(Host, { onBlur: this.deactivate, onKeyDown: this.keyDownHandler, onKeyUp: this.keyUpHandler, role: "application" }, this.localeData && (h("div", { "aria-expanded": toAriaBoolean(this.active), class: "input-container", role: "application" }, h("div", { class: "input-wrapper", ref: this.setStartWrapper }, h("calcite-input", { class: `input ${this.layout === "vertical" && this.range ? `no-bottom-border` : ``}`, disabled: disabled, icon: "calendar", label: getLabelText(this), "number-button-type": "none", onCalciteInputBlur: this.inputBlur, onCalciteInputFocus: this.startInputFocus, onCalciteInputInput: this.inputInput, placeholder: (_a = this.localeData) === null || _a === void 0 ? void 0 : _a.placeholder, ref: this.setStartInput, scale: this.scale, type: "text", value: formattedDate })), h("div", { "aria-hidden": toAriaBoolean(!this.active), class: {
|
|
14080
14146
|
"menu-container": true,
|
|
14081
14147
|
"menu-container--active": this.active
|
|
14082
14148
|
}, ref: this.setMenuEl }, h("div", { class: {
|
|
@@ -14595,6 +14661,16 @@ const InputTimePicker = class extends HTMLElement$1 {
|
|
|
14595
14661
|
const value = target.value;
|
|
14596
14662
|
this.setValue({ value, origin: "time-picker" });
|
|
14597
14663
|
};
|
|
14664
|
+
// --------------------------------------------------------------------------
|
|
14665
|
+
//
|
|
14666
|
+
// Private Methods
|
|
14667
|
+
//
|
|
14668
|
+
// --------------------------------------------------------------------------
|
|
14669
|
+
this.keyDownHandler = (event) => {
|
|
14670
|
+
if (event.key === "Enter" && !event.defaultPrevented) {
|
|
14671
|
+
submitForm(this);
|
|
14672
|
+
}
|
|
14673
|
+
};
|
|
14598
14674
|
this.setCalcitePopoverEl = (el) => {
|
|
14599
14675
|
this.popoverEl = el;
|
|
14600
14676
|
};
|
|
@@ -14706,11 +14782,6 @@ const InputTimePicker = class extends HTMLElement$1 {
|
|
|
14706
14782
|
var _a;
|
|
14707
14783
|
(_a = this.popoverEl) === null || _a === void 0 ? void 0 : _a.reposition();
|
|
14708
14784
|
}
|
|
14709
|
-
// --------------------------------------------------------------------------
|
|
14710
|
-
//
|
|
14711
|
-
// Private Methods
|
|
14712
|
-
//
|
|
14713
|
-
// --------------------------------------------------------------------------
|
|
14714
14785
|
onLabelClick() {
|
|
14715
14786
|
this.setFocus();
|
|
14716
14787
|
}
|
|
@@ -14746,7 +14817,7 @@ const InputTimePicker = class extends HTMLElement$1 {
|
|
|
14746
14817
|
// --------------------------------------------------------------------------
|
|
14747
14818
|
render() {
|
|
14748
14819
|
const popoverId = `${this.referenceElementId}-popover`;
|
|
14749
|
-
return (h(Host,
|
|
14820
|
+
return (h(Host, { onKeyDown: this.keyDownHandler }, h("div", { "aria-controls": popoverId, "aria-haspopup": "dialog", "aria-label": this.name, "aria-owns": popoverId, id: this.referenceElementId, role: "combobox" }, h("calcite-input", { disabled: this.disabled, icon: "clock", label: getLabelText(this), onCalciteInputBlur: this.calciteInputBlurHandler, onCalciteInputFocus: this.calciteInputFocusHandler, onCalciteInputInput: this.calciteInputInputHandler, ref: this.setCalciteInputEl, scale: this.scale, step: this.step })), h("calcite-popover", { id: popoverId, label: "Time Picker", open: this.active, placement: this.placement, ref: this.setCalcitePopoverEl, referenceElement: this.referenceElementId }, h("calcite-time-picker", { intlHour: this.intlHour, intlHourDown: this.intlHourDown, intlHourUp: this.intlHourUp, intlMeridiem: this.intlMeridiem, intlMeridiemDown: this.intlMeridiemDown, intlMeridiemUp: this.intlMeridiemUp, intlMinute: this.intlMinute, intlMinuteDown: this.intlMinuteDown, intlMinuteUp: this.intlMinuteUp, intlSecond: this.intlSecond, intlSecondDown: this.intlSecondDown, intlSecondUp: this.intlSecondUp, lang: this.locale, onCalciteTimePickerChange: this.timePickerChangeHandler, ref: this.setCalciteTimePickerEl, scale: this.scale, step: this.step, value: this.value })), h(HiddenFormInputSlot, { component: this })));
|
|
14750
14821
|
}
|
|
14751
14822
|
get el() { return this; }
|
|
14752
14823
|
static get watchers() { return {
|
|
@@ -16150,7 +16221,7 @@ const Panel = class extends HTMLElement$1 {
|
|
|
16150
16221
|
}
|
|
16151
16222
|
render() {
|
|
16152
16223
|
const { dismissed, dismissible, loading, panelKeyDownHandler } = this;
|
|
16153
|
-
const panelNode = (h("article", { "aria-busy": loading
|
|
16224
|
+
const panelNode = (h("article", { "aria-busy": toAriaBoolean(loading), class: CSS$k.container, hidden: dismissible && dismissed, onKeyDown: panelKeyDownHandler, ref: this.setContainerRef, tabIndex: dismissible ? 0 : -1 }, this.renderHeaderNode(), this.renderContent(), this.renderFooterNode()));
|
|
16154
16225
|
return (h(Fragment, null, loading ? h("calcite-scrim", { loading: loading }) : null, panelNode));
|
|
16155
16226
|
}
|
|
16156
16227
|
get el() { return this; }
|
|
@@ -16484,7 +16555,7 @@ var __rest = (undefined && undefined.__rest) || function (s, e) {
|
|
|
16484
16555
|
const List = (_a) => {
|
|
16485
16556
|
var { props: { disabled, loading, filterEnabled, dataForFilter, handleFilter, filterPlaceholder, setFilterEl } } = _a, rest = __rest(_a, ["props"]);
|
|
16486
16557
|
const defaultSlot = h("slot", null);
|
|
16487
|
-
return (h(Host, Object.assign({ "aria-busy": loading
|
|
16558
|
+
return (h(Host, Object.assign({ "aria-busy": toAriaBoolean(loading), role: "menu" }, rest),
|
|
16488
16559
|
h("section", null,
|
|
16489
16560
|
h("header", { class: { [CSS$j.sticky]: true } },
|
|
16490
16561
|
filterEnabled ? (h("calcite-filter", { "aria-label": filterPlaceholder, disabled: loading || disabled, items: dataForFilter, onCalciteFilterChange: handleFilter, placeholder: filterPlaceholder, ref: setFilterEl })) : null,
|
|
@@ -16837,7 +16908,7 @@ const PickListItem = class extends HTMLElement$1 {
|
|
|
16837
16908
|
}
|
|
16838
16909
|
render() {
|
|
16839
16910
|
const { description, label } = this;
|
|
16840
|
-
return (h(Fragment, null, this.renderIcon(), this.renderActionsStart(), h("label", { "aria-label": label, class: CSS$h.label, onClick: this.pickListClickHandler, onKeyDown: this.pickListKeyDownHandler, ref: (focusEl) => (this.focusEl = focusEl), tabIndex: 0 }, h("div", { "aria-checked": this.selected
|
|
16911
|
+
return (h(Fragment, null, this.renderIcon(), this.renderActionsStart(), h("label", { "aria-label": label, class: CSS$h.label, onClick: this.pickListClickHandler, onKeyDown: this.pickListKeyDownHandler, ref: (focusEl) => (this.focusEl = focusEl), tabIndex: 0 }, h("div", { "aria-checked": toAriaBoolean(this.selected), class: CSS$h.textContainer, role: "menuitemcheckbox" }, h("span", { class: CSS$h.title }, label), description ? h("span", { class: CSS$h.description }, description) : null)), this.renderActionsEnd()));
|
|
16841
16912
|
}
|
|
16842
16913
|
get el() { return this; }
|
|
16843
16914
|
static get watchers() { return {
|
|
@@ -17022,7 +17093,7 @@ const Popover = class extends HTMLElement$1 {
|
|
|
17022
17093
|
if (!effectiveReferenceElement) {
|
|
17023
17094
|
return;
|
|
17024
17095
|
}
|
|
17025
|
-
effectiveReferenceElement.setAttribute(ARIA_EXPANDED, open
|
|
17096
|
+
effectiveReferenceElement.setAttribute(ARIA_EXPANDED, toAriaBoolean(open));
|
|
17026
17097
|
};
|
|
17027
17098
|
this.addReferences = () => {
|
|
17028
17099
|
const { effectiveReferenceElement } = this;
|
|
@@ -17199,7 +17270,7 @@ const Popover = class extends HTMLElement$1 {
|
|
|
17199
17270
|
const displayed = effectiveReferenceElement && open;
|
|
17200
17271
|
const hidden = !displayed;
|
|
17201
17272
|
const arrowNode = !disablePointer ? (h("div", { class: CSS$g.arrow, ref: (arrowEl) => (this.arrowEl = arrowEl) })) : null;
|
|
17202
|
-
return (h(Host, { "aria-hidden": hidden
|
|
17273
|
+
return (h(Host, { "aria-hidden": toAriaBoolean(hidden), "aria-label": label, "calcite-hydrated-hidden": hidden, id: this.getId(), role: "dialog" }, h("div", { class: {
|
|
17203
17274
|
[CSS$D.animation]: true,
|
|
17204
17275
|
[CSS$D.animationActive]: displayed
|
|
17205
17276
|
}, onTransitionEnd: this.transitionEnd }, arrowNode, h("div", { class: {
|
|
@@ -17556,7 +17627,7 @@ const RadioButton = class extends HTMLElement$1 {
|
|
|
17556
17627
|
// --------------------------------------------------------------------------
|
|
17557
17628
|
render() {
|
|
17558
17629
|
const tabIndex = this.getTabIndex();
|
|
17559
|
-
return (h(Host, { onClick: this.clickHandler, onKeyDown: this.handleKeyDown }, h("div", { "aria-checked": this.checked
|
|
17630
|
+
return (h(Host, { onClick: this.clickHandler, onKeyDown: this.handleKeyDown }, h("div", { "aria-checked": toAriaBoolean(this.checked), "aria-label": getLabelText(this), class: CSS$f.container, onBlur: this.onContainerBlur, onFocus: this.onContainerFocus, ref: this.setContainerEl, role: "radio", tabIndex: tabIndex }, h("div", { class: "radio" })), h(HiddenFormInputSlot, { component: this })));
|
|
17560
17631
|
}
|
|
17561
17632
|
get el() { return this; }
|
|
17562
17633
|
static get watchers() { return {
|
|
@@ -17896,7 +17967,7 @@ const RadioGroupItem = class extends HTMLElement$1 {
|
|
|
17896
17967
|
const appearance = getElementProp(this.el, "appearance", "solid");
|
|
17897
17968
|
const layout = getElementProp(this.el, "layout", "horizontal");
|
|
17898
17969
|
const iconEl = (h("calcite-icon", { class: CSS$e.radioGroupItemIcon, flipRtl: this.iconFlipRtl, icon: this.icon, scale: "s" }));
|
|
17899
|
-
return (h(Host, { "aria-checked": checked
|
|
17970
|
+
return (h(Host, { "aria-checked": toAriaBoolean(checked), role: "radio" }, h("label", { class: {
|
|
17900
17971
|
"label--scale-s": scale === "s",
|
|
17901
17972
|
"label--scale-m": scale === "m",
|
|
17902
17973
|
"label--scale-l": scale === "l",
|
|
@@ -22973,7 +23044,7 @@ const StepperItem = class extends HTMLElement$1 {
|
|
|
22973
23044
|
updateHostInteraction(this, true);
|
|
22974
23045
|
}
|
|
22975
23046
|
render() {
|
|
22976
|
-
return (h(Host, { "aria-expanded": this.active
|
|
23047
|
+
return (h(Host, { "aria-expanded": toAriaBoolean(this.active), onClick: () => this.emitRequestedItem() }, h("div", { class: "container" }, h("div", { class: "stepper-item-header" }, this.icon ? this.renderIcon() : null, this.numbered ? (h("div", { class: "stepper-item-number" }, this.getItemPosition() + 1, ".")) : null, h("div", { class: "stepper-item-header-text" }, h("span", { class: "stepper-item-title" }, this.itemTitle), h("span", { class: "stepper-item-subtitle" }, this.itemSubtitle))), h("div", { class: "stepper-item-content" }, h("slot", null)))));
|
|
22977
23048
|
}
|
|
22978
23049
|
//--------------------------------------------------------------------------
|
|
22979
23050
|
//
|
|
@@ -23153,7 +23224,7 @@ const Switch = class extends HTMLElement$1 {
|
|
|
23153
23224
|
//
|
|
23154
23225
|
// --------------------------------------------------------------------------
|
|
23155
23226
|
render() {
|
|
23156
|
-
return (h(Host, { onClick: this.clickHandler, onKeyDown: this.keyDownHandler }, h("div", { "aria-checked": this.checked
|
|
23227
|
+
return (h(Host, { onClick: this.clickHandler, onKeyDown: this.keyDownHandler }, h("div", { "aria-checked": toAriaBoolean(this.checked), "aria-label": getLabelText(this), class: "container", ref: this.setSwitchEl, role: "switch", tabIndex: 0 }, h("div", { class: "track" }, h("div", { class: "handle" })), h(HiddenFormInputSlot, { component: this }))));
|
|
23157
23228
|
}
|
|
23158
23229
|
get el() { return this; }
|
|
23159
23230
|
static get watchers() { return {
|
|
@@ -23185,7 +23256,7 @@ const Tab = class extends HTMLElement$1 {
|
|
|
23185
23256
|
//--------------------------------------------------------------------------
|
|
23186
23257
|
render() {
|
|
23187
23258
|
const id = this.el.id || this.guid;
|
|
23188
|
-
return (h(Host, { "aria-expanded": this.active
|
|
23259
|
+
return (h(Host, { "aria-expanded": toAriaBoolean(this.active), "aria-labelledby": this.labeledBy, id: id, role: "tabpanel" }, h("section", null, h("slot", null))));
|
|
23189
23260
|
}
|
|
23190
23261
|
connectedCallback() {
|
|
23191
23262
|
this.parentTabsEl = this.el.closest("calcite-tabs");
|
|
@@ -23530,7 +23601,7 @@ const TabTitle = class extends HTMLElement$1 {
|
|
|
23530
23601
|
const showSideBorders = this.bordered && !this.disabled && this.layout !== "center";
|
|
23531
23602
|
const iconStartEl = (h("calcite-icon", { class: "calcite-tab-title--icon icon-start", flipRtl: this.iconFlipRtl === "start" || this.iconFlipRtl === "both", icon: this.iconStart, scale: "s" }));
|
|
23532
23603
|
const iconEndEl = (h("calcite-icon", { class: "calcite-tab-title--icon icon-end", flipRtl: this.iconFlipRtl === "end" || this.iconFlipRtl === "both", icon: this.iconEnd, scale: "s" }));
|
|
23533
|
-
return (h(Host, { "aria-controls": this.controls, "aria-expanded": this.active
|
|
23604
|
+
return (h(Host, { "aria-controls": this.controls, "aria-expanded": toAriaBoolean(this.active), id: id, role: "tab" }, h("a", { class: {
|
|
23534
23605
|
container: true,
|
|
23535
23606
|
"container--has-text": this.hasText
|
|
23536
23607
|
}, style: showSideBorders && { width: `${this.parentTabNavEl.indicatorWidth}px` } }, this.iconStart ? iconStartEl : null, h("slot", null), this.iconEnd ? iconEndEl : null)));
|
|
@@ -25008,7 +25079,7 @@ const TipManager = class extends HTMLElement$1 {
|
|
|
25008
25079
|
if (total === 0) {
|
|
25009
25080
|
return null;
|
|
25010
25081
|
}
|
|
25011
|
-
return (h("section", { "aria-hidden": closed
|
|
25082
|
+
return (h("section", { "aria-hidden": toAriaBoolean(closed), class: CSS$4.container, hidden: closed, onKeyUp: this.tipManagerKeyUpHandler, ref: this.storeContainerRef, tabIndex: 0 }, h("header", { class: CSS$4.header }, h(Heading, { class: CSS$4.heading, level: headingLevel || HEADING_LEVEL$1 }, groupTitle), h("calcite-action", { class: CSS$4.close, onClick: this.hideTipManager, scale: "m", text: closeLabel }, h("calcite-icon", { icon: ICONS$3.close, scale: "m" }))), h("div", { class: {
|
|
25012
25083
|
[CSS$4.tipContainer]: true,
|
|
25013
25084
|
[CSS$4.tipContainerAdvancing]: !closed && direction === "advancing",
|
|
25014
25085
|
[CSS$4.tipContainerRetreating]: !closed && direction === "retreating"
|
|
@@ -25352,7 +25423,7 @@ const Tooltip = class extends HTMLElement$1 {
|
|
|
25352
25423
|
const { effectiveReferenceElement, label, open } = this;
|
|
25353
25424
|
const displayed = effectiveReferenceElement && open;
|
|
25354
25425
|
const hidden = !displayed;
|
|
25355
|
-
return (h(Host, { "aria-hidden": hidden
|
|
25426
|
+
return (h(Host, { "aria-hidden": toAriaBoolean(hidden), "aria-label": label, "calcite-hydrated-hidden": hidden, id: this.getId(), role: "tooltip" }, h("div", { class: {
|
|
25356
25427
|
[CSS$D.animation]: true,
|
|
25357
25428
|
[CSS$D.animationActive]: displayed
|
|
25358
25429
|
} }, h("div", { class: CSS$2.arrow, ref: (arrowEl) => (this.arrowEl = arrowEl) }), h("div", { class: CSS$2.container }, h("slot", null)))));
|
|
@@ -25793,7 +25864,7 @@ const TreeItem = class extends HTMLElement$1 {
|
|
|
25793
25864
|
[CSS_UTILITY.rtl]: rtl
|
|
25794
25865
|
}, icon: selectedIcon, scale: "s" })) : null;
|
|
25795
25866
|
const hidden = !(this.parentExpanded || this.depth === 1);
|
|
25796
|
-
return (h(Host, { "aria-expanded": this.hasChildren ? this.expanded
|
|
25867
|
+
return (h(Host, { "aria-expanded": this.hasChildren ? toAriaBoolean(this.expanded) : undefined, "aria-hidden": toAriaBoolean(hidden), "aria-selected": this.selected ? "true" : showCheckmark ? "false" : undefined, "calcite-hydrated-hidden": hidden, role: "treeitem", tabindex: this.parentExpanded || this.depth === 1 ? "0" : "-1" }, h("div", { class: {
|
|
25797
25868
|
[CSS$1.nodeContainer]: true,
|
|
25798
25869
|
[CSS_UTILITY.rtl]: rtl
|
|
25799
25870
|
}, "data-selection-mode": this.selectionMode, ref: (el) => (this.defaultSlotWrapper = el) }, chevron, bulletOrCheckIcon, checkbox ? checkbox : defaultSlotNode), h("div", { class: {
|
|
@@ -26194,7 +26265,7 @@ const ValueListItem = class extends HTMLElement$1 {
|
|
|
26194
26265
|
renderHandle() {
|
|
26195
26266
|
const { icon } = this;
|
|
26196
26267
|
if (icon === ICON_TYPES$1.grip) {
|
|
26197
|
-
return (h("span", { "aria-pressed": this.handleActivated
|
|
26268
|
+
return (h("span", { "aria-pressed": toAriaBoolean(this.handleActivated), class: {
|
|
26198
26269
|
[CSS$h.handle]: true,
|
|
26199
26270
|
[CSS$h.handleActivated]: this.handleActivated
|
|
26200
26271
|
}, "data-js-handle": true, onBlur: this.handleBlur, onKeyDown: this.handleKeyDown, role: "button", tabindex: "0" }, h("calcite-icon", { icon: ICONS.drag, scale: "s" })));
|