@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
|
@@ -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
|
import { HTMLElement as HTMLElement$1, createEvent, h, Host, Build, forceUpdate, Fragment, getAssetPath, proxyCustomElement } from '@stencil/core/internal/client';
|
|
7
7
|
export { setAssetPath, setPlatformOptions } from '@stencil/core/internal/client';
|
|
@@ -13,7 +13,7 @@ const Accordion = class extends HTMLElement$1 {
|
|
|
13
13
|
super();
|
|
14
14
|
this.__registerHost();
|
|
15
15
|
this.__attachShadow();
|
|
16
|
-
this.
|
|
16
|
+
this.calciteInternalAccordionChange = createEvent(this, "calciteInternalAccordionChange", 7);
|
|
17
17
|
//--------------------------------------------------------------------------
|
|
18
18
|
//
|
|
19
19
|
// Public Properties
|
|
@@ -27,8 +27,10 @@ const Accordion = class extends HTMLElement$1 {
|
|
|
27
27
|
this.iconType = "chevron";
|
|
28
28
|
/** specify the scale of accordion, defaults to m */
|
|
29
29
|
this.scale = "m";
|
|
30
|
-
/**
|
|
31
|
-
*
|
|
30
|
+
/**
|
|
31
|
+
* specify the selection mode - multi (allow any number of open items), single (allow one open item),
|
|
32
|
+
* or single-persist (allow and require one open item), defaults to multi
|
|
33
|
+
*/
|
|
32
34
|
this.selectionMode = "multi";
|
|
33
35
|
//--------------------------------------------------------------------------
|
|
34
36
|
//
|
|
@@ -64,7 +66,7 @@ const Accordion = class extends HTMLElement$1 {
|
|
|
64
66
|
// Event Listeners
|
|
65
67
|
//
|
|
66
68
|
//--------------------------------------------------------------------------
|
|
67
|
-
|
|
69
|
+
calciteInternalAccordionItemKeyEvent(e) {
|
|
68
70
|
const item = e.detail.item;
|
|
69
71
|
const parent = e.detail.parent;
|
|
70
72
|
if (this.el === parent) {
|
|
@@ -97,6 +99,7 @@ const Accordion = class extends HTMLElement$1 {
|
|
|
97
99
|
break;
|
|
98
100
|
}
|
|
99
101
|
}
|
|
102
|
+
e.stopPropagation();
|
|
100
103
|
}
|
|
101
104
|
registerCalciteAccordionItem(e) {
|
|
102
105
|
const item = {
|
|
@@ -107,12 +110,14 @@ const Accordion = class extends HTMLElement$1 {
|
|
|
107
110
|
if (this.el === item.parent) {
|
|
108
111
|
this.items.push(item);
|
|
109
112
|
}
|
|
113
|
+
e.stopPropagation();
|
|
110
114
|
}
|
|
111
115
|
updateActiveItemOnChange(event) {
|
|
112
116
|
this.requestedAccordionItem = event.detail.requestedAccordionItem;
|
|
113
|
-
this.
|
|
117
|
+
this.calciteInternalAccordionChange.emit({
|
|
114
118
|
requestedAccordionItem: this.requestedAccordionItem
|
|
115
119
|
});
|
|
120
|
+
event.stopPropagation();
|
|
116
121
|
}
|
|
117
122
|
//--------------------------------------------------------------------------
|
|
118
123
|
//
|
|
@@ -179,6 +184,7 @@ const guid = () => gen([2, 1, 1, 1, 3]);
|
|
|
179
184
|
*
|
|
180
185
|
* If it already has an ID, it will be preserved, otherwise a unique one will be generated and assigned.
|
|
181
186
|
*
|
|
187
|
+
* @param el
|
|
182
188
|
* @returns {string} The element's ID.
|
|
183
189
|
*/
|
|
184
190
|
function ensureId(el) {
|
|
@@ -214,6 +220,8 @@ function getHost(root) {
|
|
|
214
220
|
/**
|
|
215
221
|
* This helper queries an element's rootNodes and any ancestor rootNodes.
|
|
216
222
|
*
|
|
223
|
+
* @param element
|
|
224
|
+
* @param selector
|
|
217
225
|
* @returns {Element[]} The elements.
|
|
218
226
|
*/
|
|
219
227
|
function queryElementsRoots(element, selector) {
|
|
@@ -240,6 +248,10 @@ function queryElementsRoots(element, selector) {
|
|
|
240
248
|
*
|
|
241
249
|
* If both an 'id' and 'selector' are supplied, 'id' will take precedence over 'selector'.
|
|
242
250
|
*
|
|
251
|
+
* @param element
|
|
252
|
+
* @param root0
|
|
253
|
+
* @param root0.selector
|
|
254
|
+
* @param root0.id
|
|
243
255
|
* @returns {Element} The element.
|
|
244
256
|
*/
|
|
245
257
|
function queryElementRoots(element, { selector, id }) {
|
|
@@ -350,6 +362,7 @@ function intersects(rect1, rect2) {
|
|
|
350
362
|
*
|
|
351
363
|
* It should only be used for aria attributes that require a string value of "true" or "false".
|
|
352
364
|
*
|
|
365
|
+
* @param value
|
|
353
366
|
* @returns {string} The string conversion of a boolean value ("true" | "false").
|
|
354
367
|
*/
|
|
355
368
|
function toAriaBoolean(value) {
|
|
@@ -363,10 +376,10 @@ const AccordionItem = class extends HTMLElement$1 {
|
|
|
363
376
|
super();
|
|
364
377
|
this.__registerHost();
|
|
365
378
|
this.__attachShadow();
|
|
366
|
-
this.
|
|
367
|
-
this.
|
|
368
|
-
this.
|
|
369
|
-
this.
|
|
379
|
+
this.calciteInternalAccordionItemKeyEvent = createEvent(this, "calciteInternalAccordionItemKeyEvent", 7);
|
|
380
|
+
this.calciteInternalAccordionItemSelect = createEvent(this, "calciteInternalAccordionItemSelect", 7);
|
|
381
|
+
this.calciteInternalAccordionItemClose = createEvent(this, "calciteInternalAccordionItemClose", 7);
|
|
382
|
+
this.calciteInternalAccordionItemRegister = createEvent(this, "calciteInternalAccordionItemRegister", 7);
|
|
370
383
|
//--------------------------------------------------------------------------
|
|
371
384
|
//
|
|
372
385
|
// Public Properties
|
|
@@ -398,7 +411,7 @@ const AccordionItem = class extends HTMLElement$1 {
|
|
|
398
411
|
}
|
|
399
412
|
componentDidLoad() {
|
|
400
413
|
this.itemPosition = this.getItemPosition();
|
|
401
|
-
this.
|
|
414
|
+
this.calciteInternalAccordionItemRegister.emit({
|
|
402
415
|
parent: this.parent,
|
|
403
416
|
position: this.itemPosition
|
|
404
417
|
});
|
|
@@ -437,7 +450,7 @@ const AccordionItem = class extends HTMLElement$1 {
|
|
|
437
450
|
case "ArrowDown":
|
|
438
451
|
case "Home":
|
|
439
452
|
case "End":
|
|
440
|
-
this.
|
|
453
|
+
this.calciteInternalAccordionItemKeyEvent.emit({
|
|
441
454
|
parent: this.parent,
|
|
442
455
|
item: e
|
|
443
456
|
});
|
|
@@ -453,6 +466,7 @@ const AccordionItem = class extends HTMLElement$1 {
|
|
|
453
466
|
return;
|
|
454
467
|
}
|
|
455
468
|
this.determineActiveItem();
|
|
469
|
+
event.stopPropagation();
|
|
456
470
|
}
|
|
457
471
|
//--------------------------------------------------------------------------
|
|
458
472
|
//
|
|
@@ -475,7 +489,7 @@ const AccordionItem = class extends HTMLElement$1 {
|
|
|
475
489
|
}
|
|
476
490
|
}
|
|
477
491
|
emitRequestedItem() {
|
|
478
|
-
this.
|
|
492
|
+
this.calciteInternalAccordionItemSelect.emit({
|
|
479
493
|
requestedAccordionItem: this.el
|
|
480
494
|
});
|
|
481
495
|
}
|
|
@@ -520,7 +534,7 @@ function getObserver(type) {
|
|
|
520
534
|
}
|
|
521
535
|
|
|
522
536
|
function noopClick() {
|
|
523
|
-
/** noop
|
|
537
|
+
/** noop */
|
|
524
538
|
}
|
|
525
539
|
/**
|
|
526
540
|
* This helper updates the host element to prevent keyboard interaction on its subtree and sets the appropriate aria attribute for accessibility.
|
|
@@ -529,8 +543,11 @@ function noopClick() {
|
|
|
529
543
|
*
|
|
530
544
|
* **Notes**
|
|
531
545
|
*
|
|
532
|
-
*
|
|
533
|
-
*
|
|
546
|
+
* 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.
|
|
547
|
+
* technically, users can override `tabindex` and restore keyboard navigation, but this will be considered user error
|
|
548
|
+
*
|
|
549
|
+
* @param component
|
|
550
|
+
* @param hostIsTabbable
|
|
534
551
|
*/
|
|
535
552
|
function updateHostInteraction(component, hostIsTabbable = false) {
|
|
536
553
|
if (component.disabled) {
|
|
@@ -587,7 +604,9 @@ const Action = class extends HTMLElement$1 {
|
|
|
587
604
|
* Indicates unread changes.
|
|
588
605
|
*/
|
|
589
606
|
this.indicator = false;
|
|
590
|
-
/**
|
|
607
|
+
/**
|
|
608
|
+
* string to override English loading text
|
|
609
|
+
*
|
|
591
610
|
* @default "Loading"
|
|
592
611
|
*/
|
|
593
612
|
this.intlLoading = TEXT$r.loading;
|
|
@@ -2062,6 +2081,8 @@ let mutationObserver;
|
|
|
2062
2081
|
const observerOptions = { childList: true };
|
|
2063
2082
|
/**
|
|
2064
2083
|
* Helper to set up a conditional slot component on connectedCallback.
|
|
2084
|
+
*
|
|
2085
|
+
* @param component
|
|
2065
2086
|
*/
|
|
2066
2087
|
function connectConditionalSlotComponent(component) {
|
|
2067
2088
|
if (!mutationObserver) {
|
|
@@ -2071,6 +2092,8 @@ function connectConditionalSlotComponent(component) {
|
|
|
2071
2092
|
}
|
|
2072
2093
|
/**
|
|
2073
2094
|
* Helper to tear down a conditional slot component on disconnectedCallback.
|
|
2095
|
+
*
|
|
2096
|
+
* @param component
|
|
2074
2097
|
*/
|
|
2075
2098
|
function disconnectConditionalSlotComponent(component) {
|
|
2076
2099
|
observed.delete(component.el);
|
|
@@ -2222,12 +2245,17 @@ const ActionBar = class extends HTMLElement$1 {
|
|
|
2222
2245
|
// --------------------------------------------------------------------------
|
|
2223
2246
|
/**
|
|
2224
2247
|
* Overflows actions that won't fit into menus.
|
|
2248
|
+
*
|
|
2225
2249
|
* @internal
|
|
2226
2250
|
*/
|
|
2227
2251
|
async overflowActions() {
|
|
2228
2252
|
this.resize(this.el.clientHeight);
|
|
2229
2253
|
}
|
|
2230
|
-
/**
|
|
2254
|
+
/**
|
|
2255
|
+
* Sets focus on the component.
|
|
2256
|
+
*
|
|
2257
|
+
* @param focusId
|
|
2258
|
+
*/
|
|
2231
2259
|
async setFocus(focusId) {
|
|
2232
2260
|
if (focusId === "expand-toggle") {
|
|
2233
2261
|
await focusElement(this.expandToggleEl);
|
|
@@ -2363,6 +2391,7 @@ const ActionMenu = class extends HTMLElement$1 {
|
|
|
2363
2391
|
this.overlayPositioning = "absolute";
|
|
2364
2392
|
/**
|
|
2365
2393
|
* Determines where the component will be positioned relative to the referenceElement.
|
|
2394
|
+
*
|
|
2366
2395
|
* @see [PopperPlacement](https://github.com/Esri/calcite-components/blob/master/src/utils/popper.ts#L25)
|
|
2367
2396
|
*/
|
|
2368
2397
|
this.placement = "auto";
|
|
@@ -2699,7 +2728,11 @@ const ActionPad = class extends HTMLElement$1 {
|
|
|
2699
2728
|
// Methods
|
|
2700
2729
|
//
|
|
2701
2730
|
// --------------------------------------------------------------------------
|
|
2702
|
-
/**
|
|
2731
|
+
/**
|
|
2732
|
+
* Sets focus on the component.
|
|
2733
|
+
*
|
|
2734
|
+
* @param focusId
|
|
2735
|
+
*/
|
|
2703
2736
|
async setFocus(focusId) {
|
|
2704
2737
|
if (focusId === "expand-toggle") {
|
|
2705
2738
|
await focusElement(this.expandToggleEl);
|
|
@@ -2761,8 +2794,8 @@ const Alert = class extends HTMLElement$1 {
|
|
|
2761
2794
|
this.__attachShadow();
|
|
2762
2795
|
this.calciteAlertClose = createEvent(this, "calciteAlertClose", 7);
|
|
2763
2796
|
this.calciteAlertOpen = createEvent(this, "calciteAlertOpen", 7);
|
|
2764
|
-
this.
|
|
2765
|
-
this.
|
|
2797
|
+
this.calciteInternalAlertSync = createEvent(this, "calciteInternalAlertSync", 7);
|
|
2798
|
+
this.calciteInternalAlertRegister = createEvent(this, "calciteInternalAlertRegister", 7);
|
|
2766
2799
|
//--------------------------------------------------------------------------
|
|
2767
2800
|
//
|
|
2768
2801
|
// Properties
|
|
@@ -2776,7 +2809,9 @@ const Alert = class extends HTMLElement$1 {
|
|
|
2776
2809
|
this.autoDismissDuration = this.autoDismiss ? "medium" : null;
|
|
2777
2810
|
/** Color for the alert (will apply to top border and icon) */
|
|
2778
2811
|
this.color = "blue";
|
|
2779
|
-
/**
|
|
2812
|
+
/**
|
|
2813
|
+
* string to override English close text
|
|
2814
|
+
*
|
|
2780
2815
|
* @default "Close"
|
|
2781
2816
|
*/
|
|
2782
2817
|
this.intlClose = TEXT$n.intlClose;
|
|
@@ -2805,7 +2840,7 @@ const Alert = class extends HTMLElement$1 {
|
|
|
2805
2840
|
this.active = false;
|
|
2806
2841
|
this.queue = this.queue.filter((e) => e !== this.el);
|
|
2807
2842
|
this.determineActiveAlert();
|
|
2808
|
-
this.
|
|
2843
|
+
this.calciteInternalAlertSync.emit({ queue: this.queue });
|
|
2809
2844
|
};
|
|
2810
2845
|
this.transitionEnd = (event) => {
|
|
2811
2846
|
if (event.propertyName === this.activeTransitionProp) {
|
|
@@ -2823,11 +2858,11 @@ const Alert = class extends HTMLElement$1 {
|
|
|
2823
2858
|
}
|
|
2824
2859
|
watchActive() {
|
|
2825
2860
|
if (this.active && !this.queued) {
|
|
2826
|
-
this.
|
|
2861
|
+
this.calciteInternalAlertRegister.emit();
|
|
2827
2862
|
}
|
|
2828
2863
|
if (!this.active) {
|
|
2829
2864
|
this.queue = this.queue.filter((e) => e !== this.el);
|
|
2830
|
-
this.
|
|
2865
|
+
this.calciteInternalAlertSync.emit({ queue: this.queue });
|
|
2831
2866
|
}
|
|
2832
2867
|
}
|
|
2833
2868
|
updateRequestedIcon() {
|
|
@@ -2846,7 +2881,7 @@ const Alert = class extends HTMLElement$1 {
|
|
|
2846
2881
|
//--------------------------------------------------------------------------
|
|
2847
2882
|
connectedCallback() {
|
|
2848
2883
|
if (this.active && !this.queued) {
|
|
2849
|
-
this.
|
|
2884
|
+
this.calciteInternalAlertRegister.emit();
|
|
2850
2885
|
}
|
|
2851
2886
|
}
|
|
2852
2887
|
componentWillLoad() {
|
|
@@ -2875,6 +2910,7 @@ const Alert = class extends HTMLElement$1 {
|
|
|
2875
2910
|
}
|
|
2876
2911
|
this.queueLength = this.queue.length;
|
|
2877
2912
|
this.determineActiveAlert();
|
|
2913
|
+
event.stopPropagation();
|
|
2878
2914
|
}
|
|
2879
2915
|
// when an alert is first registered, trigger a queue sync to get queue
|
|
2880
2916
|
alertRegister() {
|
|
@@ -2882,7 +2918,7 @@ const Alert = class extends HTMLElement$1 {
|
|
|
2882
2918
|
this.queued = true;
|
|
2883
2919
|
this.queue.push(this.el);
|
|
2884
2920
|
}
|
|
2885
|
-
this.
|
|
2921
|
+
this.calciteInternalAlertSync.emit({ queue: this.queue });
|
|
2886
2922
|
this.determineActiveAlert();
|
|
2887
2923
|
}
|
|
2888
2924
|
//--------------------------------------------------------------------------
|
|
@@ -3048,6 +3084,8 @@ function colorEqual(value1, value2) {
|
|
|
3048
3084
|
/**
|
|
3049
3085
|
* Convert a string to a valid hex by hashing its contents
|
|
3050
3086
|
* and using the hash as a seed for three distinct color values
|
|
3087
|
+
*
|
|
3088
|
+
* @param str
|
|
3051
3089
|
*/
|
|
3052
3090
|
function stringToHex(str) {
|
|
3053
3091
|
let hash = 0;
|
|
@@ -3063,6 +3101,8 @@ function stringToHex(str) {
|
|
|
3063
3101
|
}
|
|
3064
3102
|
/**
|
|
3065
3103
|
* Find the hue of a color given the separate RGB color channels
|
|
3104
|
+
*
|
|
3105
|
+
* @param rgb
|
|
3066
3106
|
*/
|
|
3067
3107
|
function rgbToHue(rgb) {
|
|
3068
3108
|
let { r, g, b } = rgb;
|
|
@@ -3091,6 +3131,7 @@ function rgbToHue(rgb) {
|
|
|
3091
3131
|
}
|
|
3092
3132
|
/**
|
|
3093
3133
|
* For a hex color, find the hue
|
|
3134
|
+
*
|
|
3094
3135
|
* @param hex {string} - form of "#------"
|
|
3095
3136
|
*/
|
|
3096
3137
|
function hexToHue(hex) {
|
|
@@ -3252,17 +3293,25 @@ const Block = class extends HTMLElement$1 {
|
|
|
3252
3293
|
this.dragHandle = false;
|
|
3253
3294
|
/**
|
|
3254
3295
|
* Aria-label for collapsing the toggle and tooltip used for the toggle when expanded.
|
|
3296
|
+
*
|
|
3297
|
+
* @default "Collapse"
|
|
3255
3298
|
*/
|
|
3256
3299
|
this.intlCollapse = TEXT$m.collapse;
|
|
3257
3300
|
/**
|
|
3258
3301
|
* Aria-label for expanding the toggle and tooltip used for the toggle when collapsed.
|
|
3302
|
+
*
|
|
3303
|
+
* @default "Expand"
|
|
3259
3304
|
*/
|
|
3260
3305
|
this.intlExpand = TEXT$m.expand;
|
|
3261
|
-
/**
|
|
3306
|
+
/**
|
|
3307
|
+
* string to override English loading text
|
|
3308
|
+
*
|
|
3262
3309
|
* @default "Loading"
|
|
3263
3310
|
*/
|
|
3264
3311
|
this.intlLoading = TEXT$m.loading;
|
|
3265
|
-
/**
|
|
3312
|
+
/**
|
|
3313
|
+
* Text string used for the actions menu
|
|
3314
|
+
*
|
|
3266
3315
|
* @default "Options"
|
|
3267
3316
|
*/
|
|
3268
3317
|
this.intlOptions = TEXT$m.options;
|
|
@@ -3497,6 +3546,7 @@ const TEXT$k = {
|
|
|
3497
3546
|
|
|
3498
3547
|
/**
|
|
3499
3548
|
* Exported for testing purposes only
|
|
3549
|
+
*
|
|
3500
3550
|
* @internal
|
|
3501
3551
|
*/
|
|
3502
3552
|
const labelClickEvent = "calciteInternalLabelClick";
|
|
@@ -3539,6 +3589,8 @@ function hasAncestorCustomElements(label, componentEl) {
|
|
|
3539
3589
|
}
|
|
3540
3590
|
/**
|
|
3541
3591
|
* Helper to set up label interactions on connectedCallback.
|
|
3592
|
+
*
|
|
3593
|
+
* @param component
|
|
3542
3594
|
*/
|
|
3543
3595
|
function connectLabel(component) {
|
|
3544
3596
|
const labelEl = findLabelForComponent(component.el);
|
|
@@ -3563,6 +3615,8 @@ function connectLabel(component) {
|
|
|
3563
3615
|
}
|
|
3564
3616
|
/**
|
|
3565
3617
|
* Helper to tear down label interactions on disconnectedCallback on labelable components.
|
|
3618
|
+
*
|
|
3619
|
+
* @param component
|
|
3566
3620
|
*/
|
|
3567
3621
|
function disconnectLabel(component) {
|
|
3568
3622
|
unlabeledComponents.delete(component);
|
|
@@ -3579,6 +3633,8 @@ function disconnectLabel(component) {
|
|
|
3579
3633
|
}
|
|
3580
3634
|
/**
|
|
3581
3635
|
* Helper to get the label text from a component.
|
|
3636
|
+
*
|
|
3637
|
+
* @param component
|
|
3582
3638
|
*/
|
|
3583
3639
|
function getLabelText(component) {
|
|
3584
3640
|
var _a, _b;
|
|
@@ -3633,6 +3689,8 @@ function hasRegisteredFormComponentParent(form, formComponentEl) {
|
|
|
3633
3689
|
}
|
|
3634
3690
|
/**
|
|
3635
3691
|
* Helper to submit a form.
|
|
3692
|
+
*
|
|
3693
|
+
* @param component
|
|
3636
3694
|
*/
|
|
3637
3695
|
function submitForm(component) {
|
|
3638
3696
|
var _a;
|
|
@@ -3640,6 +3698,8 @@ function submitForm(component) {
|
|
|
3640
3698
|
}
|
|
3641
3699
|
/**
|
|
3642
3700
|
* Helper to reset a form.
|
|
3701
|
+
*
|
|
3702
|
+
* @param component
|
|
3643
3703
|
*/
|
|
3644
3704
|
function resetForm(component) {
|
|
3645
3705
|
var _a;
|
|
@@ -3647,6 +3707,8 @@ function resetForm(component) {
|
|
|
3647
3707
|
}
|
|
3648
3708
|
/**
|
|
3649
3709
|
* Helper to set up form interactions on connectedCallback.
|
|
3710
|
+
*
|
|
3711
|
+
* @param component
|
|
3650
3712
|
*/
|
|
3651
3713
|
function connectForm(component) {
|
|
3652
3714
|
const { el, value } = component;
|
|
@@ -3673,6 +3735,8 @@ function onFormReset() {
|
|
|
3673
3735
|
}
|
|
3674
3736
|
/**
|
|
3675
3737
|
* Helper to tear down form interactions on disconnectedCallback.
|
|
3738
|
+
*
|
|
3739
|
+
* @param component
|
|
3676
3740
|
*/
|
|
3677
3741
|
function disconnectForm(component) {
|
|
3678
3742
|
const { el, formEl } = component;
|
|
@@ -3689,6 +3753,9 @@ function disconnectForm(component) {
|
|
|
3689
3753
|
* Helper for setting the default value on initialization after connectedCallback.
|
|
3690
3754
|
*
|
|
3691
3755
|
* Note that this is only needed if the default value cannot be determined on connectedCallback.
|
|
3756
|
+
*
|
|
3757
|
+
* @param component
|
|
3758
|
+
* @param value
|
|
3692
3759
|
*/
|
|
3693
3760
|
function afterConnectDefaultValueSet(component, value) {
|
|
3694
3761
|
component.defaultValue = value;
|
|
@@ -3697,6 +3764,8 @@ function afterConnectDefaultValueSet(component, value) {
|
|
|
3697
3764
|
* Helper for maintaining a form-associated's hidden input in sync with the component.
|
|
3698
3765
|
*
|
|
3699
3766
|
* Based on Ionic's approach: https://github.com/ionic-team/ionic-framework/blob/e4bf052794af9aac07f887013b9250d2a045eba3/core/src/utils/helpers.ts#L198
|
|
3767
|
+
*
|
|
3768
|
+
* @param component
|
|
3700
3769
|
*/
|
|
3701
3770
|
function syncHiddenFormInput(component) {
|
|
3702
3771
|
const { el, formEl, name, value } = component;
|
|
@@ -3781,6 +3850,9 @@ function defaultSyncHiddenFormInput(component, input, value) {
|
|
|
3781
3850
|
* }
|
|
3782
3851
|
*
|
|
3783
3852
|
* Note that the hidden-form-input Sass mixin must be added to the component's style to apply specific styles.
|
|
3853
|
+
*
|
|
3854
|
+
* @param root0
|
|
3855
|
+
* @param root0.component
|
|
3784
3856
|
*/
|
|
3785
3857
|
const HiddenFormInputSlot = ({ component }) => {
|
|
3786
3858
|
syncHiddenFormInput(component);
|
|
@@ -3807,7 +3879,9 @@ const Button = class extends HTMLElement$1 {
|
|
|
3807
3879
|
this.color = "blue";
|
|
3808
3880
|
/** is the button disabled */
|
|
3809
3881
|
this.disabled = false;
|
|
3810
|
-
/**
|
|
3882
|
+
/**
|
|
3883
|
+
* string to override English loading text
|
|
3884
|
+
*
|
|
3811
3885
|
* @default "Loading"
|
|
3812
3886
|
*/
|
|
3813
3887
|
this.intlLoading = TEXT$k.loading;
|
|
@@ -3823,7 +3897,7 @@ const Button = class extends HTMLElement$1 {
|
|
|
3823
3897
|
this.type = "button";
|
|
3824
3898
|
/** specify the width of the button, defaults to auto */
|
|
3825
3899
|
this.width = "auto";
|
|
3826
|
-
/** watches for changing text content
|
|
3900
|
+
/** watches for changing text content */
|
|
3827
3901
|
this.mutationObserver = createObserver("mutation", () => this.updateHasContent());
|
|
3828
3902
|
/** determine if there is slotted content for styling purposes */
|
|
3829
3903
|
this.hasContent = false;
|
|
@@ -3970,15 +4044,21 @@ const Card = class extends HTMLElement$1 {
|
|
|
3970
4044
|
this.selected = false;
|
|
3971
4045
|
/** Indicates whether the card is selectable. */
|
|
3972
4046
|
this.selectable = false;
|
|
3973
|
-
/**
|
|
4047
|
+
/**
|
|
4048
|
+
* string to override English loading text
|
|
4049
|
+
*
|
|
3974
4050
|
* @default "Loading"
|
|
3975
4051
|
*/
|
|
3976
4052
|
this.intlLoading = TEXT$j.loading;
|
|
3977
|
-
/**
|
|
4053
|
+
/**
|
|
4054
|
+
* string to override English select text for checkbox when selectable is true
|
|
4055
|
+
*
|
|
3978
4056
|
* @default "Select"
|
|
3979
4057
|
*/
|
|
3980
4058
|
this.intlSelect = TEXT$j.select;
|
|
3981
|
-
/**
|
|
4059
|
+
/**
|
|
4060
|
+
* string to override English deselect text for checkbox when selectable is true
|
|
4061
|
+
*
|
|
3982
4062
|
* @default "Deselect"
|
|
3983
4063
|
*/
|
|
3984
4064
|
this.intlDeselect = TEXT$j.deselect;
|
|
@@ -4069,6 +4149,7 @@ const Checkbox = class extends HTMLElement$1 {
|
|
|
4069
4149
|
this.disabled = false;
|
|
4070
4150
|
/**
|
|
4071
4151
|
* The hovered state of the checkbox.
|
|
4152
|
+
*
|
|
4072
4153
|
* @internal
|
|
4073
4154
|
*/
|
|
4074
4155
|
this.hovered = false;
|
|
@@ -4076,7 +4157,7 @@ const Checkbox = class extends HTMLElement$1 {
|
|
|
4076
4157
|
* True if the checkbox is initially indeterminate,
|
|
4077
4158
|
* which is independent from its checked state
|
|
4078
4159
|
* https://css-tricks.com/indeterminate-checkboxes/
|
|
4079
|
-
|
|
4160
|
+
*/
|
|
4080
4161
|
this.indeterminate = false;
|
|
4081
4162
|
/**
|
|
4082
4163
|
* When true, makes the component required for form-submission.
|
|
@@ -4206,7 +4287,9 @@ const Chip = class extends HTMLElement$1 {
|
|
|
4206
4287
|
this.color = "grey";
|
|
4207
4288
|
/** Optionally show a button the user can click to dismiss the chip */
|
|
4208
4289
|
this.dismissible = false;
|
|
4209
|
-
/**
|
|
4290
|
+
/**
|
|
4291
|
+
* Aria label for the "x" button
|
|
4292
|
+
*
|
|
4210
4293
|
* @default "Close"
|
|
4211
4294
|
*/
|
|
4212
4295
|
this.dismissLabel = TEXT$i.close;
|
|
@@ -6528,6 +6611,7 @@ const ColorPicker = class extends HTMLElement$1 {
|
|
|
6528
6611
|
* The format of the value property.
|
|
6529
6612
|
*
|
|
6530
6613
|
* When "auto", the format will be inferred from `value` when set.
|
|
6614
|
+
*
|
|
6531
6615
|
* @default "auto"
|
|
6532
6616
|
*/
|
|
6533
6617
|
this.format = defaultFormat;
|
|
@@ -6537,80 +6621,117 @@ const ColorPicker = class extends HTMLElement$1 {
|
|
|
6537
6621
|
this.hideChannels = false;
|
|
6538
6622
|
/** When true, hides the saved colors section */
|
|
6539
6623
|
this.hideSaved = false;
|
|
6540
|
-
/**
|
|
6624
|
+
/**
|
|
6625
|
+
* Label used for the blue channel
|
|
6626
|
+
*
|
|
6541
6627
|
* @default "B"
|
|
6542
6628
|
*/
|
|
6543
6629
|
this.intlB = TEXT$h.b;
|
|
6544
|
-
/**
|
|
6630
|
+
/**
|
|
6631
|
+
* Label used for the blue channel description
|
|
6632
|
+
*
|
|
6545
6633
|
* @default "Blue"
|
|
6546
6634
|
*/
|
|
6547
6635
|
this.intlBlue = TEXT$h.blue;
|
|
6548
|
-
/**
|
|
6636
|
+
/**
|
|
6637
|
+
* Label used for the delete color button.
|
|
6638
|
+
*
|
|
6549
6639
|
* @default "Delete color"
|
|
6550
6640
|
*/
|
|
6551
6641
|
this.intlDeleteColor = TEXT$h.deleteColor;
|
|
6552
|
-
/**
|
|
6642
|
+
/**
|
|
6643
|
+
* Label used for the green channel
|
|
6644
|
+
*
|
|
6553
6645
|
* @default "G"
|
|
6554
6646
|
*/
|
|
6555
6647
|
this.intlG = TEXT$h.g;
|
|
6556
|
-
/**
|
|
6648
|
+
/**
|
|
6649
|
+
* Label used for the green channel description
|
|
6650
|
+
*
|
|
6557
6651
|
* @default "Green"
|
|
6558
6652
|
*/
|
|
6559
6653
|
this.intlGreen = TEXT$h.green;
|
|
6560
|
-
/**
|
|
6654
|
+
/**
|
|
6655
|
+
* Label used for the hue channel
|
|
6656
|
+
*
|
|
6561
6657
|
* @default "H"
|
|
6562
6658
|
*/
|
|
6563
6659
|
this.intlH = TEXT$h.h;
|
|
6564
|
-
/**
|
|
6660
|
+
/**
|
|
6661
|
+
* Label used for the HSV mode
|
|
6662
|
+
*
|
|
6565
6663
|
* @default "HSV"
|
|
6566
6664
|
*/
|
|
6567
6665
|
this.intlHsv = TEXT$h.hsv;
|
|
6568
|
-
/**
|
|
6666
|
+
/**
|
|
6667
|
+
* Label used for the hex input
|
|
6668
|
+
*
|
|
6569
6669
|
* @default "Hex"
|
|
6570
6670
|
*/
|
|
6571
6671
|
this.intlHex = TEXT$h.hex;
|
|
6572
|
-
/**
|
|
6672
|
+
/**
|
|
6673
|
+
* Label used for the hue channel description
|
|
6674
|
+
*
|
|
6573
6675
|
* @default "Hue"
|
|
6574
6676
|
*/
|
|
6575
6677
|
this.intlHue = TEXT$h.hue;
|
|
6576
6678
|
/**
|
|
6577
6679
|
* Label used for the hex input when there is no color selected.
|
|
6680
|
+
*
|
|
6578
6681
|
* @default "No color"
|
|
6579
6682
|
*/
|
|
6580
6683
|
this.intlNoColor = TEXT$h.noColor;
|
|
6581
|
-
/**
|
|
6684
|
+
/**
|
|
6685
|
+
* Label used for the red channel
|
|
6686
|
+
*
|
|
6582
6687
|
* @default "R"
|
|
6583
6688
|
*/
|
|
6584
6689
|
this.intlR = TEXT$h.r;
|
|
6585
|
-
/**
|
|
6690
|
+
/**
|
|
6691
|
+
* Label used for the red channel description
|
|
6692
|
+
*
|
|
6586
6693
|
* @default "Red"
|
|
6587
6694
|
*/
|
|
6588
6695
|
this.intlRed = TEXT$h.red;
|
|
6589
|
-
/**
|
|
6696
|
+
/**
|
|
6697
|
+
* Label used for the RGB mode
|
|
6698
|
+
*
|
|
6590
6699
|
* @default "RGB"
|
|
6591
6700
|
*/
|
|
6592
6701
|
this.intlRgb = TEXT$h.rgb;
|
|
6593
|
-
/**
|
|
6702
|
+
/**
|
|
6703
|
+
* Label used for the saturation channel
|
|
6704
|
+
*
|
|
6594
6705
|
* @default "S"
|
|
6595
6706
|
*/
|
|
6596
6707
|
this.intlS = TEXT$h.s;
|
|
6597
|
-
/**
|
|
6708
|
+
/**
|
|
6709
|
+
* Label used for the saturation channel description
|
|
6710
|
+
*
|
|
6598
6711
|
* @default "Saturation"
|
|
6599
6712
|
*/
|
|
6600
6713
|
this.intlSaturation = TEXT$h.saturation;
|
|
6601
|
-
/**
|
|
6714
|
+
/**
|
|
6715
|
+
* Label used for the save color button.
|
|
6716
|
+
*
|
|
6602
6717
|
* @default "Save color"
|
|
6603
6718
|
*/
|
|
6604
6719
|
this.intlSaveColor = TEXT$h.saveColor;
|
|
6605
|
-
/**
|
|
6720
|
+
/**
|
|
6721
|
+
* Label used for the saved colors section
|
|
6722
|
+
*
|
|
6606
6723
|
* @default "Saved"
|
|
6607
6724
|
*/
|
|
6608
6725
|
this.intlSaved = TEXT$h.saved;
|
|
6609
|
-
/**
|
|
6726
|
+
/**
|
|
6727
|
+
* Label used for the value channel
|
|
6728
|
+
*
|
|
6610
6729
|
* @default "V"
|
|
6611
6730
|
*/
|
|
6612
6731
|
this.intlV = TEXT$h.v;
|
|
6613
|
-
/**
|
|
6732
|
+
/**
|
|
6733
|
+
* Label used for the
|
|
6734
|
+
*
|
|
6614
6735
|
* @default "Value"
|
|
6615
6736
|
*/
|
|
6616
6737
|
this.intlValue = TEXT$h.value;
|
|
@@ -6625,6 +6746,7 @@ const ColorPicker = class extends HTMLElement$1 {
|
|
|
6625
6746
|
* a RGB, HSL or HSV object.
|
|
6626
6747
|
*
|
|
6627
6748
|
* The type will be preserved as the color is updated.
|
|
6749
|
+
*
|
|
6628
6750
|
* @default "#007ac2"
|
|
6629
6751
|
* @see [ColorValue](https://github.com/Esri/calcite-components/blob/master/src/components/color-picker/interfaces.ts#L10)
|
|
6630
6752
|
*/
|
|
@@ -7295,11 +7417,13 @@ const ColorPickerHexInput = class extends HTMLElement$1 {
|
|
|
7295
7417
|
this.allowEmpty = false;
|
|
7296
7418
|
/**
|
|
7297
7419
|
* Label used for the hex input.
|
|
7420
|
+
*
|
|
7298
7421
|
* @default "Hex"
|
|
7299
7422
|
*/
|
|
7300
7423
|
this.intlHex = TEXT$h.hex;
|
|
7301
7424
|
/**
|
|
7302
7425
|
* Label used for the hex input when there is no color selected.
|
|
7426
|
+
*
|
|
7303
7427
|
* @default "No color"
|
|
7304
7428
|
*/
|
|
7305
7429
|
this.intlNoColor = TEXT$h.noColor;
|
|
@@ -7311,7 +7435,7 @@ const ColorPickerHexInput = class extends HTMLElement$1 {
|
|
|
7311
7435
|
* The hex value.
|
|
7312
7436
|
*/
|
|
7313
7437
|
this.value = normalizeHex(DEFAULT_COLOR.hex());
|
|
7314
|
-
this.
|
|
7438
|
+
this.onCalciteInternalInputBlur = () => {
|
|
7315
7439
|
const node = this.inputNode;
|
|
7316
7440
|
const inputValue = node.value;
|
|
7317
7441
|
const hex = `#${inputValue}`;
|
|
@@ -7396,7 +7520,7 @@ const ColorPickerHexInput = class extends HTMLElement$1 {
|
|
|
7396
7520
|
render() {
|
|
7397
7521
|
const { intlHex, value } = this;
|
|
7398
7522
|
const hexInputValue = this.formatForInternalInput(value);
|
|
7399
|
-
return (h("div", { class: CSS$F.container }, h("calcite-input", { class: CSS$F.input, label: intlHex, maxLength: 6,
|
|
7523
|
+
return (h("div", { class: CSS$F.container }, h("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 ? (h("calcite-color-picker-swatch", { active: true, class: CSS$F.preview, color: `#${hexInputValue}`, scale: this.scale })) : null));
|
|
7400
7524
|
}
|
|
7401
7525
|
//--------------------------------------------------------------------------
|
|
7402
7526
|
//
|
|
@@ -9475,7 +9599,8 @@ const Combobox = class extends HTMLElement$1 {
|
|
|
9475
9599
|
* @internal
|
|
9476
9600
|
*/
|
|
9477
9601
|
this.required = false;
|
|
9478
|
-
/**
|
|
9602
|
+
/**
|
|
9603
|
+
* specify the selection mode
|
|
9479
9604
|
* - multi: allow any number of selected items (default)
|
|
9480
9605
|
* - single: only one selection)
|
|
9481
9606
|
* - ancestors: like multi, but show ancestors of selected items as selected, only deepest children shown in chips
|
|
@@ -9485,7 +9610,9 @@ const Combobox = class extends HTMLElement$1 {
|
|
|
9485
9610
|
this.scale = "m";
|
|
9486
9611
|
/** The value(s) of the selectedItem(s) */
|
|
9487
9612
|
this.value = null;
|
|
9488
|
-
/**
|
|
9613
|
+
/**
|
|
9614
|
+
* string to override the English "Remove tag" text for when an item is selected.
|
|
9615
|
+
*
|
|
9489
9616
|
* @default "Remove tag"
|
|
9490
9617
|
*/
|
|
9491
9618
|
this.intlRemoveTag = TEXT$g.removeTag;
|
|
@@ -10292,6 +10419,8 @@ const ComboboxItem = class extends HTMLElement$1 {
|
|
|
10292
10419
|
/**
|
|
10293
10420
|
* Used to toggle the selection state. By default this won't trigger an event.
|
|
10294
10421
|
* The first argument allows the value to be coerced, rather than swapping values.
|
|
10422
|
+
*
|
|
10423
|
+
* @param coerce
|
|
10295
10424
|
*/
|
|
10296
10425
|
async toggleSelected(coerce) {
|
|
10297
10426
|
if (this.disabled) {
|
|
@@ -10574,6 +10703,8 @@ function localizeNumberString(numberString, locale, displayGroupSeparator = fals
|
|
|
10574
10703
|
/**
|
|
10575
10704
|
* Get supported locale code from raw user input
|
|
10576
10705
|
* Exported for testing purposes.
|
|
10706
|
+
*
|
|
10707
|
+
* @param lang
|
|
10577
10708
|
* @private
|
|
10578
10709
|
*/
|
|
10579
10710
|
function getSupportedLocale(lang = "") {
|
|
@@ -10592,17 +10723,21 @@ function getSupportedLocale(lang = "") {
|
|
|
10592
10723
|
/**
|
|
10593
10724
|
* CLDR cache.
|
|
10594
10725
|
* Exported for testing purposes.
|
|
10726
|
+
*
|
|
10595
10727
|
* @private
|
|
10596
10728
|
*/
|
|
10597
10729
|
const translationCache = {};
|
|
10598
10730
|
/**
|
|
10599
10731
|
* CLDR request cache.
|
|
10600
10732
|
* Exported for testing purposes.
|
|
10733
|
+
*
|
|
10601
10734
|
* @private
|
|
10602
10735
|
*/
|
|
10603
10736
|
const requestCache$1 = {};
|
|
10604
10737
|
/**
|
|
10605
10738
|
* Fetch calendar data for a given locale from list of supported languages
|
|
10739
|
+
*
|
|
10740
|
+
* @param lang
|
|
10606
10741
|
* @public
|
|
10607
10742
|
*/
|
|
10608
10743
|
async function getLocaleData(lang) {
|
|
@@ -10625,6 +10760,10 @@ async function getLocaleData(lang) {
|
|
|
10625
10760
|
|
|
10626
10761
|
/**
|
|
10627
10762
|
* Check if date is within a min and max
|
|
10763
|
+
*
|
|
10764
|
+
* @param date
|
|
10765
|
+
* @param min
|
|
10766
|
+
* @param max
|
|
10628
10767
|
*/
|
|
10629
10768
|
function inRange(date, min, max) {
|
|
10630
10769
|
const time = date.getTime();
|
|
@@ -10635,6 +10774,10 @@ function inRange(date, min, max) {
|
|
|
10635
10774
|
/**
|
|
10636
10775
|
* Ensures date is within range,
|
|
10637
10776
|
* returns min or max if out of bounds
|
|
10777
|
+
*
|
|
10778
|
+
* @param date
|
|
10779
|
+
* @param min
|
|
10780
|
+
* @param max
|
|
10638
10781
|
*/
|
|
10639
10782
|
function dateFromRange(date, min, max) {
|
|
10640
10783
|
if (!(date instanceof Date)) {
|
|
@@ -10654,6 +10797,8 @@ function dateFromRange(date, min, max) {
|
|
|
10654
10797
|
/**
|
|
10655
10798
|
* Parse an iso8601 string (YYYY-mm-dd) into a valid date.
|
|
10656
10799
|
* TODO: handle time when time of day UI is added
|
|
10800
|
+
*
|
|
10801
|
+
* @param iso8601
|
|
10657
10802
|
*/
|
|
10658
10803
|
function dateFromISO(iso8601) {
|
|
10659
10804
|
if (iso8601 instanceof Date) {
|
|
@@ -10672,6 +10817,8 @@ function dateFromISO(iso8601) {
|
|
|
10672
10817
|
}
|
|
10673
10818
|
/**
|
|
10674
10819
|
* Return first portion of ISO string (YYYY-mm-dd)
|
|
10820
|
+
*
|
|
10821
|
+
* @param date
|
|
10675
10822
|
*/
|
|
10676
10823
|
function dateToISO(date) {
|
|
10677
10824
|
if (typeof date === "string") {
|
|
@@ -10684,6 +10831,9 @@ function dateToISO(date) {
|
|
|
10684
10831
|
}
|
|
10685
10832
|
/**
|
|
10686
10833
|
* Check if two dates are the same day, month, year
|
|
10834
|
+
*
|
|
10835
|
+
* @param d1
|
|
10836
|
+
* @param d2
|
|
10687
10837
|
*/
|
|
10688
10838
|
function sameDate(d1, d2) {
|
|
10689
10839
|
return (d1 instanceof Date &&
|
|
@@ -10694,6 +10844,8 @@ function sameDate(d1, d2) {
|
|
|
10694
10844
|
}
|
|
10695
10845
|
/**
|
|
10696
10846
|
* Get a date one month in the past
|
|
10847
|
+
*
|
|
10848
|
+
* @param date
|
|
10697
10849
|
*/
|
|
10698
10850
|
function prevMonth(date) {
|
|
10699
10851
|
const month = date.getMonth();
|
|
@@ -10707,6 +10859,8 @@ function prevMonth(date) {
|
|
|
10707
10859
|
}
|
|
10708
10860
|
/**
|
|
10709
10861
|
* Get a date one month in the future
|
|
10862
|
+
*
|
|
10863
|
+
* @param date
|
|
10710
10864
|
*/
|
|
10711
10865
|
function nextMonth(date) {
|
|
10712
10866
|
const month = date.getMonth();
|
|
@@ -10720,6 +10874,9 @@ function nextMonth(date) {
|
|
|
10720
10874
|
}
|
|
10721
10875
|
/**
|
|
10722
10876
|
* Translate a number into a given locals numeral system
|
|
10877
|
+
*
|
|
10878
|
+
* @param num
|
|
10879
|
+
* @param localeData
|
|
10723
10880
|
*/
|
|
10724
10881
|
function localizeNumber(num, localeData) {
|
|
10725
10882
|
return String(num)
|
|
@@ -10729,6 +10886,9 @@ function localizeNumber(num, localeData) {
|
|
|
10729
10886
|
}
|
|
10730
10887
|
/**
|
|
10731
10888
|
* Calculate actual number from localized string
|
|
10889
|
+
*
|
|
10890
|
+
* @param str
|
|
10891
|
+
* @param localeData
|
|
10732
10892
|
*/
|
|
10733
10893
|
function parseNumber(str, localeData) {
|
|
10734
10894
|
const numerals = "0123456789";
|
|
@@ -10741,6 +10901,9 @@ function parseNumber(str, localeData) {
|
|
|
10741
10901
|
/**
|
|
10742
10902
|
* Parse numeric units for day, month, and year from a localized string
|
|
10743
10903
|
* month starts at 0 (can pass to date constructor)
|
|
10904
|
+
*
|
|
10905
|
+
* @param str
|
|
10906
|
+
* @param localeData
|
|
10744
10907
|
*/
|
|
10745
10908
|
function parseDateString(str, localeData) {
|
|
10746
10909
|
const { separator, unitOrder } = localeData;
|
|
@@ -10754,6 +10917,8 @@ function parseDateString(str, localeData) {
|
|
|
10754
10917
|
}
|
|
10755
10918
|
/**
|
|
10756
10919
|
* Convert eastern arbic numerals
|
|
10920
|
+
*
|
|
10921
|
+
* @param str
|
|
10757
10922
|
*/
|
|
10758
10923
|
function replaceArabicNumerals(str = "") {
|
|
10759
10924
|
return str
|
|
@@ -10762,6 +10927,8 @@ function replaceArabicNumerals(str = "") {
|
|
|
10762
10927
|
}
|
|
10763
10928
|
/**
|
|
10764
10929
|
* Based on the unitOrder string, find order of month, day, and year for locale
|
|
10930
|
+
*
|
|
10931
|
+
* @param unitOrder
|
|
10765
10932
|
*/
|
|
10766
10933
|
function getOrder(unitOrder) {
|
|
10767
10934
|
const signifiers = ["d", "m", "y"];
|
|
@@ -10770,6 +10937,9 @@ function getOrder(unitOrder) {
|
|
|
10770
10937
|
}
|
|
10771
10938
|
/**
|
|
10772
10939
|
* Get number of days between two dates
|
|
10940
|
+
*
|
|
10941
|
+
* @param date1
|
|
10942
|
+
* @param date2
|
|
10773
10943
|
*/
|
|
10774
10944
|
function getDaysDiff(date1, date2) {
|
|
10775
10945
|
const ts1 = date1.getTime();
|
|
@@ -10793,15 +10963,21 @@ const DatePicker = class extends HTMLElement$1 {
|
|
|
10793
10963
|
this.__attachShadow();
|
|
10794
10964
|
this.calciteDatePickerChange = createEvent(this, "calciteDatePickerChange", 7);
|
|
10795
10965
|
this.calciteDatePickerRangeChange = createEvent(this, "calciteDatePickerRangeChange", 7);
|
|
10796
|
-
/**
|
|
10966
|
+
/**
|
|
10967
|
+
* Localized string for "previous month" (used for aria label)
|
|
10968
|
+
*
|
|
10797
10969
|
* @default "Previous month"
|
|
10798
10970
|
*/
|
|
10799
10971
|
this.intlPrevMonth = TEXT$f.prevMonth;
|
|
10800
|
-
/**
|
|
10972
|
+
/**
|
|
10973
|
+
* Localized string for "next month" (used for aria label)
|
|
10974
|
+
*
|
|
10801
10975
|
* @default "Next month"
|
|
10802
10976
|
*/
|
|
10803
10977
|
this.intlNextMonth = TEXT$f.nextMonth;
|
|
10804
|
-
/**
|
|
10978
|
+
/**
|
|
10979
|
+
* Localized string for "year" (used for aria label)
|
|
10980
|
+
*
|
|
10805
10981
|
* @default "Year"
|
|
10806
10982
|
*/
|
|
10807
10983
|
this.intlYear = TEXT$f.year;
|
|
@@ -10917,6 +11093,7 @@ const DatePicker = class extends HTMLElement$1 {
|
|
|
10917
11093
|
this.hoverRange = undefined;
|
|
10918
11094
|
}
|
|
10919
11095
|
}
|
|
11096
|
+
e.stopPropagation();
|
|
10920
11097
|
};
|
|
10921
11098
|
this.monthMouseOutChange = () => {
|
|
10922
11099
|
if (this.hoverRange) {
|
|
@@ -10942,6 +11119,8 @@ const DatePicker = class extends HTMLElement$1 {
|
|
|
10942
11119
|
};
|
|
10943
11120
|
/**
|
|
10944
11121
|
* Event handler for when the selected date changes
|
|
11122
|
+
*
|
|
11123
|
+
* @param e
|
|
10945
11124
|
*/
|
|
10946
11125
|
this.monthDateChange = (e) => {
|
|
10947
11126
|
const date = new Date(e.detail);
|
|
@@ -11111,15 +11290,24 @@ const DatePicker = class extends HTMLElement$1 {
|
|
|
11111
11290
|
}
|
|
11112
11291
|
/**
|
|
11113
11292
|
* Render calcite-date-picker-month-header and calcite-date-picker-month
|
|
11293
|
+
*
|
|
11294
|
+
* @param activeDate
|
|
11295
|
+
* @param maxDate
|
|
11296
|
+
* @param minDate
|
|
11297
|
+
* @param date
|
|
11298
|
+
* @param endDate
|
|
11114
11299
|
*/
|
|
11115
11300
|
renderCalendar(activeDate, maxDate, minDate, date, endDate) {
|
|
11116
11301
|
return (this.localeData && [
|
|
11117
11302
|
h("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() }),
|
|
11118
|
-
h("calcite-date-picker-month", { activeDate: activeDate, endDate: this.range ? endDate : undefined, hoverRange: this.hoverRange, localeData: this.localeData, max: maxDate, min: minDate, onCalciteDatePickerActiveDateChange: this.monthActiveDateChange,
|
|
11303
|
+
h("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 })
|
|
11119
11304
|
]);
|
|
11120
11305
|
}
|
|
11121
11306
|
/**
|
|
11122
11307
|
* Update date instance of start if valid
|
|
11308
|
+
*
|
|
11309
|
+
* @param startDate
|
|
11310
|
+
* @param emit
|
|
11123
11311
|
*/
|
|
11124
11312
|
setStartAsDate(startDate, emit) {
|
|
11125
11313
|
this.startAsDate = startDate;
|
|
@@ -11133,6 +11321,9 @@ const DatePicker = class extends HTMLElement$1 {
|
|
|
11133
11321
|
}
|
|
11134
11322
|
/**
|
|
11135
11323
|
* Update date instance of end if valid
|
|
11324
|
+
*
|
|
11325
|
+
* @param endDate
|
|
11326
|
+
* @param emit
|
|
11136
11327
|
*/
|
|
11137
11328
|
setEndAsDate(endDate, emit) {
|
|
11138
11329
|
this.endAsDate = endDate;
|
|
@@ -11156,6 +11347,10 @@ const DatePicker = class extends HTMLElement$1 {
|
|
|
11156
11347
|
}
|
|
11157
11348
|
/**
|
|
11158
11349
|
* Get an active date using the value, or current date as default
|
|
11350
|
+
*
|
|
11351
|
+
* @param value
|
|
11352
|
+
* @param min
|
|
11353
|
+
* @param max
|
|
11159
11354
|
*/
|
|
11160
11355
|
getActiveDate(value, min, max) {
|
|
11161
11356
|
return dateFromRange(this.activeDate, min, max) || value || dateFromRange(new Date(), min, max);
|
|
@@ -11190,7 +11385,7 @@ const DatePickerDay = class extends HTMLElement$1 {
|
|
|
11190
11385
|
this.__registerHost();
|
|
11191
11386
|
this.__attachShadow();
|
|
11192
11387
|
this.calciteDaySelect = createEvent(this, "calciteDaySelect", 7);
|
|
11193
|
-
this.
|
|
11388
|
+
this.calciteInternalDayHover = createEvent(this, "calciteInternalDayHover", 7);
|
|
11194
11389
|
/** Date is outside of range and can't be selected */
|
|
11195
11390
|
this.disabled = false;
|
|
11196
11391
|
/** Date is in the current month. */
|
|
@@ -11225,7 +11420,7 @@ const DatePickerDay = class extends HTMLElement$1 {
|
|
|
11225
11420
|
};
|
|
11226
11421
|
}
|
|
11227
11422
|
mouseoverHandler() {
|
|
11228
|
-
this.
|
|
11423
|
+
this.calciteInternalDayHover.emit({
|
|
11229
11424
|
disabled: this.disabled
|
|
11230
11425
|
});
|
|
11231
11426
|
}
|
|
@@ -11260,9 +11455,9 @@ const DatePickerMonth = class extends HTMLElement$1 {
|
|
|
11260
11455
|
this.__registerHost();
|
|
11261
11456
|
this.__attachShadow();
|
|
11262
11457
|
this.calciteDatePickerSelect = createEvent(this, "calciteDatePickerSelect", 7);
|
|
11263
|
-
this.
|
|
11458
|
+
this.calciteInternalDatePickerHover = createEvent(this, "calciteInternalDatePickerHover", 7);
|
|
11264
11459
|
this.calciteDatePickerActiveDateChange = createEvent(this, "calciteDatePickerActiveDateChange", 7);
|
|
11265
|
-
this.
|
|
11460
|
+
this.calciteInternalDatePickerMouseOut = createEvent(this, "calciteInternalDatePickerMouseOut", 7);
|
|
11266
11461
|
/** Date currently active.*/
|
|
11267
11462
|
this.activeDate = new Date();
|
|
11268
11463
|
//--------------------------------------------------------------------------
|
|
@@ -11325,11 +11520,12 @@ const DatePickerMonth = class extends HTMLElement$1 {
|
|
|
11325
11520
|
this.dayHover = (e) => {
|
|
11326
11521
|
const target = e.target;
|
|
11327
11522
|
if (e.detail.disabled) {
|
|
11328
|
-
this.
|
|
11523
|
+
this.calciteInternalDatePickerMouseOut.emit();
|
|
11329
11524
|
}
|
|
11330
11525
|
else {
|
|
11331
|
-
this.
|
|
11526
|
+
this.calciteInternalDatePickerHover.emit(target.value);
|
|
11332
11527
|
}
|
|
11528
|
+
e.stopPropagation();
|
|
11333
11529
|
};
|
|
11334
11530
|
this.daySelect = (e) => {
|
|
11335
11531
|
const target = e.target;
|
|
@@ -11337,7 +11533,7 @@ const DatePickerMonth = class extends HTMLElement$1 {
|
|
|
11337
11533
|
};
|
|
11338
11534
|
}
|
|
11339
11535
|
mouseoutHandler() {
|
|
11340
|
-
this.
|
|
11536
|
+
this.calciteInternalDatePickerMouseOut.emit();
|
|
11341
11537
|
}
|
|
11342
11538
|
//--------------------------------------------------------------------------
|
|
11343
11539
|
//
|
|
@@ -11382,6 +11578,8 @@ const DatePickerMonth = class extends HTMLElement$1 {
|
|
|
11382
11578
|
//--------------------------------------------------------------------------
|
|
11383
11579
|
/**
|
|
11384
11580
|
* Add n months to the current month
|
|
11581
|
+
*
|
|
11582
|
+
* @param step
|
|
11385
11583
|
*/
|
|
11386
11584
|
addMonths(step) {
|
|
11387
11585
|
const nextDate = new Date(this.activeDate);
|
|
@@ -11391,6 +11589,8 @@ const DatePickerMonth = class extends HTMLElement$1 {
|
|
|
11391
11589
|
}
|
|
11392
11590
|
/**
|
|
11393
11591
|
* Add n days to the current date
|
|
11592
|
+
*
|
|
11593
|
+
* @param step
|
|
11394
11594
|
*/
|
|
11395
11595
|
addDays(step = 0) {
|
|
11396
11596
|
const nextDate = new Date(this.activeDate);
|
|
@@ -11400,6 +11600,10 @@ const DatePickerMonth = class extends HTMLElement$1 {
|
|
|
11400
11600
|
}
|
|
11401
11601
|
/**
|
|
11402
11602
|
* Get dates for last days of the previous month
|
|
11603
|
+
*
|
|
11604
|
+
* @param month
|
|
11605
|
+
* @param year
|
|
11606
|
+
* @param startOfWeek
|
|
11403
11607
|
*/
|
|
11404
11608
|
getPrevMonthdays(month, year, startOfWeek) {
|
|
11405
11609
|
const lastDate = new Date(year, month, 0);
|
|
@@ -11416,6 +11620,9 @@ const DatePickerMonth = class extends HTMLElement$1 {
|
|
|
11416
11620
|
}
|
|
11417
11621
|
/**
|
|
11418
11622
|
* Get dates for the current month
|
|
11623
|
+
*
|
|
11624
|
+
* @param month
|
|
11625
|
+
* @param year
|
|
11419
11626
|
*/
|
|
11420
11627
|
getCurrentMonthDays(month, year) {
|
|
11421
11628
|
const num = new Date(year, month + 1, 0).getDate();
|
|
@@ -11427,6 +11634,10 @@ const DatePickerMonth = class extends HTMLElement$1 {
|
|
|
11427
11634
|
}
|
|
11428
11635
|
/**
|
|
11429
11636
|
* Get dates for first days of the next month
|
|
11637
|
+
*
|
|
11638
|
+
* @param month
|
|
11639
|
+
* @param year
|
|
11640
|
+
* @param startOfWeek
|
|
11430
11641
|
*/
|
|
11431
11642
|
getNextMonthDays(month, year, startOfWeek) {
|
|
11432
11643
|
const endDay = new Date(year, month + 1, 0).getDay();
|
|
@@ -11441,6 +11652,8 @@ const DatePickerMonth = class extends HTMLElement$1 {
|
|
|
11441
11652
|
}
|
|
11442
11653
|
/**
|
|
11443
11654
|
* Determine if the date is in between the start and end dates
|
|
11655
|
+
*
|
|
11656
|
+
* @param date
|
|
11444
11657
|
*/
|
|
11445
11658
|
betweenSelectedRange(date) {
|
|
11446
11659
|
return !!(this.startDate &&
|
|
@@ -11451,6 +11664,8 @@ const DatePickerMonth = class extends HTMLElement$1 {
|
|
|
11451
11664
|
}
|
|
11452
11665
|
/**
|
|
11453
11666
|
* Determine if the date should be in selected state
|
|
11667
|
+
*
|
|
11668
|
+
* @param date
|
|
11454
11669
|
*/
|
|
11455
11670
|
isSelected(date) {
|
|
11456
11671
|
return !!(sameDate(date, this.selectedDate) ||
|
|
@@ -11459,6 +11674,8 @@ const DatePickerMonth = class extends HTMLElement$1 {
|
|
|
11459
11674
|
}
|
|
11460
11675
|
/**
|
|
11461
11676
|
* Determine if the date is the start of the date range
|
|
11677
|
+
*
|
|
11678
|
+
* @param date
|
|
11462
11679
|
*/
|
|
11463
11680
|
isStartOfRange(date) {
|
|
11464
11681
|
return !!(this.startDate &&
|
|
@@ -11475,6 +11692,12 @@ const DatePickerMonth = class extends HTMLElement$1 {
|
|
|
11475
11692
|
}
|
|
11476
11693
|
/**
|
|
11477
11694
|
* Render calcite-date-picker-day
|
|
11695
|
+
*
|
|
11696
|
+
* @param active
|
|
11697
|
+
* @param day
|
|
11698
|
+
* @param date
|
|
11699
|
+
* @param currentMonth
|
|
11700
|
+
* @param ref
|
|
11478
11701
|
*/
|
|
11479
11702
|
renderDateDay(active, day, date, currentMonth, ref) {
|
|
11480
11703
|
var _a;
|
|
@@ -11486,7 +11709,7 @@ const DatePickerMonth = class extends HTMLElement$1 {
|
|
|
11486
11709
|
"hover--outside-range": this.startDate && !isHoverInRange,
|
|
11487
11710
|
"focused--start": isFocusedOnStart,
|
|
11488
11711
|
"focused--end": !isFocusedOnStart
|
|
11489
|
-
}, 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,
|
|
11712
|
+
}, 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) => {
|
|
11490
11713
|
// when moving via keyboard, focus must be updated on active date
|
|
11491
11714
|
if (ref && active && this.activeFocus) {
|
|
11492
11715
|
el === null || el === void 0 ? void 0 : el.focus();
|
|
@@ -11541,6 +11764,8 @@ const DatePickerMonthHeader = class extends HTMLElement$1 {
|
|
|
11541
11764
|
//--------------------------------------------------------------------------
|
|
11542
11765
|
/**
|
|
11543
11766
|
* Increment year on UP/DOWN keys
|
|
11767
|
+
*
|
|
11768
|
+
* @param e
|
|
11544
11769
|
*/
|
|
11545
11770
|
this.onYearKey = (e) => {
|
|
11546
11771
|
const localizedYear = e.target.value;
|
|
@@ -11640,6 +11865,11 @@ const DatePickerMonthHeader = class extends HTMLElement$1 {
|
|
|
11640
11865
|
/**
|
|
11641
11866
|
* Parse localized year string from input,
|
|
11642
11867
|
* set to active if in range
|
|
11868
|
+
*
|
|
11869
|
+
* @param root0
|
|
11870
|
+
* @param root0.localizedYear
|
|
11871
|
+
* @param root0.commit
|
|
11872
|
+
* @param root0.offset
|
|
11643
11873
|
*/
|
|
11644
11874
|
setYear({ localizedYear, commit = true, offset = 0 }) {
|
|
11645
11875
|
const { yearInput, activeDate, localeData } = this;
|
|
@@ -11692,12 +11922,13 @@ const Dropdown = class extends HTMLElement$1 {
|
|
|
11692
11922
|
/**
|
|
11693
11923
|
specify the maximum number of calcite-dropdown-items to display before showing the scroller, must be greater than 0 -
|
|
11694
11924
|
this value does not include groupTitles passed to calcite-dropdown-group
|
|
11695
|
-
|
|
11925
|
+
*/
|
|
11696
11926
|
this.maxItems = 0;
|
|
11697
11927
|
/** Describes the type of positioning to use for the overlaid content. If your element is in a fixed container, use the 'fixed' value. */
|
|
11698
11928
|
this.overlayPositioning = "absolute";
|
|
11699
11929
|
/**
|
|
11700
11930
|
* Determines where the dropdown will be positioned relative to the button.
|
|
11931
|
+
*
|
|
11701
11932
|
* @default "bottom-leading"
|
|
11702
11933
|
*/
|
|
11703
11934
|
this.placement = defaultMenuPlacement;
|
|
@@ -11884,8 +12115,9 @@ const Dropdown = class extends HTMLElement$1 {
|
|
|
11884
12115
|
}
|
|
11885
12116
|
this.closeCalciteDropdown(false);
|
|
11886
12117
|
}
|
|
11887
|
-
closeCalciteDropdownOnEvent() {
|
|
12118
|
+
closeCalciteDropdownOnEvent(e) {
|
|
11888
12119
|
this.closeCalciteDropdown();
|
|
12120
|
+
e.stopPropagation();
|
|
11889
12121
|
}
|
|
11890
12122
|
closeCalciteDropdownOnOpenEvent(e) {
|
|
11891
12123
|
if (e.composedPath().includes(this.el)) {
|
|
@@ -11903,7 +12135,7 @@ const Dropdown = class extends HTMLElement$1 {
|
|
|
11903
12135
|
this.closeCalciteDropdown();
|
|
11904
12136
|
}
|
|
11905
12137
|
}
|
|
11906
|
-
|
|
12138
|
+
calciteInternalDropdownItemKeyEvent(e) {
|
|
11907
12139
|
const { keyboardEvent } = e.detail;
|
|
11908
12140
|
// handle edge
|
|
11909
12141
|
const target = keyboardEvent.target;
|
|
@@ -11948,6 +12180,7 @@ const Dropdown = class extends HTMLElement$1 {
|
|
|
11948
12180
|
event.detail.requestedDropdownGroup.selectionMode === "none") {
|
|
11949
12181
|
this.closeCalciteDropdown();
|
|
11950
12182
|
}
|
|
12183
|
+
event.stopPropagation();
|
|
11951
12184
|
}
|
|
11952
12185
|
getModifiers() {
|
|
11953
12186
|
const flipModifier = {
|
|
@@ -12068,9 +12301,11 @@ const DropdownGroup = class extends HTMLElement$1 {
|
|
|
12068
12301
|
super();
|
|
12069
12302
|
this.__registerHost();
|
|
12070
12303
|
this.__attachShadow();
|
|
12071
|
-
this.
|
|
12072
|
-
/**
|
|
12073
|
-
|
|
12304
|
+
this.calciteInternalDropdownItemChange = createEvent(this, "calciteInternalDropdownItemChange", 7);
|
|
12305
|
+
/**
|
|
12306
|
+
specify the selection mode - multi (allow any number of (or no) active items), single (allow and require one active item),
|
|
12307
|
+
none (no active items), defaults to single
|
|
12308
|
+
*/
|
|
12074
12309
|
this.selectionMode = "single";
|
|
12075
12310
|
}
|
|
12076
12311
|
//--------------------------------------------------------------------------
|
|
@@ -12100,7 +12335,7 @@ const DropdownGroup = class extends HTMLElement$1 {
|
|
|
12100
12335
|
updateActiveItemOnChange(event) {
|
|
12101
12336
|
this.requestedDropdownGroup = event.detail.requestedDropdownGroup;
|
|
12102
12337
|
this.requestedDropdownItem = event.detail.requestedDropdownItem;
|
|
12103
|
-
this.
|
|
12338
|
+
this.calciteInternalDropdownItemChange.emit({
|
|
12104
12339
|
requestedDropdownGroup: this.requestedDropdownGroup,
|
|
12105
12340
|
requestedDropdownItem: this.requestedDropdownItem
|
|
12106
12341
|
});
|
|
@@ -12134,9 +12369,9 @@ const DropdownItem = class extends HTMLElement$1 {
|
|
|
12134
12369
|
super();
|
|
12135
12370
|
this.__registerHost();
|
|
12136
12371
|
this.__attachShadow();
|
|
12137
|
-
this.
|
|
12138
|
-
this.
|
|
12139
|
-
this.
|
|
12372
|
+
this.calciteInternalDropdownItemSelect = createEvent(this, "calciteInternalDropdownItemSelect", 7);
|
|
12373
|
+
this.calciteInternalDropdownItemKeyEvent = createEvent(this, "calciteInternalDropdownItemKeyEvent", 7);
|
|
12374
|
+
this.calciteInternalDropdownCloseRequest = createEvent(this, "calciteInternalDropdownCloseRequest", 7);
|
|
12140
12375
|
//--------------------------------------------------------------------------
|
|
12141
12376
|
//
|
|
12142
12377
|
// Public Properties
|
|
@@ -12221,14 +12456,14 @@ const DropdownItem = class extends HTMLElement$1 {
|
|
|
12221
12456
|
}
|
|
12222
12457
|
break;
|
|
12223
12458
|
case "Escape":
|
|
12224
|
-
this.
|
|
12459
|
+
this.calciteInternalDropdownCloseRequest.emit();
|
|
12225
12460
|
break;
|
|
12226
12461
|
case "Tab":
|
|
12227
12462
|
case "ArrowUp":
|
|
12228
12463
|
case "ArrowDown":
|
|
12229
12464
|
case "Home":
|
|
12230
12465
|
case "End":
|
|
12231
|
-
this.
|
|
12466
|
+
this.calciteInternalDropdownItemKeyEvent.emit({ keyboardEvent: e });
|
|
12232
12467
|
break;
|
|
12233
12468
|
}
|
|
12234
12469
|
e.preventDefault();
|
|
@@ -12240,6 +12475,7 @@ const DropdownItem = class extends HTMLElement$1 {
|
|
|
12240
12475
|
this.requestedDropdownItem = event.detail.requestedDropdownItem;
|
|
12241
12476
|
this.determineActiveItem();
|
|
12242
12477
|
}
|
|
12478
|
+
event.stopPropagation();
|
|
12243
12479
|
}
|
|
12244
12480
|
//--------------------------------------------------------------------------
|
|
12245
12481
|
//
|
|
@@ -12274,7 +12510,7 @@ const DropdownItem = class extends HTMLElement$1 {
|
|
|
12274
12510
|
}
|
|
12275
12511
|
}
|
|
12276
12512
|
emitRequestedItem() {
|
|
12277
|
-
this.
|
|
12513
|
+
this.calciteInternalDropdownItemSelect.emit({
|
|
12278
12514
|
requestedDropdownItem: this.el,
|
|
12279
12515
|
requestedDropdownGroup: this.parentDropdownGroupEl
|
|
12280
12516
|
});
|
|
@@ -12316,6 +12552,7 @@ const Fab = class extends HTMLElement$1 {
|
|
|
12316
12552
|
this.disabled = false;
|
|
12317
12553
|
/**
|
|
12318
12554
|
* 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/.
|
|
12555
|
+
*
|
|
12319
12556
|
* @default "plus"
|
|
12320
12557
|
*/
|
|
12321
12558
|
this.icon = ICONS$9.plus;
|
|
@@ -12638,6 +12875,10 @@ const Flow = class extends HTMLElement$1 {
|
|
|
12638
12875
|
* Calculate slope of the tangents
|
|
12639
12876
|
* uses Steffen interpolation as it's monotonic
|
|
12640
12877
|
* http://jrwalsh1.github.io/posts/interpolations/
|
|
12878
|
+
*
|
|
12879
|
+
* @param p0
|
|
12880
|
+
* @param p1
|
|
12881
|
+
* @param p2
|
|
12641
12882
|
*/
|
|
12642
12883
|
function slope(p0, p1, p2) {
|
|
12643
12884
|
const dx = p1[0] - p0[0];
|
|
@@ -12651,6 +12892,10 @@ function slope(p0, p1, p2) {
|
|
|
12651
12892
|
}
|
|
12652
12893
|
/**
|
|
12653
12894
|
* Calculate slope for just one tangent (single-sided)
|
|
12895
|
+
*
|
|
12896
|
+
* @param p0
|
|
12897
|
+
* @param p1
|
|
12898
|
+
* @param m
|
|
12654
12899
|
*/
|
|
12655
12900
|
function slopeSingle(p0, p1, m) {
|
|
12656
12901
|
const dx = p1[0] - p0[0];
|
|
@@ -12663,6 +12908,12 @@ function slopeSingle(p0, p1, m) {
|
|
|
12663
12908
|
*
|
|
12664
12909
|
* Translates Hermite Spline to Beziér curve:
|
|
12665
12910
|
* stackoverflow.com/questions/42574940/
|
|
12911
|
+
*
|
|
12912
|
+
* @param p0
|
|
12913
|
+
* @param p1
|
|
12914
|
+
* @param m0
|
|
12915
|
+
* @param m1
|
|
12916
|
+
* @param t
|
|
12666
12917
|
*/
|
|
12667
12918
|
function bezier(p0, p1, m0, m1, t) {
|
|
12668
12919
|
const [x0, y0] = p0;
|
|
@@ -12676,6 +12927,12 @@ function bezier(p0, p1, m0, m1, t) {
|
|
|
12676
12927
|
/**
|
|
12677
12928
|
* Generate a function which will translate a point
|
|
12678
12929
|
* from the data coordinate space to svg viewbox oriented pixels
|
|
12930
|
+
*
|
|
12931
|
+
* @param root0
|
|
12932
|
+
* @param root0.width
|
|
12933
|
+
* @param root0.height
|
|
12934
|
+
* @param root0.min
|
|
12935
|
+
* @param root0.max
|
|
12679
12936
|
*/
|
|
12680
12937
|
function translate({ width, height, min, max }) {
|
|
12681
12938
|
const rangeX = max[0] - min[0];
|
|
@@ -12688,6 +12945,8 @@ function translate({ width, height, min, max }) {
|
|
|
12688
12945
|
}
|
|
12689
12946
|
/**
|
|
12690
12947
|
* Get the min and max values from the dataset
|
|
12948
|
+
*
|
|
12949
|
+
* @param data
|
|
12691
12950
|
*/
|
|
12692
12951
|
function range(data) {
|
|
12693
12952
|
const [startX, startY] = data[0];
|
|
@@ -12701,6 +12960,12 @@ function range(data) {
|
|
|
12701
12960
|
/**
|
|
12702
12961
|
* Generate drawing commands for an area graph
|
|
12703
12962
|
* returns a string can can be passed directly to a path element's `d` attribute
|
|
12963
|
+
*
|
|
12964
|
+
* @param root0
|
|
12965
|
+
* @param root0.data
|
|
12966
|
+
* @param root0.min
|
|
12967
|
+
* @param root0.max
|
|
12968
|
+
* @param root0.t
|
|
12704
12969
|
*/
|
|
12705
12970
|
function area({ data, min, max, t }) {
|
|
12706
12971
|
if (data.length === 0) {
|
|
@@ -12846,7 +13111,7 @@ const Handle = class extends HTMLElement$1 {
|
|
|
12846
13111
|
//
|
|
12847
13112
|
// --------------------------------------------------------------------------
|
|
12848
13113
|
/**
|
|
12849
|
-
* @internal
|
|
13114
|
+
* @internal
|
|
12850
13115
|
*/
|
|
12851
13116
|
this.activated = false;
|
|
12852
13117
|
/**
|
|
@@ -12910,12 +13175,14 @@ const CSS$u = {
|
|
|
12910
13175
|
/**
|
|
12911
13176
|
* Icon data cache.
|
|
12912
13177
|
* Exported for testing purposes.
|
|
13178
|
+
*
|
|
12913
13179
|
* @private
|
|
12914
13180
|
*/
|
|
12915
13181
|
const iconCache = {};
|
|
12916
13182
|
/**
|
|
12917
13183
|
* Icon request cache.
|
|
12918
13184
|
* Exported for testing purposes.
|
|
13185
|
+
*
|
|
12919
13186
|
* @private
|
|
12920
13187
|
*/
|
|
12921
13188
|
const requestCache = {};
|
|
@@ -12948,6 +13215,8 @@ async function fetchIcon({ icon, scale }) {
|
|
|
12948
13215
|
/**
|
|
12949
13216
|
* Normalize the icon name to match the path data module exports.
|
|
12950
13217
|
* Exported for testing purposes.
|
|
13218
|
+
*
|
|
13219
|
+
* @param name
|
|
12951
13220
|
* @private
|
|
12952
13221
|
*/
|
|
12953
13222
|
function normalizeIconName(name) {
|
|
@@ -13083,7 +13352,7 @@ const InlineEditable = class extends HTMLElement$1 {
|
|
|
13083
13352
|
this.__attachShadow();
|
|
13084
13353
|
this.calciteInlineEditableEditCancel = createEvent(this, "calciteInlineEditableEditCancel", 7);
|
|
13085
13354
|
this.calciteInlineEditableEditConfirm = createEvent(this, "calciteInlineEditableEditConfirm", 7);
|
|
13086
|
-
this.
|
|
13355
|
+
this.calciteInternalInlineEditableEnableEditingChange = createEvent(this, "calciteInternalInlineEditableEnableEditingChange", 7);
|
|
13087
13356
|
//--------------------------------------------------------------------------
|
|
13088
13357
|
//
|
|
13089
13358
|
// Props
|
|
@@ -13097,15 +13366,21 @@ const InlineEditable = class extends HTMLElement$1 {
|
|
|
13097
13366
|
this.loading = false;
|
|
13098
13367
|
/** specify whether save/cancel controls should be displayed when editingEnabled is true, defaults to false */
|
|
13099
13368
|
this.controls = false;
|
|
13100
|
-
/**
|
|
13369
|
+
/**
|
|
13370
|
+
* specify text to be user for the enable editing button's aria-label, defaults to `Click to edit`
|
|
13371
|
+
*
|
|
13101
13372
|
* @default "Click to edit"
|
|
13102
13373
|
*/
|
|
13103
13374
|
this.intlEnableEditing = TEXT$d.intlEnablingEditing;
|
|
13104
|
-
/**
|
|
13375
|
+
/**
|
|
13376
|
+
* specify text to be user for the cancel editing button's aria-label, defaults to `Cancel`
|
|
13377
|
+
*
|
|
13105
13378
|
* @default "Cancel"
|
|
13106
13379
|
*/
|
|
13107
13380
|
this.intlCancelEditing = TEXT$d.intlCancelEditing;
|
|
13108
|
-
/**
|
|
13381
|
+
/**
|
|
13382
|
+
* specify text to be user for the confirm changes button's aria-label, defaults to `Save`
|
|
13383
|
+
*
|
|
13109
13384
|
* @default "Save"
|
|
13110
13385
|
*/
|
|
13111
13386
|
this.intlConfirmChanges = TEXT$d.intlConfirmChanges;
|
|
@@ -13115,7 +13390,7 @@ const InlineEditable = class extends HTMLElement$1 {
|
|
|
13115
13390
|
this.valuePriorToEditing = (_a = this.inputElement) === null || _a === void 0 ? void 0 : _a.value;
|
|
13116
13391
|
this.editingEnabled = true;
|
|
13117
13392
|
(_b = this.inputElement) === null || _b === void 0 ? void 0 : _b.setFocus();
|
|
13118
|
-
this.
|
|
13393
|
+
this.calciteInternalInlineEditableEnableEditingChange.emit();
|
|
13119
13394
|
};
|
|
13120
13395
|
this.disableEditing = () => {
|
|
13121
13396
|
this.editingEnabled = false;
|
|
@@ -13319,8 +13594,8 @@ const Input = class extends HTMLElement$1 {
|
|
|
13319
13594
|
super();
|
|
13320
13595
|
this.__registerHost();
|
|
13321
13596
|
this.__attachShadow();
|
|
13322
|
-
this.
|
|
13323
|
-
this.
|
|
13597
|
+
this.calciteInternalInputFocus = createEvent(this, "calciteInternalInputFocus", 7);
|
|
13598
|
+
this.calciteInternalInputBlur = createEvent(this, "calciteInternalInputBlur", 7);
|
|
13324
13599
|
this.calciteInputInput = createEvent(this, "calciteInputInput", 7);
|
|
13325
13600
|
this.calciteInputChange = createEvent(this, "calciteInputChange", 7);
|
|
13326
13601
|
//--------------------------------------------------------------------------
|
|
@@ -13332,9 +13607,11 @@ const Input = class extends HTMLElement$1 {
|
|
|
13332
13607
|
this.alignment = "start";
|
|
13333
13608
|
/** should the input autofocus */
|
|
13334
13609
|
this.autofocus = false;
|
|
13335
|
-
/**
|
|
13610
|
+
/**
|
|
13611
|
+
* optionally display a clear button that displays when field has a value
|
|
13336
13612
|
* shows by default for search, time, date
|
|
13337
|
-
* will not display for type="textarea"
|
|
13613
|
+
* will not display for type="textarea"
|
|
13614
|
+
*/
|
|
13338
13615
|
this.clearable = false;
|
|
13339
13616
|
/** is the input disabled */
|
|
13340
13617
|
this.disabled = false;
|
|
@@ -13344,6 +13621,7 @@ const Input = class extends HTMLElement$1 {
|
|
|
13344
13621
|
this.hidden = false;
|
|
13345
13622
|
/**
|
|
13346
13623
|
* string to override English loading text
|
|
13624
|
+
*
|
|
13347
13625
|
* @default "Loading"
|
|
13348
13626
|
*/
|
|
13349
13627
|
this.intlLoading = TEXT$s.loading;
|
|
@@ -13355,6 +13633,7 @@ const Input = class extends HTMLElement$1 {
|
|
|
13355
13633
|
this.locale = document.documentElement.lang || "en";
|
|
13356
13634
|
/**
|
|
13357
13635
|
* Toggles locale formatting for numbers.
|
|
13636
|
+
*
|
|
13358
13637
|
* @internal
|
|
13359
13638
|
*/
|
|
13360
13639
|
this.localeFormat = false;
|
|
@@ -13368,7 +13647,9 @@ const Input = class extends HTMLElement$1 {
|
|
|
13368
13647
|
this.scale = "m";
|
|
13369
13648
|
/** specify the status of the input field, determines message and icons */
|
|
13370
13649
|
this.status = "idle";
|
|
13371
|
-
/**
|
|
13650
|
+
/**
|
|
13651
|
+
* @internal
|
|
13652
|
+
*/
|
|
13372
13653
|
this.editingEnabled = false;
|
|
13373
13654
|
/**
|
|
13374
13655
|
* specify the input type
|
|
@@ -13415,7 +13696,7 @@ const Input = class extends HTMLElement$1 {
|
|
|
13415
13696
|
this.previousEmittedValue = this.value;
|
|
13416
13697
|
};
|
|
13417
13698
|
this.inputBlurHandler = () => {
|
|
13418
|
-
this.
|
|
13699
|
+
this.calciteInternalInputBlur.emit({
|
|
13419
13700
|
element: this.childEl,
|
|
13420
13701
|
value: this.value
|
|
13421
13702
|
});
|
|
@@ -13426,7 +13707,7 @@ const Input = class extends HTMLElement$1 {
|
|
|
13426
13707
|
if (event.target !== slottedActionEl) {
|
|
13427
13708
|
this.setFocus();
|
|
13428
13709
|
}
|
|
13429
|
-
this.
|
|
13710
|
+
this.calciteInternalInputFocus.emit({
|
|
13430
13711
|
element: this.childEl,
|
|
13431
13712
|
value: this.value
|
|
13432
13713
|
});
|
|
@@ -13867,8 +14148,8 @@ const InputDatePicker = class extends HTMLElement$1 {
|
|
|
13867
14148
|
this.calciteDatePickerChange = createEvent(this, "calciteDatePickerChange", 7);
|
|
13868
14149
|
this.calciteDatePickerRangeChange = createEvent(this, "calciteDatePickerRangeChange", 7);
|
|
13869
14150
|
this.calciteInputDatePickerChange = createEvent(this, "calciteInputDatePickerChange", 7);
|
|
13870
|
-
this.
|
|
13871
|
-
this.
|
|
14151
|
+
this.calciteInternalInputDatePickerOpen = createEvent(this, "calciteInternalInputDatePickerOpen", 7);
|
|
14152
|
+
this.calciteInternalInputDatePickerClose = createEvent(this, "calciteInternalInputDatePickerClose", 7);
|
|
13872
14153
|
//--------------------------------------------------------------------------
|
|
13873
14154
|
//
|
|
13874
14155
|
// Public Properties
|
|
@@ -13880,15 +14161,21 @@ const InputDatePicker = class extends HTMLElement$1 {
|
|
|
13880
14161
|
this.disabled = false;
|
|
13881
14162
|
/** Expand or collapse when calendar does not have input */
|
|
13882
14163
|
this.active = false;
|
|
13883
|
-
/**
|
|
14164
|
+
/**
|
|
14165
|
+
* Localized string for "previous month" (used for aria label)
|
|
14166
|
+
*
|
|
13884
14167
|
* @default "Previous month"
|
|
13885
14168
|
*/
|
|
13886
14169
|
this.intlPrevMonth = TEXT$f.prevMonth;
|
|
13887
|
-
/**
|
|
14170
|
+
/**
|
|
14171
|
+
* Localized string for "next month" (used for aria label)
|
|
14172
|
+
*
|
|
13888
14173
|
* @default "Next month"
|
|
13889
14174
|
*/
|
|
13890
14175
|
this.intlNextMonth = TEXT$f.nextMonth;
|
|
13891
|
-
/**
|
|
14176
|
+
/**
|
|
14177
|
+
* Localized string for "year" (used for aria label)
|
|
14178
|
+
*
|
|
13892
14179
|
* @default "Year"
|
|
13893
14180
|
*/
|
|
13894
14181
|
this.intlYear = TEXT$f.year;
|
|
@@ -13898,6 +14185,7 @@ const InputDatePicker = class extends HTMLElement$1 {
|
|
|
13898
14185
|
this.scale = "m";
|
|
13899
14186
|
/**
|
|
13900
14187
|
* Determines where the date-picker component will be positioned relative to the input.
|
|
14188
|
+
*
|
|
13901
14189
|
* @default "bottom-leading"
|
|
13902
14190
|
*/
|
|
13903
14191
|
this.placement = defaultMenuPlacement;
|
|
@@ -13931,8 +14219,8 @@ const InputDatePicker = class extends HTMLElement$1 {
|
|
|
13931
14219
|
this.transitionEnd = (event) => {
|
|
13932
14220
|
if (event.propertyName === this.activeTransitionProp) {
|
|
13933
14221
|
this.active
|
|
13934
|
-
? this.
|
|
13935
|
-
: this.
|
|
14222
|
+
? this.calciteInternalInputDatePickerOpen.emit()
|
|
14223
|
+
: this.calciteInternalInputDatePickerClose.emit();
|
|
13936
14224
|
}
|
|
13937
14225
|
};
|
|
13938
14226
|
this.setStartInput = (el) => {
|
|
@@ -13984,6 +14272,8 @@ const InputDatePicker = class extends HTMLElement$1 {
|
|
|
13984
14272
|
};
|
|
13985
14273
|
/**
|
|
13986
14274
|
* Event handler for when the selected date changes
|
|
14275
|
+
*
|
|
14276
|
+
* @param event
|
|
13987
14277
|
*/
|
|
13988
14278
|
this.handleDateChange = (event) => {
|
|
13989
14279
|
if (this.range) {
|
|
@@ -14142,7 +14432,7 @@ const InputDatePicker = class extends HTMLElement$1 {
|
|
|
14142
14432
|
: null;
|
|
14143
14433
|
const formattedEndDate = endDate ? endDate.toLocaleDateString(this.locale) : "";
|
|
14144
14434
|
const formattedDate = date ? date.toLocaleDateString(this.locale) : "";
|
|
14145
|
-
return (h(Host, { onBlur: this.deactivate, onKeyDown: this.keyDownHandler, onKeyUp: this.keyUpHandler, role: "application" }, this.localeData && (h("div", { "aria-expanded": toAriaBoolean(this.active), class: "input-container", role: "application" }, h("div", { class: "input-wrapper", ref: this.setStartWrapper }, h("calcite-input", { class: `input ${this.layout === "vertical" && this.range ? `no-bottom-border` : ``}`, disabled: disabled, icon: "calendar", label: getLabelText(this), "number-button-type": "none",
|
|
14435
|
+
return (h(Host, { onBlur: this.deactivate, onKeyDown: this.keyDownHandler, onKeyUp: this.keyUpHandler, role: "application" }, this.localeData && (h("div", { "aria-expanded": toAriaBoolean(this.active), class: "input-container", role: "application" }, h("div", { class: "input-wrapper", ref: this.setStartWrapper }, h("calcite-input", { class: `input ${this.layout === "vertical" && this.range ? `no-bottom-border` : ``}`, disabled: disabled, icon: "calendar", label: getLabelText(this), "number-button-type": "none", 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 })), h("div", { "aria-hidden": toAriaBoolean(!this.active), class: {
|
|
14146
14436
|
"menu-container": true,
|
|
14147
14437
|
"menu-container--active": this.active
|
|
14148
14438
|
}, ref: this.setMenuEl }, h("div", { class: {
|
|
@@ -14153,7 +14443,7 @@ const InputDatePicker = class extends HTMLElement$1 {
|
|
|
14153
14443
|
}, onTransitionEnd: this.transitionEnd }, h("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" && (h("div", { class: "horizontal-arrow-container" }, h("calcite-icon", { flipRtl: true, icon: "arrow-right", scale: "s" }))), this.range && this.layout === "vertical" && this.scale !== "s" && (h("div", { class: "vertical-arrow-container" }, h("calcite-icon", { icon: "arrow-down", scale: "s" }))), this.range && (h("div", { class: "input-wrapper", ref: this.setEndWrapper }, h("calcite-input", { class: {
|
|
14154
14444
|
input: true,
|
|
14155
14445
|
"border-top-color-one": this.layout === "vertical" && this.range
|
|
14156
|
-
}, disabled: disabled, icon: "calendar", "number-button-type": "none",
|
|
14446
|
+
}, 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 }))))), h(HiddenFormInputSlot, { component: this })));
|
|
14157
14447
|
}
|
|
14158
14448
|
setReferenceEl() {
|
|
14159
14449
|
const { focusedInput, layout, endWrapper, startWrapper } = this;
|
|
@@ -14241,6 +14531,8 @@ const InputDatePicker = class extends HTMLElement$1 {
|
|
|
14241
14531
|
}
|
|
14242
14532
|
/**
|
|
14243
14533
|
* If inputted string is a valid date, update value/active
|
|
14534
|
+
*
|
|
14535
|
+
* @param value
|
|
14244
14536
|
*/
|
|
14245
14537
|
input(value) {
|
|
14246
14538
|
const date = this.getDateFromInput(value);
|
|
@@ -14283,6 +14575,8 @@ const InputDatePicker = class extends HTMLElement$1 {
|
|
|
14283
14575
|
}
|
|
14284
14576
|
/**
|
|
14285
14577
|
* Clean up invalid date from input on blur
|
|
14578
|
+
*
|
|
14579
|
+
* @param target
|
|
14286
14580
|
*/
|
|
14287
14581
|
blur(target) {
|
|
14288
14582
|
const { locale, focusedInput, endAsDate, range, startAsDate, valueAsDate } = this;
|
|
@@ -14316,6 +14610,8 @@ const InputDatePicker = class extends HTMLElement$1 {
|
|
|
14316
14610
|
/**
|
|
14317
14611
|
* Find a date from input string
|
|
14318
14612
|
* return false if date is invalid, or out of range
|
|
14613
|
+
*
|
|
14614
|
+
* @param value
|
|
14319
14615
|
*/
|
|
14320
14616
|
getDateFromInput(value) {
|
|
14321
14617
|
if (!this.localeData) {
|
|
@@ -14613,6 +14909,7 @@ const InputTimePicker = class extends HTMLElement$1 {
|
|
|
14613
14909
|
this.disabled = false;
|
|
14614
14910
|
/**
|
|
14615
14911
|
* BCP 47 language tag for desired language and country format
|
|
14912
|
+
*
|
|
14616
14913
|
* @internal
|
|
14617
14914
|
*/
|
|
14618
14915
|
this.locale = document.documentElement.lang || navigator.language || "en";
|
|
@@ -14626,6 +14923,7 @@ const InputTimePicker = class extends HTMLElement$1 {
|
|
|
14626
14923
|
this.scale = "m";
|
|
14627
14924
|
/**
|
|
14628
14925
|
* Determines where the popover will be positioned relative to the input.
|
|
14926
|
+
*
|
|
14629
14927
|
* @see [PopperPlacement](https://github.com/Esri/calcite-components/blob/master/src/utils/popper.ts#L25)
|
|
14630
14928
|
*/
|
|
14631
14929
|
this.placement = "auto";
|
|
@@ -14642,14 +14940,15 @@ const InputTimePicker = class extends HTMLElement$1 {
|
|
|
14642
14940
|
// Event Listeners
|
|
14643
14941
|
//
|
|
14644
14942
|
//--------------------------------------------------------------------------
|
|
14645
|
-
this.
|
|
14943
|
+
this.calciteInternalInputBlurHandler = () => {
|
|
14646
14944
|
this.active = false;
|
|
14647
14945
|
const shouldIncludeSeconds = this.shouldIncludeSeconds();
|
|
14648
14946
|
const localizedInputValue = localizeTimeString(this.calciteInputEl.value, this.locale, shouldIncludeSeconds);
|
|
14649
14947
|
this.setInputValue(localizedInputValue || localizeTimeString(this.value, this.locale, shouldIncludeSeconds));
|
|
14650
14948
|
};
|
|
14651
|
-
this.
|
|
14949
|
+
this.calciteInternalInputFocusHandler = (event) => {
|
|
14652
14950
|
this.active = true;
|
|
14951
|
+
event.stopPropagation();
|
|
14653
14952
|
};
|
|
14654
14953
|
this.calciteInputInputHandler = (event) => {
|
|
14655
14954
|
const target = event.target;
|
|
@@ -14660,6 +14959,7 @@ const InputTimePicker = class extends HTMLElement$1 {
|
|
|
14660
14959
|
const target = event.target;
|
|
14661
14960
|
const value = target.value;
|
|
14662
14961
|
this.setValue({ value, origin: "time-picker" });
|
|
14962
|
+
event.stopPropagation();
|
|
14663
14963
|
};
|
|
14664
14964
|
// --------------------------------------------------------------------------
|
|
14665
14965
|
//
|
|
@@ -14817,7 +15117,7 @@ const InputTimePicker = class extends HTMLElement$1 {
|
|
|
14817
15117
|
// --------------------------------------------------------------------------
|
|
14818
15118
|
render() {
|
|
14819
15119
|
const popoverId = `${this.referenceElementId}-popover`;
|
|
14820
|
-
return (h(Host, { onKeyDown: this.keyDownHandler }, h("div", { "aria-controls": popoverId, "aria-haspopup": "dialog", "aria-label": this.name, "aria-owns": popoverId, id: this.referenceElementId, role: "combobox" }, h("calcite-input", { disabled: this.disabled, icon: "clock", label: getLabelText(this),
|
|
15120
|
+
return (h(Host, { onKeyDown: this.keyDownHandler }, h("div", { "aria-controls": popoverId, "aria-haspopup": "dialog", "aria-label": this.name, "aria-owns": popoverId, id: this.referenceElementId, role: "combobox" }, h("calcite-input", { disabled: this.disabled, icon: "clock", label: getLabelText(this), onCalciteInputInput: this.calciteInputInputHandler, onCalciteInternalInputBlur: this.calciteInternalInputBlurHandler, onCalciteInternalInputFocus: this.calciteInternalInputFocusHandler, ref: this.setCalciteInputEl, scale: this.scale, step: this.step })), h("calcite-popover", { id: popoverId, label: "Time Picker", open: this.active, placement: this.placement, ref: this.setCalcitePopoverEl, referenceElement: this.referenceElementId }, h("calcite-time-picker", { intlHour: this.intlHour, intlHourDown: this.intlHourDown, intlHourUp: this.intlHourUp, intlMeridiem: this.intlMeridiem, intlMeridiemDown: this.intlMeridiemDown, intlMeridiemUp: this.intlMeridiemUp, intlMinute: this.intlMinute, intlMinuteDown: this.intlMinuteDown, intlMinuteUp: this.intlMinuteUp, intlSecond: this.intlSecond, intlSecondDown: this.intlSecondDown, intlSecondUp: this.intlSecondUp, lang: this.locale, onCalciteInternalTimePickerChange: this.timePickerChangeHandler, ref: this.setCalciteTimePickerEl, scale: this.scale, step: this.step, value: this.value })), h(HiddenFormInputSlot, { component: this })));
|
|
14821
15121
|
}
|
|
14822
15122
|
get el() { return this; }
|
|
14823
15123
|
static get watchers() { return {
|
|
@@ -14850,6 +15150,7 @@ const Label = class extends HTMLElement$1 {
|
|
|
14850
15150
|
this.alignment = "start";
|
|
14851
15151
|
/**
|
|
14852
15152
|
* specify the status of the label and any child input / input messages
|
|
15153
|
+
*
|
|
14853
15154
|
* @deprecated set directly on child element instead
|
|
14854
15155
|
*/
|
|
14855
15156
|
this.status = "idle";
|
|
@@ -14908,7 +15209,8 @@ const Link = class extends HTMLElement$1 {
|
|
|
14908
15209
|
//--------------------------------------------------------------------------
|
|
14909
15210
|
/** is the link disabled */
|
|
14910
15211
|
this.disabled = false;
|
|
14911
|
-
/**
|
|
15212
|
+
/**
|
|
15213
|
+
* Prompts the user to save the linked URL instead of navigating to it. Can be used with or without a value:
|
|
14912
15214
|
* Without a value, the browser will suggest a filename/extension
|
|
14913
15215
|
* See: https://developer.mozilla.org/en-US/docs/Web/HTML/Element/a#attr-download
|
|
14914
15216
|
*/
|
|
@@ -14976,7 +15278,7 @@ const List$1 = class extends HTMLElement$1 {
|
|
|
14976
15278
|
//
|
|
14977
15279
|
// --------------------------------------------------------------------------
|
|
14978
15280
|
/**
|
|
14979
|
-
* When true,
|
|
15281
|
+
* When true, prevents user interaction.
|
|
14980
15282
|
*/
|
|
14981
15283
|
this.disabled = false;
|
|
14982
15284
|
}
|
|
@@ -15048,7 +15350,7 @@ const ListItem = class extends HTMLElement$1 {
|
|
|
15048
15350
|
*/
|
|
15049
15351
|
this.nonInteractive = false;
|
|
15050
15352
|
/**
|
|
15051
|
-
* When true,
|
|
15353
|
+
* When true, prevents user interaction.
|
|
15052
15354
|
*/
|
|
15053
15355
|
this.disabled = false;
|
|
15054
15356
|
}
|
|
@@ -15166,17 +15468,17 @@ const Loader = class extends HTMLElement$1 {
|
|
|
15166
15468
|
// Properties
|
|
15167
15469
|
//
|
|
15168
15470
|
//--------------------------------------------------------------------------
|
|
15169
|
-
/**
|
|
15471
|
+
/** When true, the loader is active. */
|
|
15170
15472
|
this.active = false;
|
|
15171
|
-
/**
|
|
15473
|
+
/** When true, displays smaller and appears to the left of the text. */
|
|
15172
15474
|
this.inline = false;
|
|
15173
|
-
/**
|
|
15475
|
+
/** Specify the scale of the loader. */
|
|
15174
15476
|
this.scale = "m";
|
|
15175
|
-
/**
|
|
15477
|
+
/** Valid only for determinate indicators. Percent complete of 100. */
|
|
15176
15478
|
this.value = 0;
|
|
15177
|
-
/** Text
|
|
15479
|
+
/** Text that displays under the loading indicator. */
|
|
15178
15480
|
this.text = "";
|
|
15179
|
-
/**
|
|
15481
|
+
/** Disables spacing around the loader. */
|
|
15180
15482
|
this.noPadding = false;
|
|
15181
15483
|
}
|
|
15182
15484
|
//--------------------------------------------------------------------------
|
|
@@ -15213,6 +15515,8 @@ const Loader = class extends HTMLElement$1 {
|
|
|
15213
15515
|
//--------------------------------------------------------------------------
|
|
15214
15516
|
/**
|
|
15215
15517
|
* Return the proper sizes based on the scale property
|
|
15518
|
+
*
|
|
15519
|
+
* @param scale
|
|
15216
15520
|
*/
|
|
15217
15521
|
getSize(scale) {
|
|
15218
15522
|
return {
|
|
@@ -15527,6 +15831,8 @@ const Modal = class extends HTMLElement$1 {
|
|
|
15527
15831
|
//--------------------------------------------------------------------------
|
|
15528
15832
|
/**
|
|
15529
15833
|
* Focus first interactive element
|
|
15834
|
+
*
|
|
15835
|
+
* @param el
|
|
15530
15836
|
* @deprecated use `setFocus` instead.
|
|
15531
15837
|
*/
|
|
15532
15838
|
async focusElement(el) {
|
|
@@ -15540,12 +15846,19 @@ const Modal = class extends HTMLElement$1 {
|
|
|
15540
15846
|
*
|
|
15541
15847
|
* By default, will try to focus on any focusable content. If there is none, it will focus on the close button.
|
|
15542
15848
|
* If you want to focus on the close button, you can use the `close-button` focus ID.
|
|
15849
|
+
*
|
|
15850
|
+
* @param focusId
|
|
15543
15851
|
*/
|
|
15544
15852
|
async setFocus(focusId) {
|
|
15545
15853
|
const closeButton = this.closeButtonEl;
|
|
15546
15854
|
return focusElement(focusId === "close-button" ? closeButton : getFocusableElements(this.el)[0] || closeButton);
|
|
15547
15855
|
}
|
|
15548
|
-
/**
|
|
15856
|
+
/**
|
|
15857
|
+
* Set the scroll top of the modal content
|
|
15858
|
+
*
|
|
15859
|
+
* @param top
|
|
15860
|
+
* @param left
|
|
15861
|
+
*/
|
|
15549
15862
|
async scrollContent(top = 0, left = 0) {
|
|
15550
15863
|
if (this.modalContent) {
|
|
15551
15864
|
if (this.modalContent.scrollTo) {
|
|
@@ -15625,7 +15938,9 @@ const Notice = class extends HTMLElement$1 {
|
|
|
15625
15938
|
this.color = "blue";
|
|
15626
15939
|
/** Optionally show a button the user can click to dismiss the notice */
|
|
15627
15940
|
this.dismissible = false;
|
|
15628
|
-
/**
|
|
15941
|
+
/**
|
|
15942
|
+
* String for the close button.
|
|
15943
|
+
*
|
|
15629
15944
|
* @default "Close"
|
|
15630
15945
|
*/
|
|
15631
15946
|
this.intlClose = TEXT$a.close;
|
|
@@ -15699,7 +16014,7 @@ const Option = class extends HTMLElement$1 {
|
|
|
15699
16014
|
super();
|
|
15700
16015
|
this.__registerHost();
|
|
15701
16016
|
this.__attachShadow();
|
|
15702
|
-
this.
|
|
16017
|
+
this.calciteInternalOptionChange = createEvent(this, "calciteInternalOptionChange", 7);
|
|
15703
16018
|
//--------------------------------------------------------------------------
|
|
15704
16019
|
//
|
|
15705
16020
|
// Properties
|
|
@@ -15711,14 +16026,14 @@ const Option = class extends HTMLElement$1 {
|
|
|
15711
16026
|
this.disabled = false;
|
|
15712
16027
|
this.mutationObserver = createObserver("mutation", () => {
|
|
15713
16028
|
this.ensureTextContentDependentProps();
|
|
15714
|
-
this.
|
|
16029
|
+
this.calciteInternalOptionChange.emit();
|
|
15715
16030
|
});
|
|
15716
16031
|
}
|
|
15717
16032
|
handlePropChange(_newValue, _oldValue, propName) {
|
|
15718
16033
|
if (propName === "label" || propName === "value") {
|
|
15719
16034
|
this.ensureTextContentDependentProps();
|
|
15720
16035
|
}
|
|
15721
|
-
this.
|
|
16036
|
+
this.calciteInternalOptionChange.emit();
|
|
15722
16037
|
}
|
|
15723
16038
|
//--------------------------------------------------------------------------
|
|
15724
16039
|
//
|
|
@@ -15780,7 +16095,7 @@ const OptionGroup = class extends HTMLElement$1 {
|
|
|
15780
16095
|
super();
|
|
15781
16096
|
this.__registerHost();
|
|
15782
16097
|
this.__attachShadow();
|
|
15783
|
-
this.
|
|
16098
|
+
this.calciteInternalOptionGroupChange = createEvent(this, "calciteInternalOptionGroupChange", 7);
|
|
15784
16099
|
//--------------------------------------------------------------------------
|
|
15785
16100
|
//
|
|
15786
16101
|
// Properties
|
|
@@ -15792,7 +16107,7 @@ const OptionGroup = class extends HTMLElement$1 {
|
|
|
15792
16107
|
this.disabled = false;
|
|
15793
16108
|
}
|
|
15794
16109
|
handlePropChange() {
|
|
15795
|
-
this.
|
|
16110
|
+
this.calciteInternalOptionGroupChange.emit();
|
|
15796
16111
|
}
|
|
15797
16112
|
//--------------------------------------------------------------------------
|
|
15798
16113
|
//
|
|
@@ -15845,11 +16160,15 @@ const Pagination = class extends HTMLElement$1 {
|
|
|
15845
16160
|
this.start = 1;
|
|
15846
16161
|
/** total number of items */
|
|
15847
16162
|
this.total = 0;
|
|
15848
|
-
/**
|
|
16163
|
+
/**
|
|
16164
|
+
* Used as an accessible label (aria-label) for the next button
|
|
16165
|
+
*
|
|
15849
16166
|
* @default "Next"
|
|
15850
16167
|
*/
|
|
15851
16168
|
this.textLabelNext = TEXT$9.nextLabel;
|
|
15852
|
-
/**
|
|
16169
|
+
/**
|
|
16170
|
+
* Used as an accessible label (aria-label) of the previous button
|
|
16171
|
+
*
|
|
15853
16172
|
* @default "Previous"
|
|
15854
16173
|
*/
|
|
15855
16174
|
this.textLabelPrevious = TEXT$9.previousLabel;
|
|
@@ -16138,7 +16457,11 @@ const Panel = class extends HTMLElement$1 {
|
|
|
16138
16457
|
// Methods
|
|
16139
16458
|
//
|
|
16140
16459
|
// --------------------------------------------------------------------------
|
|
16141
|
-
/**
|
|
16460
|
+
/**
|
|
16461
|
+
* Sets focus on the component.
|
|
16462
|
+
*
|
|
16463
|
+
* @param focusId
|
|
16464
|
+
*/
|
|
16142
16465
|
async setFocus(focusId) {
|
|
16143
16466
|
var _a, _b, _c;
|
|
16144
16467
|
if (focusId === "dismiss-button") {
|
|
@@ -16151,7 +16474,8 @@ const Panel = class extends HTMLElement$1 {
|
|
|
16151
16474
|
}
|
|
16152
16475
|
(_c = this.containerEl) === null || _c === void 0 ? void 0 : _c.focus();
|
|
16153
16476
|
}
|
|
16154
|
-
/**
|
|
16477
|
+
/**
|
|
16478
|
+
* Scrolls panel content to a particular set of coordinates.
|
|
16155
16479
|
*
|
|
16156
16480
|
* ```
|
|
16157
16481
|
* myCalcitePanel.scrollContentTo({
|
|
@@ -16160,6 +16484,8 @@ const Panel = class extends HTMLElement$1 {
|
|
|
16160
16484
|
* behavior: "auto" // Specifies whether the scrolling should animate smoothly (smooth), or happen instantly in a single jump (auto, the default value).
|
|
16161
16485
|
* });
|
|
16162
16486
|
* ```
|
|
16487
|
+
*
|
|
16488
|
+
* @param options
|
|
16163
16489
|
*/
|
|
16164
16490
|
async scrollContentTo(options) {
|
|
16165
16491
|
var _a;
|
|
@@ -16331,8 +16657,7 @@ function calciteListItemChangeHandler(event) {
|
|
|
16331
16657
|
this.lastSelectedItem = item;
|
|
16332
16658
|
this.emitCalciteListChange();
|
|
16333
16659
|
}
|
|
16334
|
-
function
|
|
16335
|
-
event.stopPropagation();
|
|
16660
|
+
function calciteInternalListItemValueChangeHandler(event) {
|
|
16336
16661
|
const oldValue = event.detail.oldValue;
|
|
16337
16662
|
const selectedValues = this.selectedValues;
|
|
16338
16663
|
if (selectedValues.has(oldValue)) {
|
|
@@ -16340,6 +16665,7 @@ function calciteListItemValueChangeHandler(event) {
|
|
|
16340
16665
|
selectedValues.delete(oldValue);
|
|
16341
16666
|
selectedValues.set(event.detail.newValue, item);
|
|
16342
16667
|
}
|
|
16668
|
+
event.stopPropagation();
|
|
16343
16669
|
}
|
|
16344
16670
|
// --------------------------------------------------------------------------
|
|
16345
16671
|
//
|
|
@@ -16661,12 +16987,13 @@ const PickList = class extends HTMLElement$1 {
|
|
|
16661
16987
|
calciteListItemChangeHandler(event) {
|
|
16662
16988
|
calciteListItemChangeHandler.call(this, event);
|
|
16663
16989
|
}
|
|
16664
|
-
|
|
16990
|
+
calciteInternalListItemPropsChangeHandler(event) {
|
|
16665
16991
|
event.stopPropagation();
|
|
16666
16992
|
this.setUpFilter();
|
|
16667
16993
|
}
|
|
16668
|
-
|
|
16669
|
-
|
|
16994
|
+
calciteInternalListItemValueChangeHandler(event) {
|
|
16995
|
+
calciteInternalListItemValueChangeHandler.call(this, event);
|
|
16996
|
+
event.stopPropagation();
|
|
16670
16997
|
}
|
|
16671
16998
|
calciteListFocusOutHandler(event) {
|
|
16672
16999
|
calciteListFocusOutHandler.call(this, event);
|
|
@@ -16693,7 +17020,11 @@ const PickList = class extends HTMLElement$1 {
|
|
|
16693
17020
|
async getSelectedItems() {
|
|
16694
17021
|
return this.selectedValues;
|
|
16695
17022
|
}
|
|
16696
|
-
/**
|
|
17023
|
+
/**
|
|
17024
|
+
* Sets focus on the component.
|
|
17025
|
+
*
|
|
17026
|
+
* @param focusId
|
|
17027
|
+
*/
|
|
16697
17028
|
async setFocus(focusId) {
|
|
16698
17029
|
return setFocus.call(this, focusId);
|
|
16699
17030
|
}
|
|
@@ -16790,8 +17121,8 @@ const PickListItem = class extends HTMLElement$1 {
|
|
|
16790
17121
|
this.__attachShadow();
|
|
16791
17122
|
this.calciteListItemChange = createEvent(this, "calciteListItemChange", 7);
|
|
16792
17123
|
this.calciteListItemRemove = createEvent(this, "calciteListItemRemove", 7);
|
|
16793
|
-
this.
|
|
16794
|
-
this.
|
|
17124
|
+
this.calciteInternalListItemPropsChange = createEvent(this, "calciteInternalListItemPropsChange", 7);
|
|
17125
|
+
this.calciteInternalListItemValueChange = createEvent(this, "calciteInternalListItemValueChange", 7);
|
|
16795
17126
|
/**
|
|
16796
17127
|
* When true, the item cannot be clicked and is visually muted.
|
|
16797
17128
|
*/
|
|
@@ -16801,11 +17132,12 @@ const PickListItem = class extends HTMLElement$1 {
|
|
|
16801
17132
|
*/
|
|
16802
17133
|
this.disableDeselect = false;
|
|
16803
17134
|
/**
|
|
16804
|
-
* @internal
|
|
17135
|
+
* @internal
|
|
16805
17136
|
*/
|
|
16806
17137
|
this.nonInteractive = false;
|
|
16807
17138
|
/**
|
|
16808
17139
|
* Determines the icon SVG symbol that will be shown. Options are circle, square, grip or null.
|
|
17140
|
+
*
|
|
16809
17141
|
* @see [ICON_TYPES](https://github.com/Esri/calcite-components/blob/master/src/components/pick-list/resources.ts#L5)
|
|
16810
17142
|
*/
|
|
16811
17143
|
this.icon = null;
|
|
@@ -16819,6 +17151,7 @@ const PickListItem = class extends HTMLElement$1 {
|
|
|
16819
17151
|
this.selected = false;
|
|
16820
17152
|
/**
|
|
16821
17153
|
* Used as an accessible label (aria-label) for the "remove item" action. Only applicable if removable is true.
|
|
17154
|
+
*
|
|
16822
17155
|
* @default "Remove"
|
|
16823
17156
|
*/
|
|
16824
17157
|
this.intlRemove = TEXT$7.remove;
|
|
@@ -16848,13 +17181,13 @@ const PickListItem = class extends HTMLElement$1 {
|
|
|
16848
17181
|
};
|
|
16849
17182
|
}
|
|
16850
17183
|
descriptionWatchHandler() {
|
|
16851
|
-
this.
|
|
17184
|
+
this.calciteInternalListItemPropsChange.emit();
|
|
16852
17185
|
}
|
|
16853
17186
|
labelWatchHandler() {
|
|
16854
|
-
this.
|
|
17187
|
+
this.calciteInternalListItemPropsChange.emit();
|
|
16855
17188
|
}
|
|
16856
17189
|
metadataWatchHandler() {
|
|
16857
|
-
this.
|
|
17190
|
+
this.calciteInternalListItemPropsChange.emit();
|
|
16858
17191
|
}
|
|
16859
17192
|
selectedWatchHandler() {
|
|
16860
17193
|
this.calciteListItemChange.emit({
|
|
@@ -16866,7 +17199,7 @@ const PickListItem = class extends HTMLElement$1 {
|
|
|
16866
17199
|
this.shiftPressed = false;
|
|
16867
17200
|
}
|
|
16868
17201
|
valueWatchHandler(newValue, oldValue) {
|
|
16869
|
-
this.
|
|
17202
|
+
this.calciteInternalListItemValueChange.emit({ oldValue, newValue });
|
|
16870
17203
|
}
|
|
16871
17204
|
// --------------------------------------------------------------------------
|
|
16872
17205
|
//
|
|
@@ -16890,6 +17223,8 @@ const PickListItem = class extends HTMLElement$1 {
|
|
|
16890
17223
|
/**
|
|
16891
17224
|
* Used to toggle the selection state. By default this won't trigger an event.
|
|
16892
17225
|
* The first argument allows the value to be coerced, rather than swapping values.
|
|
17226
|
+
*
|
|
17227
|
+
* @param coerce
|
|
16893
17228
|
*/
|
|
16894
17229
|
async toggleSelected(coerce) {
|
|
16895
17230
|
this.selected = typeof coerce === "boolean" ? coerce : !this.selected;
|
|
@@ -16981,10 +17316,10 @@ class PopoverManager$1 {
|
|
|
16981
17316
|
const registeredElement = composedPath.find((pathEl) => registeredElements.has(pathEl));
|
|
16982
17317
|
return registeredElements.get(registeredElement);
|
|
16983
17318
|
};
|
|
16984
|
-
this.
|
|
17319
|
+
this.togglePopovers = (event) => {
|
|
16985
17320
|
const composedPath = event.composedPath();
|
|
16986
17321
|
const popover = this.queryPopover(composedPath);
|
|
16987
|
-
if (popover) {
|
|
17322
|
+
if (popover && !popover.triggerDisabled) {
|
|
16988
17323
|
popover.toggle();
|
|
16989
17324
|
return;
|
|
16990
17325
|
}
|
|
@@ -16992,6 +17327,15 @@ class PopoverManager$1 {
|
|
|
16992
17327
|
.filter((popover) => popover.autoClose && popover.open && !composedPath.includes(popover))
|
|
16993
17328
|
.forEach((popover) => popover.toggle(false));
|
|
16994
17329
|
};
|
|
17330
|
+
this.keyHandler = (event) => {
|
|
17331
|
+
if (event.key !== "Enter" && event.key !== " ") {
|
|
17332
|
+
return;
|
|
17333
|
+
}
|
|
17334
|
+
this.togglePopovers(event);
|
|
17335
|
+
};
|
|
17336
|
+
this.clickHandler = (event) => {
|
|
17337
|
+
this.togglePopovers(event);
|
|
17338
|
+
};
|
|
16995
17339
|
}
|
|
16996
17340
|
// --------------------------------------------------------------------------
|
|
16997
17341
|
//
|
|
@@ -17015,9 +17359,11 @@ class PopoverManager$1 {
|
|
|
17015
17359
|
}
|
|
17016
17360
|
addListeners() {
|
|
17017
17361
|
document.addEventListener("pointerdown", this.clickHandler, { capture: true });
|
|
17362
|
+
document.addEventListener("keydown", this.keyHandler, { capture: true });
|
|
17018
17363
|
}
|
|
17019
17364
|
removeListeners() {
|
|
17020
17365
|
document.removeEventListener("pointerdown", this.clickHandler, { capture: true });
|
|
17366
|
+
document.removeEventListener("keydown", this.keyHandler, { capture: true });
|
|
17021
17367
|
}
|
|
17022
17368
|
}
|
|
17023
17369
|
|
|
@@ -17042,6 +17388,7 @@ const Popover = class extends HTMLElement$1 {
|
|
|
17042
17388
|
this.autoClose = false;
|
|
17043
17389
|
/**
|
|
17044
17390
|
* Display a close button within the Popover.
|
|
17391
|
+
*
|
|
17045
17392
|
* @deprecated use dismissible instead.
|
|
17046
17393
|
*/
|
|
17047
17394
|
this.closeButton = false;
|
|
@@ -17059,6 +17406,7 @@ const Popover = class extends HTMLElement$1 {
|
|
|
17059
17406
|
this.disablePointer = false;
|
|
17060
17407
|
/**
|
|
17061
17408
|
* Offset the position of the popover away from the reference element.
|
|
17409
|
+
*
|
|
17062
17410
|
* @default 6
|
|
17063
17411
|
*/
|
|
17064
17412
|
this.offsetDistance = defaultOffsetDistance;
|
|
@@ -17074,10 +17422,17 @@ const Popover = class extends HTMLElement$1 {
|
|
|
17074
17422
|
this.overlayPositioning = "absolute";
|
|
17075
17423
|
/**
|
|
17076
17424
|
* Determines where the component will be positioned relative to the referenceElement.
|
|
17425
|
+
*
|
|
17077
17426
|
* @see [PopperPlacement](https://github.com/Esri/calcite-components/blob/master/src/utils/popper.ts#L25)
|
|
17078
17427
|
*/
|
|
17079
17428
|
this.placement = defaultPopoverPlacement;
|
|
17080
|
-
/**
|
|
17429
|
+
/**
|
|
17430
|
+
* 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.
|
|
17431
|
+
*/
|
|
17432
|
+
this.triggerDisabled = false;
|
|
17433
|
+
/**
|
|
17434
|
+
* Text for close button.
|
|
17435
|
+
*
|
|
17081
17436
|
* @default "Close"
|
|
17082
17437
|
*/
|
|
17083
17438
|
this.intlClose = TEXT$6.close;
|
|
@@ -17199,7 +17554,11 @@ const Popover = class extends HTMLElement$1 {
|
|
|
17199
17554
|
})
|
|
17200
17555
|
: this.createPopper();
|
|
17201
17556
|
}
|
|
17202
|
-
/**
|
|
17557
|
+
/**
|
|
17558
|
+
* Sets focus on the component.
|
|
17559
|
+
*
|
|
17560
|
+
* @param focusId
|
|
17561
|
+
*/
|
|
17203
17562
|
async setFocus(focusId) {
|
|
17204
17563
|
var _a;
|
|
17205
17564
|
const { closeButtonEl } = this;
|
|
@@ -17210,7 +17569,11 @@ const Popover = class extends HTMLElement$1 {
|
|
|
17210
17569
|
}
|
|
17211
17570
|
(_a = this.el) === null || _a === void 0 ? void 0 : _a.focus();
|
|
17212
17571
|
}
|
|
17213
|
-
/**
|
|
17572
|
+
/**
|
|
17573
|
+
* Toggles the popover's open property.
|
|
17574
|
+
*
|
|
17575
|
+
* @param value
|
|
17576
|
+
*/
|
|
17214
17577
|
async toggle(value = !this.open) {
|
|
17215
17578
|
this.open = value;
|
|
17216
17579
|
}
|
|
@@ -17326,6 +17689,7 @@ const PopoverManager = class extends HTMLElement$1 {
|
|
|
17326
17689
|
// --------------------------------------------------------------------------
|
|
17327
17690
|
/**
|
|
17328
17691
|
* CSS Selector to match reference elements for popovers. Reference elements will be identified by this selector in order to open their associated popover.
|
|
17692
|
+
*
|
|
17329
17693
|
* @default `[data-calcite-popover-reference]`
|
|
17330
17694
|
*/
|
|
17331
17695
|
this.selector = "[data-calcite-popover-reference]";
|
|
@@ -17428,6 +17792,7 @@ const RadioButton = class extends HTMLElement$1 {
|
|
|
17428
17792
|
this.disabled = false;
|
|
17429
17793
|
/**
|
|
17430
17794
|
* The focused state of the radio button.
|
|
17795
|
+
*
|
|
17431
17796
|
* @internal
|
|
17432
17797
|
*/
|
|
17433
17798
|
this.focused = false;
|
|
@@ -17435,6 +17800,7 @@ const RadioButton = class extends HTMLElement$1 {
|
|
|
17435
17800
|
this.hidden = false;
|
|
17436
17801
|
/**
|
|
17437
17802
|
* The hovered state of the radio button.
|
|
17803
|
+
*
|
|
17438
17804
|
* @internal
|
|
17439
17805
|
*/
|
|
17440
17806
|
this.hovered = false;
|
|
@@ -17851,9 +18217,9 @@ const RadioGroup = class extends HTMLElement$1 {
|
|
|
17851
18217
|
return (h(Host, { onClick: this.handleClick, role: "radiogroup" }, h("slot", null), h(HiddenFormInputSlot, { component: this })));
|
|
17852
18218
|
}
|
|
17853
18219
|
handleSelected(event) {
|
|
17854
|
-
event.stopPropagation();
|
|
17855
18220
|
event.preventDefault();
|
|
17856
18221
|
this.selectItem(event.target);
|
|
18222
|
+
event.stopPropagation();
|
|
17857
18223
|
}
|
|
17858
18224
|
handleKeyDown(event) {
|
|
17859
18225
|
const keys = ["ArrowLeft", "ArrowUp", "ArrowRight", "ArrowDown", " "];
|
|
@@ -17966,7 +18332,7 @@ const RadioGroupItem = class extends HTMLElement$1 {
|
|
|
17966
18332
|
super();
|
|
17967
18333
|
this.__registerHost();
|
|
17968
18334
|
this.__attachShadow();
|
|
17969
|
-
this.
|
|
18335
|
+
this.calciteInternalRadioGroupItemChange = createEvent(this, "calciteInternalRadioGroupItemChange", 7);
|
|
17970
18336
|
//--------------------------------------------------------------------------
|
|
17971
18337
|
//
|
|
17972
18338
|
// Properties
|
|
@@ -17980,7 +18346,7 @@ const RadioGroupItem = class extends HTMLElement$1 {
|
|
|
17980
18346
|
this.iconPosition = "start";
|
|
17981
18347
|
}
|
|
17982
18348
|
handleCheckedChange() {
|
|
17983
|
-
this.
|
|
18349
|
+
this.calciteInternalRadioGroupItemChange.emit();
|
|
17984
18350
|
}
|
|
17985
18351
|
render() {
|
|
17986
18352
|
const { checked, value } = this;
|
|
@@ -18031,11 +18397,15 @@ const Rating = class extends HTMLElement$1 {
|
|
|
18031
18397
|
this.disabled = false;
|
|
18032
18398
|
/** Show average and count data summary chip (if available) */
|
|
18033
18399
|
this.showChip = false;
|
|
18034
|
-
/**
|
|
18400
|
+
/**
|
|
18401
|
+
* Localized string for "Rating" (used for aria label)
|
|
18402
|
+
*
|
|
18035
18403
|
* @default "Rating"
|
|
18036
18404
|
*/
|
|
18037
18405
|
this.intlRating = TEXT$5.rating;
|
|
18038
|
-
/**
|
|
18406
|
+
/**
|
|
18407
|
+
* Localized string for labelling each star, `${num}` in the string will be replaced by the number
|
|
18408
|
+
*
|
|
18039
18409
|
* @default "Stars: ${num}"
|
|
18040
18410
|
*/
|
|
18041
18411
|
this.intlStars = TEXT$5.stars;
|
|
@@ -18144,7 +18514,9 @@ const Scrim = class extends HTMLElement$1 {
|
|
|
18144
18514
|
// Properties
|
|
18145
18515
|
//
|
|
18146
18516
|
// --------------------------------------------------------------------------
|
|
18147
|
-
/**
|
|
18517
|
+
/**
|
|
18518
|
+
* string to override English loading text
|
|
18519
|
+
*
|
|
18148
18520
|
* @default "Loading"
|
|
18149
18521
|
*/
|
|
18150
18522
|
this.intlLoading = TEXT$4.loading;
|
|
@@ -18580,6 +18952,7 @@ const ShellPanel = class extends HTMLElement$1 {
|
|
|
18580
18952
|
this.widthScale = "m";
|
|
18581
18953
|
/**
|
|
18582
18954
|
* Accessible label for resize separator.
|
|
18955
|
+
*
|
|
18583
18956
|
* @default "Resize"
|
|
18584
18957
|
*/
|
|
18585
18958
|
this.intlResize = TEXT$3.resize;
|
|
@@ -18866,6 +19239,7 @@ const Slider = class extends HTMLElement$1 {
|
|
|
18866
19239
|
};
|
|
18867
19240
|
/**
|
|
18868
19241
|
* Set the reference of the track Element
|
|
19242
|
+
*
|
|
18869
19243
|
* @internal
|
|
18870
19244
|
* @param node
|
|
18871
19245
|
*/
|
|
@@ -19255,6 +19629,7 @@ const Slider = class extends HTMLElement$1 {
|
|
|
19255
19629
|
}
|
|
19256
19630
|
/**
|
|
19257
19631
|
* Set the prop value if changed at the component level
|
|
19632
|
+
*
|
|
19258
19633
|
* @param valueProp
|
|
19259
19634
|
* @param value
|
|
19260
19635
|
*/
|
|
@@ -19273,6 +19648,9 @@ const Slider = class extends HTMLElement$1 {
|
|
|
19273
19648
|
}
|
|
19274
19649
|
/**
|
|
19275
19650
|
* If number is outside range, constrain to min or max
|
|
19651
|
+
*
|
|
19652
|
+
* @param value
|
|
19653
|
+
* @param prop
|
|
19276
19654
|
* @internal
|
|
19277
19655
|
*/
|
|
19278
19656
|
clamp(value, prop) {
|
|
@@ -19288,6 +19666,8 @@ const Slider = class extends HTMLElement$1 {
|
|
|
19288
19666
|
}
|
|
19289
19667
|
/**
|
|
19290
19668
|
* Translate a pixel position to value along the range
|
|
19669
|
+
*
|
|
19670
|
+
* @param x
|
|
19291
19671
|
* @internal
|
|
19292
19672
|
*/
|
|
19293
19673
|
translate(x) {
|
|
@@ -19304,6 +19684,8 @@ const Slider = class extends HTMLElement$1 {
|
|
|
19304
19684
|
}
|
|
19305
19685
|
/**
|
|
19306
19686
|
* Get closest allowed value along stepped values
|
|
19687
|
+
*
|
|
19688
|
+
* @param num
|
|
19307
19689
|
* @internal
|
|
19308
19690
|
*/
|
|
19309
19691
|
getClosestStep(num) {
|
|
@@ -19327,6 +19709,8 @@ const Slider = class extends HTMLElement$1 {
|
|
|
19327
19709
|
}
|
|
19328
19710
|
/**
|
|
19329
19711
|
* Get position of value along range as fractional value
|
|
19712
|
+
*
|
|
19713
|
+
* @param num
|
|
19330
19714
|
* @return {number} number in the unit interval [0,1]
|
|
19331
19715
|
* @internal
|
|
19332
19716
|
*/
|
|
@@ -19461,6 +19845,9 @@ const Slider = class extends HTMLElement$1 {
|
|
|
19461
19845
|
}
|
|
19462
19846
|
/**
|
|
19463
19847
|
* Returns an integer representing the number of pixels to offset on the left or right side based on desired position behavior.
|
|
19848
|
+
*
|
|
19849
|
+
* @param leftBounds
|
|
19850
|
+
* @param rightBounds
|
|
19464
19851
|
* @internal
|
|
19465
19852
|
*/
|
|
19466
19853
|
getHostOffset(leftBounds, rightBounds) {
|
|
@@ -19477,6 +19864,7 @@ const Slider = class extends HTMLElement$1 {
|
|
|
19477
19864
|
/**
|
|
19478
19865
|
* Returns an integer representing the number of pixels that the two given span elements are overlapping, taking into account
|
|
19479
19866
|
* 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.
|
|
19867
|
+
*
|
|
19480
19868
|
* @param leftLabel
|
|
19481
19869
|
* @param rightLabel
|
|
19482
19870
|
*/
|
|
@@ -19489,6 +19877,7 @@ const Slider = class extends HTMLElement$1 {
|
|
|
19489
19877
|
}
|
|
19490
19878
|
/**
|
|
19491
19879
|
* Returns a boolean value representing if the minLabel span element is obscured (being overlapped) by the given handle div element.
|
|
19880
|
+
*
|
|
19492
19881
|
* @param minLabel
|
|
19493
19882
|
* @param handle
|
|
19494
19883
|
*/
|
|
@@ -19499,6 +19888,7 @@ const Slider = class extends HTMLElement$1 {
|
|
|
19499
19888
|
}
|
|
19500
19889
|
/**
|
|
19501
19890
|
* Returns a boolean value representing if the maxLabel span element is obscured (being overlapped) by the given handle div element.
|
|
19891
|
+
*
|
|
19502
19892
|
* @param maxLabel
|
|
19503
19893
|
* @param handle
|
|
19504
19894
|
*/
|
|
@@ -22724,13 +23114,16 @@ const SplitButton = class extends HTMLElement$1 {
|
|
|
22724
23114
|
this.disabled = false;
|
|
22725
23115
|
/**
|
|
22726
23116
|
* Is the dropdown currently active or not
|
|
23117
|
+
*
|
|
22727
23118
|
* @internal
|
|
22728
23119
|
*/
|
|
22729
23120
|
this.active = false;
|
|
22730
23121
|
/** specify the icon used for the dropdown menu, defaults to chevron */
|
|
22731
23122
|
this.dropdownIconType = "chevron";
|
|
22732
|
-
/**
|
|
22733
|
-
|
|
23123
|
+
/**
|
|
23124
|
+
optionally add a calcite-loader component to the control,
|
|
23125
|
+
disabling interaction. with the primary button
|
|
23126
|
+
*/
|
|
22734
23127
|
this.loading = false;
|
|
22735
23128
|
/** Describes the type of positioning to use for the dropdown. If your element is in a fixed container, use the 'fixed' value. */
|
|
22736
23129
|
this.overlayPositioning = "absolute";
|
|
@@ -22793,7 +23186,7 @@ const Stepper = class extends HTMLElement$1 {
|
|
|
22793
23186
|
super();
|
|
22794
23187
|
this.__registerHost();
|
|
22795
23188
|
this.__attachShadow();
|
|
22796
|
-
this.
|
|
23189
|
+
this.calciteInternalStepperItemChange = createEvent(this, "calciteInternalStepperItemChange", 7);
|
|
22797
23190
|
//--------------------------------------------------------------------------
|
|
22798
23191
|
//
|
|
22799
23192
|
// Public Properties
|
|
@@ -22835,7 +23228,7 @@ const Stepper = class extends HTMLElement$1 {
|
|
|
22835
23228
|
componentDidLoad() {
|
|
22836
23229
|
// if no stepper items are set as active, default to the first one
|
|
22837
23230
|
if (!this.currentPosition) {
|
|
22838
|
-
this.
|
|
23231
|
+
this.calciteInternalStepperItemChange.emit({
|
|
22839
23232
|
position: 0
|
|
22840
23233
|
});
|
|
22841
23234
|
}
|
|
@@ -22853,7 +23246,7 @@ const Stepper = class extends HTMLElement$1 {
|
|
|
22853
23246
|
// Event Listeners
|
|
22854
23247
|
//
|
|
22855
23248
|
//--------------------------------------------------------------------------
|
|
22856
|
-
|
|
23249
|
+
calciteInternalStepperItemKeyEvent(e) {
|
|
22857
23250
|
const item = e.detail.item;
|
|
22858
23251
|
const itemToFocus = e.target;
|
|
22859
23252
|
const isFirstItem = this.itemIndex(itemToFocus) === 0;
|
|
@@ -22884,6 +23277,7 @@ const Stepper = class extends HTMLElement$1 {
|
|
|
22884
23277
|
this.focusLastItem();
|
|
22885
23278
|
break;
|
|
22886
23279
|
}
|
|
23280
|
+
e.stopPropagation();
|
|
22887
23281
|
}
|
|
22888
23282
|
registerItem(event) {
|
|
22889
23283
|
const item = event.target;
|
|
@@ -22894,15 +23288,17 @@ const Stepper = class extends HTMLElement$1 {
|
|
|
22894
23288
|
this.itemMap.set(item, position);
|
|
22895
23289
|
this.items = this.sortItems();
|
|
22896
23290
|
this.enabledItems = this.filterItems();
|
|
23291
|
+
event.stopPropagation();
|
|
22897
23292
|
}
|
|
22898
23293
|
updateItem(event) {
|
|
22899
23294
|
if (event.detail.content) {
|
|
22900
23295
|
this.requestedContent = event.detail.content;
|
|
22901
23296
|
}
|
|
22902
23297
|
this.currentPosition = event.detail.position;
|
|
22903
|
-
this.
|
|
23298
|
+
this.calciteInternalStepperItemChange.emit({
|
|
22904
23299
|
position: this.currentPosition
|
|
22905
23300
|
});
|
|
23301
|
+
event.stopPropagation();
|
|
22906
23302
|
}
|
|
22907
23303
|
//--------------------------------------------------------------------------
|
|
22908
23304
|
//
|
|
@@ -22925,7 +23321,11 @@ const Stepper = class extends HTMLElement$1 {
|
|
|
22925
23321
|
}
|
|
22926
23322
|
this.emitChangedItem(enabledStepIndex);
|
|
22927
23323
|
}
|
|
22928
|
-
/**
|
|
23324
|
+
/**
|
|
23325
|
+
* set the requested step as active
|
|
23326
|
+
*
|
|
23327
|
+
* @param step
|
|
23328
|
+
*/
|
|
22929
23329
|
async goToStep(step) {
|
|
22930
23330
|
const position = step - 1;
|
|
22931
23331
|
if (this.currentPosition !== position) {
|
|
@@ -22971,7 +23371,7 @@ const Stepper = class extends HTMLElement$1 {
|
|
|
22971
23371
|
}
|
|
22972
23372
|
emitChangedItem(position) {
|
|
22973
23373
|
this.currentPosition = position;
|
|
22974
|
-
this.
|
|
23374
|
+
this.calciteInternalStepperItemChange.emit({
|
|
22975
23375
|
position
|
|
22976
23376
|
});
|
|
22977
23377
|
}
|
|
@@ -23024,9 +23424,9 @@ const StepperItem = class extends HTMLElement$1 {
|
|
|
23024
23424
|
super();
|
|
23025
23425
|
this.__registerHost();
|
|
23026
23426
|
this.__attachShadow();
|
|
23027
|
-
this.
|
|
23028
|
-
this.
|
|
23029
|
-
this.
|
|
23427
|
+
this.calciteInternalStepperItemKeyEvent = createEvent(this, "calciteInternalStepperItemKeyEvent", 7);
|
|
23428
|
+
this.calciteInternalStepperItemSelect = createEvent(this, "calciteInternalStepperItemSelect", 7);
|
|
23429
|
+
this.calciteInternalStepperItemRegister = createEvent(this, "calciteInternalStepperItemRegister", 7);
|
|
23030
23430
|
//--------------------------------------------------------------------------
|
|
23031
23431
|
//
|
|
23032
23432
|
// Public Properties
|
|
@@ -23068,7 +23468,7 @@ const StepperItem = class extends HTMLElement$1 {
|
|
|
23068
23468
|
case "ArrowRight":
|
|
23069
23469
|
case "Home":
|
|
23070
23470
|
case "End":
|
|
23071
|
-
this.
|
|
23471
|
+
this.calciteInternalStepperItemKeyEvent.emit({ item: e });
|
|
23072
23472
|
e.preventDefault();
|
|
23073
23473
|
break;
|
|
23074
23474
|
}
|
|
@@ -23076,7 +23476,7 @@ const StepperItem = class extends HTMLElement$1 {
|
|
|
23076
23476
|
};
|
|
23077
23477
|
this.emitRequestedItem = () => {
|
|
23078
23478
|
if (!this.disabled) {
|
|
23079
|
-
this.
|
|
23479
|
+
this.calciteInternalStepperItemSelect.emit({
|
|
23080
23480
|
position: this.itemPosition,
|
|
23081
23481
|
content: this.itemContent
|
|
23082
23482
|
});
|
|
@@ -23127,6 +23527,7 @@ const StepperItem = class extends HTMLElement$1 {
|
|
|
23127
23527
|
this.activePosition = event.detail.position;
|
|
23128
23528
|
this.determineActiveItem();
|
|
23129
23529
|
}
|
|
23530
|
+
event.stopPropagation();
|
|
23130
23531
|
}
|
|
23131
23532
|
renderIcon() {
|
|
23132
23533
|
const path = this.active
|
|
@@ -23142,7 +23543,7 @@ const StepperItem = class extends HTMLElement$1 {
|
|
|
23142
23543
|
this.active = !this.disabled && this.itemPosition === this.activePosition;
|
|
23143
23544
|
}
|
|
23144
23545
|
registerStepperItem() {
|
|
23145
|
-
this.
|
|
23546
|
+
this.calciteInternalStepperItemRegister.emit({
|
|
23146
23547
|
position: this.itemPosition,
|
|
23147
23548
|
content: this.itemContent
|
|
23148
23549
|
});
|
|
@@ -23174,7 +23575,9 @@ const Switch = class extends HTMLElement$1 {
|
|
|
23174
23575
|
this.disabled = false;
|
|
23175
23576
|
/** The scale of the switch */
|
|
23176
23577
|
this.scale = "m";
|
|
23177
|
-
/**
|
|
23578
|
+
/**
|
|
23579
|
+
* True if the switch is initially on
|
|
23580
|
+
*
|
|
23178
23581
|
* @deprecated use 'checked' instead.
|
|
23179
23582
|
*/
|
|
23180
23583
|
this.switched = false;
|
|
@@ -23268,12 +23671,14 @@ const Tab = class extends HTMLElement$1 {
|
|
|
23268
23671
|
super();
|
|
23269
23672
|
this.__registerHost();
|
|
23270
23673
|
this.__attachShadow();
|
|
23271
|
-
this.
|
|
23674
|
+
this.calciteInternalTabRegister = createEvent(this, "calciteInternalTabRegister", 7);
|
|
23272
23675
|
/**
|
|
23273
23676
|
* Show this tab
|
|
23274
23677
|
*/
|
|
23275
23678
|
this.active = false;
|
|
23276
|
-
/**
|
|
23679
|
+
/**
|
|
23680
|
+
* @internal
|
|
23681
|
+
*/
|
|
23277
23682
|
this.scale = "m";
|
|
23278
23683
|
this.guid = `calcite-tab-title-${guid()}`;
|
|
23279
23684
|
}
|
|
@@ -23290,7 +23695,7 @@ const Tab = class extends HTMLElement$1 {
|
|
|
23290
23695
|
this.parentTabsEl = this.el.closest("calcite-tabs");
|
|
23291
23696
|
}
|
|
23292
23697
|
componentDidLoad() {
|
|
23293
|
-
this.
|
|
23698
|
+
this.calciteInternalTabRegister.emit();
|
|
23294
23699
|
}
|
|
23295
23700
|
componentWillRender() {
|
|
23296
23701
|
var _a;
|
|
@@ -23326,6 +23731,7 @@ const Tab = class extends HTMLElement$1 {
|
|
|
23326
23731
|
this.active = index === event.detail.tab;
|
|
23327
23732
|
});
|
|
23328
23733
|
}
|
|
23734
|
+
event.stopPropagation();
|
|
23329
23735
|
}
|
|
23330
23736
|
//--------------------------------------------------------------------------
|
|
23331
23737
|
//
|
|
@@ -23344,6 +23750,8 @@ const Tab = class extends HTMLElement$1 {
|
|
|
23344
23750
|
//
|
|
23345
23751
|
//--------------------------------------------------------------------------
|
|
23346
23752
|
/**
|
|
23753
|
+
* @param tabIds
|
|
23754
|
+
* @param titleIds
|
|
23347
23755
|
* @internal
|
|
23348
23756
|
*/
|
|
23349
23757
|
async updateAriaInfo(tabIds = [], titleIds = []) {
|
|
@@ -23353,7 +23761,7 @@ const Tab = class extends HTMLElement$1 {
|
|
|
23353
23761
|
static get style() { return tabCss; }
|
|
23354
23762
|
};
|
|
23355
23763
|
|
|
23356
|
-
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{--calcite-animation-timing:calc(150ms * var(--calcite-internal-duration-factor));--calcite-internal-duration-factor:var(--calcite-duration-factor, 1);--calcite-internal-animation-timing-fast:calc(100ms * var(--calcite-internal-duration-factor));--calcite-internal-animation-timing-medium:calc(200ms * var(--calcite-internal-duration-factor));--calcite-internal-animation-timing-slow:calc(300ms * var(--calcite-internal-duration-factor))}.calcite-animate{opacity:0;-webkit-animation-fill-mode:both;animation-fill-mode:both;-webkit-animation-duration:var(--calcite-animation-timing);animation-duration:var(--calcite-animation-timing)}.calcite-animate__in{-webkit-animation-name:in;animation-name:in}.calcite-animate__in-down{-webkit-animation-name:in-down;animation-name:in-down}.calcite-animate__in-up{-webkit-animation-name:in-up;animation-name:in-up}.calcite-animate__in-scale{-webkit-animation-name:in-scale;animation-name:in-scale}:root{--calcite-popper-transition:var(--calcite-animation-timing)}:host([hidden]){display:none}:host{position:relative;display:-ms-flexbox;display:flex}:host([scale=s]){min-height:1.5rem}:host([scale=m]){min-height:2rem}:host([scale=l]){min-height:2.75rem}.tab-nav{display:-ms-flexbox;display:flex;width:100%;-ms-flex-pack:start;justify-content:flex-start;overflow:auto}:host([layout=center]) .tab-nav{-ms-flex-pack:center;justify-content:center}.tab-nav-active-indicator-container{position:absolute;left:0px;right:0px;bottom:0px;height:0.125rem;width:100%;overflow:hidden}.tab-nav-active-indicator{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{bottom:unset;top:0px}:host([position=below]) .tab-nav-active-indicator-container{bottom:unset;top:0px}:host([bordered]) .tab-nav-active-indicator-container{bottom:unset}:host([bordered][position=below]) .tab-nav-active-indicator-container{bottom:0;top:unset}";
|
|
23764
|
+
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{--calcite-animation-timing:calc(150ms * var(--calcite-internal-duration-factor));--calcite-internal-duration-factor:var(--calcite-duration-factor, 1);--calcite-internal-animation-timing-fast:calc(100ms * var(--calcite-internal-duration-factor));--calcite-internal-animation-timing-medium:calc(200ms * var(--calcite-internal-duration-factor));--calcite-internal-animation-timing-slow:calc(300ms * var(--calcite-internal-duration-factor))}.calcite-animate{opacity:0;-webkit-animation-fill-mode:both;animation-fill-mode:both;-webkit-animation-duration:var(--calcite-animation-timing);animation-duration:var(--calcite-animation-timing)}.calcite-animate__in{-webkit-animation-name:in;animation-name:in}.calcite-animate__in-down{-webkit-animation-name:in-down;animation-name:in-down}.calcite-animate__in-up{-webkit-animation-name:in-up;animation-name:in-up}.calcite-animate__in-scale{-webkit-animation-name:in-scale;animation-name:in-scale}:root{--calcite-popper-transition:var(--calcite-animation-timing)}:host([hidden]){display:none}:host{position:relative;display:-ms-flexbox;display:flex}:host([scale=s]){min-height:1.5rem}:host([scale=m]){min-height:2rem}:host([scale=l]){min-height:2.75rem}.tab-nav{display:-ms-flexbox;display:flex;width:100%;-ms-flex-pack:start;justify-content:flex-start;overflow:auto}:host([layout=center]) .tab-nav{-ms-flex-pack:center;justify-content:center}.tab-nav-active-indicator-container{position:absolute;left:0px;right:0px;bottom:0px;height:0.125rem;width:100%;overflow:hidden}.tab-nav-active-indicator{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{bottom:unset;top:0px}:host([position=below]) .tab-nav-active-indicator-container{bottom:unset;top:0px}:host([bordered]) .tab-nav-active-indicator-container{bottom:unset}:host([bordered][position=below]) .tab-nav-active-indicator-container{bottom:0;top:unset}@media (forced-colors: active){.tab-nav-active-indicator{background-color:highlight}}";
|
|
23357
23765
|
|
|
23358
23766
|
const TabNav = class extends HTMLElement$1 {
|
|
23359
23767
|
constructor() {
|
|
@@ -23362,13 +23770,21 @@ const TabNav = class extends HTMLElement$1 {
|
|
|
23362
23770
|
this.__attachShadow();
|
|
23363
23771
|
this.calciteTabChange = createEvent(this, "calciteTabChange", 7);
|
|
23364
23772
|
this.calciteInternalTabChange = createEvent(this, "calciteInternalTabChange", 7);
|
|
23365
|
-
/**
|
|
23773
|
+
/**
|
|
23774
|
+
* @internal
|
|
23775
|
+
*/
|
|
23366
23776
|
this.scale = "m";
|
|
23367
|
-
/**
|
|
23777
|
+
/**
|
|
23778
|
+
* @internal
|
|
23779
|
+
*/
|
|
23368
23780
|
this.layout = "inline";
|
|
23369
|
-
/**
|
|
23781
|
+
/**
|
|
23782
|
+
* @internal
|
|
23783
|
+
*/
|
|
23370
23784
|
this.position = "below";
|
|
23371
|
-
/**
|
|
23785
|
+
/**
|
|
23786
|
+
* @internal
|
|
23787
|
+
*/
|
|
23372
23788
|
this.bordered = false;
|
|
23373
23789
|
this.animationActiveDuration = 0.3;
|
|
23374
23790
|
this.resizeObserver = createObserver("resize", () => {
|
|
@@ -23493,6 +23909,8 @@ const TabNav = class extends HTMLElement$1 {
|
|
|
23493
23909
|
}
|
|
23494
23910
|
/**
|
|
23495
23911
|
* Check for active tabs on register and update selected
|
|
23912
|
+
*
|
|
23913
|
+
* @param e
|
|
23496
23914
|
*/
|
|
23497
23915
|
updateTabTitles(e) {
|
|
23498
23916
|
if (e.target.active) {
|
|
@@ -23507,6 +23925,7 @@ const TabNav = class extends HTMLElement$1 {
|
|
|
23507
23925
|
this.selectedTab = e.detail.tab;
|
|
23508
23926
|
e.stopPropagation();
|
|
23509
23927
|
}
|
|
23928
|
+
e.stopPropagation();
|
|
23510
23929
|
}
|
|
23511
23930
|
updateOffsetPosition() {
|
|
23512
23931
|
var _a, _b, _c, _d, _e;
|
|
@@ -23546,7 +23965,7 @@ const TabNav = class extends HTMLElement$1 {
|
|
|
23546
23965
|
static get style() { return tabNavCss; }
|
|
23547
23966
|
};
|
|
23548
23967
|
|
|
23549
|
-
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{--calcite-animation-timing:calc(150ms * var(--calcite-internal-duration-factor));--calcite-internal-duration-factor:var(--calcite-duration-factor, 1);--calcite-internal-animation-timing-fast:calc(100ms * var(--calcite-internal-duration-factor));--calcite-internal-animation-timing-medium:calc(200ms * var(--calcite-internal-duration-factor));--calcite-internal-animation-timing-slow:calc(300ms * var(--calcite-internal-duration-factor))}.calcite-animate{opacity:0;-webkit-animation-fill-mode:both;animation-fill-mode:both;-webkit-animation-duration:var(--calcite-animation-timing);animation-duration:var(--calcite-animation-timing)}.calcite-animate__in{-webkit-animation-name:in;animation-name:in}.calcite-animate__in-down{-webkit-animation-name:in-down;animation-name:in-down}.calcite-animate__in-up{-webkit-animation-name:in-up;animation-name:in-up}.calcite-animate__in-scale{-webkit-animation-name:in-scale;animation-name:in-scale}:root{--calcite-popper-transition:var(--calcite-animation-timing)}:host([hidden]){display:none}:host{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]){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{border-bottom-width:0px;border-top-width:2px;border-top-color:transparent;border-top-style:solid}:host a{outline-offset:0;outline-color:transparent;-webkit-transition:outline-offset 100ms ease-in-out, outline-color 100ms ease-in-out;transition:outline-offset 100ms ease-in-out, outline-color 100ms ease-in-out}:host(:focus) a{outline:2px solid var(--calcite-ui-brand);outline-offset:-2px}:host(:active) a,:host(:focus) a,:host(:hover) a{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{border-color:transparent;color:var(--calcite-ui-text-1)}:host([disabled]){pointer-events:none;cursor:default;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;opacity:var(--calcite-ui-opacity-disabled)}:host([disabled]) span,:host([disabled]) a{pointer-events:none;opacity:0.5}:host([disabled]) ::slotted([calcite-hydrated][disabled]),:host([disabled]) [calcite-hydrated][disabled]{opacity:1}:host([scale=s]){-webkit-margin-end:1rem;margin-inline-end:1rem}:host([scale=s]) a,:host([scale=s]) span{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{padding-top:0.5rem;padding-bottom:0.5rem;font-size:var(--calcite-font-size--1);line-height:1rem}:host([scale=l]){-webkit-margin-end:1.5rem;margin-inline-end:1.5rem}:host([scale=l]) a,:host([scale=l]) span{padding-top:0.75rem;padding-bottom:0.75rem;font-size:var(--calcite-font-size-0);line-height:1.25rem}a,span{-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{cursor:default}.calcite-tab-title--icon{position:relative;margin:0px;display:-ms-inline-flexbox;display:inline-flex;-ms-flex-item-align:center;align-self:center}.calcite-tab-title--icon svg{-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{padding:0.25rem}.container--has-text .calcite-tab-title--icon.icon-start{-webkit-margin-end:0.5rem;margin-inline-end:0.5rem}.container--has-text .calcite-tab-title--icon.icon-end{-webkit-margin-start:0.5rem;margin-inline-start:0.5rem}:host([icon-start][icon-end]) .calcite-tab-title--icon:first-child{-webkit-margin-end:0.5rem;margin-inline-end:0.5rem}:host([bordered]){-webkit-margin-end:0;margin-inline-end:0}:host([bordered][active]){-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]){-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{position:relative}:host([bordered]:hover) a{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{border-bottom-style:unset}:host([bordered][position=below]) a{border-top-style:unset}:host([active][bordered]) a{border-left:1px solid var(--calcite-ui-border-1);border-right:1px solid var(--calcite-ui-border-1)}:host([bordered]) a,:host([bordered]) span{padding-left:0.75rem;padding-right:0.75rem}:host([bordered][scale=s]) a,:host([bordered][scale=s]) span{padding-left:0.5rem;padding-right:0.5rem}:host([bordered][scale=l]) a,:host([bordered][scale=l]) span{padding-left:1rem;padding-right:1rem}";
|
|
23968
|
+
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{--calcite-animation-timing:calc(150ms * var(--calcite-internal-duration-factor));--calcite-internal-duration-factor:var(--calcite-duration-factor, 1);--calcite-internal-animation-timing-fast:calc(100ms * var(--calcite-internal-duration-factor));--calcite-internal-animation-timing-medium:calc(200ms * var(--calcite-internal-duration-factor));--calcite-internal-animation-timing-slow:calc(300ms * var(--calcite-internal-duration-factor))}.calcite-animate{opacity:0;-webkit-animation-fill-mode:both;animation-fill-mode:both;-webkit-animation-duration:var(--calcite-animation-timing);animation-duration:var(--calcite-animation-timing)}.calcite-animate__in{-webkit-animation-name:in;animation-name:in}.calcite-animate__in-down{-webkit-animation-name:in-down;animation-name:in-down}.calcite-animate__in-up{-webkit-animation-name:in-up;animation-name:in-up}.calcite-animate__in-scale{-webkit-animation-name:in-scale;animation-name:in-scale}:root{--calcite-popper-transition:var(--calcite-animation-timing)}:host([hidden]){display:none}:host{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]){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{border-bottom-width:0px;border-top-width:2px;border-top-color:transparent;border-top-style:solid}:host a{outline-offset:0;outline-color:transparent;-webkit-transition:outline-offset 100ms ease-in-out, outline-color 100ms ease-in-out;transition:outline-offset 100ms ease-in-out, outline-color 100ms ease-in-out}:host(:focus) a{outline:2px solid var(--calcite-ui-brand);outline-offset:-2px}:host(:active) a,:host(:focus) a,:host(:hover) a{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{border-color:transparent;color:var(--calcite-ui-text-1)}:host([disabled]){pointer-events:none;cursor:default;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;opacity:var(--calcite-ui-opacity-disabled)}:host([disabled]) span,:host([disabled]) a{pointer-events:none;opacity:0.5}:host([disabled]) ::slotted([calcite-hydrated][disabled]),:host([disabled]) [calcite-hydrated][disabled]{opacity:1}:host([scale=s]){-webkit-margin-end:1rem;margin-inline-end:1rem}:host([scale=s]) a,:host([scale=s]) span{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{padding-top:0.5rem;padding-bottom:0.5rem;font-size:var(--calcite-font-size--1);line-height:1rem}:host([scale=l]){-webkit-margin-end:1.5rem;margin-inline-end:1.5rem}:host([scale=l]) a,:host([scale=l]) span{padding-top:0.75rem;padding-bottom:0.75rem;font-size:var(--calcite-font-size-0);line-height:1.25rem}a,span{-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{cursor:default}.calcite-tab-title--icon{position:relative;margin:0px;display:-ms-inline-flexbox;display:inline-flex;-ms-flex-item-align:center;align-self:center}.calcite-tab-title--icon svg{-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{padding:0.25rem}.container--has-text .calcite-tab-title--icon.icon-start{-webkit-margin-end:0.5rem;margin-inline-end:0.5rem}.container--has-text .calcite-tab-title--icon.icon-end{-webkit-margin-start:0.5rem;margin-inline-start:0.5rem}:host([icon-start][icon-end]) .calcite-tab-title--icon:first-child{-webkit-margin-end:0.5rem;margin-inline-end:0.5rem}:host([bordered]){-webkit-margin-end:0;margin-inline-end:0}:host([bordered][active]){-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]){-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{position:relative}:host([bordered]:hover) a{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{border-bottom-style:unset}:host([bordered][position=below]) a{border-top-style:unset}:host([active][bordered]) a{border-left:1px solid var(--calcite-ui-border-1);border-right:1px solid var(--calcite-ui-border-1)}:host([bordered]) a,:host([bordered]) span{padding-left:0.75rem;padding-right:0.75rem}:host([bordered][scale=s]) a,:host([bordered][scale=s]) span{padding-left:0.5rem;padding-right:0.5rem}:host([bordered][scale=l]) a,:host([bordered][scale=l]) span{padding-left:1rem;padding-right:1rem}@media (forced-colors: active){:host{outline-width:0;outline-offset:0}:host(:focus) a{outline-color:highlight}:host([bordered]) a{border-bottom-style:solid}:host([bordered][position=below]) a{border-top-style:solid}:host([bordered][active]) a{border-bottom-style:none}:host([bordered][position=below][active]) a{border-top-style:none}}";
|
|
23550
23969
|
|
|
23551
23970
|
const TabTitle = class extends HTMLElement$1 {
|
|
23552
23971
|
constructor() {
|
|
@@ -23555,9 +23974,9 @@ const TabTitle = class extends HTMLElement$1 {
|
|
|
23555
23974
|
this.__attachShadow();
|
|
23556
23975
|
this.calciteTabsActivate = createEvent(this, "calciteTabsActivate", 7);
|
|
23557
23976
|
this.calciteInternalTabsActivate = createEvent(this, "calciteInternalTabsActivate", 7);
|
|
23558
|
-
this.
|
|
23559
|
-
this.
|
|
23560
|
-
this.
|
|
23977
|
+
this.calciteInternalTabsFocusNext = createEvent(this, "calciteInternalTabsFocusNext", 7);
|
|
23978
|
+
this.calciteInternalTabsFocusPrevious = createEvent(this, "calciteInternalTabsFocusPrevious", 7);
|
|
23979
|
+
this.calciteInternalTabTitleRegister = createEvent(this, "calciteInternalTabTitleRegister", 7);
|
|
23561
23980
|
//--------------------------------------------------------------------------
|
|
23562
23981
|
//
|
|
23563
23982
|
// Properties
|
|
@@ -23567,14 +23986,16 @@ const TabTitle = class extends HTMLElement$1 {
|
|
|
23567
23986
|
this.active = false;
|
|
23568
23987
|
/** Disable this tab title */
|
|
23569
23988
|
this.disabled = false;
|
|
23570
|
-
/**
|
|
23989
|
+
/**
|
|
23990
|
+
* @internal
|
|
23991
|
+
*/
|
|
23571
23992
|
this.bordered = false;
|
|
23572
23993
|
//--------------------------------------------------------------------------
|
|
23573
23994
|
//
|
|
23574
23995
|
// Private State/Props
|
|
23575
23996
|
//
|
|
23576
23997
|
//--------------------------------------------------------------------------
|
|
23577
|
-
/** watches for changing text content
|
|
23998
|
+
/** watches for changing text content */
|
|
23578
23999
|
this.mutationObserver = createObserver("mutation", () => this.updateHasText());
|
|
23579
24000
|
/** determine if there is slotted text for styling purposes */
|
|
23580
24001
|
this.hasText = false;
|
|
@@ -23635,7 +24056,7 @@ const TabTitle = class extends HTMLElement$1 {
|
|
|
23635
24056
|
}, style: showSideBorders && { width: `${this.parentTabNavEl.indicatorWidth}px` } }, this.iconStart ? iconStartEl : null, h("slot", null), this.iconEnd ? iconEndEl : null)));
|
|
23636
24057
|
}
|
|
23637
24058
|
async componentDidLoad() {
|
|
23638
|
-
this.
|
|
24059
|
+
this.calciteInternalTabTitleRegister.emit(await this.getTabIdentifier());
|
|
23639
24060
|
}
|
|
23640
24061
|
componentDidRender() {
|
|
23641
24062
|
updateHostInteraction(this, true);
|
|
@@ -23674,18 +24095,18 @@ const TabTitle = class extends HTMLElement$1 {
|
|
|
23674
24095
|
break;
|
|
23675
24096
|
case "ArrowRight":
|
|
23676
24097
|
if (getElementDir(this.el) === "ltr") {
|
|
23677
|
-
this.
|
|
24098
|
+
this.calciteInternalTabsFocusNext.emit();
|
|
23678
24099
|
}
|
|
23679
24100
|
else {
|
|
23680
|
-
this.
|
|
24101
|
+
this.calciteInternalTabsFocusPrevious.emit();
|
|
23681
24102
|
}
|
|
23682
24103
|
break;
|
|
23683
24104
|
case "ArrowLeft":
|
|
23684
24105
|
if (getElementDir(this.el) === "ltr") {
|
|
23685
|
-
this.
|
|
24106
|
+
this.calciteInternalTabsFocusPrevious.emit();
|
|
23686
24107
|
}
|
|
23687
24108
|
else {
|
|
23688
|
-
this.
|
|
24109
|
+
this.calciteInternalTabsFocusNext.emit();
|
|
23689
24110
|
}
|
|
23690
24111
|
break;
|
|
23691
24112
|
}
|
|
@@ -23708,6 +24129,8 @@ const TabTitle = class extends HTMLElement$1 {
|
|
|
23708
24129
|
return this.tab ? this.tab : this.getTabIndex();
|
|
23709
24130
|
}
|
|
23710
24131
|
/**
|
|
24132
|
+
* @param tabIds
|
|
24133
|
+
* @param titleIds
|
|
23711
24134
|
* @internal
|
|
23712
24135
|
*/
|
|
23713
24136
|
async updateAriaInfo(tabIds = [], titleIds = []) {
|
|
@@ -23741,7 +24164,7 @@ const SLOTS$4 = {
|
|
|
23741
24164
|
tabNav: "tab-nav"
|
|
23742
24165
|
};
|
|
23743
24166
|
|
|
23744
|
-
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{--calcite-animation-timing:calc(150ms * var(--calcite-internal-duration-factor));--calcite-internal-duration-factor:var(--calcite-duration-factor, 1);--calcite-internal-animation-timing-fast:calc(100ms * var(--calcite-internal-duration-factor));--calcite-internal-animation-timing-medium:calc(200ms * var(--calcite-internal-duration-factor));--calcite-internal-animation-timing-slow:calc(300ms * var(--calcite-internal-duration-factor))}.calcite-animate{opacity:0;-webkit-animation-fill-mode:both;animation-fill-mode:both;-webkit-animation-duration:var(--calcite-animation-timing);animation-duration:var(--calcite-animation-timing)}.calcite-animate__in{-webkit-animation-name:in;animation-name:in}.calcite-animate__in-down{-webkit-animation-name:in-down;animation-name:in-down}.calcite-animate__in-up{-webkit-animation-name:in-up;animation-name:in-up}.calcite-animate__in-scale{-webkit-animation-name:in-scale;animation-name:in-scale}:root{--calcite-popper-transition:var(--calcite-animation-timing)}:host([hidden]){display:none}:host{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column}:host([bordered]){-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){margin-bottom:-1px}:host([bordered][position=below]) ::slotted(calcite-tab-nav){margin-top:-1px}:host([bordered][position=below]){-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{border-width:1px;border-style:solid;border-color:var(--calcite-ui-border-1)}:host([bordered][scale=s]) section{padding:0.75rem}:host([bordered][scale=m]) section{padding:0.5rem}:host([bordered][scale=l]) section{padding:1rem}:host([position=below]){-ms-flex-direction:column-reverse;flex-direction:column-reverse}section{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{-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{border-bottom-style:solid}";
|
|
24167
|
+
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{--calcite-animation-timing:calc(150ms * var(--calcite-internal-duration-factor));--calcite-internal-duration-factor:var(--calcite-duration-factor, 1);--calcite-internal-animation-timing-fast:calc(100ms * var(--calcite-internal-duration-factor));--calcite-internal-animation-timing-medium:calc(200ms * var(--calcite-internal-duration-factor));--calcite-internal-animation-timing-slow:calc(300ms * var(--calcite-internal-duration-factor))}.calcite-animate{opacity:0;-webkit-animation-fill-mode:both;animation-fill-mode:both;-webkit-animation-duration:var(--calcite-animation-timing);animation-duration:var(--calcite-animation-timing)}.calcite-animate__in{-webkit-animation-name:in;animation-name:in}.calcite-animate__in-down{-webkit-animation-name:in-down;animation-name:in-down}.calcite-animate__in-up{-webkit-animation-name:in-up;animation-name:in-up}.calcite-animate__in-scale{-webkit-animation-name:in-scale;animation-name:in-scale}:root{--calcite-popper-transition:var(--calcite-animation-timing)}:host([hidden]){display:none}:host{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column}:host([bordered]){-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){margin-bottom:-1px}:host([bordered][position=below]) ::slotted(calcite-tab-nav){margin-top:-1px}:host([bordered][position=below]){-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{border-width:1px;border-style:solid;border-color:var(--calcite-ui-border-1)}:host([bordered][scale=s]) section{padding:0.75rem}:host([bordered][scale=m]) section{padding:0.5rem}:host([bordered][scale=l]) section{padding:1rem}:host([position=below]){-ms-flex-direction:column-reverse;flex-direction:column-reverse}section{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{-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{border-bottom-style:solid}@media (forced-colors: active){:host([bordered]) section{border-top-width:0px;border-bottom-width:1px}:host([position=below][bordered]) section{border-top-width:1px;border-bottom-width:0px}}";
|
|
23745
24168
|
|
|
23746
24169
|
const Tabs = class extends HTMLElement$1 {
|
|
23747
24170
|
constructor() {
|
|
@@ -23810,14 +24233,16 @@ const Tabs = class extends HTMLElement$1 {
|
|
|
23810
24233
|
//
|
|
23811
24234
|
//--------------------------------------------------------------------------
|
|
23812
24235
|
/**
|
|
24236
|
+
* @param e
|
|
23813
24237
|
* @internal
|
|
23814
24238
|
*/
|
|
23815
|
-
|
|
24239
|
+
calciteInternalTabTitleRegister(e) {
|
|
23816
24240
|
this.titles = [...this.titles, e.target];
|
|
23817
24241
|
this.registryHandler();
|
|
23818
24242
|
e.stopPropagation();
|
|
23819
24243
|
}
|
|
23820
24244
|
/**
|
|
24245
|
+
* @param e
|
|
23821
24246
|
* @internal
|
|
23822
24247
|
*/
|
|
23823
24248
|
calciteTabTitleUnregister(e) {
|
|
@@ -23826,14 +24251,16 @@ const Tabs = class extends HTMLElement$1 {
|
|
|
23826
24251
|
e.stopPropagation();
|
|
23827
24252
|
}
|
|
23828
24253
|
/**
|
|
24254
|
+
* @param e
|
|
23829
24255
|
* @internal
|
|
23830
24256
|
*/
|
|
23831
|
-
|
|
24257
|
+
calciteInternalTabRegister(e) {
|
|
23832
24258
|
this.tabs = [...this.tabs, e.target];
|
|
23833
24259
|
this.registryHandler();
|
|
23834
24260
|
e.stopPropagation();
|
|
23835
24261
|
}
|
|
23836
24262
|
/**
|
|
24263
|
+
* @param e
|
|
23837
24264
|
* @internal
|
|
23838
24265
|
*/
|
|
23839
24266
|
calciteTabUnregister(e) {
|
|
@@ -23918,6 +24345,7 @@ const Tile = class extends HTMLElement$1 {
|
|
|
23918
24345
|
this.embed = false;
|
|
23919
24346
|
/**
|
|
23920
24347
|
* The focused state of the tile.
|
|
24348
|
+
*
|
|
23921
24349
|
* @internal
|
|
23922
24350
|
*/
|
|
23923
24351
|
this.focused = false;
|
|
@@ -24243,64 +24671,89 @@ const TimePicker = class extends HTMLElement$1 {
|
|
|
24243
24671
|
super();
|
|
24244
24672
|
this.__registerHost();
|
|
24245
24673
|
this.__attachShadow();
|
|
24246
|
-
this.
|
|
24247
|
-
this.
|
|
24248
|
-
this.
|
|
24674
|
+
this.calciteInternalTimePickerBlur = createEvent(this, "calciteInternalTimePickerBlur", 7);
|
|
24675
|
+
this.calciteInternalTimePickerChange = createEvent(this, "calciteInternalTimePickerChange", 7);
|
|
24676
|
+
this.calciteInternalTimePickerFocus = createEvent(this, "calciteInternalTimePickerFocus", 7);
|
|
24249
24677
|
//--------------------------------------------------------------------------
|
|
24250
24678
|
//
|
|
24251
24679
|
// Properties
|
|
24252
24680
|
//
|
|
24253
24681
|
//--------------------------------------------------------------------------
|
|
24254
|
-
/**
|
|
24682
|
+
/**
|
|
24683
|
+
* aria-label for the hour input
|
|
24684
|
+
*
|
|
24255
24685
|
* @default "Hour"
|
|
24256
24686
|
*/
|
|
24257
24687
|
this.intlHour = TEXT$2.hour;
|
|
24258
|
-
/**
|
|
24688
|
+
/**
|
|
24689
|
+
* aria-label for the hour down button
|
|
24690
|
+
*
|
|
24259
24691
|
* @default "Decrease hour"
|
|
24260
24692
|
*/
|
|
24261
24693
|
this.intlHourDown = TEXT$2.hourDown;
|
|
24262
|
-
/**
|
|
24694
|
+
/**
|
|
24695
|
+
* aria-label for the hour up button
|
|
24696
|
+
*
|
|
24263
24697
|
* @default "Increase hour"
|
|
24264
24698
|
*/
|
|
24265
24699
|
this.intlHourUp = TEXT$2.hourUp;
|
|
24266
|
-
/**
|
|
24700
|
+
/**
|
|
24701
|
+
* aria-label for the meridiem (am/pm) input
|
|
24702
|
+
*
|
|
24267
24703
|
* @default "AM/PM"
|
|
24268
24704
|
*/
|
|
24269
24705
|
this.intlMeridiem = TEXT$2.meridiem;
|
|
24270
|
-
/**
|
|
24706
|
+
/**
|
|
24707
|
+
* aria-label for the meridiem (am/pm) down button
|
|
24708
|
+
*
|
|
24271
24709
|
* @default "Decrease AM/PM"
|
|
24272
24710
|
*/
|
|
24273
24711
|
this.intlMeridiemDown = TEXT$2.meridiemDown;
|
|
24274
|
-
/**
|
|
24712
|
+
/**
|
|
24713
|
+
* aria-label for the meridiem (am/pm) up button
|
|
24714
|
+
*
|
|
24275
24715
|
* @default "Increase AM/PM"
|
|
24276
24716
|
*/
|
|
24277
24717
|
this.intlMeridiemUp = TEXT$2.meridiemUp;
|
|
24278
|
-
/**
|
|
24718
|
+
/**
|
|
24719
|
+
* aria-label for the minute input
|
|
24720
|
+
*
|
|
24279
24721
|
* @default "Minute"
|
|
24280
24722
|
*/
|
|
24281
24723
|
this.intlMinute = TEXT$2.minute;
|
|
24282
|
-
/**
|
|
24724
|
+
/**
|
|
24725
|
+
* aria-label for the minute down button
|
|
24726
|
+
*
|
|
24283
24727
|
* @default "Decrease minute"
|
|
24284
24728
|
*/
|
|
24285
24729
|
this.intlMinuteDown = TEXT$2.minuteDown;
|
|
24286
|
-
/**
|
|
24730
|
+
/**
|
|
24731
|
+
* aria-label for the minute up button
|
|
24732
|
+
*
|
|
24287
24733
|
* @default "Increase minute"
|
|
24288
24734
|
*/
|
|
24289
24735
|
this.intlMinuteUp = TEXT$2.minuteUp;
|
|
24290
|
-
/**
|
|
24736
|
+
/**
|
|
24737
|
+
* aria-label for the second input
|
|
24738
|
+
*
|
|
24291
24739
|
* @default "Second"
|
|
24292
24740
|
*/
|
|
24293
24741
|
this.intlSecond = TEXT$2.second;
|
|
24294
|
-
/**
|
|
24742
|
+
/**
|
|
24743
|
+
* aria-label for the second down button
|
|
24744
|
+
*
|
|
24295
24745
|
* @default "Decrease second"
|
|
24296
24746
|
*/
|
|
24297
24747
|
this.intlSecondDown = TEXT$2.secondDown;
|
|
24298
|
-
/**
|
|
24748
|
+
/**
|
|
24749
|
+
* aria-label for the second up button
|
|
24750
|
+
*
|
|
24299
24751
|
* @default "Increase second"
|
|
24300
24752
|
*/
|
|
24301
24753
|
this.intlSecondUp = TEXT$2.secondUp;
|
|
24302
24754
|
/**
|
|
24303
24755
|
* BCP 47 language tag for desired language and country format
|
|
24756
|
+
*
|
|
24304
24757
|
* @internal
|
|
24305
24758
|
*/
|
|
24306
24759
|
this.locale = document.documentElement.lang || navigator.language || "en";
|
|
@@ -24598,7 +25051,7 @@ const TimePicker = class extends HTMLElement$1 {
|
|
|
24598
25051
|
this.value = null;
|
|
24599
25052
|
}
|
|
24600
25053
|
if (emit) {
|
|
24601
|
-
this.
|
|
25054
|
+
this.calciteInternalTimePickerChange.emit();
|
|
24602
25055
|
}
|
|
24603
25056
|
};
|
|
24604
25057
|
this.setValuePart = (key, value, emit = true) => {
|
|
@@ -24637,7 +25090,7 @@ const TimePicker = class extends HTMLElement$1 {
|
|
|
24637
25090
|
? ((_a = localizeTimeStringToParts(this.value, this.locale)) === null || _a === void 0 ? void 0 : _a.localizedMeridiem) || null
|
|
24638
25091
|
: localizeTimePart(this.meridiem, "meridiem", this.locale);
|
|
24639
25092
|
if (emit) {
|
|
24640
|
-
this.
|
|
25093
|
+
this.calciteInternalTimePickerChange.emit();
|
|
24641
25094
|
}
|
|
24642
25095
|
};
|
|
24643
25096
|
}
|
|
@@ -24654,10 +25107,10 @@ const TimePicker = class extends HTMLElement$1 {
|
|
|
24654
25107
|
//
|
|
24655
25108
|
//--------------------------------------------------------------------------
|
|
24656
25109
|
hostBlurHandler() {
|
|
24657
|
-
this.
|
|
25110
|
+
this.calciteInternalTimePickerBlur.emit();
|
|
24658
25111
|
}
|
|
24659
25112
|
hostFocusHandler() {
|
|
24660
|
-
this.
|
|
25113
|
+
this.calciteInternalTimePickerFocus.emit();
|
|
24661
25114
|
}
|
|
24662
25115
|
keyDownHandler(event) {
|
|
24663
25116
|
const key = event.key;
|
|
@@ -24713,7 +25166,11 @@ const TimePicker = class extends HTMLElement$1 {
|
|
|
24713
25166
|
// Public Methods
|
|
24714
25167
|
//
|
|
24715
25168
|
//--------------------------------------------------------------------------
|
|
24716
|
-
/**
|
|
25169
|
+
/**
|
|
25170
|
+
* Sets focus on the component.
|
|
25171
|
+
*
|
|
25172
|
+
* @param target
|
|
25173
|
+
*/
|
|
24717
25174
|
async setFocus(target) {
|
|
24718
25175
|
var _a;
|
|
24719
25176
|
(_a = this[`${target || "hour"}El`]) === null || _a === void 0 ? void 0 : _a.focus();
|
|
@@ -25290,6 +25747,7 @@ const Tooltip = class extends HTMLElement$1 {
|
|
|
25290
25747
|
this.__attachShadow();
|
|
25291
25748
|
/**
|
|
25292
25749
|
* Offset the position of the tooltip away from the reference element.
|
|
25750
|
+
*
|
|
25293
25751
|
* @default 6
|
|
25294
25752
|
*/
|
|
25295
25753
|
this.offsetDistance = defaultOffsetDistance;
|
|
@@ -25305,6 +25763,7 @@ const Tooltip = class extends HTMLElement$1 {
|
|
|
25305
25763
|
this.overlayPositioning = "absolute";
|
|
25306
25764
|
/**
|
|
25307
25765
|
* Determines where the component will be positioned relative to the referenceElement.
|
|
25766
|
+
*
|
|
25308
25767
|
* @see [PopperPlacement](https://github.com/Esri/calcite-components/blob/master/src/utils/popper.ts#L25)
|
|
25309
25768
|
*/
|
|
25310
25769
|
this.placement = "auto";
|
|
@@ -25481,6 +25940,7 @@ const TooltipManager = class extends HTMLElement$1 {
|
|
|
25481
25940
|
// --------------------------------------------------------------------------
|
|
25482
25941
|
/**
|
|
25483
25942
|
* CSS Selector to match reference elements for tooltips. Reference elements will be identified by this selector in order to open their associated tooltip.
|
|
25943
|
+
*
|
|
25484
25944
|
* @default `[data-calcite-tooltip-reference]`
|
|
25485
25945
|
*/
|
|
25486
25946
|
this.selector = "[data-calcite-tooltip-reference]";
|
|
@@ -25520,13 +25980,17 @@ const Tree = class extends HTMLElement$1 {
|
|
|
25520
25980
|
//--------------------------------------------------------------------------
|
|
25521
25981
|
/** Display indentation guide lines. */
|
|
25522
25982
|
this.lines = false;
|
|
25523
|
-
/**
|
|
25983
|
+
/**
|
|
25984
|
+
* Display input
|
|
25985
|
+
*
|
|
25524
25986
|
* @deprecated Use "ancestors" selection-mode for checkbox input.
|
|
25525
25987
|
*/
|
|
25526
25988
|
this.inputEnabled = false;
|
|
25527
25989
|
/** Specify the scale of the tree. */
|
|
25528
25990
|
this.scale = "m";
|
|
25529
|
-
/**
|
|
25991
|
+
/**
|
|
25992
|
+
* Customize how tree selection works.
|
|
25993
|
+
*
|
|
25530
25994
|
* @default "single"
|
|
25531
25995
|
* @see [TreeSelectionMode](https://github.com/Esri/calcite-components/blob/master/src/components/tree/interfaces.ts#L5)
|
|
25532
25996
|
*/
|
|
@@ -25646,6 +26110,7 @@ const Tree = class extends HTMLElement$1 {
|
|
|
25646
26110
|
this.calciteTreeSelect.emit({
|
|
25647
26111
|
selected: nodeListToArray(this.el.querySelectorAll("calcite-tree-item")).filter((i) => i.selected)
|
|
25648
26112
|
});
|
|
26113
|
+
e.stopPropagation();
|
|
25649
26114
|
}
|
|
25650
26115
|
keyDownHandler(event) {
|
|
25651
26116
|
var _a;
|
|
@@ -25774,7 +26239,7 @@ const TreeItem = class extends HTMLElement$1 {
|
|
|
25774
26239
|
super();
|
|
25775
26240
|
this.__registerHost();
|
|
25776
26241
|
this.__attachShadow();
|
|
25777
|
-
this.
|
|
26242
|
+
this.calciteInternalTreeItemSelect = createEvent(this, "calciteInternalTreeItemSelect", 7);
|
|
25778
26243
|
//--------------------------------------------------------------------------
|
|
25779
26244
|
//
|
|
25780
26245
|
// Properties
|
|
@@ -25784,11 +26249,17 @@ const TreeItem = class extends HTMLElement$1 {
|
|
|
25784
26249
|
this.selected = false;
|
|
25785
26250
|
/** Expanded state of the item. */
|
|
25786
26251
|
this.expanded = false;
|
|
25787
|
-
/**
|
|
26252
|
+
/**
|
|
26253
|
+
* @internal
|
|
26254
|
+
*/
|
|
25788
26255
|
this.parentExpanded = false;
|
|
25789
|
-
/**
|
|
26256
|
+
/**
|
|
26257
|
+
* @internal
|
|
26258
|
+
*/
|
|
25790
26259
|
this.depth = -1;
|
|
25791
|
-
/**
|
|
26260
|
+
/**
|
|
26261
|
+
* @internal
|
|
26262
|
+
*/
|
|
25792
26263
|
this.hasChildren = null;
|
|
25793
26264
|
this.iconClickHandler = (event) => {
|
|
25794
26265
|
event.stopPropagation();
|
|
@@ -25913,7 +26384,7 @@ const TreeItem = class extends HTMLElement$1 {
|
|
|
25913
26384
|
const target = link.target === "" ? "_self" : link.target;
|
|
25914
26385
|
window.open(link.href, target);
|
|
25915
26386
|
}
|
|
25916
|
-
this.
|
|
26387
|
+
this.calciteInternalTreeItemSelect.emit({
|
|
25917
26388
|
modifyCurrentSelection: this.selectionMode === TreeSelectionMode.Ancestors || this.isSelectionMultiLike,
|
|
25918
26389
|
forceToggle: false
|
|
25919
26390
|
});
|
|
@@ -25922,7 +26393,7 @@ const TreeItem = class extends HTMLElement$1 {
|
|
|
25922
26393
|
let root;
|
|
25923
26394
|
switch (e.key) {
|
|
25924
26395
|
case " ":
|
|
25925
|
-
this.
|
|
26396
|
+
this.calciteInternalTreeItemSelect.emit({
|
|
25926
26397
|
modifyCurrentSelection: this.isSelectionMultiLike,
|
|
25927
26398
|
forceToggle: false
|
|
25928
26399
|
});
|
|
@@ -25936,7 +26407,7 @@ const TreeItem = class extends HTMLElement$1 {
|
|
|
25936
26407
|
this.selected = true;
|
|
25937
26408
|
}
|
|
25938
26409
|
else {
|
|
25939
|
-
this.
|
|
26410
|
+
this.calciteInternalTreeItemSelect.emit({
|
|
25940
26411
|
modifyCurrentSelection: this.isSelectionMultiLike,
|
|
25941
26412
|
forceToggle: false
|
|
25942
26413
|
});
|
|
@@ -26098,12 +26569,13 @@ const ValueList = class extends HTMLElement$1 {
|
|
|
26098
26569
|
calciteListItemChangeHandler(event) {
|
|
26099
26570
|
calciteListItemChangeHandler.call(this, event);
|
|
26100
26571
|
}
|
|
26101
|
-
|
|
26572
|
+
calciteInternalListItemPropsChangeHandler(event) {
|
|
26102
26573
|
event.stopPropagation();
|
|
26103
26574
|
this.setUpFilter();
|
|
26104
26575
|
}
|
|
26105
|
-
|
|
26106
|
-
|
|
26576
|
+
calciteInternalListItemValueChangeHandler(event) {
|
|
26577
|
+
calciteInternalListItemValueChangeHandler.call(this, event);
|
|
26578
|
+
event.stopPropagation();
|
|
26107
26579
|
}
|
|
26108
26580
|
// --------------------------------------------------------------------------
|
|
26109
26581
|
//
|
|
@@ -26152,7 +26624,11 @@ const ValueList = class extends HTMLElement$1 {
|
|
|
26152
26624
|
async getSelectedItems() {
|
|
26153
26625
|
return this.selectedValues;
|
|
26154
26626
|
}
|
|
26155
|
-
/**
|
|
26627
|
+
/**
|
|
26628
|
+
* Sets focus on the component.
|
|
26629
|
+
*
|
|
26630
|
+
* @param focusId
|
|
26631
|
+
*/
|
|
26156
26632
|
async setFocus(focusId) {
|
|
26157
26633
|
return setFocus.call(this, focusId);
|
|
26158
26634
|
}
|
|
@@ -26196,7 +26672,7 @@ const ValueListItem = class extends HTMLElement$1 {
|
|
|
26196
26672
|
*/
|
|
26197
26673
|
this.disabled = false;
|
|
26198
26674
|
/**
|
|
26199
|
-
* @internal
|
|
26675
|
+
* @internal
|
|
26200
26676
|
*/
|
|
26201
26677
|
this.disableDeselect = false;
|
|
26202
26678
|
/**
|
|
@@ -26204,11 +26680,12 @@ const ValueListItem = class extends HTMLElement$1 {
|
|
|
26204
26680
|
*/
|
|
26205
26681
|
this.nonInteractive = false;
|
|
26206
26682
|
/**
|
|
26207
|
-
* @internal
|
|
26683
|
+
* @internal
|
|
26208
26684
|
*/
|
|
26209
26685
|
this.handleActivated = false;
|
|
26210
26686
|
/**
|
|
26211
26687
|
* Determines the icon SVG symbol that will be shown. Options are circle, square, grip or null.
|
|
26688
|
+
*
|
|
26212
26689
|
* @see [ICON_TYPES](https://github.com/Esri/calcite-components/blob/master/src/components/pick-list/resources.ts#L5)
|
|
26213
26690
|
*/
|
|
26214
26691
|
this.icon = null;
|
|
@@ -26262,6 +26739,8 @@ const ValueListItem = class extends HTMLElement$1 {
|
|
|
26262
26739
|
/**
|
|
26263
26740
|
* Toggle the selection state. By default this won't trigger an event.
|
|
26264
26741
|
* The first argument allows the value to be coerced, rather than swapping values.
|
|
26742
|
+
*
|
|
26743
|
+
* @param coerce
|
|
26265
26744
|
*/
|
|
26266
26745
|
async toggleSelected(coerce) {
|
|
26267
26746
|
this.pickListItem.toggleSelected(coerce);
|
|
@@ -26306,14 +26785,14 @@ const ValueListItem = class extends HTMLElement$1 {
|
|
|
26306
26785
|
static get style() { return valueListItemCss; }
|
|
26307
26786
|
};
|
|
26308
26787
|
|
|
26309
|
-
const CalciteAccordion = /*@__PURE__*/proxyCustomElement(Accordion, [1,"calcite-accordion",{"appearance":[513],"iconPosition":[513,"icon-position"],"iconType":[513,"icon-type"],"scale":[513],"selectionMode":[513,"selection-mode"]},[[0,"
|
|
26310
|
-
const CalciteAccordionItem = /*@__PURE__*/proxyCustomElement(AccordionItem, [1,"calcite-accordion-item",{"active":[1540],"itemTitle":[1,"item-title"],"itemSubtitle":[1,"item-subtitle"],"icon":[513]},[[0,"keydown","keyDownHandler"],[16,"
|
|
26788
|
+
const CalciteAccordion = /*@__PURE__*/proxyCustomElement(Accordion, [1,"calcite-accordion",{"appearance":[513],"iconPosition":[513,"icon-position"],"iconType":[513,"icon-type"],"scale":[513],"selectionMode":[513,"selection-mode"]},[[0,"calciteInternalAccordionItemKeyEvent","calciteInternalAccordionItemKeyEvent"],[0,"calciteInternalAccordionItemRegister","registerCalciteAccordionItem"],[0,"calciteInternalAccordionItemSelect","updateActiveItemOnChange"]]]);
|
|
26789
|
+
const CalciteAccordionItem = /*@__PURE__*/proxyCustomElement(AccordionItem, [1,"calcite-accordion-item",{"active":[1540],"itemTitle":[1,"item-title"],"itemSubtitle":[1,"item-subtitle"],"icon":[513]},[[0,"keydown","keyDownHandler"],[16,"calciteInternalAccordionChange","updateActiveItemOnChange"]]]);
|
|
26311
26790
|
const CalciteAction = /*@__PURE__*/proxyCustomElement(Action, [1,"calcite-action",{"active":[516],"alignment":[513],"appearance":[513],"compact":[516],"disabled":[516],"icon":[1],"indicator":[516],"intlLoading":[1,"intl-loading"],"label":[1],"loading":[516],"scale":[513],"text":[1],"textEnabled":[516,"text-enabled"]}]);
|
|
26312
26791
|
const CalciteActionBar = /*@__PURE__*/proxyCustomElement(ActionBar, [1,"calcite-action-bar",{"expandDisabled":[516,"expand-disabled"],"expanded":[1540],"intlExpand":[1,"intl-expand"],"intlCollapse":[1,"intl-collapse"],"overflowActionsDisabled":[4,"overflow-actions-disabled"],"position":[513],"scale":[513]}]);
|
|
26313
26792
|
const CalciteActionGroup = /*@__PURE__*/proxyCustomElement(ActionGroup, [1,"calcite-action-group",{"expanded":[516],"layout":[513],"columns":[514],"intlMore":[1,"intl-more"],"menuOpen":[1540,"menu-open"],"scale":[513]}]);
|
|
26314
26793
|
const CalciteActionMenu = /*@__PURE__*/proxyCustomElement(ActionMenu, [1,"calcite-action-menu",{"expanded":[516],"flipPlacements":[16],"label":[1],"open":[1540],"overlayPositioning":[1,"overlay-positioning"],"placement":[513],"scale":[513],"activeMenuItemIndex":[32]},[[8,"click","closeCalciteActionMenuOnClick"]]]);
|
|
26315
26794
|
const CalciteActionPad = /*@__PURE__*/proxyCustomElement(ActionPad, [1,"calcite-action-pad",{"expandDisabled":[516,"expand-disabled"],"expanded":[1540],"layout":[513],"intlExpand":[1,"intl-expand"],"intlCollapse":[1,"intl-collapse"],"position":[513],"scale":[513]}]);
|
|
26316
|
-
const CalciteAlert = /*@__PURE__*/proxyCustomElement(Alert, [1,"calcite-alert",{"active":[1540],"autoDismiss":[4,"auto-dismiss"],"autoDismissDuration":[513,"auto-dismiss-duration"],"color":[513],"icon":[520],"intlClose":[1,"intl-close"],"label":[1],"placement":[1],"scale":[513],"queue":[32],"queueLength":[32],"queued":[32],"requestedIcon":[32]},[[8,"
|
|
26795
|
+
const CalciteAlert = /*@__PURE__*/proxyCustomElement(Alert, [1,"calcite-alert",{"active":[1540],"autoDismiss":[4,"auto-dismiss"],"autoDismissDuration":[513,"auto-dismiss-duration"],"color":[513],"icon":[520],"intlClose":[1,"intl-close"],"label":[1],"placement":[1],"scale":[513],"queue":[32],"queueLength":[32],"queued":[32],"requestedIcon":[32]},[[8,"calciteInternalAlertSync","alertSync"],[8,"calciteInternalAlertRegister","alertRegister"]]]);
|
|
26317
26796
|
const CalciteAvatar = /*@__PURE__*/proxyCustomElement(Avatar, [1,"calcite-avatar",{"scale":[513],"thumbnail":[1],"fullName":[1,"full-name"],"username":[1],"userId":[1,"user-id"],"error":[32]}]);
|
|
26318
26797
|
const CalciteBlock = /*@__PURE__*/proxyCustomElement(Block, [1,"calcite-block",{"collapsible":[4],"disabled":[516],"dragHandle":[516,"drag-handle"],"heading":[1],"headingLevel":[2,"heading-level"],"intlCollapse":[1,"intl-collapse"],"intlExpand":[1,"intl-expand"],"intlLoading":[1,"intl-loading"],"intlOptions":[1,"intl-options"],"loading":[516],"open":[1540],"status":[513],"summary":[1]}]);
|
|
26319
26798
|
const CalciteBlockSection = /*@__PURE__*/proxyCustomElement(BlockSection, [1,"calcite-block-section",{"intlCollapse":[1,"intl-collapse"],"intlExpand":[1,"intl-expand"],"open":[1540],"status":[513],"text":[1],"toggleDisplay":[513,"toggle-display"]}]);
|
|
@@ -26331,20 +26810,20 @@ const CalciteDatePicker = /*@__PURE__*/proxyCustomElement(DatePicker, [1,"calcit
|
|
|
26331
26810
|
const CalciteDatePickerDay = /*@__PURE__*/proxyCustomElement(DatePickerDay, [1,"calcite-date-picker-day",{"day":[2],"disabled":[516],"currentMonth":[516,"current-month"],"selected":[516],"highlighted":[516],"range":[516],"startOfRange":[516,"start-of-range"],"endOfRange":[516,"end-of-range"],"rangeHover":[516,"range-hover"],"active":[516],"localeData":[16],"scale":[513],"value":[16]},[[1,"mouseover","mouseoverHandler"]]]);
|
|
26332
26811
|
const CalciteDatePickerMonth = /*@__PURE__*/proxyCustomElement(DatePickerMonth, [1,"calcite-date-picker-month",{"selectedDate":[16],"activeDate":[16],"startDate":[16],"endDate":[16],"min":[16],"max":[16],"scale":[513],"localeData":[16],"hoverRange":[16]},[[1,"mouseout","mouseoutHandler"]]]);
|
|
26333
26812
|
const CalciteDatePickerMonthHeader = /*@__PURE__*/proxyCustomElement(DatePickerMonthHeader, [1,"calcite-date-picker-month-header",{"selectedDate":[16],"activeDate":[16],"headingLevel":[2,"heading-level"],"min":[16],"max":[16],"locale":[1],"intlPrevMonth":[1,"intl-prev-month"],"intlNextMonth":[1,"intl-next-month"],"intlYear":[1,"intl-year"],"scale":[513],"localeData":[16],"nextMonthDate":[32],"prevMonthDate":[32]}]);
|
|
26334
|
-
const CalciteDropdown = /*@__PURE__*/proxyCustomElement(Dropdown, [1,"calcite-dropdown",{"active":[1540],"disableCloseOnSelect":[516,"disable-close-on-select"],"disabled":[516],"flipPlacements":[16],"maxItems":[2,"max-items"],"overlayPositioning":[1,"overlay-positioning"],"placement":[513],"scale":[513],"selectedItems":[1040],"type":[513],"width":[513]},[[8,"click","closeCalciteDropdownOnClick"],[0,"
|
|
26335
|
-
const CalciteDropdownGroup = /*@__PURE__*/proxyCustomElement(DropdownGroup, [1,"calcite-dropdown-group",{"groupTitle":[513,"group-title"],"selectionMode":[513,"selection-mode"],"scale":[513]},[[0,"
|
|
26336
|
-
const CalciteDropdownItem = /*@__PURE__*/proxyCustomElement(DropdownItem, [1,"calcite-dropdown-item",{"active":[1540],"iconFlipRtl":[513,"icon-flip-rtl"],"iconStart":[513,"icon-start"],"iconEnd":[513,"icon-end"],"href":[513],"label":[1],"rel":[1],"target":[1]},[[0,"click","onClick"],[0,"keydown","keyDownHandler"],[16,"
|
|
26813
|
+
const CalciteDropdown = /*@__PURE__*/proxyCustomElement(Dropdown, [1,"calcite-dropdown",{"active":[1540],"disableCloseOnSelect":[516,"disable-close-on-select"],"disabled":[516],"flipPlacements":[16],"maxItems":[2,"max-items"],"overlayPositioning":[1,"overlay-positioning"],"placement":[513],"scale":[513],"selectedItems":[1040],"type":[513],"width":[513]},[[8,"click","closeCalciteDropdownOnClick"],[0,"calciteInternalDropdownCloseRequest","closeCalciteDropdownOnEvent"],[8,"calciteDropdownOpen","closeCalciteDropdownOnOpenEvent"],[1,"mouseenter","mouseEnterHandler"],[1,"mouseleave","mouseLeaveHandler"],[0,"calciteInternalDropdownItemKeyEvent","calciteInternalDropdownItemKeyEvent"],[0,"calciteInternalDropdownItemSelect","handleItemSelect"]]]);
|
|
26814
|
+
const CalciteDropdownGroup = /*@__PURE__*/proxyCustomElement(DropdownGroup, [1,"calcite-dropdown-group",{"groupTitle":[513,"group-title"],"selectionMode":[513,"selection-mode"],"scale":[513]},[[0,"calciteInternalDropdownItemSelect","updateActiveItemOnChange"]]]);
|
|
26815
|
+
const CalciteDropdownItem = /*@__PURE__*/proxyCustomElement(DropdownItem, [1,"calcite-dropdown-item",{"active":[1540],"iconFlipRtl":[513,"icon-flip-rtl"],"iconStart":[513,"icon-start"],"iconEnd":[513,"icon-end"],"href":[513],"label":[1],"rel":[1],"target":[1]},[[0,"click","onClick"],[0,"keydown","keyDownHandler"],[16,"calciteInternalDropdownItemChange","updateActiveItemOnChange"]]]);
|
|
26337
26816
|
const CalciteFab = /*@__PURE__*/proxyCustomElement(Fab, [1,"calcite-fab",{"appearance":[513],"color":[513],"disabled":[516],"icon":[1],"label":[1],"loading":[516],"scale":[513],"text":[1],"textEnabled":[516,"text-enabled"]}]);
|
|
26338
26817
|
const CalciteFilter = /*@__PURE__*/proxyCustomElement(Filter, [1,"calcite-filter",{"items":[1040],"disabled":[516],"filteredItems":[1040],"intlClear":[1,"intl-clear"],"intlLabel":[1,"intl-label"],"placeholder":[1],"scale":[513],"value":[1025]}]);
|
|
26339
26818
|
const CalciteFlow = /*@__PURE__*/proxyCustomElement(Flow, [1,"calcite-flow",{"panelCount":[32],"flowDirection":[32],"panels":[32]},[[0,"calcitePanelBackClick","handleCalcitePanelBackClick"]]]);
|
|
26340
26819
|
const CalciteGraph = /*@__PURE__*/proxyCustomElement(Graph, [1,"calcite-graph",{"data":[16],"colorStops":[16],"highlightMin":[2,"highlight-min"],"highlightMax":[2,"highlight-max"],"min":[2],"max":[2]}]);
|
|
26341
26820
|
const CalciteHandle = /*@__PURE__*/proxyCustomElement(Handle, [1,"calcite-handle",{"activated":[1540],"textTitle":[513,"text-title"]}]);
|
|
26342
26821
|
const CalciteIcon = /*@__PURE__*/proxyCustomElement(Icon, [1,"calcite-icon",{"icon":[513],"flipRtl":[516,"flip-rtl"],"scale":[513],"textLabel":[1,"text-label"],"pathData":[32],"visible":[32]}]);
|
|
26343
|
-
const CalciteInlineEditable = /*@__PURE__*/proxyCustomElement(InlineEditable, [1,"calcite-inline-editable",{"disabled":[516],"editingEnabled":[1540,"editing-enabled"],"loading":[1540],"controls":[516],"intlEnableEditing":[513,"intl-enable-editing"],"intlCancelEditing":[513,"intl-cancel-editing"],"intlConfirmChanges":[513,"intl-confirm-changes"],"scale":[1537],"afterConfirm":[16]},[[0,"
|
|
26822
|
+
const CalciteInlineEditable = /*@__PURE__*/proxyCustomElement(InlineEditable, [1,"calcite-inline-editable",{"disabled":[516],"editingEnabled":[1540,"editing-enabled"],"loading":[1540],"controls":[516],"intlEnableEditing":[513,"intl-enable-editing"],"intlCancelEditing":[513,"intl-cancel-editing"],"intlConfirmChanges":[513,"intl-confirm-changes"],"scale":[1537],"afterConfirm":[16]},[[0,"calciteInternalInputBlur","blurHandler"]]]);
|
|
26344
26823
|
const CalciteInput = /*@__PURE__*/proxyCustomElement(Input, [1,"calcite-input",{"alignment":[513],"autofocus":[4],"clearable":[516],"disabled":[516],"groupSeparator":[4,"group-separator"],"hidden":[4],"icon":[520],"intlClear":[1,"intl-clear"],"intlLoading":[1,"intl-loading"],"iconFlipRtl":[516,"icon-flip-rtl"],"label":[1],"loading":[516],"locale":[1],"localeFormat":[4,"locale-format"],"max":[514],"min":[514],"maxlength":[514],"maxLength":[514,"max-length"],"minLength":[514,"min-length"],"name":[513],"numberButtonType":[513,"number-button-type"],"placeholder":[1],"prefixText":[1,"prefix-text"],"readOnly":[4,"read-only"],"required":[4],"scale":[1537],"status":[1537],"step":[520],"suffixText":[1,"suffix-text"],"editingEnabled":[1540,"editing-enabled"],"type":[513],"value":[1025],"localizedValue":[32]}]);
|
|
26345
26824
|
const CalciteInputDatePicker = /*@__PURE__*/proxyCustomElement(InputDatePicker, [1,"calcite-input-date-picker",{"disabled":[516],"value":[1025],"flipPlacements":[16],"headingLevel":[2,"heading-level"],"valueAsDate":[1040],"startAsDate":[1040],"endAsDate":[1040],"minAsDate":[1040],"maxAsDate":[1040],"min":[1025],"max":[1025],"active":[1540],"name":[1],"intlPrevMonth":[1,"intl-prev-month"],"intlNextMonth":[1,"intl-next-month"],"intlYear":[1,"intl-year"],"locale":[1],"scale":[513],"placement":[513],"range":[516],"required":[516],"start":[1025],"end":[1025],"overlayPositioning":[1,"overlay-positioning"],"proximitySelectionDisabled":[4,"proximity-selection-disabled"],"layout":[513],"focusedInput":[32],"localeData":[32]},[[0,"calciteDatePickerChange","handleDateOrRangeChange"],[0,"calciteDatePickerRangeChange","handleDateOrRangeChange"],[0,"calciteDaySelect","calciteDaySelectHandler"]]]);
|
|
26346
26825
|
const CalciteInputMessage = /*@__PURE__*/proxyCustomElement(InputMessage, [1,"calcite-input-message",{"active":[516],"icon":[520],"scale":[1537],"status":[1537],"type":[513]}]);
|
|
26347
|
-
const CalciteInputTimePicker = /*@__PURE__*/proxyCustomElement(InputTimePicker, [1,"calcite-input-time-picker",{"active":[1540],"disabled":[516],"intlHour":[1,"intl-hour"],"intlHourDown":[1,"intl-hour-down"],"intlHourUp":[1,"intl-hour-up"],"intlMeridiem":[1,"intl-meridiem"],"intlMeridiemDown":[1,"intl-meridiem-down"],"intlMeridiemUp":[1,"intl-meridiem-up"],"intlMinute":[1,"intl-minute"],"intlMinuteDown":[1,"intl-minute-down"],"intlMinuteUp":[1,"intl-minute-up"],"intlSecond":[1,"intl-second"],"intlSecondDown":[1,"intl-second-down"],"intlSecondUp":[1,"intl-second-up"],"locale":[1025,"lang"],"name":[1],"required":[516],"scale":[513],"placement":[513],"step":[2],"value":[1025],"localizedValue":[32]},[[0,"click","clickHandler"],[0,"keyup","keyUpHandler"],[0,"
|
|
26826
|
+
const CalciteInputTimePicker = /*@__PURE__*/proxyCustomElement(InputTimePicker, [1,"calcite-input-time-picker",{"active":[1540],"disabled":[516],"intlHour":[1,"intl-hour"],"intlHourDown":[1,"intl-hour-down"],"intlHourUp":[1,"intl-hour-up"],"intlMeridiem":[1,"intl-meridiem"],"intlMeridiemDown":[1,"intl-meridiem-down"],"intlMeridiemUp":[1,"intl-meridiem-up"],"intlMinute":[1,"intl-minute"],"intlMinuteDown":[1,"intl-minute-down"],"intlMinuteUp":[1,"intl-minute-up"],"intlSecond":[1,"intl-second"],"intlSecondDown":[1,"intl-second-down"],"intlSecondUp":[1,"intl-second-up"],"locale":[1025,"lang"],"name":[1],"required":[516],"scale":[513],"placement":[513],"step":[2],"value":[1025],"localizedValue":[32]},[[0,"click","clickHandler"],[0,"keyup","keyUpHandler"],[0,"calciteInternalTimePickerBlur","timePickerBlurHandler"],[0,"calciteInternalTimePickerFocus","timePickerFocusHandler"]]]);
|
|
26348
26827
|
const CalciteLabel = /*@__PURE__*/proxyCustomElement(Label, [1,"calcite-label",{"alignment":[513],"status":[513],"for":[513],"scale":[513],"layout":[513],"disableSpacing":[4,"disable-spacing"],"disabled":[516]}]);
|
|
26349
26828
|
const CalciteLink = /*@__PURE__*/proxyCustomElement(Link, [1,"calcite-link",{"disabled":[516],"download":[520],"href":[513],"iconEnd":[513,"icon-end"],"iconFlipRtl":[513,"icon-flip-rtl"],"iconStart":[513,"icon-start"],"rel":[1],"target":[1]}]);
|
|
26350
26829
|
const CalciteList = /*@__PURE__*/proxyCustomElement(List$1, [1,"calcite-list",{"disabled":[516],"headingLevel":[2,"heading-level"]}]);
|
|
@@ -26357,32 +26836,32 @@ const CalciteOption = /*@__PURE__*/proxyCustomElement(Option, [1,"calcite-option
|
|
|
26357
26836
|
const CalciteOptionGroup = /*@__PURE__*/proxyCustomElement(OptionGroup, [1,"calcite-option-group",{"disabled":[516],"label":[1]}]);
|
|
26358
26837
|
const CalcitePagination = /*@__PURE__*/proxyCustomElement(Pagination, [1,"calcite-pagination",{"num":[2],"start":[1026],"total":[2],"textLabelNext":[1,"text-label-next"],"textLabelPrevious":[1,"text-label-previous"],"scale":[513]}]);
|
|
26359
26838
|
const CalcitePanel = /*@__PURE__*/proxyCustomElement(Panel, [1,"calcite-panel",{"dismissed":[1540],"beforeBack":[16],"disabled":[516],"dismissible":[516],"headingLevel":[2,"heading-level"],"showBackButton":[516,"show-back-button"],"intlBack":[1,"intl-back"],"heightScale":[513,"height-scale"],"widthScale":[513,"width-scale"],"loading":[516],"intlClose":[1,"intl-close"],"intlOptions":[1,"intl-options"],"heading":[1],"summary":[1],"menuOpen":[516,"menu-open"]}]);
|
|
26360
|
-
const CalcitePickList = /*@__PURE__*/proxyCustomElement(PickList, [1,"calcite-pick-list",{"disabled":[516],"filterEnabled":[516,"filter-enabled"],"filterPlaceholder":[513,"filter-placeholder"],"headingLevel":[2,"heading-level"],"loading":[516],"multiple":[516],"selectionFollowsFocus":[4,"selection-follows-focus"],"selectedValues":[32],"dataForFilter":[32]},[[0,"calciteListItemRemove","calciteListItemRemoveHandler"],[0,"calciteListItemChange","calciteListItemChangeHandler"],[0,"
|
|
26839
|
+
const CalcitePickList = /*@__PURE__*/proxyCustomElement(PickList, [1,"calcite-pick-list",{"disabled":[516],"filterEnabled":[516,"filter-enabled"],"filterPlaceholder":[513,"filter-placeholder"],"headingLevel":[2,"heading-level"],"loading":[516],"multiple":[516],"selectionFollowsFocus":[4,"selection-follows-focus"],"selectedValues":[32],"dataForFilter":[32]},[[0,"calciteListItemRemove","calciteListItemRemoveHandler"],[0,"calciteListItemChange","calciteListItemChangeHandler"],[0,"calciteInternalListItemPropsChange","calciteInternalListItemPropsChangeHandler"],[0,"calciteInternalListItemValueChange","calciteInternalListItemValueChangeHandler"],[0,"focusout","calciteListFocusOutHandler"]]]);
|
|
26361
26840
|
const CalcitePickListGroup = /*@__PURE__*/proxyCustomElement(PickListGroup, [1,"calcite-pick-list-group",{"groupTitle":[513,"group-title"],"headingLevel":[2,"heading-level"]}]);
|
|
26362
26841
|
const CalcitePickListItem = /*@__PURE__*/proxyCustomElement(PickListItem, [1,"calcite-pick-list-item",{"description":[513],"disabled":[516],"disableDeselect":[4,"disable-deselect"],"nonInteractive":[516,"non-interactive"],"icon":[513],"label":[513],"metadata":[16],"removable":[516],"selected":[1540],"intlRemove":[513,"intl-remove"],"value":[8]}]);
|
|
26363
|
-
const CalcitePopover = /*@__PURE__*/proxyCustomElement(Popover, [1,"calcite-popover",{"autoClose":[516,"auto-close"],"closeButton":[516,"close-button"],"dismissible":[516],"disableFlip":[516,"disable-flip"],"disablePointer":[516,"disable-pointer"],"flipPlacements":[16],"heading":[1],"headingLevel":[2,"heading-level"],"label":[1],"offsetDistance":[514,"offset-distance"],"offsetSkidding":[514,"offset-skidding"],"open":[1540],"overlayPositioning":[1,"overlay-positioning"],"placement":[513],"referenceElement":[1,"reference-element"],"intlClose":[1,"intl-close"],"effectiveReferenceElement":[32]}]);
|
|
26842
|
+
const CalcitePopover = /*@__PURE__*/proxyCustomElement(Popover, [1,"calcite-popover",{"autoClose":[516,"auto-close"],"closeButton":[516,"close-button"],"dismissible":[516],"disableFlip":[516,"disable-flip"],"disablePointer":[516,"disable-pointer"],"flipPlacements":[16],"heading":[1],"headingLevel":[2,"heading-level"],"label":[1],"offsetDistance":[514,"offset-distance"],"offsetSkidding":[514,"offset-skidding"],"open":[1540],"overlayPositioning":[1,"overlay-positioning"],"placement":[513],"referenceElement":[1,"reference-element"],"triggerDisabled":[516,"trigger-disabled"],"intlClose":[1,"intl-close"],"effectiveReferenceElement":[32]}]);
|
|
26364
26843
|
const CalcitePopoverManager = /*@__PURE__*/proxyCustomElement(PopoverManager, [1,"calcite-popover-manager",{"selector":[1],"autoClose":[516,"auto-close"]}]);
|
|
26365
26844
|
const CalciteProgress = /*@__PURE__*/proxyCustomElement(Progress, [1,"calcite-progress",{"type":[1],"value":[2],"label":[1],"text":[1],"reversed":[4]}]);
|
|
26366
26845
|
const CalciteRadioButton = /*@__PURE__*/proxyCustomElement(RadioButton, [1,"calcite-radio-button",{"checked":[1540],"disabled":[516],"focused":[1540],"guid":[1537],"hidden":[516],"hovered":[1540],"label":[1],"name":[513],"required":[516],"scale":[513],"value":[1032]},[[1,"mouseenter","mouseenter"],[1,"mouseleave","mouseleave"]]]);
|
|
26367
26846
|
const CalciteRadioButtonGroup = /*@__PURE__*/proxyCustomElement(RadioButtonGroup, [1,"calcite-radio-button-group",{"disabled":[516],"hidden":[516],"layout":[513],"name":[513],"required":[516],"scale":[513]},[[0,"calciteRadioButtonChange","radioButtonChangeHandler"]]]);
|
|
26368
|
-
const CalciteRadioGroup = /*@__PURE__*/proxyCustomElement(RadioGroup, [1,"calcite-radio-group",{"appearance":[513],"disabled":[516],"required":[516],"layout":[513],"name":[1],"scale":[513],"value":[1025],"selectedItem":[1040],"width":[513]},[[0,"
|
|
26847
|
+
const CalciteRadioGroup = /*@__PURE__*/proxyCustomElement(RadioGroup, [1,"calcite-radio-group",{"appearance":[513],"disabled":[516],"required":[516],"layout":[513],"name":[1],"scale":[513],"value":[1025],"selectedItem":[1040],"width":[513]},[[0,"calciteInternalRadioGroupItemChange","handleSelected"],[0,"keydown","handleKeyDown"]]]);
|
|
26369
26848
|
const CalciteRadioGroupItem = /*@__PURE__*/proxyCustomElement(RadioGroupItem, [1,"calcite-radio-group-item",{"checked":[1540],"icon":[513],"iconFlipRtl":[516,"icon-flip-rtl"],"iconPosition":[513,"icon-position"],"value":[1032]}]);
|
|
26370
26849
|
const CalciteRating = /*@__PURE__*/proxyCustomElement(Rating, [1,"calcite-rating",{"scale":[513],"value":[1538],"readOnly":[516,"read-only"],"disabled":[516],"showChip":[516,"show-chip"],"count":[514],"average":[514],"name":[513],"intlRating":[1,"intl-rating"],"intlStars":[1,"intl-stars"],"required":[516],"hoverValue":[32],"focusValue":[32],"hasFocus":[32]},[[0,"blur","blurHandler"]]]);
|
|
26371
26850
|
const CalciteScrim = /*@__PURE__*/proxyCustomElement(Scrim, [1,"calcite-scrim",{"intlLoading":[1,"intl-loading"],"loading":[516]}]);
|
|
26372
|
-
const CalciteSelect = /*@__PURE__*/proxyCustomElement(Select, [1,"calcite-select",{"disabled":[516],"label":[1],"name":[1],"required":[516],"scale":[513],"value":[1025],"selectedOption":[1040],"width":[513]},[[0,"
|
|
26851
|
+
const CalciteSelect = /*@__PURE__*/proxyCustomElement(Select, [1,"calcite-select",{"disabled":[516],"label":[1],"name":[1],"required":[516],"scale":[513],"value":[1025],"selectedOption":[1040],"width":[513]},[[0,"calciteInternalOptionChange","handleOptionOrGroupChange"],[0,"calciteInternalOptionGroupChange","handleOptionOrGroupChange"]]]);
|
|
26373
26852
|
const CalciteShell = /*@__PURE__*/proxyCustomElement(Shell, [1,"calcite-shell",{"contentBehind":[516,"content-behind"]}]);
|
|
26374
26853
|
const CalciteShellCenterRow = /*@__PURE__*/proxyCustomElement(ShellCenterRow, [1,"calcite-shell-center-row",{"detached":[516],"heightScale":[513,"height-scale"],"position":[513]}]);
|
|
26375
26854
|
const CalciteShellPanel = /*@__PURE__*/proxyCustomElement(ShellPanel, [1,"calcite-shell-panel",{"collapsed":[516],"detached":[516],"detachedHeightScale":[513,"detached-height-scale"],"widthScale":[513,"width-scale"],"position":[513],"intlResize":[1,"intl-resize"],"resizable":[516],"contentWidth":[32]}]);
|
|
26376
26855
|
const CalciteSlider = /*@__PURE__*/proxyCustomElement(Slider, [1,"calcite-slider",{"disabled":[516],"hasHistogram":[1540,"has-histogram"],"histogram":[16],"histogramStops":[16],"labelHandles":[516,"label-handles"],"labelTicks":[516,"label-ticks"],"max":[514],"maxLabel":[1,"max-label"],"maxValue":[1026,"max-value"],"min":[514],"minLabel":[1,"min-label"],"minValue":[1026,"min-value"],"mirrored":[516],"name":[513],"pageStep":[2,"page-step"],"precise":[4],"required":[516],"snap":[4],"step":[2],"ticks":[2],"value":[1538],"scale":[1],"activeProp":[32],"minMaxValueRange":[32],"minValueDragRange":[32],"maxValueDragRange":[32],"tickValues":[32]},[[0,"keydown","keyDownHandler"],[0,"click","clickHandler"],[1,"pointerdown","pointerDownHandler"]]]);
|
|
26377
26856
|
const CalciteSortableList = /*@__PURE__*/proxyCustomElement(SortableList, [1,"calcite-sortable-list",{"dragSelector":[1,"drag-selector"],"group":[1],"handleSelector":[1,"handle-selector"],"layout":[1],"disabled":[516],"loading":[516],"handleActivated":[32]},[[0,"calciteHandleNudge","calciteHandleNudgeHandler"]]]);
|
|
26378
26857
|
const CalciteSplitButton = /*@__PURE__*/proxyCustomElement(SplitButton, [1,"calcite-split-button",{"appearance":[513],"color":[513],"disabled":[516],"active":[1540],"dropdownIconType":[513,"dropdown-icon-type"],"dropdownLabel":[513,"dropdown-label"],"loading":[516],"overlayPositioning":[1,"overlay-positioning"],"primaryIconEnd":[513,"primary-icon-end"],"primaryIconFlipRtl":[513,"primary-icon-flip-rtl"],"primaryIconStart":[513,"primary-icon-start"],"primaryLabel":[513,"primary-label"],"primaryText":[513,"primary-text"],"scale":[513],"width":[513]}]);
|
|
26379
|
-
const CalciteStepper = /*@__PURE__*/proxyCustomElement(Stepper, [1,"calcite-stepper",{"icon":[516],"layout":[513],"numbered":[516],"scale":[513],"requestedContent":[1040]},[[0,"
|
|
26380
|
-
const CalciteStepperItem = /*@__PURE__*/proxyCustomElement(StepperItem, [1,"calcite-stepper-item",{"active":[1540],"complete":[516],"error":[4],"disabled":[516],"itemTitle":[1,"item-title"],"itemSubtitle":[1,"item-subtitle"],"layout":[1537],"icon":[1028],"numbered":[1028],"scale":[1537]},[[16,"
|
|
26858
|
+
const CalciteStepper = /*@__PURE__*/proxyCustomElement(Stepper, [1,"calcite-stepper",{"icon":[516],"layout":[513],"numbered":[516],"scale":[513],"requestedContent":[1040]},[[0,"calciteInternalStepperItemKeyEvent","calciteInternalStepperItemKeyEvent"],[0,"calciteInternalStepperItemRegister","registerItem"],[0,"calciteInternalStepperItemSelect","updateItem"]]]);
|
|
26859
|
+
const CalciteStepperItem = /*@__PURE__*/proxyCustomElement(StepperItem, [1,"calcite-stepper-item",{"active":[1540],"complete":[516],"error":[4],"disabled":[516],"itemTitle":[1,"item-title"],"itemSubtitle":[1,"item-subtitle"],"layout":[1537],"icon":[1028],"numbered":[1028],"scale":[1537]},[[16,"calciteInternalStepperItemChange","updateActiveItemOnChange"]]]);
|
|
26381
26860
|
const CalciteSwitch = /*@__PURE__*/proxyCustomElement(Switch, [1,"calcite-switch",{"disabled":[516],"label":[1],"name":[513],"scale":[513],"switched":[1028],"checked":[1540],"value":[8]}]);
|
|
26382
26861
|
const CalciteTab = /*@__PURE__*/proxyCustomElement(Tab, [1,"calcite-tab",{"tab":[513],"active":[1540],"scale":[1537],"labeledBy":[32]},[[16,"calciteInternalTabChange","internalTabChangeHandler"]]]);
|
|
26383
|
-
const CalciteTabNav = /*@__PURE__*/proxyCustomElement(TabNav, [1,"calcite-tab-nav",{"storageId":[1,"storage-id"],"syncId":[1,"sync-id"],"scale":[1537],"layout":[1537],"position":[1537],"bordered":[1540],"indicatorOffset":[1026,"indicator-offset"],"indicatorWidth":[1026,"indicator-width"],"selectedTab":[32],"selectedTabEl":[32]},[[0,"
|
|
26862
|
+
const CalciteTabNav = /*@__PURE__*/proxyCustomElement(TabNav, [1,"calcite-tab-nav",{"storageId":[1,"storage-id"],"syncId":[1,"sync-id"],"scale":[1537],"layout":[1537],"position":[1537],"bordered":[1540],"indicatorOffset":[1026,"indicator-offset"],"indicatorWidth":[1026,"indicator-width"],"selectedTab":[32],"selectedTabEl":[32]},[[0,"calciteInternalTabsFocusPrevious","focusPreviousTabHandler"],[0,"calciteInternalTabsFocusNext","focusNextTabHandler"],[0,"calciteInternalTabsActivate","internalActivateTabHandler"],[0,"calciteTabsActivate","activateTabHandler"],[0,"calciteInternalTabTitleRegister","updateTabTitles"],[16,"calciteInternalTabChange","globalInternalTabChangeHandler"]]]);
|
|
26384
26863
|
const CalciteTabTitle = /*@__PURE__*/proxyCustomElement(TabTitle, [1,"calcite-tab-title",{"active":[1540],"disabled":[516],"iconEnd":[513,"icon-end"],"iconFlipRtl":[513,"icon-flip-rtl"],"iconStart":[513,"icon-start"],"layout":[1537],"position":[1537],"scale":[1537],"bordered":[1540],"tab":[513],"controls":[32],"hasText":[32]},[[16,"calciteInternalTabChange","internalTabChangeHandler"],[0,"click","onClick"],[0,"keydown","keyDownHandler"]]]);
|
|
26385
|
-
const CalciteTabs = /*@__PURE__*/proxyCustomElement(Tabs, [1,"calcite-tabs",{"layout":[513],"position":[513],"scale":[513],"bordered":[1540],"titles":[32],"tabs":[32]},[[0,"
|
|
26864
|
+
const CalciteTabs = /*@__PURE__*/proxyCustomElement(Tabs, [1,"calcite-tabs",{"layout":[513],"position":[513],"scale":[513],"bordered":[1540],"titles":[32],"tabs":[32]},[[0,"calciteInternalTabTitleRegister","calciteInternalTabTitleRegister"],[16,"calciteTabTitleUnregister","calciteTabTitleUnregister"],[0,"calciteInternalTabRegister","calciteInternalTabRegister"],[16,"calciteTabUnregister","calciteTabUnregister"]]]);
|
|
26386
26865
|
const CalciteTile = /*@__PURE__*/proxyCustomElement(Tile, [1,"calcite-tile",{"active":[516],"description":[513],"disabled":[516],"embed":[516],"focused":[516],"heading":[513],"hidden":[516],"href":[513],"icon":[513]}]);
|
|
26387
26866
|
const CalciteTileSelect = /*@__PURE__*/proxyCustomElement(TileSelect, [1,"calcite-tile-select",{"checked":[1540],"description":[513],"disabled":[516],"heading":[513],"hidden":[516],"icon":[513],"name":[520],"inputEnabled":[516,"input-enabled"],"inputAlignment":[513,"input-alignment"],"type":[513],"value":[8],"width":[513],"focused":[32]},[[0,"calciteCheckboxChange","checkboxChangeHandler"],[0,"calciteInternalCheckboxFocus","checkboxFocusBlurHandler"],[0,"calciteInternalCheckboxBlur","checkboxFocusBlurHandler"],[0,"calciteRadioButtonChange","radioButtonChangeHandler"],[0,"calciteInternalRadioButtonCheckedChange","radioButtonCheckedChangeHandler"],[0,"calciteInternalRadioButtonFocus","radioButtonFocusBlurHandler"],[0,"calciteInternalRadioButtonBlur","radioButtonFocusBlurHandler"],[0,"click","click"],[1,"mouseenter","mouseenter"],[1,"mouseleave","mouseleave"]]]);
|
|
26388
26867
|
const CalciteTileSelectGroup = /*@__PURE__*/proxyCustomElement(TileSelectGroup, [1,"calcite-tile-select-group",{"disabled":[516],"layout":[513]}]);
|
|
@@ -26392,9 +26871,9 @@ const CalciteTipGroup = /*@__PURE__*/proxyCustomElement(TipGroup, [1,"calcite-ti
|
|
|
26392
26871
|
const CalciteTipManager = /*@__PURE__*/proxyCustomElement(TipManager, [1,"calcite-tip-manager",{"closed":[1540],"headingLevel":[2,"heading-level"],"intlClose":[1,"intl-close"],"intlDefaultTitle":[1,"intl-default-title"],"intlNext":[1,"intl-next"],"intlPaginationLabel":[1,"intl-pagination-label"],"intlPrevious":[1,"intl-previous"],"selectedIndex":[32],"tips":[32],"total":[32],"direction":[32],"groupTitle":[32]}]);
|
|
26393
26872
|
const CalciteTooltip = /*@__PURE__*/proxyCustomElement(Tooltip, [1,"calcite-tooltip",{"label":[1],"offsetDistance":[514,"offset-distance"],"offsetSkidding":[514,"offset-skidding"],"open":[516],"overlayPositioning":[1,"overlay-positioning"],"placement":[513],"referenceElement":[1,"reference-element"],"effectiveReferenceElement":[32]}]);
|
|
26394
26873
|
const CalciteTooltipManager = /*@__PURE__*/proxyCustomElement(TooltipManager, [1,"calcite-tooltip-manager",{"selector":[1]}]);
|
|
26395
|
-
const CalciteTree = /*@__PURE__*/proxyCustomElement(Tree, [1,"calcite-tree",{"lines":[1540],"inputEnabled":[4,"input-enabled"],"child":[1540],"scale":[1537],"selectionMode":[1537,"selection-mode"]},[[0,"focus","onFocus"],[0,"focusin","onFocusIn"],[0,"focusout","onFocusOut"],[0,"
|
|
26874
|
+
const CalciteTree = /*@__PURE__*/proxyCustomElement(Tree, [1,"calcite-tree",{"lines":[1540],"inputEnabled":[4,"input-enabled"],"child":[1540],"scale":[1537],"selectionMode":[1537,"selection-mode"]},[[0,"focus","onFocus"],[0,"focusin","onFocusIn"],[0,"focusout","onFocusOut"],[0,"calciteInternalTreeItemSelect","onClick"],[0,"keydown","keyDownHandler"]]]);
|
|
26396
26875
|
const CalciteTreeItem = /*@__PURE__*/proxyCustomElement(TreeItem, [1,"calcite-tree-item",{"selected":[1540],"expanded":[1540],"parentExpanded":[4,"parent-expanded"],"depth":[1538],"hasChildren":[1540,"has-children"],"lines":[1540],"inputEnabled":[4,"input-enabled"],"scale":[1537],"indeterminate":[516],"selectionMode":[1025,"selection-mode"]},[[0,"click","onClick"],[0,"keydown","keyDownHandler"]]]);
|
|
26397
|
-
const CalciteValueList = /*@__PURE__*/proxyCustomElement(ValueList, [1,"calcite-value-list",{"disabled":[516],"dragEnabled":[516,"drag-enabled"],"filterEnabled":[516,"filter-enabled"],"filterPlaceholder":[513,"filter-placeholder"],"group":[1],"loading":[516],"multiple":[516],"selectionFollowsFocus":[4,"selection-follows-focus"],"selectedValues":[32],"dataForFilter":[32]},[[0,"focusout","calciteListFocusOutHandler"],[0,"calciteListItemRemove","calciteListItemRemoveHandler"],[0,"calciteListItemChange","calciteListItemChangeHandler"],[0,"
|
|
26876
|
+
const CalciteValueList = /*@__PURE__*/proxyCustomElement(ValueList, [1,"calcite-value-list",{"disabled":[516],"dragEnabled":[516,"drag-enabled"],"filterEnabled":[516,"filter-enabled"],"filterPlaceholder":[513,"filter-placeholder"],"group":[1],"loading":[516],"multiple":[516],"selectionFollowsFocus":[4,"selection-follows-focus"],"selectedValues":[32],"dataForFilter":[32]},[[0,"focusout","calciteListFocusOutHandler"],[0,"calciteListItemRemove","calciteListItemRemoveHandler"],[0,"calciteListItemChange","calciteListItemChangeHandler"],[0,"calciteInternalListItemPropsChange","calciteInternalListItemPropsChangeHandler"],[0,"calciteInternalListItemValueChange","calciteInternalListItemValueChangeHandler"]]]);
|
|
26398
26877
|
const CalciteValueListItem = /*@__PURE__*/proxyCustomElement(ValueListItem, [1,"calcite-value-list-item",{"description":[513],"disabled":[516],"disableDeselect":[4,"disable-deselect"],"nonInteractive":[516,"non-interactive"],"handleActivated":[1028,"handle-activated"],"icon":[513],"label":[513],"metadata":[16],"removable":[516],"selected":[1540],"value":[8]},[[0,"calciteListItemChange","calciteListItemChangeHandler"]]]);
|
|
26399
26878
|
const defineCustomElements = (opts) => {
|
|
26400
26879
|
if (typeof customElements !== 'undefined') {
|