@esri/calcite-components 1.0.0-beta.70 → 1.0.0-beta.74
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/calcite-date-picker/nls/bg.json +31 -0
- package/dist/calcite/assets/calcite-icon/centerAlign16.json +1 -0
- package/dist/calcite/assets/calcite-icon/centerAlign24.json +1 -0
- package/dist/calcite/assets/calcite-icon/centerAlign32.json +1 -0
- package/dist/calcite/assets/calcite-icon/checkSquareF16.json +1 -0
- package/dist/calcite/assets/calcite-icon/checkSquareF24.json +1 -0
- package/dist/calcite/assets/calcite-icon/checkSquareF32.json +1 -0
- package/dist/calcite/assets/calcite-icon/cloudy16.json +1 -0
- package/dist/calcite/assets/calcite-icon/cloudy24.json +1 -0
- package/dist/calcite/assets/calcite-icon/cloudy32.json +1 -0
- package/dist/calcite/assets/calcite-icon/convert16.json +1 -0
- package/dist/calcite/assets/calcite-icon/convert24.json +1 -0
- package/dist/calcite/assets/calcite-icon/convert32.json +1 -0
- package/dist/calcite/assets/calcite-icon/displaySelectionLock16.json +1 -0
- package/dist/calcite/assets/calcite-icon/displaySelectionLock24.json +1 -0
- package/dist/calcite/assets/calcite-icon/displaySelectionLock32.json +1 -0
- package/dist/calcite/assets/calcite-icon/displaySelectionUnlock16.json +1 -0
- package/dist/calcite/assets/calcite-icon/displaySelectionUnlock24.json +1 -0
- package/dist/calcite/assets/calcite-icon/displaySelectionUnlock32.json +1 -0
- package/dist/calcite/assets/calcite-icon/driveTimeThreshold16.json +1 -0
- package/dist/calcite/assets/calcite-icon/driveTimeThreshold24.json +1 -0
- package/dist/calcite/assets/calcite-icon/driveTimeThreshold32.json +1 -0
- package/dist/calcite/assets/calcite-icon/explore16.json +1 -0
- package/dist/calcite/assets/calcite-icon/explore24.json +1 -0
- package/dist/calcite/assets/calcite-icon/explore32.json +1 -0
- package/dist/calcite/assets/calcite-icon/fog16.json +1 -0
- package/dist/calcite/assets/calcite-icon/fog24.json +1 -0
- package/dist/calcite/assets/calcite-icon/fog32.json +1 -0
- package/dist/calcite/assets/calcite-icon/formDropdown16.json +1 -0
- package/dist/calcite/assets/calcite-icon/formDropdown24.json +1 -0
- package/dist/calcite/assets/calcite-icon/formDropdown32.json +1 -0
- package/dist/calcite/assets/calcite-icon/heavyRain16.json +1 -0
- package/dist/calcite/assets/calcite-icon/heavyRain24.json +1 -0
- package/dist/calcite/assets/calcite-icon/heavyRain32.json +1 -0
- package/dist/calcite/assets/calcite-icon/heavySnow16.json +1 -0
- package/dist/calcite/assets/calcite-icon/heavySnow24.json +1 -0
- package/dist/calcite/assets/calcite-icon/heavySnow32.json +1 -0
- package/dist/calcite/assets/calcite-icon/language16.json +1 -0
- package/dist/calcite/assets/calcite-icon/language24.json +1 -0
- package/dist/calcite/assets/calcite-icon/language32.json +1 -0
- package/dist/calcite/assets/calcite-icon/languageTranslate16.json +1 -0
- package/dist/calcite/assets/calcite-icon/languageTranslate24.json +1 -0
- package/dist/calcite/assets/calcite-icon/languageTranslate32.json +1 -0
- package/dist/calcite/assets/calcite-icon/leftAlign16.json +1 -0
- package/dist/calcite/assets/calcite-icon/leftAlign24.json +1 -0
- package/dist/calcite/assets/calcite-icon/leftAlign32.json +1 -0
- package/dist/calcite/assets/calcite-icon/lightRain16.json +1 -0
- package/dist/calcite/assets/calcite-icon/lightRain24.json +1 -0
- package/dist/calcite/assets/calcite-icon/lightRain32.json +1 -0
- package/dist/calcite/assets/calcite-icon/lightSnow16.json +1 -0
- package/dist/calcite/assets/calcite-icon/lightSnow24.json +1 -0
- package/dist/calcite/assets/calcite-icon/lightSnow32.json +1 -0
- package/dist/calcite/assets/calcite-icon/lineSolid4.json +1 -0
- package/dist/calcite/assets/calcite-icon/partlyCloud16.json +1 -0
- package/dist/calcite/assets/calcite-icon/partlyCloud24.json +1 -0
- package/dist/calcite/assets/calcite-icon/partlyCloud32.json +1 -0
- package/dist/calcite/assets/calcite-icon/partlyCloudy16.json +1 -0
- package/dist/calcite/assets/calcite-icon/partlyCloudy24.json +1 -0
- package/dist/calcite/assets/calcite-icon/partlyCloudy32.json +1 -0
- package/dist/calcite/assets/calcite-icon/rain16.json +1 -0
- package/dist/calcite/assets/calcite-icon/rain24.json +1 -0
- package/dist/calcite/assets/calcite-icon/rain32.json +1 -0
- package/dist/calcite/assets/calcite-icon/rainSnow16.json +1 -0
- package/dist/calcite/assets/calcite-icon/rainSnow24.json +1 -0
- package/dist/calcite/assets/calcite-icon/rainSnow32.json +1 -0
- package/dist/calcite/assets/calcite-icon/rainThunder16.json +1 -0
- package/dist/calcite/assets/calcite-icon/rainThunder24.json +1 -0
- package/dist/calcite/assets/calcite-icon/rainThunder32.json +1 -0
- package/dist/calcite/assets/calcite-icon/rightAlign16.json +1 -0
- package/dist/calcite/assets/calcite-icon/rightAlign24.json +1 -0
- package/dist/calcite/assets/calcite-icon/rightAlign32.json +1 -0
- package/dist/calcite/assets/calcite-icon/ringsThreshold16.json +1 -0
- package/dist/calcite/assets/calcite-icon/ringsThreshold24.json +1 -0
- package/dist/calcite/assets/calcite-icon/ringsThreshold32.json +1 -0
- package/dist/calcite/assets/calcite-icon/screenshotMode16.json +1 -0
- package/dist/calcite/assets/calcite-icon/screenshotMode24.json +1 -0
- package/dist/calcite/assets/calcite-icon/screenshotMode32.json +1 -0
- package/dist/calcite/assets/calcite-icon/selectVisible16.json +1 -0
- package/dist/calcite/assets/calcite-icon/selectVisible24.json +1 -0
- package/dist/calcite/assets/calcite-icon/selectVisible32.json +1 -0
- package/dist/calcite/assets/calcite-icon/snow16.json +1 -0
- package/dist/calcite/assets/calcite-icon/snow24.json +1 -0
- package/dist/calcite/assets/calcite-icon/snow32.json +1 -0
- package/dist/calcite/assets/calcite-icon/snowThunder16.json +1 -0
- package/dist/calcite/assets/calcite-icon/snowThunder24.json +1 -0
- package/dist/calcite/assets/calcite-icon/snowThunder32.json +1 -0
- package/dist/calcite/assets/calcite-icon/squareF16.json +1 -0
- package/dist/calcite/assets/calcite-icon/squareF24.json +1 -0
- package/dist/calcite/assets/calcite-icon/squareF32.json +1 -0
- package/dist/calcite/assets/calcite-icon/terminal16.json +1 -0
- package/dist/calcite/assets/calcite-icon/terminal24.json +1 -0
- package/dist/calcite/assets/calcite-icon/terminal32.json +1 -0
- package/dist/calcite/assets/calcite-icon/touch16.json +1 -0
- package/dist/calcite/assets/calcite-icon/touch24.json +1 -0
- package/dist/calcite/assets/calcite-icon/touch32.json +1 -0
- package/dist/calcite/assets/calcite-icon/xHexagon16.json +1 -0
- package/dist/calcite/assets/calcite-icon/xHexagon24.json +1 -0
- package/dist/calcite/assets/calcite-icon/xHexagon32.json +1 -0
- package/dist/calcite/assets/calcite-icon/xHexagonF16.json +1 -0
- package/dist/calcite/assets/calcite-icon/xHexagonF24.json +1 -0
- package/dist/calcite/assets/calcite-icon/xHexagonF32.json +1 -0
- package/dist/calcite/assets/calcite-icon/xOctagonF16.json +1 -0
- package/dist/calcite/assets/calcite-icon/xOctagonF24.json +1 -0
- package/dist/calcite/assets/calcite-icon/xOctagonF32.json +1 -0
- package/dist/calcite/calcite.css +1 -1
- package/dist/calcite/calcite.esm.js +1 -1
- package/dist/calcite/calcite.js +1 -1
- package/dist/calcite/p-02589ad3.system.entry.js +5 -0
- package/dist/calcite/p-02856c5a.system.entry.js +5 -0
- package/dist/calcite/p-04bf9bca.system.entry.js +5 -0
- package/dist/calcite/p-05dc6806.entry.js +5 -0
- package/dist/calcite/p-088a096d.system.entry.js +5 -0
- package/dist/calcite/p-0af820bf.entry.js +5 -0
- package/dist/calcite/p-0b0ce9b2.system.entry.js +5 -0
- package/dist/calcite/p-0cf878ed.system.entry.js +5 -0
- package/dist/calcite/p-10f1a096.system.entry.js +5 -0
- package/dist/calcite/p-132d55c2.entry.js +5 -0
- package/dist/calcite/p-141c978b.system.entry.js +5 -0
- package/dist/calcite/p-14ff4cbd.system.js +5 -0
- package/dist/calcite/p-16cfe8e8.entry.js +5 -0
- package/dist/calcite/p-1894562d.system.entry.js +5 -0
- package/dist/calcite/p-1a5dae4a.entry.js +5 -0
- package/dist/calcite/p-1b3a66ec.system.entry.js +5 -0
- package/dist/calcite/p-1d7a9909.system.entry.js +5 -0
- package/dist/calcite/{p-7bb94bfa.entry.js → p-209f2049.entry.js} +1 -1
- package/dist/calcite/p-20d2db84.entry.js +5 -0
- package/dist/calcite/p-21f26f77.entry.js +5 -0
- package/dist/calcite/p-244e0b95.entry.js +5 -0
- package/dist/calcite/p-253efee4.entry.js +5 -0
- package/dist/calcite/p-2618de8a.entry.js +5 -0
- package/dist/calcite/p-273cd5ab.entry.js +5 -0
- package/dist/calcite/p-28adfebc.entry.js +5 -0
- package/dist/calcite/{p-6d44b7d9.system.js → p-28dea60a.system.js} +1 -1
- package/dist/calcite/p-2a8938c7.system.entry.js +5 -0
- package/dist/calcite/p-2c954eaa.system.entry.js +5 -0
- package/dist/calcite/p-325fcd0d.entry.js +5 -0
- package/dist/calcite/p-32f6f7df.entry.js +5 -0
- package/dist/calcite/{p-e956e279.js → p-32f7eb32.js} +1 -1
- package/dist/calcite/p-37bddb73.system.entry.js +5 -0
- package/dist/calcite/p-38e64c6b.entry.js +5 -0
- package/dist/calcite/p-3a20f93d.system.js +5 -0
- package/dist/calcite/p-3ab992ff.system.entry.js +5 -0
- package/dist/calcite/p-3b73b785.system.entry.js +5 -0
- package/dist/calcite/p-3b8f5ab8.system.entry.js +5 -0
- package/dist/calcite/p-3c34f20d.system.js +5 -0
- package/dist/calcite/p-3d4c34e5.js +5 -0
- package/dist/calcite/p-3e9e4992.entry.js +5 -0
- package/dist/calcite/p-41894582.js +5 -0
- package/dist/calcite/p-41e2198b.js +5 -0
- package/dist/calcite/p-436d9f0e.system.entry.js +5 -0
- package/dist/calcite/p-45bfe5bf.system.entry.js +5 -0
- package/dist/calcite/p-4659df78.entry.js +5 -0
- package/dist/calcite/p-46b63d75.entry.js +5 -0
- package/dist/calcite/p-4d22b788.entry.js +5 -0
- package/dist/calcite/p-513bc44f.system.entry.js +5 -0
- package/dist/calcite/p-51550014.entry.js +5 -0
- package/dist/calcite/p-51a85436.entry.js +5 -0
- package/dist/calcite/{p-523bc291.system.js → p-52871e84.system.js} +1 -1
- package/dist/calcite/p-54e271c9.system.entry.js +5 -0
- package/dist/calcite/p-57558d4b.entry.js +5 -0
- package/dist/calcite/p-59133b9b.entry.js +5 -0
- package/dist/calcite/p-5c256f31.system.entry.js +5 -0
- package/dist/calcite/p-5c3b9524.system.entry.js +5 -0
- package/dist/calcite/{p-2451da5b.entry.js → p-5df1936f.entry.js} +1 -1
- package/dist/calcite/p-6515e0a5.entry.js +5 -0
- package/dist/calcite/p-66ca7309.entry.js +5 -0
- package/dist/calcite/p-698167ac.entry.js +5 -0
- package/dist/calcite/p-781ebed0.system.js +5 -0
- package/dist/calcite/p-799f0655.entry.js +5 -0
- package/dist/calcite/p-7a28e833.system.entry.js +5 -0
- package/dist/calcite/p-7d355abe.system.entry.js +5 -0
- package/dist/calcite/p-7f32a681.system.entry.js +5 -0
- package/dist/calcite/p-7f5bd070.system.entry.js +5 -0
- package/dist/calcite/p-8468ddb0.system.entry.js +5 -0
- package/dist/calcite/p-85fb7bc0.entry.js +5 -0
- package/dist/calcite/p-869eb8f9.entry.js +5 -0
- package/dist/calcite/p-897fc280.system.entry.js +5 -0
- package/dist/calcite/p-8b145872.system.entry.js +5 -0
- package/dist/calcite/p-8d36bc7c.entry.js +5 -0
- package/dist/calcite/p-8e1945e3.entry.js +5 -0
- package/dist/calcite/{p-1434e37e.entry.js → p-8eafaf3f.entry.js} +1 -1
- package/dist/calcite/p-8ebed170.system.entry.js +5 -0
- package/dist/calcite/p-8f4ea148.system.entry.js +5 -0
- package/dist/calcite/p-99d29b5c.system.entry.js +5 -0
- package/dist/calcite/p-99d32fc3.system.js +5 -0
- package/dist/calcite/p-9b05c3fd.js +5 -0
- package/dist/calcite/p-9d81d229.entry.js +5 -0
- package/dist/calcite/p-a0043c61.entry.js +5 -0
- package/dist/calcite/p-a1f65f6e.entry.js +5 -0
- package/dist/calcite/p-a348ffb1.system.entry.js +5 -0
- package/dist/calcite/p-a4dec1f6.system.entry.js +5 -0
- package/dist/calcite/p-a9c50960.system.entry.js +5 -0
- package/dist/calcite/p-aaed1677.entry.js +5 -0
- package/dist/calcite/p-ac778725.system.entry.js +5 -0
- package/dist/calcite/p-ac8cf248.entry.js +5 -0
- package/dist/calcite/p-b1a43a5f.system.entry.js +5 -0
- package/dist/calcite/p-b4990fa4.system.entry.js +5 -0
- package/dist/calcite/p-b4d3f1c1.entry.js +5 -0
- package/dist/calcite/p-b80ab9ba.entry.js +5 -0
- package/dist/calcite/p-bb401f25.system.js +5 -0
- package/dist/calcite/p-bb9fb183.system.entry.js +5 -0
- package/dist/calcite/p-bc85a791.entry.js +5 -0
- package/dist/calcite/p-bda51610.entry.js +5 -0
- package/dist/calcite/p-c0ed9eff.entry.js +5 -0
- package/dist/calcite/p-c56f495f.system.js +5 -0
- package/dist/calcite/p-c7b8a068.entry.js +5 -0
- package/dist/calcite/p-cb9cd28c.system.entry.js +5 -0
- package/dist/calcite/p-cfcb2161.entry.js +5 -0
- package/dist/calcite/p-d1794edd.entry.js +5 -0
- package/dist/calcite/p-d578e568.system.entry.js +5 -0
- package/dist/calcite/p-d5d91f34.system.entry.js +5 -0
- package/dist/calcite/p-dba7c714.system.entry.js +5 -0
- package/dist/calcite/p-dd9f2e61.js +5 -0
- package/dist/calcite/p-e0fa3b13.system.entry.js +5 -0
- package/dist/calcite/{p-d6f20229.js → p-e1944963.js} +1 -1
- package/dist/calcite/p-e2094dff.system.entry.js +5 -0
- package/dist/calcite/p-e2ebc089.system.entry.js +5 -0
- package/dist/calcite/p-e426746f.system.entry.js +5 -0
- package/dist/calcite/p-e564004a.system.entry.js +5 -0
- package/dist/calcite/p-e606e9ae.system.entry.js +5 -0
- package/dist/calcite/{p-714ae4f6.entry.js → p-e63f0806.entry.js} +1 -1
- package/dist/calcite/p-e690993e.system.entry.js +5 -0
- package/dist/calcite/p-e6d14bc5.system.entry.js +5 -0
- package/dist/calcite/p-e87980ac.entry.js +5 -0
- package/dist/calcite/p-eea18662.entry.js +5 -0
- package/dist/calcite/p-ef6b4184.js +5 -0
- package/dist/calcite/p-f09810e7.entry.js +5 -0
- package/dist/calcite/p-f26cad61.system.entry.js +5 -0
- package/dist/calcite/p-f5469b62.system.entry.js +5 -0
- package/dist/calcite/p-f5739197.entry.js +5 -0
- package/dist/calcite/p-f6fc151d.system.entry.js +5 -0
- package/dist/calcite/p-f73124d0.entry.js +5 -0
- package/dist/calcite/p-f763b1e7.system.entry.js +5 -0
- package/dist/calcite/p-f90b2e7f.entry.js +5 -0
- package/dist/calcite/p-f95fb85f.entry.js +5 -0
- package/dist/calcite/p-fbcaa23c.system.js +5 -0
- package/dist/calcite/p-fcd62e97.js +5 -0
- package/dist/calcite/p-fdd3ea5e.entry.js +5 -0
- package/dist/calcite/p-fe3fff79.entry.js +5 -0
- package/dist/calcite/p-fee9511c.system.entry.js +5 -0
- package/dist/cjs/{CalciteExpandToggle-5f60c98b.js → CalciteExpandToggle-65468585.js} +2 -2
- package/dist/cjs/calcite-accordion_2.cjs.entry.js +6 -7
- package/dist/cjs/calcite-action-bar.cjs.entry.js +27 -3
- package/dist/cjs/calcite-action-group.cjs.entry.js +2 -2
- package/dist/cjs/calcite-action-menu.cjs.entry.js +2 -2
- package/dist/cjs/calcite-action-pad.cjs.entry.js +4 -9
- package/dist/cjs/calcite-action.cjs.entry.js +1 -1
- package/dist/cjs/calcite-alert.cjs.entry.js +26 -13
- package/dist/cjs/calcite-avatar.cjs.entry.js +4 -5
- package/dist/cjs/calcite-block_2.cjs.entry.js +10 -6
- package/dist/cjs/calcite-button.cjs.entry.js +12 -7
- package/dist/cjs/calcite-card.cjs.entry.js +3 -7
- package/dist/cjs/calcite-checkbox.cjs.entry.js +5 -5
- package/dist/cjs/calcite-chip.cjs.entry.js +4 -5
- package/dist/cjs/calcite-color-picker_3.cjs.entry.js +49 -45
- package/dist/cjs/calcite-combobox_3.cjs.entry.js +16 -19
- package/dist/cjs/calcite-date-picker_4.cjs.entry.js +53 -41
- package/dist/cjs/calcite-dropdown_3.cjs.entry.js +26 -29
- package/dist/cjs/calcite-fab.cjs.entry.js +4 -5
- package/dist/cjs/calcite-filter.cjs.entry.js +4 -19
- package/dist/cjs/calcite-flow.cjs.entry.js +1 -1
- package/dist/cjs/calcite-graph_2.cjs.entry.js +35 -23
- package/dist/cjs/calcite-handle.cjs.entry.js +1 -1
- package/dist/cjs/calcite-icon.cjs.entry.js +2 -2
- package/dist/cjs/calcite-inline-editable.cjs.entry.js +3 -3
- package/dist/cjs/calcite-input-date-picker.cjs.entry.js +31 -14
- package/dist/cjs/calcite-input-message.cjs.entry.js +3 -4
- package/dist/cjs/calcite-input-time-picker_2.cjs.entry.js +378 -253
- package/dist/cjs/calcite-input.cjs.entry.js +58 -38
- package/dist/cjs/calcite-label.cjs.entry.js +2 -5
- package/dist/cjs/calcite-link.cjs.entry.js +3 -3
- package/dist/cjs/calcite-list_3.cjs.entry.js +4 -4
- package/dist/cjs/calcite-loader.cjs.entry.js +1 -1
- package/dist/cjs/calcite-modal.cjs.entry.js +5 -7
- package/dist/cjs/calcite-notice.cjs.entry.js +3 -4
- package/dist/cjs/calcite-option_3.cjs.entry.js +14 -12
- package/dist/cjs/calcite-pagination.cjs.entry.js +3 -6
- package/dist/cjs/calcite-panel.cjs.entry.js +10 -13
- package/dist/cjs/calcite-pick-list_3.cjs.entry.js +7 -8
- package/dist/cjs/calcite-popover_2.cjs.entry.js +7 -9
- package/dist/cjs/calcite-progress.cjs.entry.js +1 -1
- package/dist/cjs/calcite-radio-button-group.cjs.entry.js +1 -1
- package/dist/cjs/{calcite-radio_2.cjs.entry.js → calcite-radio-button.cjs.entry.js} +26 -57
- package/dist/cjs/calcite-radio-group_2.cjs.entry.js +27 -82
- package/dist/cjs/calcite-rating.cjs.entry.js +5 -6
- package/dist/cjs/calcite-scrim.cjs.entry.js +1 -1
- package/dist/cjs/calcite-shell_3.cjs.entry.js +170 -11
- package/dist/cjs/calcite-sortable-list.cjs.entry.js +1 -1
- package/dist/cjs/calcite-split-button.cjs.entry.js +4 -5
- package/dist/cjs/calcite-stepper_2.cjs.entry.js +6 -8
- package/dist/cjs/calcite-switch.cjs.entry.js +7 -9
- package/dist/cjs/calcite-tab_4.cjs.entry.js +9 -12
- package/dist/cjs/calcite-tile-select_2.cjs.entry.js +38 -5
- package/dist/cjs/calcite-tile.cjs.entry.js +2 -2
- package/dist/cjs/calcite-tip_3.cjs.entry.js +4 -4
- package/dist/cjs/calcite-tooltip_2.cjs.entry.js +7 -8
- package/dist/cjs/calcite-tree_2.cjs.entry.js +4 -6
- package/dist/cjs/calcite-value-list_2.cjs.entry.js +13 -6
- package/dist/cjs/calcite.cjs.js +2 -2
- package/dist/cjs/{dom-19822169.js → dom-0de9fb18.js} +39 -9
- package/dist/cjs/{form-a5b44a1f.js → form-4b7c317e.js} +1 -1
- package/dist/cjs/{label-8e3552b2.js → label-1bca211b.js} +5 -2
- package/dist/cjs/loader.cjs.js +2 -2
- package/dist/cjs/locale-02462821.js +128 -0
- package/dist/cjs/number-e813e801.js +84 -0
- package/dist/cjs/{popper-87bf13e6.js → popper-09105f6f.js} +118 -73
- package/dist/cjs/{resources-cd25dbae.js → resources-405cc2c4.js} +17 -6
- package/dist/cjs/{resources-3f7b51c8.js → resources-9f0994fb.js} +3 -2
- package/dist/collection/collection-manifest.json +6 -8
- package/dist/collection/components/calcite-accordion/calcite-accordion.css +8 -14
- package/dist/collection/components/calcite-accordion/calcite-accordion.js +2 -3
- package/dist/collection/components/calcite-accordion-item/calcite-accordion-item.css +41 -84
- package/dist/collection/components/calcite-accordion-item/calcite-accordion-item.js +2 -3
- package/dist/collection/components/calcite-action/calcite-action.css +51 -92
- package/dist/collection/components/calcite-action-bar/calcite-action-bar.css +12 -19
- package/dist/collection/components/calcite-action-bar/calcite-action-bar.js +3 -0
- package/dist/collection/components/calcite-action-group/calcite-action-group.css +10 -19
- package/dist/collection/components/calcite-action-menu/calcite-action-menu.css +16 -24
- package/dist/collection/components/calcite-action-pad/calcite-action-pad.css +33 -33
- package/dist/collection/components/calcite-action-pad/calcite-action-pad.js +2 -8
- package/dist/collection/components/calcite-alert/calcite-alert.css +110 -147
- package/dist/collection/components/calcite-alert/calcite-alert.js +50 -13
- package/dist/collection/components/calcite-avatar/calcite-avatar.css +13 -21
- package/dist/collection/components/calcite-avatar/calcite-avatar.js +2 -4
- package/dist/collection/components/calcite-block/calcite-block.css +52 -65
- package/dist/collection/components/calcite-block/calcite-block.js +8 -4
- package/dist/collection/components/calcite-block-section/calcite-block-section.css +32 -54
- package/dist/collection/components/calcite-block-section/calcite-block-section.js +1 -2
- package/dist/collection/components/calcite-button/calcite-button.css +107 -284
- package/dist/collection/components/calcite-button/calcite-button.js +9 -6
- package/dist/collection/components/calcite-button/resources.js +3 -1
- package/dist/collection/components/calcite-card/calcite-card.css +55 -67
- package/dist/collection/components/calcite-card/calcite-card.js +2 -6
- package/dist/collection/components/calcite-checkbox/calcite-checkbox.css +16 -25
- package/dist/collection/components/calcite-checkbox/calcite-checkbox.js +1 -1
- package/dist/collection/components/calcite-chip/calcite-chip.css +36 -80
- package/dist/collection/components/calcite-chip/calcite-chip.js +3 -5
- package/dist/collection/components/calcite-color-picker/calcite-color-picker.css +18 -49
- package/dist/collection/components/calcite-color-picker/calcite-color-picker.js +8 -12
- package/dist/collection/components/calcite-color-picker-hex-input/calcite-color-picker-hex-input.css +12 -18
- package/dist/collection/components/calcite-color-picker-hex-input/calcite-color-picker-hex-input.js +4 -6
- package/dist/collection/components/calcite-color-picker-swatch/calcite-color-picker-swatch.css +12 -19
- package/dist/collection/components/calcite-color-picker-swatch/resources.js +1 -1
- package/dist/collection/components/calcite-combobox/calcite-combobox.css +37 -60
- package/dist/collection/components/calcite-combobox/calcite-combobox.js +7 -8
- package/dist/collection/components/calcite-combobox/interfaces.d.js +1 -0
- package/dist/collection/components/calcite-combobox-item/calcite-combobox-item.css +41 -55
- package/dist/collection/components/calcite-combobox-item/calcite-combobox-item.js +1 -4
- package/dist/collection/components/calcite-combobox-item-group/calcite-combobox-item-group.css +15 -38
- package/dist/collection/components/calcite-combobox-item-group/calcite-combobox-item-group.js +2 -4
- package/dist/collection/components/calcite-date-picker/assets/calcite-date-picker/nls/bg.json +31 -0
- package/dist/collection/components/calcite-date-picker/calcite-date-picker.css +9 -15
- package/dist/collection/components/calcite-date-picker/calcite-date-picker.js +55 -17
- package/dist/collection/components/calcite-date-picker/resources.js +2 -1
- package/dist/collection/components/calcite-date-picker-day/calcite-date-picker-day.css +64 -68
- package/dist/collection/components/calcite-date-picker-day/calcite-date-picker-day.js +1 -2
- package/dist/collection/components/calcite-date-picker-month/calcite-date-picker-month.css +26 -32
- package/dist/collection/components/calcite-date-picker-month/calcite-date-picker-month.js +6 -9
- package/dist/collection/components/calcite-date-picker-month-header/calcite-date-picker-month-header.css +39 -57
- package/dist/collection/components/calcite-date-picker-month-header/calcite-date-picker-month-header.js +25 -11
- package/dist/collection/components/calcite-dropdown/calcite-dropdown.css +8 -48
- package/dist/collection/components/calcite-dropdown/calcite-dropdown.js +18 -19
- package/dist/collection/components/calcite-dropdown-group/calcite-dropdown-group.css +15 -21
- package/dist/collection/components/calcite-dropdown-group/calcite-dropdown-group.js +2 -3
- package/dist/collection/components/calcite-dropdown-item/calcite-dropdown-item.css +89 -183
- package/dist/collection/components/calcite-dropdown-item/calcite-dropdown-item.js +4 -8
- package/dist/collection/components/calcite-fab/calcite-fab.css +15 -17
- package/dist/collection/components/calcite-fab/calcite-fab.js +3 -4
- package/dist/collection/components/calcite-filter/calcite-filter.css +28 -56
- package/dist/collection/components/calcite-filter/calcite-filter.js +7 -43
- package/dist/collection/components/calcite-flow/calcite-flow.css +27 -35
- package/dist/collection/components/calcite-graph/calcite-graph.css +8 -15
- package/dist/collection/components/calcite-handle/calcite-handle.css +9 -19
- package/dist/collection/components/calcite-icon/assets/calcite-icon/centerAlign16.json +1 -0
- package/dist/collection/components/calcite-icon/assets/calcite-icon/centerAlign24.json +1 -0
- package/dist/collection/components/calcite-icon/assets/calcite-icon/centerAlign32.json +1 -0
- package/dist/collection/components/calcite-icon/assets/calcite-icon/checkSquareF16.json +1 -0
- package/dist/collection/components/calcite-icon/assets/calcite-icon/checkSquareF24.json +1 -0
- package/dist/collection/components/calcite-icon/assets/calcite-icon/checkSquareF32.json +1 -0
- package/dist/collection/components/calcite-icon/assets/calcite-icon/cloudy16.json +1 -0
- package/dist/collection/components/calcite-icon/assets/calcite-icon/cloudy24.json +1 -0
- package/dist/collection/components/calcite-icon/assets/calcite-icon/cloudy32.json +1 -0
- package/dist/collection/components/calcite-icon/assets/calcite-icon/convert16.json +1 -0
- package/dist/collection/components/calcite-icon/assets/calcite-icon/convert24.json +1 -0
- package/dist/collection/components/calcite-icon/assets/calcite-icon/convert32.json +1 -0
- package/dist/collection/components/calcite-icon/assets/calcite-icon/displaySelectionLock16.json +1 -0
- package/dist/collection/components/calcite-icon/assets/calcite-icon/displaySelectionLock24.json +1 -0
- package/dist/collection/components/calcite-icon/assets/calcite-icon/displaySelectionLock32.json +1 -0
- package/dist/collection/components/calcite-icon/assets/calcite-icon/displaySelectionUnlock16.json +1 -0
- package/dist/collection/components/calcite-icon/assets/calcite-icon/displaySelectionUnlock24.json +1 -0
- package/dist/collection/components/calcite-icon/assets/calcite-icon/displaySelectionUnlock32.json +1 -0
- package/dist/collection/components/calcite-icon/assets/calcite-icon/driveTimeThreshold16.json +1 -0
- package/dist/collection/components/calcite-icon/assets/calcite-icon/driveTimeThreshold24.json +1 -0
- package/dist/collection/components/calcite-icon/assets/calcite-icon/driveTimeThreshold32.json +1 -0
- package/dist/collection/components/calcite-icon/assets/calcite-icon/explore16.json +1 -0
- package/dist/collection/components/calcite-icon/assets/calcite-icon/explore24.json +1 -0
- package/dist/collection/components/calcite-icon/assets/calcite-icon/explore32.json +1 -0
- package/dist/collection/components/calcite-icon/assets/calcite-icon/fog16.json +1 -0
- package/dist/collection/components/calcite-icon/assets/calcite-icon/fog24.json +1 -0
- package/dist/collection/components/calcite-icon/assets/calcite-icon/fog32.json +1 -0
- package/dist/collection/components/calcite-icon/assets/calcite-icon/formDropdown16.json +1 -0
- package/dist/collection/components/calcite-icon/assets/calcite-icon/formDropdown24.json +1 -0
- package/dist/collection/components/calcite-icon/assets/calcite-icon/formDropdown32.json +1 -0
- package/dist/collection/components/calcite-icon/assets/calcite-icon/heavyRain16.json +1 -0
- package/dist/collection/components/calcite-icon/assets/calcite-icon/heavyRain24.json +1 -0
- package/dist/collection/components/calcite-icon/assets/calcite-icon/heavyRain32.json +1 -0
- package/dist/collection/components/calcite-icon/assets/calcite-icon/heavySnow16.json +1 -0
- package/dist/collection/components/calcite-icon/assets/calcite-icon/heavySnow24.json +1 -0
- package/dist/collection/components/calcite-icon/assets/calcite-icon/heavySnow32.json +1 -0
- package/dist/collection/components/calcite-icon/assets/calcite-icon/language16.json +1 -0
- package/dist/collection/components/calcite-icon/assets/calcite-icon/language24.json +1 -0
- package/dist/collection/components/calcite-icon/assets/calcite-icon/language32.json +1 -0
- package/dist/collection/components/calcite-icon/assets/calcite-icon/languageTranslate16.json +1 -0
- package/dist/collection/components/calcite-icon/assets/calcite-icon/languageTranslate24.json +1 -0
- package/dist/collection/components/calcite-icon/assets/calcite-icon/languageTranslate32.json +1 -0
- package/dist/collection/components/calcite-icon/assets/calcite-icon/leftAlign16.json +1 -0
- package/dist/collection/components/calcite-icon/assets/calcite-icon/leftAlign24.json +1 -0
- package/dist/collection/components/calcite-icon/assets/calcite-icon/leftAlign32.json +1 -0
- package/dist/collection/components/calcite-icon/assets/calcite-icon/lightRain16.json +1 -0
- package/dist/collection/components/calcite-icon/assets/calcite-icon/lightRain24.json +1 -0
- package/dist/collection/components/calcite-icon/assets/calcite-icon/lightRain32.json +1 -0
- package/dist/collection/components/calcite-icon/assets/calcite-icon/lightSnow16.json +1 -0
- package/dist/collection/components/calcite-icon/assets/calcite-icon/lightSnow24.json +1 -0
- package/dist/collection/components/calcite-icon/assets/calcite-icon/lightSnow32.json +1 -0
- package/dist/collection/components/calcite-icon/assets/calcite-icon/lineSolid4.json +1 -0
- package/dist/collection/components/calcite-icon/assets/calcite-icon/partlyCloud16.json +1 -0
- package/dist/collection/components/calcite-icon/assets/calcite-icon/partlyCloud24.json +1 -0
- package/dist/collection/components/calcite-icon/assets/calcite-icon/partlyCloud32.json +1 -0
- package/dist/collection/components/calcite-icon/assets/calcite-icon/partlyCloudy16.json +1 -0
- package/dist/collection/components/calcite-icon/assets/calcite-icon/partlyCloudy24.json +1 -0
- package/dist/collection/components/calcite-icon/assets/calcite-icon/partlyCloudy32.json +1 -0
- package/dist/collection/components/calcite-icon/assets/calcite-icon/rain16.json +1 -0
- package/dist/collection/components/calcite-icon/assets/calcite-icon/rain24.json +1 -0
- package/dist/collection/components/calcite-icon/assets/calcite-icon/rain32.json +1 -0
- package/dist/collection/components/calcite-icon/assets/calcite-icon/rainSnow16.json +1 -0
- package/dist/collection/components/calcite-icon/assets/calcite-icon/rainSnow24.json +1 -0
- package/dist/collection/components/calcite-icon/assets/calcite-icon/rainSnow32.json +1 -0
- package/dist/collection/components/calcite-icon/assets/calcite-icon/rainThunder16.json +1 -0
- package/dist/collection/components/calcite-icon/assets/calcite-icon/rainThunder24.json +1 -0
- package/dist/collection/components/calcite-icon/assets/calcite-icon/rainThunder32.json +1 -0
- package/dist/collection/components/calcite-icon/assets/calcite-icon/rightAlign16.json +1 -0
- package/dist/collection/components/calcite-icon/assets/calcite-icon/rightAlign24.json +1 -0
- package/dist/collection/components/calcite-icon/assets/calcite-icon/rightAlign32.json +1 -0
- package/dist/collection/components/calcite-icon/assets/calcite-icon/ringsThreshold16.json +1 -0
- package/dist/collection/components/calcite-icon/assets/calcite-icon/ringsThreshold24.json +1 -0
- package/dist/collection/components/calcite-icon/assets/calcite-icon/ringsThreshold32.json +1 -0
- package/dist/collection/components/calcite-icon/assets/calcite-icon/screenshotMode16.json +1 -0
- package/dist/collection/components/calcite-icon/assets/calcite-icon/screenshotMode24.json +1 -0
- package/dist/collection/components/calcite-icon/assets/calcite-icon/screenshotMode32.json +1 -0
- package/dist/collection/components/calcite-icon/assets/calcite-icon/selectVisible16.json +1 -0
- package/dist/collection/components/calcite-icon/assets/calcite-icon/selectVisible24.json +1 -0
- package/dist/collection/components/calcite-icon/assets/calcite-icon/selectVisible32.json +1 -0
- package/dist/collection/components/calcite-icon/assets/calcite-icon/snow16.json +1 -0
- package/dist/collection/components/calcite-icon/assets/calcite-icon/snow24.json +1 -0
- package/dist/collection/components/calcite-icon/assets/calcite-icon/snow32.json +1 -0
- package/dist/collection/components/calcite-icon/assets/calcite-icon/snowThunder16.json +1 -0
- package/dist/collection/components/calcite-icon/assets/calcite-icon/snowThunder24.json +1 -0
- package/dist/collection/components/calcite-icon/assets/calcite-icon/snowThunder32.json +1 -0
- package/dist/collection/components/calcite-icon/assets/calcite-icon/squareF16.json +1 -0
- package/dist/collection/components/calcite-icon/assets/calcite-icon/squareF24.json +1 -0
- package/dist/collection/components/calcite-icon/assets/calcite-icon/squareF32.json +1 -0
- package/dist/collection/components/calcite-icon/assets/calcite-icon/terminal16.json +1 -0
- package/dist/collection/components/calcite-icon/assets/calcite-icon/terminal24.json +1 -0
- package/dist/collection/components/calcite-icon/assets/calcite-icon/terminal32.json +1 -0
- package/dist/collection/components/calcite-icon/assets/calcite-icon/touch16.json +1 -0
- package/dist/collection/components/calcite-icon/assets/calcite-icon/touch24.json +1 -0
- package/dist/collection/components/calcite-icon/assets/calcite-icon/touch32.json +1 -0
- package/dist/collection/components/calcite-icon/assets/calcite-icon/xHexagon16.json +1 -0
- package/dist/collection/components/calcite-icon/assets/calcite-icon/xHexagon24.json +1 -0
- package/dist/collection/components/calcite-icon/assets/calcite-icon/xHexagon32.json +1 -0
- package/dist/collection/components/calcite-icon/assets/calcite-icon/xHexagonF16.json +1 -0
- package/dist/collection/components/calcite-icon/assets/calcite-icon/xHexagonF24.json +1 -0
- package/dist/collection/components/calcite-icon/assets/calcite-icon/xHexagonF32.json +1 -0
- package/dist/collection/components/calcite-icon/assets/calcite-icon/xOctagonF16.json +1 -0
- package/dist/collection/components/calcite-icon/assets/calcite-icon/xOctagonF24.json +1 -0
- package/dist/collection/components/calcite-icon/assets/calcite-icon/xOctagonF32.json +1 -0
- package/dist/collection/components/calcite-icon/calcite-icon.css +17 -15
- package/dist/collection/components/calcite-inline-editable/calcite-inline-editable.css +11 -14
- package/dist/collection/components/calcite-input/calcite-input.css +120 -268
- package/dist/collection/components/calcite-input/calcite-input.js +54 -33
- package/dist/collection/components/calcite-input-date-picker/calcite-input-date-picker.css +33 -47
- package/dist/collection/components/calcite-input-date-picker/calcite-input-date-picker.js +83 -10
- package/dist/collection/components/calcite-input-message/calcite-input-message.css +21 -33
- package/dist/collection/components/calcite-input-message/calcite-input-message.js +2 -4
- package/dist/collection/components/calcite-input-time-picker/calcite-input-time-picker.css +6 -12
- package/dist/collection/components/calcite-input-time-picker/calcite-input-time-picker.js +84 -80
- package/dist/collection/components/calcite-label/calcite-label.css +28 -42
- package/dist/collection/components/calcite-label/calcite-label.js +1 -4
- package/dist/collection/components/calcite-label/interfaces.js +1 -0
- package/dist/collection/components/calcite-link/calcite-link.css +31 -51
- package/dist/collection/components/calcite-link/calcite-link.js +1 -1
- package/dist/collection/components/calcite-list/calcite-list.css +14 -17
- package/dist/collection/components/calcite-list-item/calcite-list-item.css +28 -47
- package/dist/collection/components/calcite-list-item-group/calcite-list-item-group.css +12 -18
- package/dist/collection/components/calcite-loader/calcite-loader.css +47 -73
- package/dist/collection/components/calcite-modal/calcite-modal.css +107 -124
- package/dist/collection/components/calcite-modal/calcite-modal.js +4 -7
- package/dist/collection/components/calcite-notice/calcite-notice.css +66 -114
- package/dist/collection/components/calcite-notice/calcite-notice.js +2 -4
- package/dist/collection/components/calcite-option/calcite-option.css +6 -12
- package/dist/collection/components/calcite-option/calcite-option.js +3 -1
- package/dist/collection/components/calcite-option-group/calcite-option-group.css +6 -12
- package/dist/collection/components/calcite-pagination/calcite-pagination.css +26 -56
- package/dist/collection/components/calcite-pagination/calcite-pagination.js +2 -4
- package/dist/collection/components/calcite-panel/calcite-panel.css +64 -105
- package/dist/collection/components/calcite-panel/calcite-panel.js +10 -14
- package/dist/collection/components/calcite-panel/resources.js +1 -0
- package/dist/collection/components/calcite-pick-list/calcite-pick-list.css +21 -27
- package/dist/collection/components/calcite-pick-list/calcite-pick-list.js +12 -4
- package/dist/collection/components/calcite-pick-list/resources.js +1 -1
- package/dist/collection/components/calcite-pick-list/shared-list-logic.js +12 -2
- package/dist/collection/components/calcite-pick-list/shared-list-render.js +2 -3
- package/dist/collection/components/calcite-pick-list-group/calcite-pick-list-group.css +20 -34
- package/dist/collection/components/calcite-pick-list-group/calcite-pick-list-group.js +2 -5
- package/dist/collection/components/calcite-pick-list-item/calcite-pick-list-item.css +49 -67
- package/dist/collection/components/calcite-popover/calcite-popover.css +30 -39
- package/dist/collection/components/calcite-popover/calcite-popover.js +3 -6
- package/dist/collection/components/calcite-popover-manager/calcite-popover-manager.css +6 -12
- package/dist/collection/components/calcite-popover-manager/calcite-popover-manager.js +1 -1
- package/dist/collection/components/calcite-progress/calcite-progress.css +12 -21
- package/dist/collection/components/calcite-radio-button/calcite-radio-button.css +84 -14
- package/dist/collection/components/calcite-radio-button/calcite-radio-button.js +19 -10
- package/dist/collection/components/calcite-radio-button-group/calcite-radio-button-group.css +6 -15
- package/dist/collection/components/calcite-radio-group/calcite-radio-group.css +8 -16
- package/dist/collection/components/calcite-radio-group/calcite-radio-group.js +15 -18
- package/dist/collection/components/calcite-radio-group-item/calcite-radio-group-item.css +24 -31
- package/dist/collection/components/calcite-radio-group-item/calcite-radio-group-item.js +5 -60
- package/dist/collection/components/calcite-rating/calcite-rating.css +18 -43
- package/dist/collection/components/calcite-rating/calcite-rating.js +2 -5
- package/dist/collection/components/calcite-scrim/calcite-scrim.css +23 -31
- package/dist/collection/components/calcite-select/calcite-select.css +32 -61
- package/dist/collection/components/calcite-select/calcite-select.js +7 -8
- package/dist/collection/components/calcite-shell/calcite-shell.css +48 -44
- package/dist/collection/components/calcite-shell-center-row/calcite-shell-center-row.css +34 -46
- package/dist/collection/components/calcite-shell-center-row/calcite-shell-center-row.js +3 -5
- package/dist/collection/components/calcite-shell-panel/calcite-shell-panel.css +71 -42
- package/dist/collection/components/calcite-shell-panel/calcite-shell-panel.js +204 -6
- package/dist/collection/components/calcite-shell-panel/resources.js +5 -1
- package/dist/collection/components/calcite-slider/calcite-slider.css +167 -232
- package/dist/collection/components/calcite-slider/calcite-slider.js +65 -29
- package/dist/collection/components/calcite-sortable-list/calcite-sortable-list.css +6 -12
- package/dist/collection/components/calcite-split-button/calcite-split-button.css +16 -29
- package/dist/collection/components/calcite-split-button/calcite-split-button.js +29 -6
- package/dist/collection/components/calcite-stepper/calcite-stepper.css +13 -19
- package/dist/collection/components/calcite-stepper/calcite-stepper.js +1 -2
- package/dist/collection/components/calcite-stepper-item/calcite-stepper-item.css +56 -144
- package/dist/collection/components/calcite-stepper-item/calcite-stepper-item.js +3 -6
- package/dist/collection/components/calcite-switch/calcite-switch.css +31 -68
- package/dist/collection/components/calcite-switch/calcite-switch.js +3 -6
- package/dist/collection/components/calcite-tab/calcite-tab.css +15 -22
- package/dist/collection/components/calcite-tab-nav/calcite-tab-nav.css +18 -26
- package/dist/collection/components/calcite-tab-title/calcite-tab-title.css +56 -88
- package/dist/collection/components/calcite-tab-title/calcite-tab-title.js +5 -9
- package/dist/collection/components/calcite-tabs/calcite-tabs.css +8 -14
- package/dist/collection/components/calcite-tile/calcite-tile.css +57 -86
- package/dist/collection/components/calcite-tile-select/calcite-tile-select.css +57 -100
- package/dist/collection/components/calcite-tile-select/calcite-tile-select.js +21 -5
- package/dist/collection/components/calcite-tile-select/resources.js +20 -0
- package/dist/collection/components/calcite-tile-select-group/calcite-tile-select-group.css +6 -13
- package/dist/collection/components/calcite-time-picker/calcite-time-picker.css +62 -125
- package/dist/collection/components/calcite-time-picker/calcite-time-picker.js +263 -298
- package/dist/collection/components/calcite-time-picker/resources.js +15 -9
- package/dist/collection/components/calcite-tip/calcite-tip.css +25 -37
- package/dist/collection/components/calcite-tip-group/calcite-tip-group.css +9 -15
- package/dist/collection/components/calcite-tip-manager/calcite-tip-manager.css +41 -61
- package/dist/collection/components/calcite-tooltip/calcite-tooltip.css +17 -21
- package/dist/collection/components/calcite-tooltip/calcite-tooltip.js +1 -1
- package/dist/collection/components/calcite-tooltip-manager/calcite-tooltip-manager.css +6 -12
- package/dist/collection/components/calcite-tooltip-manager/calcite-tooltip-manager.js +2 -3
- package/dist/collection/components/calcite-tree/calcite-tree.css +6 -12
- package/dist/collection/components/calcite-tree-item/calcite-tree-item.css +31 -63
- package/dist/collection/components/calcite-tree-item/calcite-tree-item.js +1 -3
- package/dist/collection/components/calcite-value-list/calcite-value-list.css +22 -26
- package/dist/collection/components/calcite-value-list/calcite-value-list.js +22 -8
- package/dist/collection/components/calcite-value-list-item/calcite-value-list-item.css +27 -34
- package/dist/collection/components/functional/CalciteExpandToggle.js +1 -1
- package/dist/collection/demos/_assets/demo-form.js +23 -0
- package/dist/collection/demos/_assets/demo-template.js +13 -0
- package/dist/collection/demos/_assets/head.js +45 -0
- package/dist/collection/demos/_assets/locales.js +223 -0
- package/dist/collection/utils/conditionalSlot.js +26 -0
- package/dist/collection/utils/dom.js +39 -9
- package/dist/collection/utils/interactive.js +20 -0
- package/dist/collection/utils/key.js +0 -23
- package/dist/collection/utils/label.js +4 -1
- package/dist/collection/utils/locale.js +43 -38
- package/dist/collection/utils/number.js +52 -19
- package/dist/collection/utils/time.js +144 -36
- package/dist/components/CalciteExpandToggle.js +1 -1
- package/dist/components/calcite-accordion-item.js +2 -3
- package/dist/components/calcite-accordion.js +2 -3
- package/dist/components/calcite-action-bar.js +26 -2
- package/dist/components/calcite-action-group2.js +1 -1
- package/dist/components/calcite-action-menu2.js +1 -1
- package/dist/components/calcite-action-pad.js +3 -8
- package/dist/components/calcite-action2.js +1 -1
- package/dist/components/calcite-alert.js +27 -13
- package/dist/components/calcite-avatar.js +4 -5
- package/dist/components/calcite-block-section.js +3 -3
- package/dist/components/calcite-block.js +7 -3
- package/dist/components/calcite-button2.js +11 -6
- package/dist/components/calcite-card.js +3 -6
- package/dist/components/calcite-checkbox2.js +2 -2
- package/dist/components/calcite-chip2.js +4 -5
- package/dist/components/calcite-color-picker-hex-input2.js +5 -7
- package/dist/components/calcite-color-picker-swatch2.js +23 -15
- package/dist/components/calcite-color-picker.js +9 -12
- package/dist/components/calcite-combobox-item-group.js +3 -4
- package/dist/components/calcite-combobox-item.js +2 -4
- package/dist/components/calcite-combobox.js +8 -9
- package/dist/components/calcite-date-picker-day2.js +2 -3
- package/dist/components/calcite-date-picker-month-header2.js +9 -11
- package/dist/components/calcite-date-picker-month2.js +7 -10
- package/dist/components/calcite-date-picker2.js +34 -19
- package/dist/components/calcite-dropdown-group.js +3 -4
- package/dist/components/calcite-dropdown-item.js +5 -8
- package/dist/components/calcite-dropdown2.js +19 -19
- package/dist/components/calcite-fab.js +4 -5
- package/dist/components/calcite-filter2.js +4 -20
- package/dist/components/calcite-flow.js +1 -1
- package/dist/components/calcite-graph2.js +1 -1
- package/dist/components/calcite-handle2.js +1 -1
- package/dist/components/calcite-icon2.js +1 -1
- package/dist/components/calcite-inline-editable.js +1 -1
- package/dist/components/calcite-input-date-picker.js +28 -11
- package/dist/components/calcite-input-message.js +3 -4
- package/dist/components/calcite-input-time-picker.js +54 -52
- package/dist/components/calcite-input2.js +53 -33
- package/dist/components/calcite-label2.js +2 -4
- package/dist/components/calcite-link2.js +2 -2
- package/dist/components/calcite-list-item-group.js +1 -1
- package/dist/components/calcite-list-item.js +1 -1
- package/dist/components/calcite-list.js +1 -1
- package/dist/components/calcite-loader2.js +1 -1
- package/dist/components/calcite-modal.js +5 -7
- package/dist/components/calcite-notice.js +3 -4
- package/dist/components/calcite-option-group.js +1 -1
- package/dist/components/calcite-option.js +4 -2
- package/dist/components/calcite-pagination.js +3 -5
- package/dist/components/calcite-panel.js +10 -13
- package/dist/components/calcite-pick-list-group.js +3 -5
- package/dist/components/calcite-pick-list-item2.js +1 -1
- package/dist/components/calcite-pick-list.js +3 -2
- package/dist/components/calcite-popover-manager.js +2 -2
- package/dist/components/calcite-popover2.js +4 -6
- package/dist/components/calcite-progress2.js +1 -1
- package/dist/components/calcite-radio-button-group.js +1 -1
- package/dist/components/calcite-radio-button.js +19 -15
- package/dist/components/calcite-radio-group-item.js +6 -59
- package/dist/components/calcite-radio-group.js +16 -19
- package/dist/components/calcite-rating.js +2 -4
- package/dist/components/calcite-scrim2.js +1 -1
- package/dist/components/calcite-select.js +7 -7
- package/dist/components/calcite-shell-center-row.js +4 -5
- package/dist/components/calcite-shell-panel.js +171 -8
- package/dist/components/calcite-shell.js +1 -1
- package/dist/components/calcite-slider.js +24 -11
- package/dist/components/calcite-sortable-list.js +1 -1
- package/dist/components/calcite-split-button.js +5 -4
- package/dist/components/calcite-stepper-item.js +4 -6
- package/dist/components/calcite-stepper.js +2 -3
- package/dist/components/calcite-switch2.js +4 -6
- package/dist/components/calcite-tab-nav2.js +1 -1
- package/dist/components/calcite-tab-title2.js +6 -9
- package/dist/components/calcite-tab2.js +1 -1
- package/dist/components/calcite-tabs2.js +1 -1
- package/dist/components/calcite-tile-select-group.js +1 -1
- package/dist/components/calcite-tile-select.js +37 -4
- package/dist/components/calcite-tile2.js +1 -1
- package/dist/components/calcite-time-picker2.js +328 -196
- 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-manager2.js +3 -4
- package/dist/components/calcite-tooltip.js +2 -2
- package/dist/components/calcite-tree-item.js +2 -4
- package/dist/components/calcite-tree.js +1 -1
- package/dist/components/calcite-value-list-item.js +1 -1
- package/dist/components/calcite-value-list.js +11 -4
- package/dist/components/dom.js +39 -9
- package/dist/components/label.js +4 -1
- package/dist/components/locale.js +43 -38
- package/dist/components/number.js +57 -21
- package/dist/components/popper.js +117 -72
- package/dist/components/resources3.js +1 -1
- package/dist/components/shared-list-render.js +16 -6
- package/dist/custom-elements/index.d.ts +0 -6
- package/dist/custom-elements/index.js +1613 -1196
- package/dist/esm/{CalciteExpandToggle-677f2f8b.js → CalciteExpandToggle-48b6e955.js} +2 -2
- package/dist/esm/calcite-accordion_2.entry.js +5 -6
- package/dist/esm/calcite-action-bar.entry.js +28 -4
- package/dist/esm/calcite-action-group.entry.js +2 -2
- package/dist/esm/calcite-action-menu.entry.js +2 -2
- package/dist/esm/calcite-action-pad.entry.js +4 -9
- package/dist/esm/calcite-action.entry.js +1 -1
- package/dist/esm/calcite-alert.entry.js +26 -13
- package/dist/esm/calcite-avatar.entry.js +4 -5
- package/dist/esm/calcite-block_2.entry.js +10 -6
- package/dist/esm/calcite-button.entry.js +12 -7
- package/dist/esm/calcite-card.entry.js +3 -7
- package/dist/esm/calcite-checkbox.entry.js +5 -5
- package/dist/esm/calcite-chip.entry.js +4 -5
- package/dist/esm/calcite-color-picker_3.entry.js +36 -32
- package/dist/esm/calcite-combobox_3.entry.js +15 -18
- package/dist/esm/calcite-date-picker_4.entry.js +50 -38
- package/dist/esm/calcite-dropdown_3.entry.js +26 -29
- package/dist/esm/calcite-fab.entry.js +4 -5
- package/dist/esm/calcite-filter.entry.js +4 -19
- package/dist/esm/calcite-flow.entry.js +1 -1
- package/dist/esm/calcite-graph_2.entry.js +27 -15
- package/dist/esm/calcite-handle.entry.js +1 -1
- package/dist/esm/calcite-icon.entry.js +2 -2
- package/dist/esm/calcite-inline-editable.entry.js +3 -3
- package/dist/esm/calcite-input-date-picker.entry.js +31 -14
- package/dist/esm/calcite-input-message.entry.js +3 -4
- package/dist/esm/calcite-input-time-picker_2.entry.js +363 -238
- package/dist/esm/calcite-input.entry.js +57 -37
- package/dist/esm/calcite-label.entry.js +2 -5
- package/dist/esm/calcite-link.entry.js +3 -3
- package/dist/esm/calcite-list_3.entry.js +4 -4
- package/dist/esm/calcite-loader.entry.js +1 -1
- package/dist/esm/calcite-modal.entry.js +5 -7
- package/dist/esm/calcite-notice.entry.js +3 -4
- package/dist/esm/calcite-option_3.entry.js +14 -12
- package/dist/esm/calcite-pagination.entry.js +3 -6
- package/dist/esm/calcite-panel.entry.js +10 -13
- package/dist/esm/calcite-pick-list_3.entry.js +7 -8
- package/dist/esm/calcite-popover_2.entry.js +7 -9
- package/dist/esm/calcite-progress.entry.js +1 -1
- package/dist/esm/calcite-radio-button-group.entry.js +1 -1
- package/dist/esm/{calcite-radio_2.entry.js → calcite-radio-button.entry.js} +23 -53
- package/dist/esm/calcite-radio-group_2.entry.js +23 -78
- package/dist/esm/calcite-rating.entry.js +5 -6
- package/dist/esm/calcite-scrim.entry.js +1 -1
- package/dist/esm/calcite-shell_3.entry.js +171 -12
- package/dist/esm/calcite-sortable-list.entry.js +1 -1
- package/dist/esm/calcite-split-button.entry.js +4 -5
- package/dist/esm/calcite-stepper_2.entry.js +6 -8
- package/dist/esm/calcite-switch.entry.js +6 -8
- package/dist/esm/calcite-tab_4.entry.js +9 -12
- package/dist/esm/calcite-tile-select_2.entry.js +38 -5
- package/dist/esm/calcite-tile.entry.js +2 -2
- package/dist/esm/calcite-tip_3.entry.js +4 -4
- package/dist/esm/calcite-tooltip_2.entry.js +7 -8
- package/dist/esm/calcite-tree_2.entry.js +4 -6
- package/dist/esm/calcite-value-list_2.entry.js +13 -6
- package/dist/esm/calcite.js +2 -2
- package/dist/esm/{dom-f24e866c.js → dom-037dc374.js} +39 -9
- package/dist/esm/{form-160b0fb5.js → form-72369b73.js} +1 -1
- package/dist/esm/{label-5559055d.js → label-712646d2.js} +5 -2
- package/dist/esm/loader.js +2 -2
- package/dist/esm/locale-fc850b7c.js +123 -0
- package/dist/esm/number-8779395f.js +76 -0
- package/dist/esm/{popper-dc4b45cf.js → popper-7a7fd3b5.js} +118 -73
- package/dist/esm/{resources-16a2a25a.js → resources-03c0a433.js} +17 -7
- package/dist/esm/{resources-bece7a88.js → resources-90193940.js} +3 -2
- package/dist/esm-es5/CalciteExpandToggle-48b6e955.js +5 -0
- package/dist/esm-es5/calcite-accordion_2.entry.js +1 -1
- package/dist/esm-es5/calcite-action-bar.entry.js +2 -2
- package/dist/esm-es5/calcite-action-group.entry.js +1 -1
- package/dist/esm-es5/calcite-action-menu.entry.js +2 -2
- package/dist/esm-es5/calcite-action-pad.entry.js +1 -1
- 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 +1 -1
- package/dist/esm-es5/calcite-block_2.entry.js +1 -1
- package/dist/esm-es5/calcite-button.entry.js +1 -1
- package/dist/esm-es5/calcite-card.entry.js +1 -1
- package/dist/esm-es5/calcite-checkbox.entry.js +2 -2
- package/dist/esm-es5/calcite-chip.entry.js +2 -2
- package/dist/esm-es5/calcite-color-picker_3.entry.js +1 -1
- package/dist/esm-es5/calcite-combobox_3.entry.js +2 -2
- package/dist/esm-es5/calcite-date-picker_4.entry.js +1 -1
- package/dist/esm-es5/calcite-dropdown_3.entry.js +2 -2
- package/dist/esm-es5/calcite-fab.entry.js +2 -2
- package/dist/esm-es5/calcite-filter.entry.js +2 -2
- package/dist/esm-es5/calcite-flow.entry.js +2 -2
- package/dist/esm-es5/calcite-graph_2.entry.js +2 -2
- package/dist/esm-es5/calcite-handle.entry.js +2 -2
- package/dist/esm-es5/calcite-icon.entry.js +2 -2
- package/dist/esm-es5/calcite-inline-editable.entry.js +2 -2
- package/dist/esm-es5/calcite-input-date-picker.entry.js +2 -2
- package/dist/esm-es5/calcite-input-message.entry.js +1 -1
- 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 +1 -1
- 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 +1 -1
- package/dist/esm-es5/calcite-modal.entry.js +2 -2
- package/dist/esm-es5/calcite-notice.entry.js +2 -2
- package/dist/esm-es5/calcite-option_3.entry.js +2 -2
- package/dist/esm-es5/calcite-pagination.entry.js +1 -1
- package/dist/esm-es5/calcite-panel.entry.js +1 -1
- 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 +1 -1
- package/dist/esm-es5/calcite-radio-button-group.entry.js +1 -1
- package/dist/esm-es5/calcite-radio-button.entry.js +5 -0
- 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 +1 -1
- package/dist/esm-es5/calcite-shell_3.entry.js +1 -1
- package/dist/esm-es5/calcite-sortable-list.entry.js +1 -1
- package/dist/esm-es5/calcite-split-button.entry.js +1 -1
- 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 +1 -1
- package/dist/esm-es5/calcite-tile-select_2.entry.js +2 -2
- package/dist/esm-es5/calcite-tile.entry.js +1 -1
- 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 +1 -1
- package/dist/esm-es5/calcite-value-list_2.entry.js +2 -2
- package/dist/esm-es5/calcite.js +1 -1
- package/dist/esm-es5/dom-037dc374.js +5 -0
- package/dist/esm-es5/{form-160b0fb5.js → form-72369b73.js} +1 -1
- package/dist/esm-es5/label-712646d2.js +5 -0
- package/dist/esm-es5/loader.js +1 -1
- package/dist/esm-es5/locale-fc850b7c.js +5 -0
- package/dist/esm-es5/number-8779395f.js +5 -0
- package/dist/esm-es5/popper-7a7fd3b5.js +5 -0
- package/dist/esm-es5/resources-03c0a433.js +5 -0
- package/dist/esm-es5/{resources-bece7a88.js → resources-90193940.js} +1 -1
- package/dist/extras/docs-json.json +265 -251
- package/dist/types/components/calcite-accordion/calcite-accordion.d.ts +1 -1
- package/dist/types/components/calcite-accordion-item/calcite-accordion-item.d.ts +1 -1
- package/dist/types/components/calcite-action-bar/calcite-action-bar.d.ts +2 -1
- package/dist/types/components/calcite-alert/calcite-alert.d.ts +8 -3
- package/dist/types/components/calcite-alert/interfaces.d.ts +1 -0
- package/dist/types/components/calcite-block/calcite-block.d.ts +1 -0
- package/dist/types/components/calcite-button/resources.d.ts +2 -0
- package/dist/types/components/calcite-color-picker/calcite-color-picker.d.ts +1 -1
- package/dist/types/components/calcite-date-picker/calcite-date-picker.d.ts +6 -0
- package/dist/types/components/calcite-date-picker/resources.d.ts +1 -0
- package/dist/types/components/calcite-date-picker-month-header/calcite-date-picker-month-header.d.ts +3 -1
- package/dist/types/components/calcite-filter/calcite-filter.d.ts +1 -10
- package/dist/types/components/calcite-input-date-picker/calcite-input-date-picker.d.ts +15 -0
- package/dist/types/components/calcite-input-time-picker/calcite-input-time-picker.d.ts +13 -5
- package/dist/types/components/calcite-panel/calcite-panel.d.ts +1 -1
- package/dist/types/components/calcite-panel/resources.d.ts +1 -0
- package/dist/types/components/calcite-pick-list/calcite-pick-list.d.ts +2 -1
- package/dist/types/components/calcite-pick-list/shared-list-logic.d.ts +1 -0
- package/dist/types/components/calcite-pick-list/shared-list-render.d.ts +2 -2
- package/dist/types/components/calcite-radio-button/calcite-radio-button.d.ts +1 -0
- package/dist/types/components/calcite-radio-group/calcite-radio-group.d.ts +1 -2
- package/dist/types/components/calcite-radio-group-item/calcite-radio-group-item.d.ts +0 -8
- package/dist/types/components/calcite-select/calcite-select.d.ts +1 -2
- package/dist/types/components/calcite-shell-panel/calcite-shell-panel.d.ts +31 -0
- package/dist/types/components/calcite-shell-panel/resources.d.ts +4 -0
- package/dist/types/components/calcite-slider/calcite-slider.d.ts +5 -0
- package/dist/types/components/calcite-split-button/calcite-split-button.d.ts +3 -0
- package/dist/types/components/calcite-tile-select/resources.d.ts +16 -0
- package/dist/types/components/calcite-time-picker/calcite-time-picker.d.ts +36 -24
- package/dist/types/components/calcite-time-picker/resources.d.ts +14 -8
- package/dist/types/components/calcite-value-list/calcite-value-list.d.ts +4 -2
- package/dist/types/components.d.ts +103 -114
- package/dist/types/preact.d.ts +2 -3
- package/dist/types/stencil-public-runtime.d.ts +6 -4
- package/dist/types/utils/conditionalSlot.d.ts +17 -0
- package/dist/types/utils/dom.d.ts +20 -3
- package/dist/types/utils/key.d.ts +0 -4
- package/dist/types/utils/label.d.ts +4 -0
- package/dist/types/utils/number.d.ts +4 -1
- package/dist/types/utils/time.d.ts +18 -5
- package/hydrate/index.js +1643 -1219
- package/package.json +37 -36
- package/readme.md +2 -2
- package/CHANGELOG.md +0 -1540
- package/dist/calcite/p-004460a0.system.entry.js +0 -5
- package/dist/calcite/p-044d603d.system.entry.js +0 -5
- package/dist/calcite/p-047e1000.system.entry.js +0 -5
- package/dist/calcite/p-05da7439.entry.js +0 -5
- package/dist/calcite/p-08d707c4.entry.js +0 -5
- package/dist/calcite/p-10708f87.system.entry.js +0 -5
- package/dist/calcite/p-109049e6.system.entry.js +0 -5
- package/dist/calcite/p-127e3513.system.entry.js +0 -5
- package/dist/calcite/p-15f3a0d7.system.entry.js +0 -5
- package/dist/calcite/p-16bb48f6.system.entry.js +0 -5
- package/dist/calcite/p-16f2d814.system.entry.js +0 -5
- package/dist/calcite/p-1942876c.js +0 -5
- package/dist/calcite/p-1a962bdd.js +0 -5
- package/dist/calcite/p-1aa89347.system.entry.js +0 -5
- package/dist/calcite/p-1c8fe17f.system.entry.js +0 -5
- package/dist/calcite/p-1dd440e6.system.entry.js +0 -5
- package/dist/calcite/p-243d95ab.system.entry.js +0 -5
- package/dist/calcite/p-289bc56f.entry.js +0 -5
- package/dist/calcite/p-29771742.entry.js +0 -5
- package/dist/calcite/p-2a714a22.entry.js +0 -5
- package/dist/calcite/p-2aa3007a.entry.js +0 -5
- package/dist/calcite/p-33226317.entry.js +0 -5
- package/dist/calcite/p-33802886.entry.js +0 -5
- package/dist/calcite/p-38bd222a.entry.js +0 -5
- package/dist/calcite/p-3a592bf3.system.entry.js +0 -5
- package/dist/calcite/p-3dae9da3.js +0 -5
- package/dist/calcite/p-3e6fcede.entry.js +0 -5
- package/dist/calcite/p-4035444d.system.js +0 -5
- package/dist/calcite/p-4778c5cf.system.entry.js +0 -5
- package/dist/calcite/p-4acfb654.entry.js +0 -5
- package/dist/calcite/p-4d11efdb.system.entry.js +0 -5
- package/dist/calcite/p-4e16515a.system.entry.js +0 -5
- package/dist/calcite/p-4f1f83d2.entry.js +0 -5
- package/dist/calcite/p-502ea583.entry.js +0 -5
- package/dist/calcite/p-52cc870b.js +0 -5
- package/dist/calcite/p-54394dfe.system.entry.js +0 -5
- package/dist/calcite/p-56b352bf.system.js +0 -5
- package/dist/calcite/p-578509a8.entry.js +0 -5
- package/dist/calcite/p-592da79d.system.entry.js +0 -5
- package/dist/calcite/p-59a285d8.system.entry.js +0 -5
- package/dist/calcite/p-5c0c29bc.entry.js +0 -5
- package/dist/calcite/p-5eee672a.system.entry.js +0 -5
- package/dist/calcite/p-5efd81e1.entry.js +0 -5
- package/dist/calcite/p-5f2a9710.system.entry.js +0 -5
- package/dist/calcite/p-5f817b79.entry.js +0 -5
- package/dist/calcite/p-6296644b.entry.js +0 -5
- package/dist/calcite/p-63da2e34.system.entry.js +0 -5
- package/dist/calcite/p-63e60894.entry.js +0 -5
- package/dist/calcite/p-6484ffb7.system.entry.js +0 -5
- package/dist/calcite/p-659898bf.entry.js +0 -5
- package/dist/calcite/p-6cc23c39.system.js +0 -5
- package/dist/calcite/p-72563742.js +0 -5
- package/dist/calcite/p-74f390e1.system.entry.js +0 -5
- package/dist/calcite/p-75264173.entry.js +0 -5
- package/dist/calcite/p-75955cef.entry.js +0 -5
- package/dist/calcite/p-765fb8ed.entry.js +0 -5
- package/dist/calcite/p-7ba971b5.system.entry.js +0 -5
- package/dist/calcite/p-7cbc72b6.system.entry.js +0 -5
- package/dist/calcite/p-81ab443c.entry.js +0 -5
- package/dist/calcite/p-82c6cd9a.entry.js +0 -5
- package/dist/calcite/p-840f2937.system.entry.js +0 -5
- package/dist/calcite/p-8445bc9c.system.entry.js +0 -5
- package/dist/calcite/p-85032edc.system.entry.js +0 -5
- package/dist/calcite/p-8603b2e1.entry.js +0 -5
- package/dist/calcite/p-8b2ead09.system.entry.js +0 -5
- package/dist/calcite/p-8baa9ba4.entry.js +0 -5
- package/dist/calcite/p-8e252799.system.js +0 -5
- package/dist/calcite/p-8fef13ca.system.entry.js +0 -5
- package/dist/calcite/p-91645bf7.system.js +0 -5
- package/dist/calcite/p-9338b0bc.entry.js +0 -5
- package/dist/calcite/p-9577dfd9.entry.js +0 -5
- package/dist/calcite/p-95b9a0f2.system.entry.js +0 -5
- package/dist/calcite/p-968ea270.entry.js +0 -5
- package/dist/calcite/p-9abbbcbd.system.entry.js +0 -5
- package/dist/calcite/p-9be6633a.entry.js +0 -5
- package/dist/calcite/p-a5269f14.system.entry.js +0 -5
- package/dist/calcite/p-a61d85db.system.entry.js +0 -5
- package/dist/calcite/p-a8dc2982.system.entry.js +0 -5
- package/dist/calcite/p-aa47308a.entry.js +0 -5
- package/dist/calcite/p-ace12b8d.entry.js +0 -5
- package/dist/calcite/p-aced5f01.entry.js +0 -5
- package/dist/calcite/p-aec398f3.system.entry.js +0 -5
- package/dist/calcite/p-b1351c3e.system.entry.js +0 -5
- package/dist/calcite/p-b1a96c72.system.entry.js +0 -5
- package/dist/calcite/p-b1f88d45.system.js +0 -5
- package/dist/calcite/p-b2ab0485.js +0 -5
- package/dist/calcite/p-b4b1081f.system.entry.js +0 -5
- package/dist/calcite/p-b94bf8ac.system.entry.js +0 -5
- package/dist/calcite/p-c0e35328.entry.js +0 -5
- package/dist/calcite/p-c34c4414.system.js +0 -5
- package/dist/calcite/p-c3ba61ea.entry.js +0 -5
- package/dist/calcite/p-c4cb4fab.system.entry.js +0 -5
- package/dist/calcite/p-c61ebee9.entry.js +0 -5
- package/dist/calcite/p-c87c04a9.entry.js +0 -5
- package/dist/calcite/p-ca3bb147.entry.js +0 -5
- package/dist/calcite/p-cbe9f1a2.system.entry.js +0 -5
- package/dist/calcite/p-cbf6bb04.system.js +0 -5
- package/dist/calcite/p-cc788d2e.entry.js +0 -5
- package/dist/calcite/p-cced5508.system.entry.js +0 -5
- package/dist/calcite/p-cf03b144.system.entry.js +0 -5
- package/dist/calcite/p-d53cc958.js +0 -5
- package/dist/calcite/p-d550ee4d.entry.js +0 -5
- package/dist/calcite/p-d6e30c54.entry.js +0 -5
- package/dist/calcite/p-dbe899c6.system.entry.js +0 -5
- package/dist/calcite/p-dd464e44.system.entry.js +0 -5
- package/dist/calcite/p-deb36fde.system.entry.js +0 -5
- package/dist/calcite/p-defcee80.system.entry.js +0 -5
- package/dist/calcite/p-dff7dc90.system.js +0 -5
- package/dist/calcite/p-e33fe285.system.entry.js +0 -5
- package/dist/calcite/p-e52495d3.system.entry.js +0 -5
- package/dist/calcite/p-e5e3b591.entry.js +0 -5
- package/dist/calcite/p-e616f9b5.entry.js +0 -5
- package/dist/calcite/p-e6d05ad6.system.entry.js +0 -5
- package/dist/calcite/p-e70cb594.system.entry.js +0 -5
- package/dist/calcite/p-eada9cef.entry.js +0 -5
- package/dist/calcite/p-ecc00ef0.entry.js +0 -5
- package/dist/calcite/p-ed15771f.system.entry.js +0 -5
- package/dist/calcite/p-ed453bfb.entry.js +0 -5
- package/dist/calcite/p-ef39847e.entry.js +0 -5
- package/dist/calcite/p-efb2169a.entry.js +0 -5
- package/dist/calcite/p-f0338acf.system.entry.js +0 -5
- package/dist/calcite/p-f07d3627.js +0 -5
- package/dist/calcite/p-f1c5e7cf.entry.js +0 -5
- package/dist/calcite/p-f278dd53.entry.js +0 -5
- package/dist/calcite/p-f9c46578.entry.js +0 -5
- package/dist/calcite/p-fc47547f.system.entry.js +0 -5
- package/dist/calcite/p-fc643963.entry.js +0 -5
- package/dist/cjs/key-8bfb93ec.js +0 -37
- package/dist/cjs/locale-69dc9583.js +0 -123
- package/dist/cjs/number-e6448e15.js +0 -45
- package/dist/collection/components/calcite-radio/calcite-radio.css +0 -162
- package/dist/collection/components/calcite-radio/calcite-radio.js +0 -169
- package/dist/components/calcite-radio.d.ts +0 -11
- package/dist/components/calcite-radio.js +0 -10
- package/dist/components/calcite-radio2.js +0 -71
- package/dist/components/key.js +0 -33
- package/dist/esm/key-69001a68.js +0 -33
- package/dist/esm/locale-6c1b85c7.js +0 -118
- package/dist/esm/number-e7393766.js +0 -40
- package/dist/esm-es5/CalciteExpandToggle-677f2f8b.js +0 -5
- package/dist/esm-es5/calcite-radio_2.entry.js +0 -5
- package/dist/esm-es5/dom-f24e866c.js +0 -5
- package/dist/esm-es5/key-69001a68.js +0 -5
- package/dist/esm-es5/label-5559055d.js +0 -5
- package/dist/esm-es5/locale-6c1b85c7.js +0 -5
- package/dist/esm-es5/number-e7393766.js +0 -5
- package/dist/esm-es5/popper-dc4b45cf.js +0 -5
- package/dist/esm-es5/resources-16a2a25a.js +0 -5
- package/dist/types/components/calcite-radio/calcite-radio.d.ts +0 -22
|
@@ -2,11 +2,14 @@
|
|
|
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
4
|
*/
|
|
5
|
-
import { Component, Element,
|
|
6
|
-
import {
|
|
5
|
+
import { Component, Element, h, Prop, Event, Watch, State, Listen, Method } from "@stencil/core";
|
|
6
|
+
import { isActivationKey, numberKeys } from "../../utils/key";
|
|
7
7
|
import { isValidNumber } from "../../utils/number";
|
|
8
|
-
import { formatTimePart, maxTenthForMinuteAndSecond, getMeridiem,
|
|
8
|
+
import { formatTimePart, maxTenthForMinuteAndSecond, getMeridiem, isValidTime, localizeTimeStringToParts, parseTimeString, localizeTimePart, getLocaleHourCycle } from "../../utils/time";
|
|
9
9
|
import { CSS, TEXT } from "./resources";
|
|
10
|
+
function capitalize(str) {
|
|
11
|
+
return str.charAt(0).toUpperCase() + str.slice(1);
|
|
12
|
+
}
|
|
10
13
|
export class CalciteTimePicker {
|
|
11
14
|
constructor() {
|
|
12
15
|
//--------------------------------------------------------------------------
|
|
@@ -14,10 +17,6 @@ export class CalciteTimePicker {
|
|
|
14
17
|
// Properties
|
|
15
18
|
//
|
|
16
19
|
//--------------------------------------------------------------------------
|
|
17
|
-
/** The hour value (24-hour format) */
|
|
18
|
-
this.hour = null;
|
|
19
|
-
/** Format of the hour value (12-hour or 24-hour) (this will be replaced by locale eventually) */
|
|
20
|
-
this.hourDisplayFormat = "12";
|
|
21
20
|
/** aria-label for the hour input
|
|
22
21
|
* @default "Hour"
|
|
23
22
|
*/
|
|
@@ -66,35 +65,25 @@ export class CalciteTimePicker {
|
|
|
66
65
|
* @default "Increase second"
|
|
67
66
|
*/
|
|
68
67
|
this.intlSecondUp = TEXT.secondUp;
|
|
69
|
-
/**
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
68
|
+
/**
|
|
69
|
+
* BCP 47 language tag for desired language and country format
|
|
70
|
+
* @internal
|
|
71
|
+
*/
|
|
72
|
+
this.locale = document.documentElement.lang || navigator.language || "en";
|
|
73
73
|
/** The scale (size) of the time picker */
|
|
74
74
|
this.scale = "m";
|
|
75
|
-
/** number that specifies the granularity that the value must adhere to */
|
|
75
|
+
/** number (seconds) that specifies the granularity that the value must adhere to */
|
|
76
76
|
this.step = 60;
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
// State
|
|
81
|
-
//
|
|
82
|
-
// --------------------------------------------------------------------------
|
|
83
|
-
/** The am/pm value */
|
|
84
|
-
this.meridiem = null;
|
|
85
|
-
this.displayHour = this.getDisplayHour();
|
|
86
|
-
// --------------------------------------------------------------------------
|
|
87
|
-
//
|
|
88
|
-
// Private Methods
|
|
89
|
-
//
|
|
90
|
-
// --------------------------------------------------------------------------
|
|
77
|
+
/** The selected time in UTC (always 24-hour format) */
|
|
78
|
+
this.value = null;
|
|
79
|
+
this.showSecond = this.step < 60;
|
|
91
80
|
this.decrementHour = () => {
|
|
92
81
|
const newHour = !this.hour ? 0 : this.hour === "00" ? 23 : parseInt(this.hour) - 1;
|
|
93
|
-
this.
|
|
82
|
+
this.setValuePart("hour", newHour);
|
|
94
83
|
};
|
|
95
84
|
this.decrementMeridiem = () => {
|
|
96
85
|
const newMeridiem = this.meridiem === "PM" ? "AM" : "PM";
|
|
97
|
-
this.
|
|
86
|
+
this.setValuePart("meridiem", newMeridiem);
|
|
98
87
|
};
|
|
99
88
|
this.decrementMinuteOrSecond = (key) => {
|
|
100
89
|
let newValue;
|
|
@@ -105,7 +94,7 @@ export class CalciteTimePicker {
|
|
|
105
94
|
else {
|
|
106
95
|
newValue = 59;
|
|
107
96
|
}
|
|
108
|
-
this.
|
|
97
|
+
this.setValuePart(key, newValue);
|
|
109
98
|
};
|
|
110
99
|
this.decrementMinute = () => {
|
|
111
100
|
this.decrementMinuteOrSecond("minute");
|
|
@@ -122,12 +111,12 @@ export class CalciteTimePicker {
|
|
|
122
111
|
}
|
|
123
112
|
};
|
|
124
113
|
this.hourKeyDownHandler = (event) => {
|
|
125
|
-
const key =
|
|
114
|
+
const key = event.key;
|
|
126
115
|
if (numberKeys.includes(key)) {
|
|
127
116
|
const keyAsNumber = parseInt(key);
|
|
128
117
|
let newHour;
|
|
129
118
|
if (isValidNumber(this.hour)) {
|
|
130
|
-
switch (this.
|
|
119
|
+
switch (this.hourCycle) {
|
|
131
120
|
case "12":
|
|
132
121
|
newHour =
|
|
133
122
|
this.hour === "01" && keyAsNumber >= 0 && keyAsNumber <= 2
|
|
@@ -150,13 +139,13 @@ export class CalciteTimePicker {
|
|
|
150
139
|
else {
|
|
151
140
|
newHour = keyAsNumber;
|
|
152
141
|
}
|
|
153
|
-
this.
|
|
142
|
+
this.setValuePart("hour", newHour);
|
|
154
143
|
}
|
|
155
144
|
else {
|
|
156
145
|
switch (key) {
|
|
157
146
|
case "Backspace":
|
|
158
147
|
case "Delete":
|
|
159
|
-
this.
|
|
148
|
+
this.setValuePart("hour", null);
|
|
160
149
|
break;
|
|
161
150
|
case "ArrowDown":
|
|
162
151
|
event.preventDefault();
|
|
@@ -180,7 +169,7 @@ export class CalciteTimePicker {
|
|
|
180
169
|
};
|
|
181
170
|
this.incrementMeridiem = () => {
|
|
182
171
|
const newMeridiem = this.meridiem === "AM" ? "PM" : "AM";
|
|
183
|
-
this.
|
|
172
|
+
this.setValuePart("meridiem", newMeridiem);
|
|
184
173
|
};
|
|
185
174
|
this.incrementHour = () => {
|
|
186
175
|
const newHour = isValidNumber(this.hour)
|
|
@@ -188,7 +177,7 @@ export class CalciteTimePicker {
|
|
|
188
177
|
? 0
|
|
189
178
|
: parseInt(this.hour) + 1
|
|
190
179
|
: 1;
|
|
191
|
-
this.
|
|
180
|
+
this.setValuePart("hour", newHour);
|
|
192
181
|
};
|
|
193
182
|
this.incrementMinuteOrSecond = (key) => {
|
|
194
183
|
const newValue = isValidNumber(this[key])
|
|
@@ -196,7 +185,7 @@ export class CalciteTimePicker {
|
|
|
196
185
|
? 0
|
|
197
186
|
: parseInt(this[key]) + 1
|
|
198
187
|
: 0;
|
|
199
|
-
this.
|
|
188
|
+
this.setValuePart(key, newValue);
|
|
200
189
|
};
|
|
201
190
|
this.incrementMinute = () => {
|
|
202
191
|
this.incrementMinuteOrSecond("minute");
|
|
@@ -210,16 +199,16 @@ export class CalciteTimePicker {
|
|
|
210
199
|
}
|
|
211
200
|
};
|
|
212
201
|
this.meridiemKeyDownHandler = (event) => {
|
|
213
|
-
switch (
|
|
202
|
+
switch (event.key) {
|
|
214
203
|
case "a":
|
|
215
|
-
this.
|
|
204
|
+
this.setValuePart("meridiem", "AM");
|
|
216
205
|
break;
|
|
217
206
|
case "p":
|
|
218
|
-
this.
|
|
207
|
+
this.setValuePart("meridiem", "PM");
|
|
219
208
|
break;
|
|
220
209
|
case "Backspace":
|
|
221
210
|
case "Delete":
|
|
222
|
-
this.
|
|
211
|
+
this.setValuePart("meridiem", null);
|
|
223
212
|
break;
|
|
224
213
|
case "ArrowUp":
|
|
225
214
|
event.preventDefault();
|
|
@@ -246,7 +235,7 @@ export class CalciteTimePicker {
|
|
|
246
235
|
}
|
|
247
236
|
};
|
|
248
237
|
this.minuteKeyDownHandler = (event) => {
|
|
249
|
-
const key =
|
|
238
|
+
const key = event.key;
|
|
250
239
|
if (numberKeys.includes(key)) {
|
|
251
240
|
const keyAsNumber = parseInt(key);
|
|
252
241
|
let newMinute;
|
|
@@ -260,13 +249,13 @@ export class CalciteTimePicker {
|
|
|
260
249
|
else {
|
|
261
250
|
newMinute = keyAsNumber;
|
|
262
251
|
}
|
|
263
|
-
this.
|
|
252
|
+
this.setValuePart("minute", newMinute);
|
|
264
253
|
}
|
|
265
254
|
else {
|
|
266
255
|
switch (key) {
|
|
267
256
|
case "Backspace":
|
|
268
257
|
case "Delete":
|
|
269
|
-
this.
|
|
258
|
+
this.setValuePart("minute", null);
|
|
270
259
|
break;
|
|
271
260
|
case "ArrowDown":
|
|
272
261
|
event.preventDefault();
|
|
@@ -294,7 +283,7 @@ export class CalciteTimePicker {
|
|
|
294
283
|
}
|
|
295
284
|
};
|
|
296
285
|
this.secondKeyDownHandler = (event) => {
|
|
297
|
-
const key =
|
|
286
|
+
const key = event.key;
|
|
298
287
|
if (numberKeys.includes(key)) {
|
|
299
288
|
const keyAsNumber = parseInt(key);
|
|
300
289
|
let newSecond;
|
|
@@ -308,13 +297,13 @@ export class CalciteTimePicker {
|
|
|
308
297
|
else {
|
|
309
298
|
newSecond = keyAsNumber;
|
|
310
299
|
}
|
|
311
|
-
this.
|
|
300
|
+
this.setValuePart("second", newSecond);
|
|
312
301
|
}
|
|
313
302
|
else {
|
|
314
303
|
switch (key) {
|
|
315
304
|
case "Backspace":
|
|
316
305
|
case "Delete":
|
|
317
|
-
this.
|
|
306
|
+
this.setValuePart("second", null);
|
|
318
307
|
break;
|
|
319
308
|
case "ArrowDown":
|
|
320
309
|
event.preventDefault();
|
|
@@ -336,59 +325,96 @@ export class CalciteTimePicker {
|
|
|
336
325
|
this.incrementSecond();
|
|
337
326
|
}
|
|
338
327
|
};
|
|
339
|
-
this.
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
|
|
328
|
+
this.setHourEl = (el) => (this.hourEl = el);
|
|
329
|
+
this.setMeridiemEl = (el) => (this.meridiemEl = el);
|
|
330
|
+
this.setMinuteEl = (el) => (this.minuteEl = el);
|
|
331
|
+
this.setSecondEl = (el) => (this.secondEl = el);
|
|
332
|
+
this.setValue = (value, emit = true) => {
|
|
333
|
+
if (isValidTime(value)) {
|
|
334
|
+
const { hour, minute, second } = parseTimeString(value);
|
|
335
|
+
const { localizedHour, localizedHourSuffix, localizedMinute, localizedMinuteSuffix, localizedSecond, localizedSecondSuffix, localizedMeridiem } = localizeTimeStringToParts(value, this.locale);
|
|
336
|
+
this.localizedHour = localizedHour;
|
|
337
|
+
this.localizedHourSuffix = localizedHourSuffix;
|
|
338
|
+
this.localizedMinute = localizedMinute;
|
|
339
|
+
this.localizedMinuteSuffix = localizedMinuteSuffix;
|
|
340
|
+
this.localizedSecond = localizedSecond;
|
|
341
|
+
this.localizedSecondSuffix = localizedSecondSuffix;
|
|
342
|
+
this.hour = hour;
|
|
343
|
+
this.minute = minute;
|
|
344
|
+
this.second = second;
|
|
345
|
+
if (localizedMeridiem) {
|
|
346
|
+
this.localizedMeridiem = localizedMeridiem;
|
|
347
|
+
this.meridiem = getMeridiem(this.hour);
|
|
348
|
+
}
|
|
349
|
+
}
|
|
350
|
+
else {
|
|
351
|
+
this.hour = null;
|
|
352
|
+
this.localizedHour = null;
|
|
353
|
+
this.localizedHourSuffix = null;
|
|
354
|
+
this.localizedMeridiem = null;
|
|
355
|
+
this.localizedMinute = null;
|
|
356
|
+
this.localizedMinuteSuffix = null;
|
|
357
|
+
this.localizedSecond = null;
|
|
358
|
+
this.localizedSecondSuffix = null;
|
|
359
|
+
this.meridiem = null;
|
|
360
|
+
this.minute = null;
|
|
361
|
+
this.second = null;
|
|
362
|
+
this.value = null;
|
|
363
|
+
}
|
|
364
|
+
if (emit) {
|
|
365
|
+
this.calciteTimePickerChange.emit();
|
|
366
|
+
}
|
|
367
|
+
};
|
|
368
|
+
this.setValuePart = (key, value, emit = true) => {
|
|
369
|
+
var _a;
|
|
370
|
+
if (key === "meridiem") {
|
|
371
|
+
this.meridiem = value;
|
|
372
|
+
if (isValidNumber(this.hour)) {
|
|
373
|
+
const hourAsNumber = parseInt(this.hour);
|
|
374
|
+
switch (value) {
|
|
375
|
+
case "AM":
|
|
376
|
+
if (hourAsNumber >= 12) {
|
|
377
|
+
this.hour = formatTimePart(hourAsNumber - 12);
|
|
378
|
+
}
|
|
379
|
+
break;
|
|
380
|
+
case "PM":
|
|
381
|
+
if (hourAsNumber < 12) {
|
|
382
|
+
this.hour = formatTimePart(hourAsNumber + 12);
|
|
383
|
+
}
|
|
384
|
+
break;
|
|
371
385
|
}
|
|
372
|
-
|
|
386
|
+
this.localizedHour = localizeTimePart(this.hour, "hour", this.locale);
|
|
387
|
+
}
|
|
388
|
+
}
|
|
389
|
+
else {
|
|
390
|
+
this[key] = typeof value === "number" ? formatTimePart(value) : value;
|
|
391
|
+
this[`localized${capitalize(key)}`] = localizeTimePart(this[key], key, this.locale);
|
|
373
392
|
}
|
|
374
|
-
this.
|
|
393
|
+
if (this.hour && this.minute) {
|
|
394
|
+
const showSeconds = this.second && this.showSecond;
|
|
395
|
+
this.value = `${this.hour}:${this.minute}:${showSeconds ? this.second : "00"}`;
|
|
396
|
+
}
|
|
397
|
+
else {
|
|
398
|
+
this.value = null;
|
|
399
|
+
}
|
|
400
|
+
this.localizedMeridiem = this.value
|
|
401
|
+
? ((_a = localizeTimeStringToParts(this.value, this.locale)) === null || _a === void 0 ? void 0 : _a.localizedMeridiem) || null
|
|
402
|
+
: localizeTimePart(this.meridiem, "meridiem", this.locale);
|
|
375
403
|
if (emit) {
|
|
376
|
-
this.calciteTimePickerChange.emit(
|
|
404
|
+
this.calciteTimePickerChange.emit();
|
|
377
405
|
}
|
|
378
406
|
};
|
|
379
407
|
}
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
}
|
|
408
|
+
localeWatcher(newLocale) {
|
|
409
|
+
this.hourCycle = getLocaleHourCycle(newLocale);
|
|
410
|
+
this.setValue(this.value, false);
|
|
384
411
|
}
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
this.timeChanged = false;
|
|
412
|
+
valueWatcher(newValue) {
|
|
413
|
+
this.setValue(newValue, false);
|
|
414
|
+
}
|
|
415
|
+
hourChanged(newHour) {
|
|
416
|
+
if (this.meridiem && isValidNumber(newHour)) {
|
|
417
|
+
this.setValuePart("meridiem", getMeridiem(newHour));
|
|
392
418
|
}
|
|
393
419
|
}
|
|
394
420
|
//--------------------------------------------------------------------------
|
|
@@ -403,7 +429,7 @@ export class CalciteTimePicker {
|
|
|
403
429
|
this.calciteTimePickerFocus.emit();
|
|
404
430
|
}
|
|
405
431
|
keyDownHandler(event) {
|
|
406
|
-
const key =
|
|
432
|
+
const key = event.key;
|
|
407
433
|
switch (this.activeEl) {
|
|
408
434
|
case this.hourEl:
|
|
409
435
|
if (key === "ArrowRight") {
|
|
@@ -419,7 +445,7 @@ export class CalciteTimePicker {
|
|
|
419
445
|
if (this.step !== 60) {
|
|
420
446
|
this.setFocus("second");
|
|
421
447
|
}
|
|
422
|
-
else if (this.
|
|
448
|
+
else if (this.hourCycle === "12") {
|
|
423
449
|
this.setFocus("meridiem");
|
|
424
450
|
}
|
|
425
451
|
break;
|
|
@@ -431,7 +457,7 @@ export class CalciteTimePicker {
|
|
|
431
457
|
this.setFocus("minute");
|
|
432
458
|
break;
|
|
433
459
|
case "ArrowRight":
|
|
434
|
-
if (this.
|
|
460
|
+
if (this.hourCycle === "12") {
|
|
435
461
|
this.setFocus("meridiem");
|
|
436
462
|
}
|
|
437
463
|
break;
|
|
@@ -461,47 +487,26 @@ export class CalciteTimePicker {
|
|
|
461
487
|
var _a;
|
|
462
488
|
(_a = this[`${target || "hour"}El`]) === null || _a === void 0 ? void 0 : _a.focus();
|
|
463
489
|
}
|
|
490
|
+
// --------------------------------------------------------------------------
|
|
491
|
+
//
|
|
492
|
+
// Private Methods
|
|
493
|
+
//
|
|
494
|
+
// --------------------------------------------------------------------------
|
|
464
495
|
buttonActivated(event) {
|
|
465
|
-
const key =
|
|
496
|
+
const key = event.key;
|
|
466
497
|
if (key === " ") {
|
|
467
498
|
event.preventDefault();
|
|
468
499
|
}
|
|
469
500
|
return isActivationKey(key);
|
|
470
501
|
}
|
|
471
|
-
getDisplayHour() {
|
|
472
|
-
if (!this.hour) {
|
|
473
|
-
return "--";
|
|
474
|
-
}
|
|
475
|
-
if (this.hourDisplayFormat === "12") {
|
|
476
|
-
return getMeridiemHour(this.hour);
|
|
477
|
-
}
|
|
478
|
-
return this.hour;
|
|
479
|
-
}
|
|
480
|
-
getTime() {
|
|
481
|
-
return {
|
|
482
|
-
hour: this.hour,
|
|
483
|
-
minute: this.minute,
|
|
484
|
-
second: this.second
|
|
485
|
-
};
|
|
486
|
-
}
|
|
487
502
|
// --------------------------------------------------------------------------
|
|
488
503
|
//
|
|
489
504
|
// Lifecycle
|
|
490
505
|
//
|
|
491
506
|
// --------------------------------------------------------------------------
|
|
492
507
|
connectedCallback() {
|
|
493
|
-
|
|
494
|
-
|
|
495
|
-
}
|
|
496
|
-
if (isValidNumber(this.hour)) {
|
|
497
|
-
this.hour = formatTimePart(parseInt(this.hour));
|
|
498
|
-
}
|
|
499
|
-
if (isValidNumber(this.minute)) {
|
|
500
|
-
this.minute = formatTimePart(parseInt(this.minute));
|
|
501
|
-
}
|
|
502
|
-
if (isValidNumber(this.second)) {
|
|
503
|
-
this.second = formatTimePart(parseInt(this.second));
|
|
504
|
-
}
|
|
508
|
+
this.setValue(this.value, false);
|
|
509
|
+
this.hourCycle = getLocaleHourCycle(this.locale);
|
|
505
510
|
}
|
|
506
511
|
// --------------------------------------------------------------------------
|
|
507
512
|
//
|
|
@@ -509,79 +514,84 @@ export class CalciteTimePicker {
|
|
|
509
514
|
//
|
|
510
515
|
// --------------------------------------------------------------------------
|
|
511
516
|
render() {
|
|
512
|
-
const iconScale = this.scale === "s" || this.scale === "m" ? "s" : "m";
|
|
513
|
-
const includeSeconds = this.step !== 60;
|
|
514
517
|
const hourIsNumber = isValidNumber(this.hour);
|
|
518
|
+
const iconScale = this.scale === "s" || this.scale === "m" ? "s" : "m";
|
|
515
519
|
const minuteIsNumber = isValidNumber(this.minute);
|
|
516
520
|
const secondIsNumber = isValidNumber(this.second);
|
|
517
|
-
|
|
518
|
-
|
|
519
|
-
|
|
520
|
-
|
|
521
|
-
|
|
522
|
-
|
|
523
|
-
|
|
524
|
-
|
|
525
|
-
|
|
526
|
-
|
|
527
|
-
|
|
528
|
-
|
|
529
|
-
|
|
530
|
-
h("
|
|
531
|
-
|
|
532
|
-
|
|
533
|
-
|
|
534
|
-
|
|
535
|
-
|
|
536
|
-
|
|
537
|
-
|
|
538
|
-
|
|
539
|
-
|
|
540
|
-
|
|
541
|
-
|
|
542
|
-
|
|
543
|
-
|
|
544
|
-
|
|
545
|
-
|
|
546
|
-
|
|
547
|
-
h("
|
|
548
|
-
|
|
549
|
-
|
|
550
|
-
|
|
551
|
-
|
|
552
|
-
|
|
553
|
-
|
|
554
|
-
|
|
555
|
-
|
|
556
|
-
|
|
557
|
-
|
|
558
|
-
|
|
559
|
-
|
|
560
|
-
|
|
561
|
-
|
|
562
|
-
|
|
563
|
-
h("
|
|
564
|
-
|
|
565
|
-
|
|
566
|
-
|
|
567
|
-
|
|
568
|
-
|
|
569
|
-
|
|
570
|
-
|
|
571
|
-
|
|
572
|
-
|
|
573
|
-
|
|
574
|
-
|
|
575
|
-
|
|
576
|
-
|
|
577
|
-
|
|
578
|
-
|
|
579
|
-
|
|
580
|
-
|
|
581
|
-
|
|
582
|
-
|
|
583
|
-
|
|
584
|
-
|
|
521
|
+
const showMeridiem = this.hourCycle === "12";
|
|
522
|
+
return (h("div", { class: {
|
|
523
|
+
[CSS.timePicker]: true,
|
|
524
|
+
[CSS.showMeridiem]: showMeridiem,
|
|
525
|
+
[CSS.showSecond]: this.showSecond,
|
|
526
|
+
[CSS[`scale-${this.scale}`]]: true
|
|
527
|
+
} },
|
|
528
|
+
h("div", { class: CSS.column, role: "group" },
|
|
529
|
+
h("span", { "aria-label": this.intlHourUp, class: {
|
|
530
|
+
[CSS.button]: true,
|
|
531
|
+
[CSS.buttonHourUp]: true,
|
|
532
|
+
[CSS.buttonTopLeft]: true
|
|
533
|
+
}, onClick: this.incrementHour, onKeyDown: this.hourUpButtonKeyDownHandler, role: "button", tabIndex: -1 },
|
|
534
|
+
h("calcite-icon", { icon: "chevron-up", scale: iconScale })),
|
|
535
|
+
h("span", { "aria-label": this.intlHour, "aria-valuemax": "23", "aria-valuemin": "1", "aria-valuenow": (hourIsNumber && parseInt(this.hour)) || "0", "aria-valuetext": this.hour, class: {
|
|
536
|
+
[CSS.input]: true,
|
|
537
|
+
[CSS.hour]: true
|
|
538
|
+
}, onFocus: this.focusHandler, onKeyDown: this.hourKeyDownHandler, ref: this.setHourEl, role: "spinbutton", tabIndex: 0 }, this.localizedHour || "--"),
|
|
539
|
+
h("span", { "aria-label": this.intlHourDown, class: {
|
|
540
|
+
[CSS.button]: true,
|
|
541
|
+
[CSS.buttonHourDown]: true,
|
|
542
|
+
[CSS.buttonBottomLeft]: true
|
|
543
|
+
}, onClick: this.decrementHour, onKeyDown: this.hourDownButtonKeyDownHandler, role: "button", tabIndex: -1 },
|
|
544
|
+
h("calcite-icon", { icon: "chevron-down", scale: iconScale }))),
|
|
545
|
+
h("span", { class: CSS.delimiter }, this.localizedHourSuffix),
|
|
546
|
+
h("div", { class: CSS.column, role: "group" },
|
|
547
|
+
h("span", { "aria-label": this.intlMinuteUp, class: {
|
|
548
|
+
[CSS.button]: true,
|
|
549
|
+
[CSS.buttonMinuteUp]: true
|
|
550
|
+
}, onClick: this.incrementMinute, onKeyDown: this.minuteUpButtonKeyDownHandler, role: "button", tabIndex: -1 },
|
|
551
|
+
h("calcite-icon", { icon: "chevron-up", scale: iconScale })),
|
|
552
|
+
h("span", { "aria-label": this.intlMinute, "aria-valuemax": "12", "aria-valuemin": "1", "aria-valuenow": (minuteIsNumber && parseInt(this.minute)) || "0", "aria-valuetext": this.minute, class: {
|
|
553
|
+
[CSS.input]: true,
|
|
554
|
+
[CSS.minute]: true
|
|
555
|
+
}, onFocus: this.focusHandler, onKeyDown: this.minuteKeyDownHandler, ref: this.setMinuteEl, role: "spinbutton", tabIndex: 0 }, this.localizedMinute || "--"),
|
|
556
|
+
h("span", { "aria-label": this.intlMinuteDown, class: {
|
|
557
|
+
[CSS.button]: true,
|
|
558
|
+
[CSS.buttonMinuteDown]: true
|
|
559
|
+
}, onClick: this.decrementMinute, onKeyDown: this.minuteDownButtonKeyDownHandler, role: "button", tabIndex: -1 },
|
|
560
|
+
h("calcite-icon", { icon: "chevron-down", scale: iconScale }))),
|
|
561
|
+
this.showSecond && h("span", { class: CSS.delimiter }, this.localizedMinuteSuffix),
|
|
562
|
+
this.showSecond && (h("div", { class: CSS.column, role: "group" },
|
|
563
|
+
h("span", { "aria-label": this.intlSecondUp, class: {
|
|
564
|
+
[CSS.button]: true,
|
|
565
|
+
[CSS.buttonSecondUp]: true
|
|
566
|
+
}, onClick: this.incrementSecond, onKeyDown: this.secondUpButtonKeyDownHandler, role: "button", tabIndex: -1 },
|
|
567
|
+
h("calcite-icon", { icon: "chevron-up", scale: iconScale })),
|
|
568
|
+
h("span", { "aria-label": this.intlSecond, "aria-valuemax": "59", "aria-valuemin": "0", "aria-valuenow": (secondIsNumber && parseInt(this.second)) || "0", "aria-valuetext": this.second, class: {
|
|
569
|
+
[CSS.input]: true,
|
|
570
|
+
[CSS.second]: true
|
|
571
|
+
}, onFocus: this.focusHandler, onKeyDown: this.secondKeyDownHandler, ref: this.setSecondEl, role: "spinbutton", tabIndex: 0 }, this.localizedSecond || "--"),
|
|
572
|
+
h("span", { "aria-label": this.intlSecondDown, class: {
|
|
573
|
+
[CSS.button]: true,
|
|
574
|
+
[CSS.buttonSecondDown]: true
|
|
575
|
+
}, onClick: this.decrementSecond, onKeyDown: this.secondDownButtonKeyDownHandler, role: "button", tabIndex: -1 },
|
|
576
|
+
h("calcite-icon", { icon: "chevron-down", scale: iconScale })))),
|
|
577
|
+
this.localizedSecondSuffix && (h("span", { class: CSS.delimiter }, this.localizedSecondSuffix)),
|
|
578
|
+
showMeridiem && (h("div", { class: CSS.column, role: "group" },
|
|
579
|
+
h("span", { "aria-label": this.intlMeridiemUp, class: {
|
|
580
|
+
[CSS.button]: true,
|
|
581
|
+
[CSS.buttonMeridiemUp]: true,
|
|
582
|
+
[CSS.buttonTopRight]: true
|
|
583
|
+
}, onClick: this.incrementMeridiem, onKeyDown: this.meridiemUpButtonKeyDownHandler, role: "button", tabIndex: -1 },
|
|
584
|
+
h("calcite-icon", { icon: "chevron-up", scale: iconScale })),
|
|
585
|
+
h("span", { "aria-label": this.intlMeridiem, "aria-valuemax": "2", "aria-valuemin": "1", "aria-valuenow": (this.meridiem === "PM" && "2") || "1", "aria-valuetext": this.meridiem, class: {
|
|
586
|
+
[CSS.input]: true,
|
|
587
|
+
[CSS.meridiem]: true
|
|
588
|
+
}, onFocus: this.focusHandler, onKeyDown: this.meridiemKeyDownHandler, ref: this.setMeridiemEl, role: "spinbutton", tabIndex: 0 }, this.localizedMeridiem || "--"),
|
|
589
|
+
h("span", { "aria-label": this.intlMeridiemDown, class: {
|
|
590
|
+
[CSS.button]: true,
|
|
591
|
+
[CSS.buttonMeridiemDown]: true,
|
|
592
|
+
[CSS.buttonBottomRight]: true
|
|
593
|
+
}, onClick: this.decrementMeridiem, onKeyDown: this.meridiemDownButtonKeyDownHandler, role: "button", tabIndex: -1 },
|
|
594
|
+
h("calcite-icon", { icon: "chevron-down", scale: iconScale }))))));
|
|
585
595
|
}
|
|
586
596
|
static get is() { return "calcite-time-picker"; }
|
|
587
597
|
static get encapsulation() { return "shadow"; }
|
|
@@ -592,47 +602,6 @@ export class CalciteTimePicker {
|
|
|
592
602
|
"$": ["calcite-time-picker.css"]
|
|
593
603
|
}; }
|
|
594
604
|
static get properties() { return {
|
|
595
|
-
"hour": {
|
|
596
|
-
"type": "string",
|
|
597
|
-
"mutable": true,
|
|
598
|
-
"complexType": {
|
|
599
|
-
"original": "string",
|
|
600
|
-
"resolved": "string",
|
|
601
|
-
"references": {}
|
|
602
|
-
},
|
|
603
|
-
"required": false,
|
|
604
|
-
"optional": true,
|
|
605
|
-
"docs": {
|
|
606
|
-
"tags": [],
|
|
607
|
-
"text": "The hour value (24-hour format)"
|
|
608
|
-
},
|
|
609
|
-
"attribute": "hour",
|
|
610
|
-
"reflect": false,
|
|
611
|
-
"defaultValue": "null"
|
|
612
|
-
},
|
|
613
|
-
"hourDisplayFormat": {
|
|
614
|
-
"type": "string",
|
|
615
|
-
"mutable": false,
|
|
616
|
-
"complexType": {
|
|
617
|
-
"original": "HourDisplayFormat",
|
|
618
|
-
"resolved": "\"12\" | \"24\"",
|
|
619
|
-
"references": {
|
|
620
|
-
"HourDisplayFormat": {
|
|
621
|
-
"location": "import",
|
|
622
|
-
"path": "../../utils/time"
|
|
623
|
-
}
|
|
624
|
-
}
|
|
625
|
-
},
|
|
626
|
-
"required": false,
|
|
627
|
-
"optional": false,
|
|
628
|
-
"docs": {
|
|
629
|
-
"tags": [],
|
|
630
|
-
"text": "Format of the hour value (12-hour or 24-hour) (this will be replaced by locale eventually)"
|
|
631
|
-
},
|
|
632
|
-
"attribute": "hour-display-format",
|
|
633
|
-
"reflect": true,
|
|
634
|
-
"defaultValue": "\"12\""
|
|
635
|
-
},
|
|
636
605
|
"intlHour": {
|
|
637
606
|
"type": "string",
|
|
638
607
|
"mutable": false,
|
|
@@ -885,25 +854,7 @@ export class CalciteTimePicker {
|
|
|
885
854
|
"reflect": false,
|
|
886
855
|
"defaultValue": "TEXT.secondUp"
|
|
887
856
|
},
|
|
888
|
-
"
|
|
889
|
-
"type": "string",
|
|
890
|
-
"mutable": true,
|
|
891
|
-
"complexType": {
|
|
892
|
-
"original": "string",
|
|
893
|
-
"resolved": "string",
|
|
894
|
-
"references": {}
|
|
895
|
-
},
|
|
896
|
-
"required": false,
|
|
897
|
-
"optional": true,
|
|
898
|
-
"docs": {
|
|
899
|
-
"tags": [],
|
|
900
|
-
"text": "The minute value"
|
|
901
|
-
},
|
|
902
|
-
"attribute": "minute",
|
|
903
|
-
"reflect": false,
|
|
904
|
-
"defaultValue": "null"
|
|
905
|
-
},
|
|
906
|
-
"second": {
|
|
857
|
+
"locale": {
|
|
907
858
|
"type": "string",
|
|
908
859
|
"mutable": true,
|
|
909
860
|
"complexType": {
|
|
@@ -912,14 +863,17 @@ export class CalciteTimePicker {
|
|
|
912
863
|
"references": {}
|
|
913
864
|
},
|
|
914
865
|
"required": false,
|
|
915
|
-
"optional":
|
|
866
|
+
"optional": false,
|
|
916
867
|
"docs": {
|
|
917
|
-
"tags": [
|
|
918
|
-
|
|
868
|
+
"tags": [{
|
|
869
|
+
"name": "internal",
|
|
870
|
+
"text": undefined
|
|
871
|
+
}],
|
|
872
|
+
"text": "BCP 47 language tag for desired language and country format"
|
|
919
873
|
},
|
|
920
|
-
"attribute": "
|
|
874
|
+
"attribute": "lang",
|
|
921
875
|
"reflect": false,
|
|
922
|
-
"defaultValue": "
|
|
876
|
+
"defaultValue": "document.documentElement.lang || navigator.language || \"en\""
|
|
923
877
|
},
|
|
924
878
|
"scale": {
|
|
925
879
|
"type": "string",
|
|
@@ -941,7 +895,7 @@ export class CalciteTimePicker {
|
|
|
941
895
|
"text": "The scale (size) of the time picker"
|
|
942
896
|
},
|
|
943
897
|
"attribute": "scale",
|
|
944
|
-
"reflect":
|
|
898
|
+
"reflect": false,
|
|
945
899
|
"defaultValue": "\"m\""
|
|
946
900
|
},
|
|
947
901
|
"step": {
|
|
@@ -956,16 +910,45 @@ export class CalciteTimePicker {
|
|
|
956
910
|
"optional": false,
|
|
957
911
|
"docs": {
|
|
958
912
|
"tags": [],
|
|
959
|
-
"text": "number that specifies the granularity that the value must adhere to"
|
|
913
|
+
"text": "number (seconds) that specifies the granularity that the value must adhere to"
|
|
960
914
|
},
|
|
961
915
|
"attribute": "step",
|
|
962
|
-
"reflect":
|
|
916
|
+
"reflect": false,
|
|
963
917
|
"defaultValue": "60"
|
|
918
|
+
},
|
|
919
|
+
"value": {
|
|
920
|
+
"type": "string",
|
|
921
|
+
"mutable": true,
|
|
922
|
+
"complexType": {
|
|
923
|
+
"original": "string",
|
|
924
|
+
"resolved": "string",
|
|
925
|
+
"references": {}
|
|
926
|
+
},
|
|
927
|
+
"required": false,
|
|
928
|
+
"optional": false,
|
|
929
|
+
"docs": {
|
|
930
|
+
"tags": [],
|
|
931
|
+
"text": "The selected time in UTC (always 24-hour format)"
|
|
932
|
+
},
|
|
933
|
+
"attribute": "value",
|
|
934
|
+
"reflect": false,
|
|
935
|
+
"defaultValue": "null"
|
|
964
936
|
}
|
|
965
937
|
}; }
|
|
966
938
|
static get states() { return {
|
|
939
|
+
"hour": {},
|
|
940
|
+
"hourCycle": {},
|
|
941
|
+
"localizedHour": {},
|
|
942
|
+
"localizedHourSuffix": {},
|
|
943
|
+
"localizedMeridiem": {},
|
|
944
|
+
"localizedMinute": {},
|
|
945
|
+
"localizedMinuteSuffix": {},
|
|
946
|
+
"localizedSecond": {},
|
|
947
|
+
"localizedSecondSuffix": {},
|
|
967
948
|
"meridiem": {},
|
|
968
|
-
"
|
|
949
|
+
"minute": {},
|
|
950
|
+
"second": {},
|
|
951
|
+
"showSecond": {}
|
|
969
952
|
}; }
|
|
970
953
|
static get events() { return [{
|
|
971
954
|
"method": "calciteTimePickerBlur",
|
|
@@ -981,14 +964,9 @@ export class CalciteTimePicker {
|
|
|
981
964
|
"text": ""
|
|
982
965
|
},
|
|
983
966
|
"complexType": {
|
|
984
|
-
"original": "
|
|
985
|
-
"resolved": "
|
|
986
|
-
"references": {
|
|
987
|
-
"Time": {
|
|
988
|
-
"location": "import",
|
|
989
|
-
"path": "../../utils/time"
|
|
990
|
-
}
|
|
991
|
-
}
|
|
967
|
+
"original": "void",
|
|
968
|
+
"resolved": "void",
|
|
969
|
+
"references": {}
|
|
992
970
|
}
|
|
993
971
|
}, {
|
|
994
972
|
"method": "calciteTimePickerChange",
|
|
@@ -1004,14 +982,9 @@ export class CalciteTimePicker {
|
|
|
1004
982
|
"text": ""
|
|
1005
983
|
},
|
|
1006
984
|
"complexType": {
|
|
1007
|
-
"original": "
|
|
1008
|
-
"resolved": "
|
|
1009
|
-
"references": {
|
|
1010
|
-
"Time": {
|
|
1011
|
-
"location": "import",
|
|
1012
|
-
"path": "../../utils/time"
|
|
1013
|
-
}
|
|
1014
|
-
}
|
|
985
|
+
"original": "string",
|
|
986
|
+
"resolved": "string",
|
|
987
|
+
"references": {}
|
|
1015
988
|
}
|
|
1016
989
|
}, {
|
|
1017
990
|
"method": "calciteTimePickerFocus",
|
|
@@ -1027,20 +1000,15 @@ export class CalciteTimePicker {
|
|
|
1027
1000
|
"text": ""
|
|
1028
1001
|
},
|
|
1029
1002
|
"complexType": {
|
|
1030
|
-
"original": "
|
|
1031
|
-
"resolved": "
|
|
1032
|
-
"references": {
|
|
1033
|
-
"Time": {
|
|
1034
|
-
"location": "import",
|
|
1035
|
-
"path": "../../utils/time"
|
|
1036
|
-
}
|
|
1037
|
-
}
|
|
1003
|
+
"original": "void",
|
|
1004
|
+
"resolved": "void",
|
|
1005
|
+
"references": {}
|
|
1038
1006
|
}
|
|
1039
1007
|
}]; }
|
|
1040
1008
|
static get methods() { return {
|
|
1041
1009
|
"setFocus": {
|
|
1042
1010
|
"complexType": {
|
|
1043
|
-
"signature": "(target:
|
|
1011
|
+
"signature": "(target: TimePart) => Promise<void>",
|
|
1044
1012
|
"parameters": [{
|
|
1045
1013
|
"tags": [],
|
|
1046
1014
|
"text": ""
|
|
@@ -1049,7 +1017,7 @@ export class CalciteTimePicker {
|
|
|
1049
1017
|
"Promise": {
|
|
1050
1018
|
"location": "global"
|
|
1051
1019
|
},
|
|
1052
|
-
"
|
|
1020
|
+
"TimePart": {
|
|
1053
1021
|
"location": "import",
|
|
1054
1022
|
"path": "../../utils/time"
|
|
1055
1023
|
}
|
|
@@ -1064,17 +1032,14 @@ export class CalciteTimePicker {
|
|
|
1064
1032
|
}; }
|
|
1065
1033
|
static get elementRef() { return "el"; }
|
|
1066
1034
|
static get watchers() { return [{
|
|
1067
|
-
"propName": "
|
|
1068
|
-
"methodName": "
|
|
1035
|
+
"propName": "locale",
|
|
1036
|
+
"methodName": "localeWatcher"
|
|
1069
1037
|
}, {
|
|
1070
|
-
"propName": "
|
|
1071
|
-
"methodName": "
|
|
1072
|
-
}, {
|
|
1073
|
-
"propName": "minute",
|
|
1074
|
-
"methodName": "timeChangeHandler"
|
|
1038
|
+
"propName": "value",
|
|
1039
|
+
"methodName": "valueWatcher"
|
|
1075
1040
|
}, {
|
|
1076
|
-
"propName": "
|
|
1077
|
-
"methodName": "
|
|
1041
|
+
"propName": "hour",
|
|
1042
|
+
"methodName": "hourChanged"
|
|
1078
1043
|
}]; }
|
|
1079
1044
|
static get listeners() { return [{
|
|
1080
1045
|
"name": "blur",
|