@esri/calcite-components 1.0.0-next.466 → 1.0.0-next.469
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/ru.json +4 -4
- 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-5b2affe9.js → p-005432ba.js} +2 -2
- package/dist/calcite/{p-77b9ef38.js → p-00690bad.js} +2 -2
- package/dist/calcite/{p-a3ced35f.system.entry.js → p-020b142b.system.entry.js} +2 -2
- package/dist/calcite/p-025c0884.entry.js +6 -0
- package/dist/calcite/{p-12cf3a55.js → p-02ea3ab9.js} +2 -2
- package/dist/calcite/{p-c63df7f4.system.js → p-0444116b.system.js} +1 -1
- package/dist/calcite/{p-b232eeda.entry.js → p-04e1abf2.entry.js} +2 -2
- package/dist/calcite/{p-bf315356.js → p-055dbdb9.js} +1 -1
- package/dist/calcite/p-0581bc26.entry.js +6 -0
- package/dist/calcite/p-078c7c07.system.js +6 -0
- package/dist/calcite/{p-21100c4b.entry.js → p-08ea6629.entry.js} +2 -2
- package/dist/calcite/{p-0813d701.system.js → p-0a5c52ab.system.js} +2 -2
- package/dist/calcite/{p-d3acdb06.system.entry.js → p-0c506732.system.entry.js} +2 -2
- package/dist/calcite/p-0cc7075f.system.js +6 -0
- package/dist/calcite/{p-1acc12c7.entry.js → p-0da1c82e.entry.js} +2 -2
- package/dist/calcite/{p-5619125c.js → p-13117022.js} +1 -1
- package/dist/calcite/{p-acb3aaca.system.entry.js → p-145c7c50.system.entry.js} +2 -2
- package/dist/calcite/p-14a42110.js +6 -0
- package/dist/calcite/{p-3c91632a.entry.js → p-15d042f9.entry.js} +2 -2
- package/dist/calcite/{p-359dc9ff.system.js → p-15dabc96.system.js} +1 -1
- package/dist/calcite/{p-28546db9.system.entry.js → p-1607ec77.system.entry.js} +2 -2
- package/dist/calcite/{p-314a906b.system.entry.js → p-172faee6.system.entry.js} +2 -2
- package/dist/calcite/p-182ae33e.entry.js +6 -0
- package/dist/calcite/{p-7dc2ec02.entry.js → p-1a7cd85b.entry.js} +2 -2
- package/dist/calcite/{p-51e004f0.js → p-1b22ed76.js} +1 -1
- package/dist/calcite/{p-249ad677.js → p-1bc680c0.js} +2 -2
- package/dist/calcite/{p-c52ed8af.system.js → p-1e79fe13.system.js} +1 -1
- package/dist/calcite/{p-719b45bd.system.entry.js → p-216384d1.system.entry.js} +2 -2
- package/dist/calcite/{p-b7b86d1f.entry.js → p-245d5e8d.entry.js} +2 -2
- package/dist/calcite/{p-c3f66440.js → p-25774cbb.js} +1 -1
- package/dist/calcite/{p-4aca956c.js → p-25f9df95.js} +2 -2
- package/dist/calcite/{p-8d0f536f.system.js → p-26b7ba8c.system.js} +1 -1
- package/dist/calcite/p-271cd9fe.entry.js +6 -0
- package/dist/calcite/p-28a24e01.system.entry.js +6 -0
- package/dist/calcite/{p-605fd245.system.js → p-2aef6338.system.js} +1 -1
- package/dist/calcite/p-2f5cf543.system.entry.js +6 -0
- package/dist/calcite/{p-f81ecf3b.system.entry.js → p-2fea26ed.system.entry.js} +2 -2
- package/dist/calcite/{p-b6ef18e4.system.entry.js → p-301b029a.system.entry.js} +2 -2
- package/dist/calcite/{p-0c7cbab4.system.js → p-3378c967.system.js} +2 -2
- package/dist/calcite/{p-98c36210.system.entry.js → p-3390a7b2.system.entry.js} +2 -2
- package/dist/calcite/{p-0ee9976e.system.js → p-33afff17.system.js} +1 -1
- package/dist/calcite/{p-bd7f1283.system.js → p-38d91dfb.system.js} +2 -2
- package/dist/calcite/{p-f098fd67.entry.js → p-39a04544.entry.js} +2 -2
- package/dist/calcite/{p-9082f3eb.system.entry.js → p-3a028b50.system.entry.js} +2 -2
- package/dist/calcite/{p-629379ad.system.entry.js → p-3e09cab4.system.entry.js} +2 -2
- package/dist/calcite/{p-2a7625f4.entry.js → p-3edd038f.entry.js} +2 -2
- package/dist/calcite/{p-b2f87ef3.entry.js → p-3f9791ee.entry.js} +2 -2
- package/dist/calcite/{p-b81af6dc.entry.js → p-4166344f.entry.js} +2 -2
- package/dist/calcite/{p-a850ead7.system.entry.js → p-418ef95e.system.entry.js} +2 -2
- package/dist/calcite/{p-21e1719a.system.entry.js → p-41fbd72c.system.entry.js} +2 -2
- package/dist/calcite/{p-80a3d4a9.system.js → p-4234ab78.system.js} +2 -2
- package/dist/calcite/{p-882bd991.js → p-425a556a.js} +2 -2
- package/dist/calcite/{p-54c16754.system.js → p-479b2d6c.system.js} +2 -2
- package/dist/calcite/p-47b85168.entry.js +6 -0
- package/dist/calcite/p-4aea9de2.system.entry.js +6 -0
- package/dist/calcite/p-4c52e9c2.entry.js +6 -0
- package/dist/calcite/{p-9a3a7f6f.entry.js → p-4ea2a868.entry.js} +2 -2
- package/dist/calcite/{p-958870e6.entry.js → p-4ea52e62.entry.js} +2 -2
- package/dist/calcite/{p-de8ef416.entry.js → p-4f2986cc.entry.js} +2 -2
- package/dist/calcite/p-508b5831.system.entry.js +6 -0
- package/dist/calcite/{p-e21549ba.system.js → p-50bd2069.system.js} +1 -1
- package/dist/calcite/p-5168bf89.entry.js +6 -0
- package/dist/calcite/{p-53ef710e.js → p-5276c1ec.js} +1 -1
- package/dist/calcite/{p-2168e80c.system.entry.js → p-52cb441d.system.entry.js} +2 -2
- package/dist/calcite/{p-687f3748.system.entry.js → p-53ad16af.system.entry.js} +2 -2
- package/dist/calcite/{p-11160dc4.entry.js → p-5dc10a31.entry.js} +2 -2
- package/dist/calcite/p-5f673ef0.entry.js +6 -0
- package/dist/calcite/{p-3fea207b.entry.js → p-62d45f03.entry.js} +2 -2
- package/dist/calcite/{p-88478be1.system.entry.js → p-65fd36f6.system.entry.js} +2 -2
- package/dist/calcite/{p-a620a8d6.system.entry.js → p-661923a1.system.entry.js} +2 -2
- package/dist/calcite/{p-2ae1d412.js → p-66c983bd.js} +1 -1
- package/dist/calcite/{p-8dc5d951.system.entry.js → p-6792952e.system.entry.js} +2 -2
- package/dist/calcite/{p-f540f442.entry.js → p-67bf0e0c.entry.js} +2 -2
- package/dist/calcite/{p-a4427b44.entry.js → p-685d4095.entry.js} +2 -2
- package/dist/calcite/{p-69e9ee2c.entry.js → p-68779c0c.entry.js} +2 -2
- package/dist/calcite/{p-16a43ccf.system.entry.js → p-688c138e.system.entry.js} +2 -2
- package/dist/calcite/p-68ca1531.js +6 -0
- package/dist/calcite/{p-65b3699d.entry.js → p-70a5a7d3.entry.js} +2 -2
- package/dist/calcite/p-73c3e863.system.entry.js +6 -0
- package/dist/calcite/{p-d75f8862.system.entry.js → p-76089557.system.entry.js} +2 -2
- package/dist/calcite/{p-9deeabfe.js → p-77620d1d.js} +2 -2
- package/dist/calcite/{p-d6e3b8ca.entry.js → p-7793aaf8.entry.js} +2 -2
- package/dist/calcite/{p-1340038c.system.entry.js → p-7a84ef2b.system.entry.js} +2 -2
- package/dist/calcite/{p-04c4101d.entry.js → p-7ae02558.entry.js} +2 -2
- package/dist/calcite/{p-e86a60ce.system.entry.js → p-7cfaf69a.system.entry.js} +2 -2
- package/dist/calcite/{p-8165a660.system.entry.js → p-7d451779.system.entry.js} +2 -2
- package/dist/calcite/p-7e5cbac9.entry.js +6 -0
- package/dist/calcite/{p-b018ce91.entry.js → p-8216249c.entry.js} +2 -2
- package/dist/calcite/{p-7e9adbe8.system.entry.js → p-83cda6ca.system.entry.js} +2 -2
- package/dist/calcite/{p-8ba3e3fd.entry.js → p-8443f905.entry.js} +2 -2
- package/dist/calcite/{p-c6ae093e.system.entry.js → p-86e26a68.system.entry.js} +2 -2
- package/dist/calcite/p-8890a762.system.entry.js +6 -0
- package/dist/calcite/{p-81f1f54e.entry.js → p-8a742803.entry.js} +2 -2
- package/dist/calcite/{p-390d2e56.system.entry.js → p-8ab9fe03.system.entry.js} +2 -2
- package/dist/calcite/{p-48afd872.system.entry.js → p-8e373624.system.entry.js} +2 -2
- package/dist/calcite/{p-d7c751ad.system.entry.js → p-909c7e9f.system.entry.js} +2 -2
- package/dist/calcite/{p-e5cac25c.system.entry.js → p-90b43e1d.system.entry.js} +2 -2
- package/dist/calcite/{p-60dbb9e5.entry.js → p-90de4ca7.entry.js} +2 -2
- package/dist/calcite/{p-df9306e7.entry.js → p-9577089b.entry.js} +2 -2
- package/dist/calcite/p-9979b3cc.entry.js +6 -0
- package/dist/calcite/{p-1d8977ea.system.js → p-997b25f6.system.js} +1 -1
- package/dist/calcite/{p-8d4f3cc0.system.entry.js → p-99c831bf.system.entry.js} +2 -2
- package/dist/calcite/p-9a3134a8.system.entry.js +6 -0
- package/dist/calcite/{p-d63f4482.entry.js → p-9a5bf5d4.entry.js} +2 -2
- package/dist/calcite/{p-755a2298.js → p-9abb7797.js} +1 -1
- package/dist/calcite/{p-b6082d4a.system.js → p-9c221bff.system.js} +2 -2
- package/dist/calcite/{p-fd40f692.system.entry.js → p-9cf45d8a.system.entry.js} +3 -3
- package/dist/calcite/{p-18e54b77.system.js → p-9f5a29e3.system.js} +1 -1
- package/dist/calcite/{p-faee622e.js → p-9fcc7694.js} +1 -1
- package/dist/calcite/{p-c0b7b5de.system.js → p-a034f678.system.js} +2 -2
- package/dist/calcite/{p-6baa1a8b.system.js → p-a3500c97.system.js} +1 -1
- package/dist/calcite/{p-59ea34c0.system.js → p-a5e9ab9d.system.js} +1 -1
- package/dist/calcite/{p-91857201.entry.js → p-abb4f475.entry.js} +2 -2
- package/dist/calcite/{p-a0972767.entry.js → p-b0aec8f6.entry.js} +2 -2
- package/dist/calcite/{p-df572a22.entry.js → p-b1bfe90e.entry.js} +2 -2
- package/dist/calcite/{p-1622b6a5.system.js → p-b5c14068.system.js} +1 -1
- package/dist/calcite/{p-03371bb3.system.entry.js → p-b6790740.system.entry.js} +2 -2
- package/dist/calcite/{p-1c7e953d.entry.js → p-b6a971c5.entry.js} +2 -2
- package/dist/calcite/{p-e0a6f245.system.entry.js → p-b8775dcc.system.entry.js} +2 -2
- package/dist/calcite/{p-e1abb410.system.js → p-b8e8d238.system.js} +2 -2
- package/dist/calcite/{p-dccf202a.js → p-b9fc721c.js} +1 -1
- package/dist/calcite/{p-8f026cdb.system.entry.js → p-bacc43fd.system.entry.js} +2 -2
- package/dist/calcite/p-bad44446.system.entry.js +6 -0
- package/dist/calcite/{p-d3b6ccfb.js → p-bfbb4282.js} +1 -1
- package/dist/calcite/p-c48c45d7.system.entry.js +6 -0
- package/dist/calcite/{p-8dedf454.system.entry.js → p-c6942637.system.entry.js} +2 -2
- package/dist/calcite/p-c923c596.entry.js +6 -0
- package/dist/calcite/{p-628a0e93.system.entry.js → p-cad62422.system.entry.js} +2 -2
- package/dist/calcite/p-cf269b12.system.entry.js +6 -0
- package/dist/calcite/{p-d86b8cdf.entry.js → p-cf776212.entry.js} +2 -2
- package/dist/calcite/{p-4ff40d0c.js → p-d0a22e49.js} +1 -1
- package/dist/calcite/{p-3d0cdd30.entry.js → p-d20726b5.entry.js} +2 -2
- package/dist/calcite/p-d20e1a18.entry.js +6 -0
- package/dist/calcite/{p-c791b44b.system.entry.js → p-d4f0fc6d.system.entry.js} +2 -2
- package/dist/calcite/{p-38e51129.system.entry.js → p-d51bfed7.system.entry.js} +2 -2
- package/dist/calcite/{p-270216b7.system.entry.js → p-d66502b7.system.entry.js} +2 -2
- package/dist/calcite/p-d6ed4f56.system.entry.js +6 -0
- package/dist/calcite/{p-2350565d.system.entry.js → p-d7cd1b78.system.entry.js} +2 -2
- package/dist/calcite/{p-c67f32c6.system.entry.js → p-d81bbe70.system.entry.js} +2 -2
- package/dist/calcite/p-d9aedee0.js +6 -0
- package/dist/calcite/{p-b991a209.system.entry.js → p-dade5839.system.entry.js} +2 -2
- package/dist/calcite/{p-32bc861e.js → p-dc6fe9a2.js} +2 -2
- package/dist/calcite/{p-25a2ebac.entry.js → p-deb43875.entry.js} +2 -2
- package/dist/calcite/p-e023da18.entry.js +6 -0
- package/dist/calcite/{p-2dcf1608.entry.js → p-e080169e.entry.js} +2 -2
- package/dist/calcite/{p-05f43ef2.system.entry.js → p-e09191ee.system.entry.js} +2 -2
- package/dist/calcite/{p-def86f92.entry.js → p-e099f568.entry.js} +2 -2
- package/dist/calcite/{p-3253bfda.system.js → p-e30177c8.system.js} +1 -1
- package/dist/calcite/{p-dd6e9797.entry.js → p-e431c0ef.entry.js} +2 -2
- package/dist/calcite/{p-e496ada1.system.js → p-e44750b8.system.js} +2 -2
- package/dist/calcite/p-e665a770.entry.js +6 -0
- package/dist/calcite/p-e69fe258.entry.js +6 -0
- package/dist/calcite/{p-672080f2.system.js → p-e9ffc73a.system.js} +1 -1
- package/dist/calcite/{p-17121fe0.system.js → p-ea87918b.system.js} +2 -2
- package/dist/calcite/{p-91353fa4.system.entry.js → p-ebc10873.system.entry.js} +2 -2
- package/dist/calcite/{p-c3237177.js → p-eec3051e.js} +1 -1
- package/dist/calcite/{p-965456ff.entry.js → p-f1256225.entry.js} +2 -2
- package/dist/calcite/{p-3aa53899.entry.js → p-f39fd61b.entry.js} +2 -2
- package/dist/calcite/{p-9cb93c1c.entry.js → p-f5a6faa8.entry.js} +2 -2
- package/dist/calcite/p-f5f27773.system.entry.js +6 -0
- package/dist/calcite/{p-61b23d2c.js → p-f83d5618.js} +1 -1
- package/dist/calcite/p-fe40a50c.entry.js +6 -0
- package/dist/calcite/{p-1411b5f7.system.entry.js → p-fe9cc596.system.entry.js} +2 -2
- package/dist/calcite/p-ff999b61.entry.js +6 -0
- package/dist/cjs/{ExpandToggle-d6baf288.js → ExpandToggle-3f2127c3.js} +5 -5
- package/dist/cjs/{Heading-2b85857c.js → Heading-3dabb5b6.js} +2 -2
- package/dist/cjs/{array-44bc1f92.js → array-99e2128b.js} +1 -1
- package/dist/cjs/calcite-accordion_2.cjs.entry.js +22 -16
- package/dist/cjs/calcite-action-bar.cjs.entry.js +16 -11
- package/dist/cjs/calcite-action-group.cjs.entry.js +8 -8
- package/dist/cjs/calcite-action-menu.cjs.entry.js +9 -8
- package/dist/cjs/calcite-action-pad.cjs.entry.js +14 -10
- package/dist/cjs/calcite-action.cjs.entry.js +9 -7
- package/dist/cjs/calcite-alert.cjs.entry.js +16 -13
- package/dist/cjs/calcite-avatar.cjs.entry.js +10 -5
- package/dist/cjs/calcite-block_2.cjs.entry.js +18 -10
- package/dist/cjs/calcite-button.cjs.entry.js +12 -10
- package/dist/cjs/calcite-card.cjs.entry.js +15 -9
- package/dist/cjs/calcite-checkbox.cjs.entry.js +9 -8
- package/dist/cjs/calcite-chip.cjs.entry.js +9 -7
- package/dist/cjs/calcite-color-picker_3.cjs.entry.js +69 -28
- package/dist/cjs/calcite-combobox_3.cjs.entry.js +19 -14
- package/dist/cjs/calcite-date-picker_4.cjs.entry.js +81 -21
- package/dist/cjs/calcite-dropdown_3.cjs.entry.js +26 -20
- package/dist/cjs/calcite-fab.cjs.entry.js +6 -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 +54 -9
- package/dist/cjs/calcite-handle.cjs.entry.js +5 -5
- package/dist/cjs/calcite-icon.cjs.entry.js +9 -5
- package/dist/cjs/calcite-inline-editable.cjs.entry.js +18 -12
- package/dist/cjs/calcite-input-date-picker.cjs.entry.js +35 -20
- package/dist/cjs/calcite-input-message.cjs.entry.js +4 -4
- package/dist/cjs/calcite-input-time-picker_2.cjs.entry.js +64 -31
- package/dist/cjs/calcite-input.cjs.entry.js +24 -18
- package/dist/cjs/calcite-label.cjs.entry.js +6 -5
- package/dist/cjs/calcite-link.cjs.entry.js +7 -6
- package/dist/cjs/calcite-list_3.cjs.entry.js +10 -10
- package/dist/cjs/calcite-loader.cjs.entry.js +11 -9
- package/dist/cjs/calcite-modal.cjs.entry.js +16 -7
- package/dist/cjs/calcite-notice.cjs.entry.js +10 -8
- package/dist/cjs/calcite-option_3.cjs.entry.js +13 -13
- package/dist/cjs/calcite-pagination.cjs.entry.js +8 -4
- package/dist/cjs/calcite-panel.cjs.entry.js +18 -11
- package/dist/cjs/calcite-pick-list_3.cjs.entry.js +31 -22
- package/dist/cjs/calcite-popover_2.cjs.entry.js +41 -12
- 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 +10 -8
- package/dist/cjs/calcite-radio-group_2.cjs.entry.js +10 -10
- package/dist/cjs/calcite-rating.cjs.entry.js +13 -9
- package/dist/cjs/calcite-scrim.cjs.entry.js +5 -3
- package/dist/cjs/calcite-shell_3.cjs.entry.js +8 -7
- package/dist/cjs/calcite-sortable-list.cjs.entry.js +5 -5
- package/dist/cjs/calcite-split-button.cjs.entry.js +8 -5
- package/dist/cjs/calcite-stepper_2.cjs.entry.js +25 -17
- package/dist/cjs/calcite-switch.cjs.entry.js +10 -8
- package/dist/cjs/calcite-tab_4.cjs.entry.js +52 -28
- package/dist/cjs/calcite-tile-select_2.cjs.entry.js +4 -4
- package/dist/cjs/calcite-tile.cjs.entry.js +8 -7
- package/dist/cjs/calcite-tip_3.cjs.entry.js +7 -7
- package/dist/cjs/calcite-tooltip_2.cjs.entry.js +8 -5
- package/dist/cjs/calcite-tree_2.cjs.entry.js +26 -15
- package/dist/cjs/calcite-value-list_2.cjs.entry.js +25 -17
- package/dist/cjs/calcite.cjs.js +3 -3
- package/dist/cjs/{conditionalSlot-cff90ea0.js → conditionalSlot-662d6d2c.js} +7 -3
- package/dist/cjs/{debounce-68242fb6.js → debounce-2f8539f6.js} +1 -1
- package/dist/cjs/{dom-5acea4b7.js → dom-4b70d9e4.js} +10 -2
- package/dist/cjs/{forIn-5ab24c3b.js → forIn-a56b99cf.js} +2 -2
- package/dist/cjs/{form-658d7707.js → form-c652f001.js} +19 -3
- package/dist/cjs/{guid-724c7f97.js → guid-f7b803c1.js} +1 -1
- package/dist/cjs/{index-650d6d02.js → index-2a34257a.js} +1 -1
- package/dist/cjs/index.cjs.js +1 -1
- package/dist/cjs/{interactive-d814dd5c.js → interactive-3be09cee.js} +7 -4
- package/dist/cjs/{interfaces-38ba3fd8.js → interfaces-bb11312b.js} +1 -1
- package/dist/cjs/{label-3f12ac6f.js → label-7a0126c8.js} +9 -2
- package/dist/cjs/loader.cjs.js +3 -3
- package/dist/cjs/{locale-e251255a.js → locale-f9d560ce.js} +2 -2
- package/dist/cjs/{math-b7cb0a92.js → math-7f411028.js} +1 -1
- package/dist/cjs/{number-1d914152.js → number-a0d4c1c0.js} +1 -1
- package/dist/cjs/{observers-2160326f.js → observers-c7320458.js} +1 -1
- package/dist/cjs/{popper-b0bf4165.js → popper-1f1e3064.js} +2 -2
- package/dist/cjs/{resources-71c3ec0c.js → resources-982472c2.js} +1 -1
- package/dist/cjs/{resources-d03200ed.js → resources-ae133545.js} +44 -3
- package/dist/cjs/{resources-19596569.js → resources-bbbea88d.js} +8 -8
- package/dist/cjs/{resources-3584395f.js → resources-f66e61f3.js} +1 -1
- package/dist/cjs/{sortable.esm-f88acbf9.js → sortable.esm-29045f21.js} +1 -1
- package/dist/cjs/{utils-9799b016.js → utils-c307f757.js} +1 -1
- package/dist/collection/components/accordion/accordion.js +16 -11
- package/dist/collection/components/accordion/interfaces.js +1 -1
- package/dist/collection/components/accordion-item/accordion-item.js +14 -13
- package/dist/collection/components/action/action.js +4 -2
- package/dist/collection/components/action/resources.js +1 -1
- package/dist/collection/components/action-bar/action-bar.js +15 -4
- 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 +2 -1
- package/dist/collection/components/action-menu/resources.js +1 -1
- package/dist/collection/components/action-pad/action-pad.js +14 -4
- package/dist/collection/components/action-pad/resources.js +1 -1
- package/dist/collection/components/alert/alert.js +18 -14
- 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 +6 -1
- package/dist/collection/components/block/block.js +19 -5
- 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 +5 -3
- 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 +12 -5
- package/dist/collection/components/card/resources.js +1 -1
- package/dist/collection/components/checkbox/checkbox.js +3 -2
- package/dist/collection/components/chip/chip.js +4 -2
- 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 +58 -19
- 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 +5 -3
- package/dist/collection/components/color-picker-hex-input/resources.js +1 -1
- package/dist/collection/components/color-picker-swatch/color-picker-swatch.js +1 -1
- package/dist/collection/components/color-picker-swatch/resources.js +1 -1
- package/dist/collection/components/combobox/combobox.js +7 -4
- 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 +11 -3
- 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/ru.json +4 -4
- package/dist/collection/components/date-picker/date-picker.js +30 -5
- 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 +7 -1
- package/dist/collection/components/date-picker-day/date-picker-day.js +4 -4
- package/dist/collection/components/date-picker-month/date-picker-month.js +37 -9
- package/dist/collection/components/date-picker-month-header/date-picker-month-header.js +8 -1
- package/dist/collection/components/dropdown/dropdown.js +14 -11
- 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 +9 -7
- 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 +12 -11
- package/dist/collection/components/dropdown-item/resources.js +1 -1
- package/dist/collection/components/fab/fab.js +2 -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 +29 -1
- package/dist/collection/components/handle/handle.js +3 -3
- 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 +5 -1
- package/dist/collection/components/inline-editable/inline-editable.js +14 -8
- package/dist/collection/components/inline-editable/resources.js +1 -1
- package/dist/collection/components/input/input.js +18 -12
- 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 +27 -12
- package/dist/collection/components/input-message/input-message.js +1 -1
- package/dist/collection/components/input-message/interfaces.js +1 -1
- package/dist/collection/components/input-time-picker/input-time-picker.js +13 -7
- package/dist/collection/components/interfaces.js +1 -1
- package/dist/collection/components/label/label.js +2 -1
- package/dist/collection/components/label/resources.js +1 -1
- package/dist/collection/components/link/link.js +3 -2
- package/dist/collection/components/list/list.js +4 -4
- package/dist/collection/components/list/resources.js +1 -1
- package/dist/collection/components/list-item/list-item.js +5 -5
- package/dist/collection/components/list-item/resources.js +1 -1
- package/dist/collection/components/list-item-group/list-item-group.js +3 -3
- package/dist/collection/components/list-item-group/resources.js +1 -1
- package/dist/collection/components/loader/loader.css +3 -3
- package/dist/collection/components/loader/loader.js +18 -16
- package/dist/collection/components/modal/interfaces.js +1 -1
- package/dist/collection/components/modal/modal.js +41 -8
- package/dist/collection/components/modal/resources.js +1 -1
- package/dist/collection/components/notice/notice.js +6 -3
- package/dist/collection/components/notice/resources.js +1 -1
- package/dist/collection/components/option/option.js +5 -5
- package/dist/collection/components/option-group/option-group.js +4 -4
- package/dist/collection/components/pagination/pagination.js +7 -3
- package/dist/collection/components/pagination/resources.js +1 -1
- package/dist/collection/components/panel/panel.js +27 -8
- package/dist/collection/components/panel/resources.js +1 -1
- package/dist/collection/components/pick-list/pick-list.js +23 -12
- package/dist/collection/components/pick-list/resources.js +1 -1
- package/dist/collection/components/pick-list/shared-list-logic.js +3 -3
- 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 +23 -13
- package/dist/collection/components/pick-list-item/resources.js +1 -1
- package/dist/collection/components/popover/PopoverManager.js +14 -3
- package/dist/collection/components/popover/popover.js +55 -8
- package/dist/collection/components/popover/resources.js +1 -1
- package/dist/collection/components/popover-manager/popover-manager.js +2 -1
- package/dist/collection/components/progress/progress.js +1 -1
- package/dist/collection/components/radio-button/radio-button.js +3 -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 +3 -3
- package/dist/collection/components/radio-group-item/radio-group-item.js +4 -4
- package/dist/collection/components/radio-group-item/resources.js +1 -1
- package/dist/collection/components/rating/rating.js +7 -3
- 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 +4 -2
- package/dist/collection/components/select/resources.js +1 -1
- package/dist/collection/components/select/select.js +3 -3
- 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 +2 -1
- package/dist/collection/components/slider/slider.js +18 -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 +6 -3
- package/dist/collection/components/stepper/interfaces.js +1 -1
- package/dist/collection/components/stepper/stepper.js +27 -14
- package/dist/collection/components/stepper-item/stepper-item.js +12 -11
- package/dist/collection/components/switch/switch.js +4 -2
- package/dist/collection/components/tab/interfaces.js +1 -1
- package/dist/collection/components/tab/tab.js +25 -8
- package/dist/collection/components/tab-nav/tab-nav.css +6 -0
- package/dist/collection/components/tab-nav/tab-nav.js +23 -12
- package/dist/collection/components/tab-title/tab-title.css +27 -0
- package/dist/collection/components/tab-title/tab-title.js +36 -20
- package/dist/collection/components/tabs/interfaces.js +1 -1
- package/dist/collection/components/tabs/resources.js +1 -1
- package/dist/collection/components/tabs/tabs.css +12 -0
- package/dist/collection/components/tabs/tabs.js +11 -7
- package/dist/collection/components/tile/resources.js +1 -1
- package/dist/collection/components/tile/tile.js +2 -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 +61 -26
- 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 +3 -1
- package/dist/collection/components/tooltip-manager/tooltip-manager.js +2 -1
- package/dist/collection/components/tree/interfaces.js +1 -1
- package/dist/collection/components/tree/tree.js +11 -6
- 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 +24 -18
- package/dist/collection/components/value-list/resources.js +1 -1
- package/dist/collection/components/value-list/value-list.js +24 -13
- package/dist/collection/components/value-list-item/resources.js +1 -1
- package/dist/collection/components/value-list-item/value-list-item.js +16 -7
- package/dist/collection/utils/array.js +1 -1
- package/dist/collection/utils/conditionalSlot.js +5 -1
- package/dist/collection/utils/date.js +36 -1
- package/dist/collection/utils/dom.js +9 -1
- package/dist/collection/utils/filter.js +1 -1
- package/dist/collection/utils/form.js +17 -1
- package/dist/collection/utils/globalAttributes.js +6 -1
- package/dist/collection/utils/guid.js +1 -1
- package/dist/collection/utils/interactive.js +7 -4
- package/dist/collection/utils/key.js +1 -1
- package/dist/collection/utils/label.js +8 -1
- package/dist/collection/utils/locale.js +1 -1
- package/dist/collection/utils/math.js +1 -1
- package/dist/collection/utils/number.js +1 -1
- package/dist/collection/utils/observers.js +1 -1
- package/dist/collection/utils/popper.js +1 -1
- package/dist/collection/utils/resources.js +1 -1
- package/dist/collection/utils/time.js +1 -1
- package/dist/components/ExpandToggle.js +1 -1
- package/dist/components/Heading.js +1 -1
- package/dist/components/action-group.js +1 -1
- package/dist/components/action-menu.js +2 -1
- package/dist/components/action.js +4 -2
- package/dist/components/array.js +1 -1
- package/dist/components/button.js +5 -3
- package/dist/components/calcite-accordion-item.js +10 -9
- package/dist/components/calcite-accordion.js +12 -7
- package/dist/components/calcite-action-bar.js +7 -2
- 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 +6 -2
- package/dist/components/calcite-action.js +1 -1
- package/dist/components/calcite-alert.js +13 -10
- package/dist/components/calcite-avatar.js +6 -1
- package/dist/components/calcite-block-section.js +1 -1
- package/dist/components/calcite-block.js +11 -3
- package/dist/components/calcite-button.js +1 -1
- package/dist/components/calcite-card.js +10 -4
- 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 +58 -19
- package/dist/components/calcite-combobox-item-group.js +1 -1
- package/dist/components/calcite-combobox-item.js +3 -1
- package/dist/components/calcite-combobox.js +6 -3
- 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 +8 -6
- package/dist/components/calcite-dropdown-item.js +9 -8
- package/dist/components/calcite-dropdown.js +1 -1
- package/dist/components/calcite-fab.js +2 -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 +13 -7
- package/dist/components/calcite-input-date-picker.js +25 -10
- package/dist/components/calcite-input-message.js +1 -1
- package/dist/components/calcite-input-time-picker.js +9 -5
- 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 +2 -2
- package/dist/components/calcite-list.js +2 -2
- package/dist/components/calcite-loader.js +1 -1
- package/dist/components/calcite-modal.js +11 -2
- package/dist/components/calcite-notice.js +4 -2
- package/dist/components/calcite-option-group.js +3 -3
- package/dist/components/calcite-option.js +4 -4
- package/dist/components/calcite-pagination.js +7 -3
- package/dist/components/calcite-panel.js +10 -3
- package/dist/components/calcite-pick-list-group.js +1 -1
- package/dist/components/calcite-pick-list-item.js +1 -1
- package/dist/components/calcite-pick-list.js +12 -7
- package/dist/components/calcite-popover-manager.js +2 -1
- package/dist/components/calcite-popover.js +1 -1
- package/dist/components/calcite-progress.js +1 -1
- package/dist/components/calcite-radio-button-group.js +1 -1
- package/dist/components/calcite-radio-button.js +3 -1
- package/dist/components/calcite-radio-group-item.js +3 -3
- package/dist/components/calcite-radio-group.js +3 -3
- package/dist/components/calcite-rating.js +7 -3
- package/dist/components/calcite-scrim.js +1 -1
- package/dist/components/calcite-select.js +2 -2
- package/dist/components/calcite-shell-center-row.js +1 -1
- package/dist/components/calcite-shell-panel.js +2 -1
- package/dist/components/calcite-shell.js +1 -1
- package/dist/components/calcite-slider.js +18 -1
- package/dist/components/calcite-sortable-list.js +1 -1
- package/dist/components/calcite-split-button.js +6 -3
- package/dist/components/calcite-stepper-item.js +9 -8
- package/dist/components/calcite-stepper.js +15 -8
- 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 +2 -1
- package/dist/components/calcite-tooltip.js +3 -1
- package/dist/components/calcite-tree-item.js +14 -8
- package/dist/components/calcite-tree.js +9 -4
- package/dist/components/calcite-value-list-item.js +6 -3
- package/dist/components/calcite-value-list.js +12 -7
- package/dist/components/checkbox.js +3 -2
- package/dist/components/chip.js +4 -2
- package/dist/components/color-picker-hex-input.js +5 -3
- package/dist/components/color-picker-swatch.js +1 -1
- package/dist/components/conditionalSlot.js +5 -1
- package/dist/components/date-picker-day.js +3 -3
- package/dist/components/date-picker-month-header.js +8 -1
- package/dist/components/date-picker-month.js +35 -7
- package/dist/components/date-picker.js +36 -5
- package/dist/components/date.js +36 -1
- package/dist/components/debounce.js +1 -1
- package/dist/components/dom.js +9 -1
- package/dist/components/dropdown.js +8 -5
- package/dist/components/filter.js +1 -1
- package/dist/components/forIn.js +1 -1
- package/dist/components/form.js +17 -1
- package/dist/components/graph.js +29 -1
- package/dist/components/guid.js +1 -1
- package/dist/components/handle.js +2 -2
- package/dist/components/icon.js +5 -1
- package/dist/components/index.js +1 -1
- package/dist/components/input.js +14 -8
- package/dist/components/interactive.js +7 -4
- package/dist/components/interfaces.js +1 -1
- package/dist/components/interfaces2.js +1 -1
- package/dist/components/label.js +8 -1
- package/dist/components/label2.js +2 -1
- package/dist/components/link.js +3 -2
- package/dist/components/loader.js +9 -7
- package/dist/components/locale.js +1 -1
- package/dist/components/math.js +1 -1
- package/dist/components/number.js +1 -1
- package/dist/components/observers.js +1 -1
- package/dist/components/pick-list-item.js +12 -8
- package/dist/components/popover.js +35 -6
- package/dist/components/popper.js +1 -1
- package/dist/components/progress.js +1 -1
- package/dist/components/resources.js +1 -1
- package/dist/components/resources2.js +1 -1
- package/dist/components/resources3.js +1 -1
- package/dist/components/scrim.js +4 -2
- package/dist/components/shared-list-render.js +4 -4
- package/dist/components/sortable.esm.js +1 -1
- package/dist/components/switch.js +4 -2
- package/dist/components/tab-nav.js +18 -7
- package/dist/components/tab-title.js +16 -12
- package/dist/components/tab.js +9 -4
- package/dist/components/tabs.js +9 -5
- package/dist/components/tile.js +2 -1
- package/dist/components/time-picker.js +50 -21
- package/dist/components/utils.js +1 -1
- package/dist/components/utils2.js +1 -1
- package/dist/custom-elements/index.js +721 -242
- package/dist/esm/{ExpandToggle-4f621ad1.js → ExpandToggle-1386bad5.js} +5 -5
- package/dist/esm/{Heading-77bbacee.js → Heading-2828947f.js} +2 -2
- package/dist/esm/{array-a017e08f.js → array-e01eb758.js} +1 -1
- package/dist/esm/calcite-accordion_2.entry.js +22 -16
- package/dist/esm/calcite-action-bar.entry.js +16 -11
- package/dist/esm/calcite-action-group.entry.js +8 -8
- package/dist/esm/calcite-action-menu.entry.js +9 -8
- package/dist/esm/calcite-action-pad.entry.js +14 -10
- package/dist/esm/calcite-action.entry.js +9 -7
- package/dist/esm/calcite-alert.entry.js +16 -13
- package/dist/esm/calcite-avatar.entry.js +10 -5
- package/dist/esm/calcite-block_2.entry.js +18 -10
- package/dist/esm/calcite-button.entry.js +12 -10
- package/dist/esm/calcite-card.entry.js +15 -9
- package/dist/esm/calcite-checkbox.entry.js +9 -8
- package/dist/esm/calcite-chip.entry.js +9 -7
- package/dist/esm/calcite-color-picker_3.entry.js +69 -28
- package/dist/esm/calcite-combobox_3.entry.js +19 -14
- package/dist/esm/calcite-date-picker_4.entry.js +81 -21
- package/dist/esm/calcite-dropdown_3.entry.js +26 -20
- package/dist/esm/calcite-fab.entry.js +6 -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 +54 -9
- package/dist/esm/calcite-handle.entry.js +5 -5
- package/dist/esm/calcite-icon.entry.js +9 -5
- package/dist/esm/calcite-inline-editable.entry.js +18 -12
- package/dist/esm/calcite-input-date-picker.entry.js +35 -20
- package/dist/esm/calcite-input-message.entry.js +4 -4
- package/dist/esm/calcite-input-time-picker_2.entry.js +64 -31
- package/dist/esm/calcite-input.entry.js +24 -18
- package/dist/esm/calcite-label.entry.js +6 -5
- package/dist/esm/calcite-link.entry.js +7 -6
- package/dist/esm/calcite-list_3.entry.js +10 -10
- package/dist/esm/calcite-loader.entry.js +11 -9
- package/dist/esm/calcite-modal.entry.js +16 -7
- package/dist/esm/calcite-notice.entry.js +10 -8
- package/dist/esm/calcite-option_3.entry.js +13 -13
- package/dist/esm/calcite-pagination.entry.js +8 -4
- package/dist/esm/calcite-panel.entry.js +18 -11
- package/dist/esm/calcite-pick-list_3.entry.js +31 -22
- package/dist/esm/calcite-popover_2.entry.js +41 -12
- 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 +10 -8
- package/dist/esm/calcite-radio-group_2.entry.js +10 -10
- package/dist/esm/calcite-rating.entry.js +13 -9
- package/dist/esm/calcite-scrim.entry.js +5 -3
- package/dist/esm/calcite-shell_3.entry.js +8 -7
- package/dist/esm/calcite-sortable-list.entry.js +5 -5
- package/dist/esm/calcite-split-button.entry.js +8 -5
- package/dist/esm/calcite-stepper_2.entry.js +25 -17
- package/dist/esm/calcite-switch.entry.js +10 -8
- package/dist/esm/calcite-tab_4.entry.js +52 -28
- package/dist/esm/calcite-tile-select_2.entry.js +4 -4
- package/dist/esm/calcite-tile.entry.js +8 -7
- package/dist/esm/calcite-tip_3.entry.js +7 -7
- package/dist/esm/calcite-tooltip_2.entry.js +8 -5
- package/dist/esm/calcite-tree_2.entry.js +26 -15
- package/dist/esm/calcite-value-list_2.entry.js +25 -17
- package/dist/esm/calcite.js +3 -3
- package/dist/esm/{conditionalSlot-efe9fada.js → conditionalSlot-3eed64fd.js} +7 -3
- package/dist/esm/{debounce-3542cd6c.js → debounce-09d6a561.js} +1 -1
- package/dist/esm/{dom-92353f93.js → dom-c27aa997.js} +10 -2
- package/dist/esm/{forIn-f786dc6a.js → forIn-f1632963.js} +2 -2
- package/dist/esm/{form-6b113ff9.js → form-ae9c7b51.js} +19 -3
- package/dist/esm/{guid-3d2249ab.js → guid-30502e46.js} +1 -1
- package/dist/esm/{index-090024fb.js → index-b9d03d54.js} +1 -1
- package/dist/esm/index.js +1 -1
- package/dist/esm/{interactive-b0989f51.js → interactive-f48d07dd.js} +7 -4
- package/dist/esm/{interfaces-6565effc.js → interfaces-590d249e.js} +1 -1
- package/dist/esm/{label-71a2e73c.js → label-1aee1deb.js} +9 -2
- package/dist/esm/loader.js +3 -3
- package/dist/esm/{locale-6fbb1595.js → locale-529b8688.js} +2 -2
- package/dist/esm/{math-86e70cf6.js → math-7cf06c9e.js} +1 -1
- package/dist/esm/{number-0354c374.js → number-c581416f.js} +1 -1
- package/dist/esm/{observers-39799b92.js → observers-851341e8.js} +1 -1
- package/dist/esm/{popper-23ea67bc.js → popper-b376ab28.js} +2 -2
- package/dist/esm/{resources-08e039a8.js → resources-2cbb3ed4.js} +8 -8
- package/dist/esm/{resources-f6a8c77e.js → resources-6c12ef01.js} +1 -1
- package/dist/esm/{resources-c6972cbd.js → resources-add11146.js} +1 -1
- package/dist/esm/{resources-0f1993c7.js → resources-dc7edf07.js} +44 -3
- package/dist/esm/{sortable.esm-1ac05cb0.js → sortable.esm-0bec9695.js} +1 -1
- package/dist/esm/{utils-7e9a0947.js → utils-1629f315.js} +1 -1
- package/dist/esm-es5/{ExpandToggle-4f621ad1.js → ExpandToggle-1386bad5.js} +2 -2
- package/dist/esm-es5/{Heading-77bbacee.js → Heading-2828947f.js} +2 -2
- package/dist/esm-es5/{array-a017e08f.js → array-e01eb758.js} +1 -1
- package/dist/esm-es5/calcite-accordion_2.entry.js +2 -2
- package/dist/esm-es5/calcite-action-bar.entry.js +2 -2
- package/dist/esm-es5/calcite-action-group.entry.js +2 -2
- package/dist/esm-es5/calcite-action-menu.entry.js +2 -2
- package/dist/esm-es5/calcite-action-pad.entry.js +3 -3
- package/dist/esm-es5/calcite-action.entry.js +2 -2
- package/dist/esm-es5/calcite-alert.entry.js +2 -2
- package/dist/esm-es5/calcite-avatar.entry.js +2 -2
- package/dist/esm-es5/calcite-block_2.entry.js +2 -2
- package/dist/esm-es5/calcite-button.entry.js +2 -2
- package/dist/esm-es5/calcite-card.entry.js +2 -2
- package/dist/esm-es5/calcite-checkbox.entry.js +2 -2
- package/dist/esm-es5/calcite-chip.entry.js +2 -2
- package/dist/esm-es5/calcite-color-picker_3.entry.js +2 -2
- package/dist/esm-es5/calcite-combobox_3.entry.js +2 -2
- package/dist/esm-es5/calcite-date-picker_4.entry.js +2 -2
- package/dist/esm-es5/calcite-dropdown_3.entry.js +2 -2
- package/dist/esm-es5/calcite-fab.entry.js +3 -3
- 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 +3 -3
- package/dist/esm-es5/calcite-input-date-picker.entry.js +3 -3
- package/dist/esm-es5/calcite-input-message.entry.js +2 -2
- package/dist/esm-es5/calcite-input-time-picker_2.entry.js +2 -2
- package/dist/esm-es5/calcite-input.entry.js +2 -2
- package/dist/esm-es5/calcite-label.entry.js +2 -2
- package/dist/esm-es5/calcite-link.entry.js +2 -2
- 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 +3 -3
- 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 +3 -3
- 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-efe9fada.js → conditionalSlot-3eed64fd.js} +2 -2
- package/dist/esm-es5/{debounce-3542cd6c.js → debounce-09d6a561.js} +1 -1
- package/dist/esm-es5/{dom-92353f93.js → dom-c27aa997.js} +2 -2
- package/dist/esm-es5/{forIn-f786dc6a.js → forIn-f1632963.js} +2 -2
- package/dist/esm-es5/{form-6b113ff9.js → form-ae9c7b51.js} +2 -2
- package/dist/esm-es5/{guid-3d2249ab.js → guid-30502e46.js} +1 -1
- package/dist/esm-es5/{index-090024fb.js → index-b9d03d54.js} +1 -1
- package/dist/esm-es5/index.js +1 -1
- package/dist/esm-es5/{interactive-b0989f51.js → interactive-f48d07dd.js} +1 -1
- package/dist/esm-es5/{interfaces-6565effc.js → interfaces-590d249e.js} +1 -1
- package/dist/esm-es5/{label-71a2e73c.js → label-1aee1deb.js} +2 -2
- package/dist/esm-es5/loader.js +2 -2
- package/dist/esm-es5/{locale-6fbb1595.js → locale-529b8688.js} +2 -2
- package/dist/esm-es5/{math-86e70cf6.js → math-7cf06c9e.js} +1 -1
- package/dist/esm-es5/{number-0354c374.js → number-c581416f.js} +1 -1
- package/dist/esm-es5/{observers-39799b92.js → observers-851341e8.js} +1 -1
- package/dist/esm-es5/{popper-23ea67bc.js → popper-b376ab28.js} +2 -2
- package/dist/esm-es5/resources-2cbb3ed4.js +6 -0
- package/dist/esm-es5/{resources-f6a8c77e.js → resources-6c12ef01.js} +1 -1
- package/dist/esm-es5/{resources-c6972cbd.js → resources-add11146.js} +1 -1
- package/dist/esm-es5/{resources-0f1993c7.js → resources-dc7edf07.js} +2 -2
- package/dist/esm-es5/{sortable.esm-1ac05cb0.js → sortable.esm-0bec9695.js} +1 -1
- package/dist/esm-es5/{utils-7e9a0947.js → utils-1629f315.js} +1 -1
- package/dist/extras/docs-json.json +190 -80
- 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/accordion/accordion.d.ts +6 -4
- package/dist/types/components/accordion-item/accordion-item.d.ts +4 -4
- package/dist/types/components/action/action.d.ts +4 -1
- package/dist/types/components/action-bar/action-bar.d.ts +6 -1
- package/dist/types/components/action-menu/action-menu.d.ts +1 -0
- package/dist/types/components/action-pad/action-pad.d.ts +5 -1
- package/dist/types/components/alert/alert.d.ts +11 -6
- package/dist/types/components/avatar/utils.d.ts +5 -0
- package/dist/types/components/block/block.d.ts +10 -2
- package/dist/types/components/button/button.d.ts +4 -2
- package/dist/types/components/card/card.d.ts +11 -4
- package/dist/types/components/checkbox/checkbox.d.ts +3 -1
- package/dist/types/components/chip/chip.d.ts +3 -1
- package/dist/types/components/color-picker/color-picker.d.ts +57 -18
- package/dist/types/components/color-picker-hex-input/color-picker-hex-input.d.ts +3 -1
- package/dist/types/components/combobox/combobox.d.ts +9 -3
- package/dist/types/components/combobox-item/combobox-item.d.ts +2 -0
- package/dist/types/components/date-picker/date-picker.d.ts +32 -3
- package/dist/types/components/date-picker/utils.d.ts +5 -0
- package/dist/types/components/date-picker-day/date-picker-day.d.ts +2 -1
- package/dist/types/components/date-picker-month/date-picker-month.d.ts +30 -2
- package/dist/types/components/date-picker-month-header/date-picker-month-header.d.ts +7 -0
- package/dist/types/components/dropdown/dropdown.d.ts +7 -6
- package/dist/types/components/dropdown-group/dropdown-group.d.ts +5 -3
- package/dist/types/components/dropdown-item/dropdown-item.d.ts +3 -3
- package/dist/types/components/fab/fab.d.ts +1 -0
- package/dist/types/components/graph/util.d.ts +14 -0
- package/dist/types/components/handle/handle.d.ts +1 -1
- package/dist/types/components/icon/utils.d.ts +4 -0
- package/dist/types/components/inline-editable/inline-editable.d.ts +10 -4
- package/dist/types/components/input/input.d.ts +17 -8
- package/dist/types/components/input-date-picker/input-date-picker.d.ts +25 -6
- package/dist/types/components/input-message/input-message.d.ts +7 -3
- package/dist/types/components/input-time-picker/input-time-picker.d.ts +4 -2
- package/dist/types/components/label/label.d.ts +1 -0
- package/dist/types/components/link/link.d.ts +2 -1
- package/dist/types/components/list/list.d.ts +2 -2
- package/dist/types/components/list-item/list-item.d.ts +3 -3
- package/dist/types/components/list-item-group/list-item-group.d.ts +2 -2
- package/dist/types/components/loader/loader.d.ts +11 -9
- package/dist/types/components/modal/modal.d.ts +14 -3
- package/dist/types/components/notice/notice.d.ts +9 -4
- package/dist/types/components/option/option.d.ts +1 -1
- package/dist/types/components/option-group/option-group.d.ts +1 -1
- package/dist/types/components/pagination/pagination.d.ts +8 -2
- package/dist/types/components/panel/panel.d.ts +10 -2
- package/dist/types/components/pick-list/pick-list.d.ts +7 -3
- package/dist/types/components/pick-list/shared-list-logic.d.ts +1 -1
- package/dist/types/components/pick-list-item/pick-list-item.d.ts +9 -3
- package/dist/types/components/popover/PopoverManager.d.ts +2 -0
- package/dist/types/components/popover/popover.d.ts +20 -3
- package/dist/types/components/popover-manager/popover-manager.d.ts +1 -0
- package/dist/types/components/radio-button/radio-button.d.ts +6 -0
- package/dist/types/components/radio-group-item/radio-group-item.d.ts +2 -1
- package/dist/types/components/rating/rating.d.ts +6 -2
- package/dist/types/components/scrim/scrim.d.ts +3 -1
- package/dist/types/components/shell-panel/shell-panel.d.ts +2 -0
- package/dist/types/components/slider/slider.d.ts +19 -0
- package/dist/types/components/split-button/split-button.d.ts +5 -2
- package/dist/types/components/stepper/stepper.d.ts +8 -3
- package/dist/types/components/stepper-item/stepper-item.d.ts +3 -3
- package/dist/types/components/switch/switch.d.ts +3 -1
- package/dist/types/components/tab/tab.d.ts +6 -2
- package/dist/types/components/tab-nav/tab-nav.d.ts +15 -4
- package/dist/types/components/tab-title/tab-title.d.ts +20 -8
- package/dist/types/components/tabs/tabs.d.ts +6 -2
- package/dist/types/components/tile/tile.d.ts +1 -0
- package/dist/types/components/time-picker/time-picker.d.ts +45 -16
- package/dist/types/components/tip-manager/tip-manager.d.ts +1 -0
- package/dist/types/components/tooltip/tooltip.d.ts +2 -0
- package/dist/types/components/tooltip-manager/tooltip-manager.d.ts +1 -0
- package/dist/types/components/tree/tree.d.ts +11 -4
- package/dist/types/components/tree-item/tree-item.d.ts +26 -12
- package/dist/types/components/value-list/value-list.d.ts +8 -4
- package/dist/types/components/value-list-item/value-list-item.d.ts +5 -2
- package/dist/types/components.d.ts +78 -38
- package/dist/types/preact.d.ts +56 -56
- package/dist/types/utils/conditionalSlot.d.ts +4 -0
- package/dist/types/utils/date.d.ts +35 -0
- package/dist/types/utils/dom.d.ts +8 -0
- package/dist/types/utils/form.d.ts +14 -0
- package/dist/types/utils/globalAttributes.d.ts +5 -0
- package/dist/types/utils/interactive.d.ts +7 -4
- package/dist/types/utils/label.d.ts +7 -0
- package/hydrate/index.js +720 -247
- package/package.json +4 -3
- package/dist/calcite/p-1121bf6c.entry.js +0 -6
- package/dist/calcite/p-112e0506.entry.js +0 -6
- package/dist/calcite/p-12df5af5.entry.js +0 -6
- package/dist/calcite/p-167b2f4a.system.entry.js +0 -6
- package/dist/calcite/p-169dc58f.entry.js +0 -6
- package/dist/calcite/p-23825835.system.entry.js +0 -6
- package/dist/calcite/p-2a4f0b45.system.entry.js +0 -6
- package/dist/calcite/p-2d00b485.entry.js +0 -6
- package/dist/calcite/p-2eaf7bd6.entry.js +0 -6
- package/dist/calcite/p-2f269ad9.entry.js +0 -6
- package/dist/calcite/p-3310a0b7.entry.js +0 -6
- package/dist/calcite/p-33ff61c9.entry.js +0 -6
- package/dist/calcite/p-35a4e949.js +0 -6
- package/dist/calcite/p-5202bff5.system.entry.js +0 -6
- package/dist/calcite/p-5eb52277.js +0 -6
- package/dist/calcite/p-6247f386.system.entry.js +0 -6
- package/dist/calcite/p-67610187.system.js +0 -6
- package/dist/calcite/p-6a7883a6.system.entry.js +0 -6
- package/dist/calcite/p-6bd67c03.js +0 -6
- package/dist/calcite/p-74877cc8.entry.js +0 -6
- package/dist/calcite/p-77b7aacb.entry.js +0 -6
- package/dist/calcite/p-84d0d4d8.entry.js +0 -6
- package/dist/calcite/p-97becb53.system.entry.js +0 -6
- package/dist/calcite/p-9e9b5138.system.entry.js +0 -6
- package/dist/calcite/p-a966bab7.system.js +0 -6
- package/dist/calcite/p-b5b08c47.entry.js +0 -6
- package/dist/calcite/p-bfa06e68.system.entry.js +0 -6
- package/dist/calcite/p-bfd4346a.system.entry.js +0 -6
- package/dist/calcite/p-d96ccda9.system.entry.js +0 -6
- package/dist/calcite/p-dbf820ef.entry.js +0 -6
- package/dist/calcite/p-e6df17ef.entry.js +0 -6
- package/dist/calcite/p-f2d088fc.entry.js +0 -6
- package/dist/calcite/p-f7d72376.entry.js +0 -6
- package/dist/calcite/p-fe3ae78d.system.entry.js +0 -6
- package/dist/esm-es5/resources-08e039a8.js +0 -6
package/hydrate/index.js
CHANGED
|
@@ -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.469
|
|
5
5
|
*/
|
|
6
6
|
'use strict';
|
|
7
7
|
|
|
@@ -5561,7 +5561,7 @@ const accordionCss = "@-webkit-keyframes in{0%{opacity:0}100%{opacity:1}}@keyfra
|
|
|
5561
5561
|
class Accordion {
|
|
5562
5562
|
constructor(hostRef) {
|
|
5563
5563
|
registerInstance(this, hostRef);
|
|
5564
|
-
this.
|
|
5564
|
+
this.calciteInternalAccordionChange = createEvent(this, "calciteInternalAccordionChange", 7);
|
|
5565
5565
|
//--------------------------------------------------------------------------
|
|
5566
5566
|
//
|
|
5567
5567
|
// Public Properties
|
|
@@ -5575,8 +5575,10 @@ class Accordion {
|
|
|
5575
5575
|
this.iconType = "chevron";
|
|
5576
5576
|
/** specify the scale of accordion, defaults to m */
|
|
5577
5577
|
this.scale = "m";
|
|
5578
|
-
/**
|
|
5579
|
-
*
|
|
5578
|
+
/**
|
|
5579
|
+
* specify the selection mode - multi (allow any number of open items), single (allow one open item),
|
|
5580
|
+
* or single-persist (allow and require one open item), defaults to multi
|
|
5581
|
+
*/
|
|
5580
5582
|
this.selectionMode = "multi";
|
|
5581
5583
|
//--------------------------------------------------------------------------
|
|
5582
5584
|
//
|
|
@@ -5612,7 +5614,7 @@ class Accordion {
|
|
|
5612
5614
|
// Event Listeners
|
|
5613
5615
|
//
|
|
5614
5616
|
//--------------------------------------------------------------------------
|
|
5615
|
-
|
|
5617
|
+
calciteInternalAccordionItemKeyEvent(e) {
|
|
5616
5618
|
const item = e.detail.item;
|
|
5617
5619
|
const parent = e.detail.parent;
|
|
5618
5620
|
if (this.el === parent) {
|
|
@@ -5645,6 +5647,7 @@ class Accordion {
|
|
|
5645
5647
|
break;
|
|
5646
5648
|
}
|
|
5647
5649
|
}
|
|
5650
|
+
e.stopPropagation();
|
|
5648
5651
|
}
|
|
5649
5652
|
registerCalciteAccordionItem(e) {
|
|
5650
5653
|
const item = {
|
|
@@ -5655,12 +5658,14 @@ class Accordion {
|
|
|
5655
5658
|
if (this.el === item.parent) {
|
|
5656
5659
|
this.items.push(item);
|
|
5657
5660
|
}
|
|
5661
|
+
e.stopPropagation();
|
|
5658
5662
|
}
|
|
5659
5663
|
updateActiveItemOnChange(event) {
|
|
5660
5664
|
this.requestedAccordionItem = event.detail.requestedAccordionItem;
|
|
5661
|
-
this.
|
|
5665
|
+
this.calciteInternalAccordionChange.emit({
|
|
5662
5666
|
requestedAccordionItem: this.requestedAccordionItem
|
|
5663
5667
|
});
|
|
5668
|
+
event.stopPropagation();
|
|
5664
5669
|
}
|
|
5665
5670
|
//--------------------------------------------------------------------------
|
|
5666
5671
|
//
|
|
@@ -5704,7 +5709,7 @@ class Accordion {
|
|
|
5704
5709
|
"scale": [513],
|
|
5705
5710
|
"selectionMode": [513, "selection-mode"]
|
|
5706
5711
|
},
|
|
5707
|
-
"$listeners$": [[0, "
|
|
5712
|
+
"$listeners$": [[0, "calciteInternalAccordionItemKeyEvent", "calciteInternalAccordionItemKeyEvent"], [0, "calciteInternalAccordionItemRegister", "registerCalciteAccordionItem"], [0, "calciteInternalAccordionItemSelect", "updateActiveItemOnChange"]],
|
|
5708
5713
|
"$lazyBundleId$": "-",
|
|
5709
5714
|
"$attrsToReflect$": [["appearance", "appearance"], ["iconPosition", "icon-position"], ["iconType", "icon-type"], ["scale", "scale"], ["selectionMode", "selection-mode"]]
|
|
5710
5715
|
}; }
|
|
@@ -5741,6 +5746,7 @@ const guid = () => gen([2, 1, 1, 1, 3]);
|
|
|
5741
5746
|
*
|
|
5742
5747
|
* If it already has an ID, it will be preserved, otherwise a unique one will be generated and assigned.
|
|
5743
5748
|
*
|
|
5749
|
+
* @param el
|
|
5744
5750
|
* @returns {string} The element's ID.
|
|
5745
5751
|
*/
|
|
5746
5752
|
function ensureId(el) {
|
|
@@ -5776,6 +5782,8 @@ function getHost(root) {
|
|
|
5776
5782
|
/**
|
|
5777
5783
|
* This helper queries an element's rootNodes and any ancestor rootNodes.
|
|
5778
5784
|
*
|
|
5785
|
+
* @param element
|
|
5786
|
+
* @param selector
|
|
5779
5787
|
* @returns {Element[]} The elements.
|
|
5780
5788
|
*/
|
|
5781
5789
|
function queryElementsRoots(element, selector) {
|
|
@@ -5802,6 +5810,10 @@ function queryElementsRoots(element, selector) {
|
|
|
5802
5810
|
*
|
|
5803
5811
|
* If both an 'id' and 'selector' are supplied, 'id' will take precedence over 'selector'.
|
|
5804
5812
|
*
|
|
5813
|
+
* @param element
|
|
5814
|
+
* @param root0
|
|
5815
|
+
* @param root0.selector
|
|
5816
|
+
* @param root0.id
|
|
5805
5817
|
* @returns {Element} The element.
|
|
5806
5818
|
*/
|
|
5807
5819
|
function queryElementRoots(element, { selector, id }) {
|
|
@@ -5912,6 +5924,7 @@ function intersects(rect1, rect2) {
|
|
|
5912
5924
|
*
|
|
5913
5925
|
* It should only be used for aria attributes that require a string value of "true" or "false".
|
|
5914
5926
|
*
|
|
5927
|
+
* @param value
|
|
5915
5928
|
* @returns {string} The string conversion of a boolean value ("true" | "false").
|
|
5916
5929
|
*/
|
|
5917
5930
|
function toAriaBoolean(value) {
|
|
@@ -5926,10 +5939,10 @@ const accordionItemCss = "@-webkit-keyframes in{0%{opacity:0}100%{opacity:1}}@ke
|
|
|
5926
5939
|
class AccordionItem {
|
|
5927
5940
|
constructor(hostRef) {
|
|
5928
5941
|
registerInstance(this, hostRef);
|
|
5929
|
-
this.
|
|
5930
|
-
this.
|
|
5931
|
-
this.
|
|
5932
|
-
this.
|
|
5942
|
+
this.calciteInternalAccordionItemKeyEvent = createEvent(this, "calciteInternalAccordionItemKeyEvent", 7);
|
|
5943
|
+
this.calciteInternalAccordionItemSelect = createEvent(this, "calciteInternalAccordionItemSelect", 7);
|
|
5944
|
+
this.calciteInternalAccordionItemClose = createEvent(this, "calciteInternalAccordionItemClose", 7);
|
|
5945
|
+
this.calciteInternalAccordionItemRegister = createEvent(this, "calciteInternalAccordionItemRegister", 7);
|
|
5933
5946
|
//--------------------------------------------------------------------------
|
|
5934
5947
|
//
|
|
5935
5948
|
// Public Properties
|
|
@@ -5961,7 +5974,7 @@ class AccordionItem {
|
|
|
5961
5974
|
}
|
|
5962
5975
|
componentDidLoad() {
|
|
5963
5976
|
this.itemPosition = this.getItemPosition();
|
|
5964
|
-
this.
|
|
5977
|
+
this.calciteInternalAccordionItemRegister.emit({
|
|
5965
5978
|
parent: this.parent,
|
|
5966
5979
|
position: this.itemPosition
|
|
5967
5980
|
});
|
|
@@ -6000,7 +6013,7 @@ class AccordionItem {
|
|
|
6000
6013
|
case "ArrowDown":
|
|
6001
6014
|
case "Home":
|
|
6002
6015
|
case "End":
|
|
6003
|
-
this.
|
|
6016
|
+
this.calciteInternalAccordionItemKeyEvent.emit({
|
|
6004
6017
|
parent: this.parent,
|
|
6005
6018
|
item: e
|
|
6006
6019
|
});
|
|
@@ -6016,6 +6029,7 @@ class AccordionItem {
|
|
|
6016
6029
|
return;
|
|
6017
6030
|
}
|
|
6018
6031
|
this.determineActiveItem();
|
|
6032
|
+
event.stopPropagation();
|
|
6019
6033
|
}
|
|
6020
6034
|
//--------------------------------------------------------------------------
|
|
6021
6035
|
//
|
|
@@ -6038,7 +6052,7 @@ class AccordionItem {
|
|
|
6038
6052
|
}
|
|
6039
6053
|
}
|
|
6040
6054
|
emitRequestedItem() {
|
|
6041
|
-
this.
|
|
6055
|
+
this.calciteInternalAccordionItemSelect.emit({
|
|
6042
6056
|
requestedAccordionItem: this.el
|
|
6043
6057
|
});
|
|
6044
6058
|
}
|
|
@@ -6056,7 +6070,7 @@ class AccordionItem {
|
|
|
6056
6070
|
"itemSubtitle": [1, "item-subtitle"],
|
|
6057
6071
|
"icon": [513]
|
|
6058
6072
|
},
|
|
6059
|
-
"$listeners$": [[0, "keydown", "keyDownHandler"], [16, "
|
|
6073
|
+
"$listeners$": [[0, "keydown", "keyDownHandler"], [16, "calciteInternalAccordionChange", "updateActiveItemOnChange"]],
|
|
6060
6074
|
"$lazyBundleId$": "-",
|
|
6061
6075
|
"$attrsToReflect$": [["active", "active"], ["icon", "icon"]]
|
|
6062
6076
|
}; }
|
|
@@ -6088,7 +6102,7 @@ function createObserver(type, callback, options) {
|
|
|
6088
6102
|
}
|
|
6089
6103
|
|
|
6090
6104
|
function noopClick() {
|
|
6091
|
-
/** noop
|
|
6105
|
+
/** noop */
|
|
6092
6106
|
}
|
|
6093
6107
|
/**
|
|
6094
6108
|
* This helper updates the host element to prevent keyboard interaction on its subtree and sets the appropriate aria attribute for accessibility.
|
|
@@ -6097,8 +6111,11 @@ function noopClick() {
|
|
|
6097
6111
|
*
|
|
6098
6112
|
* **Notes**
|
|
6099
6113
|
*
|
|
6100
|
-
*
|
|
6101
|
-
*
|
|
6114
|
+
* this util is not needed for simple components whose root element or elements are an interactive component (custom element or native control). For those cases, set the `disabled` props on the root components instead.
|
|
6115
|
+
* technically, users can override `tabindex` and restore keyboard navigation, but this will be considered user error
|
|
6116
|
+
*
|
|
6117
|
+
* @param component
|
|
6118
|
+
* @param hostIsTabbable
|
|
6102
6119
|
*/
|
|
6103
6120
|
function updateHostInteraction(component, hostIsTabbable = false) {
|
|
6104
6121
|
if (component.disabled) {
|
|
@@ -6156,7 +6173,9 @@ class Action {
|
|
|
6156
6173
|
* Indicates unread changes.
|
|
6157
6174
|
*/
|
|
6158
6175
|
this.indicator = false;
|
|
6159
|
-
/**
|
|
6176
|
+
/**
|
|
6177
|
+
* string to override English loading text
|
|
6178
|
+
*
|
|
6160
6179
|
* @default "Loading"
|
|
6161
6180
|
*/
|
|
6162
6181
|
this.intlLoading = TEXT$r.loading;
|
|
@@ -7654,6 +7673,8 @@ let mutationObserver;
|
|
|
7654
7673
|
const observerOptions = { childList: true };
|
|
7655
7674
|
/**
|
|
7656
7675
|
* Helper to set up a conditional slot component on connectedCallback.
|
|
7676
|
+
*
|
|
7677
|
+
* @param component
|
|
7657
7678
|
*/
|
|
7658
7679
|
function connectConditionalSlotComponent(component) {
|
|
7659
7680
|
if (!mutationObserver) {
|
|
@@ -7663,6 +7684,8 @@ function connectConditionalSlotComponent(component) {
|
|
|
7663
7684
|
}
|
|
7664
7685
|
/**
|
|
7665
7686
|
* Helper to tear down a conditional slot component on disconnectedCallback.
|
|
7687
|
+
*
|
|
7688
|
+
* @param component
|
|
7666
7689
|
*/
|
|
7667
7690
|
function disconnectConditionalSlotComponent(component) {
|
|
7668
7691
|
observed.delete(component.el);
|
|
@@ -7813,12 +7836,17 @@ class ActionBar {
|
|
|
7813
7836
|
// --------------------------------------------------------------------------
|
|
7814
7837
|
/**
|
|
7815
7838
|
* Overflows actions that won't fit into menus.
|
|
7839
|
+
*
|
|
7816
7840
|
* @internal
|
|
7817
7841
|
*/
|
|
7818
7842
|
async overflowActions() {
|
|
7819
7843
|
this.resize(this.el.clientHeight);
|
|
7820
7844
|
}
|
|
7821
|
-
/**
|
|
7845
|
+
/**
|
|
7846
|
+
* Sets focus on the component.
|
|
7847
|
+
*
|
|
7848
|
+
* @param focusId
|
|
7849
|
+
*/
|
|
7822
7850
|
async setFocus(focusId) {
|
|
7823
7851
|
if (focusId === "expand-toggle") {
|
|
7824
7852
|
await focusElement(this.expandToggleEl);
|
|
@@ -7993,6 +8021,7 @@ class ActionMenu {
|
|
|
7993
8021
|
this.overlayPositioning = "absolute";
|
|
7994
8022
|
/**
|
|
7995
8023
|
* Determines where the component will be positioned relative to the referenceElement.
|
|
8024
|
+
*
|
|
7996
8025
|
* @see [PopperPlacement](https://github.com/Esri/calcite-components/blob/master/src/utils/popper.ts#L25)
|
|
7997
8026
|
*/
|
|
7998
8027
|
this.placement = "auto";
|
|
@@ -8349,7 +8378,11 @@ class ActionPad {
|
|
|
8349
8378
|
// Methods
|
|
8350
8379
|
//
|
|
8351
8380
|
// --------------------------------------------------------------------------
|
|
8352
|
-
/**
|
|
8381
|
+
/**
|
|
8382
|
+
* Sets focus on the component.
|
|
8383
|
+
*
|
|
8384
|
+
* @param focusId
|
|
8385
|
+
*/
|
|
8353
8386
|
async setFocus(focusId) {
|
|
8354
8387
|
if (focusId === "expand-toggle") {
|
|
8355
8388
|
await focusElement(this.expandToggleEl);
|
|
@@ -8421,7 +8454,8 @@ var StatusIcons;
|
|
|
8421
8454
|
|
|
8422
8455
|
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*/.sc-calcite-alert: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*/.calcite-animate.sc-calcite-alert{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*/.calcite-animate__in.sc-calcite-alert{-webkit-animation-name:in;animation-name:in}/*!@.calcite-animate__in-down*/.calcite-animate__in-down.sc-calcite-alert{-webkit-animation-name:in-down;animation-name:in-down}/*!@.calcite-animate__in-up*/.calcite-animate__in-up.sc-calcite-alert{-webkit-animation-name:in-up;animation-name:in-up}/*!@.calcite-animate__in-scale*/.calcite-animate__in-scale.sc-calcite-alert{-webkit-animation-name:in-scale;animation-name:in-scale}/*!@:root*/.sc-calcite-alert:root{--calcite-popper-transition:var(--calcite-animation-timing)}/*!@:host([hidden])*/[hidden].sc-calcite-alert-h{display:none}/*!@:host([scale=s])*/[scale=s].sc-calcite-alert-h{--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])*/.sc-calcite-alert-h[scale=s] slot[name=title].sc-calcite-alert-s>*,.sc-calcite-alert-h[scale=s] *.sc-calcite-alert-s>[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])*/.sc-calcite-alert-h[scale=s] slot[name=message].sc-calcite-alert-s>*,.sc-calcite-alert-h[scale=s] *.sc-calcite-alert-s>[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])*/.sc-calcite-alert-h[scale=s] slot[name=link].sc-calcite-alert-s>*,.sc-calcite-alert-h[scale=s] *.sc-calcite-alert-s>[slot=link]{font-size:var(--calcite-font-size--2);line-height:1.375}/*!@:host([scale=s]) .alert-queue-count*/[scale=s].sc-calcite-alert-h .alert-queue-count.sc-calcite-alert{margin-left:0.5rem;margin-right:0.5rem}/*!@:host([scale=s]) .container*/[scale=s].sc-calcite-alert-h .container.sc-calcite-alert{--calcite-alert-min-height:3.5rem}/*!@:host([scale=s]) .alert-close*/[scale=s].sc-calcite-alert-h .alert-close.sc-calcite-alert{padding:0.5rem}/*!@:host([scale=m])*/[scale=m].sc-calcite-alert-h{--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])*/.sc-calcite-alert-h[scale=m] slot[name=title].sc-calcite-alert-s>*,.sc-calcite-alert-h[scale=m] *.sc-calcite-alert-s>[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])*/.sc-calcite-alert-h[scale=m] slot[name=message].sc-calcite-alert-s>*,.sc-calcite-alert-h[scale=m] *.sc-calcite-alert-s>[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])*/.sc-calcite-alert-h[scale=m] slot[name=link].sc-calcite-alert-s>*,.sc-calcite-alert-h[scale=m] *.sc-calcite-alert-s>[slot=link]{font-size:var(--calcite-font-size--1);line-height:1.375}/*!@:host([scale=m]) .alert-queue-count*/[scale=m].sc-calcite-alert-h .alert-queue-count.sc-calcite-alert{margin-left:0.75rem;margin-right:0.75rem}/*!@:host([scale=m]) .container*/[scale=m].sc-calcite-alert-h .container.sc-calcite-alert{--calcite-alert-min-height:4.1875rem}/*!@:host([scale=l])*/[scale=l].sc-calcite-alert-h{--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])*/.sc-calcite-alert-h[scale=l] slot[name=title].sc-calcite-alert-s>*,.sc-calcite-alert-h[scale=l] *.sc-calcite-alert-s>[slot=title]{margin-bottom: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])*/.sc-calcite-alert-h[scale=l] slot[name=message].sc-calcite-alert-s>*,.sc-calcite-alert-h[scale=l] *.sc-calcite-alert-s>[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])*/.sc-calcite-alert-h[scale=l] slot[name=link].sc-calcite-alert-s>*,.sc-calcite-alert-h[scale=l] *.sc-calcite-alert-s>[slot=link]{font-size:var(--calcite-font-size-0);line-height:1.375}/*!@:host([scale=l]) .alert-queue-count*/[scale=l].sc-calcite-alert-h .alert-queue-count.sc-calcite-alert{margin-left:1rem;margin-right:1rem}/*!@:host([scale=l]) .container*/[scale=l].sc-calcite-alert-h .container.sc-calcite-alert{--calcite-alert-min-height:5.625rem}/*!@:host*/.sc-calcite-alert-h{--calcite-alert-edge-distance:2rem;display:block}/*!@:host .container*/.sc-calcite-alert-h .container.sc-calcite-alert{pointer-events:none;position:fixed;margin-top:0px;margin-bottom:0px;margin-left:auto;margin-right: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);border-top:0px solid transparent;border-left:1px solid var(--calcite-ui-border-3);border-right:1px solid var(--calcite-ui-border-3);border-bottom:1px solid var(--calcite-ui-border-3);min-height:var(--calcite-alert-min-height);width:var(--calcite-alert-width);max-width:calc(100% - (var(--calcite-alert-edge-distance) * 2 + 2px));max-height: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*/.sc-calcite-alert-h .container.bottom.sc-calcite-alert,.sc-calcite-alert-h .container.top.sc-calcite-alert{inset-inline-end:0;inset-inline-start:0}/*!@:host .container[class*=bottom]*/.sc-calcite-alert-h .container[class*=bottom].sc-calcite-alert{-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]*/.sc-calcite-alert-h .container[class*=top].sc-calcite-alert{-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]*/.sc-calcite-alert-h .container[class*=-start].sc-calcite-alert{inset-inline-start:var(--calcite-alert-edge-distance);inset-inline-end:auto}/*!@:host .container[class*=-end]*/.sc-calcite-alert-h .container[class*=-end].sc-calcite-alert{inset-inline-end:var(--calcite-alert-edge-distance);inset-inline-start:auto}/*!@.container*/.container.sc-calcite-alert{display:-ms-flexbox;display:flex;width:100%;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center}/*!@.alert-close*/.alert-close.sc-calcite-alert{outline-offset:0;outline-color:transparent;-webkit-transition:outline-offset 100ms ease-in-out, outline-color 100ms ease-in-out;transition:outline-offset 100ms ease-in-out, outline-color 100ms ease-in-out}/*!@.alert-close:focus*/.alert-close.sc-calcite-alert:focus{outline:2px solid var(--calcite-ui-brand);outline-offset:-2px}/*!@:host([active]) .container:not(.queued)*/[active].sc-calcite-alert-h .container.sc-calcite-alert:not(.queued){max-height:100%;border-top-width:2px;opacity:1;pointer-events:initial}/*!@:host([active]) .container:not(.queued)[class*=bottom]*/[active].sc-calcite-alert-h .container.sc-calcite-alert: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]*/[active].sc-calcite-alert-h .container.sc-calcite-alert: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])*/slot[name=title].sc-calcite-alert-s>*,*.sc-calcite-alert-s>[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])*/slot[name=message].sc-calcite-alert-s>*,*.sc-calcite-alert-s>[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])*/slot[name=link].sc-calcite-alert-s>*,*.sc-calcite-alert-s>[slot=link]{display:-ms-inline-flexbox;display:inline-flex;color:var(--calcite-ui-text-link)}/*!@.alert-content*/.alert-content.sc-calcite-alert{-webkit-transition-property:all;transition-property:all;-webkit-transition-duration:var(--calcite-animation-timing);transition-duration:var(--calcite-animation-timing);-webkit-transition-timing-function:ease-in-out;transition-timing-function:ease-in-out;-webkit-transition-delay:0s;transition-delay:0s;padding:var(--calcite-alert-spacing-token-small) 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-width:0;padding-block:var(--calcite-alert-spacing-token-small);padding-inline:0 var(--calcite-alert-spacing-token-small);border-bottom-left-radius:var(--calcite-border-radius);border-bottom-right-radius:var(--calcite-border-radius)}/*!@.alert-content:first-of-type:not(:only-child)*/.alert-content.sc-calcite-alert: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*/.alert-content.sc-calcite-alert:only-child{padding:var(--calcite-alert-spacing-token-small)}/*!@.alert-icon*/.alert-icon.sc-calcite-alert{-webkit-transition-property:all;transition-property:all;-webkit-transition-duration:var(--calcite-animation-timing);transition-duration:var(--calcite-animation-timing);-webkit-transition-timing-function:ease-in-out;transition-timing-function:ease-in-out;-webkit-transition-delay:0s;transition-delay:0s;padding:var(--calcite-alert-spacing-token-small) 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-top:0px;padding-bottom:0px}/*!@.alert-close*/.alert-close.sc-calcite-alert{-webkit-transition-property:all;transition-property:all;-webkit-transition-duration:var(--calcite-animation-timing);transition-duration:var(--calcite-animation-timing);-webkit-transition-timing-function:ease-in-out;transition-timing-function:ease-in-out;-webkit-transition-delay:0s;transition-delay:0s;padding:var(--calcite-alert-spacing-token-small) 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-top:0px;padding-bottom: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*/.alert-close.sc-calcite-alert:hover,.alert-close.sc-calcite-alert:focus{background-color:var(--calcite-ui-foreground-2);color:var(--calcite-ui-text-1)}/*!@.alert-close:active*/.alert-close.sc-calcite-alert:active{background-color:var(--calcite-ui-foreground-3)}/*!@.alert-queue-count*/.alert-queue-count.sc-calcite-alert{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-property:all;transition-property:all;-webkit-transition-duration:var(--calcite-animation-timing);transition-duration:var(--calcite-animation-timing);-webkit-transition-timing-function:ease-in-out;transition-timing-function:ease-in-out;-webkit-transition-delay:0s;transition-delay:0s;border-left:0px solid transparent;border-right:0px solid transparent;border-top-right-radius:0}/*!@.alert-queue-count.active*/.alert-queue-count.active.sc-calcite-alert{visibility:visible;opacity:1}/*!@:host([auto-dismiss]) > .alert-queue-count*/[auto-dismiss].sc-calcite-alert-h>.alert-queue-count.sc-calcite-alert{-webkit-border-end:0px solid transparent;border-inline-end:0px solid transparent}/*!@.alert-dismiss-progress*/.alert-dismiss-progress.sc-calcite-alert{position:absolute;left:0px;right:0px;display:block;width:100%;overflow:hidden;top:-2px;height:2px;z-index:103;border-radius:var(--calcite-border-radius) var(--calcite-border-radius) 0 0}/*!@.alert-dismiss-progress:after*/.alert-dismiss-progress.sc-calcite-alert:after{position:absolute;top:0px;display:block;height:2px;content:\"\";background-color:var(--calcite-alert-dismiss-progress-background);z-index:104;inset-inline-end:0}/*!@:host([color=blue]) .container*/[color=blue].sc-calcite-alert-h .container.sc-calcite-alert{border-top-color:var(--calcite-ui-info)}/*!@:host([color=blue]) .container .alert-icon*/[color=blue].sc-calcite-alert-h .container.sc-calcite-alert .alert-icon.sc-calcite-alert{color:var(--calcite-ui-info)}/*!@:host([color=red]) .container*/[color=red].sc-calcite-alert-h .container.sc-calcite-alert{border-top-color:var(--calcite-ui-danger)}/*!@:host([color=red]) .container .alert-icon*/[color=red].sc-calcite-alert-h .container.sc-calcite-alert .alert-icon.sc-calcite-alert{color:var(--calcite-ui-danger)}/*!@:host([color=yellow]) .container*/[color=yellow].sc-calcite-alert-h .container.sc-calcite-alert{border-top-color:var(--calcite-ui-warning)}/*!@:host([color=yellow]) .container .alert-icon*/[color=yellow].sc-calcite-alert-h .container.sc-calcite-alert .alert-icon.sc-calcite-alert{color:var(--calcite-ui-warning)}/*!@:host([color=green]) .container*/[color=green].sc-calcite-alert-h .container.sc-calcite-alert{border-top-color:var(--calcite-ui-success)}/*!@:host([color=green]) .container .alert-icon*/[color=green].sc-calcite-alert-h .container.sc-calcite-alert .alert-icon.sc-calcite-alert{color:var(--calcite-ui-success)}/*!@:host([auto-dismiss-duration=fast]) .alert-dismiss-progress:after*/[auto-dismiss-duration=fast].sc-calcite-alert-h .alert-dismiss-progress.sc-calcite-alert:after{-webkit-animation:dismissProgress 6000ms ease-out;animation:dismissProgress 6000ms ease-out}/*!@:host([auto-dismiss-duration=medium]) .alert-dismiss-progress:after*/[auto-dismiss-duration=medium].sc-calcite-alert-h .alert-dismiss-progress.sc-calcite-alert:after{-webkit-animation:dismissProgress 10000ms ease-out;animation:dismissProgress 10000ms ease-out}/*!@:host([auto-dismiss-duration=slow]) .alert-dismiss-progress:after*/[auto-dismiss-duration=slow].sc-calcite-alert-h .alert-dismiss-progress.sc-calcite-alert:after{-webkit-animation:dismissProgress 14000ms ease-out;animation:dismissProgress 14000ms ease-out}@-webkit-keyframes dismissProgress{0%{width:0px;opacity:0.75}100%{width:100%;opacity:1}}@keyframes dismissProgress{0%{width:0px;opacity:0.75}100%{width:100%;opacity:1}}";
|
|
8423
8456
|
|
|
8424
|
-
/**
|
|
8457
|
+
/**
|
|
8458
|
+
* Alerts are meant to provide a way to communicate urgent or important information to users, frequently as a result of an action they took in your app. Alerts are positioned
|
|
8425
8459
|
* at the bottom of the page. Multiple opened alerts will be added to a queue, allowing users to dismiss them in the order they are provided.
|
|
8426
8460
|
*/
|
|
8427
8461
|
/**
|
|
@@ -8434,8 +8468,8 @@ class Alert {
|
|
|
8434
8468
|
registerInstance(this, hostRef);
|
|
8435
8469
|
this.calciteAlertClose = createEvent(this, "calciteAlertClose", 7);
|
|
8436
8470
|
this.calciteAlertOpen = createEvent(this, "calciteAlertOpen", 7);
|
|
8437
|
-
this.
|
|
8438
|
-
this.
|
|
8471
|
+
this.calciteInternalAlertSync = createEvent(this, "calciteInternalAlertSync", 7);
|
|
8472
|
+
this.calciteInternalAlertRegister = createEvent(this, "calciteInternalAlertRegister", 7);
|
|
8439
8473
|
//--------------------------------------------------------------------------
|
|
8440
8474
|
//
|
|
8441
8475
|
// Properties
|
|
@@ -8449,7 +8483,9 @@ class Alert {
|
|
|
8449
8483
|
this.autoDismissDuration = this.autoDismiss ? "medium" : null;
|
|
8450
8484
|
/** Color for the alert (will apply to top border and icon) */
|
|
8451
8485
|
this.color = "blue";
|
|
8452
|
-
/**
|
|
8486
|
+
/**
|
|
8487
|
+
* string to override English close text
|
|
8488
|
+
*
|
|
8453
8489
|
* @default "Close"
|
|
8454
8490
|
*/
|
|
8455
8491
|
this.intlClose = TEXT$n.intlClose;
|
|
@@ -8478,7 +8514,7 @@ class Alert {
|
|
|
8478
8514
|
this.active = false;
|
|
8479
8515
|
this.queue = this.queue.filter((e) => e !== this.el);
|
|
8480
8516
|
this.determineActiveAlert();
|
|
8481
|
-
this.
|
|
8517
|
+
this.calciteInternalAlertSync.emit({ queue: this.queue });
|
|
8482
8518
|
};
|
|
8483
8519
|
this.transitionEnd = (event) => {
|
|
8484
8520
|
if (event.propertyName === this.activeTransitionProp) {
|
|
@@ -8496,11 +8532,11 @@ class Alert {
|
|
|
8496
8532
|
}
|
|
8497
8533
|
watchActive() {
|
|
8498
8534
|
if (this.active && !this.queued) {
|
|
8499
|
-
this.
|
|
8535
|
+
this.calciteInternalAlertRegister.emit();
|
|
8500
8536
|
}
|
|
8501
8537
|
if (!this.active) {
|
|
8502
8538
|
this.queue = this.queue.filter((e) => e !== this.el);
|
|
8503
|
-
this.
|
|
8539
|
+
this.calciteInternalAlertSync.emit({ queue: this.queue });
|
|
8504
8540
|
}
|
|
8505
8541
|
}
|
|
8506
8542
|
updateRequestedIcon() {
|
|
@@ -8519,7 +8555,7 @@ class Alert {
|
|
|
8519
8555
|
//--------------------------------------------------------------------------
|
|
8520
8556
|
connectedCallback() {
|
|
8521
8557
|
if (this.active && !this.queued) {
|
|
8522
|
-
this.
|
|
8558
|
+
this.calciteInternalAlertRegister.emit();
|
|
8523
8559
|
}
|
|
8524
8560
|
}
|
|
8525
8561
|
componentWillLoad() {
|
|
@@ -8548,6 +8584,7 @@ class Alert {
|
|
|
8548
8584
|
}
|
|
8549
8585
|
this.queueLength = this.queue.length;
|
|
8550
8586
|
this.determineActiveAlert();
|
|
8587
|
+
event.stopPropagation();
|
|
8551
8588
|
}
|
|
8552
8589
|
// when an alert is first registered, trigger a queue sync to get queue
|
|
8553
8590
|
alertRegister() {
|
|
@@ -8555,7 +8592,7 @@ class Alert {
|
|
|
8555
8592
|
this.queued = true;
|
|
8556
8593
|
this.queue.push(this.el);
|
|
8557
8594
|
}
|
|
8558
|
-
this.
|
|
8595
|
+
this.calciteInternalAlertSync.emit({ queue: this.queue });
|
|
8559
8596
|
this.determineActiveAlert();
|
|
8560
8597
|
}
|
|
8561
8598
|
//--------------------------------------------------------------------------
|
|
@@ -8627,7 +8664,7 @@ class Alert {
|
|
|
8627
8664
|
"requestedIcon": [32],
|
|
8628
8665
|
"setFocus": [64]
|
|
8629
8666
|
},
|
|
8630
|
-
"$listeners$": [[8, "
|
|
8667
|
+
"$listeners$": [[8, "calciteInternalAlertSync", "alertSync"], [8, "calciteInternalAlertRegister", "alertRegister"]],
|
|
8631
8668
|
"$lazyBundleId$": "-",
|
|
8632
8669
|
"$attrsToReflect$": [["active", "active"], ["autoDismissDuration", "auto-dismiss-duration"], ["color", "color"], ["icon", "icon"], ["scale", "scale"]]
|
|
8633
8670
|
}; }
|
|
@@ -8744,6 +8781,8 @@ function colorEqual(value1, value2) {
|
|
|
8744
8781
|
/**
|
|
8745
8782
|
* Convert a string to a valid hex by hashing its contents
|
|
8746
8783
|
* and using the hash as a seed for three distinct color values
|
|
8784
|
+
*
|
|
8785
|
+
* @param str
|
|
8747
8786
|
*/
|
|
8748
8787
|
function stringToHex(str) {
|
|
8749
8788
|
let hash = 0;
|
|
@@ -8759,6 +8798,8 @@ function stringToHex(str) {
|
|
|
8759
8798
|
}
|
|
8760
8799
|
/**
|
|
8761
8800
|
* Find the hue of a color given the separate RGB color channels
|
|
8801
|
+
*
|
|
8802
|
+
* @param rgb
|
|
8762
8803
|
*/
|
|
8763
8804
|
function rgbToHue(rgb) {
|
|
8764
8805
|
let { r, g, b } = rgb;
|
|
@@ -8787,6 +8828,7 @@ function rgbToHue(rgb) {
|
|
|
8787
8828
|
}
|
|
8788
8829
|
/**
|
|
8789
8830
|
* For a hex color, find the hue
|
|
8831
|
+
*
|
|
8790
8832
|
* @param hex {string} - form of "#------"
|
|
8791
8833
|
*/
|
|
8792
8834
|
function hexToHue(hex) {
|
|
@@ -8965,17 +9007,25 @@ class Block {
|
|
|
8965
9007
|
this.dragHandle = false;
|
|
8966
9008
|
/**
|
|
8967
9009
|
* Aria-label for collapsing the toggle and tooltip used for the toggle when expanded.
|
|
9010
|
+
*
|
|
9011
|
+
* @default "Collapse"
|
|
8968
9012
|
*/
|
|
8969
9013
|
this.intlCollapse = TEXT$m.collapse;
|
|
8970
9014
|
/**
|
|
8971
9015
|
* Aria-label for expanding the toggle and tooltip used for the toggle when collapsed.
|
|
9016
|
+
*
|
|
9017
|
+
* @default "Expand"
|
|
8972
9018
|
*/
|
|
8973
9019
|
this.intlExpand = TEXT$m.expand;
|
|
8974
|
-
/**
|
|
9020
|
+
/**
|
|
9021
|
+
* string to override English loading text
|
|
9022
|
+
*
|
|
8975
9023
|
* @default "Loading"
|
|
8976
9024
|
*/
|
|
8977
9025
|
this.intlLoading = TEXT$m.loading;
|
|
8978
|
-
/**
|
|
9026
|
+
/**
|
|
9027
|
+
* Text string used for the actions menu
|
|
9028
|
+
*
|
|
8979
9029
|
* @default "Options"
|
|
8980
9030
|
*/
|
|
8981
9031
|
this.intlOptions = TEXT$m.options;
|
|
@@ -9248,6 +9298,7 @@ const TEXT$k = {
|
|
|
9248
9298
|
|
|
9249
9299
|
/**
|
|
9250
9300
|
* Exported for testing purposes only
|
|
9301
|
+
*
|
|
9251
9302
|
* @internal
|
|
9252
9303
|
*/
|
|
9253
9304
|
const labelClickEvent = "calciteInternalLabelClick";
|
|
@@ -9290,6 +9341,8 @@ function hasAncestorCustomElements(label, componentEl) {
|
|
|
9290
9341
|
}
|
|
9291
9342
|
/**
|
|
9292
9343
|
* Helper to set up label interactions on connectedCallback.
|
|
9344
|
+
*
|
|
9345
|
+
* @param component
|
|
9293
9346
|
*/
|
|
9294
9347
|
function connectLabel(component) {
|
|
9295
9348
|
const labelEl = findLabelForComponent(component.el);
|
|
@@ -9314,6 +9367,8 @@ function connectLabel(component) {
|
|
|
9314
9367
|
}
|
|
9315
9368
|
/**
|
|
9316
9369
|
* Helper to tear down label interactions on disconnectedCallback on labelable components.
|
|
9370
|
+
*
|
|
9371
|
+
* @param component
|
|
9317
9372
|
*/
|
|
9318
9373
|
function disconnectLabel(component) {
|
|
9319
9374
|
unlabeledComponents.delete(component);
|
|
@@ -9330,6 +9385,8 @@ function disconnectLabel(component) {
|
|
|
9330
9385
|
}
|
|
9331
9386
|
/**
|
|
9332
9387
|
* Helper to get the label text from a component.
|
|
9388
|
+
*
|
|
9389
|
+
* @param component
|
|
9333
9390
|
*/
|
|
9334
9391
|
function getLabelText(component) {
|
|
9335
9392
|
var _a, _b;
|
|
@@ -9384,6 +9441,8 @@ function hasRegisteredFormComponentParent(form, formComponentEl) {
|
|
|
9384
9441
|
}
|
|
9385
9442
|
/**
|
|
9386
9443
|
* Helper to submit a form.
|
|
9444
|
+
*
|
|
9445
|
+
* @param component
|
|
9387
9446
|
*/
|
|
9388
9447
|
function submitForm(component) {
|
|
9389
9448
|
var _a;
|
|
@@ -9391,6 +9450,8 @@ function submitForm(component) {
|
|
|
9391
9450
|
}
|
|
9392
9451
|
/**
|
|
9393
9452
|
* Helper to reset a form.
|
|
9453
|
+
*
|
|
9454
|
+
* @param component
|
|
9394
9455
|
*/
|
|
9395
9456
|
function resetForm(component) {
|
|
9396
9457
|
var _a;
|
|
@@ -9398,6 +9459,8 @@ function resetForm(component) {
|
|
|
9398
9459
|
}
|
|
9399
9460
|
/**
|
|
9400
9461
|
* Helper to set up form interactions on connectedCallback.
|
|
9462
|
+
*
|
|
9463
|
+
* @param component
|
|
9401
9464
|
*/
|
|
9402
9465
|
function connectForm(component) {
|
|
9403
9466
|
const { el, value } = component;
|
|
@@ -9424,6 +9487,8 @@ function onFormReset() {
|
|
|
9424
9487
|
}
|
|
9425
9488
|
/**
|
|
9426
9489
|
* Helper to tear down form interactions on disconnectedCallback.
|
|
9490
|
+
*
|
|
9491
|
+
* @param component
|
|
9427
9492
|
*/
|
|
9428
9493
|
function disconnectForm(component) {
|
|
9429
9494
|
const { el, formEl } = component;
|
|
@@ -9440,6 +9505,9 @@ function disconnectForm(component) {
|
|
|
9440
9505
|
* Helper for setting the default value on initialization after connectedCallback.
|
|
9441
9506
|
*
|
|
9442
9507
|
* Note that this is only needed if the default value cannot be determined on connectedCallback.
|
|
9508
|
+
*
|
|
9509
|
+
* @param component
|
|
9510
|
+
* @param value
|
|
9443
9511
|
*/
|
|
9444
9512
|
function afterConnectDefaultValueSet(component, value) {
|
|
9445
9513
|
component.defaultValue = value;
|
|
@@ -9448,6 +9516,8 @@ function afterConnectDefaultValueSet(component, value) {
|
|
|
9448
9516
|
* Helper for maintaining a form-associated's hidden input in sync with the component.
|
|
9449
9517
|
*
|
|
9450
9518
|
* Based on Ionic's approach: https://github.com/ionic-team/ionic-framework/blob/e4bf052794af9aac07f887013b9250d2a045eba3/core/src/utils/helpers.ts#L198
|
|
9519
|
+
*
|
|
9520
|
+
* @param component
|
|
9451
9521
|
*/
|
|
9452
9522
|
function syncHiddenFormInput(component) {
|
|
9453
9523
|
const { el, formEl, name, value } = component;
|
|
@@ -9532,6 +9602,9 @@ function defaultSyncHiddenFormInput(component, input, value) {
|
|
|
9532
9602
|
* }
|
|
9533
9603
|
*
|
|
9534
9604
|
* Note that the hidden-form-input Sass mixin must be added to the component's style to apply specific styles.
|
|
9605
|
+
*
|
|
9606
|
+
* @param root0
|
|
9607
|
+
* @param root0.component
|
|
9535
9608
|
*/
|
|
9536
9609
|
const HiddenFormInputSlot = ({ component }) => {
|
|
9537
9610
|
syncHiddenFormInput(component);
|
|
@@ -9559,7 +9632,9 @@ class Button {
|
|
|
9559
9632
|
this.color = "blue";
|
|
9560
9633
|
/** is the button disabled */
|
|
9561
9634
|
this.disabled = false;
|
|
9562
|
-
/**
|
|
9635
|
+
/**
|
|
9636
|
+
* string to override English loading text
|
|
9637
|
+
*
|
|
9563
9638
|
* @default "Loading"
|
|
9564
9639
|
*/
|
|
9565
9640
|
this.intlLoading = TEXT$k.loading;
|
|
@@ -9575,7 +9650,7 @@ class Button {
|
|
|
9575
9650
|
this.type = "button";
|
|
9576
9651
|
/** specify the width of the button, defaults to auto */
|
|
9577
9652
|
this.width = "auto";
|
|
9578
|
-
/** watches for changing text content
|
|
9653
|
+
/** watches for changing text content */
|
|
9579
9654
|
this.mutationObserver = createObserver();
|
|
9580
9655
|
/** determine if there is slotted content for styling purposes */
|
|
9581
9656
|
this.hasContent = false;
|
|
@@ -9734,7 +9809,8 @@ const TEXT$j = {
|
|
|
9734
9809
|
|
|
9735
9810
|
const cardCss = "@-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*/.sc-calcite-card: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*/.calcite-animate.sc-calcite-card{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*/.calcite-animate__in.sc-calcite-card{-webkit-animation-name:in;animation-name:in}/*!@.calcite-animate__in-down*/.calcite-animate__in-down.sc-calcite-card{-webkit-animation-name:in-down;animation-name:in-down}/*!@.calcite-animate__in-up*/.calcite-animate__in-up.sc-calcite-card{-webkit-animation-name:in-up;animation-name:in-up}/*!@.calcite-animate__in-scale*/.calcite-animate__in-scale.sc-calcite-card{-webkit-animation-name:in-scale;animation-name:in-scale}/*!@:root*/.sc-calcite-card:root{--calcite-popper-transition:var(--calcite-animation-timing)}/*!@:host([hidden])*/[hidden].sc-calcite-card-h{display:none}/*!@:host*/.sc-calcite-card-h{display:block;max-width:100%}/*!@:host .calcite-card-container*/.sc-calcite-card-h .calcite-card-container.sc-calcite-card{position:relative;display:-ms-flexbox;display:flex;height:100%;-ms-flex-direction:column;flex-direction:column;-ms-flex-pack:justify;justify-content:space-between;border-width:1px;border-style:solid;border-color:var(--calcite-ui-border-2);background-color:var(--calcite-ui-foreground-1);color:var(--calcite-ui-text-3);--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;-webkit-box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);-webkit-transition-duration:150ms;transition-duration:150ms;-webkit-transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);border-radius:var(--calcite-border-radius-base)}/*!@:host .calcite-card-container:hover*/.sc-calcite-card-h .calcite-card-container.sc-calcite-card:hover{--tw-shadow:0 4px 16px 0 rgba(0, 0, 0, 0.08), 0 2px 8px 0 rgba(0, 0, 0, 0.04);--tw-shadow-colored:0 4px 16px 0 var(--tw-shadow-color), 0 2px 8px 0 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);z-index:1}/*!@:host .calcite-card-container:active*/.sc-calcite-card-h .calcite-card-container.sc-calcite-card:active{--tw-shadow:0 1px 6px -1px rgba(0, 0, 0, 0.16), 0 1px 2px -1px rgba(0, 0, 0, 0.08);--tw-shadow-colored:0 1px 6px -1px var(--tw-shadow-color), 0 1px 2px -1px 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);-webkit-transition-duration:75ms;transition-duration:75ms;z-index:1}/*!@.container*/.container.sc-calcite-card{display:-ms-flexbox;display:flex;-ms-flex:1 1 auto;flex:1 1 auto;-ms-flex-direction:column;flex-direction:column}/*!@:host([loading]) .calcite-card-container *:not(calcite-loader):not(.calcite-card-loader-container)*/[loading].sc-calcite-card-h .calcite-card-container.sc-calcite-card *.sc-calcite-card:not(calcite-loader):not(.calcite-card-loader-container){pointer-events:none;opacity:0}/*!@:host([loading]) .calcite-card-loader-container*/[loading].sc-calcite-card-h .calcite-card-loader-container.sc-calcite-card{position:absolute;top:0px;right:0px;bottom:0px;left:0px;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center}/*!@.header, .footer*/.header.sc-calcite-card,.footer.sc-calcite-card{display:-ms-flexbox;display:flex;padding-left:0.75rem;padding-right:0.75rem;padding-top:0.75rem;padding-bottom:0.25rem}/*!@.header*/.header.sc-calcite-card{-ms-flex-direction:column;flex-direction:column}/*!@.footer*/.footer.sc-calcite-card{margin-top:auto;-ms-flex-direction:row;flex-direction:row;-ms-flex-line-pack:justify;align-content:space-between;-ms-flex-pack:justify;justify-content:space-between;padding-left:0.75rem;padding-right:0.75rem;padding-top:0.25rem;padding-bottom:0.75rem}/*!@.card-content*/.card-content.sc-calcite-card{padding:0.75rem;font-size:var(--calcite-font-size--2);line-height:1.375;color:var(--calcite-ui-text-3)}/*!@:host([selectable]) .calcite-card-container:active*/[selectable].sc-calcite-card-h .calcite-card-container.sc-calcite-card:active{--tw-shadow:0 1px 6px -1px rgba(0, 0, 0, 0.16), 0 1px 2px -1px rgba(0, 0, 0, 0.08);--tw-shadow-colored:0 1px 6px -1px var(--tw-shadow-color), 0 1px 2px -1px 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)}/*!@:host([selected]) .calcite-card-container*/[selected].sc-calcite-card-h .calcite-card-container.sc-calcite-card{border-color:var(--calcite-ui-brand)}/*!@slot[name=title]::slotted(*), *::slotted([slot=title])*/slot[name=title].sc-calcite-card-s>*,*.sc-calcite-card-s>[slot=title]{margin:0px;font-size:var(--calcite-font-size--1);line-height:1.375;font-weight:var(--calcite-font-weight-medium);color:var(--calcite-ui-text-1)}/*!@slot[name=subtitle]::slotted(*), *::slotted([slot=subtitle])*/slot[name=subtitle].sc-calcite-card-s>*,*.sc-calcite-card-s>[slot=subtitle]{margin:0px;margin-top:0.5rem;font-size:var(--calcite-font-size--2);line-height:1.375;font-weight:var(--calcite-font-weight-normal);color:var(--calcite-ui-text-2)}/*!@slot[name=thumbnail]::slotted(img), img::slotted([slot=thumbnail])*/slot[name=thumbnail].sc-calcite-card-s>img,img.sc-calcite-card-s>[slot=thumbnail]{min-width:100%;max-width:100%}/*!@slot[name=footer-leading]::slotted(*), *::slotted([slot=footer-leading])*/slot[name=footer-leading].sc-calcite-card-s>*,*.sc-calcite-card-s>[slot=footer-leading]{-ms-flex-item-align:center;align-self:center;font-size:var(--calcite-font-size--2);line-height:1.375;-webkit-margin-end:auto;margin-inline-end:auto}/*!@slot[name=footer-trailing]::slotted(*), *::slotted([slot=footer-trailing])*/slot[name=footer-trailing].sc-calcite-card-s>*,*.sc-calcite-card-s>[slot=footer-trailing]{-ms-flex-item-align:center;align-self:center;font-size:var(--calcite-font-size--2);line-height:1.375}/*!@.thumbnail-wrapper*/.thumbnail-wrapper.sc-calcite-card{font-size:var(--calcite-font-size-0);line-height:1.375}/*!@.checkbox-wrapper*/.checkbox-wrapper.sc-calcite-card{position:absolute;margin:0px;padding:0px;top:0.5rem;inset-inline-end:0.5rem}";
|
|
9736
9811
|
|
|
9737
|
-
/**
|
|
9812
|
+
/**
|
|
9813
|
+
* Cards do not include a grid or bounding container
|
|
9738
9814
|
* - cards will expand to fit the width of their container
|
|
9739
9815
|
*/
|
|
9740
9816
|
/**
|
|
@@ -9760,15 +9836,21 @@ class Card {
|
|
|
9760
9836
|
this.selected = false;
|
|
9761
9837
|
/** Indicates whether the card is selectable. */
|
|
9762
9838
|
this.selectable = false;
|
|
9763
|
-
/**
|
|
9839
|
+
/**
|
|
9840
|
+
* string to override English loading text
|
|
9841
|
+
*
|
|
9764
9842
|
* @default "Loading"
|
|
9765
9843
|
*/
|
|
9766
9844
|
this.intlLoading = TEXT$j.loading;
|
|
9767
|
-
/**
|
|
9845
|
+
/**
|
|
9846
|
+
* string to override English select text for checkbox when selectable is true
|
|
9847
|
+
*
|
|
9768
9848
|
* @default "Select"
|
|
9769
9849
|
*/
|
|
9770
9850
|
this.intlSelect = TEXT$j.select;
|
|
9771
|
-
/**
|
|
9851
|
+
/**
|
|
9852
|
+
* string to override English deselect text for checkbox when selectable is true
|
|
9853
|
+
*
|
|
9772
9854
|
* @default "Deselect"
|
|
9773
9855
|
*/
|
|
9774
9856
|
this.intlDeselect = TEXT$j.deselect;
|
|
@@ -9872,6 +9954,7 @@ class Checkbox {
|
|
|
9872
9954
|
this.disabled = false;
|
|
9873
9955
|
/**
|
|
9874
9956
|
* The hovered state of the checkbox.
|
|
9957
|
+
*
|
|
9875
9958
|
* @internal
|
|
9876
9959
|
*/
|
|
9877
9960
|
this.hovered = false;
|
|
@@ -9879,7 +9962,7 @@ class Checkbox {
|
|
|
9879
9962
|
* True if the checkbox is initially indeterminate,
|
|
9880
9963
|
* which is independent from its checked state
|
|
9881
9964
|
* https://css-tricks.com/indeterminate-checkboxes/
|
|
9882
|
-
|
|
9965
|
+
*/
|
|
9883
9966
|
this.indeterminate = false;
|
|
9884
9967
|
/**
|
|
9885
9968
|
* When true, makes the component required for form-submission.
|
|
@@ -10031,7 +10114,9 @@ class Chip {
|
|
|
10031
10114
|
this.color = "grey";
|
|
10032
10115
|
/** Optionally show a button the user can click to dismiss the chip */
|
|
10033
10116
|
this.dismissible = false;
|
|
10034
|
-
/**
|
|
10117
|
+
/**
|
|
10118
|
+
* Aria label for the "x" button
|
|
10119
|
+
*
|
|
10035
10120
|
* @default "Close"
|
|
10036
10121
|
*/
|
|
10037
10122
|
this.dismissLabel = TEXT$i.close;
|
|
@@ -12369,6 +12454,7 @@ class ColorPicker {
|
|
|
12369
12454
|
* The format of the value property.
|
|
12370
12455
|
*
|
|
12371
12456
|
* When "auto", the format will be inferred from `value` when set.
|
|
12457
|
+
*
|
|
12372
12458
|
* @default "auto"
|
|
12373
12459
|
*/
|
|
12374
12460
|
this.format = defaultFormat;
|
|
@@ -12378,80 +12464,117 @@ class ColorPicker {
|
|
|
12378
12464
|
this.hideChannels = false;
|
|
12379
12465
|
/** When true, hides the saved colors section */
|
|
12380
12466
|
this.hideSaved = false;
|
|
12381
|
-
/**
|
|
12467
|
+
/**
|
|
12468
|
+
* Label used for the blue channel
|
|
12469
|
+
*
|
|
12382
12470
|
* @default "B"
|
|
12383
12471
|
*/
|
|
12384
12472
|
this.intlB = TEXT$h.b;
|
|
12385
|
-
/**
|
|
12473
|
+
/**
|
|
12474
|
+
* Label used for the blue channel description
|
|
12475
|
+
*
|
|
12386
12476
|
* @default "Blue"
|
|
12387
12477
|
*/
|
|
12388
12478
|
this.intlBlue = TEXT$h.blue;
|
|
12389
|
-
/**
|
|
12479
|
+
/**
|
|
12480
|
+
* Label used for the delete color button.
|
|
12481
|
+
*
|
|
12390
12482
|
* @default "Delete color"
|
|
12391
12483
|
*/
|
|
12392
12484
|
this.intlDeleteColor = TEXT$h.deleteColor;
|
|
12393
|
-
/**
|
|
12485
|
+
/**
|
|
12486
|
+
* Label used for the green channel
|
|
12487
|
+
*
|
|
12394
12488
|
* @default "G"
|
|
12395
12489
|
*/
|
|
12396
12490
|
this.intlG = TEXT$h.g;
|
|
12397
|
-
/**
|
|
12491
|
+
/**
|
|
12492
|
+
* Label used for the green channel description
|
|
12493
|
+
*
|
|
12398
12494
|
* @default "Green"
|
|
12399
12495
|
*/
|
|
12400
12496
|
this.intlGreen = TEXT$h.green;
|
|
12401
|
-
/**
|
|
12497
|
+
/**
|
|
12498
|
+
* Label used for the hue channel
|
|
12499
|
+
*
|
|
12402
12500
|
* @default "H"
|
|
12403
12501
|
*/
|
|
12404
12502
|
this.intlH = TEXT$h.h;
|
|
12405
|
-
/**
|
|
12503
|
+
/**
|
|
12504
|
+
* Label used for the HSV mode
|
|
12505
|
+
*
|
|
12406
12506
|
* @default "HSV"
|
|
12407
12507
|
*/
|
|
12408
12508
|
this.intlHsv = TEXT$h.hsv;
|
|
12409
|
-
/**
|
|
12509
|
+
/**
|
|
12510
|
+
* Label used for the hex input
|
|
12511
|
+
*
|
|
12410
12512
|
* @default "Hex"
|
|
12411
12513
|
*/
|
|
12412
12514
|
this.intlHex = TEXT$h.hex;
|
|
12413
|
-
/**
|
|
12515
|
+
/**
|
|
12516
|
+
* Label used for the hue channel description
|
|
12517
|
+
*
|
|
12414
12518
|
* @default "Hue"
|
|
12415
12519
|
*/
|
|
12416
12520
|
this.intlHue = TEXT$h.hue;
|
|
12417
12521
|
/**
|
|
12418
12522
|
* Label used for the hex input when there is no color selected.
|
|
12523
|
+
*
|
|
12419
12524
|
* @default "No color"
|
|
12420
12525
|
*/
|
|
12421
12526
|
this.intlNoColor = TEXT$h.noColor;
|
|
12422
|
-
/**
|
|
12527
|
+
/**
|
|
12528
|
+
* Label used for the red channel
|
|
12529
|
+
*
|
|
12423
12530
|
* @default "R"
|
|
12424
12531
|
*/
|
|
12425
12532
|
this.intlR = TEXT$h.r;
|
|
12426
|
-
/**
|
|
12533
|
+
/**
|
|
12534
|
+
* Label used for the red channel description
|
|
12535
|
+
*
|
|
12427
12536
|
* @default "Red"
|
|
12428
12537
|
*/
|
|
12429
12538
|
this.intlRed = TEXT$h.red;
|
|
12430
|
-
/**
|
|
12539
|
+
/**
|
|
12540
|
+
* Label used for the RGB mode
|
|
12541
|
+
*
|
|
12431
12542
|
* @default "RGB"
|
|
12432
12543
|
*/
|
|
12433
12544
|
this.intlRgb = TEXT$h.rgb;
|
|
12434
|
-
/**
|
|
12545
|
+
/**
|
|
12546
|
+
* Label used for the saturation channel
|
|
12547
|
+
*
|
|
12435
12548
|
* @default "S"
|
|
12436
12549
|
*/
|
|
12437
12550
|
this.intlS = TEXT$h.s;
|
|
12438
|
-
/**
|
|
12551
|
+
/**
|
|
12552
|
+
* Label used for the saturation channel description
|
|
12553
|
+
*
|
|
12439
12554
|
* @default "Saturation"
|
|
12440
12555
|
*/
|
|
12441
12556
|
this.intlSaturation = TEXT$h.saturation;
|
|
12442
|
-
/**
|
|
12557
|
+
/**
|
|
12558
|
+
* Label used for the save color button.
|
|
12559
|
+
*
|
|
12443
12560
|
* @default "Save color"
|
|
12444
12561
|
*/
|
|
12445
12562
|
this.intlSaveColor = TEXT$h.saveColor;
|
|
12446
|
-
/**
|
|
12563
|
+
/**
|
|
12564
|
+
* Label used for the saved colors section
|
|
12565
|
+
*
|
|
12447
12566
|
* @default "Saved"
|
|
12448
12567
|
*/
|
|
12449
12568
|
this.intlSaved = TEXT$h.saved;
|
|
12450
|
-
/**
|
|
12569
|
+
/**
|
|
12570
|
+
* Label used for the value channel
|
|
12571
|
+
*
|
|
12451
12572
|
* @default "V"
|
|
12452
12573
|
*/
|
|
12453
12574
|
this.intlV = TEXT$h.v;
|
|
12454
|
-
/**
|
|
12575
|
+
/**
|
|
12576
|
+
* Label used for the
|
|
12577
|
+
*
|
|
12455
12578
|
* @default "Value"
|
|
12456
12579
|
*/
|
|
12457
12580
|
this.intlValue = TEXT$h.value;
|
|
@@ -12466,6 +12589,7 @@ class ColorPicker {
|
|
|
12466
12589
|
* a RGB, HSL or HSV object.
|
|
12467
12590
|
*
|
|
12468
12591
|
* The type will be preserved as the color is updated.
|
|
12592
|
+
*
|
|
12469
12593
|
* @default "#007ac2"
|
|
12470
12594
|
* @see [ColorValue](https://github.com/Esri/calcite-components/blob/master/src/components/color-picker/interfaces.ts#L10)
|
|
12471
12595
|
*/
|
|
@@ -13184,11 +13308,13 @@ class ColorPickerHexInput {
|
|
|
13184
13308
|
this.allowEmpty = false;
|
|
13185
13309
|
/**
|
|
13186
13310
|
* Label used for the hex input.
|
|
13311
|
+
*
|
|
13187
13312
|
* @default "Hex"
|
|
13188
13313
|
*/
|
|
13189
13314
|
this.intlHex = TEXT$h.hex;
|
|
13190
13315
|
/**
|
|
13191
13316
|
* Label used for the hex input when there is no color selected.
|
|
13317
|
+
*
|
|
13192
13318
|
* @default "No color"
|
|
13193
13319
|
*/
|
|
13194
13320
|
this.intlNoColor = TEXT$h.noColor;
|
|
@@ -13200,7 +13326,7 @@ class ColorPickerHexInput {
|
|
|
13200
13326
|
* The hex value.
|
|
13201
13327
|
*/
|
|
13202
13328
|
this.value = normalizeHex(DEFAULT_COLOR.hex());
|
|
13203
|
-
this.
|
|
13329
|
+
this.onCalciteInternalInputBlur = () => {
|
|
13204
13330
|
const node = this.inputNode;
|
|
13205
13331
|
const inputValue = node.value;
|
|
13206
13332
|
const hex = `#${inputValue}`;
|
|
@@ -13285,7 +13411,7 @@ class ColorPickerHexInput {
|
|
|
13285
13411
|
render() {
|
|
13286
13412
|
const { intlHex, value } = this;
|
|
13287
13413
|
const hexInputValue = this.formatForInternalInput(value);
|
|
13288
|
-
return (hAsync("div", { class: CSS$F.container }, hAsync("calcite-input", { class: CSS$F.input, label: intlHex, maxLength: 6,
|
|
13414
|
+
return (hAsync("div", { class: CSS$F.container }, hAsync("calcite-input", { class: CSS$F.input, label: intlHex, maxLength: 6, onCalciteInputChange: this.onInputChange, onCalciteInternalInputBlur: this.onCalciteInternalInputBlur, onKeyDown: this.handleKeyDown, prefixText: "#", ref: this.storeInputRef, scale: this.scale, value: hexInputValue }), hexInputValue ? (hAsync("calcite-color-picker-swatch", { active: true, class: CSS$F.preview, color: `#${hexInputValue}`, scale: this.scale })) : null));
|
|
13289
13415
|
}
|
|
13290
13416
|
//--------------------------------------------------------------------------
|
|
13291
13417
|
//
|
|
@@ -15389,7 +15515,8 @@ class Combobox {
|
|
|
15389
15515
|
* @internal
|
|
15390
15516
|
*/
|
|
15391
15517
|
this.required = false;
|
|
15392
|
-
/**
|
|
15518
|
+
/**
|
|
15519
|
+
* specify the selection mode
|
|
15393
15520
|
* - multi: allow any number of selected items (default)
|
|
15394
15521
|
* - single: only one selection)
|
|
15395
15522
|
* - ancestors: like multi, but show ancestors of selected items as selected, only deepest children shown in chips
|
|
@@ -15399,7 +15526,9 @@ class Combobox {
|
|
|
15399
15526
|
this.scale = "m";
|
|
15400
15527
|
/** The value(s) of the selectedItem(s) */
|
|
15401
15528
|
this.value = null;
|
|
15402
|
-
/**
|
|
15529
|
+
/**
|
|
15530
|
+
* string to override the English "Remove tag" text for when an item is selected.
|
|
15531
|
+
*
|
|
15403
15532
|
* @default "Remove tag"
|
|
15404
15533
|
*/
|
|
15405
15534
|
this.intlRemoveTag = TEXT$g.removeTag;
|
|
@@ -16241,6 +16370,8 @@ class ComboboxItem {
|
|
|
16241
16370
|
/**
|
|
16242
16371
|
* Used to toggle the selection state. By default this won't trigger an event.
|
|
16243
16372
|
* The first argument allows the value to be coerced, rather than swapping values.
|
|
16373
|
+
*
|
|
16374
|
+
* @param coerce
|
|
16244
16375
|
*/
|
|
16245
16376
|
async toggleSelected(coerce) {
|
|
16246
16377
|
if (this.disabled) {
|
|
@@ -16502,6 +16633,10 @@ function localizeNumberString(numberString, locale, displayGroupSeparator = fals
|
|
|
16502
16633
|
|
|
16503
16634
|
/**
|
|
16504
16635
|
* Check if date is within a min and max
|
|
16636
|
+
*
|
|
16637
|
+
* @param date
|
|
16638
|
+
* @param min
|
|
16639
|
+
* @param max
|
|
16505
16640
|
*/
|
|
16506
16641
|
function inRange(date, min, max) {
|
|
16507
16642
|
const time = date.getTime();
|
|
@@ -16512,6 +16647,10 @@ function inRange(date, min, max) {
|
|
|
16512
16647
|
/**
|
|
16513
16648
|
* Ensures date is within range,
|
|
16514
16649
|
* returns min or max if out of bounds
|
|
16650
|
+
*
|
|
16651
|
+
* @param date
|
|
16652
|
+
* @param min
|
|
16653
|
+
* @param max
|
|
16515
16654
|
*/
|
|
16516
16655
|
function dateFromRange(date, min, max) {
|
|
16517
16656
|
if (!(date instanceof Date)) {
|
|
@@ -16531,6 +16670,8 @@ function dateFromRange(date, min, max) {
|
|
|
16531
16670
|
/**
|
|
16532
16671
|
* Parse an iso8601 string (YYYY-mm-dd) into a valid date.
|
|
16533
16672
|
* TODO: handle time when time of day UI is added
|
|
16673
|
+
*
|
|
16674
|
+
* @param iso8601
|
|
16534
16675
|
*/
|
|
16535
16676
|
function dateFromISO(iso8601) {
|
|
16536
16677
|
if (iso8601 instanceof Date) {
|
|
@@ -16549,6 +16690,8 @@ function dateFromISO(iso8601) {
|
|
|
16549
16690
|
}
|
|
16550
16691
|
/**
|
|
16551
16692
|
* Return first portion of ISO string (YYYY-mm-dd)
|
|
16693
|
+
*
|
|
16694
|
+
* @param date
|
|
16552
16695
|
*/
|
|
16553
16696
|
function dateToISO(date) {
|
|
16554
16697
|
if (typeof date === "string") {
|
|
@@ -16561,6 +16704,9 @@ function dateToISO(date) {
|
|
|
16561
16704
|
}
|
|
16562
16705
|
/**
|
|
16563
16706
|
* Check if two dates are the same day, month, year
|
|
16707
|
+
*
|
|
16708
|
+
* @param d1
|
|
16709
|
+
* @param d2
|
|
16564
16710
|
*/
|
|
16565
16711
|
function sameDate(d1, d2) {
|
|
16566
16712
|
return (d1 instanceof Date &&
|
|
@@ -16571,6 +16717,8 @@ function sameDate(d1, d2) {
|
|
|
16571
16717
|
}
|
|
16572
16718
|
/**
|
|
16573
16719
|
* Get a date one month in the past
|
|
16720
|
+
*
|
|
16721
|
+
* @param date
|
|
16574
16722
|
*/
|
|
16575
16723
|
function prevMonth(date) {
|
|
16576
16724
|
const month = date.getMonth();
|
|
@@ -16584,6 +16732,8 @@ function prevMonth(date) {
|
|
|
16584
16732
|
}
|
|
16585
16733
|
/**
|
|
16586
16734
|
* Get a date one month in the future
|
|
16735
|
+
*
|
|
16736
|
+
* @param date
|
|
16587
16737
|
*/
|
|
16588
16738
|
function nextMonth(date) {
|
|
16589
16739
|
const month = date.getMonth();
|
|
@@ -16597,6 +16747,9 @@ function nextMonth(date) {
|
|
|
16597
16747
|
}
|
|
16598
16748
|
/**
|
|
16599
16749
|
* Translate a number into a given locals numeral system
|
|
16750
|
+
*
|
|
16751
|
+
* @param num
|
|
16752
|
+
* @param localeData
|
|
16600
16753
|
*/
|
|
16601
16754
|
function localizeNumber(num, localeData) {
|
|
16602
16755
|
return String(num)
|
|
@@ -16606,6 +16759,9 @@ function localizeNumber(num, localeData) {
|
|
|
16606
16759
|
}
|
|
16607
16760
|
/**
|
|
16608
16761
|
* Calculate actual number from localized string
|
|
16762
|
+
*
|
|
16763
|
+
* @param str
|
|
16764
|
+
* @param localeData
|
|
16609
16765
|
*/
|
|
16610
16766
|
function parseNumber(str, localeData) {
|
|
16611
16767
|
const numerals = "0123456789";
|
|
@@ -16618,6 +16774,9 @@ function parseNumber(str, localeData) {
|
|
|
16618
16774
|
/**
|
|
16619
16775
|
* Parse numeric units for day, month, and year from a localized string
|
|
16620
16776
|
* month starts at 0 (can pass to date constructor)
|
|
16777
|
+
*
|
|
16778
|
+
* @param str
|
|
16779
|
+
* @param localeData
|
|
16621
16780
|
*/
|
|
16622
16781
|
function parseDateString(str, localeData) {
|
|
16623
16782
|
const { separator, unitOrder } = localeData;
|
|
@@ -16631,6 +16790,8 @@ function parseDateString(str, localeData) {
|
|
|
16631
16790
|
}
|
|
16632
16791
|
/**
|
|
16633
16792
|
* Convert eastern arbic numerals
|
|
16793
|
+
*
|
|
16794
|
+
* @param str
|
|
16634
16795
|
*/
|
|
16635
16796
|
function replaceArabicNumerals(str = "") {
|
|
16636
16797
|
return str
|
|
@@ -16639,6 +16800,8 @@ function replaceArabicNumerals(str = "") {
|
|
|
16639
16800
|
}
|
|
16640
16801
|
/**
|
|
16641
16802
|
* Based on the unitOrder string, find order of month, day, and year for locale
|
|
16803
|
+
*
|
|
16804
|
+
* @param unitOrder
|
|
16642
16805
|
*/
|
|
16643
16806
|
function getOrder(unitOrder) {
|
|
16644
16807
|
const signifiers = ["d", "m", "y"];
|
|
@@ -16647,6 +16810,9 @@ function getOrder(unitOrder) {
|
|
|
16647
16810
|
}
|
|
16648
16811
|
/**
|
|
16649
16812
|
* Get number of days between two dates
|
|
16813
|
+
*
|
|
16814
|
+
* @param date1
|
|
16815
|
+
* @param date2
|
|
16650
16816
|
*/
|
|
16651
16817
|
function getDaysDiff(date1, date2) {
|
|
16652
16818
|
const ts1 = date1.getTime();
|
|
@@ -16668,15 +16834,21 @@ class DatePicker {
|
|
|
16668
16834
|
registerInstance(this, hostRef);
|
|
16669
16835
|
this.calciteDatePickerChange = createEvent(this, "calciteDatePickerChange", 7);
|
|
16670
16836
|
this.calciteDatePickerRangeChange = createEvent(this, "calciteDatePickerRangeChange", 7);
|
|
16671
|
-
/**
|
|
16837
|
+
/**
|
|
16838
|
+
* Localized string for "previous month" (used for aria label)
|
|
16839
|
+
*
|
|
16672
16840
|
* @default "Previous month"
|
|
16673
16841
|
*/
|
|
16674
16842
|
this.intlPrevMonth = TEXT$f.prevMonth;
|
|
16675
|
-
/**
|
|
16843
|
+
/**
|
|
16844
|
+
* Localized string for "next month" (used for aria label)
|
|
16845
|
+
*
|
|
16676
16846
|
* @default "Next month"
|
|
16677
16847
|
*/
|
|
16678
16848
|
this.intlNextMonth = TEXT$f.nextMonth;
|
|
16679
|
-
/**
|
|
16849
|
+
/**
|
|
16850
|
+
* Localized string for "year" (used for aria label)
|
|
16851
|
+
*
|
|
16680
16852
|
* @default "Year"
|
|
16681
16853
|
*/
|
|
16682
16854
|
this.intlYear = TEXT$f.year;
|
|
@@ -16792,6 +16964,7 @@ class DatePicker {
|
|
|
16792
16964
|
this.hoverRange = undefined;
|
|
16793
16965
|
}
|
|
16794
16966
|
}
|
|
16967
|
+
e.stopPropagation();
|
|
16795
16968
|
};
|
|
16796
16969
|
this.monthMouseOutChange = () => {
|
|
16797
16970
|
if (this.hoverRange) {
|
|
@@ -16817,6 +16990,8 @@ class DatePicker {
|
|
|
16817
16990
|
};
|
|
16818
16991
|
/**
|
|
16819
16992
|
* Event handler for when the selected date changes
|
|
16993
|
+
*
|
|
16994
|
+
* @param e
|
|
16820
16995
|
*/
|
|
16821
16996
|
this.monthDateChange = (e) => {
|
|
16822
16997
|
const date = new Date(e.detail);
|
|
@@ -16984,15 +17159,24 @@ class DatePicker {
|
|
|
16984
17159
|
}
|
|
16985
17160
|
/**
|
|
16986
17161
|
* Render calcite-date-picker-month-header and calcite-date-picker-month
|
|
17162
|
+
*
|
|
17163
|
+
* @param activeDate
|
|
17164
|
+
* @param maxDate
|
|
17165
|
+
* @param minDate
|
|
17166
|
+
* @param date
|
|
17167
|
+
* @param endDate
|
|
16987
17168
|
*/
|
|
16988
17169
|
renderCalendar(activeDate, maxDate, minDate, date, endDate) {
|
|
16989
17170
|
return (this.localeData && [
|
|
16990
17171
|
hAsync("calcite-date-picker-month-header", { activeDate: activeDate, headingLevel: this.headingLevel || HEADING_LEVEL$6, intlNextMonth: this.intlNextMonth, intlPrevMonth: this.intlPrevMonth, intlYear: this.intlYear, localeData: this.localeData, max: maxDate, min: minDate, onCalciteDatePickerSelect: this.monthHeaderSelectChange, scale: this.scale, selectedDate: this.activeRange === "end" ? endDate : date || new Date() }),
|
|
16991
|
-
hAsync("calcite-date-picker-month", { activeDate: activeDate, endDate: this.range ? endDate : undefined, hoverRange: this.hoverRange, localeData: this.localeData, max: maxDate, min: minDate, onCalciteDatePickerActiveDateChange: this.monthActiveDateChange,
|
|
17172
|
+
hAsync("calcite-date-picker-month", { activeDate: activeDate, endDate: this.range ? endDate : undefined, hoverRange: this.hoverRange, localeData: this.localeData, max: maxDate, min: minDate, onCalciteDatePickerActiveDateChange: this.monthActiveDateChange, onCalciteDatePickerSelect: this.monthDateChange, onCalciteInternalDatePickerHover: this.monthHoverChange, onCalciteInternalDatePickerMouseOut: this.monthMouseOutChange, scale: this.scale, selectedDate: this.activeRange === "end" ? endDate : date, startDate: this.range ? date : undefined })
|
|
16992
17173
|
]);
|
|
16993
17174
|
}
|
|
16994
17175
|
/**
|
|
16995
17176
|
* Update date instance of start if valid
|
|
17177
|
+
*
|
|
17178
|
+
* @param startDate
|
|
17179
|
+
* @param emit
|
|
16996
17180
|
*/
|
|
16997
17181
|
setStartAsDate(startDate, emit) {
|
|
16998
17182
|
this.startAsDate = startDate;
|
|
@@ -17006,6 +17190,9 @@ class DatePicker {
|
|
|
17006
17190
|
}
|
|
17007
17191
|
/**
|
|
17008
17192
|
* Update date instance of end if valid
|
|
17193
|
+
*
|
|
17194
|
+
* @param endDate
|
|
17195
|
+
* @param emit
|
|
17009
17196
|
*/
|
|
17010
17197
|
setEndAsDate(endDate, emit) {
|
|
17011
17198
|
this.endAsDate = endDate;
|
|
@@ -17029,6 +17216,10 @@ class DatePicker {
|
|
|
17029
17216
|
}
|
|
17030
17217
|
/**
|
|
17031
17218
|
* Get an active date using the value, or current date as default
|
|
17219
|
+
*
|
|
17220
|
+
* @param value
|
|
17221
|
+
* @param min
|
|
17222
|
+
* @param max
|
|
17032
17223
|
*/
|
|
17033
17224
|
getActiveDate(value, min, max) {
|
|
17034
17225
|
return dateFromRange(this.activeDate, min, max) || value || dateFromRange(new Date(), min, max);
|
|
@@ -17094,7 +17285,7 @@ class DatePickerDay {
|
|
|
17094
17285
|
constructor(hostRef) {
|
|
17095
17286
|
registerInstance(this, hostRef);
|
|
17096
17287
|
this.calciteDaySelect = createEvent(this, "calciteDaySelect", 7);
|
|
17097
|
-
this.
|
|
17288
|
+
this.calciteInternalDayHover = createEvent(this, "calciteInternalDayHover", 7);
|
|
17098
17289
|
/** Date is outside of range and can't be selected */
|
|
17099
17290
|
this.disabled = false;
|
|
17100
17291
|
/** Date is in the current month. */
|
|
@@ -17129,7 +17320,7 @@ class DatePickerDay {
|
|
|
17129
17320
|
};
|
|
17130
17321
|
}
|
|
17131
17322
|
mouseoverHandler() {
|
|
17132
|
-
this.
|
|
17323
|
+
this.calciteInternalDayHover.emit({
|
|
17133
17324
|
disabled: this.disabled
|
|
17134
17325
|
});
|
|
17135
17326
|
}
|
|
@@ -17184,9 +17375,9 @@ class DatePickerMonth {
|
|
|
17184
17375
|
constructor(hostRef) {
|
|
17185
17376
|
registerInstance(this, hostRef);
|
|
17186
17377
|
this.calciteDatePickerSelect = createEvent(this, "calciteDatePickerSelect", 7);
|
|
17187
|
-
this.
|
|
17378
|
+
this.calciteInternalDatePickerHover = createEvent(this, "calciteInternalDatePickerHover", 7);
|
|
17188
17379
|
this.calciteDatePickerActiveDateChange = createEvent(this, "calciteDatePickerActiveDateChange", 7);
|
|
17189
|
-
this.
|
|
17380
|
+
this.calciteInternalDatePickerMouseOut = createEvent(this, "calciteInternalDatePickerMouseOut", 7);
|
|
17190
17381
|
/** Date currently active.*/
|
|
17191
17382
|
this.activeDate = new Date();
|
|
17192
17383
|
//--------------------------------------------------------------------------
|
|
@@ -17249,11 +17440,12 @@ class DatePickerMonth {
|
|
|
17249
17440
|
this.dayHover = (e) => {
|
|
17250
17441
|
const target = e.target;
|
|
17251
17442
|
if (e.detail.disabled) {
|
|
17252
|
-
this.
|
|
17443
|
+
this.calciteInternalDatePickerMouseOut.emit();
|
|
17253
17444
|
}
|
|
17254
17445
|
else {
|
|
17255
|
-
this.
|
|
17446
|
+
this.calciteInternalDatePickerHover.emit(target.value);
|
|
17256
17447
|
}
|
|
17448
|
+
e.stopPropagation();
|
|
17257
17449
|
};
|
|
17258
17450
|
this.daySelect = (e) => {
|
|
17259
17451
|
const target = e.target;
|
|
@@ -17261,7 +17453,7 @@ class DatePickerMonth {
|
|
|
17261
17453
|
};
|
|
17262
17454
|
}
|
|
17263
17455
|
mouseoutHandler() {
|
|
17264
|
-
this.
|
|
17456
|
+
this.calciteInternalDatePickerMouseOut.emit();
|
|
17265
17457
|
}
|
|
17266
17458
|
//--------------------------------------------------------------------------
|
|
17267
17459
|
//
|
|
@@ -17306,6 +17498,8 @@ class DatePickerMonth {
|
|
|
17306
17498
|
//--------------------------------------------------------------------------
|
|
17307
17499
|
/**
|
|
17308
17500
|
* Add n months to the current month
|
|
17501
|
+
*
|
|
17502
|
+
* @param step
|
|
17309
17503
|
*/
|
|
17310
17504
|
addMonths(step) {
|
|
17311
17505
|
const nextDate = new Date(this.activeDate);
|
|
@@ -17315,6 +17509,8 @@ class DatePickerMonth {
|
|
|
17315
17509
|
}
|
|
17316
17510
|
/**
|
|
17317
17511
|
* Add n days to the current date
|
|
17512
|
+
*
|
|
17513
|
+
* @param step
|
|
17318
17514
|
*/
|
|
17319
17515
|
addDays(step = 0) {
|
|
17320
17516
|
const nextDate = new Date(this.activeDate);
|
|
@@ -17324,6 +17520,10 @@ class DatePickerMonth {
|
|
|
17324
17520
|
}
|
|
17325
17521
|
/**
|
|
17326
17522
|
* Get dates for last days of the previous month
|
|
17523
|
+
*
|
|
17524
|
+
* @param month
|
|
17525
|
+
* @param year
|
|
17526
|
+
* @param startOfWeek
|
|
17327
17527
|
*/
|
|
17328
17528
|
getPrevMonthdays(month, year, startOfWeek) {
|
|
17329
17529
|
const lastDate = new Date(year, month, 0);
|
|
@@ -17340,6 +17540,9 @@ class DatePickerMonth {
|
|
|
17340
17540
|
}
|
|
17341
17541
|
/**
|
|
17342
17542
|
* Get dates for the current month
|
|
17543
|
+
*
|
|
17544
|
+
* @param month
|
|
17545
|
+
* @param year
|
|
17343
17546
|
*/
|
|
17344
17547
|
getCurrentMonthDays(month, year) {
|
|
17345
17548
|
const num = new Date(year, month + 1, 0).getDate();
|
|
@@ -17351,6 +17554,10 @@ class DatePickerMonth {
|
|
|
17351
17554
|
}
|
|
17352
17555
|
/**
|
|
17353
17556
|
* Get dates for first days of the next month
|
|
17557
|
+
*
|
|
17558
|
+
* @param month
|
|
17559
|
+
* @param year
|
|
17560
|
+
* @param startOfWeek
|
|
17354
17561
|
*/
|
|
17355
17562
|
getNextMonthDays(month, year, startOfWeek) {
|
|
17356
17563
|
const endDay = new Date(year, month + 1, 0).getDay();
|
|
@@ -17365,6 +17572,8 @@ class DatePickerMonth {
|
|
|
17365
17572
|
}
|
|
17366
17573
|
/**
|
|
17367
17574
|
* Determine if the date is in between the start and end dates
|
|
17575
|
+
*
|
|
17576
|
+
* @param date
|
|
17368
17577
|
*/
|
|
17369
17578
|
betweenSelectedRange(date) {
|
|
17370
17579
|
return !!(this.startDate &&
|
|
@@ -17375,6 +17584,8 @@ class DatePickerMonth {
|
|
|
17375
17584
|
}
|
|
17376
17585
|
/**
|
|
17377
17586
|
* Determine if the date should be in selected state
|
|
17587
|
+
*
|
|
17588
|
+
* @param date
|
|
17378
17589
|
*/
|
|
17379
17590
|
isSelected(date) {
|
|
17380
17591
|
return !!(sameDate(date, this.selectedDate) ||
|
|
@@ -17383,6 +17594,8 @@ class DatePickerMonth {
|
|
|
17383
17594
|
}
|
|
17384
17595
|
/**
|
|
17385
17596
|
* Determine if the date is the start of the date range
|
|
17597
|
+
*
|
|
17598
|
+
* @param date
|
|
17386
17599
|
*/
|
|
17387
17600
|
isStartOfRange(date) {
|
|
17388
17601
|
return !!(this.startDate &&
|
|
@@ -17399,6 +17612,12 @@ class DatePickerMonth {
|
|
|
17399
17612
|
}
|
|
17400
17613
|
/**
|
|
17401
17614
|
* Render calcite-date-picker-day
|
|
17615
|
+
*
|
|
17616
|
+
* @param active
|
|
17617
|
+
* @param day
|
|
17618
|
+
* @param date
|
|
17619
|
+
* @param currentMonth
|
|
17620
|
+
* @param ref
|
|
17402
17621
|
*/
|
|
17403
17622
|
renderDateDay(active, day, date, currentMonth, ref) {
|
|
17404
17623
|
var _a;
|
|
@@ -17410,7 +17629,7 @@ class DatePickerMonth {
|
|
|
17410
17629
|
"hover--outside-range": this.startDate && !isHoverInRange,
|
|
17411
17630
|
"focused--start": isFocusedOnStart,
|
|
17412
17631
|
"focused--end": !isFocusedOnStart
|
|
17413
|
-
}, currentMonth: currentMonth, day: day, disabled: !inRange(date, this.min, this.max), endOfRange: this.isEndOfRange(date), highlighted: this.betweenSelectedRange(date), key: date.toDateString(), localeData: this.localeData,
|
|
17632
|
+
}, currentMonth: currentMonth, day: day, disabled: !inRange(date, this.min, this.max), endOfRange: this.isEndOfRange(date), highlighted: this.betweenSelectedRange(date), key: date.toDateString(), localeData: this.localeData, onCalciteDaySelect: this.daySelect, onCalciteInternalDayHover: this.dayHover, range: !!this.startDate && !!this.endDate && !sameDate(this.startDate, this.endDate), rangeHover: this.isRangeHover(date), ref: (el) => {
|
|
17414
17633
|
// when moving via keyboard, focus must be updated on active date
|
|
17415
17634
|
if (ref && active && this.activeFocus) {
|
|
17416
17635
|
el === null || el === void 0 ? void 0 : el.focus();
|
|
@@ -17481,6 +17700,8 @@ class DatePickerMonthHeader {
|
|
|
17481
17700
|
//--------------------------------------------------------------------------
|
|
17482
17701
|
/**
|
|
17483
17702
|
* Increment year on UP/DOWN keys
|
|
17703
|
+
*
|
|
17704
|
+
* @param e
|
|
17484
17705
|
*/
|
|
17485
17706
|
this.onYearKey = (e) => {
|
|
17486
17707
|
const localizedYear = e.target.value;
|
|
@@ -17580,6 +17801,11 @@ class DatePickerMonthHeader {
|
|
|
17580
17801
|
/**
|
|
17581
17802
|
* Parse localized year string from input,
|
|
17582
17803
|
* set to active if in range
|
|
17804
|
+
*
|
|
17805
|
+
* @param root0
|
|
17806
|
+
* @param root0.localizedYear
|
|
17807
|
+
* @param root0.commit
|
|
17808
|
+
* @param root0.offset
|
|
17583
17809
|
*/
|
|
17584
17810
|
setYear({ localizedYear, commit = true, offset = 0 }) {
|
|
17585
17811
|
const { yearInput, activeDate, localeData } = this;
|
|
@@ -17656,12 +17882,13 @@ class Dropdown {
|
|
|
17656
17882
|
/**
|
|
17657
17883
|
specify the maximum number of calcite-dropdown-items to display before showing the scroller, must be greater than 0 -
|
|
17658
17884
|
this value does not include groupTitles passed to calcite-dropdown-group
|
|
17659
|
-
|
|
17885
|
+
*/
|
|
17660
17886
|
this.maxItems = 0;
|
|
17661
17887
|
/** Describes the type of positioning to use for the overlaid content. If your element is in a fixed container, use the 'fixed' value. */
|
|
17662
17888
|
this.overlayPositioning = "absolute";
|
|
17663
17889
|
/**
|
|
17664
17890
|
* Determines where the dropdown will be positioned relative to the button.
|
|
17891
|
+
*
|
|
17665
17892
|
* @default "bottom-leading"
|
|
17666
17893
|
*/
|
|
17667
17894
|
this.placement = defaultMenuPlacement;
|
|
@@ -17848,8 +18075,9 @@ class Dropdown {
|
|
|
17848
18075
|
}
|
|
17849
18076
|
this.closeCalciteDropdown(false);
|
|
17850
18077
|
}
|
|
17851
|
-
closeCalciteDropdownOnEvent() {
|
|
18078
|
+
closeCalciteDropdownOnEvent(e) {
|
|
17852
18079
|
this.closeCalciteDropdown();
|
|
18080
|
+
e.stopPropagation();
|
|
17853
18081
|
}
|
|
17854
18082
|
closeCalciteDropdownOnOpenEvent(e) {
|
|
17855
18083
|
if (e.composedPath().includes(this.el)) {
|
|
@@ -17867,7 +18095,7 @@ class Dropdown {
|
|
|
17867
18095
|
this.closeCalciteDropdown();
|
|
17868
18096
|
}
|
|
17869
18097
|
}
|
|
17870
|
-
|
|
18098
|
+
calciteInternalDropdownItemKeyEvent(e) {
|
|
17871
18099
|
const { keyboardEvent } = e.detail;
|
|
17872
18100
|
// handle edge
|
|
17873
18101
|
const target = keyboardEvent.target;
|
|
@@ -17912,6 +18140,7 @@ class Dropdown {
|
|
|
17912
18140
|
event.detail.requestedDropdownGroup.selectionMode === "none") {
|
|
17913
18141
|
this.closeCalciteDropdown();
|
|
17914
18142
|
}
|
|
18143
|
+
event.stopPropagation();
|
|
17915
18144
|
}
|
|
17916
18145
|
getModifiers() {
|
|
17917
18146
|
const flipModifier = {
|
|
@@ -18034,7 +18263,7 @@ class Dropdown {
|
|
|
18034
18263
|
"width": [513],
|
|
18035
18264
|
"reposition": [64]
|
|
18036
18265
|
},
|
|
18037
|
-
"$listeners$": [[8, "click", "closeCalciteDropdownOnClick"], [0, "
|
|
18266
|
+
"$listeners$": [[8, "click", "closeCalciteDropdownOnClick"], [0, "calciteInternalDropdownCloseRequest", "closeCalciteDropdownOnEvent"], [8, "calciteDropdownOpen", "closeCalciteDropdownOnOpenEvent"], [1, "mouseenter", "mouseEnterHandler"], [1, "mouseleave", "mouseLeaveHandler"], [0, "calciteInternalDropdownItemKeyEvent", "calciteInternalDropdownItemKeyEvent"], [0, "calciteInternalDropdownItemSelect", "handleItemSelect"]],
|
|
18038
18267
|
"$lazyBundleId$": "-",
|
|
18039
18268
|
"$attrsToReflect$": [["active", "active"], ["disableCloseOnSelect", "disable-close-on-select"], ["disabled", "disabled"], ["placement", "placement"], ["scale", "scale"], ["type", "type"], ["width", "width"]]
|
|
18040
18269
|
}; }
|
|
@@ -18054,9 +18283,11 @@ const dropdownGroupCss = "@-webkit-keyframes in{0%{opacity:0}100%{opacity:1}}@ke
|
|
|
18054
18283
|
class DropdownGroup {
|
|
18055
18284
|
constructor(hostRef) {
|
|
18056
18285
|
registerInstance(this, hostRef);
|
|
18057
|
-
this.
|
|
18058
|
-
/**
|
|
18059
|
-
|
|
18286
|
+
this.calciteInternalDropdownItemChange = createEvent(this, "calciteInternalDropdownItemChange", 7);
|
|
18287
|
+
/**
|
|
18288
|
+
specify the selection mode - multi (allow any number of (or no) active items), single (allow and require one active item),
|
|
18289
|
+
none (no active items), defaults to single
|
|
18290
|
+
*/
|
|
18060
18291
|
this.selectionMode = "single";
|
|
18061
18292
|
}
|
|
18062
18293
|
//--------------------------------------------------------------------------
|
|
@@ -18086,7 +18317,7 @@ class DropdownGroup {
|
|
|
18086
18317
|
updateActiveItemOnChange(event) {
|
|
18087
18318
|
this.requestedDropdownGroup = event.detail.requestedDropdownGroup;
|
|
18088
18319
|
this.requestedDropdownItem = event.detail.requestedDropdownItem;
|
|
18089
|
-
this.
|
|
18320
|
+
this.calciteInternalDropdownItemChange.emit({
|
|
18090
18321
|
requestedDropdownGroup: this.requestedDropdownGroup,
|
|
18091
18322
|
requestedDropdownItem: this.requestedDropdownItem
|
|
18092
18323
|
});
|
|
@@ -18109,7 +18340,7 @@ class DropdownGroup {
|
|
|
18109
18340
|
"selectionMode": [513, "selection-mode"],
|
|
18110
18341
|
"scale": [513]
|
|
18111
18342
|
},
|
|
18112
|
-
"$listeners$": [[0, "
|
|
18343
|
+
"$listeners$": [[0, "calciteInternalDropdownItemSelect", "updateActiveItemOnChange"]],
|
|
18113
18344
|
"$lazyBundleId$": "-",
|
|
18114
18345
|
"$attrsToReflect$": [["groupTitle", "group-title"], ["selectionMode", "selection-mode"], ["scale", "scale"]]
|
|
18115
18346
|
}; }
|
|
@@ -18133,9 +18364,9 @@ const dropdownItemCss = "@-webkit-keyframes in{0%{opacity:0}100%{opacity:1}}@key
|
|
|
18133
18364
|
class DropdownItem {
|
|
18134
18365
|
constructor(hostRef) {
|
|
18135
18366
|
registerInstance(this, hostRef);
|
|
18136
|
-
this.
|
|
18137
|
-
this.
|
|
18138
|
-
this.
|
|
18367
|
+
this.calciteInternalDropdownItemSelect = createEvent(this, "calciteInternalDropdownItemSelect", 7);
|
|
18368
|
+
this.calciteInternalDropdownItemKeyEvent = createEvent(this, "calciteInternalDropdownItemKeyEvent", 7);
|
|
18369
|
+
this.calciteInternalDropdownCloseRequest = createEvent(this, "calciteInternalDropdownCloseRequest", 7);
|
|
18139
18370
|
//--------------------------------------------------------------------------
|
|
18140
18371
|
//
|
|
18141
18372
|
// Public Properties
|
|
@@ -18220,14 +18451,14 @@ class DropdownItem {
|
|
|
18220
18451
|
}
|
|
18221
18452
|
break;
|
|
18222
18453
|
case "Escape":
|
|
18223
|
-
this.
|
|
18454
|
+
this.calciteInternalDropdownCloseRequest.emit();
|
|
18224
18455
|
break;
|
|
18225
18456
|
case "Tab":
|
|
18226
18457
|
case "ArrowUp":
|
|
18227
18458
|
case "ArrowDown":
|
|
18228
18459
|
case "Home":
|
|
18229
18460
|
case "End":
|
|
18230
|
-
this.
|
|
18461
|
+
this.calciteInternalDropdownItemKeyEvent.emit({ keyboardEvent: e });
|
|
18231
18462
|
break;
|
|
18232
18463
|
}
|
|
18233
18464
|
e.preventDefault();
|
|
@@ -18239,6 +18470,7 @@ class DropdownItem {
|
|
|
18239
18470
|
this.requestedDropdownItem = event.detail.requestedDropdownItem;
|
|
18240
18471
|
this.determineActiveItem();
|
|
18241
18472
|
}
|
|
18473
|
+
event.stopPropagation();
|
|
18242
18474
|
}
|
|
18243
18475
|
//--------------------------------------------------------------------------
|
|
18244
18476
|
//
|
|
@@ -18273,7 +18505,7 @@ class DropdownItem {
|
|
|
18273
18505
|
}
|
|
18274
18506
|
}
|
|
18275
18507
|
emitRequestedItem() {
|
|
18276
|
-
this.
|
|
18508
|
+
this.calciteInternalDropdownItemSelect.emit({
|
|
18277
18509
|
requestedDropdownItem: this.el,
|
|
18278
18510
|
requestedDropdownGroup: this.parentDropdownGroupEl
|
|
18279
18511
|
});
|
|
@@ -18294,7 +18526,7 @@ class DropdownItem {
|
|
|
18294
18526
|
"target": [1],
|
|
18295
18527
|
"setFocus": [64]
|
|
18296
18528
|
},
|
|
18297
|
-
"$listeners$": [[0, "click", "onClick"], [0, "keydown", "keyDownHandler"], [16, "
|
|
18529
|
+
"$listeners$": [[0, "click", "onClick"], [0, "keydown", "keyDownHandler"], [16, "calciteInternalDropdownItemChange", "updateActiveItemOnChange"]],
|
|
18298
18530
|
"$lazyBundleId$": "-",
|
|
18299
18531
|
"$attrsToReflect$": [["active", "active"], ["iconFlipRtl", "icon-flip-rtl"], ["iconStart", "icon-start"], ["iconEnd", "icon-end"], ["href", "href"]]
|
|
18300
18532
|
}; }
|
|
@@ -18331,6 +18563,7 @@ class Fab {
|
|
|
18331
18563
|
this.disabled = false;
|
|
18332
18564
|
/**
|
|
18333
18565
|
* The name of the icon to display. The value of this property must match the icon name from https://esri.github.io/calcite-ui-icons/.
|
|
18566
|
+
*
|
|
18334
18567
|
* @default "plus"
|
|
18335
18568
|
*/
|
|
18336
18569
|
this.icon = ICONS$9.plus;
|
|
@@ -18702,6 +18935,10 @@ class Flow {
|
|
|
18702
18935
|
* Calculate slope of the tangents
|
|
18703
18936
|
* uses Steffen interpolation as it's monotonic
|
|
18704
18937
|
* http://jrwalsh1.github.io/posts/interpolations/
|
|
18938
|
+
*
|
|
18939
|
+
* @param p0
|
|
18940
|
+
* @param p1
|
|
18941
|
+
* @param p2
|
|
18705
18942
|
*/
|
|
18706
18943
|
function slope(p0, p1, p2) {
|
|
18707
18944
|
const dx = p1[0] - p0[0];
|
|
@@ -18715,6 +18952,10 @@ function slope(p0, p1, p2) {
|
|
|
18715
18952
|
}
|
|
18716
18953
|
/**
|
|
18717
18954
|
* Calculate slope for just one tangent (single-sided)
|
|
18955
|
+
*
|
|
18956
|
+
* @param p0
|
|
18957
|
+
* @param p1
|
|
18958
|
+
* @param m
|
|
18718
18959
|
*/
|
|
18719
18960
|
function slopeSingle(p0, p1, m) {
|
|
18720
18961
|
const dx = p1[0] - p0[0];
|
|
@@ -18727,6 +18968,12 @@ function slopeSingle(p0, p1, m) {
|
|
|
18727
18968
|
*
|
|
18728
18969
|
* Translates Hermite Spline to Beziér curve:
|
|
18729
18970
|
* stackoverflow.com/questions/42574940/
|
|
18971
|
+
*
|
|
18972
|
+
* @param p0
|
|
18973
|
+
* @param p1
|
|
18974
|
+
* @param m0
|
|
18975
|
+
* @param m1
|
|
18976
|
+
* @param t
|
|
18730
18977
|
*/
|
|
18731
18978
|
function bezier(p0, p1, m0, m1, t) {
|
|
18732
18979
|
const [x0, y0] = p0;
|
|
@@ -18740,6 +18987,12 @@ function bezier(p0, p1, m0, m1, t) {
|
|
|
18740
18987
|
/**
|
|
18741
18988
|
* Generate a function which will translate a point
|
|
18742
18989
|
* from the data coordinate space to svg viewbox oriented pixels
|
|
18990
|
+
*
|
|
18991
|
+
* @param root0
|
|
18992
|
+
* @param root0.width
|
|
18993
|
+
* @param root0.height
|
|
18994
|
+
* @param root0.min
|
|
18995
|
+
* @param root0.max
|
|
18743
18996
|
*/
|
|
18744
18997
|
function translate({ width, height, min, max }) {
|
|
18745
18998
|
const rangeX = max[0] - min[0];
|
|
@@ -18752,6 +19005,8 @@ function translate({ width, height, min, max }) {
|
|
|
18752
19005
|
}
|
|
18753
19006
|
/**
|
|
18754
19007
|
* Get the min and max values from the dataset
|
|
19008
|
+
*
|
|
19009
|
+
* @param data
|
|
18755
19010
|
*/
|
|
18756
19011
|
function range(data) {
|
|
18757
19012
|
const [startX, startY] = data[0];
|
|
@@ -18765,6 +19020,12 @@ function range(data) {
|
|
|
18765
19020
|
/**
|
|
18766
19021
|
* Generate drawing commands for an area graph
|
|
18767
19022
|
* returns a string can can be passed directly to a path element's `d` attribute
|
|
19023
|
+
*
|
|
19024
|
+
* @param root0
|
|
19025
|
+
* @param root0.data
|
|
19026
|
+
* @param root0.min
|
|
19027
|
+
* @param root0.max
|
|
19028
|
+
* @param root0.t
|
|
18768
19029
|
*/
|
|
18769
19030
|
function area({ data, min, max, t }) {
|
|
18770
19031
|
if (data.length === 0) {
|
|
@@ -18921,7 +19182,7 @@ class Handle {
|
|
|
18921
19182
|
//
|
|
18922
19183
|
// --------------------------------------------------------------------------
|
|
18923
19184
|
/**
|
|
18924
|
-
* @internal
|
|
19185
|
+
* @internal
|
|
18925
19186
|
*/
|
|
18926
19187
|
this.activated = false;
|
|
18927
19188
|
/**
|
|
@@ -19121,7 +19382,7 @@ class InlineEditable {
|
|
|
19121
19382
|
registerInstance(this, hostRef);
|
|
19122
19383
|
this.calciteInlineEditableEditCancel = createEvent(this, "calciteInlineEditableEditCancel", 7);
|
|
19123
19384
|
this.calciteInlineEditableEditConfirm = createEvent(this, "calciteInlineEditableEditConfirm", 7);
|
|
19124
|
-
this.
|
|
19385
|
+
this.calciteInternalInlineEditableEnableEditingChange = createEvent(this, "calciteInternalInlineEditableEnableEditingChange", 7);
|
|
19125
19386
|
//--------------------------------------------------------------------------
|
|
19126
19387
|
//
|
|
19127
19388
|
// Props
|
|
@@ -19135,15 +19396,21 @@ class InlineEditable {
|
|
|
19135
19396
|
this.loading = false;
|
|
19136
19397
|
/** specify whether save/cancel controls should be displayed when editingEnabled is true, defaults to false */
|
|
19137
19398
|
this.controls = false;
|
|
19138
|
-
/**
|
|
19399
|
+
/**
|
|
19400
|
+
* specify text to be user for the enable editing button's aria-label, defaults to `Click to edit`
|
|
19401
|
+
*
|
|
19139
19402
|
* @default "Click to edit"
|
|
19140
19403
|
*/
|
|
19141
19404
|
this.intlEnableEditing = TEXT$d.intlEnablingEditing;
|
|
19142
|
-
/**
|
|
19405
|
+
/**
|
|
19406
|
+
* specify text to be user for the cancel editing button's aria-label, defaults to `Cancel`
|
|
19407
|
+
*
|
|
19143
19408
|
* @default "Cancel"
|
|
19144
19409
|
*/
|
|
19145
19410
|
this.intlCancelEditing = TEXT$d.intlCancelEditing;
|
|
19146
|
-
/**
|
|
19411
|
+
/**
|
|
19412
|
+
* specify text to be user for the confirm changes button's aria-label, defaults to `Save`
|
|
19413
|
+
*
|
|
19147
19414
|
* @default "Save"
|
|
19148
19415
|
*/
|
|
19149
19416
|
this.intlConfirmChanges = TEXT$d.intlConfirmChanges;
|
|
@@ -19153,7 +19420,7 @@ class InlineEditable {
|
|
|
19153
19420
|
this.valuePriorToEditing = (_a = this.inputElement) === null || _a === void 0 ? void 0 : _a.value;
|
|
19154
19421
|
this.editingEnabled = true;
|
|
19155
19422
|
(_b = this.inputElement) === null || _b === void 0 ? void 0 : _b.setFocus();
|
|
19156
|
-
this.
|
|
19423
|
+
this.calciteInternalInlineEditableEnableEditingChange.emit();
|
|
19157
19424
|
};
|
|
19158
19425
|
this.disableEditing = () => {
|
|
19159
19426
|
this.editingEnabled = false;
|
|
@@ -19332,7 +19599,7 @@ class InlineEditable {
|
|
|
19332
19599
|
"afterConfirm": [16],
|
|
19333
19600
|
"setFocus": [64]
|
|
19334
19601
|
},
|
|
19335
|
-
"$listeners$": [[0, "
|
|
19602
|
+
"$listeners$": [[0, "calciteInternalInputBlur", "blurHandler"]],
|
|
19336
19603
|
"$lazyBundleId$": "-",
|
|
19337
19604
|
"$attrsToReflect$": [["disabled", "disabled"], ["editingEnabled", "editing-enabled"], ["loading", "loading"], ["controls", "controls"], ["intlEnableEditing", "intl-enable-editing"], ["intlCancelEditing", "intl-cancel-editing"], ["intlConfirmChanges", "intl-confirm-changes"], ["scale", "scale"]]
|
|
19338
19605
|
}; }
|
|
@@ -19377,8 +19644,8 @@ const inputCss = "@-webkit-keyframes in{0%{opacity:0}100%{opacity:1}}@keyframes
|
|
|
19377
19644
|
class Input {
|
|
19378
19645
|
constructor(hostRef) {
|
|
19379
19646
|
registerInstance(this, hostRef);
|
|
19380
|
-
this.
|
|
19381
|
-
this.
|
|
19647
|
+
this.calciteInternalInputFocus = createEvent(this, "calciteInternalInputFocus", 7);
|
|
19648
|
+
this.calciteInternalInputBlur = createEvent(this, "calciteInternalInputBlur", 7);
|
|
19382
19649
|
this.calciteInputInput = createEvent(this, "calciteInputInput", 7);
|
|
19383
19650
|
this.calciteInputChange = createEvent(this, "calciteInputChange", 7);
|
|
19384
19651
|
//--------------------------------------------------------------------------
|
|
@@ -19390,9 +19657,11 @@ class Input {
|
|
|
19390
19657
|
this.alignment = "start";
|
|
19391
19658
|
/** should the input autofocus */
|
|
19392
19659
|
this.autofocus = false;
|
|
19393
|
-
/**
|
|
19660
|
+
/**
|
|
19661
|
+
* optionally display a clear button that displays when field has a value
|
|
19394
19662
|
* shows by default for search, time, date
|
|
19395
|
-
* will not display for type="textarea"
|
|
19663
|
+
* will not display for type="textarea"
|
|
19664
|
+
*/
|
|
19396
19665
|
this.clearable = false;
|
|
19397
19666
|
/** is the input disabled */
|
|
19398
19667
|
this.disabled = false;
|
|
@@ -19402,6 +19671,7 @@ class Input {
|
|
|
19402
19671
|
this.hidden = false;
|
|
19403
19672
|
/**
|
|
19404
19673
|
* string to override English loading text
|
|
19674
|
+
*
|
|
19405
19675
|
* @default "Loading"
|
|
19406
19676
|
*/
|
|
19407
19677
|
this.intlLoading = TEXT$s.loading;
|
|
@@ -19413,6 +19683,7 @@ class Input {
|
|
|
19413
19683
|
this.locale = document.documentElement.lang || "en";
|
|
19414
19684
|
/**
|
|
19415
19685
|
* Toggles locale formatting for numbers.
|
|
19686
|
+
*
|
|
19416
19687
|
* @internal
|
|
19417
19688
|
*/
|
|
19418
19689
|
this.localeFormat = false;
|
|
@@ -19426,7 +19697,9 @@ class Input {
|
|
|
19426
19697
|
this.scale = "m";
|
|
19427
19698
|
/** specify the status of the input field, determines message and icons */
|
|
19428
19699
|
this.status = "idle";
|
|
19429
|
-
/**
|
|
19700
|
+
/**
|
|
19701
|
+
* @internal
|
|
19702
|
+
*/
|
|
19430
19703
|
this.editingEnabled = false;
|
|
19431
19704
|
/**
|
|
19432
19705
|
* specify the input type
|
|
@@ -19473,7 +19746,7 @@ class Input {
|
|
|
19473
19746
|
this.previousEmittedValue = this.value;
|
|
19474
19747
|
};
|
|
19475
19748
|
this.inputBlurHandler = () => {
|
|
19476
|
-
this.
|
|
19749
|
+
this.calciteInternalInputBlur.emit({
|
|
19477
19750
|
element: this.childEl,
|
|
19478
19751
|
value: this.value
|
|
19479
19752
|
});
|
|
@@ -19484,7 +19757,7 @@ class Input {
|
|
|
19484
19757
|
if (event.target !== slottedActionEl) {
|
|
19485
19758
|
this.setFocus();
|
|
19486
19759
|
}
|
|
19487
|
-
this.
|
|
19760
|
+
this.calciteInternalInputFocus.emit({
|
|
19488
19761
|
element: this.childEl,
|
|
19489
19762
|
value: this.value
|
|
19490
19763
|
});
|
|
@@ -19966,8 +20239,8 @@ class InputDatePicker {
|
|
|
19966
20239
|
this.calciteDatePickerChange = createEvent(this, "calciteDatePickerChange", 7);
|
|
19967
20240
|
this.calciteDatePickerRangeChange = createEvent(this, "calciteDatePickerRangeChange", 7);
|
|
19968
20241
|
this.calciteInputDatePickerChange = createEvent(this, "calciteInputDatePickerChange", 7);
|
|
19969
|
-
this.
|
|
19970
|
-
this.
|
|
20242
|
+
this.calciteInternalInputDatePickerOpen = createEvent(this, "calciteInternalInputDatePickerOpen", 7);
|
|
20243
|
+
this.calciteInternalInputDatePickerClose = createEvent(this, "calciteInternalInputDatePickerClose", 7);
|
|
19971
20244
|
//--------------------------------------------------------------------------
|
|
19972
20245
|
//
|
|
19973
20246
|
// Public Properties
|
|
@@ -19979,15 +20252,21 @@ class InputDatePicker {
|
|
|
19979
20252
|
this.disabled = false;
|
|
19980
20253
|
/** Expand or collapse when calendar does not have input */
|
|
19981
20254
|
this.active = false;
|
|
19982
|
-
/**
|
|
20255
|
+
/**
|
|
20256
|
+
* Localized string for "previous month" (used for aria label)
|
|
20257
|
+
*
|
|
19983
20258
|
* @default "Previous month"
|
|
19984
20259
|
*/
|
|
19985
20260
|
this.intlPrevMonth = TEXT$f.prevMonth;
|
|
19986
|
-
/**
|
|
20261
|
+
/**
|
|
20262
|
+
* Localized string for "next month" (used for aria label)
|
|
20263
|
+
*
|
|
19987
20264
|
* @default "Next month"
|
|
19988
20265
|
*/
|
|
19989
20266
|
this.intlNextMonth = TEXT$f.nextMonth;
|
|
19990
|
-
/**
|
|
20267
|
+
/**
|
|
20268
|
+
* Localized string for "year" (used for aria label)
|
|
20269
|
+
*
|
|
19991
20270
|
* @default "Year"
|
|
19992
20271
|
*/
|
|
19993
20272
|
this.intlYear = TEXT$f.year;
|
|
@@ -19997,6 +20276,7 @@ class InputDatePicker {
|
|
|
19997
20276
|
this.scale = "m";
|
|
19998
20277
|
/**
|
|
19999
20278
|
* Determines where the date-picker component will be positioned relative to the input.
|
|
20279
|
+
*
|
|
20000
20280
|
* @default "bottom-leading"
|
|
20001
20281
|
*/
|
|
20002
20282
|
this.placement = defaultMenuPlacement;
|
|
@@ -20030,8 +20310,8 @@ class InputDatePicker {
|
|
|
20030
20310
|
this.transitionEnd = (event) => {
|
|
20031
20311
|
if (event.propertyName === this.activeTransitionProp) {
|
|
20032
20312
|
this.active
|
|
20033
|
-
? this.
|
|
20034
|
-
: this.
|
|
20313
|
+
? this.calciteInternalInputDatePickerOpen.emit()
|
|
20314
|
+
: this.calciteInternalInputDatePickerClose.emit();
|
|
20035
20315
|
}
|
|
20036
20316
|
};
|
|
20037
20317
|
this.setStartInput = (el) => {
|
|
@@ -20083,6 +20363,8 @@ class InputDatePicker {
|
|
|
20083
20363
|
};
|
|
20084
20364
|
/**
|
|
20085
20365
|
* Event handler for when the selected date changes
|
|
20366
|
+
*
|
|
20367
|
+
* @param event
|
|
20086
20368
|
*/
|
|
20087
20369
|
this.handleDateChange = (event) => {
|
|
20088
20370
|
if (this.range) {
|
|
@@ -20241,7 +20523,7 @@ class InputDatePicker {
|
|
|
20241
20523
|
: null;
|
|
20242
20524
|
const formattedEndDate = endDate ? endDate.toLocaleDateString(this.locale) : "";
|
|
20243
20525
|
const formattedDate = date ? date.toLocaleDateString(this.locale) : "";
|
|
20244
|
-
return (hAsync(Host, { onBlur: this.deactivate, onKeyDown: this.keyDownHandler, onKeyUp: this.keyUpHandler, role: "application" }, this.localeData && (hAsync("div", { "aria-expanded": toAriaBoolean(this.active), class: "input-container", role: "application" }, hAsync("div", { class: "input-wrapper", ref: this.setStartWrapper }, hAsync("calcite-input", { class: `input ${this.layout === "vertical" && this.range ? `no-bottom-border` : ``}`, disabled: disabled, icon: "calendar", label: getLabelText(this), "number-button-type": "none",
|
|
20526
|
+
return (hAsync(Host, { onBlur: this.deactivate, onKeyDown: this.keyDownHandler, onKeyUp: this.keyUpHandler, role: "application" }, this.localeData && (hAsync("div", { "aria-expanded": toAriaBoolean(this.active), class: "input-container", role: "application" }, hAsync("div", { class: "input-wrapper", ref: this.setStartWrapper }, hAsync("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, ref: this.setStartInput, scale: this.scale, type: "text", value: formattedDate })), hAsync("div", { "aria-hidden": toAriaBoolean(!this.active), class: {
|
|
20245
20527
|
"menu-container": true,
|
|
20246
20528
|
"menu-container--active": this.active
|
|
20247
20529
|
}, ref: this.setMenuEl }, hAsync("div", { class: {
|
|
@@ -20252,7 +20534,7 @@ class InputDatePicker {
|
|
|
20252
20534
|
}, onTransitionEnd: this.transitionEnd }, hAsync("calcite-date-picker", { activeRange: this.focusedInput, endAsDate: this.endAsDate, headingLevel: this.headingLevel, intlNextMonth: this.intlNextMonth, intlPrevMonth: this.intlPrevMonth, intlYear: this.intlYear, locale: this.locale, max: this.max, maxAsDate: this.maxAsDate, min: this.min, minAsDate: this.minAsDate, onCalciteDatePickerChange: this.handleDateChange, onCalciteDatePickerRangeChange: this.handleDateRangeChange, proximitySelectionDisabled: this.proximitySelectionDisabled, range: this.range, scale: this.scale, startAsDate: this.startAsDate, tabIndex: 0, valueAsDate: this.valueAsDate }))), this.range && this.layout === "horizontal" && (hAsync("div", { class: "horizontal-arrow-container" }, hAsync("calcite-icon", { flipRtl: true, icon: "arrow-right", scale: "s" }))), this.range && this.layout === "vertical" && this.scale !== "s" && (hAsync("div", { class: "vertical-arrow-container" }, hAsync("calcite-icon", { icon: "arrow-down", scale: "s" }))), this.range && (hAsync("div", { class: "input-wrapper", ref: this.setEndWrapper }, hAsync("calcite-input", { class: {
|
|
20253
20535
|
input: true,
|
|
20254
20536
|
"border-top-color-one": this.layout === "vertical" && this.range
|
|
20255
|
-
}, disabled: disabled, icon: "calendar", "number-button-type": "none",
|
|
20537
|
+
}, disabled: disabled, icon: "calendar", "number-button-type": "none", onCalciteInputInput: this.inputInput, onCalciteInternalInputBlur: this.inputBlur, onCalciteInternalInputFocus: this.endInputFocus, placeholder: (_b = this.localeData) === null || _b === void 0 ? void 0 : _b.placeholder, ref: this.setEndInput, scale: this.scale, type: "text", value: formattedEndDate }))))), hAsync(HiddenFormInputSlot, { component: this })));
|
|
20256
20538
|
}
|
|
20257
20539
|
setReferenceEl() {
|
|
20258
20540
|
const { focusedInput, layout, endWrapper, startWrapper } = this;
|
|
@@ -20338,6 +20620,8 @@ class InputDatePicker {
|
|
|
20338
20620
|
}
|
|
20339
20621
|
/**
|
|
20340
20622
|
* If inputted string is a valid date, update value/active
|
|
20623
|
+
*
|
|
20624
|
+
* @param value
|
|
20341
20625
|
*/
|
|
20342
20626
|
input(value) {
|
|
20343
20627
|
const date = this.getDateFromInput(value);
|
|
@@ -20380,6 +20664,8 @@ class InputDatePicker {
|
|
|
20380
20664
|
}
|
|
20381
20665
|
/**
|
|
20382
20666
|
* Clean up invalid date from input on blur
|
|
20667
|
+
*
|
|
20668
|
+
* @param target
|
|
20383
20669
|
*/
|
|
20384
20670
|
blur(target) {
|
|
20385
20671
|
const { locale, focusedInput, endAsDate, range, startAsDate, valueAsDate } = this;
|
|
@@ -20413,6 +20699,8 @@ class InputDatePicker {
|
|
|
20413
20699
|
/**
|
|
20414
20700
|
* Find a date from input string
|
|
20415
20701
|
* return false if date is invalid, or out of range
|
|
20702
|
+
*
|
|
20703
|
+
* @param value
|
|
20416
20704
|
*/
|
|
20417
20705
|
getDateFromInput(value) {
|
|
20418
20706
|
if (!this.localeData) {
|
|
@@ -20762,6 +21050,7 @@ class InputTimePicker {
|
|
|
20762
21050
|
this.disabled = false;
|
|
20763
21051
|
/**
|
|
20764
21052
|
* BCP 47 language tag for desired language and country format
|
|
21053
|
+
*
|
|
20765
21054
|
* @internal
|
|
20766
21055
|
*/
|
|
20767
21056
|
this.locale = document.documentElement.lang || navigator.language || "en";
|
|
@@ -20775,6 +21064,7 @@ class InputTimePicker {
|
|
|
20775
21064
|
this.scale = "m";
|
|
20776
21065
|
/**
|
|
20777
21066
|
* Determines where the popover will be positioned relative to the input.
|
|
21067
|
+
*
|
|
20778
21068
|
* @see [PopperPlacement](https://github.com/Esri/calcite-components/blob/master/src/utils/popper.ts#L25)
|
|
20779
21069
|
*/
|
|
20780
21070
|
this.placement = "auto";
|
|
@@ -20791,14 +21081,15 @@ class InputTimePicker {
|
|
|
20791
21081
|
// Event Listeners
|
|
20792
21082
|
//
|
|
20793
21083
|
//--------------------------------------------------------------------------
|
|
20794
|
-
this.
|
|
21084
|
+
this.calciteInternalInputBlurHandler = () => {
|
|
20795
21085
|
this.active = false;
|
|
20796
21086
|
const shouldIncludeSeconds = this.shouldIncludeSeconds();
|
|
20797
21087
|
const localizedInputValue = localizeTimeString(this.calciteInputEl.value, this.locale, shouldIncludeSeconds);
|
|
20798
21088
|
this.setInputValue(localizedInputValue || localizeTimeString(this.value, this.locale, shouldIncludeSeconds));
|
|
20799
21089
|
};
|
|
20800
|
-
this.
|
|
21090
|
+
this.calciteInternalInputFocusHandler = (event) => {
|
|
20801
21091
|
this.active = true;
|
|
21092
|
+
event.stopPropagation();
|
|
20802
21093
|
};
|
|
20803
21094
|
this.calciteInputInputHandler = (event) => {
|
|
20804
21095
|
const target = event.target;
|
|
@@ -20809,6 +21100,7 @@ class InputTimePicker {
|
|
|
20809
21100
|
const target = event.target;
|
|
20810
21101
|
const value = target.value;
|
|
20811
21102
|
this.setValue({ value, origin: "time-picker" });
|
|
21103
|
+
event.stopPropagation();
|
|
20812
21104
|
};
|
|
20813
21105
|
// --------------------------------------------------------------------------
|
|
20814
21106
|
//
|
|
@@ -20966,7 +21258,7 @@ class InputTimePicker {
|
|
|
20966
21258
|
// --------------------------------------------------------------------------
|
|
20967
21259
|
render() {
|
|
20968
21260
|
const popoverId = `${this.referenceElementId}-popover`;
|
|
20969
|
-
return (hAsync(Host, { onKeyDown: this.keyDownHandler }, hAsync("div", { "aria-controls": popoverId, "aria-haspopup": "dialog", "aria-label": this.name, "aria-owns": popoverId, id: this.referenceElementId, role: "combobox" }, hAsync("calcite-input", { disabled: this.disabled, icon: "clock", label: getLabelText(this),
|
|
21261
|
+
return (hAsync(Host, { onKeyDown: this.keyDownHandler }, hAsync("div", { "aria-controls": popoverId, "aria-haspopup": "dialog", "aria-label": this.name, "aria-owns": popoverId, id: this.referenceElementId, role: "combobox" }, hAsync("calcite-input", { disabled: this.disabled, icon: "clock", label: getLabelText(this), onCalciteInputInput: this.calciteInputInputHandler, onCalciteInternalInputBlur: this.calciteInternalInputBlurHandler, onCalciteInternalInputFocus: this.calciteInternalInputFocusHandler, ref: this.setCalciteInputEl, scale: this.scale, step: this.step })), hAsync("calcite-popover", { id: popoverId, label: "Time Picker", open: this.active, placement: this.placement, ref: this.setCalcitePopoverEl, referenceElement: this.referenceElementId }, hAsync("calcite-time-picker", { intlHour: this.intlHour, intlHourDown: this.intlHourDown, intlHourUp: this.intlHourUp, intlMeridiem: this.intlMeridiem, intlMeridiemDown: this.intlMeridiemDown, intlMeridiemUp: this.intlMeridiemUp, intlMinute: this.intlMinute, intlMinuteDown: this.intlMinuteDown, intlMinuteUp: this.intlMinuteUp, intlSecond: this.intlSecond, intlSecondDown: this.intlSecondDown, intlSecondUp: this.intlSecondUp, lang: this.locale, onCalciteInternalTimePickerChange: this.timePickerChangeHandler, ref: this.setCalciteTimePickerEl, scale: this.scale, step: this.step, value: this.value })), hAsync(HiddenFormInputSlot, { component: this })));
|
|
20970
21262
|
}
|
|
20971
21263
|
get el() { return getElement(this); }
|
|
20972
21264
|
static get watchers() { return {
|
|
@@ -21005,7 +21297,7 @@ class InputTimePicker {
|
|
|
21005
21297
|
"setFocus": [64],
|
|
21006
21298
|
"reposition": [64]
|
|
21007
21299
|
},
|
|
21008
|
-
"$listeners$": [[0, "click", "clickHandler"], [0, "keyup", "keyUpHandler"], [0, "
|
|
21300
|
+
"$listeners$": [[0, "click", "clickHandler"], [0, "keyup", "keyUpHandler"], [0, "calciteInternalTimePickerBlur", "timePickerBlurHandler"], [0, "calciteInternalTimePickerFocus", "timePickerFocusHandler"]],
|
|
21009
21301
|
"$lazyBundleId$": "-",
|
|
21010
21302
|
"$attrsToReflect$": [["active", "active"], ["disabled", "disabled"], ["required", "required"], ["scale", "scale"], ["placement", "placement"]]
|
|
21011
21303
|
}; }
|
|
@@ -21033,6 +21325,7 @@ class Label {
|
|
|
21033
21325
|
this.alignment = "start";
|
|
21034
21326
|
/**
|
|
21035
21327
|
* specify the status of the label and any child input / input messages
|
|
21328
|
+
*
|
|
21036
21329
|
* @deprecated set directly on child element instead
|
|
21037
21330
|
*/
|
|
21038
21331
|
this.status = "idle";
|
|
@@ -21109,7 +21402,8 @@ class Link {
|
|
|
21109
21402
|
//--------------------------------------------------------------------------
|
|
21110
21403
|
/** is the link disabled */
|
|
21111
21404
|
this.disabled = false;
|
|
21112
|
-
/**
|
|
21405
|
+
/**
|
|
21406
|
+
* Prompts the user to save the linked URL instead of navigating to it. Can be used with or without a value:
|
|
21113
21407
|
* Without a value, the browser will suggest a filename/extension
|
|
21114
21408
|
* See: https://developer.mozilla.org/en-US/docs/Web/HTML/Element/a#attr-download
|
|
21115
21409
|
*/
|
|
@@ -21197,7 +21491,7 @@ class List$1 {
|
|
|
21197
21491
|
//
|
|
21198
21492
|
// --------------------------------------------------------------------------
|
|
21199
21493
|
/**
|
|
21200
|
-
* When true,
|
|
21494
|
+
* When true, prevents user interaction.
|
|
21201
21495
|
*/
|
|
21202
21496
|
this.disabled = false;
|
|
21203
21497
|
}
|
|
@@ -21286,7 +21580,7 @@ class ListItem {
|
|
|
21286
21580
|
*/
|
|
21287
21581
|
this.nonInteractive = false;
|
|
21288
21582
|
/**
|
|
21289
|
-
* When true,
|
|
21583
|
+
* When true, prevents user interaction.
|
|
21290
21584
|
*/
|
|
21291
21585
|
this.disabled = false;
|
|
21292
21586
|
}
|
|
@@ -21428,17 +21722,17 @@ class Loader {
|
|
|
21428
21722
|
// Properties
|
|
21429
21723
|
//
|
|
21430
21724
|
//--------------------------------------------------------------------------
|
|
21431
|
-
/**
|
|
21725
|
+
/** When true, the loader is active. */
|
|
21432
21726
|
this.active = false;
|
|
21433
|
-
/**
|
|
21727
|
+
/** When true, displays smaller and appears to the left of the text. */
|
|
21434
21728
|
this.inline = false;
|
|
21435
|
-
/**
|
|
21729
|
+
/** Specify the scale of the loader. */
|
|
21436
21730
|
this.scale = "m";
|
|
21437
|
-
/**
|
|
21731
|
+
/** Valid only for determinate indicators. Percent complete of 100. */
|
|
21438
21732
|
this.value = 0;
|
|
21439
|
-
/** Text
|
|
21733
|
+
/** Text that displays under the loading indicator. */
|
|
21440
21734
|
this.text = "";
|
|
21441
|
-
/**
|
|
21735
|
+
/** Disables spacing around the loader. */
|
|
21442
21736
|
this.noPadding = false;
|
|
21443
21737
|
}
|
|
21444
21738
|
//--------------------------------------------------------------------------
|
|
@@ -21475,6 +21769,8 @@ class Loader {
|
|
|
21475
21769
|
//--------------------------------------------------------------------------
|
|
21476
21770
|
/**
|
|
21477
21771
|
* Return the proper sizes based on the scale property
|
|
21772
|
+
*
|
|
21773
|
+
* @param scale
|
|
21478
21774
|
*/
|
|
21479
21775
|
getSize(scale) {
|
|
21480
21776
|
return {
|
|
@@ -21811,6 +22107,8 @@ class Modal {
|
|
|
21811
22107
|
//--------------------------------------------------------------------------
|
|
21812
22108
|
/**
|
|
21813
22109
|
* Focus first interactive element
|
|
22110
|
+
*
|
|
22111
|
+
* @param el
|
|
21814
22112
|
* @deprecated use `setFocus` instead.
|
|
21815
22113
|
*/
|
|
21816
22114
|
async focusElement(el) {
|
|
@@ -21824,12 +22122,19 @@ class Modal {
|
|
|
21824
22122
|
*
|
|
21825
22123
|
* By default, will try to focus on any focusable content. If there is none, it will focus on the close button.
|
|
21826
22124
|
* If you want to focus on the close button, you can use the `close-button` focus ID.
|
|
22125
|
+
*
|
|
22126
|
+
* @param focusId
|
|
21827
22127
|
*/
|
|
21828
22128
|
async setFocus(focusId) {
|
|
21829
22129
|
const closeButton = this.closeButtonEl;
|
|
21830
22130
|
return focusElement(focusId === "close-button" ? closeButton : getFocusableElements(this.el)[0] || closeButton);
|
|
21831
22131
|
}
|
|
21832
|
-
/**
|
|
22132
|
+
/**
|
|
22133
|
+
* Set the scroll top of the modal content
|
|
22134
|
+
*
|
|
22135
|
+
* @param top
|
|
22136
|
+
* @param left
|
|
22137
|
+
*/
|
|
21833
22138
|
async scrollContent(top = 0, left = 0) {
|
|
21834
22139
|
if (this.modalContent) {
|
|
21835
22140
|
if (this.modalContent.scrollTo) {
|
|
@@ -21918,7 +22223,8 @@ const CSS$m = {
|
|
|
21918
22223
|
|
|
21919
22224
|
const noticeCss = "@-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*/.sc-calcite-notice: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*/.calcite-animate.sc-calcite-notice{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*/.calcite-animate__in.sc-calcite-notice{-webkit-animation-name:in;animation-name:in}/*!@.calcite-animate__in-down*/.calcite-animate__in-down.sc-calcite-notice{-webkit-animation-name:in-down;animation-name:in-down}/*!@.calcite-animate__in-up*/.calcite-animate__in-up.sc-calcite-notice{-webkit-animation-name:in-up;animation-name:in-up}/*!@.calcite-animate__in-scale*/.calcite-animate__in-scale.sc-calcite-notice{-webkit-animation-name:in-scale;animation-name:in-scale}/*!@:root*/.sc-calcite-notice:root{--calcite-popper-transition:var(--calcite-animation-timing)}/*!@:host([hidden])*/[hidden].sc-calcite-notice-h{display:none}/*!@:host([scale=s])*/[scale=s].sc-calcite-notice-h{--calcite-notice-spacing-token-small:0.5rem;--calcite-notice-spacing-token-large:0.75rem}/*!@:host([scale=s]) .container slot[name=title]::slotted(*), :host([scale=s]) .container *::slotted([slot=title])*/.sc-calcite-notice-h[scale=s] .container slot[name=title].sc-calcite-notice-s>*,.sc-calcite-notice-h[scale=s] .container *.sc-calcite-notice-s>[slot=title]{margin-top:0.125rem;margin-bottom:0.125rem;font-size:var(--calcite-font-size--1);line-height:1.375}/*!@:host([scale=s]) .container slot[name=message]::slotted(*), :host([scale=s]) .container *::slotted([slot=message])*/.sc-calcite-notice-h[scale=s] .container slot[name=message].sc-calcite-notice-s>*,.sc-calcite-notice-h[scale=s] .container *.sc-calcite-notice-s>[slot=message]{margin-top:0.125rem;margin-bottom:0.125rem;font-size:var(--calcite-font-size--2);line-height:1.375}/*!@:host([scale=s]) ::slotted(calcite-link)*/.sc-calcite-notice-h[scale=s] .sc-calcite-notice-s>calcite-link{margin-top:0.125rem;margin-bottom:0.125rem;font-size:var(--calcite-font-size--2);line-height:1.375}/*!@:host([scale=s]) .notice-close*/[scale=s].sc-calcite-notice-h .notice-close.sc-calcite-notice{padding:0.5rem}/*!@:host([scale=m])*/[scale=m].sc-calcite-notice-h{--calcite-notice-spacing-token-small:0.75rem;--calcite-notice-spacing-token-large:1rem}/*!@:host([scale=m]) .container slot[name=title]::slotted(*), :host([scale=m]) .container *::slotted([slot=title])*/.sc-calcite-notice-h[scale=m] .container slot[name=title].sc-calcite-notice-s>*,.sc-calcite-notice-h[scale=m] .container *.sc-calcite-notice-s>[slot=title]{margin-top:0.125rem;margin-bottom:0.125rem;font-size:var(--calcite-font-size-0);line-height:1.375}/*!@:host([scale=m]) .container slot[name=message]::slotted(*), :host([scale=m]) .container *::slotted([slot=message])*/.sc-calcite-notice-h[scale=m] .container slot[name=message].sc-calcite-notice-s>*,.sc-calcite-notice-h[scale=m] .container *.sc-calcite-notice-s>[slot=message]{margin-top:0.125rem;margin-bottom:0.125rem;font-size:var(--calcite-font-size--1);line-height:1.375}/*!@:host([scale=m]) ::slotted(calcite-link)*/.sc-calcite-notice-h[scale=m] .sc-calcite-notice-s>calcite-link{margin-top:0.125rem;margin-bottom:0.125rem;font-size:var(--calcite-font-size--1);line-height:1.375}/*!@:host([scale=l])*/[scale=l].sc-calcite-notice-h{--calcite-notice-spacing-token-small:1rem;--calcite-notice-spacing-token-large:1.25rem}/*!@:host([scale=l]) .container slot[name=title]::slotted(*), :host([scale=l]) .container *::slotted([slot=title])*/.sc-calcite-notice-h[scale=l] .container slot[name=title].sc-calcite-notice-s>*,.sc-calcite-notice-h[scale=l] .container *.sc-calcite-notice-s>[slot=title]{margin-top:0.125rem;margin-bottom:0.125rem;font-size:var(--calcite-font-size-1);line-height:1.375}/*!@:host([scale=l]) .container slot[name=message]::slotted(*), :host([scale=l]) .container *::slotted([slot=message])*/.sc-calcite-notice-h[scale=l] .container slot[name=message].sc-calcite-notice-s>*,.sc-calcite-notice-h[scale=l] .container *.sc-calcite-notice-s>[slot=message]{margin-top:0.125rem;margin-bottom:0.125rem;font-size:var(--calcite-font-size-0);line-height:1.375}/*!@:host([scale=l]) ::slotted(calcite-link)*/.sc-calcite-notice-h[scale=l] .sc-calcite-notice-s>calcite-link{margin-top:0.125rem;margin-bottom:0.125rem;font-size:var(--calcite-font-size-0);line-height:1.375}/*!@:host([width=auto])*/[width=auto].sc-calcite-notice-h{--calcite-notice-width:auto}/*!@:host([width=half])*/[width=half].sc-calcite-notice-h{--calcite-notice-width:50%}/*!@:host([width=full])*/[width=full].sc-calcite-notice-h{--calcite-notice-width:100%}/*!@:host*/.sc-calcite-notice-h{margin-left:auto;margin-right:auto;display:none;max-width:100%;-ms-flex-align:center;align-items:center;width:var(--calcite-notice-width)}/*!@.container*/.container.sc-calcite-notice{pointer-events:none;margin-top:0px;margin-bottom:0px;-webkit-box-sizing:border-box;box-sizing:border-box;display:none;width:100%;background-color:var(--calcite-ui-foreground-1);opacity:0;max-height:0;text-align:start;-webkit-transition:var(--calcite-animation-timing);transition:var(--calcite-animation-timing);-webkit-border-start:0px solid;border-inline-start:0px solid;-webkit-box-shadow:0 0 0 0 transparent;box-shadow:0 0 0 0 transparent}/*!@.notice-close*/.notice-close.sc-calcite-notice{outline-offset:0;outline-color:transparent;-webkit-transition:outline-offset 100ms ease-in-out, outline-color 100ms ease-in-out;transition:outline-offset 100ms ease-in-out, outline-color 100ms ease-in-out}/*!@.notice-close:focus*/.notice-close.sc-calcite-notice:focus{outline:2px solid var(--calcite-ui-brand);outline-offset:-2px}/*!@:host*/.sc-calcite-notice-h{display:-ms-flexbox;display:flex}/*!@:host([active]) .container*/[active].sc-calcite-notice-h .container.sc-calcite-notice{pointer-events:auto;display:-ms-flexbox;display:flex;max-height:100%;-ms-flex-align:center;align-items:center;border-width:2px;opacity:1;--tw-shadow:0 4px 8px -1px rgba(0, 0, 0, 0.08), 0 2px 4px -1px rgba(0, 0, 0, 0.04);--tw-shadow-colored:0 4px 8px -1px var(--tw-shadow-color), 0 2px 4px -1px 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)}/*!@.container slot[name=title]::slotted(*), .container *::slotted([slot=title])*/.container slot[name=title].sc-calcite-notice-s>*,.container *.sc-calcite-notice-s>[slot=title]{margin:0px;font-weight:var(--calcite-font-weight-medium);color:var(--calcite-ui-text-1)}/*!@.container slot[name=message]::slotted(*), .container *::slotted([slot=message])*/.container slot[name=message].sc-calcite-notice-s>*,.container *.sc-calcite-notice-s>[slot=message]{margin:0px;display:inline;font-weight:var(--calcite-font-weight-normal);color:var(--calcite-ui-text-2);-webkit-margin-end:var(--calcite-notice-spacing-token-small);margin-inline-end:var(--calcite-notice-spacing-token-small)}/*!@.notice-content*/.notice-content.sc-calcite-notice{-webkit-box-sizing:border-box;box-sizing:border-box;-webkit-transition-property:all;transition-property:all;-webkit-transition-duration:var(--calcite-animation-timing);transition-duration:var(--calcite-animation-timing);-webkit-transition-timing-function:ease-in-out;transition-timing-function:ease-in-out;-webkit-transition-delay:0s;transition-delay:0s;padding:var(--calcite-notice-spacing-token-small) var(--calcite-notice-spacing-token-large);-ms-flex:0 0 auto;flex:0 0 auto;display:-ms-flexbox;display:flex;min-width:0px;-ms-flex-direction:column;flex-direction:column;overflow-wrap:break-word;-ms-flex:1 1 0px;flex:1 1 0;padding-block:var(--calcite-notice-spacing-token-small);padding-inline:0 var(--calcite-notice-spacing-token-small)}/*!@.notice-content:first-of-type:not(:only-child)*/.notice-content.sc-calcite-notice:first-of-type:not(:only-child){-webkit-padding-start:var(--calcite-notice-spacing-token-large);padding-inline-start:var(--calcite-notice-spacing-token-large)}/*!@.notice-content:only-of-type*/.notice-content.sc-calcite-notice:only-of-type{padding:var(--calcite-notice-spacing-token-small) var(--calcite-notice-spacing-token-large)}/*!@.notice-icon*/.notice-icon.sc-calcite-notice{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-webkit-box-sizing:border-box;box-sizing:border-box;-webkit-transition-property:all;transition-property:all;-webkit-transition-duration:var(--calcite-animation-timing);transition-duration:var(--calcite-animation-timing);-webkit-transition-timing-function:ease-in-out;transition-timing-function:ease-in-out;-webkit-transition-delay:0s;transition-delay:0s;padding:var(--calcite-notice-spacing-token-small) var(--calcite-notice-spacing-token-large);-ms-flex:0 0 auto;flex:0 0 auto}/*!@.notice-close*/.notice-close.sc-calcite-notice{display:-ms-flexbox;display:flex;cursor:pointer;-ms-flex-align:center;align-items:center;-ms-flex-item-align:stretch;align-self:stretch;border-style:none;background-color:transparent;color:var(--calcite-ui-text-3);outline:2px solid transparent;outline-offset:2px;-webkit-box-sizing:border-box;box-sizing:border-box;-webkit-transition-property:all;transition-property:all;-webkit-transition-duration:var(--calcite-animation-timing);transition-duration:var(--calcite-animation-timing);-webkit-transition-timing-function:ease-in-out;transition-timing-function:ease-in-out;-webkit-transition-delay:0s;transition-delay:0s;padding:var(--calcite-notice-spacing-token-small) var(--calcite-notice-spacing-token-large);-ms-flex:0 0 auto;flex:0 0 auto;-webkit-appearance:none}/*!@.notice-close:hover, .notice-close:focus*/.notice-close.sc-calcite-notice:hover,.notice-close.sc-calcite-notice:focus{background-color:var(--calcite-ui-foreground-2);color:var(--calcite-ui-text-1)}/*!@.notice-close:active*/.notice-close.sc-calcite-notice:active{background-color:var(--calcite-ui-foreground-3)}/*!@.actions-end*/.actions-end.sc-calcite-notice{display:-ms-flexbox;display:flex;-ms-flex-item-align:stretch;align-self:stretch}/*!@:host([color=blue]) .container*/[color=blue].sc-calcite-notice-h .container.sc-calcite-notice{border-color:var(--calcite-ui-brand)}/*!@:host([color=blue]) .container .notice-icon*/[color=blue].sc-calcite-notice-h .container.sc-calcite-notice .notice-icon.sc-calcite-notice{color:var(--calcite-ui-brand)}/*!@:host([color=red]) .container*/[color=red].sc-calcite-notice-h .container.sc-calcite-notice{border-color:var(--calcite-ui-danger)}/*!@:host([color=red]) .container .notice-icon*/[color=red].sc-calcite-notice-h .container.sc-calcite-notice .notice-icon.sc-calcite-notice{color:var(--calcite-ui-danger)}/*!@:host([color=yellow]) .container*/[color=yellow].sc-calcite-notice-h .container.sc-calcite-notice{border-color:var(--calcite-ui-warning)}/*!@:host([color=yellow]) .container .notice-icon*/[color=yellow].sc-calcite-notice-h .container.sc-calcite-notice .notice-icon.sc-calcite-notice{color:var(--calcite-ui-warning)}/*!@:host([color=green]) .container*/[color=green].sc-calcite-notice-h .container.sc-calcite-notice{border-color:var(--calcite-ui-success)}/*!@:host([color=green]) .container .notice-icon*/[color=green].sc-calcite-notice-h .container.sc-calcite-notice .notice-icon.sc-calcite-notice{color:var(--calcite-ui-success)}";
|
|
21920
22225
|
|
|
21921
|
-
/**
|
|
22226
|
+
/**
|
|
22227
|
+
* Notices are intended to be used to present users with important-but-not-crucial contextual tips or copy. Because
|
|
21922
22228
|
* notices are displayed inline, a common use case is displaying them on page-load to present users with short hints or contextual copy.
|
|
21923
22229
|
* They are optionally dismissible - useful for keeping track of whether or not a user has dismissed the notice. You can also choose not
|
|
21924
22230
|
* to display a notice on page load and set the "active" attribute as needed to contextually provide inline messaging to users.
|
|
@@ -21945,7 +22251,9 @@ class Notice {
|
|
|
21945
22251
|
this.color = "blue";
|
|
21946
22252
|
/** Optionally show a button the user can click to dismiss the notice */
|
|
21947
22253
|
this.dismissible = false;
|
|
21948
|
-
/**
|
|
22254
|
+
/**
|
|
22255
|
+
* String for the close button.
|
|
22256
|
+
*
|
|
21949
22257
|
* @default "Close"
|
|
21950
22258
|
*/
|
|
21951
22259
|
this.intlClose = TEXT$a.close;
|
|
@@ -22034,7 +22342,7 @@ const optionCss = "@-webkit-keyframes in{0%{opacity:0}100%{opacity:1}}@keyframes
|
|
|
22034
22342
|
class Option {
|
|
22035
22343
|
constructor(hostRef) {
|
|
22036
22344
|
registerInstance(this, hostRef);
|
|
22037
|
-
this.
|
|
22345
|
+
this.calciteInternalOptionChange = createEvent(this, "calciteInternalOptionChange", 7);
|
|
22038
22346
|
//--------------------------------------------------------------------------
|
|
22039
22347
|
//
|
|
22040
22348
|
// Properties
|
|
@@ -22050,7 +22358,7 @@ class Option {
|
|
|
22050
22358
|
if (propName === "label" || propName === "value") {
|
|
22051
22359
|
this.ensureTextContentDependentProps();
|
|
22052
22360
|
}
|
|
22053
|
-
this.
|
|
22361
|
+
this.calciteInternalOptionChange.emit();
|
|
22054
22362
|
}
|
|
22055
22363
|
//--------------------------------------------------------------------------
|
|
22056
22364
|
//
|
|
@@ -22126,7 +22434,7 @@ const optionGroupCss = "@-webkit-keyframes in{0%{opacity:0}100%{opacity:1}}@keyf
|
|
|
22126
22434
|
class OptionGroup {
|
|
22127
22435
|
constructor(hostRef) {
|
|
22128
22436
|
registerInstance(this, hostRef);
|
|
22129
|
-
this.
|
|
22437
|
+
this.calciteInternalOptionGroupChange = createEvent(this, "calciteInternalOptionGroupChange", 7);
|
|
22130
22438
|
//--------------------------------------------------------------------------
|
|
22131
22439
|
//
|
|
22132
22440
|
// Properties
|
|
@@ -22138,7 +22446,7 @@ class OptionGroup {
|
|
|
22138
22446
|
this.disabled = false;
|
|
22139
22447
|
}
|
|
22140
22448
|
handlePropChange() {
|
|
22141
|
-
this.
|
|
22449
|
+
this.calciteInternalOptionGroupChange.emit();
|
|
22142
22450
|
}
|
|
22143
22451
|
//--------------------------------------------------------------------------
|
|
22144
22452
|
//
|
|
@@ -22200,11 +22508,15 @@ class Pagination {
|
|
|
22200
22508
|
this.start = 1;
|
|
22201
22509
|
/** total number of items */
|
|
22202
22510
|
this.total = 0;
|
|
22203
|
-
/**
|
|
22511
|
+
/**
|
|
22512
|
+
* Used as an accessible label (aria-label) for the next button
|
|
22513
|
+
*
|
|
22204
22514
|
* @default "Next"
|
|
22205
22515
|
*/
|
|
22206
22516
|
this.textLabelNext = TEXT$9.nextLabel;
|
|
22207
|
-
/**
|
|
22517
|
+
/**
|
|
22518
|
+
* Used as an accessible label (aria-label) of the previous button
|
|
22519
|
+
*
|
|
22208
22520
|
* @default "Previous"
|
|
22209
22521
|
*/
|
|
22210
22522
|
this.textLabelPrevious = TEXT$9.previousLabel;
|
|
@@ -22518,7 +22830,11 @@ class Panel {
|
|
|
22518
22830
|
// Methods
|
|
22519
22831
|
//
|
|
22520
22832
|
// --------------------------------------------------------------------------
|
|
22521
|
-
/**
|
|
22833
|
+
/**
|
|
22834
|
+
* Sets focus on the component.
|
|
22835
|
+
*
|
|
22836
|
+
* @param focusId
|
|
22837
|
+
*/
|
|
22522
22838
|
async setFocus(focusId) {
|
|
22523
22839
|
var _a, _b, _c;
|
|
22524
22840
|
if (focusId === "dismiss-button") {
|
|
@@ -22531,7 +22847,8 @@ class Panel {
|
|
|
22531
22847
|
}
|
|
22532
22848
|
(_c = this.containerEl) === null || _c === void 0 ? void 0 : _c.focus();
|
|
22533
22849
|
}
|
|
22534
|
-
/**
|
|
22850
|
+
/**
|
|
22851
|
+
* Scrolls panel content to a particular set of coordinates.
|
|
22535
22852
|
*
|
|
22536
22853
|
* ```
|
|
22537
22854
|
* myCalcitePanel.scrollContentTo({
|
|
@@ -22540,6 +22857,8 @@ class Panel {
|
|
|
22540
22857
|
* behavior: "auto" // Specifies whether the scrolling should animate smoothly (smooth), or happen instantly in a single jump (auto, the default value).
|
|
22541
22858
|
* });
|
|
22542
22859
|
* ```
|
|
22860
|
+
*
|
|
22861
|
+
* @param options
|
|
22543
22862
|
*/
|
|
22544
22863
|
async scrollContentTo(options) {
|
|
22545
22864
|
var _a;
|
|
@@ -22737,8 +23056,7 @@ function calciteListItemChangeHandler(event) {
|
|
|
22737
23056
|
this.lastSelectedItem = item;
|
|
22738
23057
|
this.emitCalciteListChange();
|
|
22739
23058
|
}
|
|
22740
|
-
function
|
|
22741
|
-
event.stopPropagation();
|
|
23059
|
+
function calciteInternalListItemValueChangeHandler(event) {
|
|
22742
23060
|
const oldValue = event.detail.oldValue;
|
|
22743
23061
|
const selectedValues = this.selectedValues;
|
|
22744
23062
|
if (selectedValues.has(oldValue)) {
|
|
@@ -22746,6 +23064,7 @@ function calciteListItemValueChangeHandler(event) {
|
|
|
22746
23064
|
selectedValues.delete(oldValue);
|
|
22747
23065
|
selectedValues.set(event.detail.newValue, item);
|
|
22748
23066
|
}
|
|
23067
|
+
event.stopPropagation();
|
|
22749
23068
|
}
|
|
22750
23069
|
// --------------------------------------------------------------------------
|
|
22751
23070
|
//
|
|
@@ -23069,12 +23388,13 @@ class PickList {
|
|
|
23069
23388
|
calciteListItemChangeHandler(event) {
|
|
23070
23389
|
calciteListItemChangeHandler.call(this, event);
|
|
23071
23390
|
}
|
|
23072
|
-
|
|
23391
|
+
calciteInternalListItemPropsChangeHandler(event) {
|
|
23073
23392
|
event.stopPropagation();
|
|
23074
23393
|
this.setUpFilter();
|
|
23075
23394
|
}
|
|
23076
|
-
|
|
23077
|
-
|
|
23395
|
+
calciteInternalListItemValueChangeHandler(event) {
|
|
23396
|
+
calciteInternalListItemValueChangeHandler.call(this, event);
|
|
23397
|
+
event.stopPropagation();
|
|
23078
23398
|
}
|
|
23079
23399
|
calciteListFocusOutHandler(event) {
|
|
23080
23400
|
calciteListFocusOutHandler.call(this, event);
|
|
@@ -23101,7 +23421,11 @@ class PickList {
|
|
|
23101
23421
|
async getSelectedItems() {
|
|
23102
23422
|
return this.selectedValues;
|
|
23103
23423
|
}
|
|
23104
|
-
/**
|
|
23424
|
+
/**
|
|
23425
|
+
* Sets focus on the component.
|
|
23426
|
+
*
|
|
23427
|
+
* @param focusId
|
|
23428
|
+
*/
|
|
23105
23429
|
async setFocus(focusId) {
|
|
23106
23430
|
return setFocus.call(this, focusId);
|
|
23107
23431
|
}
|
|
@@ -23134,7 +23458,7 @@ class PickList {
|
|
|
23134
23458
|
"getSelectedItems": [64],
|
|
23135
23459
|
"setFocus": [64]
|
|
23136
23460
|
},
|
|
23137
|
-
"$listeners$": [[0, "calciteListItemRemove", "calciteListItemRemoveHandler"], [0, "calciteListItemChange", "calciteListItemChangeHandler"], [0, "
|
|
23461
|
+
"$listeners$": [[0, "calciteListItemRemove", "calciteListItemRemoveHandler"], [0, "calciteListItemChange", "calciteListItemChangeHandler"], [0, "calciteInternalListItemPropsChange", "calciteInternalListItemPropsChangeHandler"], [0, "calciteInternalListItemValueChange", "calciteInternalListItemValueChangeHandler"], [0, "focusout", "calciteListFocusOutHandler"]],
|
|
23138
23462
|
"$lazyBundleId$": "-",
|
|
23139
23463
|
"$attrsToReflect$": [["disabled", "disabled"], ["filterEnabled", "filter-enabled"], ["filterPlaceholder", "filter-placeholder"], ["loading", "loading"], ["multiple", "multiple"]]
|
|
23140
23464
|
}; }
|
|
@@ -23232,8 +23556,8 @@ class PickListItem {
|
|
|
23232
23556
|
registerInstance(this, hostRef);
|
|
23233
23557
|
this.calciteListItemChange = createEvent(this, "calciteListItemChange", 7);
|
|
23234
23558
|
this.calciteListItemRemove = createEvent(this, "calciteListItemRemove", 7);
|
|
23235
|
-
this.
|
|
23236
|
-
this.
|
|
23559
|
+
this.calciteInternalListItemPropsChange = createEvent(this, "calciteInternalListItemPropsChange", 7);
|
|
23560
|
+
this.calciteInternalListItemValueChange = createEvent(this, "calciteInternalListItemValueChange", 7);
|
|
23237
23561
|
/**
|
|
23238
23562
|
* When true, the item cannot be clicked and is visually muted.
|
|
23239
23563
|
*/
|
|
@@ -23243,11 +23567,12 @@ class PickListItem {
|
|
|
23243
23567
|
*/
|
|
23244
23568
|
this.disableDeselect = false;
|
|
23245
23569
|
/**
|
|
23246
|
-
* @internal
|
|
23570
|
+
* @internal
|
|
23247
23571
|
*/
|
|
23248
23572
|
this.nonInteractive = false;
|
|
23249
23573
|
/**
|
|
23250
23574
|
* Determines the icon SVG symbol that will be shown. Options are circle, square, grip or null.
|
|
23575
|
+
*
|
|
23251
23576
|
* @see [ICON_TYPES](https://github.com/Esri/calcite-components/blob/master/src/components/pick-list/resources.ts#L5)
|
|
23252
23577
|
*/
|
|
23253
23578
|
this.icon = null;
|
|
@@ -23261,6 +23586,7 @@ class PickListItem {
|
|
|
23261
23586
|
this.selected = false;
|
|
23262
23587
|
/**
|
|
23263
23588
|
* Used as an accessible label (aria-label) for the "remove item" action. Only applicable if removable is true.
|
|
23589
|
+
*
|
|
23264
23590
|
* @default "Remove"
|
|
23265
23591
|
*/
|
|
23266
23592
|
this.intlRemove = TEXT$7.remove;
|
|
@@ -23290,13 +23616,13 @@ class PickListItem {
|
|
|
23290
23616
|
};
|
|
23291
23617
|
}
|
|
23292
23618
|
descriptionWatchHandler() {
|
|
23293
|
-
this.
|
|
23619
|
+
this.calciteInternalListItemPropsChange.emit();
|
|
23294
23620
|
}
|
|
23295
23621
|
labelWatchHandler() {
|
|
23296
|
-
this.
|
|
23622
|
+
this.calciteInternalListItemPropsChange.emit();
|
|
23297
23623
|
}
|
|
23298
23624
|
metadataWatchHandler() {
|
|
23299
|
-
this.
|
|
23625
|
+
this.calciteInternalListItemPropsChange.emit();
|
|
23300
23626
|
}
|
|
23301
23627
|
selectedWatchHandler() {
|
|
23302
23628
|
this.calciteListItemChange.emit({
|
|
@@ -23308,7 +23634,7 @@ class PickListItem {
|
|
|
23308
23634
|
this.shiftPressed = false;
|
|
23309
23635
|
}
|
|
23310
23636
|
valueWatchHandler(newValue, oldValue) {
|
|
23311
|
-
this.
|
|
23637
|
+
this.calciteInternalListItemValueChange.emit({ oldValue, newValue });
|
|
23312
23638
|
}
|
|
23313
23639
|
// --------------------------------------------------------------------------
|
|
23314
23640
|
//
|
|
@@ -23332,6 +23658,8 @@ class PickListItem {
|
|
|
23332
23658
|
/**
|
|
23333
23659
|
* Used to toggle the selection state. By default this won't trigger an event.
|
|
23334
23660
|
* The first argument allows the value to be coerced, rather than swapping values.
|
|
23661
|
+
*
|
|
23662
|
+
* @param coerce
|
|
23335
23663
|
*/
|
|
23336
23664
|
async toggleSelected(coerce) {
|
|
23337
23665
|
this.selected = typeof coerce === "boolean" ? coerce : !this.selected;
|
|
@@ -23445,10 +23773,10 @@ class PopoverManager$1 {
|
|
|
23445
23773
|
const registeredElement = composedPath.find((pathEl) => registeredElements.has(pathEl));
|
|
23446
23774
|
return registeredElements.get(registeredElement);
|
|
23447
23775
|
};
|
|
23448
|
-
this.
|
|
23776
|
+
this.togglePopovers = (event) => {
|
|
23449
23777
|
const composedPath = event.composedPath();
|
|
23450
23778
|
const popover = this.queryPopover(composedPath);
|
|
23451
|
-
if (popover) {
|
|
23779
|
+
if (popover && !popover.triggerDisabled) {
|
|
23452
23780
|
popover.toggle();
|
|
23453
23781
|
return;
|
|
23454
23782
|
}
|
|
@@ -23456,6 +23784,15 @@ class PopoverManager$1 {
|
|
|
23456
23784
|
.filter((popover) => popover.autoClose && popover.open && !composedPath.includes(popover))
|
|
23457
23785
|
.forEach((popover) => popover.toggle(false));
|
|
23458
23786
|
};
|
|
23787
|
+
this.keyHandler = (event) => {
|
|
23788
|
+
if (event.key !== "Enter" && event.key !== " ") {
|
|
23789
|
+
return;
|
|
23790
|
+
}
|
|
23791
|
+
this.togglePopovers(event);
|
|
23792
|
+
};
|
|
23793
|
+
this.clickHandler = (event) => {
|
|
23794
|
+
this.togglePopovers(event);
|
|
23795
|
+
};
|
|
23459
23796
|
}
|
|
23460
23797
|
// --------------------------------------------------------------------------
|
|
23461
23798
|
//
|
|
@@ -23479,9 +23816,11 @@ class PopoverManager$1 {
|
|
|
23479
23816
|
}
|
|
23480
23817
|
addListeners() {
|
|
23481
23818
|
document.addEventListener("pointerdown", this.clickHandler, { capture: true });
|
|
23819
|
+
document.addEventListener("keydown", this.keyHandler, { capture: true });
|
|
23482
23820
|
}
|
|
23483
23821
|
removeListeners() {
|
|
23484
23822
|
document.removeEventListener("pointerdown", this.clickHandler, { capture: true });
|
|
23823
|
+
document.removeEventListener("keydown", this.keyHandler, { capture: true });
|
|
23485
23824
|
}
|
|
23486
23825
|
}
|
|
23487
23826
|
|
|
@@ -23507,6 +23846,7 @@ class Popover {
|
|
|
23507
23846
|
this.autoClose = false;
|
|
23508
23847
|
/**
|
|
23509
23848
|
* Display a close button within the Popover.
|
|
23849
|
+
*
|
|
23510
23850
|
* @deprecated use dismissible instead.
|
|
23511
23851
|
*/
|
|
23512
23852
|
this.closeButton = false;
|
|
@@ -23524,6 +23864,7 @@ class Popover {
|
|
|
23524
23864
|
this.disablePointer = false;
|
|
23525
23865
|
/**
|
|
23526
23866
|
* Offset the position of the popover away from the reference element.
|
|
23867
|
+
*
|
|
23527
23868
|
* @default 6
|
|
23528
23869
|
*/
|
|
23529
23870
|
this.offsetDistance = defaultOffsetDistance;
|
|
@@ -23539,10 +23880,17 @@ class Popover {
|
|
|
23539
23880
|
this.overlayPositioning = "absolute";
|
|
23540
23881
|
/**
|
|
23541
23882
|
* Determines where the component will be positioned relative to the referenceElement.
|
|
23883
|
+
*
|
|
23542
23884
|
* @see [PopperPlacement](https://github.com/Esri/calcite-components/blob/master/src/utils/popper.ts#L25)
|
|
23543
23885
|
*/
|
|
23544
23886
|
this.placement = defaultPopoverPlacement;
|
|
23545
|
-
/**
|
|
23887
|
+
/**
|
|
23888
|
+
* Disables automatically toggling a popover when its referenceElement has been triggered. This property can be set to true to manage when a popover is open.
|
|
23889
|
+
*/
|
|
23890
|
+
this.triggerDisabled = false;
|
|
23891
|
+
/**
|
|
23892
|
+
* Text for close button.
|
|
23893
|
+
*
|
|
23546
23894
|
* @default "Close"
|
|
23547
23895
|
*/
|
|
23548
23896
|
this.intlClose = TEXT$6.close;
|
|
@@ -23664,7 +24012,11 @@ class Popover {
|
|
|
23664
24012
|
})
|
|
23665
24013
|
: this.createPopper();
|
|
23666
24014
|
}
|
|
23667
|
-
/**
|
|
24015
|
+
/**
|
|
24016
|
+
* Sets focus on the component.
|
|
24017
|
+
*
|
|
24018
|
+
* @param focusId
|
|
24019
|
+
*/
|
|
23668
24020
|
async setFocus(focusId) {
|
|
23669
24021
|
var _a;
|
|
23670
24022
|
const { closeButtonEl } = this;
|
|
@@ -23675,7 +24027,11 @@ class Popover {
|
|
|
23675
24027
|
}
|
|
23676
24028
|
(_a = this.el) === null || _a === void 0 ? void 0 : _a.focus();
|
|
23677
24029
|
}
|
|
23678
|
-
/**
|
|
24030
|
+
/**
|
|
24031
|
+
* Toggles the popover's open property.
|
|
24032
|
+
*
|
|
24033
|
+
* @param value
|
|
24034
|
+
*/
|
|
23679
24035
|
async toggle(value = !this.open) {
|
|
23680
24036
|
this.open = value;
|
|
23681
24037
|
}
|
|
@@ -23793,6 +24149,7 @@ class Popover {
|
|
|
23793
24149
|
"overlayPositioning": [1, "overlay-positioning"],
|
|
23794
24150
|
"placement": [513],
|
|
23795
24151
|
"referenceElement": [1, "reference-element"],
|
|
24152
|
+
"triggerDisabled": [516, "trigger-disabled"],
|
|
23796
24153
|
"intlClose": [1, "intl-close"],
|
|
23797
24154
|
"effectiveReferenceElement": [32],
|
|
23798
24155
|
"reposition": [64],
|
|
@@ -23801,7 +24158,7 @@ class Popover {
|
|
|
23801
24158
|
},
|
|
23802
24159
|
"$listeners$": undefined,
|
|
23803
24160
|
"$lazyBundleId$": "-",
|
|
23804
|
-
"$attrsToReflect$": [["autoClose", "auto-close"], ["closeButton", "close-button"], ["dismissible", "dismissible"], ["disableFlip", "disable-flip"], ["disablePointer", "disable-pointer"], ["offsetDistance", "offset-distance"], ["offsetSkidding", "offset-skidding"], ["open", "open"], ["placement", "placement"]]
|
|
24161
|
+
"$attrsToReflect$": [["autoClose", "auto-close"], ["closeButton", "close-button"], ["dismissible", "dismissible"], ["disableFlip", "disable-flip"], ["disablePointer", "disable-pointer"], ["offsetDistance", "offset-distance"], ["offsetSkidding", "offset-skidding"], ["open", "open"], ["placement", "placement"], ["triggerDisabled", "trigger-disabled"]]
|
|
23805
24162
|
}; }
|
|
23806
24163
|
}
|
|
23807
24164
|
|
|
@@ -23822,6 +24179,7 @@ class PopoverManager {
|
|
|
23822
24179
|
// --------------------------------------------------------------------------
|
|
23823
24180
|
/**
|
|
23824
24181
|
* CSS Selector to match reference elements for popovers. Reference elements will be identified by this selector in order to open their associated popover.
|
|
24182
|
+
*
|
|
23825
24183
|
* @default `[data-calcite-popover-reference]`
|
|
23826
24184
|
*/
|
|
23827
24185
|
this.selector = "[data-calcite-popover-reference]";
|
|
@@ -23945,6 +24303,7 @@ class RadioButton {
|
|
|
23945
24303
|
this.disabled = false;
|
|
23946
24304
|
/**
|
|
23947
24305
|
* The focused state of the radio button.
|
|
24306
|
+
*
|
|
23948
24307
|
* @internal
|
|
23949
24308
|
*/
|
|
23950
24309
|
this.focused = false;
|
|
@@ -23952,6 +24311,7 @@ class RadioButton {
|
|
|
23952
24311
|
this.hidden = false;
|
|
23953
24312
|
/**
|
|
23954
24313
|
* The hovered state of the radio button.
|
|
24314
|
+
*
|
|
23955
24315
|
* @internal
|
|
23956
24316
|
*/
|
|
23957
24317
|
this.hovered = false;
|
|
@@ -24407,9 +24767,9 @@ class RadioGroup {
|
|
|
24407
24767
|
return (hAsync(Host, { onClick: this.handleClick, role: "radiogroup" }, hAsync("slot", null), hAsync(HiddenFormInputSlot, { component: this })));
|
|
24408
24768
|
}
|
|
24409
24769
|
handleSelected(event) {
|
|
24410
|
-
event.stopPropagation();
|
|
24411
24770
|
event.preventDefault();
|
|
24412
24771
|
this.selectItem(event.target);
|
|
24772
|
+
event.stopPropagation();
|
|
24413
24773
|
}
|
|
24414
24774
|
handleKeyDown(event) {
|
|
24415
24775
|
const keys = ["ArrowLeft", "ArrowUp", "ArrowRight", "ArrowDown", " "];
|
|
@@ -24518,7 +24878,7 @@ class RadioGroup {
|
|
|
24518
24878
|
"width": [513],
|
|
24519
24879
|
"setFocus": [64]
|
|
24520
24880
|
},
|
|
24521
|
-
"$listeners$": [[0, "
|
|
24881
|
+
"$listeners$": [[0, "calciteInternalRadioGroupItemChange", "handleSelected"], [0, "keydown", "handleKeyDown"]],
|
|
24522
24882
|
"$lazyBundleId$": "-",
|
|
24523
24883
|
"$attrsToReflect$": [["appearance", "appearance"], ["disabled", "disabled"], ["required", "required"], ["layout", "layout"], ["scale", "scale"], ["width", "width"]]
|
|
24524
24884
|
}; }
|
|
@@ -24536,7 +24896,7 @@ const radioGroupItemCss = "@-webkit-keyframes in{0%{opacity:0}100%{opacity:1}}@k
|
|
|
24536
24896
|
class RadioGroupItem {
|
|
24537
24897
|
constructor(hostRef) {
|
|
24538
24898
|
registerInstance(this, hostRef);
|
|
24539
|
-
this.
|
|
24899
|
+
this.calciteInternalRadioGroupItemChange = createEvent(this, "calciteInternalRadioGroupItemChange", 7);
|
|
24540
24900
|
//--------------------------------------------------------------------------
|
|
24541
24901
|
//
|
|
24542
24902
|
// Properties
|
|
@@ -24550,7 +24910,7 @@ class RadioGroupItem {
|
|
|
24550
24910
|
this.iconPosition = "start";
|
|
24551
24911
|
}
|
|
24552
24912
|
handleCheckedChange() {
|
|
24553
|
-
this.
|
|
24913
|
+
this.calciteInternalRadioGroupItemChange.emit();
|
|
24554
24914
|
}
|
|
24555
24915
|
render() {
|
|
24556
24916
|
const { checked, value } = this;
|
|
@@ -24613,11 +24973,15 @@ class Rating {
|
|
|
24613
24973
|
this.disabled = false;
|
|
24614
24974
|
/** Show average and count data summary chip (if available) */
|
|
24615
24975
|
this.showChip = false;
|
|
24616
|
-
/**
|
|
24976
|
+
/**
|
|
24977
|
+
* Localized string for "Rating" (used for aria label)
|
|
24978
|
+
*
|
|
24617
24979
|
* @default "Rating"
|
|
24618
24980
|
*/
|
|
24619
24981
|
this.intlRating = TEXT$5.rating;
|
|
24620
|
-
/**
|
|
24982
|
+
/**
|
|
24983
|
+
* Localized string for labelling each star, `${num}` in the string will be replaced by the number
|
|
24984
|
+
*
|
|
24621
24985
|
* @default "Stars: ${num}"
|
|
24622
24986
|
*/
|
|
24623
24987
|
this.intlStars = TEXT$5.stars;
|
|
@@ -24751,7 +25115,9 @@ class Scrim {
|
|
|
24751
25115
|
// Properties
|
|
24752
25116
|
//
|
|
24753
25117
|
// --------------------------------------------------------------------------
|
|
24754
|
-
/**
|
|
25118
|
+
/**
|
|
25119
|
+
* string to override English loading text
|
|
25120
|
+
*
|
|
24755
25121
|
* @default "Loading"
|
|
24756
25122
|
*/
|
|
24757
25123
|
this.intlLoading = TEXT$4.loading;
|
|
@@ -25012,7 +25378,7 @@ class Select {
|
|
|
25012
25378
|
"width": [513],
|
|
25013
25379
|
"setFocus": [64]
|
|
25014
25380
|
},
|
|
25015
|
-
"$listeners$": [[0, "
|
|
25381
|
+
"$listeners$": [[0, "calciteInternalOptionChange", "handleOptionOrGroupChange"], [0, "calciteInternalOptionGroupChange", "handleOptionOrGroupChange"]],
|
|
25016
25382
|
"$lazyBundleId$": "-",
|
|
25017
25383
|
"$attrsToReflect$": [["disabled", "disabled"], ["required", "required"], ["scale", "scale"], ["width", "width"]]
|
|
25018
25384
|
}; }
|
|
@@ -25249,6 +25615,7 @@ class ShellPanel {
|
|
|
25249
25615
|
this.widthScale = "m";
|
|
25250
25616
|
/**
|
|
25251
25617
|
* Accessible label for resize separator.
|
|
25618
|
+
*
|
|
25252
25619
|
* @default "Resize"
|
|
25253
25620
|
*/
|
|
25254
25621
|
this.intlResize = TEXT$3.resize;
|
|
@@ -25550,6 +25917,7 @@ class Slider {
|
|
|
25550
25917
|
};
|
|
25551
25918
|
/**
|
|
25552
25919
|
* Set the reference of the track Element
|
|
25920
|
+
*
|
|
25553
25921
|
* @internal
|
|
25554
25922
|
* @param node
|
|
25555
25923
|
*/
|
|
@@ -25939,6 +26307,7 @@ class Slider {
|
|
|
25939
26307
|
}
|
|
25940
26308
|
/**
|
|
25941
26309
|
* Set the prop value if changed at the component level
|
|
26310
|
+
*
|
|
25942
26311
|
* @param valueProp
|
|
25943
26312
|
* @param value
|
|
25944
26313
|
*/
|
|
@@ -25957,6 +26326,9 @@ class Slider {
|
|
|
25957
26326
|
}
|
|
25958
26327
|
/**
|
|
25959
26328
|
* If number is outside range, constrain to min or max
|
|
26329
|
+
*
|
|
26330
|
+
* @param value
|
|
26331
|
+
* @param prop
|
|
25960
26332
|
* @internal
|
|
25961
26333
|
*/
|
|
25962
26334
|
clamp(value, prop) {
|
|
@@ -25972,6 +26344,8 @@ class Slider {
|
|
|
25972
26344
|
}
|
|
25973
26345
|
/**
|
|
25974
26346
|
* Translate a pixel position to value along the range
|
|
26347
|
+
*
|
|
26348
|
+
* @param x
|
|
25975
26349
|
* @internal
|
|
25976
26350
|
*/
|
|
25977
26351
|
translate(x) {
|
|
@@ -25988,6 +26362,8 @@ class Slider {
|
|
|
25988
26362
|
}
|
|
25989
26363
|
/**
|
|
25990
26364
|
* Get closest allowed value along stepped values
|
|
26365
|
+
*
|
|
26366
|
+
* @param num
|
|
25991
26367
|
* @internal
|
|
25992
26368
|
*/
|
|
25993
26369
|
getClosestStep(num) {
|
|
@@ -26011,6 +26387,8 @@ class Slider {
|
|
|
26011
26387
|
}
|
|
26012
26388
|
/**
|
|
26013
26389
|
* Get position of value along range as fractional value
|
|
26390
|
+
*
|
|
26391
|
+
* @param num
|
|
26014
26392
|
* @return {number} number in the unit interval [0,1]
|
|
26015
26393
|
* @internal
|
|
26016
26394
|
*/
|
|
@@ -26145,6 +26523,9 @@ class Slider {
|
|
|
26145
26523
|
}
|
|
26146
26524
|
/**
|
|
26147
26525
|
* Returns an integer representing the number of pixels to offset on the left or right side based on desired position behavior.
|
|
26526
|
+
*
|
|
26527
|
+
* @param leftBounds
|
|
26528
|
+
* @param rightBounds
|
|
26148
26529
|
* @internal
|
|
26149
26530
|
*/
|
|
26150
26531
|
getHostOffset(leftBounds, rightBounds) {
|
|
@@ -26161,6 +26542,7 @@ class Slider {
|
|
|
26161
26542
|
/**
|
|
26162
26543
|
* Returns an integer representing the number of pixels that the two given span elements are overlapping, taking into account
|
|
26163
26544
|
* a space in between the two spans equal to the font-size set on them to account for the space needed to render a hyphen.
|
|
26545
|
+
*
|
|
26164
26546
|
* @param leftLabel
|
|
26165
26547
|
* @param rightLabel
|
|
26166
26548
|
*/
|
|
@@ -26173,6 +26555,7 @@ class Slider {
|
|
|
26173
26555
|
}
|
|
26174
26556
|
/**
|
|
26175
26557
|
* Returns a boolean value representing if the minLabel span element is obscured (being overlapped) by the given handle div element.
|
|
26558
|
+
*
|
|
26176
26559
|
* @param minLabel
|
|
26177
26560
|
* @param handle
|
|
26178
26561
|
*/
|
|
@@ -26183,6 +26566,7 @@ class Slider {
|
|
|
26183
26566
|
}
|
|
26184
26567
|
/**
|
|
26185
26568
|
* Returns a boolean value representing if the maxLabel span element is obscured (being overlapped) by the given handle div element.
|
|
26569
|
+
*
|
|
26186
26570
|
* @param maxLabel
|
|
26187
26571
|
* @param handle
|
|
26188
26572
|
*/
|
|
@@ -29459,13 +29843,16 @@ class SplitButton {
|
|
|
29459
29843
|
this.disabled = false;
|
|
29460
29844
|
/**
|
|
29461
29845
|
* Is the dropdown currently active or not
|
|
29846
|
+
*
|
|
29462
29847
|
* @internal
|
|
29463
29848
|
*/
|
|
29464
29849
|
this.active = false;
|
|
29465
29850
|
/** specify the icon used for the dropdown menu, defaults to chevron */
|
|
29466
29851
|
this.dropdownIconType = "chevron";
|
|
29467
|
-
/**
|
|
29468
|
-
|
|
29852
|
+
/**
|
|
29853
|
+
optionally add a calcite-loader component to the control,
|
|
29854
|
+
disabling interaction. with the primary button
|
|
29855
|
+
*/
|
|
29469
29856
|
this.loading = false;
|
|
29470
29857
|
/** Describes the type of positioning to use for the dropdown. If your element is in a fixed container, use the 'fixed' value. */
|
|
29471
29858
|
this.overlayPositioning = "absolute";
|
|
@@ -29553,7 +29940,7 @@ const stepperCss = "@-webkit-keyframes in{0%{opacity:0}100%{opacity:1}}@keyframe
|
|
|
29553
29940
|
class Stepper {
|
|
29554
29941
|
constructor(hostRef) {
|
|
29555
29942
|
registerInstance(this, hostRef);
|
|
29556
|
-
this.
|
|
29943
|
+
this.calciteInternalStepperItemChange = createEvent(this, "calciteInternalStepperItemChange", 7);
|
|
29557
29944
|
//--------------------------------------------------------------------------
|
|
29558
29945
|
//
|
|
29559
29946
|
// Public Properties
|
|
@@ -29595,7 +29982,7 @@ class Stepper {
|
|
|
29595
29982
|
componentDidLoad() {
|
|
29596
29983
|
// if no stepper items are set as active, default to the first one
|
|
29597
29984
|
if (!this.currentPosition) {
|
|
29598
|
-
this.
|
|
29985
|
+
this.calciteInternalStepperItemChange.emit({
|
|
29599
29986
|
position: 0
|
|
29600
29987
|
});
|
|
29601
29988
|
}
|
|
@@ -29613,7 +30000,7 @@ class Stepper {
|
|
|
29613
30000
|
// Event Listeners
|
|
29614
30001
|
//
|
|
29615
30002
|
//--------------------------------------------------------------------------
|
|
29616
|
-
|
|
30003
|
+
calciteInternalStepperItemKeyEvent(e) {
|
|
29617
30004
|
const item = e.detail.item;
|
|
29618
30005
|
const itemToFocus = e.target;
|
|
29619
30006
|
const isFirstItem = this.itemIndex(itemToFocus) === 0;
|
|
@@ -29644,6 +30031,7 @@ class Stepper {
|
|
|
29644
30031
|
this.focusLastItem();
|
|
29645
30032
|
break;
|
|
29646
30033
|
}
|
|
30034
|
+
e.stopPropagation();
|
|
29647
30035
|
}
|
|
29648
30036
|
registerItem(event) {
|
|
29649
30037
|
const item = event.target;
|
|
@@ -29654,15 +30042,17 @@ class Stepper {
|
|
|
29654
30042
|
this.itemMap.set(item, position);
|
|
29655
30043
|
this.items = this.sortItems();
|
|
29656
30044
|
this.enabledItems = this.filterItems();
|
|
30045
|
+
event.stopPropagation();
|
|
29657
30046
|
}
|
|
29658
30047
|
updateItem(event) {
|
|
29659
30048
|
if (event.detail.content) {
|
|
29660
30049
|
this.requestedContent = event.detail.content;
|
|
29661
30050
|
}
|
|
29662
30051
|
this.currentPosition = event.detail.position;
|
|
29663
|
-
this.
|
|
30052
|
+
this.calciteInternalStepperItemChange.emit({
|
|
29664
30053
|
position: this.currentPosition
|
|
29665
30054
|
});
|
|
30055
|
+
event.stopPropagation();
|
|
29666
30056
|
}
|
|
29667
30057
|
//--------------------------------------------------------------------------
|
|
29668
30058
|
//
|
|
@@ -29685,7 +30075,11 @@ class Stepper {
|
|
|
29685
30075
|
}
|
|
29686
30076
|
this.emitChangedItem(enabledStepIndex);
|
|
29687
30077
|
}
|
|
29688
|
-
/**
|
|
30078
|
+
/**
|
|
30079
|
+
* set the requested step as active
|
|
30080
|
+
*
|
|
30081
|
+
* @param step
|
|
30082
|
+
*/
|
|
29689
30083
|
async goToStep(step) {
|
|
29690
30084
|
const position = step - 1;
|
|
29691
30085
|
if (this.currentPosition !== position) {
|
|
@@ -29731,7 +30125,7 @@ class Stepper {
|
|
|
29731
30125
|
}
|
|
29732
30126
|
emitChangedItem(position) {
|
|
29733
30127
|
this.currentPosition = position;
|
|
29734
|
-
this.
|
|
30128
|
+
this.calciteInternalStepperItemChange.emit({
|
|
29735
30129
|
position
|
|
29736
30130
|
});
|
|
29737
30131
|
}
|
|
@@ -29790,7 +30184,7 @@ class Stepper {
|
|
|
29790
30184
|
"startStep": [64],
|
|
29791
30185
|
"endStep": [64]
|
|
29792
30186
|
},
|
|
29793
|
-
"$listeners$": [[0, "
|
|
30187
|
+
"$listeners$": [[0, "calciteInternalStepperItemKeyEvent", "calciteInternalStepperItemKeyEvent"], [0, "calciteInternalStepperItemRegister", "registerItem"], [0, "calciteInternalStepperItemSelect", "updateItem"]],
|
|
29794
30188
|
"$lazyBundleId$": "-",
|
|
29795
30189
|
"$attrsToReflect$": [["icon", "icon"], ["layout", "layout"], ["numbered", "numbered"], ["scale", "scale"]]
|
|
29796
30190
|
}; }
|
|
@@ -29804,9 +30198,9 @@ const stepperItemCss = "@-webkit-keyframes in{0%{opacity:0}100%{opacity:1}}@keyf
|
|
|
29804
30198
|
class StepperItem {
|
|
29805
30199
|
constructor(hostRef) {
|
|
29806
30200
|
registerInstance(this, hostRef);
|
|
29807
|
-
this.
|
|
29808
|
-
this.
|
|
29809
|
-
this.
|
|
30201
|
+
this.calciteInternalStepperItemKeyEvent = createEvent(this, "calciteInternalStepperItemKeyEvent", 7);
|
|
30202
|
+
this.calciteInternalStepperItemSelect = createEvent(this, "calciteInternalStepperItemSelect", 7);
|
|
30203
|
+
this.calciteInternalStepperItemRegister = createEvent(this, "calciteInternalStepperItemRegister", 7);
|
|
29810
30204
|
//--------------------------------------------------------------------------
|
|
29811
30205
|
//
|
|
29812
30206
|
// Public Properties
|
|
@@ -29848,7 +30242,7 @@ class StepperItem {
|
|
|
29848
30242
|
case "ArrowRight":
|
|
29849
30243
|
case "Home":
|
|
29850
30244
|
case "End":
|
|
29851
|
-
this.
|
|
30245
|
+
this.calciteInternalStepperItemKeyEvent.emit({ item: e });
|
|
29852
30246
|
e.preventDefault();
|
|
29853
30247
|
break;
|
|
29854
30248
|
}
|
|
@@ -29856,7 +30250,7 @@ class StepperItem {
|
|
|
29856
30250
|
};
|
|
29857
30251
|
this.emitRequestedItem = () => {
|
|
29858
30252
|
if (!this.disabled) {
|
|
29859
|
-
this.
|
|
30253
|
+
this.calciteInternalStepperItemSelect.emit({
|
|
29860
30254
|
position: this.itemPosition,
|
|
29861
30255
|
content: this.itemContent
|
|
29862
30256
|
});
|
|
@@ -29907,6 +30301,7 @@ class StepperItem {
|
|
|
29907
30301
|
this.activePosition = event.detail.position;
|
|
29908
30302
|
this.determineActiveItem();
|
|
29909
30303
|
}
|
|
30304
|
+
event.stopPropagation();
|
|
29910
30305
|
}
|
|
29911
30306
|
renderIcon() {
|
|
29912
30307
|
const path = this.active
|
|
@@ -29922,7 +30317,7 @@ class StepperItem {
|
|
|
29922
30317
|
this.active = !this.disabled && this.itemPosition === this.activePosition;
|
|
29923
30318
|
}
|
|
29924
30319
|
registerStepperItem() {
|
|
29925
|
-
this.
|
|
30320
|
+
this.calciteInternalStepperItemRegister.emit({
|
|
29926
30321
|
position: this.itemPosition,
|
|
29927
30322
|
content: this.itemContent
|
|
29928
30323
|
});
|
|
@@ -29950,7 +30345,7 @@ class StepperItem {
|
|
|
29950
30345
|
"numbered": [1028],
|
|
29951
30346
|
"scale": [1537]
|
|
29952
30347
|
},
|
|
29953
|
-
"$listeners$": [[16, "
|
|
30348
|
+
"$listeners$": [[16, "calciteInternalStepperItemChange", "updateActiveItemOnChange"]],
|
|
29954
30349
|
"$lazyBundleId$": "-",
|
|
29955
30350
|
"$attrsToReflect$": [["active", "active"], ["complete", "complete"], ["disabled", "disabled"], ["layout", "layout"], ["scale", "scale"]]
|
|
29956
30351
|
}; }
|
|
@@ -29971,7 +30366,9 @@ class Switch {
|
|
|
29971
30366
|
this.disabled = false;
|
|
29972
30367
|
/** The scale of the switch */
|
|
29973
30368
|
this.scale = "m";
|
|
29974
|
-
/**
|
|
30369
|
+
/**
|
|
30370
|
+
* True if the switch is initially on
|
|
30371
|
+
*
|
|
29975
30372
|
* @deprecated use 'checked' instead.
|
|
29976
30373
|
*/
|
|
29977
30374
|
this.switched = false;
|
|
@@ -30083,12 +30480,14 @@ const tabCss = "@-webkit-keyframes in{0%{opacity:0}100%{opacity:1}}@keyframes in
|
|
|
30083
30480
|
class Tab {
|
|
30084
30481
|
constructor(hostRef) {
|
|
30085
30482
|
registerInstance(this, hostRef);
|
|
30086
|
-
this.
|
|
30483
|
+
this.calciteInternalTabRegister = createEvent(this, "calciteInternalTabRegister", 7);
|
|
30087
30484
|
/**
|
|
30088
30485
|
* Show this tab
|
|
30089
30486
|
*/
|
|
30090
30487
|
this.active = false;
|
|
30091
|
-
/**
|
|
30488
|
+
/**
|
|
30489
|
+
* @internal
|
|
30490
|
+
*/
|
|
30092
30491
|
this.scale = "m";
|
|
30093
30492
|
this.guid = `calcite-tab-title-${guid()}`;
|
|
30094
30493
|
}
|
|
@@ -30105,7 +30504,7 @@ class Tab {
|
|
|
30105
30504
|
this.parentTabsEl = this.el.closest("calcite-tabs");
|
|
30106
30505
|
}
|
|
30107
30506
|
componentDidLoad() {
|
|
30108
|
-
this.
|
|
30507
|
+
this.calciteInternalTabRegister.emit();
|
|
30109
30508
|
}
|
|
30110
30509
|
componentWillRender() {
|
|
30111
30510
|
var _a;
|
|
@@ -30141,6 +30540,7 @@ class Tab {
|
|
|
30141
30540
|
this.active = index === event.detail.tab;
|
|
30142
30541
|
});
|
|
30143
30542
|
}
|
|
30543
|
+
event.stopPropagation();
|
|
30144
30544
|
}
|
|
30145
30545
|
//--------------------------------------------------------------------------
|
|
30146
30546
|
//
|
|
@@ -30159,6 +30559,8 @@ class Tab {
|
|
|
30159
30559
|
//
|
|
30160
30560
|
//--------------------------------------------------------------------------
|
|
30161
30561
|
/**
|
|
30562
|
+
* @param tabIds
|
|
30563
|
+
* @param titleIds
|
|
30162
30564
|
* @internal
|
|
30163
30565
|
*/
|
|
30164
30566
|
async updateAriaInfo(tabIds = [], titleIds = []) {
|
|
@@ -30183,7 +30585,7 @@ class Tab {
|
|
|
30183
30585
|
}; }
|
|
30184
30586
|
}
|
|
30185
30587
|
|
|
30186
|
-
const tabNavCss = "@-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*/.sc-calcite-tab-nav: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*/.calcite-animate.sc-calcite-tab-nav{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*/.calcite-animate__in.sc-calcite-tab-nav{-webkit-animation-name:in;animation-name:in}/*!@.calcite-animate__in-down*/.calcite-animate__in-down.sc-calcite-tab-nav{-webkit-animation-name:in-down;animation-name:in-down}/*!@.calcite-animate__in-up*/.calcite-animate__in-up.sc-calcite-tab-nav{-webkit-animation-name:in-up;animation-name:in-up}/*!@.calcite-animate__in-scale*/.calcite-animate__in-scale.sc-calcite-tab-nav{-webkit-animation-name:in-scale;animation-name:in-scale}/*!@:root*/.sc-calcite-tab-nav:root{--calcite-popper-transition:var(--calcite-animation-timing)}/*!@:host([hidden])*/[hidden].sc-calcite-tab-nav-h{display:none}/*!@:host*/.sc-calcite-tab-nav-h{position:relative;display:-ms-flexbox;display:flex}/*!@:host([scale=s])*/[scale=s].sc-calcite-tab-nav-h{min-height:1.5rem}/*!@:host([scale=m])*/[scale=m].sc-calcite-tab-nav-h{min-height:2rem}/*!@:host([scale=l])*/[scale=l].sc-calcite-tab-nav-h{min-height:2.75rem}/*!@.tab-nav*/.tab-nav.sc-calcite-tab-nav{display:-ms-flexbox;display:flex;width:100%;-ms-flex-pack:start;justify-content:flex-start;overflow:auto}/*!@:host([layout=center]) .tab-nav*/[layout=center].sc-calcite-tab-nav-h .tab-nav.sc-calcite-tab-nav{-ms-flex-pack:center;justify-content:center}/*!@.tab-nav-active-indicator-container*/.tab-nav-active-indicator-container.sc-calcite-tab-nav{position:absolute;left:0px;right:0px;bottom:0px;height:0.125rem;width:100%;overflow:hidden}/*!@.tab-nav-active-indicator*/.tab-nav-active-indicator.sc-calcite-tab-nav{position:absolute;bottom:0px;display:block;height:0.125rem;background-color:var(--calcite-ui-brand);-webkit-transition-property:all;transition-property:all;-webkit-transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);-webkit-transition-duration:150ms;transition-duration:150ms;-webkit-transition-timing-function:cubic-bezier(0, 0, 0.2, 1);transition-timing-function:cubic-bezier(0, 0, 0.2, 1)}/*!@:host([position=below]) .tab-nav-active-indicator*/[position=below].sc-calcite-tab-nav-h .tab-nav-active-indicator.sc-calcite-tab-nav{bottom:unset;top:0px}/*!@:host([position=below]) .tab-nav-active-indicator-container*/[position=below].sc-calcite-tab-nav-h .tab-nav-active-indicator-container.sc-calcite-tab-nav{bottom:unset;top:0px}/*!@:host([bordered]) .tab-nav-active-indicator-container*/[bordered].sc-calcite-tab-nav-h .tab-nav-active-indicator-container.sc-calcite-tab-nav{bottom:unset}/*!@:host([bordered][position=below]) .tab-nav-active-indicator-container*/[bordered][position=below].sc-calcite-tab-nav-h .tab-nav-active-indicator-container.sc-calcite-tab-nav{bottom:0;top:unset}";
|
|
30588
|
+
const tabNavCss = "@-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*/.sc-calcite-tab-nav: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*/.calcite-animate.sc-calcite-tab-nav{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*/.calcite-animate__in.sc-calcite-tab-nav{-webkit-animation-name:in;animation-name:in}/*!@.calcite-animate__in-down*/.calcite-animate__in-down.sc-calcite-tab-nav{-webkit-animation-name:in-down;animation-name:in-down}/*!@.calcite-animate__in-up*/.calcite-animate__in-up.sc-calcite-tab-nav{-webkit-animation-name:in-up;animation-name:in-up}/*!@.calcite-animate__in-scale*/.calcite-animate__in-scale.sc-calcite-tab-nav{-webkit-animation-name:in-scale;animation-name:in-scale}/*!@:root*/.sc-calcite-tab-nav:root{--calcite-popper-transition:var(--calcite-animation-timing)}/*!@:host([hidden])*/[hidden].sc-calcite-tab-nav-h{display:none}/*!@:host*/.sc-calcite-tab-nav-h{position:relative;display:-ms-flexbox;display:flex}/*!@:host([scale=s])*/[scale=s].sc-calcite-tab-nav-h{min-height:1.5rem}/*!@:host([scale=m])*/[scale=m].sc-calcite-tab-nav-h{min-height:2rem}/*!@:host([scale=l])*/[scale=l].sc-calcite-tab-nav-h{min-height:2.75rem}/*!@.tab-nav*/.tab-nav.sc-calcite-tab-nav{display:-ms-flexbox;display:flex;width:100%;-ms-flex-pack:start;justify-content:flex-start;overflow:auto}/*!@:host([layout=center]) .tab-nav*/[layout=center].sc-calcite-tab-nav-h .tab-nav.sc-calcite-tab-nav{-ms-flex-pack:center;justify-content:center}/*!@.tab-nav-active-indicator-container*/.tab-nav-active-indicator-container.sc-calcite-tab-nav{position:absolute;left:0px;right:0px;bottom:0px;height:0.125rem;width:100%;overflow:hidden}/*!@.tab-nav-active-indicator*/.tab-nav-active-indicator.sc-calcite-tab-nav{position:absolute;bottom:0px;display:block;height:0.125rem;background-color:var(--calcite-ui-brand);-webkit-transition-property:all;transition-property:all;-webkit-transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);-webkit-transition-duration:150ms;transition-duration:150ms;-webkit-transition-timing-function:cubic-bezier(0, 0, 0.2, 1);transition-timing-function:cubic-bezier(0, 0, 0.2, 1)}/*!@:host([position=below]) .tab-nav-active-indicator*/[position=below].sc-calcite-tab-nav-h .tab-nav-active-indicator.sc-calcite-tab-nav{bottom:unset;top:0px}/*!@:host([position=below]) .tab-nav-active-indicator-container*/[position=below].sc-calcite-tab-nav-h .tab-nav-active-indicator-container.sc-calcite-tab-nav{bottom:unset;top:0px}/*!@:host([bordered]) .tab-nav-active-indicator-container*/[bordered].sc-calcite-tab-nav-h .tab-nav-active-indicator-container.sc-calcite-tab-nav{bottom:unset}/*!@:host([bordered][position=below]) .tab-nav-active-indicator-container*/[bordered][position=below].sc-calcite-tab-nav-h .tab-nav-active-indicator-container.sc-calcite-tab-nav{bottom:0;top:unset}@media (forced-colors: active){/*!@.tab-nav-active-indicator*/.tab-nav-active-indicator.sc-calcite-tab-nav{background-color:highlight}}";
|
|
30187
30589
|
|
|
30188
30590
|
/**
|
|
30189
30591
|
* @slot - A slot for adding `calcite-tab-title`s.
|
|
@@ -30193,13 +30595,21 @@ class TabNav {
|
|
|
30193
30595
|
registerInstance(this, hostRef);
|
|
30194
30596
|
this.calciteTabChange = createEvent(this, "calciteTabChange", 7);
|
|
30195
30597
|
this.calciteInternalTabChange = createEvent(this, "calciteInternalTabChange", 7);
|
|
30196
|
-
/**
|
|
30598
|
+
/**
|
|
30599
|
+
* @internal
|
|
30600
|
+
*/
|
|
30197
30601
|
this.scale = "m";
|
|
30198
|
-
/**
|
|
30602
|
+
/**
|
|
30603
|
+
* @internal
|
|
30604
|
+
*/
|
|
30199
30605
|
this.layout = "inline";
|
|
30200
|
-
/**
|
|
30606
|
+
/**
|
|
30607
|
+
* @internal
|
|
30608
|
+
*/
|
|
30201
30609
|
this.position = "below";
|
|
30202
|
-
/**
|
|
30610
|
+
/**
|
|
30611
|
+
* @internal
|
|
30612
|
+
*/
|
|
30203
30613
|
this.bordered = false;
|
|
30204
30614
|
this.animationActiveDuration = 0.3;
|
|
30205
30615
|
this.resizeObserver = createObserver();
|
|
@@ -30319,6 +30729,8 @@ class TabNav {
|
|
|
30319
30729
|
}
|
|
30320
30730
|
/**
|
|
30321
30731
|
* Check for active tabs on register and update selected
|
|
30732
|
+
*
|
|
30733
|
+
* @param e
|
|
30322
30734
|
*/
|
|
30323
30735
|
updateTabTitles(e) {
|
|
30324
30736
|
if (e.target.active) {
|
|
@@ -30333,6 +30745,7 @@ class TabNav {
|
|
|
30333
30745
|
this.selectedTab = e.detail.tab;
|
|
30334
30746
|
e.stopPropagation();
|
|
30335
30747
|
}
|
|
30748
|
+
e.stopPropagation();
|
|
30336
30749
|
}
|
|
30337
30750
|
updateOffsetPosition() {
|
|
30338
30751
|
var _a, _b, _c, _d, _e;
|
|
@@ -30385,13 +30798,13 @@ class TabNav {
|
|
|
30385
30798
|
"selectedTab": [32],
|
|
30386
30799
|
"selectedTabEl": [32]
|
|
30387
30800
|
},
|
|
30388
|
-
"$listeners$": [[0, "
|
|
30801
|
+
"$listeners$": [[0, "calciteInternalTabsFocusPrevious", "focusPreviousTabHandler"], [0, "calciteInternalTabsFocusNext", "focusNextTabHandler"], [0, "calciteInternalTabsActivate", "internalActivateTabHandler"], [0, "calciteTabsActivate", "activateTabHandler"], [0, "calciteInternalTabTitleRegister", "updateTabTitles"], [16, "calciteInternalTabChange", "globalInternalTabChangeHandler"]],
|
|
30389
30802
|
"$lazyBundleId$": "-",
|
|
30390
30803
|
"$attrsToReflect$": [["scale", "scale"], ["layout", "layout"], ["position", "position"], ["bordered", "bordered"]]
|
|
30391
30804
|
}; }
|
|
30392
30805
|
}
|
|
30393
30806
|
|
|
30394
|
-
const tabTitleCss = "@-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*/.sc-calcite-tab-title: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*/.calcite-animate.sc-calcite-tab-title{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*/.calcite-animate__in.sc-calcite-tab-title{-webkit-animation-name:in;animation-name:in}/*!@.calcite-animate__in-down*/.calcite-animate__in-down.sc-calcite-tab-title{-webkit-animation-name:in-down;animation-name:in-down}/*!@.calcite-animate__in-up*/.calcite-animate__in-up.sc-calcite-tab-title{-webkit-animation-name:in-up;animation-name:in-up}/*!@.calcite-animate__in-scale*/.calcite-animate__in-scale.sc-calcite-tab-title{-webkit-animation-name:in-scale;animation-name:in-scale}/*!@:root*/.sc-calcite-tab-title:root{--calcite-popper-transition:var(--calcite-animation-timing)}/*!@:host([hidden])*/[hidden].sc-calcite-tab-title-h{display:none}/*!@:host*/.sc-calcite-tab-title-h{margin-right:1.25rem;display:block;-ms-flex:0 1 auto;flex:0 1 auto;outline:2px solid transparent;outline-offset:2px;-webkit-margin-start:0px;margin-inline-start:0px;-webkit-margin-end:1.25rem;margin-inline-end:1.25rem}/*!@:host([layout=center])*/[layout=center].sc-calcite-tab-title-h{margin-top:0px;margin-bottom:0px;margin-left:1.25rem;margin-right:1.25rem;text-align:center;-ms-flex-preferred-size:12rem;flex-basis:12rem}/*!@:host([position=below]) a*/[position=below].sc-calcite-tab-title-h a.sc-calcite-tab-title{border-bottom-width:0px;border-top-width:2px;border-top-color:transparent;border-top-style:solid}/*!@:host a*/.sc-calcite-tab-title-h a.sc-calcite-tab-title{outline-offset:0;outline-color:transparent;-webkit-transition:outline-offset 100ms ease-in-out, outline-color 100ms ease-in-out;transition:outline-offset 100ms ease-in-out, outline-color 100ms ease-in-out}/*!@:host(:focus) a*/.sc-calcite-tab-title-h:focus a.sc-calcite-tab-title{outline:2px solid var(--calcite-ui-brand);outline-offset:-2px}/*!@:host(:active) a, :host(:focus) a, :host(:hover) a*/.sc-calcite-tab-title-h:active a.sc-calcite-tab-title,.sc-calcite-tab-title-h:focus a.sc-calcite-tab-title,.sc-calcite-tab-title-h:hover a.sc-calcite-tab-title{border-color:var(--calcite-ui-border-2);color:var(--calcite-ui-text-1);-webkit-text-decoration-line:none;text-decoration-line:none}/*!@:host([active]) a*/[active].sc-calcite-tab-title-h a.sc-calcite-tab-title{border-color:transparent;color:var(--calcite-ui-text-1)}/*!@:host([disabled])*/[disabled].sc-calcite-tab-title-h{pointer-events:none;cursor:default;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;opacity:var(--calcite-ui-opacity-disabled)}/*!@:host([disabled]) span, :host([disabled]) a*/[disabled].sc-calcite-tab-title-h span.sc-calcite-tab-title,[disabled].sc-calcite-tab-title-h a.sc-calcite-tab-title{pointer-events:none;opacity:0.5}/*!@:host([disabled]) ::slotted([calcite-hydrated][disabled]),\n:host([disabled]) [calcite-hydrated][disabled]*/.sc-calcite-tab-title-h[disabled] .sc-calcite-tab-title-s>[calcite-hydrated][disabled],[disabled].sc-calcite-tab-title-h [calcite-hydrated][disabled].sc-calcite-tab-title{opacity:1}/*!@:host([scale=s])*/[scale=s].sc-calcite-tab-title-h{-webkit-margin-end:1rem;margin-inline-end:1rem}/*!@:host([scale=s]) a, :host([scale=s]) span*/[scale=s].sc-calcite-tab-title-h a.sc-calcite-tab-title,[scale=s].sc-calcite-tab-title-h span.sc-calcite-tab-title{padding-top:0.25rem;padding-bottom:0.25rem;font-size:var(--calcite-font-size--2);line-height:1rem}/*!@:host([scale=m]) a, :host([scale=m]) span*/[scale=m].sc-calcite-tab-title-h a.sc-calcite-tab-title,[scale=m].sc-calcite-tab-title-h span.sc-calcite-tab-title{padding-top:0.5rem;padding-bottom:0.5rem;font-size:var(--calcite-font-size--1);line-height:1rem}/*!@:host([scale=l])*/[scale=l].sc-calcite-tab-title-h{-webkit-margin-end:1.5rem;margin-inline-end:1.5rem}/*!@:host([scale=l]) a, :host([scale=l]) span*/[scale=l].sc-calcite-tab-title-h a.sc-calcite-tab-title,[scale=l].sc-calcite-tab-title-h span.sc-calcite-tab-title{padding-top:0.75rem;padding-bottom:0.75rem;font-size:var(--calcite-font-size-0);line-height:1.25rem}/*!@a, span*/a.sc-calcite-tab-title,span.sc-calcite-tab-title{-webkit-box-sizing:border-box;box-sizing:border-box;display:-ms-flexbox;display:flex;height:100%;width:100%;cursor:pointer;-webkit-appearance:none;-moz-appearance:none;appearance:none;-ms-flex-pack:center;justify-content:center;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;border-bottom-width:2px;padding-left:0px;padding-right:0px;padding-top:0.5rem;padding-bottom:0.5rem;font-size:var(--calcite-font-size--1);line-height:1rem;color:var(--calcite-ui-text-3);-webkit-transition-property:all;transition-property:all;-webkit-transition-duration:var(--calcite-animation-timing);transition-duration:var(--calcite-animation-timing);-webkit-transition-timing-function:ease-in-out;transition-timing-function:ease-in-out;-webkit-transition-delay:0s;transition-delay:0s;border-bottom-color:transparent;border-bottom-style:solid}/*!@span*/span.sc-calcite-tab-title{cursor:default}/*!@.calcite-tab-title--icon*/.calcite-tab-title--icon.sc-calcite-tab-title{position:relative;margin:0px;display:-ms-inline-flexbox;display:inline-flex;-ms-flex-item-align:center;align-self:center}/*!@.calcite-tab-title--icon svg*/.calcite-tab-title--icon.sc-calcite-tab-title svg.sc-calcite-tab-title{-webkit-transition-property:all;transition-property:all;-webkit-transition-duration:var(--calcite-animation-timing);transition-duration:var(--calcite-animation-timing);-webkit-transition-timing-function:ease-in-out;transition-timing-function:ease-in-out;-webkit-transition-delay:0s;transition-delay:0s}/*!@.container--has-text*/.container--has-text.sc-calcite-tab-title{padding:0.25rem}/*!@.container--has-text .calcite-tab-title--icon.icon-start*/.container--has-text.sc-calcite-tab-title .calcite-tab-title--icon.icon-start.sc-calcite-tab-title{-webkit-margin-end:0.5rem;margin-inline-end:0.5rem}/*!@.container--has-text .calcite-tab-title--icon.icon-end*/.container--has-text.sc-calcite-tab-title .calcite-tab-title--icon.icon-end.sc-calcite-tab-title{-webkit-margin-start:0.5rem;margin-inline-start:0.5rem}/*!@:host([icon-start][icon-end]) .calcite-tab-title--icon:first-child*/[icon-start][icon-end].sc-calcite-tab-title-h .calcite-tab-title--icon.sc-calcite-tab-title:first-child{-webkit-margin-end:0.5rem;margin-inline-end:0.5rem}/*!@:host([bordered])*/[bordered].sc-calcite-tab-title-h{-webkit-margin-end:0;margin-inline-end:0}/*!@:host([bordered][active])*/[bordered][active].sc-calcite-tab-title-h{-webkit-box-shadow:inset 0px -2px var(--calcite-ui-foreground-1);box-shadow:inset 0px -2px var(--calcite-ui-foreground-1)}/*!@:host([bordered][active][position=below])*/[bordered][active][position=below].sc-calcite-tab-title-h{-webkit-box-shadow:inset 0 2px 0 var(--calcite-ui-foreground-1);box-shadow:inset 0 2px 0 var(--calcite-ui-foreground-1)}/*!@:host([bordered]:hover) a, :host([bordered]:focus) a, :host([bordered]:active) a*/[bordered].sc-calcite-tab-title-h:hover a.sc-calcite-tab-title,[bordered].sc-calcite-tab-title-h:focus a.sc-calcite-tab-title,[bordered].sc-calcite-tab-title-h:active a.sc-calcite-tab-title{position:relative}/*!@:host([bordered]:hover) a*/[bordered].sc-calcite-tab-title-h:hover a.sc-calcite-tab-title{background-color:var(--calcite-button-transparent-hover);-webkit-transition-property:all;transition-property:all;-webkit-transition-duration:var(--calcite-animation-timing);transition-duration:var(--calcite-animation-timing);-webkit-transition-timing-function:ease-in-out;transition-timing-function:ease-in-out;-webkit-transition-delay:0s;transition-delay:0s}/*!@:host([bordered]) a*/[bordered].sc-calcite-tab-title-h a.sc-calcite-tab-title{border-bottom-style:unset}/*!@:host([bordered][position=below]) a*/[bordered][position=below].sc-calcite-tab-title-h a.sc-calcite-tab-title{border-top-style:unset}/*!@:host([active][bordered]) a*/[active][bordered].sc-calcite-tab-title-h a.sc-calcite-tab-title{border-left:1px solid var(--calcite-ui-border-1);border-right:1px solid var(--calcite-ui-border-1)}/*!@:host([bordered]) a, :host([bordered]) span*/[bordered].sc-calcite-tab-title-h a.sc-calcite-tab-title,[bordered].sc-calcite-tab-title-h span.sc-calcite-tab-title{padding-left:0.75rem;padding-right:0.75rem}/*!@:host([bordered][scale=s]) a, :host([bordered][scale=s]) span*/[bordered][scale=s].sc-calcite-tab-title-h a.sc-calcite-tab-title,[bordered][scale=s].sc-calcite-tab-title-h span.sc-calcite-tab-title{padding-left:0.5rem;padding-right:0.5rem}/*!@:host([bordered][scale=l]) a, :host([bordered][scale=l]) span*/[bordered][scale=l].sc-calcite-tab-title-h a.sc-calcite-tab-title,[bordered][scale=l].sc-calcite-tab-title-h span.sc-calcite-tab-title{padding-left:1rem;padding-right:1rem}";
|
|
30807
|
+
const tabTitleCss = "@-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*/.sc-calcite-tab-title: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*/.calcite-animate.sc-calcite-tab-title{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*/.calcite-animate__in.sc-calcite-tab-title{-webkit-animation-name:in;animation-name:in}/*!@.calcite-animate__in-down*/.calcite-animate__in-down.sc-calcite-tab-title{-webkit-animation-name:in-down;animation-name:in-down}/*!@.calcite-animate__in-up*/.calcite-animate__in-up.sc-calcite-tab-title{-webkit-animation-name:in-up;animation-name:in-up}/*!@.calcite-animate__in-scale*/.calcite-animate__in-scale.sc-calcite-tab-title{-webkit-animation-name:in-scale;animation-name:in-scale}/*!@:root*/.sc-calcite-tab-title:root{--calcite-popper-transition:var(--calcite-animation-timing)}/*!@:host([hidden])*/[hidden].sc-calcite-tab-title-h{display:none}/*!@:host*/.sc-calcite-tab-title-h{margin-right:1.25rem;display:block;-ms-flex:0 1 auto;flex:0 1 auto;outline:2px solid transparent;outline-offset:2px;-webkit-margin-start:0px;margin-inline-start:0px;-webkit-margin-end:1.25rem;margin-inline-end:1.25rem}/*!@:host([layout=center])*/[layout=center].sc-calcite-tab-title-h{margin-top:0px;margin-bottom:0px;margin-left:1.25rem;margin-right:1.25rem;text-align:center;-ms-flex-preferred-size:12rem;flex-basis:12rem}/*!@:host([position=below]) a*/[position=below].sc-calcite-tab-title-h a.sc-calcite-tab-title{border-bottom-width:0px;border-top-width:2px;border-top-color:transparent;border-top-style:solid}/*!@:host a*/.sc-calcite-tab-title-h a.sc-calcite-tab-title{outline-offset:0;outline-color:transparent;-webkit-transition:outline-offset 100ms ease-in-out, outline-color 100ms ease-in-out;transition:outline-offset 100ms ease-in-out, outline-color 100ms ease-in-out}/*!@:host(:focus) a*/.sc-calcite-tab-title-h:focus a.sc-calcite-tab-title{outline:2px solid var(--calcite-ui-brand);outline-offset:-2px}/*!@:host(:active) a, :host(:focus) a, :host(:hover) a*/.sc-calcite-tab-title-h:active a.sc-calcite-tab-title,.sc-calcite-tab-title-h:focus a.sc-calcite-tab-title,.sc-calcite-tab-title-h:hover a.sc-calcite-tab-title{border-color:var(--calcite-ui-border-2);color:var(--calcite-ui-text-1);-webkit-text-decoration-line:none;text-decoration-line:none}/*!@:host([active]) a*/[active].sc-calcite-tab-title-h a.sc-calcite-tab-title{border-color:transparent;color:var(--calcite-ui-text-1)}/*!@:host([disabled])*/[disabled].sc-calcite-tab-title-h{pointer-events:none;cursor:default;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;opacity:var(--calcite-ui-opacity-disabled)}/*!@:host([disabled]) span, :host([disabled]) a*/[disabled].sc-calcite-tab-title-h span.sc-calcite-tab-title,[disabled].sc-calcite-tab-title-h a.sc-calcite-tab-title{pointer-events:none;opacity:0.5}/*!@:host([disabled]) ::slotted([calcite-hydrated][disabled]),\n:host([disabled]) [calcite-hydrated][disabled]*/.sc-calcite-tab-title-h[disabled] .sc-calcite-tab-title-s>[calcite-hydrated][disabled],[disabled].sc-calcite-tab-title-h [calcite-hydrated][disabled].sc-calcite-tab-title{opacity:1}/*!@:host([scale=s])*/[scale=s].sc-calcite-tab-title-h{-webkit-margin-end:1rem;margin-inline-end:1rem}/*!@:host([scale=s]) a, :host([scale=s]) span*/[scale=s].sc-calcite-tab-title-h a.sc-calcite-tab-title,[scale=s].sc-calcite-tab-title-h span.sc-calcite-tab-title{padding-top:0.25rem;padding-bottom:0.25rem;font-size:var(--calcite-font-size--2);line-height:1rem}/*!@:host([scale=m]) a, :host([scale=m]) span*/[scale=m].sc-calcite-tab-title-h a.sc-calcite-tab-title,[scale=m].sc-calcite-tab-title-h span.sc-calcite-tab-title{padding-top:0.5rem;padding-bottom:0.5rem;font-size:var(--calcite-font-size--1);line-height:1rem}/*!@:host([scale=l])*/[scale=l].sc-calcite-tab-title-h{-webkit-margin-end:1.5rem;margin-inline-end:1.5rem}/*!@:host([scale=l]) a, :host([scale=l]) span*/[scale=l].sc-calcite-tab-title-h a.sc-calcite-tab-title,[scale=l].sc-calcite-tab-title-h span.sc-calcite-tab-title{padding-top:0.75rem;padding-bottom:0.75rem;font-size:var(--calcite-font-size-0);line-height:1.25rem}/*!@a, span*/a.sc-calcite-tab-title,span.sc-calcite-tab-title{-webkit-box-sizing:border-box;box-sizing:border-box;display:-ms-flexbox;display:flex;height:100%;width:100%;cursor:pointer;-webkit-appearance:none;-moz-appearance:none;appearance:none;-ms-flex-pack:center;justify-content:center;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;border-bottom-width:2px;padding-left:0px;padding-right:0px;padding-top:0.5rem;padding-bottom:0.5rem;font-size:var(--calcite-font-size--1);line-height:1rem;color:var(--calcite-ui-text-3);-webkit-transition-property:all;transition-property:all;-webkit-transition-duration:var(--calcite-animation-timing);transition-duration:var(--calcite-animation-timing);-webkit-transition-timing-function:ease-in-out;transition-timing-function:ease-in-out;-webkit-transition-delay:0s;transition-delay:0s;border-bottom-color:transparent;border-bottom-style:solid}/*!@span*/span.sc-calcite-tab-title{cursor:default}/*!@.calcite-tab-title--icon*/.calcite-tab-title--icon.sc-calcite-tab-title{position:relative;margin:0px;display:-ms-inline-flexbox;display:inline-flex;-ms-flex-item-align:center;align-self:center}/*!@.calcite-tab-title--icon svg*/.calcite-tab-title--icon.sc-calcite-tab-title svg.sc-calcite-tab-title{-webkit-transition-property:all;transition-property:all;-webkit-transition-duration:var(--calcite-animation-timing);transition-duration:var(--calcite-animation-timing);-webkit-transition-timing-function:ease-in-out;transition-timing-function:ease-in-out;-webkit-transition-delay:0s;transition-delay:0s}/*!@.container--has-text*/.container--has-text.sc-calcite-tab-title{padding:0.25rem}/*!@.container--has-text .calcite-tab-title--icon.icon-start*/.container--has-text.sc-calcite-tab-title .calcite-tab-title--icon.icon-start.sc-calcite-tab-title{-webkit-margin-end:0.5rem;margin-inline-end:0.5rem}/*!@.container--has-text .calcite-tab-title--icon.icon-end*/.container--has-text.sc-calcite-tab-title .calcite-tab-title--icon.icon-end.sc-calcite-tab-title{-webkit-margin-start:0.5rem;margin-inline-start:0.5rem}/*!@:host([icon-start][icon-end]) .calcite-tab-title--icon:first-child*/[icon-start][icon-end].sc-calcite-tab-title-h .calcite-tab-title--icon.sc-calcite-tab-title:first-child{-webkit-margin-end:0.5rem;margin-inline-end:0.5rem}/*!@:host([bordered])*/[bordered].sc-calcite-tab-title-h{-webkit-margin-end:0;margin-inline-end:0}/*!@:host([bordered][active])*/[bordered][active].sc-calcite-tab-title-h{-webkit-box-shadow:inset 0px -2px var(--calcite-ui-foreground-1);box-shadow:inset 0px -2px var(--calcite-ui-foreground-1)}/*!@:host([bordered][active][position=below])*/[bordered][active][position=below].sc-calcite-tab-title-h{-webkit-box-shadow:inset 0 2px 0 var(--calcite-ui-foreground-1);box-shadow:inset 0 2px 0 var(--calcite-ui-foreground-1)}/*!@:host([bordered]:hover) a, :host([bordered]:focus) a, :host([bordered]:active) a*/[bordered].sc-calcite-tab-title-h:hover a.sc-calcite-tab-title,[bordered].sc-calcite-tab-title-h:focus a.sc-calcite-tab-title,[bordered].sc-calcite-tab-title-h:active a.sc-calcite-tab-title{position:relative}/*!@:host([bordered]:hover) a*/[bordered].sc-calcite-tab-title-h:hover a.sc-calcite-tab-title{background-color:var(--calcite-button-transparent-hover);-webkit-transition-property:all;transition-property:all;-webkit-transition-duration:var(--calcite-animation-timing);transition-duration:var(--calcite-animation-timing);-webkit-transition-timing-function:ease-in-out;transition-timing-function:ease-in-out;-webkit-transition-delay:0s;transition-delay:0s}/*!@:host([bordered]) a*/[bordered].sc-calcite-tab-title-h a.sc-calcite-tab-title{border-bottom-style:unset}/*!@:host([bordered][position=below]) a*/[bordered][position=below].sc-calcite-tab-title-h a.sc-calcite-tab-title{border-top-style:unset}/*!@:host([active][bordered]) a*/[active][bordered].sc-calcite-tab-title-h a.sc-calcite-tab-title{border-left:1px solid var(--calcite-ui-border-1);border-right:1px solid var(--calcite-ui-border-1)}/*!@:host([bordered]) a, :host([bordered]) span*/[bordered].sc-calcite-tab-title-h a.sc-calcite-tab-title,[bordered].sc-calcite-tab-title-h span.sc-calcite-tab-title{padding-left:0.75rem;padding-right:0.75rem}/*!@:host([bordered][scale=s]) a, :host([bordered][scale=s]) span*/[bordered][scale=s].sc-calcite-tab-title-h a.sc-calcite-tab-title,[bordered][scale=s].sc-calcite-tab-title-h span.sc-calcite-tab-title{padding-left:0.5rem;padding-right:0.5rem}/*!@:host([bordered][scale=l]) a, :host([bordered][scale=l]) span*/[bordered][scale=l].sc-calcite-tab-title-h a.sc-calcite-tab-title,[bordered][scale=l].sc-calcite-tab-title-h span.sc-calcite-tab-title{padding-left:1rem;padding-right:1rem}@media (forced-colors: active){/*!@:host*/.sc-calcite-tab-title-h{outline-width:0;outline-offset:0}/*!@:host(:focus) a*/.sc-calcite-tab-title-h:focus a.sc-calcite-tab-title{outline-color:highlight}/*!@:host([bordered]) a*/[bordered].sc-calcite-tab-title-h a.sc-calcite-tab-title{border-bottom-style:solid}/*!@:host([bordered][position=below]) a*/[bordered][position=below].sc-calcite-tab-title-h a.sc-calcite-tab-title{border-top-style:solid}/*!@:host([bordered][active]) a*/[bordered][active].sc-calcite-tab-title-h a.sc-calcite-tab-title{border-bottom-style:none}/*!@:host([bordered][position=below][active]) a*/[bordered][position=below][active].sc-calcite-tab-title-h a.sc-calcite-tab-title{border-top-style:none}}";
|
|
30395
30808
|
|
|
30396
30809
|
/**
|
|
30397
30810
|
* @slot - A slot for adding text.
|
|
@@ -30401,9 +30814,9 @@ class TabTitle {
|
|
|
30401
30814
|
registerInstance(this, hostRef);
|
|
30402
30815
|
this.calciteTabsActivate = createEvent(this, "calciteTabsActivate", 7);
|
|
30403
30816
|
this.calciteInternalTabsActivate = createEvent(this, "calciteInternalTabsActivate", 7);
|
|
30404
|
-
this.
|
|
30405
|
-
this.
|
|
30406
|
-
this.
|
|
30817
|
+
this.calciteInternalTabsFocusNext = createEvent(this, "calciteInternalTabsFocusNext", 7);
|
|
30818
|
+
this.calciteInternalTabsFocusPrevious = createEvent(this, "calciteInternalTabsFocusPrevious", 7);
|
|
30819
|
+
this.calciteInternalTabTitleRegister = createEvent(this, "calciteInternalTabTitleRegister", 7);
|
|
30407
30820
|
//--------------------------------------------------------------------------
|
|
30408
30821
|
//
|
|
30409
30822
|
// Properties
|
|
@@ -30413,14 +30826,16 @@ class TabTitle {
|
|
|
30413
30826
|
this.active = false;
|
|
30414
30827
|
/** Disable this tab title */
|
|
30415
30828
|
this.disabled = false;
|
|
30416
|
-
/**
|
|
30829
|
+
/**
|
|
30830
|
+
* @internal
|
|
30831
|
+
*/
|
|
30417
30832
|
this.bordered = false;
|
|
30418
30833
|
//--------------------------------------------------------------------------
|
|
30419
30834
|
//
|
|
30420
30835
|
// Private State/Props
|
|
30421
30836
|
//
|
|
30422
30837
|
//--------------------------------------------------------------------------
|
|
30423
|
-
/** watches for changing text content
|
|
30838
|
+
/** watches for changing text content */
|
|
30424
30839
|
this.mutationObserver = createObserver();
|
|
30425
30840
|
/** determine if there is slotted text for styling purposes */
|
|
30426
30841
|
this.hasText = false;
|
|
@@ -30478,7 +30893,7 @@ class TabTitle {
|
|
|
30478
30893
|
}, style: showSideBorders && { width: `${this.parentTabNavEl.indicatorWidth}px` } }, this.iconStart ? iconStartEl : null, hAsync("slot", null), this.iconEnd ? iconEndEl : null)));
|
|
30479
30894
|
}
|
|
30480
30895
|
async componentDidLoad() {
|
|
30481
|
-
this.
|
|
30896
|
+
this.calciteInternalTabTitleRegister.emit(await this.getTabIdentifier());
|
|
30482
30897
|
}
|
|
30483
30898
|
componentDidRender() {
|
|
30484
30899
|
updateHostInteraction(this, true);
|
|
@@ -30517,18 +30932,18 @@ class TabTitle {
|
|
|
30517
30932
|
break;
|
|
30518
30933
|
case "ArrowRight":
|
|
30519
30934
|
if (getElementDir(this.el) === "ltr") {
|
|
30520
|
-
this.
|
|
30935
|
+
this.calciteInternalTabsFocusNext.emit();
|
|
30521
30936
|
}
|
|
30522
30937
|
else {
|
|
30523
|
-
this.
|
|
30938
|
+
this.calciteInternalTabsFocusPrevious.emit();
|
|
30524
30939
|
}
|
|
30525
30940
|
break;
|
|
30526
30941
|
case "ArrowLeft":
|
|
30527
30942
|
if (getElementDir(this.el) === "ltr") {
|
|
30528
|
-
this.
|
|
30943
|
+
this.calciteInternalTabsFocusPrevious.emit();
|
|
30529
30944
|
}
|
|
30530
30945
|
else {
|
|
30531
|
-
this.
|
|
30946
|
+
this.calciteInternalTabsFocusNext.emit();
|
|
30532
30947
|
}
|
|
30533
30948
|
break;
|
|
30534
30949
|
}
|
|
@@ -30551,6 +30966,8 @@ class TabTitle {
|
|
|
30551
30966
|
return this.tab ? this.tab : this.getTabIndex();
|
|
30552
30967
|
}
|
|
30553
30968
|
/**
|
|
30969
|
+
* @param tabIds
|
|
30970
|
+
* @param titleIds
|
|
30554
30971
|
* @internal
|
|
30555
30972
|
*/
|
|
30556
30973
|
async updateAriaInfo(tabIds = [], titleIds = []) {
|
|
@@ -30608,7 +31025,7 @@ const SLOTS$4 = {
|
|
|
30608
31025
|
tabNav: "tab-nav"
|
|
30609
31026
|
};
|
|
30610
31027
|
|
|
30611
|
-
const tabsCss = "@-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*/.sc-calcite-tabs: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*/.calcite-animate.sc-calcite-tabs{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*/.calcite-animate__in.sc-calcite-tabs{-webkit-animation-name:in;animation-name:in}/*!@.calcite-animate__in-down*/.calcite-animate__in-down.sc-calcite-tabs{-webkit-animation-name:in-down;animation-name:in-down}/*!@.calcite-animate__in-up*/.calcite-animate__in-up.sc-calcite-tabs{-webkit-animation-name:in-up;animation-name:in-up}/*!@.calcite-animate__in-scale*/.calcite-animate__in-scale.sc-calcite-tabs{-webkit-animation-name:in-scale;animation-name:in-scale}/*!@:root*/.sc-calcite-tabs:root{--calcite-popper-transition:var(--calcite-animation-timing)}/*!@:host([hidden])*/[hidden].sc-calcite-tabs-h{display:none}/*!@:host*/.sc-calcite-tabs-h{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column}/*!@:host([bordered])*/[bordered].sc-calcite-tabs-h{-webkit-box-shadow:inset 0 1px 0 var(--calcite-ui-border-1);box-shadow:inset 0 1px 0 var(--calcite-ui-border-1);background-color:var(--calcite-ui-foreground-1)}/*!@:host([bordered]:not([position=below])) ::slotted(calcite-tab-nav)*/.sc-calcite-tabs-h[bordered]:not([position=below]) .sc-calcite-tabs-s>calcite-tab-nav{margin-bottom:-1px}/*!@:host([bordered][position=below]) ::slotted(calcite-tab-nav)*/.sc-calcite-tabs-h[bordered][position=below] .sc-calcite-tabs-s>calcite-tab-nav{margin-top:-1px}/*!@:host([bordered][position=below])*/[bordered][position=below].sc-calcite-tabs-h{-webkit-box-shadow:inset 0 1px 0 var(--calcite-ui-border-1), inset 0 -1px 0 var(--calcite-ui-border-1);box-shadow:inset 0 1px 0 var(--calcite-ui-border-1), inset 0 -1px 0 var(--calcite-ui-border-1)}/*!@:host([bordered]) section*/[bordered].sc-calcite-tabs-h section.sc-calcite-tabs{border-width:1px;border-style:solid;border-color:var(--calcite-ui-border-1)}/*!@:host([bordered][scale=s]) section*/[bordered][scale=s].sc-calcite-tabs-h section.sc-calcite-tabs{padding:0.75rem}/*!@:host([bordered][scale=m]) section*/[bordered][scale=m].sc-calcite-tabs-h section.sc-calcite-tabs{padding:0.5rem}/*!@:host([bordered][scale=l]) section*/[bordered][scale=l].sc-calcite-tabs-h section.sc-calcite-tabs{padding:1rem}/*!@:host([position=below])*/[position=below].sc-calcite-tabs-h{-ms-flex-direction:column-reverse;flex-direction:column-reverse}/*!@section*/section.sc-calcite-tabs{display:-ms-flexbox;display:flex;-ms-flex-positive:1;flex-grow:1;overflow:hidden;border-top-width:1px;border-top-color:var(--calcite-ui-border-1);border-top-style:solid}/*!@:host([position=below]) section*/[position=below].sc-calcite-tabs-h section.sc-calcite-tabs{-ms-flex-direction:column-reverse;flex-direction:column-reverse;border-top-width:0px;border-bottom-width:1px;border-bottom-color:var(--calcite-ui-border-1)}/*!@:host([position=below]:not([bordered])) section*/[position=below].sc-calcite-tabs-h:not([bordered]) section.sc-calcite-tabs{border-bottom-style:solid}";
|
|
31028
|
+
const tabsCss = "@-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*/.sc-calcite-tabs: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*/.calcite-animate.sc-calcite-tabs{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*/.calcite-animate__in.sc-calcite-tabs{-webkit-animation-name:in;animation-name:in}/*!@.calcite-animate__in-down*/.calcite-animate__in-down.sc-calcite-tabs{-webkit-animation-name:in-down;animation-name:in-down}/*!@.calcite-animate__in-up*/.calcite-animate__in-up.sc-calcite-tabs{-webkit-animation-name:in-up;animation-name:in-up}/*!@.calcite-animate__in-scale*/.calcite-animate__in-scale.sc-calcite-tabs{-webkit-animation-name:in-scale;animation-name:in-scale}/*!@:root*/.sc-calcite-tabs:root{--calcite-popper-transition:var(--calcite-animation-timing)}/*!@:host([hidden])*/[hidden].sc-calcite-tabs-h{display:none}/*!@:host*/.sc-calcite-tabs-h{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column}/*!@:host([bordered])*/[bordered].sc-calcite-tabs-h{-webkit-box-shadow:inset 0 1px 0 var(--calcite-ui-border-1);box-shadow:inset 0 1px 0 var(--calcite-ui-border-1);background-color:var(--calcite-ui-foreground-1)}/*!@:host([bordered]:not([position=below])) ::slotted(calcite-tab-nav)*/.sc-calcite-tabs-h[bordered]:not([position=below]) .sc-calcite-tabs-s>calcite-tab-nav{margin-bottom:-1px}/*!@:host([bordered][position=below]) ::slotted(calcite-tab-nav)*/.sc-calcite-tabs-h[bordered][position=below] .sc-calcite-tabs-s>calcite-tab-nav{margin-top:-1px}/*!@:host([bordered][position=below])*/[bordered][position=below].sc-calcite-tabs-h{-webkit-box-shadow:inset 0 1px 0 var(--calcite-ui-border-1), inset 0 -1px 0 var(--calcite-ui-border-1);box-shadow:inset 0 1px 0 var(--calcite-ui-border-1), inset 0 -1px 0 var(--calcite-ui-border-1)}/*!@:host([bordered]) section*/[bordered].sc-calcite-tabs-h section.sc-calcite-tabs{border-width:1px;border-style:solid;border-color:var(--calcite-ui-border-1)}/*!@:host([bordered][scale=s]) section*/[bordered][scale=s].sc-calcite-tabs-h section.sc-calcite-tabs{padding:0.75rem}/*!@:host([bordered][scale=m]) section*/[bordered][scale=m].sc-calcite-tabs-h section.sc-calcite-tabs{padding:0.5rem}/*!@:host([bordered][scale=l]) section*/[bordered][scale=l].sc-calcite-tabs-h section.sc-calcite-tabs{padding:1rem}/*!@:host([position=below])*/[position=below].sc-calcite-tabs-h{-ms-flex-direction:column-reverse;flex-direction:column-reverse}/*!@section*/section.sc-calcite-tabs{display:-ms-flexbox;display:flex;-ms-flex-positive:1;flex-grow:1;overflow:hidden;border-top-width:1px;border-top-color:var(--calcite-ui-border-1);border-top-style:solid}/*!@:host([position=below]) section*/[position=below].sc-calcite-tabs-h section.sc-calcite-tabs{-ms-flex-direction:column-reverse;flex-direction:column-reverse;border-top-width:0px;border-bottom-width:1px;border-bottom-color:var(--calcite-ui-border-1)}/*!@:host([position=below]:not([bordered])) section*/[position=below].sc-calcite-tabs-h:not([bordered]) section.sc-calcite-tabs{border-bottom-style:solid}@media (forced-colors: active){/*!@:host([bordered]) section*/[bordered].sc-calcite-tabs-h section.sc-calcite-tabs{border-top-width:0px;border-bottom-width:1px}/*!@:host([position=below][bordered]) section*/[position=below][bordered].sc-calcite-tabs-h section.sc-calcite-tabs{border-top-width:1px;border-bottom-width:0px}}";
|
|
30612
31029
|
|
|
30613
31030
|
/**
|
|
30614
31031
|
* @slot - A slot for adding `calcite-tab`s.
|
|
@@ -30679,14 +31096,16 @@ class Tabs {
|
|
|
30679
31096
|
//
|
|
30680
31097
|
//--------------------------------------------------------------------------
|
|
30681
31098
|
/**
|
|
31099
|
+
* @param e
|
|
30682
31100
|
* @internal
|
|
30683
31101
|
*/
|
|
30684
|
-
|
|
31102
|
+
calciteInternalTabTitleRegister(e) {
|
|
30685
31103
|
this.titles = [...this.titles, e.target];
|
|
30686
31104
|
this.registryHandler();
|
|
30687
31105
|
e.stopPropagation();
|
|
30688
31106
|
}
|
|
30689
31107
|
/**
|
|
31108
|
+
* @param e
|
|
30690
31109
|
* @internal
|
|
30691
31110
|
*/
|
|
30692
31111
|
calciteTabTitleUnregister(e) {
|
|
@@ -30695,14 +31114,16 @@ class Tabs {
|
|
|
30695
31114
|
e.stopPropagation();
|
|
30696
31115
|
}
|
|
30697
31116
|
/**
|
|
31117
|
+
* @param e
|
|
30698
31118
|
* @internal
|
|
30699
31119
|
*/
|
|
30700
|
-
|
|
31120
|
+
calciteInternalTabRegister(e) {
|
|
30701
31121
|
this.tabs = [...this.tabs, e.target];
|
|
30702
31122
|
this.registryHandler();
|
|
30703
31123
|
e.stopPropagation();
|
|
30704
31124
|
}
|
|
30705
31125
|
/**
|
|
31126
|
+
* @param e
|
|
30706
31127
|
* @internal
|
|
30707
31128
|
*/
|
|
30708
31129
|
calciteTabUnregister(e) {
|
|
@@ -30769,7 +31190,7 @@ class Tabs {
|
|
|
30769
31190
|
"titles": [32],
|
|
30770
31191
|
"tabs": [32]
|
|
30771
31192
|
},
|
|
30772
|
-
"$listeners$": [[0, "
|
|
31193
|
+
"$listeners$": [[0, "calciteInternalTabTitleRegister", "calciteInternalTabTitleRegister"], [16, "calciteTabTitleUnregister", "calciteTabTitleUnregister"], [0, "calciteInternalTabRegister", "calciteInternalTabRegister"], [16, "calciteTabUnregister", "calciteTabUnregister"]],
|
|
30773
31194
|
"$lazyBundleId$": "-",
|
|
30774
31195
|
"$attrsToReflect$": [["layout", "layout"], ["position", "position"], ["scale", "scale"], ["bordered", "bordered"]]
|
|
30775
31196
|
}; }
|
|
@@ -30804,6 +31225,7 @@ class Tile {
|
|
|
30804
31225
|
this.embed = false;
|
|
30805
31226
|
/**
|
|
30806
31227
|
* The focused state of the tile.
|
|
31228
|
+
*
|
|
30807
31229
|
* @internal
|
|
30808
31230
|
*/
|
|
30809
31231
|
this.focused = false;
|
|
@@ -31181,64 +31603,89 @@ function capitalize(str) {
|
|
|
31181
31603
|
class TimePicker {
|
|
31182
31604
|
constructor(hostRef) {
|
|
31183
31605
|
registerInstance(this, hostRef);
|
|
31184
|
-
this.
|
|
31185
|
-
this.
|
|
31186
|
-
this.
|
|
31606
|
+
this.calciteInternalTimePickerBlur = createEvent(this, "calciteInternalTimePickerBlur", 7);
|
|
31607
|
+
this.calciteInternalTimePickerChange = createEvent(this, "calciteInternalTimePickerChange", 7);
|
|
31608
|
+
this.calciteInternalTimePickerFocus = createEvent(this, "calciteInternalTimePickerFocus", 7);
|
|
31187
31609
|
//--------------------------------------------------------------------------
|
|
31188
31610
|
//
|
|
31189
31611
|
// Properties
|
|
31190
31612
|
//
|
|
31191
31613
|
//--------------------------------------------------------------------------
|
|
31192
|
-
/**
|
|
31614
|
+
/**
|
|
31615
|
+
* aria-label for the hour input
|
|
31616
|
+
*
|
|
31193
31617
|
* @default "Hour"
|
|
31194
31618
|
*/
|
|
31195
31619
|
this.intlHour = TEXT$2.hour;
|
|
31196
|
-
/**
|
|
31620
|
+
/**
|
|
31621
|
+
* aria-label for the hour down button
|
|
31622
|
+
*
|
|
31197
31623
|
* @default "Decrease hour"
|
|
31198
31624
|
*/
|
|
31199
31625
|
this.intlHourDown = TEXT$2.hourDown;
|
|
31200
|
-
/**
|
|
31626
|
+
/**
|
|
31627
|
+
* aria-label for the hour up button
|
|
31628
|
+
*
|
|
31201
31629
|
* @default "Increase hour"
|
|
31202
31630
|
*/
|
|
31203
31631
|
this.intlHourUp = TEXT$2.hourUp;
|
|
31204
|
-
/**
|
|
31632
|
+
/**
|
|
31633
|
+
* aria-label for the meridiem (am/pm) input
|
|
31634
|
+
*
|
|
31205
31635
|
* @default "AM/PM"
|
|
31206
31636
|
*/
|
|
31207
31637
|
this.intlMeridiem = TEXT$2.meridiem;
|
|
31208
|
-
/**
|
|
31638
|
+
/**
|
|
31639
|
+
* aria-label for the meridiem (am/pm) down button
|
|
31640
|
+
*
|
|
31209
31641
|
* @default "Decrease AM/PM"
|
|
31210
31642
|
*/
|
|
31211
31643
|
this.intlMeridiemDown = TEXT$2.meridiemDown;
|
|
31212
|
-
/**
|
|
31644
|
+
/**
|
|
31645
|
+
* aria-label for the meridiem (am/pm) up button
|
|
31646
|
+
*
|
|
31213
31647
|
* @default "Increase AM/PM"
|
|
31214
31648
|
*/
|
|
31215
31649
|
this.intlMeridiemUp = TEXT$2.meridiemUp;
|
|
31216
|
-
/**
|
|
31650
|
+
/**
|
|
31651
|
+
* aria-label for the minute input
|
|
31652
|
+
*
|
|
31217
31653
|
* @default "Minute"
|
|
31218
31654
|
*/
|
|
31219
31655
|
this.intlMinute = TEXT$2.minute;
|
|
31220
|
-
/**
|
|
31656
|
+
/**
|
|
31657
|
+
* aria-label for the minute down button
|
|
31658
|
+
*
|
|
31221
31659
|
* @default "Decrease minute"
|
|
31222
31660
|
*/
|
|
31223
31661
|
this.intlMinuteDown = TEXT$2.minuteDown;
|
|
31224
|
-
/**
|
|
31662
|
+
/**
|
|
31663
|
+
* aria-label for the minute up button
|
|
31664
|
+
*
|
|
31225
31665
|
* @default "Increase minute"
|
|
31226
31666
|
*/
|
|
31227
31667
|
this.intlMinuteUp = TEXT$2.minuteUp;
|
|
31228
|
-
/**
|
|
31668
|
+
/**
|
|
31669
|
+
* aria-label for the second input
|
|
31670
|
+
*
|
|
31229
31671
|
* @default "Second"
|
|
31230
31672
|
*/
|
|
31231
31673
|
this.intlSecond = TEXT$2.second;
|
|
31232
|
-
/**
|
|
31674
|
+
/**
|
|
31675
|
+
* aria-label for the second down button
|
|
31676
|
+
*
|
|
31233
31677
|
* @default "Decrease second"
|
|
31234
31678
|
*/
|
|
31235
31679
|
this.intlSecondDown = TEXT$2.secondDown;
|
|
31236
|
-
/**
|
|
31680
|
+
/**
|
|
31681
|
+
* aria-label for the second up button
|
|
31682
|
+
*
|
|
31237
31683
|
* @default "Increase second"
|
|
31238
31684
|
*/
|
|
31239
31685
|
this.intlSecondUp = TEXT$2.secondUp;
|
|
31240
31686
|
/**
|
|
31241
31687
|
* BCP 47 language tag for desired language and country format
|
|
31688
|
+
*
|
|
31242
31689
|
* @internal
|
|
31243
31690
|
*/
|
|
31244
31691
|
this.locale = document.documentElement.lang || navigator.language || "en";
|
|
@@ -31536,7 +31983,7 @@ class TimePicker {
|
|
|
31536
31983
|
this.value = null;
|
|
31537
31984
|
}
|
|
31538
31985
|
if (emit) {
|
|
31539
|
-
this.
|
|
31986
|
+
this.calciteInternalTimePickerChange.emit();
|
|
31540
31987
|
}
|
|
31541
31988
|
};
|
|
31542
31989
|
this.setValuePart = (key, value, emit = true) => {
|
|
@@ -31575,7 +32022,7 @@ class TimePicker {
|
|
|
31575
32022
|
? ((_a = localizeTimeStringToParts(this.value, this.locale)) === null || _a === void 0 ? void 0 : _a.localizedMeridiem) || null
|
|
31576
32023
|
: localizeTimePart(this.meridiem, "meridiem", this.locale);
|
|
31577
32024
|
if (emit) {
|
|
31578
|
-
this.
|
|
32025
|
+
this.calciteInternalTimePickerChange.emit();
|
|
31579
32026
|
}
|
|
31580
32027
|
};
|
|
31581
32028
|
}
|
|
@@ -31592,10 +32039,10 @@ class TimePicker {
|
|
|
31592
32039
|
//
|
|
31593
32040
|
//--------------------------------------------------------------------------
|
|
31594
32041
|
hostBlurHandler() {
|
|
31595
|
-
this.
|
|
32042
|
+
this.calciteInternalTimePickerBlur.emit();
|
|
31596
32043
|
}
|
|
31597
32044
|
hostFocusHandler() {
|
|
31598
|
-
this.
|
|
32045
|
+
this.calciteInternalTimePickerFocus.emit();
|
|
31599
32046
|
}
|
|
31600
32047
|
keyDownHandler(event) {
|
|
31601
32048
|
const key = event.key;
|
|
@@ -31651,7 +32098,11 @@ class TimePicker {
|
|
|
31651
32098
|
// Public Methods
|
|
31652
32099
|
//
|
|
31653
32100
|
//--------------------------------------------------------------------------
|
|
31654
|
-
/**
|
|
32101
|
+
/**
|
|
32102
|
+
* Sets focus on the component.
|
|
32103
|
+
*
|
|
32104
|
+
* @param target
|
|
32105
|
+
*/
|
|
31655
32106
|
async setFocus(target) {
|
|
31656
32107
|
var _a;
|
|
31657
32108
|
(_a = this[`${target || "hour"}El`]) === null || _a === void 0 ? void 0 : _a.focus();
|
|
@@ -32320,6 +32771,7 @@ class Tooltip {
|
|
|
32320
32771
|
registerInstance(this, hostRef);
|
|
32321
32772
|
/**
|
|
32322
32773
|
* Offset the position of the tooltip away from the reference element.
|
|
32774
|
+
*
|
|
32323
32775
|
* @default 6
|
|
32324
32776
|
*/
|
|
32325
32777
|
this.offsetDistance = defaultOffsetDistance;
|
|
@@ -32335,6 +32787,7 @@ class Tooltip {
|
|
|
32335
32787
|
this.overlayPositioning = "absolute";
|
|
32336
32788
|
/**
|
|
32337
32789
|
* Determines where the component will be positioned relative to the referenceElement.
|
|
32790
|
+
*
|
|
32338
32791
|
* @see [PopperPlacement](https://github.com/Esri/calcite-components/blob/master/src/utils/popper.ts#L25)
|
|
32339
32792
|
*/
|
|
32340
32793
|
this.placement = "auto";
|
|
@@ -32531,6 +32984,7 @@ class TooltipManager {
|
|
|
32531
32984
|
// --------------------------------------------------------------------------
|
|
32532
32985
|
/**
|
|
32533
32986
|
* CSS Selector to match reference elements for tooltips. Reference elements will be identified by this selector in order to open their associated tooltip.
|
|
32987
|
+
*
|
|
32534
32988
|
* @default `[data-calcite-tooltip-reference]`
|
|
32535
32989
|
*/
|
|
32536
32990
|
this.selector = "[data-calcite-tooltip-reference]";
|
|
@@ -32568,7 +33022,7 @@ var TreeSelectionMode;
|
|
|
32568
33022
|
const treeCss = "@-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*/.sc-calcite-tree: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*/.calcite-animate.sc-calcite-tree{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*/.calcite-animate__in.sc-calcite-tree{-webkit-animation-name:in;animation-name:in}/*!@.calcite-animate__in-down*/.calcite-animate__in-down.sc-calcite-tree{-webkit-animation-name:in-down;animation-name:in-down}/*!@.calcite-animate__in-up*/.calcite-animate__in-up.sc-calcite-tree{-webkit-animation-name:in-up;animation-name:in-up}/*!@.calcite-animate__in-scale*/.calcite-animate__in-scale.sc-calcite-tree{-webkit-animation-name:in-scale;animation-name:in-scale}/*!@:root*/.sc-calcite-tree:root{--calcite-popper-transition:var(--calcite-animation-timing)}/*!@:host([hidden])*/[hidden].sc-calcite-tree-h{display:none}/*!@:host*/.sc-calcite-tree-h{display:block;outline:2px solid transparent;outline-offset:2px}";
|
|
32569
33023
|
|
|
32570
33024
|
/**
|
|
32571
|
-
* @slot - A slot for calcite-tree-item elements.
|
|
33025
|
+
* @slot - A slot for `calcite-tree-item` elements.
|
|
32572
33026
|
*/
|
|
32573
33027
|
class Tree {
|
|
32574
33028
|
constructor(hostRef) {
|
|
@@ -32581,13 +33035,17 @@ class Tree {
|
|
|
32581
33035
|
//--------------------------------------------------------------------------
|
|
32582
33036
|
/** Display indentation guide lines. */
|
|
32583
33037
|
this.lines = false;
|
|
32584
|
-
/**
|
|
33038
|
+
/**
|
|
33039
|
+
* Display input
|
|
33040
|
+
*
|
|
32585
33041
|
* @deprecated Use "ancestors" selection-mode for checkbox input.
|
|
32586
33042
|
*/
|
|
32587
33043
|
this.inputEnabled = false;
|
|
32588
33044
|
/** Specify the scale of the tree. */
|
|
32589
33045
|
this.scale = "m";
|
|
32590
|
-
/**
|
|
33046
|
+
/**
|
|
33047
|
+
* Customize how tree selection works.
|
|
33048
|
+
*
|
|
32591
33049
|
* @default "single"
|
|
32592
33050
|
* @see [TreeSelectionMode](https://github.com/Esri/calcite-components/blob/master/src/components/tree/interfaces.ts#L5)
|
|
32593
33051
|
*/
|
|
@@ -32707,6 +33165,7 @@ class Tree {
|
|
|
32707
33165
|
this.calciteTreeSelect.emit({
|
|
32708
33166
|
selected: nodeListToArray(this.el.querySelectorAll("calcite-tree-item")).filter((i) => i.selected)
|
|
32709
33167
|
});
|
|
33168
|
+
e.stopPropagation();
|
|
32710
33169
|
}
|
|
32711
33170
|
keyDownHandler(event) {
|
|
32712
33171
|
var _a;
|
|
@@ -32818,7 +33277,7 @@ class Tree {
|
|
|
32818
33277
|
"scale": [1537],
|
|
32819
33278
|
"selectionMode": [1537, "selection-mode"]
|
|
32820
33279
|
},
|
|
32821
|
-
"$listeners$": [[0, "focus", "onFocus"], [0, "focusin", "onFocusIn"], [0, "focusout", "onFocusOut"], [0, "
|
|
33280
|
+
"$listeners$": [[0, "focus", "onFocus"], [0, "focusin", "onFocusIn"], [0, "focusout", "onFocusOut"], [0, "calciteInternalTreeItemSelect", "onClick"], [0, "keydown", "keyDownHandler"]],
|
|
32822
33281
|
"$lazyBundleId$": "-",
|
|
32823
33282
|
"$attrsToReflect$": [["lines", "lines"], ["child", "child"], ["scale", "scale"], ["selectionMode", "selection-mode"]]
|
|
32824
33283
|
}; }
|
|
@@ -32846,12 +33305,12 @@ const treeItemCss = "@-webkit-keyframes in{0%{opacity:0}100%{opacity:1}}@keyfram
|
|
|
32846
33305
|
|
|
32847
33306
|
/**
|
|
32848
33307
|
* @slot - A slot for adding content to the item.
|
|
32849
|
-
* @slot children - A slot for adding nested calcite-tree elements.
|
|
33308
|
+
* @slot children - A slot for adding nested `calcite-tree` elements.
|
|
32850
33309
|
*/
|
|
32851
33310
|
class TreeItem {
|
|
32852
33311
|
constructor(hostRef) {
|
|
32853
33312
|
registerInstance(this, hostRef);
|
|
32854
|
-
this.
|
|
33313
|
+
this.calciteInternalTreeItemSelect = createEvent(this, "calciteInternalTreeItemSelect", 7);
|
|
32855
33314
|
//--------------------------------------------------------------------------
|
|
32856
33315
|
//
|
|
32857
33316
|
// Properties
|
|
@@ -32861,11 +33320,17 @@ class TreeItem {
|
|
|
32861
33320
|
this.selected = false;
|
|
32862
33321
|
/** Expanded state of the item. */
|
|
32863
33322
|
this.expanded = false;
|
|
32864
|
-
/**
|
|
33323
|
+
/**
|
|
33324
|
+
* @internal
|
|
33325
|
+
*/
|
|
32865
33326
|
this.parentExpanded = false;
|
|
32866
|
-
/**
|
|
33327
|
+
/**
|
|
33328
|
+
* @internal
|
|
33329
|
+
*/
|
|
32867
33330
|
this.depth = -1;
|
|
32868
|
-
/**
|
|
33331
|
+
/**
|
|
33332
|
+
* @internal
|
|
33333
|
+
*/
|
|
32869
33334
|
this.hasChildren = null;
|
|
32870
33335
|
this.iconClickHandler = (event) => {
|
|
32871
33336
|
event.stopPropagation();
|
|
@@ -32990,7 +33455,7 @@ class TreeItem {
|
|
|
32990
33455
|
const target = link.target === "" ? "_self" : link.target;
|
|
32991
33456
|
window.open(link.href, target);
|
|
32992
33457
|
}
|
|
32993
|
-
this.
|
|
33458
|
+
this.calciteInternalTreeItemSelect.emit({
|
|
32994
33459
|
modifyCurrentSelection: this.selectionMode === TreeSelectionMode.Ancestors || this.isSelectionMultiLike,
|
|
32995
33460
|
forceToggle: false
|
|
32996
33461
|
});
|
|
@@ -32999,7 +33464,7 @@ class TreeItem {
|
|
|
32999
33464
|
let root;
|
|
33000
33465
|
switch (e.key) {
|
|
33001
33466
|
case " ":
|
|
33002
|
-
this.
|
|
33467
|
+
this.calciteInternalTreeItemSelect.emit({
|
|
33003
33468
|
modifyCurrentSelection: this.isSelectionMultiLike,
|
|
33004
33469
|
forceToggle: false
|
|
33005
33470
|
});
|
|
@@ -33013,7 +33478,7 @@ class TreeItem {
|
|
|
33013
33478
|
this.selected = true;
|
|
33014
33479
|
}
|
|
33015
33480
|
else {
|
|
33016
|
-
this.
|
|
33481
|
+
this.calciteInternalTreeItemSelect.emit({
|
|
33017
33482
|
modifyCurrentSelection: this.isSelectionMultiLike,
|
|
33018
33483
|
forceToggle: false
|
|
33019
33484
|
});
|
|
@@ -33076,7 +33541,7 @@ var ICON_TYPES;
|
|
|
33076
33541
|
const valueListCss = "@-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*/.sc-calcite-value-list: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*/.calcite-animate.sc-calcite-value-list{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*/.calcite-animate__in.sc-calcite-value-list{-webkit-animation-name:in;animation-name:in}/*!@.calcite-animate__in-down*/.calcite-animate__in-down.sc-calcite-value-list{-webkit-animation-name:in-down;animation-name:in-down}/*!@.calcite-animate__in-up*/.calcite-animate__in-up.sc-calcite-value-list{-webkit-animation-name:in-up;animation-name:in-up}/*!@.calcite-animate__in-scale*/.calcite-animate__in-scale.sc-calcite-value-list{-webkit-animation-name:in-scale;animation-name:in-scale}/*!@:root*/.sc-calcite-value-list:root{--calcite-popper-transition:var(--calcite-animation-timing)}/*!@:host([hidden])*/[hidden].sc-calcite-value-list-h{display:none}/*!@:host*/.sc-calcite-value-list-h{position:relative;-webkit-box-sizing:border-box;box-sizing:border-box;display:-ms-flexbox;display:flex;-ms-flex-negative:0;flex-shrink:0;-ms-flex-positive:0;flex-grow:0;-ms-flex-direction:column;flex-direction:column;-ms-flex-align:stretch;align-items:stretch;background-color:transparent;font-size:var(--calcite-font-size--1);color:var(--calcite-ui-text-2)}/*!@:host **/.sc-calcite-value-list-h *.sc-calcite-value-list{-webkit-box-sizing:border-box;box-sizing:border-box}/*!@:host([disabled])*/[disabled].sc-calcite-value-list-h{pointer-events:none;cursor:default;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;opacity:var(--calcite-ui-opacity-disabled)}/*!@:host([disabled]) ::slotted([calcite-hydrated][disabled]),\n:host([disabled]) [calcite-hydrated][disabled]*/.sc-calcite-value-list-h[disabled] .sc-calcite-value-list-s>[calcite-hydrated][disabled],[disabled].sc-calcite-value-list-h [calcite-hydrated][disabled].sc-calcite-value-list{opacity:1}/*!@calcite-value-list-item:last-of-type*/calcite-value-list-item.sc-calcite-value-list:last-of-type{--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;-webkit-box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow)}/*!@:host([filter-enabled]) header*/[filter-enabled].sc-calcite-value-list-h header.sc-calcite-value-list{margin-bottom:0.25rem;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:end;justify-content:flex-end;background-color:var(--calcite-ui-foreground-1);--tw-shadow:0 1px 0 var(--calcite-ui-border-3);--tw-shadow-colored:0 1px 0 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)}/*!@:host([filter-enabled]) header.sticky-pos*/[filter-enabled].sc-calcite-value-list-h header.sticky-pos.sc-calcite-value-list{position:-webkit-sticky;position:sticky;top:0px;z-index:10}/*!@calcite-filter*/calcite-filter.sc-calcite-value-list{margin-bottom:1px}";
|
|
33077
33542
|
|
|
33078
33543
|
/**
|
|
33079
|
-
* @slot - A slot for adding calcite-value-list-item elements. List items are displayed as a vertical list.
|
|
33544
|
+
* @slot - A slot for adding `calcite-value-list-item` elements. List items are displayed as a vertical list.
|
|
33080
33545
|
* @slot menu-actions - A slot for adding a button and menu combination for performing actions, such as sorting.
|
|
33081
33546
|
*/
|
|
33082
33547
|
class ValueList {
|
|
@@ -33196,12 +33661,13 @@ class ValueList {
|
|
|
33196
33661
|
calciteListItemChangeHandler(event) {
|
|
33197
33662
|
calciteListItemChangeHandler.call(this, event);
|
|
33198
33663
|
}
|
|
33199
|
-
|
|
33664
|
+
calciteInternalListItemPropsChangeHandler(event) {
|
|
33200
33665
|
event.stopPropagation();
|
|
33201
33666
|
this.setUpFilter();
|
|
33202
33667
|
}
|
|
33203
|
-
|
|
33204
|
-
|
|
33668
|
+
calciteInternalListItemValueChangeHandler(event) {
|
|
33669
|
+
calciteInternalListItemValueChangeHandler.call(this, event);
|
|
33670
|
+
event.stopPropagation();
|
|
33205
33671
|
}
|
|
33206
33672
|
// --------------------------------------------------------------------------
|
|
33207
33673
|
//
|
|
@@ -33250,7 +33716,11 @@ class ValueList {
|
|
|
33250
33716
|
async getSelectedItems() {
|
|
33251
33717
|
return this.selectedValues;
|
|
33252
33718
|
}
|
|
33253
|
-
/**
|
|
33719
|
+
/**
|
|
33720
|
+
* Sets focus on the component.
|
|
33721
|
+
*
|
|
33722
|
+
* @param focusId
|
|
33723
|
+
*/
|
|
33254
33724
|
async setFocus(focusId) {
|
|
33255
33725
|
return setFocus.call(this, focusId);
|
|
33256
33726
|
}
|
|
@@ -33288,7 +33758,7 @@ class ValueList {
|
|
|
33288
33758
|
"getSelectedItems": [64],
|
|
33289
33759
|
"setFocus": [64]
|
|
33290
33760
|
},
|
|
33291
|
-
"$listeners$": [[0, "focusout", "calciteListFocusOutHandler"], [0, "calciteListItemRemove", "calciteListItemRemoveHandler"], [0, "calciteListItemChange", "calciteListItemChangeHandler"], [0, "
|
|
33761
|
+
"$listeners$": [[0, "focusout", "calciteListFocusOutHandler"], [0, "calciteListItemRemove", "calciteListItemRemoveHandler"], [0, "calciteListItemChange", "calciteListItemChangeHandler"], [0, "calciteInternalListItemPropsChange", "calciteInternalListItemPropsChangeHandler"], [0, "calciteInternalListItemValueChange", "calciteInternalListItemValueChangeHandler"]],
|
|
33292
33762
|
"$lazyBundleId$": "-",
|
|
33293
33763
|
"$attrsToReflect$": [["disabled", "disabled"], ["dragEnabled", "drag-enabled"], ["filterEnabled", "filter-enabled"], ["filterPlaceholder", "filter-placeholder"], ["loading", "loading"], ["multiple", "multiple"]]
|
|
33294
33764
|
}; }
|
|
@@ -33317,7 +33787,7 @@ class ValueListItem {
|
|
|
33317
33787
|
*/
|
|
33318
33788
|
this.disabled = false;
|
|
33319
33789
|
/**
|
|
33320
|
-
* @internal
|
|
33790
|
+
* @internal
|
|
33321
33791
|
*/
|
|
33322
33792
|
this.disableDeselect = false;
|
|
33323
33793
|
/**
|
|
@@ -33325,11 +33795,12 @@ class ValueListItem {
|
|
|
33325
33795
|
*/
|
|
33326
33796
|
this.nonInteractive = false;
|
|
33327
33797
|
/**
|
|
33328
|
-
* @internal
|
|
33798
|
+
* @internal
|
|
33329
33799
|
*/
|
|
33330
33800
|
this.handleActivated = false;
|
|
33331
33801
|
/**
|
|
33332
33802
|
* Determines the icon SVG symbol that will be shown. Options are circle, square, grip or null.
|
|
33803
|
+
*
|
|
33333
33804
|
* @see [ICON_TYPES](https://github.com/Esri/calcite-components/blob/master/src/components/pick-list/resources.ts#L5)
|
|
33334
33805
|
*/
|
|
33335
33806
|
this.icon = null;
|
|
@@ -33383,6 +33854,8 @@ class ValueListItem {
|
|
|
33383
33854
|
/**
|
|
33384
33855
|
* Toggle the selection state. By default this won't trigger an event.
|
|
33385
33856
|
* The first argument allows the value to be coerced, rather than swapping values.
|
|
33857
|
+
*
|
|
33858
|
+
* @param coerce
|
|
33386
33859
|
*/
|
|
33387
33860
|
async toggleSelected(coerce) {
|
|
33388
33861
|
this.pickListItem.toggleSelected(coerce);
|