@esri/calcite-components 1.0.0-next.541 → 1.0.0-next.544
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/calcite/assets/date-picker/nls/pt-PT.json +1 -0
- 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-5eac94d6.system.entry.js → p-017b5563.system.entry.js} +2 -2
- package/dist/calcite/{p-139e5ea1.js → p-0402c9d6.js} +2 -2
- package/dist/calcite/{p-2c14d2e4.system.entry.js → p-055a2cf9.system.entry.js} +2 -2
- package/dist/calcite/{p-811f9c3a.entry.js → p-05b37bfd.entry.js} +2 -2
- package/dist/calcite/{p-1c6de284.entry.js → p-063cf7d8.entry.js} +2 -2
- package/dist/calcite/{p-5c9aee9b.system.entry.js → p-06e50ca1.system.entry.js} +2 -2
- package/dist/calcite/{p-639566f0.js → p-07500b9d.js} +1 -1
- package/dist/calcite/{p-c08f8245.system.entry.js → p-086a477f.system.entry.js} +2 -2
- package/dist/calcite/{p-e4134b3d.system.entry.js → p-0ab1c130.system.entry.js} +2 -2
- package/dist/calcite/p-0ab8d9a9.system.entry.js +6 -0
- package/dist/calcite/{p-cc86903f.entry.js → p-0c8f4810.entry.js} +2 -2
- package/dist/calcite/{p-a1a42618.js → p-0e793336.js} +2 -2
- package/dist/calcite/{p-b3e66d43.system.entry.js → p-11d6f7e8.system.entry.js} +2 -2
- package/dist/calcite/{p-c5f731d8.system.js → p-124d554c.system.js} +1 -1
- package/dist/calcite/{p-e2658c82.system.entry.js → p-13118932.system.entry.js} +2 -2
- package/dist/calcite/{p-125dc43c.system.js → p-141468cd.system.js} +1 -1
- package/dist/calcite/{p-425efb05.system.js → p-1627818c.system.js} +1 -1
- package/dist/calcite/{p-d24f45b0.js → p-16b14f03.js} +2 -2
- package/dist/calcite/{p-eb3e4fc5.entry.js → p-188b2cfd.entry.js} +2 -2
- package/dist/calcite/{p-e8aba406.system.entry.js → p-193c62a4.system.entry.js} +2 -2
- package/dist/calcite/{p-bf0cb0f3.system.entry.js → p-1aa9f3eb.system.entry.js} +2 -2
- package/dist/calcite/p-1b5134c1.entry.js +6 -0
- package/dist/calcite/{p-1e508d0f.system.entry.js → p-1b5468d5.system.entry.js} +2 -2
- package/dist/calcite/{p-4b686f0d.system.entry.js → p-1f19a1b1.system.entry.js} +2 -2
- package/dist/calcite/{p-7c8f30b3.system.entry.js → p-22b6d250.system.entry.js} +2 -2
- package/dist/calcite/{p-a8eed356.entry.js → p-27357e03.entry.js} +2 -2
- package/dist/calcite/{p-5eaab115.entry.js → p-2a9e74e6.entry.js} +2 -2
- package/dist/calcite/{p-babc3479.system.entry.js → p-2b0f1f3c.system.entry.js} +2 -2
- package/dist/calcite/{p-71d9cf19.entry.js → p-2d18035d.entry.js} +2 -2
- package/dist/calcite/{p-716ffd9d.system.js → p-2e12b7f4.system.js} +2 -2
- package/dist/calcite/{p-6027f8df.entry.js → p-316501a8.entry.js} +2 -2
- package/dist/calcite/{p-f2b42c9a.system.entry.js → p-33fd6519.system.entry.js} +2 -2
- package/dist/calcite/{p-0a0c9fb1.system.entry.js → p-3618ac1f.system.entry.js} +2 -2
- package/dist/calcite/p-37eb4ca2.system.entry.js +6 -0
- package/dist/calcite/{p-c30e0dde.entry.js → p-391b9824.entry.js} +2 -2
- package/dist/calcite/{p-351d758b.js → p-3973e87f.js} +1 -1
- package/dist/calcite/{p-eb3b33a9.js → p-3c34aeff.js} +1 -1
- package/dist/calcite/{p-19caa7ad.entry.js → p-3cb078d5.entry.js} +2 -2
- package/dist/calcite/{p-df744686.system.entry.js → p-3df8d9f0.system.entry.js} +2 -2
- package/dist/calcite/{p-4628af8a.js → p-3fe91dfb.js} +2 -2
- package/dist/calcite/{p-402d5d66.system.js → p-4078cae3.system.js} +1 -1
- package/dist/calcite/{p-513c299d.system.entry.js → p-41db0342.system.entry.js} +2 -2
- package/dist/calcite/p-421e2c77.system.entry.js +6 -0
- package/dist/calcite/{p-7c3b08d4.entry.js → p-431be889.entry.js} +2 -2
- package/dist/calcite/{p-2bd06ea0.entry.js → p-4539ba94.entry.js} +2 -2
- package/dist/calcite/{p-5f902b7e.system.entry.js → p-46980e08.system.entry.js} +2 -2
- package/dist/calcite/{p-23fbea45.js → p-47975ad3.js} +1 -1
- package/dist/calcite/{p-d4db70a1.system.js → p-4929a0eb.system.js} +2 -2
- package/dist/calcite/{p-73821e7e.entry.js → p-4c5a4831.entry.js} +2 -2
- package/dist/calcite/{p-99b59527.system.entry.js → p-4d59d2f1.system.entry.js} +2 -2
- package/dist/calcite/{p-b94c634f.system.js → p-4f479ec5.system.js} +3 -3
- package/dist/calcite/{p-5b2a6ff2.entry.js → p-505fe1e6.entry.js} +2 -2
- package/dist/calcite/p-524e091f.system.entry.js +6 -0
- package/dist/calcite/{p-0c2126c3.entry.js → p-53f08c1d.entry.js} +2 -2
- package/dist/calcite/{p-63ff362d.entry.js → p-555f4c8e.entry.js} +2 -2
- package/dist/calcite/{p-74cc2d04.system.entry.js → p-568b56f0.system.entry.js} +2 -2
- package/dist/calcite/{p-6ad72e5d.system.entry.js → p-5be7ace5.system.entry.js} +2 -2
- package/dist/calcite/{p-373c3525.system.js → p-5c143f06.system.js} +1 -1
- package/dist/calcite/{p-e19e017e.system.js → p-5c5934ca.system.js} +2 -2
- package/dist/calcite/{p-f6ad025c.system.js → p-5d27f690.system.js} +1 -1
- package/dist/calcite/{p-f1d23a04.system.entry.js → p-5d715233.system.entry.js} +2 -2
- package/dist/calcite/{p-ac9811b6.system.js → p-5f17574e.system.js} +1 -1
- package/dist/calcite/{p-4421ad7f.entry.js → p-5fbfcb6f.entry.js} +2 -2
- package/dist/calcite/{p-bf149d0c.system.entry.js → p-60a40fd6.system.entry.js} +2 -2
- package/dist/calcite/p-60fd8d01.entry.js +6 -0
- package/dist/calcite/p-611927da.js +6 -0
- package/dist/calcite/{p-09a784ef.js → p-653af4c7.js} +1 -1
- package/dist/calcite/p-65743185.entry.js +6 -0
- package/dist/calcite/{p-e15a01d6.system.entry.js → p-669cfd9c.system.entry.js} +2 -2
- package/dist/calcite/{p-6659bc18.entry.js → p-66d4cc4f.entry.js} +2 -2
- package/dist/calcite/{p-e05d5ac3.system.entry.js → p-6705254d.system.entry.js} +2 -2
- package/dist/calcite/{p-2d0560c3.system.js → p-67340ef8.system.js} +1 -1
- package/dist/calcite/{p-84e09276.entry.js → p-6a51a947.entry.js} +2 -2
- package/dist/calcite/{p-c4c1e154.system.entry.js → p-6a8842ef.system.entry.js} +2 -2
- package/dist/calcite/{p-eca79639.entry.js → p-6c8dc598.entry.js} +2 -2
- package/dist/calcite/{p-576fd86d.entry.js → p-7090b8ec.entry.js} +2 -2
- package/dist/calcite/{p-bf3c3837.js → p-732f6e8e.js} +1 -1
- package/dist/calcite/{p-7c5fc45e.system.js → p-741e7e94.system.js} +2 -2
- package/dist/calcite/{p-e581002d.js → p-74728471.js} +1 -1
- package/dist/calcite/p-74d0651d.system.js +6 -0
- package/dist/calcite/{p-2a9ee718.entry.js → p-75895886.entry.js} +2 -2
- package/dist/calcite/{p-6fdf2cd3.js → p-771a95d9.js} +1 -1
- package/dist/calcite/{p-82893fd1.system.entry.js → p-77ff437a.system.entry.js} +2 -2
- package/dist/calcite/p-78f9dad4.js +6 -0
- package/dist/calcite/{p-16352c50.entry.js → p-790edf0a.entry.js} +2 -2
- package/dist/calcite/{p-1f513500.system.js → p-7b14556e.system.js} +1 -1
- package/dist/calcite/{p-6a3e681f.entry.js → p-7d6fac7b.entry.js} +2 -2
- package/dist/calcite/{p-3e5f7ea2.entry.js → p-7da893b7.entry.js} +2 -2
- package/dist/calcite/{p-7a5558ea.system.js → p-7ec67376.system.js} +1 -1
- package/dist/calcite/{p-4266ea8e.entry.js → p-80e72bbe.entry.js} +2 -2
- package/dist/calcite/{p-1eef9bb6.system.js → p-843af182.system.js} +1 -1
- package/dist/calcite/{p-344b08b0.system.entry.js → p-84e02c84.system.entry.js} +2 -2
- package/dist/calcite/{p-a608ba0a.js → p-8522c8ba.js} +2 -2
- package/dist/calcite/{p-ca907d1e.entry.js → p-8631146a.entry.js} +2 -2
- package/dist/calcite/{p-ff5d892d.entry.js → p-882dc80b.entry.js} +2 -2
- package/dist/calcite/{p-64c19446.system.js → p-88f8cf93.system.js} +1 -1
- package/dist/calcite/{p-f2fb1a5d.entry.js → p-8daae8c6.entry.js} +2 -2
- package/dist/calcite/{p-0e96136e.js → p-8dfda34f.js} +1 -1
- package/dist/calcite/{p-3c8adba0.entry.js → p-8fe1425a.entry.js} +2 -2
- package/dist/calcite/{p-50508b4c.system.entry.js → p-901c46b3.system.entry.js} +2 -2
- package/dist/calcite/{p-29a87c80.js → p-9023d820.js} +2 -2
- package/dist/calcite/{p-fd44e962.js → p-90b70057.js} +2 -2
- package/dist/calcite/{p-459c4595.js → p-90b73984.js} +1 -1
- package/dist/calcite/{p-458ee586.system.entry.js → p-91ab51ee.system.entry.js} +2 -2
- package/dist/calcite/{p-10080780.system.js → p-9537cb10.system.js} +2 -2
- package/dist/calcite/{p-7616631b.system.js → p-95c483ad.system.js} +2 -2
- package/dist/calcite/{p-544fd9bd.system.js → p-95c977b4.system.js} +1 -1
- package/dist/calcite/{p-f785647f.js → p-96c00b06.js} +1 -1
- package/dist/calcite/{p-e72f0005.js → p-9da7711e.js} +1 -1
- package/dist/calcite/{p-c4230ef0.entry.js → p-9f44b55b.entry.js} +2 -2
- package/dist/calcite/{p-5d45c1c5.system.entry.js → p-a3ae49a7.system.entry.js} +2 -2
- package/dist/calcite/p-a404e149.system.js +6 -0
- package/dist/calcite/{p-d3dac5eb.entry.js → p-a4aa877d.entry.js} +2 -2
- package/dist/calcite/{p-c77a70b4.js → p-a6a0a3cf.js} +2 -2
- package/dist/calcite/{p-9660a4e7.system.entry.js → p-a9a6f58f.system.entry.js} +2 -2
- package/dist/calcite/{p-4f73c72f.entry.js → p-a9f38aa2.entry.js} +2 -2
- package/dist/calcite/{p-9c6bf62a.entry.js → p-aaa6c6a0.entry.js} +2 -2
- package/dist/calcite/{p-bd26a290.system.entry.js → p-ae2bec77.system.entry.js} +2 -2
- package/dist/calcite/{p-84602c73.system.entry.js → p-b19cad69.system.entry.js} +2 -2
- package/dist/calcite/{p-aeed3c1f.system.entry.js → p-b235b547.system.entry.js} +2 -2
- package/dist/calcite/{p-cdd6df6c.system.entry.js → p-b32038bf.system.entry.js} +2 -2
- package/dist/calcite/{p-aaaf4272.entry.js → p-b8b7d638.entry.js} +2 -2
- package/dist/calcite/{p-32a0b6fb.system.entry.js → p-bb182aa7.system.entry.js} +2 -2
- package/dist/calcite/{p-391a3c15.system.entry.js → p-bbc284de.system.entry.js} +2 -2
- package/dist/calcite/{p-29b31c8c.system.entry.js → p-bcec18d4.system.entry.js} +2 -2
- package/dist/calcite/{p-5255410e.entry.js → p-bdccd6fc.entry.js} +2 -2
- package/dist/calcite/p-bdde1ec0.entry.js +6 -0
- package/dist/calcite/{p-30313817.system.entry.js → p-bde5652c.system.entry.js} +2 -2
- package/dist/calcite/{p-7c156c93.entry.js → p-bfc3c9f4.entry.js} +2 -2
- package/dist/calcite/{p-06e4362b.system.entry.js → p-bfdca321.system.entry.js} +2 -2
- package/dist/calcite/{p-5c17d27c.system.entry.js → p-c1ce958f.system.entry.js} +2 -2
- package/dist/calcite/{p-0ce017af.entry.js → p-c21af30c.entry.js} +2 -2
- package/dist/calcite/{p-a5dcf117.entry.js → p-c2fb1a79.entry.js} +2 -2
- package/dist/calcite/{p-964c2611.entry.js → p-c30e1886.entry.js} +2 -2
- package/dist/calcite/{p-183a8c1d.system.js → p-c3412001.system.js} +2 -2
- package/dist/calcite/{p-68b856a6.system.entry.js → p-c5f9864c.system.entry.js} +2 -2
- package/dist/calcite/p-c8f5dc19.entry.js +6 -0
- package/dist/calcite/{p-90faa45d.system.entry.js → p-cb2731b8.system.entry.js} +2 -2
- package/dist/calcite/{p-45216cf8.entry.js → p-cb3d9292.entry.js} +2 -2
- package/dist/calcite/{p-9589b984.entry.js → p-cb9a0a65.entry.js} +2 -2
- package/dist/calcite/{p-0772194e.entry.js → p-ccd90635.entry.js} +2 -2
- package/dist/calcite/{p-022bfda9.system.entry.js → p-cd4c13ba.system.entry.js} +2 -2
- package/dist/calcite/{p-5e64c4aa.system.js → p-cdc58215.system.js} +2 -2
- package/dist/calcite/{p-6b8ec16d.system.entry.js → p-cfde8feb.system.entry.js} +2 -2
- package/dist/calcite/{p-b66ac006.entry.js → p-d173f58f.entry.js} +2 -2
- package/dist/calcite/{p-831e1b4b.system.entry.js → p-d92e018b.system.entry.js} +2 -2
- package/dist/calcite/p-da47df91.entry.js +6 -0
- package/dist/calcite/{p-de2332e1.entry.js → p-da5e4358.entry.js} +2 -2
- package/dist/calcite/{p-fa257fda.system.entry.js → p-da764fa9.system.entry.js} +3 -3
- package/dist/calcite/{p-0bc8ceda.entry.js → p-dcc696e7.entry.js} +2 -2
- package/dist/calcite/{p-57b2682b.system.entry.js → p-dcdba273.system.entry.js} +2 -2
- package/dist/calcite/{p-a4db37f6.system.entry.js → p-df4cd8fb.system.entry.js} +2 -2
- package/dist/calcite/{p-32ca28f1.system.entry.js → p-dffd3707.system.entry.js} +2 -2
- package/dist/calcite/{p-f1f2937c.entry.js → p-e0ee5be8.entry.js} +2 -2
- package/dist/calcite/{p-acb021d5.entry.js → p-e1392170.entry.js} +2 -2
- package/dist/calcite/{p-114329fd.system.js → p-e7ab5a7d.system.js} +2 -2
- package/dist/calcite/p-e89fba48.system.entry.js +6 -0
- package/dist/calcite/{p-89e0b581.entry.js → p-e91e530b.entry.js} +2 -2
- package/dist/calcite/{p-87f73a5a.system.entry.js → p-ea1d91e2.system.entry.js} +2 -2
- package/dist/calcite/{p-392d3088.js → p-eb799436.js} +1 -1
- package/dist/calcite/{p-42793962.entry.js → p-ec3054db.entry.js} +2 -2
- package/dist/calcite/{p-225d4dbf.system.entry.js → p-ee24e31a.system.entry.js} +2 -2
- package/dist/calcite/{p-7a45fc13.entry.js → p-eecaadda.entry.js} +2 -2
- package/dist/calcite/{p-25292326.system.entry.js → p-f7631dc0.system.entry.js} +2 -2
- package/dist/calcite/{p-947fd570.js → p-f7e8e932.js} +2 -2
- package/dist/calcite/{p-20821ca5.system.js → p-fa1a3586.system.js} +1 -1
- package/dist/calcite/{p-e394716d.entry.js → p-fe36ca96.entry.js} +2 -2
- package/dist/calcite/{p-147c243c.entry.js → p-fef3042b.entry.js} +2 -2
- package/dist/cjs/{ExpandToggle-4f563a31.js → ExpandToggle-fa654a3c.js} +5 -5
- package/dist/cjs/{Heading-bba36a0a.js → Heading-926da4aa.js} +2 -2
- package/dist/cjs/{array-76b08986.js → array-124bd3fc.js} +1 -1
- package/dist/cjs/calcite-accordion_2.cjs.entry.js +6 -6
- 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 +10 -10
- package/dist/cjs/calcite-action-pad.cjs.entry.js +9 -9
- package/dist/cjs/calcite-action.cjs.entry.js +6 -6
- package/dist/cjs/calcite-alert.cjs.entry.js +31 -16
- package/dist/cjs/calcite-avatar.cjs.entry.js +5 -5
- package/dist/cjs/calcite-block_2.cjs.entry.js +8 -8
- package/dist/cjs/calcite-button.cjs.entry.js +8 -8
- package/dist/cjs/calcite-card.cjs.entry.js +6 -6
- package/dist/cjs/calcite-checkbox.cjs.entry.js +7 -7
- package/dist/cjs/calcite-chip.cjs.entry.js +6 -6
- package/dist/cjs/calcite-color-picker_3.cjs.entry.js +8 -8
- package/dist/cjs/calcite-combobox_3.cjs.entry.js +13 -13
- package/dist/cjs/calcite-date-picker_4.cjs.entry.js +9 -9
- package/dist/cjs/calcite-dropdown_3.cjs.entry.js +11 -9
- package/dist/cjs/calcite-fab.cjs.entry.js +5 -5
- package/dist/cjs/calcite-filter.cjs.entry.js +7 -7
- 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 +4 -4
- package/dist/cjs/calcite-icon.cjs.entry.js +5 -5
- package/dist/cjs/calcite-inline-editable.cjs.entry.js +7 -7
- package/dist/cjs/calcite-input-date-picker.cjs.entry.js +11 -11
- package/dist/cjs/calcite-input-message.cjs.entry.js +4 -4
- package/dist/cjs/calcite-input-number.cjs.entry.js +11 -11
- package/dist/cjs/calcite-input-text.cjs.entry.js +330 -0
- package/dist/cjs/calcite-input-time-picker_2.cjs.entry.js +9 -9
- package/dist/cjs/calcite-input.cjs.entry.js +11 -11
- 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 +5 -5
- package/dist/cjs/calcite-panel.cjs.entry.js +9 -9
- package/dist/cjs/calcite-pick-list_3.cjs.entry.js +11 -11
- package/dist/cjs/calcite-popover_2.cjs.entry.js +7 -7
- 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 +8 -8
- package/dist/cjs/calcite-radio-group_2.cjs.entry.js +7 -7
- package/dist/cjs/calcite-rating.cjs.entry.js +8 -8
- 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 +5 -5
- package/dist/cjs/calcite-switch.cjs.entry.js +7 -7
- package/dist/cjs/calcite-tab_4.cjs.entry.js +6 -6
- 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 +7 -7
- package/dist/cjs/calcite-tooltip_2.cjs.entry.js +5 -5
- package/dist/cjs/calcite-tree_2.cjs.entry.js +6 -6
- package/dist/cjs/calcite-value-list_2.cjs.entry.js +11 -11
- package/dist/cjs/calcite.cjs.js +3 -3
- package/dist/cjs/{conditionalSlot-f7ebfd77.js → conditionalSlot-126ceabf.js} +3 -3
- package/dist/cjs/{debounce-381f23b0.js → debounce-c21d82c1.js} +1 -1
- package/dist/cjs/{dom-f4e4f342.js → dom-0a516207.js} +2 -2
- package/dist/cjs/{filter-00472272.js → filter-23ea61e2.js} +2 -2
- package/dist/cjs/{floating-ui-4ccb84f8.js → floating-ui-390bc35a.js} +2 -2
- package/dist/cjs/{form-c8006a0f.js → form-24a1b98f.js} +3 -3
- package/dist/cjs/{guid-1c7e7cd2.js → guid-803de3f2.js} +1 -1
- package/dist/cjs/{index-a21fb32a.js → index-fdb83c9d.js} +1 -1
- package/dist/cjs/index.cjs.js +1 -1
- package/dist/cjs/{interactive-85731aad.js → interactive-a399f754.js} +1 -1
- package/dist/cjs/{interfaces-1e601f15.js → interfaces-6357c13e.js} +1 -1
- package/dist/cjs/{key-b5bec557.js → key-cc50cda7.js} +1 -1
- package/dist/cjs/{label-25b38b6f.js → label-92cae198.js} +2 -2
- package/dist/cjs/loader.cjs.js +3 -3
- package/dist/cjs/{locale-2bb79108.js → locale-c6069fd5.js} +2 -2
- package/dist/cjs/{math-7064250f.js → math-15f75e99.js} +1 -1
- package/dist/cjs/{observers-0e24a1eb.js → observers-e7b90d49.js} +1 -1
- package/dist/cjs/{resources-06d588bf.js → resources-18f8639c.js} +1 -1
- package/dist/cjs/{resources-b6919944.js → resources-353d010f.js} +3 -3
- package/dist/cjs/{resources-6360f2df.js → resources-8219aa8f.js} +1 -1
- package/dist/cjs/{resources-58450e4a.js → resources-de18e1e8.js} +5 -5
- package/dist/cjs/{sortable.esm-8bd96141.js → sortable.esm-ad434f4d.js} +1 -1
- package/dist/cjs/{utils-a2cd887a.js → utils-39852081.js} +1 -1
- package/dist/collection/collection-manifest.json +1 -0
- 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 +1 -1
- package/dist/collection/components/accordion-item/interfaces.js +1 -1
- package/dist/collection/components/accordion-item/resources.js +1 -1
- package/dist/collection/components/action/action.js +1 -1
- 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 +5 -5
- 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.css +4 -4
- package/dist/collection/components/alert/alert.js +51 -13
- 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 +1 -1
- package/dist/collection/components/block/resources.js +1 -1
- package/dist/collection/components/block-section/block-section.js +1 -1
- 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 +1 -1
- 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 +1 -1
- package/dist/collection/components/card/resources.js +1 -1
- package/dist/collection/components/checkbox/checkbox.js +1 -1
- 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.js +1 -1
- 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 +1 -1
- 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.css +1 -1
- package/dist/collection/components/combobox/combobox.js +1 -1
- 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/assets/date-picker/nls/pt-PT.json +1 -0
- 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/date-picker-month-header/resources.js +1 -1
- package/dist/collection/components/dropdown/dropdown.css +1 -1
- package/dist/collection/components/dropdown/dropdown.js +12 -5
- 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 +1 -1
- 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 +1 -1
- 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 +1 -1
- package/dist/collection/components/handle/resources.js +1 -1
- package/dist/collection/components/icon/icon.js +1 -1
- 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 +1 -1
- 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 +1 -1
- package/dist/collection/components/input-date-picker/resources.js +1 -1
- 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-number/input-number.js +1 -1
- package/dist/collection/components/input-number/interfaces.js +1 -1
- package/dist/collection/components/input-number/resources.js +1 -1
- package/dist/collection/components/input-text/input-text.css +400 -0
- package/dist/collection/components/input-text/input-text.js +899 -0
- package/dist/collection/components/input-text/resources.js +24 -0
- package/dist/collection/components/input-time-picker/input-time-picker.js +1 -1
- 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 +1 -1
- 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 +1 -1
- 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 +1 -1
- 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 +1 -1
- 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 +1 -1
- 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 +1 -1
- 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/interfaces.js +1 -1
- package/dist/collection/components/stepper/stepper.js +1 -1
- package/dist/collection/components/stepper-item/stepper-item.js +1 -1
- package/dist/collection/components/switch/switch.js +1 -1
- package/dist/collection/components/tab/interfaces.js +1 -1
- package/dist/collection/components/tab/tab.js +1 -1
- package/dist/collection/components/tab-nav/tab-nav.js +1 -1
- package/dist/collection/components/tab-title/tab-title.js +1 -1
- 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 +1 -1
- 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 +1 -1
- 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 +1 -1
- package/dist/collection/components/value-list/interfaces.js +1 -1
- package/dist/collection/components/value-list/resources.js +1 -1
- package/dist/collection/components/value-list/utils.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 +1 -1
- 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 +1 -1
- package/dist/collection/utils/filter.js +1 -1
- package/dist/collection/utils/floating-ui.js +1 -1
- package/dist/collection/utils/form.js +1 -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/openCloseComponent.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 +4 -4
- package/dist/components/action.js +1 -1
- package/dist/components/array.js +1 -1
- package/dist/components/button.js +1 -1
- package/dist/components/calcite-accordion-item.js +1 -1
- 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 +28 -12
- package/dist/components/calcite-avatar.js +1 -1
- package/dist/components/calcite-block-section.js +1 -1
- package/dist/components/calcite-block.js +1 -1
- package/dist/components/calcite-button.js +1 -1
- package/dist/components/calcite-card.js +1 -1
- 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 +1 -1
- 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 +2 -2
- 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 +1 -1
- 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 +1 -1
- package/dist/components/calcite-input-message.js +1 -1
- package/dist/components/calcite-input-number.js +1 -1
- package/dist/components/calcite-input-text.d.ts +11 -0
- package/dist/components/calcite-input-text.js +382 -0
- package/dist/components/calcite-input-time-picker.js +1 -1
- 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 +1 -1
- 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 +1 -1
- package/dist/components/calcite-radio-group-item.js +1 -1
- 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 +1 -1
- 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 +1 -1
- package/dist/components/calcite-tip.js +1 -1
- package/dist/components/calcite-tooltip-manager.js +1 -1
- package/dist/components/calcite-tooltip.js +1 -1
- package/dist/components/calcite-tree-item.js +1 -1
- package/dist/components/calcite-tree.js +1 -1
- package/dist/components/calcite-value-list-item.js +1 -1
- package/dist/components/calcite-value-list.js +1 -1
- package/dist/components/checkbox.js +1 -1
- package/dist/components/chip.js +1 -1
- package/dist/components/color-picker-hex-input.js +1 -1
- 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 +1 -1
- package/dist/components/dropdown.js +5 -3
- package/dist/components/filter.js +1 -1
- package/dist/components/filter2.js +1 -1
- package/dist/components/floating-ui.js +1 -1
- package/dist/components/form.js +1 -1
- package/dist/components/graph.js +1 -1
- package/dist/components/guid.js +1 -1
- package/dist/components/handle.js +1 -1
- package/dist/components/icon.js +1 -1
- package/dist/components/index.js +1 -1
- package/dist/components/input.js +1 -1
- package/dist/components/interactive.js +1 -1
- package/dist/components/interfaces.js +1 -1
- package/dist/components/interfaces2.js +1 -1
- package/dist/components/key.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/observers.js +1 -1
- package/dist/components/pick-list-item.js +1 -1
- package/dist/components/popover.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 +1 -1
- package/dist/components/sortable.esm.js +1 -1
- package/dist/components/switch.js +1 -1
- package/dist/components/tab-nav.js +1 -1
- package/dist/components/tab-title.js +1 -1
- package/dist/components/tab.js +1 -1
- 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.d.ts +6 -0
- package/dist/custom-elements/index.js +619 -286
- package/dist/esm/{ExpandToggle-91637889.js → ExpandToggle-524ebbcc.js} +5 -5
- package/dist/esm/{Heading-61926aee.js → Heading-e1d3cd72.js} +2 -2
- package/dist/esm/{array-446667ee.js → array-4c52bd68.js} +1 -1
- package/dist/esm/calcite-accordion_2.entry.js +6 -6
- 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 +10 -10
- package/dist/esm/calcite-action-pad.entry.js +9 -9
- package/dist/esm/calcite-action.entry.js +6 -6
- package/dist/esm/calcite-alert.entry.js +31 -16
- package/dist/esm/calcite-avatar.entry.js +5 -5
- package/dist/esm/calcite-block_2.entry.js +8 -8
- package/dist/esm/calcite-button.entry.js +8 -8
- package/dist/esm/calcite-card.entry.js +6 -6
- package/dist/esm/calcite-checkbox.entry.js +7 -7
- package/dist/esm/calcite-chip.entry.js +6 -6
- package/dist/esm/calcite-color-picker_3.entry.js +8 -8
- package/dist/esm/calcite-combobox_3.entry.js +13 -13
- package/dist/esm/calcite-date-picker_4.entry.js +9 -9
- package/dist/esm/calcite-dropdown_3.entry.js +11 -9
- package/dist/esm/calcite-fab.entry.js +5 -5
- package/dist/esm/calcite-filter.entry.js +7 -7
- 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 +4 -4
- package/dist/esm/calcite-icon.entry.js +5 -5
- package/dist/esm/calcite-inline-editable.entry.js +7 -7
- package/dist/esm/calcite-input-date-picker.entry.js +11 -11
- package/dist/esm/calcite-input-message.entry.js +4 -4
- package/dist/esm/calcite-input-number.entry.js +11 -11
- package/dist/esm/calcite-input-text.entry.js +326 -0
- package/dist/esm/calcite-input-time-picker_2.entry.js +9 -9
- package/dist/esm/calcite-input.entry.js +11 -11
- 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 +5 -5
- package/dist/esm/calcite-panel.entry.js +9 -9
- package/dist/esm/calcite-pick-list_3.entry.js +11 -11
- package/dist/esm/calcite-popover_2.entry.js +7 -7
- 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 +8 -8
- package/dist/esm/calcite-radio-group_2.entry.js +7 -7
- package/dist/esm/calcite-rating.entry.js +8 -8
- 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 +5 -5
- package/dist/esm/calcite-switch.entry.js +7 -7
- package/dist/esm/calcite-tab_4.entry.js +6 -6
- 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 +7 -7
- package/dist/esm/calcite-tooltip_2.entry.js +5 -5
- package/dist/esm/calcite-tree_2.entry.js +6 -6
- package/dist/esm/calcite-value-list_2.entry.js +11 -11
- package/dist/esm/calcite.js +3 -3
- package/dist/esm/{conditionalSlot-cffc171d.js → conditionalSlot-c29e9a2e.js} +3 -3
- package/dist/esm/{debounce-394ab6b8.js → debounce-3756616f.js} +1 -1
- package/dist/esm/{dom-77e16eb3.js → dom-2c671dcd.js} +2 -2
- package/dist/esm/{filter-c8ed1b03.js → filter-98aa352c.js} +2 -2
- package/dist/esm/{floating-ui-a6fc86f1.js → floating-ui-9a886acd.js} +2 -2
- package/dist/esm/{form-e735eb58.js → form-26f2e1c3.js} +3 -3
- package/dist/esm/{guid-eacce60e.js → guid-50c9b747.js} +1 -1
- package/dist/esm/{index-d514fd3e.js → index-a854b3c9.js} +1 -1
- package/dist/esm/index.js +1 -1
- package/dist/esm/{interactive-6aaa1825.js → interactive-2c549e29.js} +1 -1
- package/dist/esm/{interfaces-38f96b99.js → interfaces-0985a6ea.js} +1 -1
- package/dist/esm/{key-3f3acbfd.js → key-fb1dba9a.js} +1 -1
- package/dist/esm/{label-3a8694cf.js → label-cd6a69b2.js} +2 -2
- package/dist/esm/loader.js +3 -3
- package/dist/esm/{locale-cc96165f.js → locale-ba0c1d6b.js} +2 -2
- package/dist/esm/{math-9114578e.js → math-b599b068.js} +1 -1
- package/dist/esm/{observers-3bbc570d.js → observers-f88d1a0f.js} +1 -1
- package/dist/esm/{resources-e4bc31a0.js → resources-333a8bd5.js} +5 -5
- package/dist/esm/{resources-54cc4b17.js → resources-6d5c422f.js} +3 -3
- package/dist/esm/{resources-42a9c944.js → resources-80eef5b1.js} +1 -1
- package/dist/esm/{resources-518f9229.js → resources-f8de16d9.js} +1 -1
- package/dist/esm/{sortable.esm-0fa01988.js → sortable.esm-59c211d9.js} +1 -1
- package/dist/esm/{utils-58e4f06f.js → utils-78f272f3.js} +1 -1
- package/dist/esm-es5/{ExpandToggle-91637889.js → ExpandToggle-524ebbcc.js} +2 -2
- package/dist/esm-es5/Heading-e1d3cd72.js +6 -0
- package/dist/esm-es5/{array-446667ee.js → array-4c52bd68.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 +2 -2
- package/dist/esm-es5/calcite-action.entry.js +2 -2
- package/dist/esm-es5/calcite-alert.entry.js +3 -3
- 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-number.entry.js +2 -2
- package/dist/esm-es5/calcite-input-text.entry.js +6 -0
- 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 +2 -2
- 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-cffc171d.js → conditionalSlot-c29e9a2e.js} +2 -2
- package/dist/esm-es5/{debounce-394ab6b8.js → debounce-3756616f.js} +1 -1
- package/dist/esm-es5/{dom-77e16eb3.js → dom-2c671dcd.js} +2 -2
- package/dist/esm-es5/{filter-c8ed1b03.js → filter-98aa352c.js} +2 -2
- package/dist/esm-es5/{floating-ui-a6fc86f1.js → floating-ui-9a886acd.js} +2 -2
- package/dist/esm-es5/{form-e735eb58.js → form-26f2e1c3.js} +2 -2
- package/dist/esm-es5/{guid-eacce60e.js → guid-50c9b747.js} +1 -1
- package/dist/esm-es5/{index-d514fd3e.js → index-a854b3c9.js} +1 -1
- package/dist/esm-es5/index.js +1 -1
- package/dist/esm-es5/{interactive-6aaa1825.js → interactive-2c549e29.js} +1 -1
- package/dist/esm-es5/{interfaces-38f96b99.js → interfaces-0985a6ea.js} +1 -1
- package/dist/esm-es5/{key-3f3acbfd.js → key-fb1dba9a.js} +1 -1
- package/dist/esm-es5/{label-3a8694cf.js → label-cd6a69b2.js} +2 -2
- package/dist/esm-es5/loader.js +2 -2
- package/dist/esm-es5/{locale-cc96165f.js → locale-ba0c1d6b.js} +2 -2
- package/dist/esm-es5/{math-9114578e.js → math-b599b068.js} +1 -1
- package/dist/esm-es5/{observers-3bbc570d.js → observers-f88d1a0f.js} +1 -1
- package/dist/esm-es5/{resources-e4bc31a0.js → resources-333a8bd5.js} +2 -2
- package/dist/esm-es5/{resources-54cc4b17.js → resources-6d5c422f.js} +2 -2
- package/dist/esm-es5/{resources-42a9c944.js → resources-80eef5b1.js} +1 -1
- package/dist/esm-es5/{resources-518f9229.js → resources-f8de16d9.js} +1 -1
- package/dist/esm-es5/{sortable.esm-0fa01988.js → sortable.esm-59c211d9.js} +1 -1
- package/dist/esm-es5/{utils-58e4f06f.js → utils-78f272f3.js} +1 -1
- package/dist/extras/docs-json.json +646 -99
- 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/alert/alert.d.ts +9 -2
- package/dist/types/components/dropdown/dropdown.d.ts +4 -3
- package/dist/types/components/dropdown/interfaces.d.ts +6 -0
- package/dist/types/components/input-text/input-text.d.ts +170 -0
- package/dist/types/components/input-text/resources.d.ts +19 -0
- package/dist/types/components.d.ts +246 -4
- package/dist/types/preact.d.ts +7 -0
- package/hydrate/index.js +653 -285
- package/package.json +1 -1
- package/dist/calcite/p-19c714b0.entry.js +0 -6
- package/dist/calcite/p-2f3135e5.js +0 -6
- package/dist/calcite/p-4ab23e26.system.js +0 -6
- package/dist/calcite/p-56571584.system.entry.js +0 -6
- package/dist/calcite/p-74eb09ea.entry.js +0 -6
- package/dist/calcite/p-762267da.js +0 -6
- package/dist/calcite/p-b66d5eaf.system.entry.js +0 -6
- package/dist/calcite/p-cdec0baf.entry.js +0 -6
- package/dist/calcite/p-d7a75a14.entry.js +0 -6
- package/dist/calcite/p-e4b3743c.system.entry.js +0 -6
- package/dist/calcite/p-e7df80d6.entry.js +0 -6
- package/dist/calcite/p-fa6c6568.system.entry.js +0 -6
- package/dist/calcite/p-ffe471b7.system.js +0 -6
- package/dist/esm-es5/Heading-61926aee.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.544
|
|
5
5
|
*/
|
|
6
6
|
import { HTMLElement as HTMLElement$1, createEvent, h, Build, forceUpdate, Host, Fragment, getAssetPath, proxyCustomElement } from '@stencil/core/internal/client';
|
|
7
7
|
export { setAssetPath, setPlatformOptions } from '@stencil/core/internal/client';
|
|
@@ -162,7 +162,7 @@ const CSS_UTILITY = {
|
|
|
162
162
|
lightTheme,
|
|
163
163
|
rtl: "calcite--rtl"
|
|
164
164
|
};
|
|
165
|
-
const TEXT$
|
|
165
|
+
const TEXT$u = {
|
|
166
166
|
loading: "Loading"
|
|
167
167
|
};
|
|
168
168
|
|
|
@@ -398,11 +398,11 @@ function processMutations$1(mutations) {
|
|
|
398
398
|
});
|
|
399
399
|
}
|
|
400
400
|
|
|
401
|
-
const SLOTS$
|
|
401
|
+
const SLOTS$s = {
|
|
402
402
|
actionsStart: "actions-start",
|
|
403
403
|
actionsEnd: "actions-end"
|
|
404
404
|
};
|
|
405
|
-
const CSS$
|
|
405
|
+
const CSS$S = {
|
|
406
406
|
icon: "icon",
|
|
407
407
|
header: "header",
|
|
408
408
|
headerContent: "header-content",
|
|
@@ -484,25 +484,25 @@ const AccordionItem = class extends HTMLElement$1 {
|
|
|
484
484
|
// --------------------------------------------------------------------------
|
|
485
485
|
renderActionsStart() {
|
|
486
486
|
const { el } = this;
|
|
487
|
-
return getSlotted(el, SLOTS$
|
|
487
|
+
return getSlotted(el, SLOTS$s.actionsStart) ? (h("div", { class: CSS$S.actionsStart }, h("slot", { name: SLOTS$s.actionsStart }))) : null;
|
|
488
488
|
}
|
|
489
489
|
renderActionsEnd() {
|
|
490
490
|
const { el } = this;
|
|
491
|
-
return getSlotted(el, SLOTS$
|
|
491
|
+
return getSlotted(el, SLOTS$s.actionsEnd) ? (h("div", { class: CSS$S.actionsEnd }, h("slot", { name: SLOTS$s.actionsEnd }))) : null;
|
|
492
492
|
}
|
|
493
493
|
render() {
|
|
494
494
|
const dir = getElementDir(this.el);
|
|
495
|
-
const iconEl = h("calcite-icon", { class: CSS$
|
|
495
|
+
const iconEl = h("calcite-icon", { class: CSS$S.icon, icon: this.icon, scale: "s" });
|
|
496
496
|
return (h(Host, null, h("div", { class: {
|
|
497
497
|
[`icon-position--${this.iconPosition}`]: true,
|
|
498
498
|
[`icon-type--${this.iconType}`]: true
|
|
499
|
-
} }, h("div", { class: { [CSS$
|
|
499
|
+
} }, h("div", { class: { [CSS$S.header]: true, [CSS_UTILITY.rtl]: dir === "rtl" } }, this.renderActionsStart(), h("div", { "aria-expanded": toAriaBoolean(this.active || this.expanded), class: CSS$S.headerContent, onClick: this.itemHeaderClickHandler, role: "button", tabindex: "0" }, this.icon ? iconEl : null, h("div", { class: CSS$S.headerText }, h("span", { class: CSS$S.heading }, this.heading || this.itemTitle), this.itemSubtitle || this.description ? (h("span", { class: CSS$S.description }, this.description || this.itemSubtitle)) : null), h("calcite-icon", { class: CSS$S.expandIcon, icon: this.iconType === "chevron"
|
|
500
500
|
? "chevronDown"
|
|
501
501
|
: this.iconType === "caret"
|
|
502
502
|
? "caretDown"
|
|
503
503
|
: this.expanded || this.active
|
|
504
504
|
? "minus"
|
|
505
|
-
: "plus", scale: "s" })), this.renderActionsEnd()), h("div", { class: CSS$
|
|
505
|
+
: "plus", scale: "s" })), this.renderActionsEnd()), h("div", { class: CSS$S.content }, h("slot", null)))));
|
|
506
506
|
}
|
|
507
507
|
//--------------------------------------------------------------------------
|
|
508
508
|
//
|
|
@@ -575,7 +575,7 @@ const AccordionItem = class extends HTMLElement$1 {
|
|
|
575
575
|
static get style() { return accordionItemCss; }
|
|
576
576
|
};
|
|
577
577
|
|
|
578
|
-
const CSS$
|
|
578
|
+
const CSS$R = {
|
|
579
579
|
button: "button",
|
|
580
580
|
buttonTextVisible: "button--text-visible",
|
|
581
581
|
buttonCompact: "button--compact",
|
|
@@ -585,7 +585,7 @@ const CSS$Q = {
|
|
|
585
585
|
textContainer: "text-container",
|
|
586
586
|
textContainerVisible: "text-container--visible"
|
|
587
587
|
};
|
|
588
|
-
const TEXT$
|
|
588
|
+
const TEXT$t = {
|
|
589
589
|
loading: "Loading"
|
|
590
590
|
};
|
|
591
591
|
|
|
@@ -665,7 +665,7 @@ const Action = class extends HTMLElement$1 {
|
|
|
665
665
|
*
|
|
666
666
|
* @default "Loading"
|
|
667
667
|
*/
|
|
668
|
-
this.intlLoading = TEXT$
|
|
668
|
+
this.intlLoading = TEXT$t.loading;
|
|
669
669
|
/**
|
|
670
670
|
* When true, a busy indicator is displayed.
|
|
671
671
|
*/
|
|
@@ -724,8 +724,8 @@ const Action = class extends HTMLElement$1 {
|
|
|
724
724
|
renderTextContainer() {
|
|
725
725
|
const { text, textEnabled } = this;
|
|
726
726
|
const textContainerClasses = {
|
|
727
|
-
[CSS$
|
|
728
|
-
[CSS$
|
|
727
|
+
[CSS$R.textContainer]: true,
|
|
728
|
+
[CSS$R.textContainerVisible]: textEnabled
|
|
729
729
|
};
|
|
730
730
|
return text ? (h("div", { class: textContainerClasses, key: "text-container" }, text)) : null;
|
|
731
731
|
}
|
|
@@ -739,18 +739,18 @@ const Action = class extends HTMLElement$1 {
|
|
|
739
739
|
const iconNode = calciteLoaderNode || calciteIconNode;
|
|
740
740
|
const hasIconToDisplay = iconNode || ((_a = el.children) === null || _a === void 0 ? void 0 : _a.length);
|
|
741
741
|
const slotContainerNode = (h("div", { class: {
|
|
742
|
-
[CSS$
|
|
743
|
-
[CSS$
|
|
742
|
+
[CSS$R.slotContainer]: true,
|
|
743
|
+
[CSS$R.slotContainerHidden]: loading
|
|
744
744
|
} }, h("slot", null)));
|
|
745
|
-
return hasIconToDisplay ? (h("div", { "aria-hidden": "true", class: CSS$
|
|
745
|
+
return hasIconToDisplay ? (h("div", { "aria-hidden": "true", class: CSS$R.iconContainer, key: "icon-container" }, iconNode, slotContainerNode)) : null;
|
|
746
746
|
}
|
|
747
747
|
render() {
|
|
748
748
|
const { compact, disabled, loading, textEnabled, label, text } = this;
|
|
749
749
|
const ariaLabel = label || text;
|
|
750
750
|
const buttonClasses = {
|
|
751
|
-
[CSS$
|
|
752
|
-
[CSS$
|
|
753
|
-
[CSS$
|
|
751
|
+
[CSS$R.button]: true,
|
|
752
|
+
[CSS$R.buttonTextVisible]: textEnabled,
|
|
753
|
+
[CSS$R.buttonCompact]: compact
|
|
754
754
|
};
|
|
755
755
|
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())));
|
|
756
756
|
}
|
|
@@ -758,11 +758,11 @@ const Action = class extends HTMLElement$1 {
|
|
|
758
758
|
static get style() { return actionCss; }
|
|
759
759
|
};
|
|
760
760
|
|
|
761
|
-
const CSS$
|
|
761
|
+
const CSS$Q = {
|
|
762
762
|
menu: "menu",
|
|
763
763
|
defaultTrigger: "default-trigger"
|
|
764
764
|
};
|
|
765
|
-
const SLOTS$
|
|
765
|
+
const SLOTS$r = {
|
|
766
766
|
tooltip: "tooltip",
|
|
767
767
|
trigger: "trigger"
|
|
768
768
|
};
|
|
@@ -770,11 +770,11 @@ const ICONS$f = {
|
|
|
770
770
|
menu: "ellipsis"
|
|
771
771
|
};
|
|
772
772
|
|
|
773
|
-
const SLOTS$
|
|
773
|
+
const SLOTS$q = {
|
|
774
774
|
menuActions: "menu-actions",
|
|
775
775
|
menuTooltip: "menu-tooltip"
|
|
776
776
|
};
|
|
777
|
-
const TEXT$
|
|
777
|
+
const TEXT$s = {
|
|
778
778
|
more: "More"
|
|
779
779
|
};
|
|
780
780
|
const ICONS$e = {
|
|
@@ -800,7 +800,7 @@ const getOverflowCount = ({ layout, actionCount, actionWidth, width, actionHeigh
|
|
|
800
800
|
return Math.max(actionCount - getMaxActionCount({ width, actionWidth, layout, height, actionHeight, groupCount }), 0);
|
|
801
801
|
};
|
|
802
802
|
const queryActions = (el) => {
|
|
803
|
-
return Array.from(el.querySelectorAll("calcite-action")).filter((action) => action.closest("calcite-action-menu") ? action.slot === SLOTS$
|
|
803
|
+
return Array.from(el.querySelectorAll("calcite-action")).filter((action) => action.closest("calcite-action-menu") ? action.slot === SLOTS$r.trigger : true);
|
|
804
804
|
};
|
|
805
805
|
const overflowActions = ({ actionGroups, expanded, overflowCount }) => {
|
|
806
806
|
let needToSlotCount = overflowCount;
|
|
@@ -808,7 +808,7 @@ const overflowActions = ({ actionGroups, expanded, overflowCount }) => {
|
|
|
808
808
|
let slottedWithinGroupCount = 0;
|
|
809
809
|
const groupActions = queryActions(group).reverse();
|
|
810
810
|
groupActions.forEach((groupAction) => {
|
|
811
|
-
if (groupAction.slot === SLOTS$
|
|
811
|
+
if (groupAction.slot === SLOTS$q.menuActions) {
|
|
812
812
|
groupAction.removeAttribute("slot");
|
|
813
813
|
groupAction.textEnabled = expanded;
|
|
814
814
|
}
|
|
@@ -818,7 +818,7 @@ const overflowActions = ({ actionGroups, expanded, overflowCount }) => {
|
|
|
818
818
|
const unslottedActions = groupActions.filter((action) => !action.slot);
|
|
819
819
|
if (unslottedActions.length > 1 && groupActions.length > 2 && !groupAction.closest("calcite-action-menu")) {
|
|
820
820
|
groupAction.textEnabled = true;
|
|
821
|
-
groupAction.setAttribute("slot", SLOTS$
|
|
821
|
+
groupAction.setAttribute("slot", SLOTS$q.menuActions);
|
|
822
822
|
slottedWithinGroupCount++;
|
|
823
823
|
if (slottedWithinGroupCount > 1) {
|
|
824
824
|
needToSlotCount--;
|
|
@@ -841,7 +841,7 @@ function getCalcitePosition(position, el) {
|
|
|
841
841
|
}
|
|
842
842
|
function toggleChildActionText({ parent, expanded }) {
|
|
843
843
|
queryActions(parent)
|
|
844
|
-
.filter((el) => el.slot !== SLOTS$
|
|
844
|
+
.filter((el) => el.slot !== SLOTS$q.menuActions)
|
|
845
845
|
.forEach((action) => (action.textEnabled = expanded));
|
|
846
846
|
parent
|
|
847
847
|
.querySelectorAll("calcite-action-group, calcite-action-menu")
|
|
@@ -870,14 +870,14 @@ const ExpandToggle = ({ expanded, intlExpand, intlCollapse, toggle, el, position
|
|
|
870
870
|
return actionNode;
|
|
871
871
|
};
|
|
872
872
|
|
|
873
|
-
const CSS$
|
|
873
|
+
const CSS$P = {
|
|
874
874
|
actionGroupBottom: "action-group--bottom"
|
|
875
875
|
};
|
|
876
|
-
const SLOTS$
|
|
876
|
+
const SLOTS$p = {
|
|
877
877
|
bottomActions: "bottom-actions",
|
|
878
878
|
expandTooltip: "expand-tooltip"
|
|
879
879
|
};
|
|
880
|
-
const TEXT$
|
|
880
|
+
const TEXT$r = {
|
|
881
881
|
expand: "Expand",
|
|
882
882
|
collapse: "Collapse"
|
|
883
883
|
};
|
|
@@ -2210,7 +2210,7 @@ const ActionBar = class extends HTMLElement$1 {
|
|
|
2210
2210
|
const actions = queryActions(el);
|
|
2211
2211
|
const actionCount = expandDisabled ? actions.length : actions.length + 1;
|
|
2212
2212
|
const actionGroups = Array.from(el.querySelectorAll("calcite-action-group"));
|
|
2213
|
-
const groupCount = getSlotted(el, SLOTS$
|
|
2213
|
+
const groupCount = getSlotted(el, SLOTS$p.bottomActions) || !expandDisabled
|
|
2214
2214
|
? actionGroups.length + 1
|
|
2215
2215
|
: actionGroups.length;
|
|
2216
2216
|
const { actionHeight, actionWidth } = geActionDimensions(actions);
|
|
@@ -2312,11 +2312,11 @@ const ActionBar = class extends HTMLElement$1 {
|
|
|
2312
2312
|
// --------------------------------------------------------------------------
|
|
2313
2313
|
renderBottomActionGroup() {
|
|
2314
2314
|
const { expanded, expandDisabled, intlExpand, intlCollapse, el, position, toggleExpand, scale, layout } = this;
|
|
2315
|
-
const tooltip = getSlotted(el, SLOTS$
|
|
2316
|
-
const expandLabel = intlExpand || TEXT$
|
|
2317
|
-
const collapseLabel = intlCollapse || TEXT$
|
|
2315
|
+
const tooltip = getSlotted(el, SLOTS$p.expandTooltip);
|
|
2316
|
+
const expandLabel = intlExpand || TEXT$r.expand;
|
|
2317
|
+
const collapseLabel = intlCollapse || TEXT$r.collapse;
|
|
2318
2318
|
const expandToggleNode = !expandDisabled ? (h(ExpandToggle, { el: el, expanded: expanded, intlCollapse: collapseLabel, intlExpand: expandLabel, position: position, ref: this.setExpandToggleRef, scale: scale, toggle: toggleExpand, tooltip: tooltip })) : null;
|
|
2319
|
-
return getSlotted(el, SLOTS$
|
|
2319
|
+
return getSlotted(el, SLOTS$p.bottomActions) || expandToggleNode ? (h("calcite-action-group", { class: CSS$P.actionGroupBottom, layout: layout, scale: scale }, h("slot", { name: SLOTS$p.bottomActions }), h("slot", { name: SLOTS$p.expandTooltip }), expandToggleNode)) : null;
|
|
2320
2320
|
}
|
|
2321
2321
|
render() {
|
|
2322
2322
|
return (h(Host, { onCalciteActionMenuOpenChange: this.actionMenuOpenChangeHandler }, h("slot", null), this.renderBottomActionGroup()));
|
|
@@ -2384,13 +2384,13 @@ const ActionGroup = class extends HTMLElement$1 {
|
|
|
2384
2384
|
// --------------------------------------------------------------------------
|
|
2385
2385
|
renderTooltip() {
|
|
2386
2386
|
const { el } = this;
|
|
2387
|
-
const hasTooltip = getSlotted(el, SLOTS$
|
|
2388
|
-
return hasTooltip ? h("slot", { name: SLOTS$
|
|
2387
|
+
const hasTooltip = getSlotted(el, SLOTS$q.menuTooltip);
|
|
2388
|
+
return hasTooltip ? h("slot", { name: SLOTS$q.menuTooltip, slot: SLOTS$r.tooltip }) : null;
|
|
2389
2389
|
}
|
|
2390
2390
|
renderMenu() {
|
|
2391
2391
|
const { el, expanded, intlMore, menuOpen, scale, layout } = this;
|
|
2392
|
-
const hasMenuItems = getSlotted(el, SLOTS$
|
|
2393
|
-
return hasMenuItems ? (h("calcite-action-menu", { expanded: expanded, flipPlacements: ["left", "right"], label: intlMore || TEXT$
|
|
2392
|
+
const hasMenuItems = getSlotted(el, SLOTS$q.menuActions);
|
|
2393
|
+
return hasMenuItems ? (h("calcite-action-menu", { expanded: expanded, flipPlacements: ["left", "right"], label: intlMore || TEXT$s.more, onCalciteActionMenuOpenChange: this.setMenuOpen, open: menuOpen, placement: layout === "horizontal" ? "bottom-leading" : "leading-start", scale: scale }, h("calcite-action", { icon: ICONS$e.menu, scale: scale, slot: SLOTS$r.trigger, text: intlMore || TEXT$s.more, textEnabled: expanded }), h("slot", { name: SLOTS$q.menuActions }), this.renderTooltip())) : null;
|
|
2394
2394
|
}
|
|
2395
2395
|
render() {
|
|
2396
2396
|
return (h(Fragment, null, h("slot", null), this.renderMenu()));
|
|
@@ -2450,7 +2450,7 @@ const ActionMenu = class extends HTMLElement$1 {
|
|
|
2450
2450
|
// --------------------------------------------------------------------------
|
|
2451
2451
|
this.connectMenuButtonEl = () => {
|
|
2452
2452
|
const { el, menuButtonId, menuId, open, label } = this;
|
|
2453
|
-
const menuButtonEl = getSlotted(el, SLOTS$
|
|
2453
|
+
const menuButtonEl = getSlotted(el, SLOTS$r.trigger) || this.defaultMenuButtonEl;
|
|
2454
2454
|
if (this.menuButtonEl === menuButtonEl) {
|
|
2455
2455
|
return;
|
|
2456
2456
|
}
|
|
@@ -2473,7 +2473,7 @@ const ActionMenu = class extends HTMLElement$1 {
|
|
|
2473
2473
|
if (!menuButtonEl.text) {
|
|
2474
2474
|
menuButtonEl.text = label;
|
|
2475
2475
|
}
|
|
2476
|
-
menuButtonEl.addEventListener("
|
|
2476
|
+
menuButtonEl.addEventListener("pointerdown", this.menuButtonClick);
|
|
2477
2477
|
menuButtonEl.addEventListener("keydown", this.menuButtonKeyDown);
|
|
2478
2478
|
};
|
|
2479
2479
|
this.disconnectMenuButtonEl = () => {
|
|
@@ -2481,7 +2481,7 @@ const ActionMenu = class extends HTMLElement$1 {
|
|
|
2481
2481
|
if (!menuButtonEl) {
|
|
2482
2482
|
return;
|
|
2483
2483
|
}
|
|
2484
|
-
menuButtonEl.removeEventListener("
|
|
2484
|
+
menuButtonEl.removeEventListener("pointerdown", this.menuButtonClick);
|
|
2485
2485
|
menuButtonEl.removeEventListener("keydown", this.menuButtonKeyDown);
|
|
2486
2486
|
};
|
|
2487
2487
|
this.setDefaultMenuButtonEl = (el) => {
|
|
@@ -2647,17 +2647,17 @@ const ActionMenu = class extends HTMLElement$1 {
|
|
|
2647
2647
|
}
|
|
2648
2648
|
renderMenuButton() {
|
|
2649
2649
|
const { label, scale, expanded } = this;
|
|
2650
|
-
const menuButtonSlot = (h("slot", { name: SLOTS$
|
|
2650
|
+
const menuButtonSlot = (h("slot", { name: SLOTS$r.trigger }, h("calcite-action", { class: CSS$Q.defaultTrigger, icon: ICONS$f.menu, ref: this.setDefaultMenuButtonEl, scale: scale, text: label, textEnabled: expanded })));
|
|
2651
2651
|
return menuButtonSlot;
|
|
2652
2652
|
}
|
|
2653
2653
|
renderMenuItems() {
|
|
2654
2654
|
const { actionElements, activeMenuItemIndex, open, menuId, menuButtonEl, label, placement, overlayPositioning, flipPlacements } = this;
|
|
2655
2655
|
const activeAction = actionElements[activeMenuItemIndex];
|
|
2656
2656
|
const activeDescendantId = (activeAction === null || activeAction === void 0 ? void 0 : activeAction.id) || null;
|
|
2657
|
-
return (h("calcite-popover", { disablePointer: true, flipPlacements: flipPlacements, label: label, offsetDistance: 0, open: open, overlayPositioning: overlayPositioning, placement: placement, referenceElement: menuButtonEl }, h("div", { "aria-activedescendant": activeDescendantId, "aria-labelledby": menuButtonEl === null || menuButtonEl === void 0 ? void 0 : menuButtonEl.id, class: CSS$
|
|
2657
|
+
return (h("calcite-popover", { disablePointer: true, flipPlacements: flipPlacements, label: label, offsetDistance: 0, open: open, overlayPositioning: overlayPositioning, placement: placement, referenceElement: menuButtonEl }, h("div", { "aria-activedescendant": activeDescendantId, "aria-labelledby": menuButtonEl === null || menuButtonEl === void 0 ? void 0 : menuButtonEl.id, class: CSS$Q.menu, id: menuId, onClick: this.handleCalciteActionClick, onKeyDown: this.menuActionsContainerKeyDown, ref: (el) => (this.menuEl = el), role: "menu", tabIndex: -1 }, h("slot", null))));
|
|
2658
2658
|
}
|
|
2659
2659
|
render() {
|
|
2660
|
-
return (h(Fragment, null, this.renderMenuButton(), this.renderMenuItems(), h("slot", { name: SLOTS$
|
|
2660
|
+
return (h(Fragment, null, this.renderMenuButton(), this.renderMenuItems(), h("slot", { name: SLOTS$r.tooltip, onSlotchange: this.updateTooltip })));
|
|
2661
2661
|
}
|
|
2662
2662
|
isValidKey(key, supportedKeys) {
|
|
2663
2663
|
return !!supportedKeys.find((k) => k === key);
|
|
@@ -2671,15 +2671,15 @@ const ActionMenu = class extends HTMLElement$1 {
|
|
|
2671
2671
|
static get style() { return actionMenuCss; }
|
|
2672
2672
|
};
|
|
2673
2673
|
|
|
2674
|
-
const CSS$
|
|
2674
|
+
const CSS$O = {
|
|
2675
2675
|
actionGroupBottom: "action-group--bottom",
|
|
2676
2676
|
container: "container"
|
|
2677
2677
|
};
|
|
2678
|
-
const TEXT$
|
|
2678
|
+
const TEXT$q = {
|
|
2679
2679
|
expand: "Expand",
|
|
2680
2680
|
collapse: "Collapse"
|
|
2681
2681
|
};
|
|
2682
|
-
const SLOTS$
|
|
2682
|
+
const SLOTS$o = {
|
|
2683
2683
|
expandTooltip: "expand-tooltip"
|
|
2684
2684
|
};
|
|
2685
2685
|
|
|
@@ -2774,14 +2774,14 @@ const ActionPad = class extends HTMLElement$1 {
|
|
|
2774
2774
|
// --------------------------------------------------------------------------
|
|
2775
2775
|
renderBottomActionGroup() {
|
|
2776
2776
|
const { expanded, expandDisabled, intlExpand, intlCollapse, el, position, toggleExpand, scale, layout } = this;
|
|
2777
|
-
const tooltip = getSlotted(el, SLOTS$
|
|
2778
|
-
const expandLabel = intlExpand || TEXT$
|
|
2779
|
-
const collapseLabel = intlCollapse || TEXT$
|
|
2777
|
+
const tooltip = getSlotted(el, SLOTS$o.expandTooltip);
|
|
2778
|
+
const expandLabel = intlExpand || TEXT$q.expand;
|
|
2779
|
+
const collapseLabel = intlCollapse || TEXT$q.collapse;
|
|
2780
2780
|
const expandToggleNode = !expandDisabled ? (h(ExpandToggle, { el: el, expanded: expanded, intlCollapse: collapseLabel, intlExpand: expandLabel, position: position, ref: this.setExpandToggleRef, scale: scale, toggle: toggleExpand, tooltip: tooltip })) : null;
|
|
2781
|
-
return expandToggleNode ? (h("calcite-action-group", { class: CSS$
|
|
2781
|
+
return expandToggleNode ? (h("calcite-action-group", { class: CSS$O.actionGroupBottom, layout: layout, scale: scale }, h("slot", { name: SLOTS$o.expandTooltip }), expandToggleNode)) : null;
|
|
2782
2782
|
}
|
|
2783
2783
|
render() {
|
|
2784
|
-
return (h(Host, { onCalciteActionMenuOpenChange: this.actionMenuOpenChangeHandler }, h("div", { class: CSS$
|
|
2784
|
+
return (h(Host, { onCalciteActionMenuOpenChange: this.actionMenuOpenChangeHandler }, h("div", { class: CSS$O.container }, h("slot", null), this.renderBottomActionGroup())));
|
|
2785
2785
|
}
|
|
2786
2786
|
get el() { return this; }
|
|
2787
2787
|
static get watchers() { return {
|
|
@@ -2790,7 +2790,7 @@ const ActionPad = class extends HTMLElement$1 {
|
|
|
2790
2790
|
static get style() { return actionPadCss; }
|
|
2791
2791
|
};
|
|
2792
2792
|
|
|
2793
|
-
const TEXT$
|
|
2793
|
+
const TEXT$p = {
|
|
2794
2794
|
intlClose: "Close"
|
|
2795
2795
|
};
|
|
2796
2796
|
const DURATIONS = {
|
|
@@ -2798,7 +2798,7 @@ const DURATIONS = {
|
|
|
2798
2798
|
medium: 10000,
|
|
2799
2799
|
fast: 6000
|
|
2800
2800
|
};
|
|
2801
|
-
const SLOTS$
|
|
2801
|
+
const SLOTS$n = {
|
|
2802
2802
|
title: "title",
|
|
2803
2803
|
message: "message",
|
|
2804
2804
|
link: "link"
|
|
@@ -2812,7 +2812,7 @@ var StatusIcons;
|
|
|
2812
2812
|
StatusIcons["blue"] = "lightbulb";
|
|
2813
2813
|
})(StatusIcons || (StatusIcons = {}));
|
|
2814
2814
|
|
|
2815
|
-
const alertCss = "@-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-floating-ui-transition:var(--calcite-animation-timing)}:host([hidden]){display:none}:host([scale=s]){--calcite-alert-width:40em;--calcite-alert-spacing-token-small:0.5rem;--calcite-alert-spacing-token-large:0.75rem}:host([scale=s]) slot[name=title]::slotted(*),:host([scale=s]) *::slotted([slot=title]){font-size:var(--calcite-font-size--1);line-height:1.375}:host([scale=s]) slot[name=message]::slotted(*),:host([scale=s]) *::slotted([slot=message]){font-size:var(--calcite-font-size--2);line-height:1.375}:host([scale=s]) slot[name=link]::slotted(*),:host([scale=s]) *::slotted([slot=link]){font-size:var(--calcite-font-size--2);line-height:1.375}:host([scale=s]) .alert-queue-count{margin-inline:0.5rem}:host([scale=s]) .container{--calcite-alert-min-height:3.5rem}:host([scale=s]) .alert-close{padding:0.5rem}:host([scale=m]){--calcite-alert-width:50em;--calcite-alert-spacing-token-small:0.75rem;--calcite-alert-spacing-token-large:1rem}:host([scale=m]) slot[name=title]::slotted(*),:host([scale=m]) *::slotted([slot=title]){font-size:var(--calcite-font-size-0);line-height:1.375}:host([scale=m]) slot[name=message]::slotted(*),:host([scale=m]) *::slotted([slot=message]){font-size:var(--calcite-font-size--1);line-height:1.375}:host([scale=m]) slot[name=link]::slotted(*),:host([scale=m]) *::slotted([slot=link]){font-size:var(--calcite-font-size--1);line-height:1.375}:host([scale=m]) .alert-queue-count{margin-inline:0.75rem}:host([scale=m]) .container{--calcite-alert-min-height:4.1875rem}:host([scale=l]){--calcite-alert-width:60em;--calcite-alert-spacing-token-small:1rem;--calcite-alert-spacing-token-large:1.25rem}:host([scale=l]) slot[name=title]::slotted(*),:host([scale=l]) *::slotted([slot=title]){-webkit-margin-after:0.25rem;margin-block-end:0.25rem;font-size:var(--calcite-font-size-1);line-height:1.375}:host([scale=l]) slot[name=message]::slotted(*),:host([scale=l]) *::slotted([slot=message]){font-size:var(--calcite-font-size-0);line-height:1.375}:host([scale=l]) slot[name=link]::slotted(*),:host([scale=l]) *::slotted([slot=link]){font-size:var(--calcite-font-size-0);line-height:1.375}:host([scale=l]) .alert-queue-count{margin-inline:1rem}:host([scale=l]) .container{--calcite-alert-min-height:5.625rem}:host{--calcite-alert-edge-distance:2rem;display:block}:host .container{pointer-events:none;position:fixed;margin-block:0px;margin-inline:auto;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;background-color:var(--calcite-ui-foreground-1);opacity:0;--tw-shadow:0 6px 20px -4px rgba(0, 0, 0, 0.1), 0 4px 12px -2px rgba(0, 0, 0, 0.08);--tw-shadow-colored:0 6px 20px -4px var(--tw-shadow-color), 0 4px 12px -2px var(--tw-shadow-color);-webkit-box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);border-radius:var(--calcite-border-radius);-webkit-border-before:0px solid transparent;border-block-start:0px solid transparent;border-inline:1px solid var(--calcite-ui-border-3);-webkit-border-after:1px solid var(--calcite-ui-border-3);border-block-end:1px solid var(--calcite-ui-border-3);min-block-size:var(--calcite-alert-min-height);inline-size:var(--calcite-alert-width);max-inline-size:calc(100% - (var(--calcite-alert-edge-distance) * 2 + 2px));max-block-size:0;z-index:101;-webkit-transition:var(--calcite-internal-animation-timing-slow) cubic-bezier(0.215, 0.44, 0.42, 0.88), opacity var(--calcite-internal-animation-timing-slow) cubic-bezier(0.215, 0.44, 0.42, 0.88), all var(--calcite-animation-timing) ease-in-out;transition:var(--calcite-internal-animation-timing-slow) cubic-bezier(0.215, 0.44, 0.42, 0.88), opacity var(--calcite-internal-animation-timing-slow) cubic-bezier(0.215, 0.44, 0.42, 0.88), all var(--calcite-animation-timing) ease-in-out}:host .container.bottom,:host .container.top{inset-inline-end:0;inset-inline-start:0}:host .container[class*=bottom]{-webkit-transform:translate3d(0, var(--calcite-alert-edge-distance), 0);transform:translate3d(0, var(--calcite-alert-edge-distance), 0);inset-block-end:var(--calcite-alert-edge-distance)}:host .container[class*=top]{-webkit-transform:translate3d(0, calc(-1 * var(--calcite-alert-edge-distance)), 0);transform:translate3d(0, calc(-1 * var(--calcite-alert-edge-distance)), 0);inset-block-start:var(--calcite-alert-edge-distance)}:host .container[class*=-start]{inset-inline-start:var(--calcite-alert-edge-distance);inset-inline-end:auto}:host .container[class*=-end]{inset-inline-end:var(--calcite-alert-edge-distance);inset-inline-start:auto}:host([calcite-hydrated-hidden]){visibility:hidden !important;pointer-events:none}.container{display:-ms-flexbox;display:flex;inline-size:100%;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center}.alert-close{outline-color:transparent}.alert-close:focus{outline:2px solid var(--calcite-ui-brand);outline-offset:-2px}:host([active]) .container:not(.queued){max-block-size:100%;border-block-start-width:2px;opacity:1;pointer-events:initial}:host([active]) .container:not(.queued)[class*=bottom]{-webkit-transform:translate3d(0, calc(-1 * var(--calcite-alert-edge-distance)), inherit);transform:translate3d(0, calc(-1 * var(--calcite-alert-edge-distance)), inherit)}:host([active]) .container:not(.queued)[class*=top]{-webkit-transform:translate3d(0, var(--calcite-alert-edge-distance), inherit);transform:translate3d(0, var(--calcite-alert-edge-distance), inherit)}slot[name=title]::slotted(*),*::slotted([slot=title]){font-size:var(--calcite-font-size-0);line-height:1.375;font-weight:var(--calcite-font-weight-medium);color:var(--calcite-ui-text-1)}slot[name=message]::slotted(*),*::slotted([slot=message]){margin:0px;display:inline;font-size:var(--calcite-font-size--1);line-height:1.375;font-weight:var(--calcite-font-weight-normal);color:var(--calcite-ui-text-2);-webkit-margin-end:0.5rem;margin-inline-end:0.5rem}slot[name=link]::slotted(*),*::slotted([slot=link]){display:-ms-inline-flexbox;display:inline-flex;color:var(--calcite-ui-text-link)}.alert-content{-webkit-transition:all var(--calcite-animation-timing) ease-in-out 0s, outline 0s, outline-offset 0s;transition:all var(--calcite-animation-timing) ease-in-out 0s, outline 0s, outline-offset 0s;padding-inline:var(--calcite-alert-spacing-token-large);-ms-flex:0 0 auto;flex:0 0 auto;overflow-wrap:break-word;background-color:var(--calcite-ui-foreground-1);-ms-flex:1 1 auto;flex:1 1 auto;min-inline-size:0;padding-block:var(--calcite-alert-spacing-token-small);padding-inline:0 var(--calcite-alert-spacing-token-small);border-end-start-radius:var(--calcite-border-radius);border-end-end-radius:var(--calcite-border-radius)}.alert-content:first-of-type:not(:only-child){-webkit-padding-start:var(--calcite-alert-spacing-token-large);padding-inline-start:var(--calcite-alert-spacing-token-large)}.alert-content:only-child{padding:var(--calcite-alert-spacing-token-small)}.alert-icon{-webkit-transition:all var(--calcite-animation-timing) ease-in-out 0s, outline 0s, outline-offset 0s;transition:all var(--calcite-animation-timing) ease-in-out 0s, outline 0s, outline-offset 0s;padding-block:var(--calcite-alert-spacing-token-small);padding-inline:var(--calcite-alert-spacing-token-large);-ms-flex:0 0 auto;flex:0 0 auto;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-item-align:stretch;align-self:stretch;background-color:var(--calcite-ui-foreground-1);padding-block:0px}.alert-close{-webkit-transition:all var(--calcite-animation-timing) ease-in-out 0s, outline 0s, outline-offset 0s;transition:all var(--calcite-animation-timing) ease-in-out 0s, outline 0s, outline-offset 0s;padding-block:var(--calcite-alert-spacing-token-small);padding-inline:var(--calcite-alert-spacing-token-large);-ms-flex:0 0 auto;flex:0 0 auto;cursor:pointer;-ms-flex-item-align:stretch;align-self:stretch;overflow:hidden;border-style:none;background-color:var(--calcite-ui-foreground-1);padding-block:0px;color:var(--calcite-ui-text-3);outline:2px solid transparent;outline-offset:2px;border-end-end-radius:var(--calcite-border-radius)}.alert-close:hover,.alert-close:focus{background-color:var(--calcite-ui-foreground-2);color:var(--calcite-ui-text-1)}.alert-close:active{background-color:var(--calcite-ui-foreground-3)}.alert-queue-count{visibility:hidden;display:-ms-flexbox;display:flex;cursor:default;-ms-flex-align:center;align-items:center;-ms-flex-pack:distribute;justify-content:space-around;-ms-flex-item-align:stretch;align-self:stretch;overflow:hidden;background-color:var(--calcite-ui-foreground-1);text-align:center;font-weight:var(--calcite-font-weight-medium);color:var(--calcite-ui-text-2);opacity:0;-webkit-transition:all var(--calcite-animation-timing) ease-in-out 0s, outline 0s, outline-offset 0s;transition:all var(--calcite-animation-timing) ease-in-out 0s, outline 0s, outline-offset 0s;border-inline:0px solid transparent;border-start-end-radius:0}.alert-queue-count.active{visibility:visible;opacity:1}:host([auto-dismiss])>.alert-queue-count{-webkit-border-end:0px solid transparent;border-inline-end:0px solid transparent}.alert-dismiss-progress{position:absolute;inset-inline:0px;display:block;inline-size:100%;overflow:hidden;inset-block-start:-2px;block-size:2px;z-index:103;border-radius:var(--calcite-border-radius) var(--calcite-border-radius) 0 0}.alert-dismiss-progress:after{position:absolute;inset-block-start:0px;display:block;block-size:2px;content:\"\";background-color:var(--calcite-alert-dismiss-progress-background);z-index:104;inset-inline-end:0}:host([color=blue]) .container{border-block-start-color:var(--calcite-ui-info)}:host([color=blue]) .container .alert-icon{color:var(--calcite-ui-info)}:host([color=red]) .container{border-block-start-color:var(--calcite-ui-danger)}:host([color=red]) .container .alert-icon{color:var(--calcite-ui-danger)}:host([color=yellow]) .container{border-block-start-color:var(--calcite-ui-warning)}:host([color=yellow]) .container .alert-icon{color:var(--calcite-ui-warning)}:host([color=green]) .container{border-block-start-color:var(--calcite-ui-success)}:host([color=green]) .container .alert-icon{color:var(--calcite-ui-success)}:host([auto-dismiss-duration=fast]) .alert-dismiss-progress:after{-webkit-animation:dismissProgress 6000ms ease-out;animation:dismissProgress 6000ms ease-out}:host([auto-dismiss-duration=medium]) .alert-dismiss-progress:after{-webkit-animation:dismissProgress 10000ms ease-out;animation:dismissProgress 10000ms ease-out}:host([auto-dismiss-duration=slow]) .alert-dismiss-progress:after{-webkit-animation:dismissProgress 14000ms ease-out;animation:dismissProgress 14000ms ease-out}@-webkit-keyframes dismissProgress{0%{inline-size:0px;opacity:0.75}100%{inline-size:100%;opacity:1}}@keyframes dismissProgress{0%{inline-size:0px;opacity:0.75}100%{inline-size:100%;opacity:1}}";
|
|
2815
|
+
const alertCss = "@-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-floating-ui-transition:var(--calcite-animation-timing)}:host([hidden]){display:none}:host([scale=s]){--calcite-alert-width:40em;--calcite-alert-spacing-token-small:0.5rem;--calcite-alert-spacing-token-large:0.75rem}:host([scale=s]) slot[name=title]::slotted(*),:host([scale=s]) *::slotted([slot=title]){font-size:var(--calcite-font-size--1);line-height:1.375}:host([scale=s]) slot[name=message]::slotted(*),:host([scale=s]) *::slotted([slot=message]){font-size:var(--calcite-font-size--2);line-height:1.375}:host([scale=s]) slot[name=link]::slotted(*),:host([scale=s]) *::slotted([slot=link]){font-size:var(--calcite-font-size--2);line-height:1.375}:host([scale=s]) .alert-queue-count{margin-inline:0.5rem}:host([scale=s]) .container{--calcite-alert-min-height:3.5rem}:host([scale=s]) .alert-close{padding:0.5rem}:host([scale=m]){--calcite-alert-width:50em;--calcite-alert-spacing-token-small:0.75rem;--calcite-alert-spacing-token-large:1rem}:host([scale=m]) slot[name=title]::slotted(*),:host([scale=m]) *::slotted([slot=title]){font-size:var(--calcite-font-size-0);line-height:1.375}:host([scale=m]) slot[name=message]::slotted(*),:host([scale=m]) *::slotted([slot=message]){font-size:var(--calcite-font-size--1);line-height:1.375}:host([scale=m]) slot[name=link]::slotted(*),:host([scale=m]) *::slotted([slot=link]){font-size:var(--calcite-font-size--1);line-height:1.375}:host([scale=m]) .alert-queue-count{margin-inline:0.75rem}:host([scale=m]) .container{--calcite-alert-min-height:4.1875rem}:host([scale=l]){--calcite-alert-width:60em;--calcite-alert-spacing-token-small:1rem;--calcite-alert-spacing-token-large:1.25rem}:host([scale=l]) slot[name=title]::slotted(*),:host([scale=l]) *::slotted([slot=title]){-webkit-margin-after:0.25rem;margin-block-end:0.25rem;font-size:var(--calcite-font-size-1);line-height:1.375}:host([scale=l]) slot[name=message]::slotted(*),:host([scale=l]) *::slotted([slot=message]){font-size:var(--calcite-font-size-0);line-height:1.375}:host([scale=l]) slot[name=link]::slotted(*),:host([scale=l]) *::slotted([slot=link]){font-size:var(--calcite-font-size-0);line-height:1.375}:host([scale=l]) .alert-queue-count{margin-inline:1rem}:host([scale=l]) .container{--calcite-alert-min-height:5.625rem}:host{--calcite-alert-edge-distance:2rem;display:block}:host .container{pointer-events:none;position:fixed;margin-block:0px;margin-inline:auto;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;background-color:var(--calcite-ui-foreground-1);opacity:0;--tw-shadow:0 6px 20px -4px rgba(0, 0, 0, 0.1), 0 4px 12px -2px rgba(0, 0, 0, 0.08);--tw-shadow-colored:0 6px 20px -4px var(--tw-shadow-color), 0 4px 12px -2px var(--tw-shadow-color);-webkit-box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);border-radius:var(--calcite-border-radius);-webkit-border-before:0px solid transparent;border-block-start:0px solid transparent;border-inline:1px solid var(--calcite-ui-border-3);-webkit-border-after:1px solid var(--calcite-ui-border-3);border-block-end:1px solid var(--calcite-ui-border-3);min-block-size:var(--calcite-alert-min-height);inline-size:var(--calcite-alert-width);max-inline-size:calc(100% - (var(--calcite-alert-edge-distance) * 2 + 2px));max-block-size:0;z-index:101;-webkit-transition:var(--calcite-internal-animation-timing-slow) cubic-bezier(0.215, 0.44, 0.42, 0.88), opacity var(--calcite-internal-animation-timing-slow) cubic-bezier(0.215, 0.44, 0.42, 0.88), all var(--calcite-animation-timing) ease-in-out;transition:var(--calcite-internal-animation-timing-slow) cubic-bezier(0.215, 0.44, 0.42, 0.88), opacity var(--calcite-internal-animation-timing-slow) cubic-bezier(0.215, 0.44, 0.42, 0.88), all var(--calcite-animation-timing) ease-in-out}:host .container.bottom,:host .container.top{inset-inline-end:0;inset-inline-start:0}:host .container[class*=bottom]{-webkit-transform:translate3d(0, var(--calcite-alert-edge-distance), 0);transform:translate3d(0, var(--calcite-alert-edge-distance), 0);inset-block-end:var(--calcite-alert-edge-distance)}:host .container[class*=top]{-webkit-transform:translate3d(0, calc(-1 * var(--calcite-alert-edge-distance)), 0);transform:translate3d(0, calc(-1 * var(--calcite-alert-edge-distance)), 0);inset-block-start:var(--calcite-alert-edge-distance)}:host .container[class*=-start]{inset-inline-start:var(--calcite-alert-edge-distance);inset-inline-end:auto}:host .container[class*=-end]{inset-inline-end:var(--calcite-alert-edge-distance);inset-inline-start:auto}:host([calcite-hydrated-hidden]){visibility:hidden !important;pointer-events:none}.container{display:-ms-flexbox;display:flex;inline-size:100%;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center}.alert-close{outline-color:transparent}.alert-close:focus{outline:2px solid var(--calcite-ui-brand);outline-offset:-2px}:host([open]) .container:not(.queued){max-block-size:100%;border-block-start-width:2px;opacity:1;pointer-events:initial}:host([open]) .container:not(.queued)[class*=bottom]{-webkit-transform:translate3d(0, calc(-1 * var(--calcite-alert-edge-distance)), inherit);transform:translate3d(0, calc(-1 * var(--calcite-alert-edge-distance)), inherit)}:host([open]) .container:not(.queued)[class*=top]{-webkit-transform:translate3d(0, var(--calcite-alert-edge-distance), inherit);transform:translate3d(0, var(--calcite-alert-edge-distance), inherit)}slot[name=title]::slotted(*),*::slotted([slot=title]){font-size:var(--calcite-font-size-0);line-height:1.375;font-weight:var(--calcite-font-weight-medium);color:var(--calcite-ui-text-1)}slot[name=message]::slotted(*),*::slotted([slot=message]){margin:0px;display:inline;font-size:var(--calcite-font-size--1);line-height:1.375;font-weight:var(--calcite-font-weight-normal);color:var(--calcite-ui-text-2);-webkit-margin-end:0.5rem;margin-inline-end:0.5rem}slot[name=link]::slotted(*),*::slotted([slot=link]){display:-ms-inline-flexbox;display:inline-flex;color:var(--calcite-ui-text-link)}.alert-content{-webkit-transition:all var(--calcite-animation-timing) ease-in-out 0s, outline 0s, outline-offset 0s;transition:all var(--calcite-animation-timing) ease-in-out 0s, outline 0s, outline-offset 0s;padding-inline:var(--calcite-alert-spacing-token-large);-ms-flex:0 0 auto;flex:0 0 auto;overflow-wrap:break-word;background-color:var(--calcite-ui-foreground-1);-ms-flex:1 1 auto;flex:1 1 auto;min-inline-size:0;padding-block:var(--calcite-alert-spacing-token-small);padding-inline:0 var(--calcite-alert-spacing-token-small);border-end-start-radius:var(--calcite-border-radius);border-end-end-radius:var(--calcite-border-radius)}.alert-content:first-of-type:not(:only-child){-webkit-padding-start:var(--calcite-alert-spacing-token-large);padding-inline-start:var(--calcite-alert-spacing-token-large)}.alert-content:only-child{padding:var(--calcite-alert-spacing-token-small)}.alert-icon{-webkit-transition:all var(--calcite-animation-timing) ease-in-out 0s, outline 0s, outline-offset 0s;transition:all var(--calcite-animation-timing) ease-in-out 0s, outline 0s, outline-offset 0s;padding-block:var(--calcite-alert-spacing-token-small);padding-inline:var(--calcite-alert-spacing-token-large);-ms-flex:0 0 auto;flex:0 0 auto;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-item-align:stretch;align-self:stretch;background-color:var(--calcite-ui-foreground-1);padding-block:0px}.alert-close{-webkit-transition:all var(--calcite-animation-timing) ease-in-out 0s, outline 0s, outline-offset 0s;transition:all var(--calcite-animation-timing) ease-in-out 0s, outline 0s, outline-offset 0s;padding-block:var(--calcite-alert-spacing-token-small);padding-inline:var(--calcite-alert-spacing-token-large);-ms-flex:0 0 auto;flex:0 0 auto;cursor:pointer;-ms-flex-item-align:stretch;align-self:stretch;overflow:hidden;border-style:none;background-color:var(--calcite-ui-foreground-1);padding-block:0px;color:var(--calcite-ui-text-3);outline:2px solid transparent;outline-offset:2px;border-end-end-radius:var(--calcite-border-radius)}.alert-close:hover,.alert-close:focus{background-color:var(--calcite-ui-foreground-2);color:var(--calcite-ui-text-1)}.alert-close:open{background-color:var(--calcite-ui-foreground-3)}.alert-queue-count{visibility:hidden;display:-ms-flexbox;display:flex;cursor:default;-ms-flex-align:center;align-items:center;-ms-flex-pack:distribute;justify-content:space-around;-ms-flex-item-align:stretch;align-self:stretch;overflow:hidden;background-color:var(--calcite-ui-foreground-1);text-align:center;font-weight:var(--calcite-font-weight-medium);color:var(--calcite-ui-text-2);opacity:0;-webkit-transition:all var(--calcite-animation-timing) ease-in-out 0s, outline 0s, outline-offset 0s;transition:all var(--calcite-animation-timing) ease-in-out 0s, outline 0s, outline-offset 0s;border-inline:0px solid transparent;border-start-end-radius:0}.alert-queue-count.active{visibility:visible;opacity:1}:host([auto-dismiss])>.alert-queue-count{-webkit-border-end:0px solid transparent;border-inline-end:0px solid transparent}.alert-dismiss-progress{position:absolute;inset-inline:0px;display:block;inline-size:100%;overflow:hidden;inset-block-start:-2px;block-size:2px;z-index:103;border-radius:var(--calcite-border-radius) var(--calcite-border-radius) 0 0}.alert-dismiss-progress:after{position:absolute;inset-block-start:0px;display:block;block-size:2px;content:\"\";background-color:var(--calcite-alert-dismiss-progress-background);z-index:104;inset-inline-end:0}:host([color=blue]) .container{border-block-start-color:var(--calcite-ui-info)}:host([color=blue]) .container .alert-icon{color:var(--calcite-ui-info)}:host([color=red]) .container{border-block-start-color:var(--calcite-ui-danger)}:host([color=red]) .container .alert-icon{color:var(--calcite-ui-danger)}:host([color=yellow]) .container{border-block-start-color:var(--calcite-ui-warning)}:host([color=yellow]) .container .alert-icon{color:var(--calcite-ui-warning)}:host([color=green]) .container{border-block-start-color:var(--calcite-ui-success)}:host([color=green]) .container .alert-icon{color:var(--calcite-ui-success)}:host([auto-dismiss-duration=fast]) .alert-dismiss-progress:after{-webkit-animation:dismissProgress 6000ms ease-out;animation:dismissProgress 6000ms ease-out}:host([auto-dismiss-duration=medium]) .alert-dismiss-progress:after{-webkit-animation:dismissProgress 10000ms ease-out;animation:dismissProgress 10000ms ease-out}:host([auto-dismiss-duration=slow]) .alert-dismiss-progress:after{-webkit-animation:dismissProgress 14000ms ease-out;animation:dismissProgress 14000ms ease-out}@-webkit-keyframes dismissProgress{0%{inline-size:0px;opacity:0.75}100%{inline-size:100%;opacity:1}}@keyframes dismissProgress{0%{inline-size:0px;opacity:0.75}100%{inline-size:100%;opacity:1}}";
|
|
2816
2816
|
|
|
2817
2817
|
const Alert = class extends HTMLElement$1 {
|
|
2818
2818
|
constructor() {
|
|
@@ -2830,8 +2830,14 @@ const Alert = class extends HTMLElement$1 {
|
|
|
2830
2830
|
// Properties
|
|
2831
2831
|
//
|
|
2832
2832
|
//---------------------------------------------------------------------------
|
|
2833
|
-
/**
|
|
2833
|
+
/**
|
|
2834
|
+
* When true, opens the combobox
|
|
2835
|
+
*
|
|
2836
|
+
* @deprecated use open instead
|
|
2837
|
+
*/
|
|
2834
2838
|
this.active = false;
|
|
2839
|
+
/** When true, opens the dropdown */
|
|
2840
|
+
this.open = false;
|
|
2835
2841
|
/** When true, the component closes automatically (recommended for passive, non-blocking alerts). */
|
|
2836
2842
|
this.autoDismiss = false;
|
|
2837
2843
|
/** Specifies the duration before the component automatically closes (only use with `autoDismiss`). */
|
|
@@ -2843,7 +2849,7 @@ const Alert = class extends HTMLElement$1 {
|
|
|
2843
2849
|
*
|
|
2844
2850
|
* @default "Close"
|
|
2845
2851
|
*/
|
|
2846
|
-
this.intlClose = TEXT$
|
|
2852
|
+
this.intlClose = TEXT$p.intlClose;
|
|
2847
2853
|
/** Specifies the placement of the component */
|
|
2848
2854
|
this.placement = "bottom";
|
|
2849
2855
|
/** Specifies the size of the component. */
|
|
@@ -2870,29 +2876,34 @@ const Alert = class extends HTMLElement$1 {
|
|
|
2870
2876
|
this.closeAlert = () => {
|
|
2871
2877
|
this.autoDismissTimeoutId = null;
|
|
2872
2878
|
this.queued = false;
|
|
2873
|
-
this.
|
|
2879
|
+
this.open = false;
|
|
2874
2880
|
this.queue = this.queue.filter((el) => el !== this.el);
|
|
2875
2881
|
this.determineActiveAlert();
|
|
2876
2882
|
this.calciteInternalAlertSync.emit({ queue: this.queue });
|
|
2877
2883
|
};
|
|
2878
2884
|
this.transitionStartHandler = (event) => {
|
|
2879
2885
|
if (event.propertyName === this.activeTransitionProp && event.target === this.containerEl) {
|
|
2880
|
-
this.
|
|
2886
|
+
this.open ? this.onBeforeOpen() : this.onBeforeClose();
|
|
2881
2887
|
}
|
|
2882
2888
|
};
|
|
2883
2889
|
this.transitionEnd = (event) => {
|
|
2884
2890
|
if (event.propertyName === this.activeTransitionProp && event.target === this.containerEl) {
|
|
2885
|
-
this.
|
|
2891
|
+
this.open ? this.onOpen() : this.onClose();
|
|
2886
2892
|
}
|
|
2887
2893
|
};
|
|
2888
2894
|
}
|
|
2889
|
-
|
|
2890
|
-
|
|
2895
|
+
activeHandler(value) {
|
|
2896
|
+
this.open = value;
|
|
2897
|
+
}
|
|
2898
|
+
openHandler(value) {
|
|
2899
|
+
if (this.open && !this.queued) {
|
|
2891
2900
|
this.calciteInternalAlertRegister.emit();
|
|
2901
|
+
this.active = value;
|
|
2892
2902
|
}
|
|
2893
|
-
if (!this.
|
|
2903
|
+
if (!this.open) {
|
|
2894
2904
|
this.queue = this.queue.filter((el) => el !== this.el);
|
|
2895
2905
|
this.calciteInternalAlertSync.emit({ queue: this.queue });
|
|
2906
|
+
this.active = false;
|
|
2896
2907
|
}
|
|
2897
2908
|
}
|
|
2898
2909
|
updateRequestedIcon() {
|
|
@@ -2910,7 +2921,10 @@ const Alert = class extends HTMLElement$1 {
|
|
|
2910
2921
|
//
|
|
2911
2922
|
//--------------------------------------------------------------------------
|
|
2912
2923
|
connectedCallback() {
|
|
2913
|
-
|
|
2924
|
+
const open = this.open || this.active;
|
|
2925
|
+
if (open && !this.queued) {
|
|
2926
|
+
this.activeHandler(open);
|
|
2927
|
+
this.openHandler(open);
|
|
2914
2928
|
this.calciteInternalAlertRegister.emit();
|
|
2915
2929
|
}
|
|
2916
2930
|
}
|
|
@@ -2933,7 +2947,7 @@ const Alert = class extends HTMLElement$1 {
|
|
|
2933
2947
|
container: true,
|
|
2934
2948
|
queued,
|
|
2935
2949
|
[placement]: true
|
|
2936
|
-
}, onTransitionEnd: this.transitionEnd, ref: this.setContainerEl }, requestedIcon ? (h("div", { class: "alert-icon" }, h("calcite-icon", { icon: requestedIcon, scale: this.scale === "l" ? "m" : "s" }))) : null, h("div", { class: "alert-content" }, h("slot", { name: SLOTS$
|
|
2950
|
+
}, onTransitionEnd: this.transitionEnd, ref: this.setContainerEl }, requestedIcon ? (h("div", { class: "alert-icon" }, h("calcite-icon", { icon: requestedIcon, scale: this.scale === "l" ? "m" : "s" }))) : null, h("div", { class: "alert-content" }, h("slot", { name: SLOTS$n.title }), h("slot", { name: SLOTS$n.message }), h("slot", { name: SLOTS$n.link })), queueCount, !autoDismiss ? closeButton : null, active && !queued && autoDismiss ? h("div", { class: "alert-dismiss-progress" }) : null)));
|
|
2937
2951
|
}
|
|
2938
2952
|
// when an alert is opened or closed, update queue and determine active alert
|
|
2939
2953
|
alertSync(event) {
|
|
@@ -2946,7 +2960,7 @@ const Alert = class extends HTMLElement$1 {
|
|
|
2946
2960
|
}
|
|
2947
2961
|
// when an alert is first registered, trigger a queue sync
|
|
2948
2962
|
alertRegister() {
|
|
2949
|
-
if (this.
|
|
2963
|
+
if (this.open && !this.queue.includes(this.el)) {
|
|
2950
2964
|
this.queued = true;
|
|
2951
2965
|
this.queue.push(this.el);
|
|
2952
2966
|
}
|
|
@@ -3009,7 +3023,8 @@ const Alert = class extends HTMLElement$1 {
|
|
|
3009
3023
|
}
|
|
3010
3024
|
get el() { return this; }
|
|
3011
3025
|
static get watchers() { return {
|
|
3012
|
-
"active": ["
|
|
3026
|
+
"active": ["activeHandler"],
|
|
3027
|
+
"open": ["openHandler"],
|
|
3013
3028
|
"icon": ["updateRequestedIcon"],
|
|
3014
3029
|
"color": ["updateRequestedIcon"],
|
|
3015
3030
|
"autoDismissDuration": ["updateDuration"]
|
|
@@ -3263,7 +3278,7 @@ const Avatar = class extends HTMLElement$1 {
|
|
|
3263
3278
|
static get style() { return avatarCss; }
|
|
3264
3279
|
};
|
|
3265
3280
|
|
|
3266
|
-
const CSS$
|
|
3281
|
+
const CSS$N = {
|
|
3267
3282
|
article: "article",
|
|
3268
3283
|
content: "content",
|
|
3269
3284
|
headerContainer: "header-container",
|
|
@@ -3282,13 +3297,13 @@ const CSS$M = {
|
|
|
3282
3297
|
invalid: "invalid",
|
|
3283
3298
|
loading: "loading"
|
|
3284
3299
|
};
|
|
3285
|
-
const TEXT$
|
|
3300
|
+
const TEXT$o = {
|
|
3286
3301
|
collapse: "Collapse",
|
|
3287
3302
|
expand: "Expand",
|
|
3288
3303
|
loading: "Loading",
|
|
3289
3304
|
options: "Options"
|
|
3290
3305
|
};
|
|
3291
|
-
const SLOTS$
|
|
3306
|
+
const SLOTS$m = {
|
|
3292
3307
|
icon: "icon",
|
|
3293
3308
|
control: "control",
|
|
3294
3309
|
headerMenuActions: "header-menu-actions"
|
|
@@ -3341,25 +3356,25 @@ const Block = class extends HTMLElement$1 {
|
|
|
3341
3356
|
*
|
|
3342
3357
|
* @default "Collapse"
|
|
3343
3358
|
*/
|
|
3344
|
-
this.intlCollapse = TEXT$
|
|
3359
|
+
this.intlCollapse = TEXT$o.collapse;
|
|
3345
3360
|
/**
|
|
3346
3361
|
* Aria-label for expanding the toggle and tooltip used for the toggle when collapsed.
|
|
3347
3362
|
*
|
|
3348
3363
|
* @default "Expand"
|
|
3349
3364
|
*/
|
|
3350
|
-
this.intlExpand = TEXT$
|
|
3365
|
+
this.intlExpand = TEXT$o.expand;
|
|
3351
3366
|
/**
|
|
3352
3367
|
* string to override English loading text
|
|
3353
3368
|
*
|
|
3354
3369
|
* @default "Loading"
|
|
3355
3370
|
*/
|
|
3356
|
-
this.intlLoading = TEXT$
|
|
3371
|
+
this.intlLoading = TEXT$o.loading;
|
|
3357
3372
|
/**
|
|
3358
3373
|
* Text string used for the actions menu
|
|
3359
3374
|
*
|
|
3360
3375
|
* @default "Options"
|
|
3361
3376
|
*/
|
|
3362
|
-
this.intlOptions = TEXT$
|
|
3377
|
+
this.intlOptions = TEXT$o.options;
|
|
3363
3378
|
/**
|
|
3364
3379
|
* When true, content is waiting to be loaded. This state shows a busy indicator.
|
|
3365
3380
|
*/
|
|
@@ -3418,32 +3433,32 @@ const Block = class extends HTMLElement$1 {
|
|
|
3418
3433
|
const { el, status } = this;
|
|
3419
3434
|
const showingLoadingStatus = this.loading && !this.open;
|
|
3420
3435
|
const statusIcon = showingLoadingStatus ? ICONS$c.refresh : ICONS$c[status];
|
|
3421
|
-
const hasIcon = getSlotted(el, SLOTS$
|
|
3422
|
-
const iconEl = !statusIcon ? (h("slot", { key: "icon-slot", name: SLOTS$
|
|
3423
|
-
[CSS$
|
|
3424
|
-
[CSS$
|
|
3425
|
-
[CSS$
|
|
3426
|
-
[CSS$
|
|
3436
|
+
const hasIcon = getSlotted(el, SLOTS$m.icon) || statusIcon;
|
|
3437
|
+
const iconEl = !statusIcon ? (h("slot", { key: "icon-slot", name: SLOTS$m.icon })) : (h("calcite-icon", { class: {
|
|
3438
|
+
[CSS$N.statusIcon]: true,
|
|
3439
|
+
[CSS$N.valid]: status == "valid",
|
|
3440
|
+
[CSS$N.invalid]: status == "invalid",
|
|
3441
|
+
[CSS$N.loading]: showingLoadingStatus
|
|
3427
3442
|
}, icon: statusIcon, scale: "m" }));
|
|
3428
|
-
return hasIcon ? h("div", { class: CSS$
|
|
3443
|
+
return hasIcon ? h("div", { class: CSS$N.icon }, iconEl) : null;
|
|
3429
3444
|
}
|
|
3430
3445
|
renderTitle() {
|
|
3431
3446
|
const { heading, headingLevel, summary, description } = this;
|
|
3432
|
-
return heading || summary || description ? (h("div", { class: CSS$
|
|
3447
|
+
return heading || summary || description ? (h("div", { class: CSS$N.title }, h(Heading, { class: CSS$N.heading, level: headingLevel || HEADING_LEVEL$7 }, heading), summary || description ? (h("div", { class: CSS$N.description }, summary || description)) : null)) : null;
|
|
3433
3448
|
}
|
|
3434
3449
|
render() {
|
|
3435
3450
|
const { collapsible, el, intlCollapse, intlExpand, loading, open, intlLoading } = this;
|
|
3436
|
-
const toggleLabel = open ? intlCollapse || TEXT$
|
|
3437
|
-
const headerContent = (h("header", { class: CSS$
|
|
3438
|
-
const hasControl = !!getSlotted(el, SLOTS$
|
|
3439
|
-
const hasMenuActions = !!getSlotted(el, SLOTS$
|
|
3451
|
+
const toggleLabel = open ? intlCollapse || TEXT$o.collapse : intlExpand || TEXT$o.expand;
|
|
3452
|
+
const headerContent = (h("header", { class: CSS$N.header }, this.renderIcon(), this.renderTitle()));
|
|
3453
|
+
const hasControl = !!getSlotted(el, SLOTS$m.control);
|
|
3454
|
+
const hasMenuActions = !!getSlotted(el, SLOTS$m.headerMenuActions);
|
|
3440
3455
|
const collapseIcon = open ? ICONS$c.opened : ICONS$c.closed;
|
|
3441
3456
|
const { guid } = this;
|
|
3442
3457
|
const regionId = `${guid}-region`;
|
|
3443
3458
|
const buttonId = `${guid}-button`;
|
|
3444
|
-
const headerNode = (h("div", { class: CSS$
|
|
3459
|
+
const headerNode = (h("div", { class: CSS$N.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$N.toggle, id: buttonId, onClick: this.onHeaderClick, title: toggleLabel }, headerContent, !hasControl && !hasMenuActions ? (h("calcite-icon", { "aria-hidden": "true", class: CSS$N.toggleIcon, icon: collapseIcon, scale: "s" })) : null)) : (headerContent), loading ? (h("calcite-loader", { inline: true, "is-active": true, label: intlLoading })) : hasControl ? (h("div", { class: CSS$N.controlContainer }, h("slot", { name: SLOTS$m.control }))) : null, hasMenuActions ? (h("calcite-action-menu", { label: this.intlOptions || TEXT$o.options }, h("slot", { name: SLOTS$m.headerMenuActions }))) : null));
|
|
3445
3460
|
return (h(Host, null, h("article", { "aria-busy": toAriaBoolean(loading), class: {
|
|
3446
|
-
[CSS$
|
|
3461
|
+
[CSS$N.article]: true
|
|
3447
3462
|
} }, headerNode, h("section", { "aria-expanded": toAriaBoolean(open), "aria-labelledby": buttonId, class: {
|
|
3448
3463
|
content: true,
|
|
3449
3464
|
"content--spaced": !this.disablePadding
|
|
@@ -3453,7 +3468,7 @@ const Block = class extends HTMLElement$1 {
|
|
|
3453
3468
|
static get style() { return blockCss; }
|
|
3454
3469
|
};
|
|
3455
3470
|
|
|
3456
|
-
const CSS$
|
|
3471
|
+
const CSS$M = {
|
|
3457
3472
|
content: "content",
|
|
3458
3473
|
invalid: "invalid",
|
|
3459
3474
|
toggle: "toggle",
|
|
@@ -3465,7 +3480,7 @@ const CSS$L = {
|
|
|
3465
3480
|
statusIcon: "status-icon",
|
|
3466
3481
|
valid: "valid"
|
|
3467
3482
|
};
|
|
3468
|
-
const TEXT$
|
|
3483
|
+
const TEXT$n = {
|
|
3469
3484
|
collapse: "Collapse",
|
|
3470
3485
|
expand: "Expand"
|
|
3471
3486
|
};
|
|
@@ -3523,9 +3538,9 @@ const BlockSection = class extends HTMLElement$1 {
|
|
|
3523
3538
|
const { status } = this;
|
|
3524
3539
|
const statusIcon = (_a = ICONS$b[status]) !== null && _a !== void 0 ? _a : false;
|
|
3525
3540
|
const statusIconClasses = {
|
|
3526
|
-
[CSS$
|
|
3527
|
-
[CSS$
|
|
3528
|
-
[CSS$
|
|
3541
|
+
[CSS$M.statusIcon]: true,
|
|
3542
|
+
[CSS$M.valid]: status == "valid",
|
|
3543
|
+
[CSS$M.invalid]: status == "invalid"
|
|
3529
3544
|
};
|
|
3530
3545
|
return !!statusIcon ? (h("calcite-icon", { class: statusIconClasses, icon: statusIcon, scale: "s" })) : null;
|
|
3531
3546
|
}
|
|
@@ -3537,18 +3552,18 @@ const BlockSection = class extends HTMLElement$1 {
|
|
|
3537
3552
|
: dir === "rtl"
|
|
3538
3553
|
? ICONS$b.menuClosedLeft
|
|
3539
3554
|
: ICONS$b.menuClosedRight;
|
|
3540
|
-
const toggleLabel = open ? intlCollapse || TEXT$
|
|
3555
|
+
const toggleLabel = open ? intlCollapse || TEXT$n.collapse : intlExpand || TEXT$n.expand;
|
|
3541
3556
|
const { guid } = this;
|
|
3542
3557
|
const regionId = `${guid}-region`;
|
|
3543
3558
|
const buttonId = `${guid}-button`;
|
|
3544
3559
|
const headerNode = toggleDisplay === "switch" ? (h("div", { "aria-controls": regionId, "aria-label": toggleLabel, class: {
|
|
3545
|
-
[CSS$
|
|
3546
|
-
[CSS$
|
|
3547
|
-
}, id: buttonId, onClick: this.toggleSection, onKeyDown: this.handleHeaderKeyDown, tabIndex: 0, title: toggleLabel }, h("div", { class: CSS$
|
|
3548
|
-
[CSS$
|
|
3549
|
-
[CSS$
|
|
3550
|
-
}, id: buttonId, name: toggleLabel, onClick: this.toggleSection }, h("calcite-icon", { icon: arrowIcon, scale: "s" }), h("span", { class: CSS$
|
|
3551
|
-
return (h(Host, null, headerNode, h("section", { "aria-expanded": toAriaBoolean(open), "aria-labelledby": buttonId, class: CSS$
|
|
3560
|
+
[CSS$M.toggle]: true,
|
|
3561
|
+
[CSS$M.toggleSwitch]: true
|
|
3562
|
+
}, id: buttonId, onClick: this.toggleSection, onKeyDown: this.handleHeaderKeyDown, tabIndex: 0, title: toggleLabel }, h("div", { class: CSS$M.toggleSwitchContent }, h("span", { class: CSS$M.toggleSwitchText }, text)), h("calcite-switch", { checked: open, label: toggleLabel, scale: "s", tabIndex: -1 }), this.renderStatusIcon())) : (h("button", { "aria-controls": regionId, "aria-label": toggleLabel, class: {
|
|
3563
|
+
[CSS$M.sectionHeader]: true,
|
|
3564
|
+
[CSS$M.toggle]: true
|
|
3565
|
+
}, id: buttonId, name: toggleLabel, onClick: this.toggleSection }, h("calcite-icon", { icon: arrowIcon, scale: "s" }), h("span", { class: CSS$M.sectionHeaderText }, text), this.renderStatusIcon()));
|
|
3566
|
+
return (h(Host, null, headerNode, h("section", { "aria-expanded": toAriaBoolean(open), "aria-labelledby": buttonId, class: CSS$M.content, hidden: !open, id: regionId }, h("slot", null))));
|
|
3552
3567
|
}
|
|
3553
3568
|
get el() { return this; }
|
|
3554
3569
|
static get style() { return blockSectionCss; }
|
|
@@ -3582,7 +3597,7 @@ const BlockSection = class extends HTMLElement$1 {
|
|
|
3582
3597
|
}
|
|
3583
3598
|
})(HTMLFormElement.prototype);
|
|
3584
3599
|
|
|
3585
|
-
const CSS$
|
|
3600
|
+
const CSS$L = {
|
|
3586
3601
|
buttonLoader: "calcite-button--loader",
|
|
3587
3602
|
content: "content",
|
|
3588
3603
|
contentSlotted: "content--slotted",
|
|
@@ -3594,7 +3609,7 @@ const CSS$K = {
|
|
|
3594
3609
|
iconStartEmpty: "icon-start-empty",
|
|
3595
3610
|
iconEndEmpty: "icon-end-empty"
|
|
3596
3611
|
};
|
|
3597
|
-
const TEXT$
|
|
3612
|
+
const TEXT$m = {
|
|
3598
3613
|
loading: "Loading"
|
|
3599
3614
|
};
|
|
3600
3615
|
|
|
@@ -3941,7 +3956,7 @@ const Button = class extends HTMLElement$1 {
|
|
|
3941
3956
|
*
|
|
3942
3957
|
* @default "Loading"
|
|
3943
3958
|
*/
|
|
3944
|
-
this.intlLoading = TEXT$
|
|
3959
|
+
this.intlLoading = TEXT$m.loading;
|
|
3945
3960
|
/** optionally add a calcite-loader component to the button, disabling interaction. */
|
|
3946
3961
|
this.loading = false;
|
|
3947
3962
|
/** optionally add a round style to the button */
|
|
@@ -4013,14 +4028,14 @@ const Button = class extends HTMLElement$1 {
|
|
|
4013
4028
|
render() {
|
|
4014
4029
|
const childElType = this.href ? "a" : "button";
|
|
4015
4030
|
const Tag = childElType;
|
|
4016
|
-
const loaderNode = this.hasLoader ? (h("div", { class: CSS$
|
|
4017
|
-
const iconStartEl = (h("calcite-icon", { class: { [CSS$
|
|
4018
|
-
const iconEndEl = (h("calcite-icon", { class: { [CSS$
|
|
4019
|
-
const contentEl = (h("span", { class: CSS$
|
|
4031
|
+
const loaderNode = this.hasLoader ? (h("div", { class: CSS$L.buttonLoader }, h("calcite-loader", { active: true, class: this.loading ? CSS$L.loadingIn : CSS$L.loadingOut, inline: true, label: this.intlLoading, scale: "m" }))) : null;
|
|
4032
|
+
const iconStartEl = (h("calcite-icon", { class: { [CSS$L.icon]: true, [CSS$L.iconStart]: true }, flipRtl: this.iconFlipRtl === "start" || this.iconFlipRtl === "both", icon: this.iconStart, scale: "s" }));
|
|
4033
|
+
const iconEndEl = (h("calcite-icon", { class: { [CSS$L.icon]: true, [CSS$L.iconEnd]: true }, flipRtl: this.iconFlipRtl === "end" || this.iconFlipRtl === "both", icon: this.iconEnd, scale: "s" }));
|
|
4034
|
+
const contentEl = (h("span", { class: CSS$L.content }, h("slot", null)));
|
|
4020
4035
|
return (h(Tag, { "aria-label": getLabelText(this), class: {
|
|
4021
|
-
[CSS$
|
|
4022
|
-
[CSS$
|
|
4023
|
-
[CSS$
|
|
4036
|
+
[CSS$L.contentSlotted]: this.hasContent,
|
|
4037
|
+
[CSS$L.iconStartEmpty]: !this.iconStart,
|
|
4038
|
+
[CSS$L.iconEndEmpty]: !this.iconEnd
|
|
4024
4039
|
}, disabled: this.disabled || this.loading, href: childElType === "a" && this.href, name: childElType === "button" && this.name, onClick: this.handleClick, ref: (el) => (this.childEl = el), rel: childElType === "a" && this.rel, tabIndex: this.disabled || this.loading ? -1 : null, target: childElType === "a" && this.target, type: childElType === "button" && this.type }, loaderNode, this.iconStart ? iconStartEl : null, this.hasContent ? contentEl : null, this.iconEnd ? iconEndEl : null));
|
|
4025
4040
|
}
|
|
4026
4041
|
//--------------------------------------------------------------------------
|
|
@@ -4061,7 +4076,7 @@ const Button = class extends HTMLElement$1 {
|
|
|
4061
4076
|
static get style() { return buttonCss; }
|
|
4062
4077
|
};
|
|
4063
4078
|
|
|
4064
|
-
const CSS$
|
|
4079
|
+
const CSS$K = {
|
|
4065
4080
|
container: "container",
|
|
4066
4081
|
header: "header",
|
|
4067
4082
|
footer: "footer",
|
|
@@ -4070,14 +4085,14 @@ const CSS$J = {
|
|
|
4070
4085
|
checkboxWrapper: "checkbox-wrapper",
|
|
4071
4086
|
thumbnailWrapper: "thumbnail-wrapper"
|
|
4072
4087
|
};
|
|
4073
|
-
const SLOTS$
|
|
4088
|
+
const SLOTS$l = {
|
|
4074
4089
|
thumbnail: "thumbnail",
|
|
4075
4090
|
title: "title",
|
|
4076
4091
|
subtitle: "subtitle",
|
|
4077
4092
|
footerLeading: "footer-leading",
|
|
4078
4093
|
footerTrailing: "footer-trailing"
|
|
4079
4094
|
};
|
|
4080
|
-
const TEXT$
|
|
4095
|
+
const TEXT$l = {
|
|
4081
4096
|
select: "Select",
|
|
4082
4097
|
deselect: "Deselect",
|
|
4083
4098
|
loading: "Loading"
|
|
@@ -4107,19 +4122,19 @@ const Card = class extends HTMLElement$1 {
|
|
|
4107
4122
|
*
|
|
4108
4123
|
* @default "Loading"
|
|
4109
4124
|
*/
|
|
4110
|
-
this.intlLoading = TEXT$
|
|
4125
|
+
this.intlLoading = TEXT$l.loading;
|
|
4111
4126
|
/**
|
|
4112
4127
|
* string to override English select text for checkbox when selectable is true
|
|
4113
4128
|
*
|
|
4114
4129
|
* @default "Select"
|
|
4115
4130
|
*/
|
|
4116
|
-
this.intlSelect = TEXT$
|
|
4131
|
+
this.intlSelect = TEXT$l.select;
|
|
4117
4132
|
/**
|
|
4118
4133
|
* string to override English deselect text for checkbox when selectable is true
|
|
4119
4134
|
*
|
|
4120
4135
|
* @default "Deselect"
|
|
4121
4136
|
*/
|
|
4122
|
-
this.intlDeselect = TEXT$
|
|
4137
|
+
this.intlDeselect = TEXT$l.deselect;
|
|
4123
4138
|
this.thumbnailPosition = "block-start";
|
|
4124
4139
|
//--------------------------------------------------------------------------
|
|
4125
4140
|
//
|
|
@@ -4158,32 +4173,32 @@ const Card = class extends HTMLElement$1 {
|
|
|
4158
4173
|
render() {
|
|
4159
4174
|
const thumbnailInline = this.thumbnailPosition.startsWith("inline");
|
|
4160
4175
|
const thumbnailStart = this.thumbnailPosition.endsWith("start");
|
|
4161
|
-
return (h("div", { class: { "calcite-card-container": true, inline: thumbnailInline } }, this.loading ? (h("div", { class: "calcite-card-loader-container" }, h("calcite-loader", { active: true, label: this.intlLoading }))) : null, thumbnailStart && this.renderThumbnail(), h("section", { "aria-busy": toAriaBoolean(this.loading), class: { [CSS$
|
|
4176
|
+
return (h("div", { class: { "calcite-card-container": true, inline: thumbnailInline } }, this.loading ? (h("div", { class: "calcite-card-loader-container" }, h("calcite-loader", { active: true, label: this.intlLoading }))) : null, thumbnailStart && this.renderThumbnail(), h("section", { "aria-busy": toAriaBoolean(this.loading), class: { [CSS$K.container]: true } }, this.selectable ? this.renderCheckbox() : null, this.renderHeader(), h("div", { class: "card-content" }, h("slot", null)), this.renderFooter()), !thumbnailStart && this.renderThumbnail()));
|
|
4162
4177
|
}
|
|
4163
4178
|
selectCard() {
|
|
4164
4179
|
this.selected = !this.selected;
|
|
4165
4180
|
this.calciteCardSelect.emit();
|
|
4166
4181
|
}
|
|
4167
4182
|
renderThumbnail() {
|
|
4168
|
-
return getSlotted(this.el, SLOTS$
|
|
4183
|
+
return getSlotted(this.el, SLOTS$l.thumbnail) ? (h("section", { class: CSS$K.thumbnailWrapper }, h("slot", { name: SLOTS$l.thumbnail }))) : null;
|
|
4169
4184
|
}
|
|
4170
4185
|
renderCheckbox() {
|
|
4171
4186
|
const checkboxLabel = this.selected ? this.intlDeselect : this.intlSelect;
|
|
4172
|
-
return (h("calcite-label", { class: CSS$
|
|
4187
|
+
return (h("calcite-label", { class: CSS$K.checkboxWrapper, onClick: this.cardSelectClick, onKeyDown: this.cardSelectKeyDown }, h("calcite-checkbox", { checked: this.selected, label: checkboxLabel })));
|
|
4173
4188
|
}
|
|
4174
4189
|
renderHeader() {
|
|
4175
4190
|
const { el } = this;
|
|
4176
|
-
const title = getSlotted(el, SLOTS$
|
|
4177
|
-
const subtitle = getSlotted(el, SLOTS$
|
|
4191
|
+
const title = getSlotted(el, SLOTS$l.title);
|
|
4192
|
+
const subtitle = getSlotted(el, SLOTS$l.subtitle);
|
|
4178
4193
|
const hasHeader = title || subtitle;
|
|
4179
|
-
return hasHeader ? (h("header", { class: CSS$
|
|
4194
|
+
return hasHeader ? (h("header", { class: CSS$K.header }, h("slot", { name: SLOTS$l.title }), h("slot", { name: SLOTS$l.subtitle }))) : null;
|
|
4180
4195
|
}
|
|
4181
4196
|
renderFooter() {
|
|
4182
4197
|
const { el } = this;
|
|
4183
|
-
const leadingFooter = getSlotted(el, SLOTS$
|
|
4184
|
-
const trailingFooter = getSlotted(el, SLOTS$
|
|
4198
|
+
const leadingFooter = getSlotted(el, SLOTS$l.footerLeading);
|
|
4199
|
+
const trailingFooter = getSlotted(el, SLOTS$l.footerTrailing);
|
|
4185
4200
|
const hasFooter = leadingFooter || trailingFooter;
|
|
4186
|
-
return hasFooter ? (h("footer", { class: CSS$
|
|
4201
|
+
return hasFooter ? (h("footer", { class: CSS$K.footer }, h("slot", { name: SLOTS$l.footerLeading }), h("slot", { name: SLOTS$l.footerTrailing }))) : null;
|
|
4187
4202
|
}
|
|
4188
4203
|
get el() { return this; }
|
|
4189
4204
|
static get style() { return cardCss; }
|
|
@@ -4312,17 +4327,17 @@ const Checkbox = class extends HTMLElement$1 {
|
|
|
4312
4327
|
static get style() { return checkboxCss; }
|
|
4313
4328
|
};
|
|
4314
4329
|
|
|
4315
|
-
const CSS$
|
|
4330
|
+
const CSS$J = {
|
|
4316
4331
|
title: "title",
|
|
4317
4332
|
close: "close",
|
|
4318
4333
|
imageContainer: "image-container",
|
|
4319
4334
|
chipIcon: "chip-icon",
|
|
4320
4335
|
closeIcon: "close-icon"
|
|
4321
4336
|
};
|
|
4322
|
-
const TEXT$
|
|
4337
|
+
const TEXT$k = {
|
|
4323
4338
|
close: "Close"
|
|
4324
4339
|
};
|
|
4325
|
-
const SLOTS$
|
|
4340
|
+
const SLOTS$k = {
|
|
4326
4341
|
image: "image"
|
|
4327
4342
|
};
|
|
4328
4343
|
const ICONS$a = {
|
|
@@ -4359,7 +4374,7 @@ const Chip = class extends HTMLElement$1 {
|
|
|
4359
4374
|
*
|
|
4360
4375
|
* @default "Close"
|
|
4361
4376
|
*/
|
|
4362
|
-
this.dismissLabel = TEXT$
|
|
4377
|
+
this.dismissLabel = TEXT$k.close;
|
|
4363
4378
|
/** flip the icon in rtl */
|
|
4364
4379
|
this.iconFlipRtl = false;
|
|
4365
4380
|
/** specify the scale of the chip, defaults to m */
|
|
@@ -4406,13 +4421,13 @@ const Chip = class extends HTMLElement$1 {
|
|
|
4406
4421
|
//--------------------------------------------------------------------------
|
|
4407
4422
|
renderChipImage() {
|
|
4408
4423
|
const { el } = this;
|
|
4409
|
-
const hasChipImage = getSlotted(el, SLOTS$
|
|
4410
|
-
return hasChipImage ? (h("div", { class: CSS$
|
|
4424
|
+
const hasChipImage = getSlotted(el, SLOTS$k.image);
|
|
4425
|
+
return hasChipImage ? (h("div", { class: CSS$J.imageContainer, key: "image" }, h("slot", { name: SLOTS$k.image }))) : null;
|
|
4411
4426
|
}
|
|
4412
4427
|
render() {
|
|
4413
|
-
const iconEl = (h("calcite-icon", { class: CSS$
|
|
4414
|
-
const closeButton = (h("button", { "aria-describedby": this.guid, "aria-label": this.dismissLabel, class: CSS$
|
|
4415
|
-
return (h("div", { class: "container" }, this.renderChipImage(), this.icon ? iconEl : null, h("span", { class: CSS$
|
|
4428
|
+
const iconEl = (h("calcite-icon", { class: CSS$J.chipIcon, flipRtl: this.iconFlipRtl, icon: this.icon, scale: "s" }));
|
|
4429
|
+
const closeButton = (h("button", { "aria-describedby": this.guid, "aria-label": this.dismissLabel, class: CSS$J.close, onClick: this.closeClickHandler, ref: (el) => (this.closeButton = el) }, h("calcite-icon", { class: CSS$J.closeIcon, icon: ICONS$a.close, scale: "s" })));
|
|
4430
|
+
return (h("div", { class: "container" }, this.renderChipImage(), this.icon ? iconEl : null, h("span", { class: CSS$J.title, id: this.guid }, h("slot", null)), this.closable || this.dismissible ? closeButton : null));
|
|
4416
4431
|
}
|
|
4417
4432
|
get el() { return this; }
|
|
4418
4433
|
static get style() { return chipCss; }
|
|
@@ -6528,7 +6543,7 @@ function zeroArray(array, length) {
|
|
|
6528
6543
|
|
|
6529
6544
|
var color = Color;
|
|
6530
6545
|
|
|
6531
|
-
const CSS$
|
|
6546
|
+
const CSS$I = {
|
|
6532
6547
|
container: "container",
|
|
6533
6548
|
controlSection: "control-section",
|
|
6534
6549
|
hexOptions: "color-hex-options",
|
|
@@ -6566,7 +6581,7 @@ const HSV_LIMITS = {
|
|
|
6566
6581
|
s: 100,
|
|
6567
6582
|
v: 100
|
|
6568
6583
|
};
|
|
6569
|
-
const TEXT$
|
|
6584
|
+
const TEXT$j = {
|
|
6570
6585
|
b: "B",
|
|
6571
6586
|
blue: "Blue",
|
|
6572
6587
|
deleteColor: "Delete color",
|
|
@@ -6696,115 +6711,115 @@ const ColorPicker = class extends HTMLElement$1 {
|
|
|
6696
6711
|
*
|
|
6697
6712
|
* @default "B"
|
|
6698
6713
|
*/
|
|
6699
|
-
this.intlB = TEXT$
|
|
6714
|
+
this.intlB = TEXT$j.b;
|
|
6700
6715
|
/**
|
|
6701
6716
|
* Label used for the blue channel description
|
|
6702
6717
|
*
|
|
6703
6718
|
* @default "Blue"
|
|
6704
6719
|
*/
|
|
6705
|
-
this.intlBlue = TEXT$
|
|
6720
|
+
this.intlBlue = TEXT$j.blue;
|
|
6706
6721
|
/**
|
|
6707
6722
|
* Label used for the delete color button.
|
|
6708
6723
|
*
|
|
6709
6724
|
* @default "Delete color"
|
|
6710
6725
|
*/
|
|
6711
|
-
this.intlDeleteColor = TEXT$
|
|
6726
|
+
this.intlDeleteColor = TEXT$j.deleteColor;
|
|
6712
6727
|
/**
|
|
6713
6728
|
* Label used for the green channel
|
|
6714
6729
|
*
|
|
6715
6730
|
* @default "G"
|
|
6716
6731
|
*/
|
|
6717
|
-
this.intlG = TEXT$
|
|
6732
|
+
this.intlG = TEXT$j.g;
|
|
6718
6733
|
/**
|
|
6719
6734
|
* Label used for the green channel description
|
|
6720
6735
|
*
|
|
6721
6736
|
* @default "Green"
|
|
6722
6737
|
*/
|
|
6723
|
-
this.intlGreen = TEXT$
|
|
6738
|
+
this.intlGreen = TEXT$j.green;
|
|
6724
6739
|
/**
|
|
6725
6740
|
* Label used for the hue channel
|
|
6726
6741
|
*
|
|
6727
6742
|
* @default "H"
|
|
6728
6743
|
*/
|
|
6729
|
-
this.intlH = TEXT$
|
|
6744
|
+
this.intlH = TEXT$j.h;
|
|
6730
6745
|
/**
|
|
6731
6746
|
* Label used for the HSV mode
|
|
6732
6747
|
*
|
|
6733
6748
|
* @default "HSV"
|
|
6734
6749
|
*/
|
|
6735
|
-
this.intlHsv = TEXT$
|
|
6750
|
+
this.intlHsv = TEXT$j.hsv;
|
|
6736
6751
|
/**
|
|
6737
6752
|
* Label used for the hex input
|
|
6738
6753
|
*
|
|
6739
6754
|
* @default "Hex"
|
|
6740
6755
|
*/
|
|
6741
|
-
this.intlHex = TEXT$
|
|
6756
|
+
this.intlHex = TEXT$j.hex;
|
|
6742
6757
|
/**
|
|
6743
6758
|
* Label used for the hue channel description
|
|
6744
6759
|
*
|
|
6745
6760
|
* @default "Hue"
|
|
6746
6761
|
*/
|
|
6747
|
-
this.intlHue = TEXT$
|
|
6762
|
+
this.intlHue = TEXT$j.hue;
|
|
6748
6763
|
/**
|
|
6749
6764
|
* Label used for the hex input when there is no color selected.
|
|
6750
6765
|
*
|
|
6751
6766
|
* @default "No color"
|
|
6752
6767
|
*/
|
|
6753
|
-
this.intlNoColor = TEXT$
|
|
6768
|
+
this.intlNoColor = TEXT$j.noColor;
|
|
6754
6769
|
/**
|
|
6755
6770
|
* Label used for the red channel
|
|
6756
6771
|
*
|
|
6757
6772
|
* @default "R"
|
|
6758
6773
|
*/
|
|
6759
|
-
this.intlR = TEXT$
|
|
6774
|
+
this.intlR = TEXT$j.r;
|
|
6760
6775
|
/**
|
|
6761
6776
|
* Label used for the red channel description
|
|
6762
6777
|
*
|
|
6763
6778
|
* @default "Red"
|
|
6764
6779
|
*/
|
|
6765
|
-
this.intlRed = TEXT$
|
|
6780
|
+
this.intlRed = TEXT$j.red;
|
|
6766
6781
|
/**
|
|
6767
6782
|
* Label used for the RGB mode
|
|
6768
6783
|
*
|
|
6769
6784
|
* @default "RGB"
|
|
6770
6785
|
*/
|
|
6771
|
-
this.intlRgb = TEXT$
|
|
6786
|
+
this.intlRgb = TEXT$j.rgb;
|
|
6772
6787
|
/**
|
|
6773
6788
|
* Label used for the saturation channel
|
|
6774
6789
|
*
|
|
6775
6790
|
* @default "S"
|
|
6776
6791
|
*/
|
|
6777
|
-
this.intlS = TEXT$
|
|
6792
|
+
this.intlS = TEXT$j.s;
|
|
6778
6793
|
/**
|
|
6779
6794
|
* Label used for the saturation channel description
|
|
6780
6795
|
*
|
|
6781
6796
|
* @default "Saturation"
|
|
6782
6797
|
*/
|
|
6783
|
-
this.intlSaturation = TEXT$
|
|
6798
|
+
this.intlSaturation = TEXT$j.saturation;
|
|
6784
6799
|
/**
|
|
6785
6800
|
* Label used for the save color button.
|
|
6786
6801
|
*
|
|
6787
6802
|
* @default "Save color"
|
|
6788
6803
|
*/
|
|
6789
|
-
this.intlSaveColor = TEXT$
|
|
6804
|
+
this.intlSaveColor = TEXT$j.saveColor;
|
|
6790
6805
|
/**
|
|
6791
6806
|
* Label used for the saved colors section
|
|
6792
6807
|
*
|
|
6793
6808
|
* @default "Saved"
|
|
6794
6809
|
*/
|
|
6795
|
-
this.intlSaved = TEXT$
|
|
6810
|
+
this.intlSaved = TEXT$j.saved;
|
|
6796
6811
|
/**
|
|
6797
6812
|
* Label used for the value channel
|
|
6798
6813
|
*
|
|
6799
6814
|
* @default "V"
|
|
6800
6815
|
*/
|
|
6801
|
-
this.intlV = TEXT$
|
|
6816
|
+
this.intlV = TEXT$j.v;
|
|
6802
6817
|
/**
|
|
6803
6818
|
* Label used for the
|
|
6804
6819
|
*
|
|
6805
6820
|
* @default "Value"
|
|
6806
6821
|
*/
|
|
6807
|
-
this.intlValue = TEXT$
|
|
6822
|
+
this.intlValue = TEXT$j.value;
|
|
6808
6823
|
/**
|
|
6809
6824
|
* The scale of the color picker.
|
|
6810
6825
|
*/
|
|
@@ -7071,7 +7086,7 @@ const ColorPicker = class extends HTMLElement$1 {
|
|
|
7071
7086
|
const { channelMode: activeChannelMode, intlRgb, intlHsv } = this;
|
|
7072
7087
|
const active = channelMode === activeChannelMode;
|
|
7073
7088
|
const label = channelMode === "rgb" ? intlRgb : intlHsv;
|
|
7074
|
-
return (h("calcite-tab-title", { active: active, class: CSS$
|
|
7089
|
+
return (h("calcite-tab-title", { active: active, class: CSS$I.colorMode, "data-color-mode": channelMode, key: channelMode, onCalciteTabsActivate: this.handleTabActivate }, label));
|
|
7075
7090
|
};
|
|
7076
7091
|
this.renderChannelsTab = (channelMode) => {
|
|
7077
7092
|
const { channelMode: activeChannelMode, channels, intlB, intlBlue, intlG, intlGreen, intlH, intlHue, intlR, intlRed, intlS, intlSaturation, intlV, intlValue } = this;
|
|
@@ -7082,11 +7097,11 @@ const ColorPicker = class extends HTMLElement$1 {
|
|
|
7082
7097
|
? [intlRed, intlGreen, intlBlue]
|
|
7083
7098
|
: [intlHue, intlSaturation, intlValue];
|
|
7084
7099
|
const direction = getElementDir(this.el);
|
|
7085
|
-
return (h("calcite-tab", { active: active, class: CSS$
|
|
7100
|
+
return (h("calcite-tab", { active: active, class: CSS$I.control, key: channelMode }, h("div", { class: CSS$I.channels, dir: "ltr" }, channels.map((channel, index) =>
|
|
7086
7101
|
/* the channel container is ltr, so we apply the host's direction */
|
|
7087
7102
|
this.renderChannel(channel, index, channelLabels[index], channelAriaLabels[index], direction)))));
|
|
7088
7103
|
};
|
|
7089
|
-
this.renderChannel = (value, index, label, ariaLabel, direction) => (h("calcite-input", { class: CSS$
|
|
7104
|
+
this.renderChannel = (value, index, label, ariaLabel, direction) => (h("calcite-input", { class: CSS$I.channel, "data-channel-index": index, dir: direction, label: ariaLabel, numberButtonType: "none", numberingSystem: this.numberingSystem, 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() }));
|
|
7090
7105
|
this.deleteColor = () => {
|
|
7091
7106
|
const colorToDelete = this.color.hex();
|
|
7092
7107
|
const inStorage = this.savedColors.indexOf(colorToDelete) > -1;
|
|
@@ -7189,7 +7204,7 @@ const ColorPicker = class extends HTMLElement$1 {
|
|
|
7189
7204
|
this.shiftKeyChannelAdjustment = 0;
|
|
7190
7205
|
const key = event.key;
|
|
7191
7206
|
if ((key !== "ArrowUp" && key !== "ArrowDown") ||
|
|
7192
|
-
!event.composedPath().some((node) => { var _a; return (_a = node.classList) === null || _a === void 0 ? void 0 : _a.contains(CSS$
|
|
7207
|
+
!event.composedPath().some((node) => { var _a; return (_a = node.classList) === null || _a === void 0 ? void 0 : _a.contains(CSS$I.channel); })) {
|
|
7193
7208
|
return;
|
|
7194
7209
|
}
|
|
7195
7210
|
const { shiftKey } = event;
|
|
@@ -7260,20 +7275,20 @@ const ColorPicker = class extends HTMLElement$1 {
|
|
|
7260
7275
|
const hueLeft = hueScopeLeft !== null && hueScopeLeft !== void 0 ? hueScopeLeft : (colorFieldWidth * DEFAULT_COLOR$1.hue()) / HSV_LIMITS.h;
|
|
7261
7276
|
const noColor = color === null;
|
|
7262
7277
|
const vertical = scopeOrientation === "vertical";
|
|
7263
|
-
return (h("div", { class: CSS$
|
|
7264
|
-
[CSS$
|
|
7265
|
-
[CSS$
|
|
7266
|
-
}, onPointerDown: this.handleColorFieldAndSliderPointerDown, onPointerEnter: this.handleColorFieldAndSliderPointerEnterOrMove, onPointerLeave: this.handleColorFieldAndSliderPointerLeave, onPointerMove: this.handleColorFieldAndSliderPointerEnterOrMove, ref: this.initColorFieldAndSlider }), h("div", { "aria-label": vertical ? this.intlValue : this.intlSaturation, "aria-valuemax": vertical ? HSV_LIMITS.v : HSV_LIMITS.s, "aria-valuemin": "0", "aria-valuenow": (vertical ? color === null || color === void 0 ? void 0 : color.saturationv() : color === null || color === void 0 ? void 0 : color.value()) || "0", class: { [CSS$
|
|
7267
|
-
[CSS$
|
|
7268
|
-
[CSS$
|
|
7269
|
-
} }, hideHex ? null : (h("div", { class: CSS$
|
|
7270
|
-
[CSS$
|
|
7271
|
-
[CSS$
|
|
7272
|
-
} }, intlHex), h("calcite-color-picker-hex-input", { allowEmpty: allowEmpty, class: CSS$
|
|
7273
|
-
[CSS$
|
|
7274
|
-
[CSS$
|
|
7275
|
-
}, scale: hexInputScale }, h("calcite-tab-nav", { slot: "tab-nav" }, this.renderChannelsTabTitle("rgb"), this.renderChannelsTabTitle("hsv")), this.renderChannelsTab("rgb"), this.renderChannelsTab("hsv"))))), hideSaved ? null : (h("div", { class: { [CSS$
|
|
7276
|
-
...savedColors.map((color) => (h("calcite-color-picker-swatch", { active: selectedColorInHex === color, class: CSS$
|
|
7278
|
+
return (h("div", { class: CSS$I.container }, h("div", { class: CSS$I.colorFieldAndSliderWrap }, h("canvas", { class: {
|
|
7279
|
+
[CSS$I.colorFieldAndSlider]: true,
|
|
7280
|
+
[CSS$I.colorFieldAndSliderInteractive]: colorFieldAndSliderInteractive
|
|
7281
|
+
}, onPointerDown: this.handleColorFieldAndSliderPointerDown, onPointerEnter: this.handleColorFieldAndSliderPointerEnterOrMove, onPointerLeave: this.handleColorFieldAndSliderPointerLeave, onPointerMove: this.handleColorFieldAndSliderPointerEnterOrMove, ref: this.initColorFieldAndSlider }), h("div", { "aria-label": vertical ? this.intlValue : this.intlSaturation, "aria-valuemax": vertical ? HSV_LIMITS.v : HSV_LIMITS.s, "aria-valuemin": "0", "aria-valuenow": (vertical ? color === null || color === void 0 ? void 0 : color.saturationv() : color === null || color === void 0 ? void 0 : color.value()) || "0", class: { [CSS$I.scope]: true, [CSS$I.colorFieldScope]: true }, onKeyDown: this.handleColorFieldScopeKeyDown, ref: this.storeColorFieldScope, role: "slider", style: { top: `${colorFieldScopeTop || 0}px`, left: `${colorFieldScopeLeft || 0}px` }, tabindex: "0" }), h("div", { "aria-label": this.intlHue, "aria-valuemax": HSV_LIMITS.h, "aria-valuemin": "0", "aria-valuenow": (color === null || color === void 0 ? void 0 : color.round().hue()) || DEFAULT_COLOR$1.round().hue(), class: { [CSS$I.scope]: true, [CSS$I.hueScope]: true }, onKeyDown: this.handleHueScopeKeyDown, ref: this.storeHueScope, role: "slider", style: { top: `${hueTop}px`, left: `${hueLeft}px` }, tabindex: "0" })), hideHex && hideChannels ? null : (h("div", { class: {
|
|
7282
|
+
[CSS$I.controlSection]: true,
|
|
7283
|
+
[CSS$I.section]: true
|
|
7284
|
+
} }, hideHex ? null : (h("div", { class: CSS$I.hexOptions }, h("span", { class: {
|
|
7285
|
+
[CSS$I.header]: true,
|
|
7286
|
+
[CSS$I.headerHex]: true
|
|
7287
|
+
} }, intlHex), h("calcite-color-picker-hex-input", { allowEmpty: allowEmpty, class: CSS$I.control, numberingSystem: this.numberingSystem, onCalciteColorPickerHexInputChange: this.handleHexInputChange, scale: hexInputScale, value: selectedColorInHex }))), hideChannels ? null : (h("calcite-tabs", { class: {
|
|
7288
|
+
[CSS$I.colorModeContainer]: true,
|
|
7289
|
+
[CSS$I.splitSection]: true
|
|
7290
|
+
}, scale: hexInputScale }, h("calcite-tab-nav", { slot: "tab-nav" }, this.renderChannelsTabTitle("rgb"), this.renderChannelsTabTitle("hsv")), this.renderChannelsTab("rgb"), this.renderChannelsTab("hsv"))))), hideSaved ? null : (h("div", { class: { [CSS$I.savedColorsSection]: true, [CSS$I.section]: true } }, h("div", { class: CSS$I.header }, h("label", null, intlSaved), h("div", { class: CSS$I.savedColorsButtons }, h("calcite-button", { appearance: "transparent", class: CSS$I.deleteColor, color: "neutral", disabled: noColor, iconStart: "minus", label: intlDeleteColor, onClick: this.deleteColor, scale: hexInputScale, type: "button" }), h("calcite-button", { appearance: "transparent", class: CSS$I.saveColor, color: "neutral", disabled: noColor, iconStart: "plus", label: intlSaveColor, onClick: this.saveColor, scale: hexInputScale, type: "button" }))), savedColors.length > 0 ? (h("div", { class: CSS$I.savedColors }, [
|
|
7291
|
+
...savedColors.map((color) => (h("calcite-color-picker-swatch", { active: selectedColorInHex === color, class: CSS$I.savedColor, color: color, key: color, onClick: this.handleSavedColorSelect, onKeyDown: this.handleSavedColorKeyDown, scale: scale, tabIndex: 0 })))
|
|
7277
7292
|
])) : null))));
|
|
7278
7293
|
}
|
|
7279
7294
|
// --------------------------------------------------------------------------
|
|
@@ -7468,7 +7483,7 @@ const ColorPicker = class extends HTMLElement$1 {
|
|
|
7468
7483
|
static get style() { return colorPickerCss; }
|
|
7469
7484
|
};
|
|
7470
7485
|
|
|
7471
|
-
const CSS$
|
|
7486
|
+
const CSS$H = {
|
|
7472
7487
|
container: "container",
|
|
7473
7488
|
preview: "preview",
|
|
7474
7489
|
input: "input"
|
|
@@ -7499,13 +7514,13 @@ const ColorPickerHexInput = class extends HTMLElement$1 {
|
|
|
7499
7514
|
*
|
|
7500
7515
|
* @default "Hex"
|
|
7501
7516
|
*/
|
|
7502
|
-
this.intlHex = TEXT$
|
|
7517
|
+
this.intlHex = TEXT$j.hex;
|
|
7503
7518
|
/**
|
|
7504
7519
|
* Label used for the hex input when there is no color selected.
|
|
7505
7520
|
*
|
|
7506
7521
|
* @default "No color"
|
|
7507
7522
|
*/
|
|
7508
|
-
this.intlNoColor = TEXT$
|
|
7523
|
+
this.intlNoColor = TEXT$j.noColor;
|
|
7509
7524
|
/**
|
|
7510
7525
|
* The component's scale.
|
|
7511
7526
|
*/
|
|
@@ -7599,7 +7614,7 @@ const ColorPickerHexInput = class extends HTMLElement$1 {
|
|
|
7599
7614
|
render() {
|
|
7600
7615
|
const { intlHex, value } = this;
|
|
7601
7616
|
const hexInputValue = this.formatForInternalInput(value);
|
|
7602
|
-
return (h("div", { class: CSS$
|
|
7617
|
+
return (h("div", { class: CSS$H.container }, h("calcite-input", { class: CSS$H.input, label: intlHex, maxLength: 6, numberingSystem: this.numberingSystem, onCalciteInputChange: this.onInputChange, onCalciteInternalInputBlur: this.onCalciteInternalInputBlur, onKeyDown: this.handleKeyDown, prefixText: "#", ref: this.storeInputRef, scale: this.scale, value: hexInputValue }), hexInputValue ? (h("calcite-color-picker-swatch", { active: true, class: CSS$H.preview, color: `#${hexInputValue}`, scale: this.scale })) : null));
|
|
7603
7618
|
}
|
|
7604
7619
|
//--------------------------------------------------------------------------
|
|
7605
7620
|
//
|
|
@@ -7658,7 +7673,7 @@ const ColorPickerHexInput = class extends HTMLElement$1 {
|
|
|
7658
7673
|
static get style() { return colorPickerHexInputCss; }
|
|
7659
7674
|
};
|
|
7660
7675
|
|
|
7661
|
-
const CSS$
|
|
7676
|
+
const CSS$G = {
|
|
7662
7677
|
swatch: "swatch",
|
|
7663
7678
|
noColorIcon: "no-color-icon"
|
|
7664
7679
|
};
|
|
@@ -7705,7 +7720,7 @@ const ColorPickerSwatch = class extends HTMLElement$1 {
|
|
|
7705
7720
|
const hex = internalColor.hex();
|
|
7706
7721
|
const theme = getThemeName(el);
|
|
7707
7722
|
const borderColor = theme === "light" ? COLORS.borderLight : COLORS.borderDark;
|
|
7708
|
-
return (h("svg", { class: CSS$
|
|
7723
|
+
return (h("svg", { class: CSS$G.swatch, xmlns: "http://www.w3.org/2000/svg" }, h("title", null, hex), h("rect", { fill: hex, height: "100%", id: "swatch", rx: borderRadius, stroke: borderColor, "stroke-width": "2", style: { "clip-path": `inset(0 round ${borderRadius})` }, width: "100%" })));
|
|
7709
7724
|
}
|
|
7710
7725
|
get el() { return this; }
|
|
7711
7726
|
static get watchers() { return {
|
|
@@ -9355,7 +9370,7 @@ const defaultOffsetDistance = Math.ceil(Math.hypot(visiblePointerSize, visiblePo
|
|
|
9355
9370
|
const ComboboxItem$1 = "CALCITE-COMBOBOX-ITEM";
|
|
9356
9371
|
const ComboboxItemGroup$1 = "CALCITE-COMBOBOX-ITEM-GROUP";
|
|
9357
9372
|
const ComboboxChildSelector = `${ComboboxItem$1}, ${ComboboxItemGroup$1}`;
|
|
9358
|
-
const TEXT$
|
|
9373
|
+
const TEXT$i = {
|
|
9359
9374
|
removeTag: "Remove tag"
|
|
9360
9375
|
};
|
|
9361
9376
|
|
|
@@ -9384,7 +9399,7 @@ function getDepth(element) {
|
|
|
9384
9399
|
return result.snapshotLength;
|
|
9385
9400
|
}
|
|
9386
9401
|
|
|
9387
|
-
const comboboxCss = "@-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-floating-ui-transition:var(--calcite-animation-timing)}:host([hidden]){display: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{position:relative;display:block}:host([disabled]) ::slotted([calcite-hydrated][disabled]),:host([disabled]) [calcite-hydrated][disabled]{opacity:1}:host([scale=s]){font-size:var(--calcite-font-size--2);--calcite-combobox-item-spacing-unit-l:0.5rem;--calcite-combobox-item-spacing-unit-s:0.25rem;--calcite-combobox-input-height:1.5rem}:host([scale=m]){font-size:var(--calcite-font-size--1);--calcite-combobox-item-spacing-unit-l:0.75rem;--calcite-combobox-item-spacing-unit-s:0.5rem;--calcite-combobox-input-height:2rem}:host([scale=l]){font-size:var(--calcite-font-size-0);--calcite-combobox-item-spacing-unit-l:1rem;--calcite-combobox-item-spacing-unit-s:0.75rem;--calcite-combobox-input-height:2.75rem}.wrapper{display:-ms-flexbox;display:flex;background-color:var(--calcite-ui-foreground-1);color:var(--calcite-ui-text-1);outline-color:transparent;-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);padding-block:calc(var(--calcite-combobox-item-spacing-unit-s) / 4);padding-inline:var(--calcite-combobox-item-spacing-unit-l)}:host(:focus-within) .wrapper,.wrapper--active{outline:2px solid var(--calcite-ui-brand);outline-offset:-2px}.wrapper--single{padding-block:0;padding-inline:var(--calcite-combobox-item-spacing-unit-l);cursor:pointer;-ms-flex-wrap:nowrap;flex-wrap:nowrap}.grid-input{display:-ms-flexbox;display:flex;-ms-flex-positive:1;flex-grow:1;-ms-flex-wrap:wrap;flex-wrap:wrap;-ms-flex-align:center;align-items:center;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;padding:0px}.input{-ms-flex-positive:1;flex-grow:1;-webkit-appearance:none;-moz-appearance:none;appearance:none;border-style:none;background-color:transparent;padding:0px;font-family:inherit;color:var(--calcite-ui-text-1);font-size:inherit;block-size:var(--calcite-combobox-input-height);line-height:var(--calcite-combobox-input-height);min-inline-size:120px;-webkit-margin-after:var(--calcite-combobox-item-spacing-unit-s);margin-block-end:var(--calcite-combobox-item-spacing-unit-s)}.input:focus{outline:2px solid transparent;outline-offset:2px}.input--transparent{opacity:0}.input--single{margin-block:0px;padding:0px}.wrapper--active .input-single{cursor:text}.input--hidden{pointer-events:none;inline-size:0px;min-inline-size:0px;opacity:0}.input--icon{padding-block:0;padding-inline:var(--calcite-combobox-item-spacing-unit-l)}.input-wrap{display:-ms-flexbox;display:flex;-ms-flex-positive:1;flex-grow:1}.input-wrap--single{-ms-flex:1 1 0%;flex:1 1 0%;overflow:hidden}.label{pointer-events:none;display:-ms-flexbox;display:flex;max-inline-size:100%;-ms-flex:1 1 auto;flex:1 1 auto;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;padding:0px;font-weight:var(--calcite-font-weight-normal);block-size:var(--calcite-combobox-input-height);line-height:var(--calcite-combobox-input-height)}.label--spaced{padding-block:0px;padding-inline:var(--calcite-combobox-item-spacing-unit-l)}.icon-end,.icon-start{display:-ms-flexbox;display:flex;inline-size:1rem;cursor:pointer;-ms-flex-align:center;align-items:center}.icon-end{-ms-flex:none;flex:none}.floating-ui-container{inline-size:100%;display:block;position:absolute;z-index:900;-webkit-transform:scale(0);transform:scale(0);visibility:hidden;pointer-events:none}.floating-ui-container .calcite-floating-ui-anim{position:relative;z-index:1;-webkit-transition:var(--calcite-floating-ui-transition);transition:var(--calcite-floating-ui-transition);visibility:hidden;-webkit-transition-property:visibility, opacity, -webkit-transform;transition-property:visibility, opacity, -webkit-transform;transition-property:transform, visibility, opacity;transition-property:transform, visibility, opacity, -webkit-transform;opacity:0;-webkit-box-shadow:0 0 16px 0 rgba(0, 0, 0, 0.16);box-shadow:0 0 16px 0 rgba(0, 0, 0, 0.16);border-radius:0.25rem}.floating-ui-container[data-placement^=bottom] .calcite-floating-ui-anim{-webkit-transform:translateY(-5px);transform:translateY(-5px)}.floating-ui-container[data-placement^=top] .calcite-floating-ui-anim{-webkit-transform:translateY(5px);transform:translateY(5px)}.floating-ui-container[data-placement^=left] .calcite-floating-ui-anim{-webkit-transform:translateX(5px);transform:translateX(5px)}.floating-ui-container[data-placement^=right] .calcite-floating-ui-anim{-webkit-transform:translateX(-5px);transform:translateX(-5px)}.floating-ui-container[data-placement] .calcite-floating-ui-anim--active{opacity:1;visibility:visible;-webkit-transform:translate(0);transform:translate(0)}.floating-ui-container--active{pointer-events:initial;visibility:visible}@media (forced-colors: active){.wrapper,.floating-ui-container--active{border:1px solid canvasText}}.screen-readers-only{position:absolute;inline-size:1px;block-size:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0, 0, 0, 0);white-space:nowrap;border-width:0}.list-container{max-block-size:
|
|
9402
|
+
const comboboxCss = "@-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-floating-ui-transition:var(--calcite-animation-timing)}:host([hidden]){display: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{position:relative;display:block}:host([disabled]) ::slotted([calcite-hydrated][disabled]),:host([disabled]) [calcite-hydrated][disabled]{opacity:1}:host([scale=s]){font-size:var(--calcite-font-size--2);--calcite-combobox-item-spacing-unit-l:0.5rem;--calcite-combobox-item-spacing-unit-s:0.25rem;--calcite-combobox-input-height:1.5rem}:host([scale=m]){font-size:var(--calcite-font-size--1);--calcite-combobox-item-spacing-unit-l:0.75rem;--calcite-combobox-item-spacing-unit-s:0.5rem;--calcite-combobox-input-height:2rem}:host([scale=l]){font-size:var(--calcite-font-size-0);--calcite-combobox-item-spacing-unit-l:1rem;--calcite-combobox-item-spacing-unit-s:0.75rem;--calcite-combobox-input-height:2.75rem}.wrapper{display:-ms-flexbox;display:flex;background-color:var(--calcite-ui-foreground-1);color:var(--calcite-ui-text-1);outline-color:transparent;-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);padding-block:calc(var(--calcite-combobox-item-spacing-unit-s) / 4);padding-inline:var(--calcite-combobox-item-spacing-unit-l)}:host(:focus-within) .wrapper,.wrapper--active{outline:2px solid var(--calcite-ui-brand);outline-offset:-2px}.wrapper--single{padding-block:0;padding-inline:var(--calcite-combobox-item-spacing-unit-l);cursor:pointer;-ms-flex-wrap:nowrap;flex-wrap:nowrap}.grid-input{display:-ms-flexbox;display:flex;-ms-flex-positive:1;flex-grow:1;-ms-flex-wrap:wrap;flex-wrap:wrap;-ms-flex-align:center;align-items:center;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;padding:0px}.input{-ms-flex-positive:1;flex-grow:1;-webkit-appearance:none;-moz-appearance:none;appearance:none;border-style:none;background-color:transparent;padding:0px;font-family:inherit;color:var(--calcite-ui-text-1);font-size:inherit;block-size:var(--calcite-combobox-input-height);line-height:var(--calcite-combobox-input-height);min-inline-size:120px;-webkit-margin-after:var(--calcite-combobox-item-spacing-unit-s);margin-block-end:var(--calcite-combobox-item-spacing-unit-s)}.input:focus{outline:2px solid transparent;outline-offset:2px}.input--transparent{opacity:0}.input--single{margin-block:0px;padding:0px}.wrapper--active .input-single{cursor:text}.input--hidden{pointer-events:none;inline-size:0px;min-inline-size:0px;opacity:0}.input--icon{padding-block:0;padding-inline:var(--calcite-combobox-item-spacing-unit-l)}.input-wrap{display:-ms-flexbox;display:flex;-ms-flex-positive:1;flex-grow:1}.input-wrap--single{-ms-flex:1 1 0%;flex:1 1 0%;overflow:hidden}.label{pointer-events:none;display:-ms-flexbox;display:flex;max-inline-size:100%;-ms-flex:1 1 auto;flex:1 1 auto;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;padding:0px;font-weight:var(--calcite-font-weight-normal);block-size:var(--calcite-combobox-input-height);line-height:var(--calcite-combobox-input-height)}.label--spaced{padding-block:0px;padding-inline:var(--calcite-combobox-item-spacing-unit-l)}.icon-end,.icon-start{display:-ms-flexbox;display:flex;inline-size:1rem;cursor:pointer;-ms-flex-align:center;align-items:center}.icon-end{-ms-flex:none;flex:none}.floating-ui-container{inline-size:100%;display:block;position:absolute;z-index:900;-webkit-transform:scale(0);transform:scale(0);visibility:hidden;pointer-events:none}.floating-ui-container .calcite-floating-ui-anim{position:relative;z-index:1;-webkit-transition:var(--calcite-floating-ui-transition);transition:var(--calcite-floating-ui-transition);visibility:hidden;-webkit-transition-property:visibility, opacity, -webkit-transform;transition-property:visibility, opacity, -webkit-transform;transition-property:transform, visibility, opacity;transition-property:transform, visibility, opacity, -webkit-transform;opacity:0;-webkit-box-shadow:0 0 16px 0 rgba(0, 0, 0, 0.16);box-shadow:0 0 16px 0 rgba(0, 0, 0, 0.16);border-radius:0.25rem}.floating-ui-container[data-placement^=bottom] .calcite-floating-ui-anim{-webkit-transform:translateY(-5px);transform:translateY(-5px)}.floating-ui-container[data-placement^=top] .calcite-floating-ui-anim{-webkit-transform:translateY(5px);transform:translateY(5px)}.floating-ui-container[data-placement^=left] .calcite-floating-ui-anim{-webkit-transform:translateX(5px);transform:translateX(5px)}.floating-ui-container[data-placement^=right] .calcite-floating-ui-anim{-webkit-transform:translateX(-5px);transform:translateX(-5px)}.floating-ui-container[data-placement] .calcite-floating-ui-anim--active{opacity:1;visibility:visible;-webkit-transform:translate(0);transform:translate(0)}.floating-ui-container--active{pointer-events:initial;visibility:visible}@media (forced-colors: active){.wrapper,.floating-ui-container--active{border:1px solid canvasText}}.screen-readers-only{position:absolute;inline-size:1px;block-size:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0, 0, 0, 0);white-space:nowrap;border-width:0}.list-container{max-block-size:45vh;overflow-y:auto;background-color:var(--calcite-ui-foreground-1);inline-size:var(--calcite-dropdown-width)}.list{margin:0px;display:block;padding:0px}.list--hide{block-size:0px;overflow:hidden}.chip{margin-block:calc(var(--calcite-combobox-item-spacing-unit-s) / 4);margin-inline:0 var(--calcite-combobox-item-spacing-unit-s);max-inline-size:100%}.chip--active{background-color:var(--calcite-ui-foreground-3)}.item{display:block}::slotted(input[slot=hidden-form-input]){margin:0 !important;opacity:0 !important;outline:none !important;padding:0 !important;position:absolute !important;inset:0 !important;-webkit-transform:none !important;transform:none !important;-webkit-appearance:none !important;z-index:-1 !important}";
|
|
9388
9403
|
|
|
9389
9404
|
const isGroup = (el) => el.tagName === ComboboxItemGroup$1;
|
|
9390
9405
|
const itemUidPrefix = "combobox-item-";
|
|
@@ -9446,7 +9461,7 @@ const Combobox = class extends HTMLElement$1 {
|
|
|
9446
9461
|
*
|
|
9447
9462
|
* @default "Remove tag"
|
|
9448
9463
|
*/
|
|
9449
|
-
this.intlRemoveTag = TEXT$
|
|
9464
|
+
this.intlRemoveTag = TEXT$i.removeTag;
|
|
9450
9465
|
//--------------------------------------------------------------------------
|
|
9451
9466
|
//
|
|
9452
9467
|
// Private State/Props
|
|
@@ -10196,7 +10211,7 @@ const Combobox = class extends HTMLElement$1 {
|
|
|
10196
10211
|
static get style() { return comboboxCss; }
|
|
10197
10212
|
};
|
|
10198
10213
|
|
|
10199
|
-
const CSS$
|
|
10214
|
+
const CSS$F = {
|
|
10200
10215
|
icon: "icon",
|
|
10201
10216
|
iconActive: "icon--active",
|
|
10202
10217
|
custom: "icon--custom",
|
|
@@ -10287,18 +10302,18 @@ const ComboboxItem = class extends HTMLElement$1 {
|
|
|
10287
10302
|
// --------------------------------------------------------------------------
|
|
10288
10303
|
renderIcon(isSingle) {
|
|
10289
10304
|
const { icon, disabled, selected } = this;
|
|
10290
|
-
const level = `${CSS$
|
|
10305
|
+
const level = `${CSS$F.icon}--indent`;
|
|
10291
10306
|
const defaultIcon = isSingle ? "dot" : "check";
|
|
10292
10307
|
const iconPath = disabled ? "circle-disallowed" : defaultIcon;
|
|
10293
10308
|
const showDot = isSingle && !icon && !disabled;
|
|
10294
10309
|
return showDot ? (h("span", { class: {
|
|
10295
|
-
[CSS$
|
|
10296
|
-
[CSS$
|
|
10310
|
+
[CSS$F.icon]: true,
|
|
10311
|
+
[CSS$F.dot]: true,
|
|
10297
10312
|
[level]: true
|
|
10298
10313
|
} })) : (h("calcite-icon", { class: {
|
|
10299
|
-
[CSS$
|
|
10300
|
-
[CSS$
|
|
10301
|
-
[CSS$
|
|
10314
|
+
[CSS$F.icon]: !icon,
|
|
10315
|
+
[CSS$F.custom]: !!icon,
|
|
10316
|
+
[CSS$F.iconActive]: icon && selected,
|
|
10302
10317
|
[level]: true
|
|
10303
10318
|
}, icon: icon || iconPath, scale: "s" }));
|
|
10304
10319
|
}
|
|
@@ -10311,13 +10326,13 @@ const ComboboxItem = class extends HTMLElement$1 {
|
|
|
10311
10326
|
render() {
|
|
10312
10327
|
const isSingleSelect = getElementProp(this.el, "selection-mode", "multi") === "single";
|
|
10313
10328
|
const classes = {
|
|
10314
|
-
[CSS$
|
|
10315
|
-
[CSS$
|
|
10316
|
-
[CSS$
|
|
10317
|
-
[CSS$
|
|
10329
|
+
[CSS$F.label]: true,
|
|
10330
|
+
[CSS$F.selected]: this.selected,
|
|
10331
|
+
[CSS$F.active]: this.active,
|
|
10332
|
+
[CSS$F.single]: isSingleSelect
|
|
10318
10333
|
};
|
|
10319
10334
|
const depth = getDepth(this.el);
|
|
10320
|
-
return (h(Host, { "aria-hidden": "true" }, h("div", { class: `container scale--${this.scale}`, style: { "--calcite-combobox-item-spacing-indent-multiplier": `${depth}` } }, h("li", { class: classes, id: this.guid, onClick: this.itemClickHandler }, this.renderIcon(isSingleSelect), h("span", { class: CSS$
|
|
10335
|
+
return (h(Host, { "aria-hidden": "true" }, h("div", { class: `container scale--${this.scale}`, style: { "--calcite-combobox-item-spacing-indent-multiplier": `${depth}` } }, h("li", { class: classes, id: this.guid, onClick: this.itemClickHandler }, this.renderIcon(isSingleSelect), h("span", { class: CSS$F.title }, this.textLabel)), this.renderChildren())));
|
|
10321
10336
|
}
|
|
10322
10337
|
get el() { return this; }
|
|
10323
10338
|
static get watchers() { return {
|
|
@@ -10326,7 +10341,7 @@ const ComboboxItem = class extends HTMLElement$1 {
|
|
|
10326
10341
|
static get style() { return comboboxItemCss; }
|
|
10327
10342
|
};
|
|
10328
10343
|
|
|
10329
|
-
const CSS$
|
|
10344
|
+
const CSS$E = {
|
|
10330
10345
|
list: "list",
|
|
10331
10346
|
label: "label",
|
|
10332
10347
|
title: "title"
|
|
@@ -10358,8 +10373,8 @@ const ComboboxItemGroup = class extends HTMLElement$1 {
|
|
|
10358
10373
|
// --------------------------------------------------------------------------
|
|
10359
10374
|
render() {
|
|
10360
10375
|
const { el, scale } = this;
|
|
10361
|
-
const indent = `${CSS$
|
|
10362
|
-
return (h("ul", { "aria-labelledby": this.guid, class: { [CSS$
|
|
10376
|
+
const indent = `${CSS$E.label}--indent-${getDepth(el)}`;
|
|
10377
|
+
return (h("ul", { "aria-labelledby": this.guid, class: { [CSS$E.list]: true, [`scale--${scale}`]: true }, role: "group" }, h("li", { class: { [CSS$E.label]: true, [indent]: true }, id: this.guid, role: "presentation" }, h("span", { class: CSS$E.title }, this.label)), h("slot", null)));
|
|
10363
10378
|
}
|
|
10364
10379
|
get el() { return this; }
|
|
10365
10380
|
static get style() { return comboboxItemGroupCss; }
|
|
@@ -10864,7 +10879,7 @@ function getDaysDiff(date1, date2) {
|
|
|
10864
10879
|
}
|
|
10865
10880
|
|
|
10866
10881
|
const HEADING_LEVEL$6 = 2;
|
|
10867
|
-
const TEXT$
|
|
10882
|
+
const TEXT$h = {
|
|
10868
10883
|
nextMonth: "Next month",
|
|
10869
10884
|
prevMonth: "Previous month",
|
|
10870
10885
|
year: "Year"
|
|
@@ -10884,19 +10899,19 @@ const DatePicker = class extends HTMLElement$1 {
|
|
|
10884
10899
|
*
|
|
10885
10900
|
* @default "Previous month"
|
|
10886
10901
|
*/
|
|
10887
|
-
this.intlPrevMonth = TEXT$
|
|
10902
|
+
this.intlPrevMonth = TEXT$h.prevMonth;
|
|
10888
10903
|
/**
|
|
10889
10904
|
* Localized string for "next month" (used for aria label)
|
|
10890
10905
|
*
|
|
10891
10906
|
* @default "Next month"
|
|
10892
10907
|
*/
|
|
10893
|
-
this.intlNextMonth = TEXT$
|
|
10908
|
+
this.intlNextMonth = TEXT$h.nextMonth;
|
|
10894
10909
|
/**
|
|
10895
10910
|
* Localized string for "year" (used for aria label)
|
|
10896
10911
|
*
|
|
10897
10912
|
* @default "Year"
|
|
10898
10913
|
*/
|
|
10899
|
-
this.intlYear = TEXT$
|
|
10914
|
+
this.intlYear = TEXT$h.year;
|
|
10900
10915
|
/** BCP 47 language tag for desired language and country format */
|
|
10901
10916
|
this.locale = document.documentElement.lang || "en";
|
|
10902
10917
|
/** specify the scale of the date picker */
|
|
@@ -11824,11 +11839,11 @@ const DatePickerMonthHeader = class extends HTMLElement$1 {
|
|
|
11824
11839
|
static get style() { return datePickerMonthHeaderCss; }
|
|
11825
11840
|
};
|
|
11826
11841
|
|
|
11827
|
-
const SLOTS$
|
|
11842
|
+
const SLOTS$j = {
|
|
11828
11843
|
dropdownTrigger: "dropdown-trigger"
|
|
11829
11844
|
};
|
|
11830
11845
|
|
|
11831
|
-
const dropdownCss = "@-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-floating-ui-transition:var(--calcite-animation-timing)}:host([hidden]){display: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{display:-ms-inline-flexbox;display:inline-flex;-ms-flex:0 1 auto;flex:0 1 auto}:host([disabled]) ::slotted([calcite-hydrated][disabled]),:host([disabled]) [calcite-hydrated][disabled]{opacity:1}:host .calcite-dropdown-wrapper{display:block;position:absolute;z-index:900;-webkit-transform:scale(0);transform:scale(0);visibility:hidden;pointer-events:none}.calcite-dropdown-wrapper .calcite-floating-ui-anim{position:relative;z-index:1;-webkit-transition:var(--calcite-floating-ui-transition);transition:var(--calcite-floating-ui-transition);visibility:hidden;-webkit-transition-property:visibility, opacity, -webkit-transform;transition-property:visibility, opacity, -webkit-transform;transition-property:transform, visibility, opacity;transition-property:transform, visibility, opacity, -webkit-transform;opacity:0;-webkit-box-shadow:0 0 16px 0 rgba(0, 0, 0, 0.16);box-shadow:0 0 16px 0 rgba(0, 0, 0, 0.16);border-radius:0.25rem}.calcite-dropdown-wrapper[data-placement^=bottom] .calcite-floating-ui-anim{-webkit-transform:translateY(-5px);transform:translateY(-5px)}.calcite-dropdown-wrapper[data-placement^=top] .calcite-floating-ui-anim{-webkit-transform:translateY(5px);transform:translateY(5px)}.calcite-dropdown-wrapper[data-placement^=left] .calcite-floating-ui-anim{-webkit-transform:translateX(5px);transform:translateX(5px)}.calcite-dropdown-wrapper[data-placement^=right] .calcite-floating-ui-anim{-webkit-transform:translateX(-5px);transform:translateX(-5px)}.calcite-dropdown-wrapper[data-placement] .calcite-floating-ui-anim--active{opacity:1;visibility:visible;-webkit-transform:translate(0);transform:translate(0)}:host([open]) .calcite-dropdown-wrapper{pointer-events:initial;visibility:visible}:host .calcite-dropdown-content{inline-size:auto;overflow-y:auto;overflow-x:hidden;background-color:var(--calcite-ui-foreground-1);
|
|
11846
|
+
const dropdownCss = "@-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-floating-ui-transition:var(--calcite-animation-timing)}:host([hidden]){display: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{display:-ms-inline-flexbox;display:inline-flex;-ms-flex:0 1 auto;flex:0 1 auto}:host([disabled]) ::slotted([calcite-hydrated][disabled]),:host([disabled]) [calcite-hydrated][disabled]{opacity:1}:host .calcite-dropdown-wrapper{display:block;position:absolute;z-index:900;-webkit-transform:scale(0);transform:scale(0);visibility:hidden;pointer-events:none}.calcite-dropdown-wrapper .calcite-floating-ui-anim{position:relative;z-index:1;-webkit-transition:var(--calcite-floating-ui-transition);transition:var(--calcite-floating-ui-transition);visibility:hidden;-webkit-transition-property:visibility, opacity, -webkit-transform;transition-property:visibility, opacity, -webkit-transform;transition-property:transform, visibility, opacity;transition-property:transform, visibility, opacity, -webkit-transform;opacity:0;-webkit-box-shadow:0 0 16px 0 rgba(0, 0, 0, 0.16);box-shadow:0 0 16px 0 rgba(0, 0, 0, 0.16);border-radius:0.25rem}.calcite-dropdown-wrapper[data-placement^=bottom] .calcite-floating-ui-anim{-webkit-transform:translateY(-5px);transform:translateY(-5px)}.calcite-dropdown-wrapper[data-placement^=top] .calcite-floating-ui-anim{-webkit-transform:translateY(5px);transform:translateY(5px)}.calcite-dropdown-wrapper[data-placement^=left] .calcite-floating-ui-anim{-webkit-transform:translateX(5px);transform:translateX(5px)}.calcite-dropdown-wrapper[data-placement^=right] .calcite-floating-ui-anim{-webkit-transform:translateX(-5px);transform:translateX(-5px)}.calcite-dropdown-wrapper[data-placement] .calcite-floating-ui-anim--active{opacity:1;visibility:visible;-webkit-transform:translate(0);transform:translate(0)}:host([open]) .calcite-dropdown-wrapper{pointer-events:initial;visibility:visible}:host .calcite-dropdown-content{max-block-size:45vh;inline-size:auto;overflow-y:auto;overflow-x:hidden;background-color:var(--calcite-ui-foreground-1);inline-size:var(--calcite-dropdown-width)}.calcite-dropdown-trigger-container{position:relative;display:-ms-flexbox;display:flex;-ms-flex:1 1 auto;flex:1 1 auto}@media (forced-colors: active){:host([open]) .calcite-dropdown-wrapper{border:1px solid canvasText}}:host([width=s]){--calcite-dropdown-width:12rem}:host([width=m]){--calcite-dropdown-width:14rem}:host([width=l]){--calcite-dropdown-width:16rem}";
|
|
11832
11847
|
|
|
11833
11848
|
const Dropdown = class extends HTMLElement$1 {
|
|
11834
11849
|
constructor() {
|
|
@@ -12074,7 +12089,7 @@ const Dropdown = class extends HTMLElement$1 {
|
|
|
12074
12089
|
}
|
|
12075
12090
|
render() {
|
|
12076
12091
|
const { open, guid } = this;
|
|
12077
|
-
return (h(Host, null, h("div", { class: "calcite-dropdown-trigger-container", id: `${guid}-menubutton`, onClick: this.openCalciteDropdown, onKeyDown: this.keyDownHandler, ref: this.setReferenceEl }, h("slot", { "aria-controls": `${guid}-menu`, "aria-expanded": toAriaBoolean(open), "aria-haspopup": "menu", name: SLOTS$
|
|
12092
|
+
return (h(Host, null, h("div", { class: "calcite-dropdown-trigger-container", id: `${guid}-menubutton`, onClick: this.openCalciteDropdown, onKeyDown: this.keyDownHandler, ref: this.setReferenceEl }, h("slot", { "aria-controls": `${guid}-menu`, "aria-expanded": toAriaBoolean(open), "aria-haspopup": "menu", name: SLOTS$j.dropdownTrigger, onSlotchange: this.updateTriggers })), h("div", { "aria-hidden": toAriaBoolean(!open), class: "calcite-dropdown-wrapper", ref: this.setFloatingEl }, h("div", { "aria-labelledby": `${guid}-menubutton`, class: {
|
|
12078
12093
|
["calcite-dropdown-content"]: true,
|
|
12079
12094
|
[FloatingCSS.animation]: true,
|
|
12080
12095
|
[FloatingCSS.animationActive]: open
|
|
@@ -12162,7 +12177,9 @@ const Dropdown = class extends HTMLElement$1 {
|
|
|
12162
12177
|
handleItemSelect(event) {
|
|
12163
12178
|
this.updateSelectedItems();
|
|
12164
12179
|
event.stopPropagation();
|
|
12165
|
-
this.calciteDropdownSelect.emit(
|
|
12180
|
+
this.calciteDropdownSelect.emit({
|
|
12181
|
+
item: event.detail.requestedDropdownItem
|
|
12182
|
+
});
|
|
12166
12183
|
if (!this.disableCloseOnSelect ||
|
|
12167
12184
|
event.detail.requestedDropdownGroup.selectionMode === "none") {
|
|
12168
12185
|
this.closeCalciteDropdown();
|
|
@@ -12256,7 +12273,7 @@ const Dropdown = class extends HTMLElement$1 {
|
|
|
12256
12273
|
static get style() { return dropdownCss; }
|
|
12257
12274
|
};
|
|
12258
12275
|
|
|
12259
|
-
const CSS$
|
|
12276
|
+
const CSS$D = {
|
|
12260
12277
|
containerSmall: "container--s",
|
|
12261
12278
|
containerMedium: "container--m",
|
|
12262
12279
|
containerLarge: "container--l"
|
|
@@ -12290,9 +12307,9 @@ const DropdownGroup = class extends HTMLElement$1 {
|
|
|
12290
12307
|
const dropdownSeparator = this.groupPosition > 0 ? h("div", { class: "dropdown-separator", role: "separator" }) : null;
|
|
12291
12308
|
return (h(Host, { "aria-label": this.groupTitle, role: "group" }, h("div", { class: {
|
|
12292
12309
|
container: true,
|
|
12293
|
-
[CSS$
|
|
12294
|
-
[CSS$
|
|
12295
|
-
[CSS$
|
|
12310
|
+
[CSS$D.containerSmall]: scale === "s",
|
|
12311
|
+
[CSS$D.containerMedium]: scale === "m",
|
|
12312
|
+
[CSS$D.containerLarge]: scale === "l"
|
|
12296
12313
|
}, title: this.groupTitle }, dropdownSeparator, groupTitle, h("slot", null))));
|
|
12297
12314
|
}
|
|
12298
12315
|
//--------------------------------------------------------------------------
|
|
@@ -12320,7 +12337,7 @@ const DropdownGroup = class extends HTMLElement$1 {
|
|
|
12320
12337
|
static get style() { return dropdownGroupCss; }
|
|
12321
12338
|
};
|
|
12322
12339
|
|
|
12323
|
-
const CSS$
|
|
12340
|
+
const CSS$C = {
|
|
12324
12341
|
containerLink: "container--link",
|
|
12325
12342
|
containerSmall: "container--s",
|
|
12326
12343
|
containerMedium: "container--m",
|
|
@@ -12392,13 +12409,13 @@ const DropdownItem = class extends HTMLElement$1 {
|
|
|
12392
12409
|
const itemAria = this.selectionMode !== "none" ? toAriaBoolean(this.active) : null;
|
|
12393
12410
|
return (h(Host, { "aria-checked": itemAria, role: itemRole, tabindex: "0" }, h("div", { class: {
|
|
12394
12411
|
container: true,
|
|
12395
|
-
[CSS$
|
|
12396
|
-
[CSS$
|
|
12397
|
-
[CSS$
|
|
12398
|
-
[CSS$
|
|
12399
|
-
[CSS$
|
|
12400
|
-
[CSS$
|
|
12401
|
-
[CSS$
|
|
12412
|
+
[CSS$C.containerLink]: !!this.href,
|
|
12413
|
+
[CSS$C.containerSmall]: scale === "s",
|
|
12414
|
+
[CSS$C.containerMedium]: scale === "m",
|
|
12415
|
+
[CSS$C.containerLarge]: scale === "l",
|
|
12416
|
+
[CSS$C.containerMulti]: this.selectionMode === "multi",
|
|
12417
|
+
[CSS$C.containerSingle]: this.selectionMode === "single",
|
|
12418
|
+
[CSS$C.containerNone]: this.selectionMode === "none"
|
|
12402
12419
|
} }, this.selectionMode !== "none" ? (h("calcite-icon", { class: "dropdown-item-icon", icon: this.selectionMode === "multi" ? "check" : "bullet-point", scale: "s" })) : null, contentEl)));
|
|
12403
12420
|
}
|
|
12404
12421
|
//--------------------------------------------------------------------------
|
|
@@ -12486,7 +12503,7 @@ const DropdownItem = class extends HTMLElement$1 {
|
|
|
12486
12503
|
static get style() { return dropdownItemCss; }
|
|
12487
12504
|
};
|
|
12488
12505
|
|
|
12489
|
-
const CSS$
|
|
12506
|
+
const CSS$B = {
|
|
12490
12507
|
button: "button"
|
|
12491
12508
|
};
|
|
12492
12509
|
const ICONS$9 = {
|
|
@@ -12561,7 +12578,7 @@ const Fab = class extends HTMLElement$1 {
|
|
|
12561
12578
|
render() {
|
|
12562
12579
|
const { appearance, color, disabled, loading, scale, textEnabled, icon, label, text } = this;
|
|
12563
12580
|
const title = !textEnabled ? label || text || null : null;
|
|
12564
|
-
return (h("calcite-button", { appearance: appearance === "solid" ? "solid" : "outline", class: CSS$
|
|
12581
|
+
return (h("calcite-button", { appearance: appearance === "solid" ? "solid" : "outline", class: CSS$B.button, color: color, disabled: disabled, iconStart: icon, label: label, loading: loading, ref: (buttonEl) => {
|
|
12565
12582
|
this.buttonEl = buttonEl;
|
|
12566
12583
|
}, round: true, scale: scale, title: title, type: "button", width: "auto" }, this.textEnabled ? this.text : null));
|
|
12567
12584
|
}
|
|
@@ -12569,11 +12586,11 @@ const Fab = class extends HTMLElement$1 {
|
|
|
12569
12586
|
static get style() { return fabCss; }
|
|
12570
12587
|
};
|
|
12571
12588
|
|
|
12572
|
-
const CSS$
|
|
12589
|
+
const CSS$A = {
|
|
12573
12590
|
container: "container",
|
|
12574
12591
|
searchIcon: "search-icon"
|
|
12575
12592
|
};
|
|
12576
|
-
const TEXT$
|
|
12593
|
+
const TEXT$g = {
|
|
12577
12594
|
filterLabel: "Filter",
|
|
12578
12595
|
clear: "Clear filter"
|
|
12579
12596
|
};
|
|
@@ -12689,7 +12706,7 @@ const Filter = class extends HTMLElement$1 {
|
|
|
12689
12706
|
// --------------------------------------------------------------------------
|
|
12690
12707
|
render() {
|
|
12691
12708
|
const { disabled, scale } = this;
|
|
12692
|
-
return (h(Fragment, null, h("div", { class: CSS$
|
|
12709
|
+
return (h(Fragment, null, h("div", { class: CSS$A.container }, h("label", null, h("calcite-input", { "aria-label": this.intlLabel || TEXT$g.filterLabel, clearable: true, disabled: disabled, icon: ICONS$8.search, intlClear: this.intlClear || TEXT$g.clear, onCalciteInputInput: this.inputHandler, onKeyDown: this.keyDownHandler, placeholder: this.placeholder, ref: (el) => {
|
|
12693
12710
|
this.textInput = el;
|
|
12694
12711
|
}, scale: scale, type: "text", value: this.value })))));
|
|
12695
12712
|
}
|
|
@@ -12701,7 +12718,7 @@ const Filter = class extends HTMLElement$1 {
|
|
|
12701
12718
|
static get style() { return filterCss; }
|
|
12702
12719
|
};
|
|
12703
12720
|
|
|
12704
|
-
const CSS$
|
|
12721
|
+
const CSS$z = {
|
|
12705
12722
|
frame: "frame",
|
|
12706
12723
|
frameAdvancing: "frame--advancing",
|
|
12707
12724
|
frameRetreating: "frame--retreating"
|
|
@@ -12802,9 +12819,9 @@ const Flow = class extends HTMLElement$1 {
|
|
|
12802
12819
|
render() {
|
|
12803
12820
|
const { flowDirection } = this;
|
|
12804
12821
|
const frameDirectionClasses = {
|
|
12805
|
-
[CSS$
|
|
12806
|
-
[CSS$
|
|
12807
|
-
[CSS$
|
|
12822
|
+
[CSS$z.frame]: true,
|
|
12823
|
+
[CSS$z.frameAdvancing]: flowDirection === "advancing",
|
|
12824
|
+
[CSS$z.frameRetreating]: flowDirection === "retreating"
|
|
12808
12825
|
};
|
|
12809
12826
|
return (h("div", { class: frameDirectionClasses }, h("slot", null)));
|
|
12810
12827
|
}
|
|
@@ -13030,7 +13047,7 @@ const Graph = class extends HTMLElement$1 {
|
|
|
13030
13047
|
static get style() { return graphCss; }
|
|
13031
13048
|
};
|
|
13032
13049
|
|
|
13033
|
-
const CSS$
|
|
13050
|
+
const CSS$y = {
|
|
13034
13051
|
handle: "handle",
|
|
13035
13052
|
handleActivated: "handle--activated"
|
|
13036
13053
|
};
|
|
@@ -13101,7 +13118,7 @@ const Handle = class extends HTMLElement$1 {
|
|
|
13101
13118
|
render() {
|
|
13102
13119
|
return (
|
|
13103
13120
|
// Needs to be a span because of https://github.com/SortableJS/Sortable/issues/1486
|
|
13104
|
-
h("span", { "aria-pressed": toAriaBoolean(this.activated), class: { [CSS$
|
|
13121
|
+
h("span", { "aria-pressed": toAriaBoolean(this.activated), class: { [CSS$y.handle]: true, [CSS$y.handleActivated]: this.activated }, onBlur: this.handleBlur, onKeyDown: this.handleKeyDown, ref: (el) => {
|
|
13105
13122
|
this.handleButton = el;
|
|
13106
13123
|
}, role: "button", tabindex: "0", title: this.textTitle }, h("calcite-icon", { icon: ICONS$7.drag, scale: "s" })));
|
|
13107
13124
|
}
|
|
@@ -13109,7 +13126,7 @@ const Handle = class extends HTMLElement$1 {
|
|
|
13109
13126
|
static get style() { return handleCss; }
|
|
13110
13127
|
};
|
|
13111
13128
|
|
|
13112
|
-
const CSS$
|
|
13129
|
+
const CSS$x = {
|
|
13113
13130
|
icon: "icon",
|
|
13114
13131
|
flipRtl: "flip-rtl"
|
|
13115
13132
|
};
|
|
@@ -13229,7 +13246,7 @@ const Icon = class extends HTMLElement$1 {
|
|
|
13229
13246
|
const semantic = !!textLabel;
|
|
13230
13247
|
const paths = [].concat(pathData || "");
|
|
13231
13248
|
return (h(Host, { "aria-hidden": toAriaBoolean(!semantic), "aria-label": semantic ? textLabel : null, role: semantic ? "img" : null }, h("svg", { class: {
|
|
13232
|
-
[CSS$
|
|
13249
|
+
[CSS$x.flipRtl]: dir === "rtl" && flipRtl,
|
|
13233
13250
|
svg: true
|
|
13234
13251
|
}, 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 }))))));
|
|
13235
13252
|
}
|
|
@@ -13270,7 +13287,7 @@ const Icon = class extends HTMLElement$1 {
|
|
|
13270
13287
|
static get style() { return iconCss; }
|
|
13271
13288
|
};
|
|
13272
13289
|
|
|
13273
|
-
const CSS$
|
|
13290
|
+
const CSS$w = {
|
|
13274
13291
|
wrapper: "wrapper",
|
|
13275
13292
|
confirmChangesButton: "confirm-changes-button",
|
|
13276
13293
|
cancelEditingButton: "cancel-editing-button",
|
|
@@ -13279,7 +13296,7 @@ const CSS$v = {
|
|
|
13279
13296
|
enableEditingButton: "enable-editing-button",
|
|
13280
13297
|
controlsWrapper: "controls-wrapper"
|
|
13281
13298
|
};
|
|
13282
|
-
const TEXT$
|
|
13299
|
+
const TEXT$f = {
|
|
13283
13300
|
intlEnablingEditing: "Click to edit",
|
|
13284
13301
|
intlCancelEditing: "Cancel",
|
|
13285
13302
|
intlConfirmChanges: "Save"
|
|
@@ -13313,19 +13330,19 @@ const InlineEditable = class extends HTMLElement$1 {
|
|
|
13313
13330
|
*
|
|
13314
13331
|
* @default "Click to edit"
|
|
13315
13332
|
*/
|
|
13316
|
-
this.intlEnableEditing = TEXT$
|
|
13333
|
+
this.intlEnableEditing = TEXT$f.intlEnablingEditing;
|
|
13317
13334
|
/**
|
|
13318
13335
|
* specify text to be user for the cancel editing button's aria-label, defaults to `Cancel`
|
|
13319
13336
|
*
|
|
13320
13337
|
* @default "Cancel"
|
|
13321
13338
|
*/
|
|
13322
|
-
this.intlCancelEditing = TEXT$
|
|
13339
|
+
this.intlCancelEditing = TEXT$f.intlCancelEditing;
|
|
13323
13340
|
/**
|
|
13324
13341
|
* specify text to be user for the confirm changes button's aria-label, defaults to `Save`
|
|
13325
13342
|
*
|
|
13326
13343
|
* @default "Save"
|
|
13327
13344
|
*/
|
|
13328
|
-
this.intlConfirmChanges = TEXT$
|
|
13345
|
+
this.intlConfirmChanges = TEXT$f.intlConfirmChanges;
|
|
13329
13346
|
this.mutationObserver = createObserver("mutation", () => this.mutationObserverCallback());
|
|
13330
13347
|
this.enableEditing = () => {
|
|
13331
13348
|
var _a, _b;
|
|
@@ -13430,12 +13447,12 @@ const InlineEditable = class extends HTMLElement$1 {
|
|
|
13430
13447
|
updateHostInteraction(this);
|
|
13431
13448
|
}
|
|
13432
13449
|
render() {
|
|
13433
|
-
return (h("div", { class: CSS$
|
|
13450
|
+
return (h("div", { class: CSS$w.wrapper, onClick: this.enableEditingHandler, onKeyDown: this.escapeKeyHandler }, h("div", { class: CSS$w.inputWrapper }, h("slot", null)), h("div", { class: CSS$w.controlsWrapper }, h("calcite-button", { appearance: "transparent", class: CSS$w.enableEditingButton, color: "neutral", disabled: this.disabled, iconStart: "pencil", label: this.intlEnableEditing, onClick: this.enableEditingHandler, ref: (el) => (this.enableEditingButton = el), scale: this.scale, style: {
|
|
13434
13451
|
opacity: this.editingEnabled ? "0" : "1",
|
|
13435
13452
|
width: this.editingEnabled ? "0" : "inherit"
|
|
13436
13453
|
}, type: "button" }), this.shouldShowControls && [
|
|
13437
|
-
h("div", { class: CSS$
|
|
13438
|
-
h("calcite-button", { appearance: "solid", class: CSS$
|
|
13454
|
+
h("div", { class: CSS$w.cancelEditingButtonWrapper }, h("calcite-button", { appearance: "transparent", class: CSS$w.cancelEditingButton, color: "neutral", disabled: this.disabled, iconStart: "x", label: this.intlCancelEditing, onClick: this.cancelEditingHandler, ref: (el) => (this.cancelEditingButton = el), scale: this.scale, type: "button" })),
|
|
13455
|
+
h("calcite-button", { appearance: "solid", class: CSS$w.confirmChangesButton, color: "blue", disabled: this.disabled, iconStart: "check", label: this.intlConfirmChanges, loading: this.loading, onClick: this.confirmChangesHandler, ref: (el) => (this.confirmEditingButton = el), scale: this.scale, type: "button" })
|
|
13439
13456
|
])));
|
|
13440
13457
|
}
|
|
13441
13458
|
//--------------------------------------------------------------------------
|
|
@@ -13498,7 +13515,7 @@ const InlineEditable = class extends HTMLElement$1 {
|
|
|
13498
13515
|
static get style() { return inlineEditableCss; }
|
|
13499
13516
|
};
|
|
13500
13517
|
|
|
13501
|
-
const CSS$
|
|
13518
|
+
const CSS$v = {
|
|
13502
13519
|
loader: "loader",
|
|
13503
13520
|
clearButton: "clear-button",
|
|
13504
13521
|
editingEnabled: "editing-enabled",
|
|
@@ -13522,10 +13539,10 @@ const INPUT_TYPE_ICONS = {
|
|
|
13522
13539
|
time: "clock",
|
|
13523
13540
|
search: "search"
|
|
13524
13541
|
};
|
|
13525
|
-
const SLOTS$
|
|
13542
|
+
const SLOTS$i = {
|
|
13526
13543
|
action: "action"
|
|
13527
13544
|
};
|
|
13528
|
-
const TEXT$
|
|
13545
|
+
const TEXT$e = {
|
|
13529
13546
|
clear: "Clear value"
|
|
13530
13547
|
};
|
|
13531
13548
|
|
|
@@ -13578,7 +13595,7 @@ const Input = class extends HTMLElement$1 {
|
|
|
13578
13595
|
*
|
|
13579
13596
|
* @default "Loading"
|
|
13580
13597
|
*/
|
|
13581
|
-
this.intlLoading = TEXT$
|
|
13598
|
+
this.intlLoading = TEXT$u.loading;
|
|
13582
13599
|
/** When true, the icon is flipped in RTL. */
|
|
13583
13600
|
this.iconFlipRtl = false;
|
|
13584
13601
|
/** When true, the component is in the loading state and `calcite-progress` is displayed. */
|
|
@@ -14057,34 +14074,34 @@ const Input = class extends HTMLElement$1 {
|
|
|
14057
14074
|
// --------------------------------------------------------------------------
|
|
14058
14075
|
render() {
|
|
14059
14076
|
const dir = getElementDir(this.el);
|
|
14060
|
-
const loader = (h("div", { class: CSS$
|
|
14061
|
-
const inputClearButton = (h("button", { "aria-label": this.intlClear || TEXT$
|
|
14062
|
-
const iconEl = (h("calcite-icon", { class: CSS$
|
|
14077
|
+
const loader = (h("div", { class: CSS$v.loader }, h("calcite-progress", { label: this.intlLoading, type: "indeterminate" })));
|
|
14078
|
+
const inputClearButton = (h("button", { "aria-label": this.intlClear || TEXT$e.clear, class: CSS$v.clearButton, disabled: this.disabled || this.readOnly, onClick: this.clearInputValue, tabIndex: this.disabled ? -1 : 0, type: "button" }, h("calcite-icon", { icon: "x", scale: "s" })));
|
|
14079
|
+
const iconEl = (h("calcite-icon", { class: CSS$v.inputIcon, flipRtl: this.iconFlipRtl, icon: this.requestedIcon, scale: "s" }));
|
|
14063
14080
|
const isHorizontalNumberButton = this.numberButtonType === "horizontal";
|
|
14064
14081
|
const numberButtonsHorizontalUp = (h("button", { class: {
|
|
14065
|
-
[CSS$
|
|
14066
|
-
[CSS$
|
|
14082
|
+
[CSS$v.numberButtonItem]: true,
|
|
14083
|
+
[CSS$v.buttonItemHorizontal]: isHorizontalNumberButton
|
|
14067
14084
|
}, "data-adjustment": "up", disabled: this.disabled || this.readOnly, onPointerDown: this.numberButtonPointerDownHandler, onPointerOut: this.numberButtonPointerUpAndOutHandler, onPointerUp: this.numberButtonPointerUpAndOutHandler, tabIndex: -1, type: "button" }, h("calcite-icon", { icon: "chevron-up", scale: "s" })));
|
|
14068
14085
|
const numberButtonsHorizontalDown = (h("button", { class: {
|
|
14069
|
-
[CSS$
|
|
14070
|
-
[CSS$
|
|
14086
|
+
[CSS$v.numberButtonItem]: true,
|
|
14087
|
+
[CSS$v.buttonItemHorizontal]: isHorizontalNumberButton
|
|
14071
14088
|
}, "data-adjustment": "down", disabled: this.disabled || this.readOnly, onPointerDown: this.numberButtonPointerDownHandler, onPointerOut: this.numberButtonPointerUpAndOutHandler, onPointerUp: this.numberButtonPointerUpAndOutHandler, tabIndex: -1, type: "button" }, h("calcite-icon", { icon: "chevron-down", scale: "s" })));
|
|
14072
|
-
const numberButtonsVertical = (h("div", { class: CSS$
|
|
14073
|
-
const prefixText = h("div", { class: CSS$
|
|
14074
|
-
const suffixText = h("div", { class: CSS$
|
|
14089
|
+
const numberButtonsVertical = (h("div", { class: CSS$v.numberButtonWrapper }, numberButtonsHorizontalUp, numberButtonsHorizontalDown));
|
|
14090
|
+
const prefixText = h("div", { class: CSS$v.prefix }, this.prefixText);
|
|
14091
|
+
const suffixText = h("div", { class: CSS$v.suffix }, this.suffixText);
|
|
14075
14092
|
const localeNumberInput = this.type === "number" ? (h("input", { "aria-label": getLabelText(this), autofocus: this.autofocus ? true : null, defaultValue: this.defaultValue, disabled: this.disabled ? true : null, enterKeyHint: this.el.enterKeyHint, inputMode: this.el.inputMode, key: "localized-input", maxLength: this.maxLength, minLength: this.minLength, name: undefined, onBlur: this.inputBlurHandler, onFocus: this.inputFocusHandler, onInput: this.inputNumberInputHandler, onKeyDown: this.inputNumberKeyDownHandler, onKeyUp: this.inputKeyUpHandler, placeholder: this.placeholder || "", readOnly: this.readOnly, ref: this.setChildNumberElRef, type: "text", value: this.localizedValue })) : null;
|
|
14076
14093
|
const childEl = this.type !== "number"
|
|
14077
14094
|
? [
|
|
14078
14095
|
h(this.childElType, { "aria-label": getLabelText(this), autofocus: this.autofocus ? true : null, class: {
|
|
14079
|
-
[CSS$
|
|
14080
|
-
[CSS$
|
|
14096
|
+
[CSS$v.editingEnabled]: this.editingEnabled,
|
|
14097
|
+
[CSS$v.inlineChild]: !!this.inlineEditableEl
|
|
14081
14098
|
}, defaultValue: this.defaultValue, disabled: this.disabled ? true : null, enterKeyHint: this.el.enterKeyHint, inputMode: this.el.inputMode, max: this.maxString, maxLength: this.maxLength, min: this.minString, minLength: this.minLength, name: this.name, onBlur: this.inputBlurHandler, onFocus: this.inputFocusHandler, onInput: this.inputInputHandler, onKeyDown: this.inputKeyDownHandler, onKeyUp: this.inputKeyUpHandler, placeholder: this.placeholder || "", readOnly: this.readOnly, ref: this.setChildElRef, required: this.required ? true : null, step: this.step, tabIndex: this.disabled || (this.inlineEditableEl && !this.editingEnabled) ? -1 : null, type: this.type, value: this.value }),
|
|
14082
|
-
this.isTextarea ? (h("div", { class: CSS$
|
|
14099
|
+
this.isTextarea ? (h("div", { class: CSS$v.resizeIconWrapper }, h("calcite-icon", { icon: "chevron-down", scale: "s" }))) : null
|
|
14083
14100
|
]
|
|
14084
14101
|
: null;
|
|
14085
|
-
return (h(Host, { onClick: this.inputFocusHandler, onKeyDown: this.keyDownHandler }, h("div", { class: { [CSS$
|
|
14102
|
+
return (h(Host, { onClick: this.inputFocusHandler, onKeyDown: this.keyDownHandler }, h("div", { class: { [CSS$v.inputWrapper]: true, [CSS_UTILITY.rtl]: dir === "rtl" } }, this.type === "number" && this.numberButtonType === "horizontal" && !this.readOnly
|
|
14086
14103
|
? numberButtonsHorizontalDown
|
|
14087
|
-
: null, this.prefixText ? prefixText : null, h("div", { class: CSS$
|
|
14104
|
+
: null, this.prefixText ? prefixText : null, h("div", { class: CSS$v.wrapper }, localeNumberInput, childEl, this.isClearable ? inputClearButton : null, this.requestedIcon ? iconEl : null, this.loading ? loader : null), h("div", { class: CSS$v.actionWrapper }, h("slot", { name: SLOTS$i.action })), this.type === "number" && this.numberButtonType === "vertical" && !this.readOnly
|
|
14088
14105
|
? numberButtonsVertical
|
|
14089
14106
|
: null, this.suffixText ? suffixText : null, this.type === "number" && this.numberButtonType === "horizontal" && !this.readOnly
|
|
14090
14107
|
? numberButtonsHorizontalUp
|
|
@@ -14102,7 +14119,7 @@ const Input = class extends HTMLElement$1 {
|
|
|
14102
14119
|
static get style() { return inputCss; }
|
|
14103
14120
|
};
|
|
14104
14121
|
|
|
14105
|
-
const CSS$
|
|
14122
|
+
const CSS$u = {
|
|
14106
14123
|
menu: "menu-container",
|
|
14107
14124
|
menuActive: "menu-container--active"
|
|
14108
14125
|
};
|
|
@@ -14149,19 +14166,19 @@ const InputDatePicker = class extends HTMLElement$1 {
|
|
|
14149
14166
|
*
|
|
14150
14167
|
* @default "Previous month"
|
|
14151
14168
|
*/
|
|
14152
|
-
this.intlPrevMonth = TEXT$
|
|
14169
|
+
this.intlPrevMonth = TEXT$h.prevMonth;
|
|
14153
14170
|
/**
|
|
14154
14171
|
* Localized string for "next month" (used for aria label)
|
|
14155
14172
|
*
|
|
14156
14173
|
* @default "Next month"
|
|
14157
14174
|
*/
|
|
14158
|
-
this.intlNextMonth = TEXT$
|
|
14175
|
+
this.intlNextMonth = TEXT$h.nextMonth;
|
|
14159
14176
|
/**
|
|
14160
14177
|
* Localized string for "year" (used for aria label)
|
|
14161
14178
|
*
|
|
14162
14179
|
* @default "Year"
|
|
14163
14180
|
*/
|
|
14164
|
-
this.intlYear = TEXT$
|
|
14181
|
+
this.intlYear = TEXT$h.year;
|
|
14165
14182
|
/** BCP 47 language tag for desired language and country format */
|
|
14166
14183
|
this.locale = document.documentElement.lang || "en";
|
|
14167
14184
|
/** specify the scale of the date picker */
|
|
@@ -14439,8 +14456,8 @@ const InputDatePicker = class extends HTMLElement$1 {
|
|
|
14439
14456
|
const formattedEndDate = endDate ? endDate.toLocaleDateString(this.locale) : "";
|
|
14440
14457
|
const formattedDate = date ? date.toLocaleDateString(this.locale) : "";
|
|
14441
14458
|
return (h(Host, { onBlur: this.deactivate, onKeyDown: this.keyDownHandler, role: "application" }, this.localeData && (h("div", { "aria-expanded": toAriaBoolean(this.open), 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", onCalciteInputInput: this.inputInput, onCalciteInternalInputBlur: this.inputBlur, onCalciteInternalInputFocus: this.startInputFocus, placeholder: (_a = this.localeData) === null || _a === void 0 ? void 0 : _a.placeholder, readOnly: readOnly, ref: this.setStartInput, scale: this.scale, type: "text", value: formattedDate })), h("div", { "aria-hidden": toAriaBoolean(!this.open), class: {
|
|
14442
|
-
[CSS$
|
|
14443
|
-
[CSS$
|
|
14459
|
+
[CSS$u.menu]: true,
|
|
14460
|
+
[CSS$u.menuActive]: this.open
|
|
14444
14461
|
}, ref: this.setFloatingEl }, h("div", { class: {
|
|
14445
14462
|
["calendar-picker-wrapper"]: true,
|
|
14446
14463
|
["calendar-picker-wrapper--end"]: this.focusedInput === "end",
|
|
@@ -14699,7 +14716,7 @@ const InputMessage = class extends HTMLElement$1 {
|
|
|
14699
14716
|
static get style() { return inputMessageCss; }
|
|
14700
14717
|
};
|
|
14701
14718
|
|
|
14702
|
-
const CSS$
|
|
14719
|
+
const CSS$t = {
|
|
14703
14720
|
loader: "loader",
|
|
14704
14721
|
clearButton: "clear-button",
|
|
14705
14722
|
editingEnabled: "editing-enabled",
|
|
@@ -14715,10 +14732,10 @@ const CSS$s = {
|
|
|
14715
14732
|
resizeIconWrapper: "resize-icon-wrapper",
|
|
14716
14733
|
numberButtonItem: "number-button-item"
|
|
14717
14734
|
};
|
|
14718
|
-
const SLOTS$
|
|
14735
|
+
const SLOTS$h = {
|
|
14719
14736
|
action: "action"
|
|
14720
14737
|
};
|
|
14721
|
-
const TEXT$
|
|
14738
|
+
const TEXT$d = {
|
|
14722
14739
|
clear: "Clear value"
|
|
14723
14740
|
};
|
|
14724
14741
|
|
|
@@ -14771,7 +14788,7 @@ const InputNumber = class extends HTMLElement$1 {
|
|
|
14771
14788
|
*
|
|
14772
14789
|
* @default "Loading"
|
|
14773
14790
|
*/
|
|
14774
|
-
this.intlLoading = TEXT$
|
|
14791
|
+
this.intlLoading = TEXT$u.loading;
|
|
14775
14792
|
/** When true, the icon is flipped in RTL. */
|
|
14776
14793
|
this.iconFlipRtl = false;
|
|
14777
14794
|
/** When true, the component is in the loading state and `calcite-progress` is displayed. */
|
|
@@ -15172,25 +15189,25 @@ const InputNumber = class extends HTMLElement$1 {
|
|
|
15172
15189
|
// --------------------------------------------------------------------------
|
|
15173
15190
|
render() {
|
|
15174
15191
|
const dir = getElementDir(this.el);
|
|
15175
|
-
const loader = (h("div", { class: CSS$
|
|
15176
|
-
const inputClearButton = (h("button", { "aria-label": this.intlClear || TEXT$
|
|
15177
|
-
const iconEl = (h("calcite-icon", { class: CSS$
|
|
15192
|
+
const loader = (h("div", { class: CSS$t.loader }, h("calcite-progress", { label: this.intlLoading, type: "indeterminate" })));
|
|
15193
|
+
const inputClearButton = (h("button", { "aria-label": this.intlClear || TEXT$d.clear, class: CSS$t.clearButton, disabled: this.disabled || this.readOnly, onClick: this.clearInputValue, tabIndex: this.disabled ? -1 : 0, type: "button" }, h("calcite-icon", { icon: "x", scale: "s" })));
|
|
15194
|
+
const iconEl = (h("calcite-icon", { class: CSS$t.inputIcon, flipRtl: this.iconFlipRtl, icon: this.requestedIcon, scale: "s" }));
|
|
15178
15195
|
const isHorizontalNumberButton = this.numberButtonType === "horizontal";
|
|
15179
15196
|
const numberButtonsHorizontalUp = (h("button", { class: {
|
|
15180
|
-
[CSS$
|
|
15181
|
-
[CSS$
|
|
15197
|
+
[CSS$t.numberButtonItem]: true,
|
|
15198
|
+
[CSS$t.buttonItemHorizontal]: isHorizontalNumberButton
|
|
15182
15199
|
}, "data-adjustment": "up", disabled: this.disabled || this.readOnly, onPointerDown: this.nudgeButtonPointerDownHandler, onPointerOut: this.nudgeButtonPointerUpAndOutHandler, onPointerUp: this.nudgeButtonPointerUpAndOutHandler, tabIndex: -1, type: "button" }, h("calcite-icon", { icon: "chevron-up", scale: "s" })));
|
|
15183
15200
|
const numberButtonsHorizontalDown = (h("button", { class: {
|
|
15184
|
-
[CSS$
|
|
15185
|
-
[CSS$
|
|
15201
|
+
[CSS$t.numberButtonItem]: true,
|
|
15202
|
+
[CSS$t.buttonItemHorizontal]: isHorizontalNumberButton
|
|
15186
15203
|
}, "data-adjustment": "down", disabled: this.disabled || this.readOnly, onPointerDown: this.nudgeButtonPointerDownHandler, onPointerOut: this.nudgeButtonPointerUpAndOutHandler, onPointerUp: this.nudgeButtonPointerUpAndOutHandler, tabIndex: -1, type: "button" }, h("calcite-icon", { icon: "chevron-down", scale: "s" })));
|
|
15187
|
-
const numberButtonsVertical = (h("div", { class: CSS$
|
|
15188
|
-
const prefixText = h("div", { class: CSS$
|
|
15189
|
-
const suffixText = h("div", { class: CSS$
|
|
15204
|
+
const numberButtonsVertical = (h("div", { class: CSS$t.numberButtonWrapper }, numberButtonsHorizontalUp, numberButtonsHorizontalDown));
|
|
15205
|
+
const prefixText = h("div", { class: CSS$t.prefix }, this.prefixText);
|
|
15206
|
+
const suffixText = h("div", { class: CSS$t.suffix }, this.suffixText);
|
|
15190
15207
|
const childEl = (h("input", { "aria-label": getLabelText(this), autofocus: this.autofocus ? true : null, defaultValue: this.defaultValue, disabled: this.disabled ? true : null, enterKeyHint: this.el.enterKeyHint, inputMode: this.el.inputMode, key: "localized-input", maxLength: this.maxLength, minLength: this.minLength, name: undefined, onBlur: this.inputNumberBlurHandler, onFocus: this.inputNumberFocusHandler, onInput: this.inputNumberInputHandler, onKeyDown: this.inputNumberKeyDownHandler, onKeyUp: this.inputNumberKeyUpHandler, placeholder: this.placeholder || "", readOnly: this.readOnly, ref: this.setChildNumberElRef, type: "text", value: this.localizedValue }));
|
|
15191
|
-
return (h(Host, { onClick: this.inputNumberFocusHandler, onKeyDown: this.keyDownHandler }, h("div", { class: { [CSS$
|
|
15208
|
+
return (h(Host, { onClick: this.inputNumberFocusHandler, onKeyDown: this.keyDownHandler }, h("div", { class: { [CSS$t.inputWrapper]: true, [CSS_UTILITY.rtl]: dir === "rtl" } }, this.numberButtonType === "horizontal" && !this.readOnly
|
|
15192
15209
|
? numberButtonsHorizontalDown
|
|
15193
|
-
: null, this.prefixText ? prefixText : null, h("div", { class: CSS$
|
|
15210
|
+
: null, this.prefixText ? prefixText : null, h("div", { class: CSS$t.wrapper }, childEl, this.isClearable ? inputClearButton : null, this.requestedIcon ? iconEl : null, this.loading ? loader : null), h("div", { class: CSS$t.actionWrapper }, h("slot", { name: SLOTS$h.action })), this.numberButtonType === "vertical" && !this.readOnly ? numberButtonsVertical : null, this.suffixText ? suffixText : null, this.numberButtonType === "horizontal" && !this.readOnly
|
|
15194
15211
|
? numberButtonsHorizontalUp
|
|
15195
15212
|
: null, h(HiddenFormInputSlot, { component: this }))));
|
|
15196
15213
|
}
|
|
@@ -15205,6 +15222,320 @@ const InputNumber = class extends HTMLElement$1 {
|
|
|
15205
15222
|
static get style() { return inputNumberCss; }
|
|
15206
15223
|
};
|
|
15207
15224
|
|
|
15225
|
+
const CSS$s = {
|
|
15226
|
+
loader: "loader",
|
|
15227
|
+
clearButton: "clear-button",
|
|
15228
|
+
editingEnabled: "editing-enabled",
|
|
15229
|
+
inlineChild: "inline-child",
|
|
15230
|
+
inputIcon: "icon",
|
|
15231
|
+
prefix: "prefix",
|
|
15232
|
+
suffix: "suffix",
|
|
15233
|
+
wrapper: "element-wrapper",
|
|
15234
|
+
inputWrapper: "wrapper",
|
|
15235
|
+
actionWrapper: "action-wrapper",
|
|
15236
|
+
resizeIconWrapper: "resize-icon-wrapper"
|
|
15237
|
+
};
|
|
15238
|
+
const SLOTS$g = {
|
|
15239
|
+
action: "action"
|
|
15240
|
+
};
|
|
15241
|
+
const TEXT$c = {
|
|
15242
|
+
clear: "Clear value"
|
|
15243
|
+
};
|
|
15244
|
+
|
|
15245
|
+
const inputTextCss = "@-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-floating-ui-transition:var(--calcite-animation-timing)}:host([hidden]){display: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{display:block}:host([scale=s]) input,:host([scale=s]) .prefix,:host([scale=s]) .suffix{block-size:1.5rem;padding-inline:0.5rem;font-size:var(--calcite-font-size--2);line-height:1rem}:host([scale=s]) .action-wrapper calcite-button,:host([scale=s]) .action-wrapper calcite-button button{block-size:1.5rem}:host([scale=s]) .clear-button{min-block-size:1.5rem;min-inline-size:1.5rem}:host([scale=m]) input,:host([scale=m]) .prefix,:host([scale=m]) .suffix{block-size:2rem;padding-inline:0.75rem;font-size:var(--calcite-font-size--1);line-height:1rem}:host([scale=m]) .action-wrapper calcite-button,:host([scale=m]) .action-wrapper calcite-button button{block-size:2rem}:host([scale=m]) .clear-button{min-block-size:2rem;min-inline-size:2rem}:host([scale=l]) input,:host([scale=l]) .prefix,:host([scale=l]) .suffix{block-size:2.75rem;padding-inline:1rem;font-size:var(--calcite-font-size-0);line-height:1.25rem}:host([scale=l]) .action-wrapper calcite-button,:host([scale=l]) .action-wrapper calcite-button button{block-size:2.75rem}:host([scale=l]) .clear-button{min-block-size:2.75rem;min-inline-size:2.75rem}:host([disabled]) ::slotted([calcite-hydrated][disabled]),:host([disabled]) [calcite-hydrated][disabled]{opacity:1}input{-webkit-transition:var(--calcite-animation-timing), block-size 0, outline-offset 0s;transition:var(--calcite-animation-timing), block-size 0, outline-offset 0s;-webkit-appearance:none;position:relative;margin:0px;-webkit-box-sizing:border-box;box-sizing:border-box;display:-ms-flexbox;display:flex;max-block-size:100%;inline-size:100%;max-inline-size:100%;-ms-flex:1 1 0%;flex:1 1 0%;border-radius:0px;background-color:var(--calcite-ui-foreground-1);font-family:inherit;font-weight:var(--calcite-font-weight-normal);color:var(--calcite-ui-text-1)}:host input{border-width:1px;border-style:solid;border-color:var(--calcite-ui-border-input);color:var(--calcite-ui-text-1)}:host input:-ms-input-placeholder{font-weight:var(--calcite-font-weight-normal);color:var(--calcite-ui-text-3)}:host input::-ms-input-placeholder{font-weight:var(--calcite-font-weight-normal);color:var(--calcite-ui-text-3)}:host input::placeholder,:host input:-ms-input-placeholder,:host input::-ms-input-placeholder{font-weight:var(--calcite-font-weight-normal);color:var(--calcite-ui-text-3)}:host input:focus{border-color:var(--calcite-ui-brand);color:var(--calcite-ui-text-1)}:host input[readonly]{background-color:var(--calcite-ui-background);font-weight:var(--calcite-font-weight-medium)}:host input[readonly]:focus{color:var(--calcite-ui-text-1)}:host calcite-icon{color:var(--calcite-ui-text-3)}input{outline-color:transparent}input:focus{outline:2px solid var(--calcite-ui-brand);outline-offset:-2px}:host([status=invalid]) input{border-color:var(--calcite-ui-danger)}:host([status=invalid]) input:focus{outline:2px solid var(--calcite-ui-danger);outline-offset:-2px}:host([scale=s]) .icon{inset-inline-start:0.5rem}:host([scale=m]) .icon{inset-inline-start:0.75rem}:host([scale=l]) .icon{inset-inline-start:1rem}:host([icon][scale=s]) input{-webkit-padding-start:2rem;padding-inline-start:2rem}:host([icon][scale=m]) input{-webkit-padding-start:2.5rem;padding-inline-start:2.5rem}:host([icon][scale=l]) input{-webkit-padding-start:3rem;padding-inline-start:3rem}.element-wrapper{position:relative;-ms-flex-order:3;order:3;display:-ms-inline-flexbox;display:inline-flex;-ms-flex:1 1 0%;flex:1 1 0%;-ms-flex-align:center;align-items:center}.icon{pointer-events:none;position:absolute;z-index:10;display:block;-webkit-transition:all var(--calcite-animation-timing) ease-in-out 0s, outline 0s, outline-offset 0s;transition:all var(--calcite-animation-timing) ease-in-out 0s, outline 0s, outline-offset 0s}input[type=text]::-ms-clear,input[type=text]::-ms-reveal{display:none;block-size:0px;inline-size:0px}.clear-button{pointer-events:initial;-ms-flex-order:4;order:4;margin:0px;-webkit-box-sizing:border-box;box-sizing:border-box;display:-ms-flexbox;display:flex;min-block-size:100%;cursor:pointer;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;-ms-flex-item-align:stretch;align-self:stretch;border-width:1px;border-style:solid;border-color:var(--calcite-ui-border-input);background-color:var(--calcite-ui-foreground-1);outline-color:transparent;border-inline-start-width:0px}.clear-button:hover{background-color:var(--calcite-ui-foreground-2);-webkit-transition:all var(--calcite-animation-timing) ease-in-out 0s, outline 0s, outline-offset 0s;transition:all var(--calcite-animation-timing) ease-in-out 0s, outline 0s, outline-offset 0s}.clear-button:hover calcite-icon{color:var(--calcite-ui-text-1);-webkit-transition:all var(--calcite-animation-timing) ease-in-out 0s, outline 0s, outline-offset 0s;transition:all var(--calcite-animation-timing) ease-in-out 0s, outline 0s, outline-offset 0s}.clear-button:active{background-color:var(--calcite-ui-foreground-3)}.clear-button:active calcite-icon{color:var(--calcite-ui-text-1)}.clear-button:focus{outline:2px solid var(--calcite-ui-brand);outline-offset:-2px}.clear-button:disabled{opacity:var(--calcite-ui-opacity-disabled)}.loader{inset-block-start:1px;inset-inline:1px;pointer-events:none;position:absolute;display:block}.action-wrapper{-ms-flex-order:7;order:7;display:-ms-flexbox;display:flex}.prefix,.suffix{-webkit-box-sizing:border-box;box-sizing:border-box;display:-ms-flexbox;display:flex;block-size:auto;min-block-size:100%;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;-ms-flex-line-pack:center;align-content:center;-ms-flex-align:center;align-items:center;overflow-wrap:break-word;border-width:1px;border-style:solid;border-color:var(--calcite-ui-border-input);background-color:var(--calcite-ui-background);font-weight:var(--calcite-font-weight-medium);line-height:1;color:var(--calcite-ui-text-2)}.prefix{-ms-flex-order:2;order:2;border-inline-end-width:0px}.suffix{-ms-flex-order:5;order:5;border-inline-start-width:0px}:host([alignment=start]) input{text-align:start}:host([alignment=end]) input{text-align:end}.wrapper{position:relative;display:-ms-flexbox;display:flex;-ms-flex-direction:row;flex-direction:row;-ms-flex-align:center;align-items:center}.resize-icon-wrapper{inset-block-end:2px;inset-inline-end:2px;pointer-events:none;position:absolute;z-index:10;block-size:0.75rem;inline-size:0.75rem;background-color:var(--calcite-ui-foreground-1);color:var(--calcite-ui-text-3)}.resize-icon-wrapper calcite-icon{inset-block-end:0.25rem;inset-inline-end:0.25rem;-webkit-transform:rotate(-45deg);transform:rotate(-45deg)}.calcite--rtl .resize-icon-wrapper calcite-icon{-webkit-transform:rotate(45deg);transform:rotate(45deg)}:host(.no-bottom-border) input{border-block-end-width:0px}:host(.border-top-color-one) input{border-block-start-color:var(--calcite-ui-border-1)}.inline-child{background-color:transparent;-webkit-transition:all var(--calcite-animation-timing) ease-in-out 0s, outline 0s, outline-offset 0s;transition:all var(--calcite-animation-timing) ease-in-out 0s, outline 0s, outline-offset 0s}.inline-child .editing-enabled{background-color:inherit}.inline-child:not(.editing-enabled){display:-ms-flexbox;display:flex;cursor:pointer;border-color:transparent;-webkit-padding-start:0;padding-inline-start:0}::slotted(input[slot=hidden-form-input]){margin:0 !important;opacity:0 !important;outline:none !important;padding:0 !important;position:absolute !important;inset:0 !important;-webkit-transform:none !important;transform:none !important;-webkit-appearance:none !important;z-index:-1 !important}";
|
|
15246
|
+
|
|
15247
|
+
const InputText = class extends HTMLElement$1 {
|
|
15248
|
+
constructor() {
|
|
15249
|
+
super();
|
|
15250
|
+
this.__registerHost();
|
|
15251
|
+
this.__attachShadow();
|
|
15252
|
+
this.calciteInternalInputTextFocus = createEvent(this, "calciteInternalInputTextFocus", 7);
|
|
15253
|
+
this.calciteInternalInputTextBlur = createEvent(this, "calciteInternalInputTextBlur", 7);
|
|
15254
|
+
this.calciteInputTextInput = createEvent(this, "calciteInputTextInput", 7);
|
|
15255
|
+
this.calciteInputTextChange = createEvent(this, "calciteInputTextChange", 7);
|
|
15256
|
+
//--------------------------------------------------------------------------
|
|
15257
|
+
//
|
|
15258
|
+
// Properties
|
|
15259
|
+
//
|
|
15260
|
+
//--------------------------------------------------------------------------
|
|
15261
|
+
/** Specifies the text alignment of the component's value. */
|
|
15262
|
+
this.alignment = "start";
|
|
15263
|
+
/**
|
|
15264
|
+
* When true, the component is focused on page load.
|
|
15265
|
+
*
|
|
15266
|
+
* @mdn [autofocus](https://developer.mozilla.org/en-US/docs/Web/HTML/Global_attributes/autofocus)
|
|
15267
|
+
*/
|
|
15268
|
+
this.autofocus = false;
|
|
15269
|
+
/**
|
|
15270
|
+
* When true, a clear button is displayed when the component has a value.
|
|
15271
|
+
*/
|
|
15272
|
+
this.clearable = false;
|
|
15273
|
+
/**
|
|
15274
|
+
* When true, interaction is prevented and the component is displayed with lower opacity.
|
|
15275
|
+
*
|
|
15276
|
+
* @mdn [disabled](https://developer.mozilla.org/en-US/docs/Web/HTML/Attributes/disabled)
|
|
15277
|
+
*/
|
|
15278
|
+
this.disabled = false;
|
|
15279
|
+
/**
|
|
15280
|
+
* When true, the component will not be visible.
|
|
15281
|
+
*
|
|
15282
|
+
* @mdn [hidden](https://developer.mozilla.org/en-US/docs/Web/HTML/Global_attributes/hidden)
|
|
15283
|
+
*/
|
|
15284
|
+
this.hidden = false;
|
|
15285
|
+
/**
|
|
15286
|
+
* Accessible name that will appear while loading.
|
|
15287
|
+
*
|
|
15288
|
+
* @default "Loading"
|
|
15289
|
+
*/
|
|
15290
|
+
this.intlLoading = TEXT$u.loading;
|
|
15291
|
+
/** When true, the icon is flipped in RTL. */
|
|
15292
|
+
this.iconFlipRtl = false;
|
|
15293
|
+
/** When true, the component is in the loading state and `calcite-progress` is displayed. */
|
|
15294
|
+
this.loading = false;
|
|
15295
|
+
/**
|
|
15296
|
+
* When true, the value cannot be modified.
|
|
15297
|
+
*
|
|
15298
|
+
* @mdn [readOnly](https://developer.mozilla.org/en-US/docs/Web/HTML/Attributes/readonly)
|
|
15299
|
+
*/
|
|
15300
|
+
this.readOnly = false;
|
|
15301
|
+
/** When true, the component must have a value in order for the form to submit. */
|
|
15302
|
+
this.required = false;
|
|
15303
|
+
/** Specifies the size of the component. */
|
|
15304
|
+
this.scale = "m";
|
|
15305
|
+
/** Specifies the status of the input field, which determines message and icons. */
|
|
15306
|
+
this.status = "idle";
|
|
15307
|
+
/**
|
|
15308
|
+
* @internal
|
|
15309
|
+
*/
|
|
15310
|
+
this.editingEnabled = false;
|
|
15311
|
+
/** The component's value. */
|
|
15312
|
+
this.value = "";
|
|
15313
|
+
this.previousValueOrigin = "initial";
|
|
15314
|
+
this.mutationObserver = createObserver("mutation", () => this.setDisabledAction());
|
|
15315
|
+
this.userChangedValue = false;
|
|
15316
|
+
//--------------------------------------------------------------------------
|
|
15317
|
+
//
|
|
15318
|
+
// Private Methods
|
|
15319
|
+
//
|
|
15320
|
+
//--------------------------------------------------------------------------
|
|
15321
|
+
this.keyDownHandler = (event) => {
|
|
15322
|
+
if (this.readOnly || this.disabled) {
|
|
15323
|
+
return;
|
|
15324
|
+
}
|
|
15325
|
+
if (this.isClearable && event.key === "Escape") {
|
|
15326
|
+
this.clearInputTextValue(event);
|
|
15327
|
+
event.preventDefault();
|
|
15328
|
+
}
|
|
15329
|
+
if (event.key === "Enter" && !event.defaultPrevented) {
|
|
15330
|
+
submitForm(this);
|
|
15331
|
+
}
|
|
15332
|
+
};
|
|
15333
|
+
this.clearInputTextValue = (nativeEvent) => {
|
|
15334
|
+
this.setValue({
|
|
15335
|
+
committing: true,
|
|
15336
|
+
nativeEvent,
|
|
15337
|
+
origin: "user",
|
|
15338
|
+
value: ""
|
|
15339
|
+
});
|
|
15340
|
+
};
|
|
15341
|
+
this.emitChangeIfUserModified = () => {
|
|
15342
|
+
if (this.previousValueOrigin === "user" && this.value !== this.previousEmittedValue) {
|
|
15343
|
+
this.calciteInputTextChange.emit();
|
|
15344
|
+
}
|
|
15345
|
+
this.previousEmittedValue = this.value;
|
|
15346
|
+
};
|
|
15347
|
+
this.inputTextBlurHandler = () => {
|
|
15348
|
+
this.calciteInternalInputTextBlur.emit({
|
|
15349
|
+
element: this.childEl,
|
|
15350
|
+
value: this.value
|
|
15351
|
+
});
|
|
15352
|
+
this.emitChangeIfUserModified();
|
|
15353
|
+
};
|
|
15354
|
+
this.inputTextFocusHandler = (event) => {
|
|
15355
|
+
const slottedActionEl = getSlotted(this.el, "action");
|
|
15356
|
+
if (event.target !== slottedActionEl) {
|
|
15357
|
+
this.setFocus();
|
|
15358
|
+
}
|
|
15359
|
+
this.calciteInternalInputTextFocus.emit({
|
|
15360
|
+
element: this.childEl,
|
|
15361
|
+
value: this.value
|
|
15362
|
+
});
|
|
15363
|
+
};
|
|
15364
|
+
this.inputTextInputHandler = (nativeEvent) => {
|
|
15365
|
+
if (this.disabled || this.readOnly) {
|
|
15366
|
+
return;
|
|
15367
|
+
}
|
|
15368
|
+
this.setValue({
|
|
15369
|
+
nativeEvent,
|
|
15370
|
+
origin: "user",
|
|
15371
|
+
value: nativeEvent.target.value
|
|
15372
|
+
});
|
|
15373
|
+
};
|
|
15374
|
+
this.inputTextKeyDownHandler = (event) => {
|
|
15375
|
+
if (this.disabled || this.readOnly) {
|
|
15376
|
+
return;
|
|
15377
|
+
}
|
|
15378
|
+
if (event.key === "Enter") {
|
|
15379
|
+
this.emitChangeIfUserModified();
|
|
15380
|
+
}
|
|
15381
|
+
};
|
|
15382
|
+
this.setChildElRef = (el) => {
|
|
15383
|
+
this.childEl = el;
|
|
15384
|
+
};
|
|
15385
|
+
this.setInputValue = (newInputValue) => {
|
|
15386
|
+
if (!this.childEl) {
|
|
15387
|
+
return;
|
|
15388
|
+
}
|
|
15389
|
+
this.childEl.value = newInputValue;
|
|
15390
|
+
};
|
|
15391
|
+
this.setPreviousEmittedValue = (newPreviousEmittedValue) => {
|
|
15392
|
+
this.previousEmittedValue = newPreviousEmittedValue;
|
|
15393
|
+
};
|
|
15394
|
+
this.setPreviousValue = (newPreviousValue) => {
|
|
15395
|
+
this.previousValue = newPreviousValue;
|
|
15396
|
+
};
|
|
15397
|
+
this.setValue = ({ committing = false, nativeEvent, origin, previousValue, value }) => {
|
|
15398
|
+
this.setPreviousValue(previousValue || this.value);
|
|
15399
|
+
this.previousValueOrigin = origin;
|
|
15400
|
+
this.userChangedValue = origin === "user" && value !== this.value;
|
|
15401
|
+
this.value = value;
|
|
15402
|
+
if (origin === "direct") {
|
|
15403
|
+
this.setInputValue(value);
|
|
15404
|
+
}
|
|
15405
|
+
if (nativeEvent) {
|
|
15406
|
+
const calciteInputTextInputEvent = this.calciteInputTextInput.emit({
|
|
15407
|
+
element: this.childEl,
|
|
15408
|
+
nativeEvent,
|
|
15409
|
+
value: this.value
|
|
15410
|
+
});
|
|
15411
|
+
if (calciteInputTextInputEvent.defaultPrevented) {
|
|
15412
|
+
this.value = this.previousValue;
|
|
15413
|
+
}
|
|
15414
|
+
else if (committing) {
|
|
15415
|
+
this.emitChangeIfUserModified();
|
|
15416
|
+
}
|
|
15417
|
+
}
|
|
15418
|
+
};
|
|
15419
|
+
}
|
|
15420
|
+
disabledWatcher() {
|
|
15421
|
+
this.setDisabledAction();
|
|
15422
|
+
}
|
|
15423
|
+
valueWatcher(newValue, previousValue) {
|
|
15424
|
+
if (!this.userChangedValue) {
|
|
15425
|
+
this.setValue({
|
|
15426
|
+
origin: "direct",
|
|
15427
|
+
previousValue,
|
|
15428
|
+
value: !newValue ? "" : newValue
|
|
15429
|
+
});
|
|
15430
|
+
}
|
|
15431
|
+
this.userChangedValue = false;
|
|
15432
|
+
}
|
|
15433
|
+
updateRequestedIcon() {
|
|
15434
|
+
this.requestedIcon = setRequestedIcon({}, this.icon, "text");
|
|
15435
|
+
}
|
|
15436
|
+
get isClearable() {
|
|
15437
|
+
return this.clearable && this.value.length > 0;
|
|
15438
|
+
}
|
|
15439
|
+
//--------------------------------------------------------------------------
|
|
15440
|
+
//
|
|
15441
|
+
// Lifecycle
|
|
15442
|
+
//
|
|
15443
|
+
//--------------------------------------------------------------------------
|
|
15444
|
+
connectedCallback() {
|
|
15445
|
+
var _a;
|
|
15446
|
+
this.scale = getElementProp(this.el, "scale", this.scale);
|
|
15447
|
+
this.status = getElementProp(this.el, "status", this.status);
|
|
15448
|
+
this.inlineEditableEl = this.el.closest("calcite-inline-editable");
|
|
15449
|
+
if (this.inlineEditableEl) {
|
|
15450
|
+
this.editingEnabled = this.inlineEditableEl.editingEnabled || false;
|
|
15451
|
+
}
|
|
15452
|
+
this.setPreviousEmittedValue(this.value);
|
|
15453
|
+
this.setPreviousValue(this.value);
|
|
15454
|
+
connectLabel(this);
|
|
15455
|
+
connectForm(this);
|
|
15456
|
+
(_a = this.mutationObserver) === null || _a === void 0 ? void 0 : _a.observe(this.el, { childList: true });
|
|
15457
|
+
this.setDisabledAction();
|
|
15458
|
+
}
|
|
15459
|
+
disconnectedCallback() {
|
|
15460
|
+
var _a;
|
|
15461
|
+
disconnectLabel(this);
|
|
15462
|
+
disconnectForm(this);
|
|
15463
|
+
(_a = this.mutationObserver) === null || _a === void 0 ? void 0 : _a.disconnect();
|
|
15464
|
+
}
|
|
15465
|
+
componentWillLoad() {
|
|
15466
|
+
this.requestedIcon = setRequestedIcon({}, this.icon, "text");
|
|
15467
|
+
}
|
|
15468
|
+
componentDidRender() {
|
|
15469
|
+
updateHostInteraction(this);
|
|
15470
|
+
}
|
|
15471
|
+
//--------------------------------------------------------------------------
|
|
15472
|
+
//
|
|
15473
|
+
// Public Methods
|
|
15474
|
+
//
|
|
15475
|
+
//--------------------------------------------------------------------------
|
|
15476
|
+
/** Sets focus on the component. */
|
|
15477
|
+
async setFocus() {
|
|
15478
|
+
var _a;
|
|
15479
|
+
(_a = this.childEl) === null || _a === void 0 ? void 0 : _a.focus();
|
|
15480
|
+
}
|
|
15481
|
+
/** Selects all text of the component's `value`. */
|
|
15482
|
+
async selectText() {
|
|
15483
|
+
var _a;
|
|
15484
|
+
(_a = this.childEl) === null || _a === void 0 ? void 0 : _a.select();
|
|
15485
|
+
}
|
|
15486
|
+
onLabelClick() {
|
|
15487
|
+
this.setFocus();
|
|
15488
|
+
}
|
|
15489
|
+
onFormReset() {
|
|
15490
|
+
this.setValue({
|
|
15491
|
+
origin: "reset",
|
|
15492
|
+
value: this.defaultValue
|
|
15493
|
+
});
|
|
15494
|
+
}
|
|
15495
|
+
syncHiddenFormInput(input) {
|
|
15496
|
+
if (this.minLength != null) {
|
|
15497
|
+
input.minLength = this.minLength;
|
|
15498
|
+
}
|
|
15499
|
+
if (this.maxLength != null) {
|
|
15500
|
+
input.maxLength = this.maxLength;
|
|
15501
|
+
}
|
|
15502
|
+
}
|
|
15503
|
+
setDisabledAction() {
|
|
15504
|
+
const slottedActionEl = getSlotted(this.el, "action");
|
|
15505
|
+
if (!slottedActionEl) {
|
|
15506
|
+
return;
|
|
15507
|
+
}
|
|
15508
|
+
this.disabled
|
|
15509
|
+
? slottedActionEl.setAttribute("disabled", "")
|
|
15510
|
+
: slottedActionEl.removeAttribute("disabled");
|
|
15511
|
+
}
|
|
15512
|
+
// --------------------------------------------------------------------------
|
|
15513
|
+
//
|
|
15514
|
+
// Render Methods
|
|
15515
|
+
//
|
|
15516
|
+
// --------------------------------------------------------------------------
|
|
15517
|
+
render() {
|
|
15518
|
+
const dir = getElementDir(this.el);
|
|
15519
|
+
const loader = (h("div", { class: CSS$s.loader }, h("calcite-progress", { label: this.intlLoading, type: "indeterminate" })));
|
|
15520
|
+
const inputClearButton = (h("button", { "aria-label": this.intlClear || TEXT$c.clear, class: CSS$s.clearButton, disabled: this.disabled || this.readOnly, onClick: this.clearInputTextValue, tabIndex: this.disabled ? -1 : 0, type: "button" }, h("calcite-icon", { icon: "x", scale: "s" })));
|
|
15521
|
+
const iconEl = (h("calcite-icon", { class: CSS$s.inputIcon, flipRtl: this.iconFlipRtl, icon: this.requestedIcon, scale: "s" }));
|
|
15522
|
+
const prefixText = h("div", { class: CSS$s.prefix }, this.prefixText);
|
|
15523
|
+
const suffixText = h("div", { class: CSS$s.suffix }, this.suffixText);
|
|
15524
|
+
const childEl = (h("input", { "aria-label": getLabelText(this), autofocus: this.autofocus ? true : null, class: {
|
|
15525
|
+
[CSS$s.editingEnabled]: this.editingEnabled,
|
|
15526
|
+
[CSS$s.inlineChild]: !!this.inlineEditableEl
|
|
15527
|
+
}, defaultValue: this.defaultValue, disabled: this.disabled ? true : null, enterKeyHint: this.el.enterKeyHint, inputMode: this.el.inputMode, maxLength: this.maxLength, minLength: this.minLength, name: this.name, onBlur: this.inputTextBlurHandler, onFocus: this.inputTextFocusHandler, onInput: this.inputTextInputHandler, onKeyDown: this.inputTextKeyDownHandler, placeholder: this.placeholder || "", readOnly: this.readOnly, ref: this.setChildElRef, required: this.required ? true : null, tabIndex: this.disabled || (this.inlineEditableEl && !this.editingEnabled) ? -1 : null, type: "text", value: this.value }));
|
|
15528
|
+
return (h(Host, { onClick: this.inputTextFocusHandler, onKeyDown: this.keyDownHandler }, h("div", { class: { [CSS$s.inputWrapper]: true, [CSS_UTILITY.rtl]: dir === "rtl" } }, this.prefixText ? prefixText : null, h("div", { class: CSS$s.wrapper }, childEl, this.isClearable ? inputClearButton : null, this.requestedIcon ? iconEl : null, this.loading ? loader : null), h("div", { class: CSS$s.actionWrapper }, h("slot", { name: SLOTS$g.action })), this.suffixText ? suffixText : null, h(HiddenFormInputSlot, { component: this }))));
|
|
15529
|
+
}
|
|
15530
|
+
get el() { return this; }
|
|
15531
|
+
static get watchers() { return {
|
|
15532
|
+
"disabled": ["disabledWatcher"],
|
|
15533
|
+
"value": ["valueWatcher"],
|
|
15534
|
+
"icon": ["updateRequestedIcon"]
|
|
15535
|
+
}; }
|
|
15536
|
+
static get style() { return inputTextCss; }
|
|
15537
|
+
};
|
|
15538
|
+
|
|
15208
15539
|
const maxTenthForMinuteAndSecond = 5;
|
|
15209
15540
|
function createLocaleDateTimeFormatter(locale, includeSeconds = true) {
|
|
15210
15541
|
try {
|
|
@@ -17210,7 +17541,7 @@ const Panel = class extends HTMLElement$1 {
|
|
|
17210
17541
|
renderMenu() {
|
|
17211
17542
|
const { el, intlOptions, menuOpen } = this;
|
|
17212
17543
|
const hasMenuItems = getSlotted(el, SLOTS$c.headerMenuActions);
|
|
17213
|
-
return hasMenuItems ? (h("calcite-action-menu", { flipPlacements: ["top", "bottom"], key: "menu", label: intlOptions || TEXT$8.options, open: menuOpen, placement: "bottom-end" }, h("calcite-action", { icon: ICONS$5.menu, slot: SLOTS$
|
|
17544
|
+
return hasMenuItems ? (h("calcite-action-menu", { flipPlacements: ["top", "bottom"], key: "menu", label: intlOptions || TEXT$8.options, open: menuOpen, placement: "bottom-end" }, h("calcite-action", { icon: ICONS$5.menu, slot: SLOTS$r.trigger, text: intlOptions || TEXT$8.options }), h("slot", { name: SLOTS$c.headerMenuActions }))) : null;
|
|
17214
17545
|
}
|
|
17215
17546
|
renderHeaderNode() {
|
|
17216
17547
|
const { el, showBackButton } = this;
|
|
@@ -27534,9 +27865,9 @@ const CalciteAccordionItem = /*@__PURE__*/proxyCustomElement(AccordionItem, [1,"
|
|
|
27534
27865
|
const CalciteAction = /*@__PURE__*/proxyCustomElement(Action, [1,"calcite-action",{"active":[516],"alignment":[513],"appearance":[513],"compact":[516],"disabled":[516],"icon":[1],"indicator":[516],"intlLoading":[1,"intl-loading"],"label":[1],"loading":[516],"scale":[513],"text":[1],"textEnabled":[516,"text-enabled"]}]);
|
|
27535
27866
|
const CalciteActionBar = /*@__PURE__*/proxyCustomElement(ActionBar, [1,"calcite-action-bar",{"expandDisabled":[516,"expand-disabled"],"expanded":[1540],"intlExpand":[1,"intl-expand"],"intlCollapse":[1,"intl-collapse"],"layout":[513],"overflowActionsDisabled":[4,"overflow-actions-disabled"],"position":[513],"scale":[513]}]);
|
|
27536
27867
|
const CalciteActionGroup = /*@__PURE__*/proxyCustomElement(ActionGroup, [1,"calcite-action-group",{"expanded":[516],"layout":[513],"columns":[514],"intlMore":[1,"intl-more"],"menuOpen":[1540,"menu-open"],"scale":[513]}]);
|
|
27537
|
-
const CalciteActionMenu = /*@__PURE__*/proxyCustomElement(ActionMenu, [1,"calcite-action-menu",{"expanded":[516],"flipPlacements":[16],"label":[1],"open":[1540],"overlayPositioning":[1,"overlay-positioning"],"placement":[513],"scale":[513],"activeMenuItemIndex":[32]},[[
|
|
27868
|
+
const CalciteActionMenu = /*@__PURE__*/proxyCustomElement(ActionMenu, [1,"calcite-action-menu",{"expanded":[516],"flipPlacements":[16],"label":[1],"open":[1540],"overlayPositioning":[1,"overlay-positioning"],"placement":[513],"scale":[513],"activeMenuItemIndex":[32]},[[9,"pointerdown","closeCalciteActionMenuOnClick"]]]);
|
|
27538
27869
|
const CalciteActionPad = /*@__PURE__*/proxyCustomElement(ActionPad, [1,"calcite-action-pad",{"expandDisabled":[516,"expand-disabled"],"expanded":[1540],"layout":[513],"intlExpand":[1,"intl-expand"],"intlCollapse":[1,"intl-collapse"],"position":[513],"scale":[513]}]);
|
|
27539
|
-
const CalciteAlert = /*@__PURE__*/proxyCustomElement(Alert, [1,"calcite-alert",{"active":[1540],"autoDismiss":[4,"auto-dismiss"],"autoDismissDuration":[513,"auto-dismiss-duration"],"color":[513],"icon":[520],"intlClose":[1,"intl-close"],"label":[1],"placement":[1],"scale":[513],"queue":[32],"queueLength":[32],"queued":[32],"requestedIcon":[32]},[[8,"calciteInternalAlertSync","alertSync"],[8,"calciteInternalAlertRegister","alertRegister"]]]);
|
|
27870
|
+
const CalciteAlert = /*@__PURE__*/proxyCustomElement(Alert, [1,"calcite-alert",{"active":[1540],"open":[1540],"autoDismiss":[4,"auto-dismiss"],"autoDismissDuration":[513,"auto-dismiss-duration"],"color":[513],"icon":[520],"intlClose":[1,"intl-close"],"label":[1],"placement":[1],"scale":[513],"queue":[32],"queueLength":[32],"queued":[32],"requestedIcon":[32]},[[8,"calciteInternalAlertSync","alertSync"],[8,"calciteInternalAlertRegister","alertRegister"]]]);
|
|
27540
27871
|
const CalciteAvatar = /*@__PURE__*/proxyCustomElement(Avatar, [1,"calcite-avatar",{"scale":[513],"thumbnail":[1],"fullName":[1,"full-name"],"username":[1],"userId":[1,"user-id"],"error":[32]}]);
|
|
27541
27872
|
const CalciteBlock = /*@__PURE__*/proxyCustomElement(Block, [1,"calcite-block",{"collapsible":[4],"disabled":[516],"dragHandle":[516,"drag-handle"],"heading":[1],"headingLevel":[2,"heading-level"],"intlCollapse":[1,"intl-collapse"],"intlExpand":[1,"intl-expand"],"intlLoading":[1,"intl-loading"],"intlOptions":[1,"intl-options"],"loading":[516],"open":[1540],"status":[513],"summary":[1],"description":[1],"disablePadding":[4,"disable-padding"]}]);
|
|
27542
27873
|
const CalciteBlockSection = /*@__PURE__*/proxyCustomElement(BlockSection, [1,"calcite-block-section",{"intlCollapse":[1,"intl-collapse"],"intlExpand":[1,"intl-expand"],"open":[1540],"status":[513],"text":[1],"toggleDisplay":[513,"toggle-display"]}]);
|
|
@@ -27568,6 +27899,7 @@ const CalciteInput = /*@__PURE__*/proxyCustomElement(Input, [1,"calcite-input",{
|
|
|
27568
27899
|
const CalciteInputDatePicker = /*@__PURE__*/proxyCustomElement(InputDatePicker, [1,"calcite-input-date-picker",{"disabled":[516],"readOnly":[4,"read-only"],"value":[1025],"flipPlacements":[16],"headingLevel":[2,"heading-level"],"valueAsDate":[1040],"startAsDate":[1040],"endAsDate":[1040],"minAsDate":[1040],"maxAsDate":[1040],"min":[1025],"max":[1025],"active":[1540],"open":[1540],"name":[1],"intlPrevMonth":[1,"intl-prev-month"],"intlNextMonth":[1,"intl-next-month"],"intlYear":[1,"intl-year"],"locale":[1],"scale":[513],"placement":[513],"range":[516],"required":[516],"start":[1025],"end":[1025],"overlayPositioning":[1,"overlay-positioning"],"proximitySelectionDisabled":[4,"proximity-selection-disabled"],"layout":[513],"focusedInput":[32],"localeData":[32]},[[0,"calciteDatePickerChange","handleDateOrRangeChange"],[0,"calciteDatePickerRangeChange","handleDateOrRangeChange"],[0,"calciteDaySelect","calciteDaySelectHandler"]]]);
|
|
27569
27900
|
const CalciteInputMessage = /*@__PURE__*/proxyCustomElement(InputMessage, [1,"calcite-input-message",{"active":[516],"icon":[520],"scale":[1537],"status":[1537],"type":[513]}]);
|
|
27570
27901
|
const CalciteInputNumber = /*@__PURE__*/proxyCustomElement(InputNumber, [1,"calcite-input-number",{"alignment":[513],"autofocus":[4],"clearable":[516],"disabled":[516],"groupSeparator":[4,"group-separator"],"hidden":[4],"icon":[520],"intlClear":[1,"intl-clear"],"intlLoading":[1,"intl-loading"],"iconFlipRtl":[516,"icon-flip-rtl"],"label":[1],"loading":[516],"locale":[1],"numberingSystem":[1,"numbering-system"],"localeFormat":[4,"locale-format"],"max":[514],"min":[514],"maxLength":[514,"max-length"],"minLength":[514,"min-length"],"name":[513],"numberButtonType":[513,"number-button-type"],"placeholder":[1],"prefixText":[1,"prefix-text"],"readOnly":[4,"read-only"],"required":[4],"scale":[1537],"status":[1537],"step":[520],"suffixText":[1,"suffix-text"],"editingEnabled":[1540,"editing-enabled"],"value":[1025],"localizedValue":[32]}]);
|
|
27902
|
+
const CalciteInputText = /*@__PURE__*/proxyCustomElement(InputText, [1,"calcite-input-text",{"alignment":[513],"autofocus":[4],"clearable":[516],"disabled":[516],"hidden":[4],"icon":[520],"intlClear":[1,"intl-clear"],"intlLoading":[1,"intl-loading"],"iconFlipRtl":[516,"icon-flip-rtl"],"label":[1],"loading":[516],"maxLength":[514,"max-length"],"minLength":[514,"min-length"],"name":[513],"placeholder":[1],"prefixText":[1,"prefix-text"],"readOnly":[4,"read-only"],"required":[4],"scale":[1537],"status":[1537],"suffixText":[1,"suffix-text"],"editingEnabled":[1540,"editing-enabled"],"value":[1025]}]);
|
|
27571
27903
|
const CalciteInputTimePicker = /*@__PURE__*/proxyCustomElement(InputTimePicker, [1,"calcite-input-time-picker",{"active":[1540],"disabled":[516],"readOnly":[4,"read-only"],"intlHour":[1,"intl-hour"],"intlHourDown":[1,"intl-hour-down"],"intlHourUp":[1,"intl-hour-up"],"intlMeridiem":[1,"intl-meridiem"],"intlMeridiemDown":[1,"intl-meridiem-down"],"intlMeridiemUp":[1,"intl-meridiem-up"],"intlMinute":[1,"intl-minute"],"intlMinuteDown":[1,"intl-minute-down"],"intlMinuteUp":[1,"intl-minute-up"],"intlSecond":[1,"intl-second"],"intlSecondDown":[1,"intl-second-down"],"intlSecondUp":[1,"intl-second-up"],"locale":[1025,"lang"],"name":[1],"required":[516],"scale":[513],"placement":[513],"step":[2],"value":[1025],"localizedValue":[32]},[[0,"click","clickHandler"],[0,"calciteInternalTimePickerBlur","timePickerBlurHandler"],[0,"calciteInternalTimePickerFocus","timePickerFocusHandler"]]]);
|
|
27572
27904
|
const CalciteLabel = /*@__PURE__*/proxyCustomElement(Label, [1,"calcite-label",{"alignment":[513],"status":[513],"for":[513],"scale":[513],"layout":[513],"disabled":[516],"disableSpacing":[4,"disable-spacing"]}]);
|
|
27573
27905
|
const CalciteLink = /*@__PURE__*/proxyCustomElement(Link, [1,"calcite-link",{"disabled":[516],"download":[520],"href":[513],"iconEnd":[513,"icon-end"],"iconFlipRtl":[513,"icon-flip-rtl"],"iconStart":[513,"icon-start"],"rel":[1],"target":[1]}]);
|
|
@@ -27662,6 +27994,7 @@ const defineCustomElements = (opts) => {
|
|
|
27662
27994
|
CalciteInputDatePicker,
|
|
27663
27995
|
CalciteInputMessage,
|
|
27664
27996
|
CalciteInputNumber,
|
|
27997
|
+
CalciteInputText,
|
|
27665
27998
|
CalciteInputTimePicker,
|
|
27666
27999
|
CalciteLabel,
|
|
27667
28000
|
CalciteLink,
|
|
@@ -27722,4 +28055,4 @@ const defineCustomElements = (opts) => {
|
|
|
27722
28055
|
}
|
|
27723
28056
|
};
|
|
27724
28057
|
|
|
27725
|
-
export { CalciteAccordion, CalciteAccordionItem, CalciteAction, CalciteActionBar, CalciteActionGroup, CalciteActionMenu, CalciteActionPad, CalciteAlert, CalciteAvatar, CalciteBlock, CalciteBlockSection, CalciteButton, CalciteCard, CalciteCheckbox, CalciteChip, CalciteColorPicker, CalciteColorPickerHexInput, CalciteColorPickerSwatch, CalciteCombobox, CalciteComboboxItem, CalciteComboboxItemGroup, CalciteDatePicker, CalciteDatePickerDay, CalciteDatePickerMonth, CalciteDatePickerMonthHeader, CalciteDropdown, CalciteDropdownGroup, CalciteDropdownItem, CalciteFab, CalciteFilter, CalciteFlow, CalciteGraph, CalciteHandle, CalciteIcon, CalciteInlineEditable, CalciteInput, CalciteInputDatePicker, CalciteInputMessage, CalciteInputNumber, CalciteInputTimePicker, CalciteLabel, CalciteLink, CalciteList, CalciteListItem, CalciteListItemGroup, CalciteLoader, CalciteModal, CalciteNotice, CalciteOption, CalciteOptionGroup, CalcitePagination, CalcitePanel, CalcitePickList, CalcitePickListGroup, CalcitePickListItem, CalcitePopover, CalcitePopoverManager, CalciteProgress, CalciteRadioButton, CalciteRadioButtonGroup, CalciteRadioGroup, CalciteRadioGroupItem, CalciteRating, CalciteScrim, CalciteSelect, CalciteShell, CalciteShellCenterRow, CalciteShellPanel, CalciteSlider, CalciteSortableList, CalciteSplitButton, CalciteStepper, CalciteStepperItem, CalciteSwitch, CalciteTab, CalciteTabNav, CalciteTabTitle, CalciteTabs, CalciteTile, CalciteTileSelect, CalciteTileSelectGroup, CalciteTimePicker, CalciteTip, CalciteTipGroup, CalciteTipManager, CalciteTooltip, CalciteTooltipManager, CalciteTree, CalciteTreeItem, CalciteValueList, CalciteValueListItem, defineCustomElements };
|
|
28058
|
+
export { CalciteAccordion, CalciteAccordionItem, CalciteAction, CalciteActionBar, CalciteActionGroup, CalciteActionMenu, CalciteActionPad, CalciteAlert, CalciteAvatar, CalciteBlock, CalciteBlockSection, CalciteButton, CalciteCard, CalciteCheckbox, CalciteChip, CalciteColorPicker, CalciteColorPickerHexInput, CalciteColorPickerSwatch, CalciteCombobox, CalciteComboboxItem, CalciteComboboxItemGroup, CalciteDatePicker, CalciteDatePickerDay, CalciteDatePickerMonth, CalciteDatePickerMonthHeader, CalciteDropdown, CalciteDropdownGroup, CalciteDropdownItem, CalciteFab, CalciteFilter, CalciteFlow, CalciteGraph, CalciteHandle, CalciteIcon, CalciteInlineEditable, CalciteInput, CalciteInputDatePicker, CalciteInputMessage, CalciteInputNumber, CalciteInputText, CalciteInputTimePicker, CalciteLabel, CalciteLink, CalciteList, CalciteListItem, CalciteListItemGroup, CalciteLoader, CalciteModal, CalciteNotice, CalciteOption, CalciteOptionGroup, CalcitePagination, CalcitePanel, CalcitePickList, CalcitePickListGroup, CalcitePickListItem, CalcitePopover, CalcitePopoverManager, CalciteProgress, CalciteRadioButton, CalciteRadioButtonGroup, CalciteRadioGroup, CalciteRadioGroupItem, CalciteRating, CalciteScrim, CalciteSelect, CalciteShell, CalciteShellCenterRow, CalciteShellPanel, CalciteSlider, CalciteSortableList, CalciteSplitButton, CalciteStepper, CalciteStepperItem, CalciteSwitch, CalciteTab, CalciteTabNav, CalciteTabTitle, CalciteTabs, CalciteTile, CalciteTileSelect, CalciteTileSelectGroup, CalciteTimePicker, CalciteTip, CalciteTipGroup, CalciteTipManager, CalciteTooltip, CalciteTooltipManager, CalciteTree, CalciteTreeItem, CalciteValueList, CalciteValueListItem, defineCustomElements };
|