@esri/calcite-components 1.0.0-beta.69 → 1.0.0-beta.72
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-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/checkExtent16.json +1 -0
- package/dist/calcite/assets/calcite-icon/checkExtent24.json +1 -0
- package/dist/calcite/assets/calcite-icon/checkExtent32.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/driveTime16.json +1 -0
- package/dist/calcite/assets/calcite-icon/driveTime24.json +1 -0
- package/dist/calcite/assets/calcite-icon/driveTime32.json +1 -0
- package/dist/calcite/assets/calcite-icon/driveTimeLargest16.json +1 -0
- package/dist/calcite/assets/calcite-icon/driveTimeLargest24.json +1 -0
- package/dist/calcite/assets/calcite-icon/driveTimeLargest32.json +1 -0
- package/dist/calcite/assets/calcite-icon/driveTimeSmallest16.json +1 -0
- package/dist/calcite/assets/calcite-icon/driveTimeSmallest24.json +1 -0
- package/dist/calcite/assets/calcite-icon/driveTimeSmallest32.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/driveTimeXBar16.json +1 -0
- package/dist/calcite/assets/calcite-icon/driveTimeXBar24.json +1 -0
- package/dist/calcite/assets/calcite-icon/driveTimeXBar32.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/groupItems16.json +1 -0
- package/dist/calcite/assets/calcite-icon/groupItems24.json +1 -0
- package/dist/calcite/assets/calcite-icon/groupItems32.json +1 -0
- package/dist/calcite/assets/calcite-icon/groupLayoutElements16.json +1 -0
- package/dist/calcite/assets/calcite-icon/groupLayoutElements24.json +1 -0
- package/dist/calcite/assets/calcite-icon/groupLayoutElements32.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/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/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/ringsLargest16.json +1 -0
- package/dist/calcite/assets/calcite-icon/ringsLargest24.json +1 -0
- package/dist/calcite/assets/calcite-icon/ringsLargest32.json +1 -0
- package/dist/calcite/assets/calcite-icon/ringsSmallest16.json +1 -0
- package/dist/calcite/assets/calcite-icon/ringsSmallest24.json +1 -0
- package/dist/calcite/assets/calcite-icon/ringsSmallest32.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/ringsXBar16.json +1 -0
- package/dist/calcite/assets/calcite-icon/ringsXBar24.json +1 -0
- package/dist/calcite/assets/calcite-icon/ringsXBar32.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/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/ungroupItems16.json +1 -0
- package/dist/calcite/assets/calcite-icon/ungroupItems24.json +1 -0
- package/dist/calcite/assets/calcite-icon/ungroupItems32.json +1 -0
- package/dist/calcite/assets/calcite-icon/ungroupLayoutElements16.json +1 -0
- package/dist/calcite/assets/calcite-icon/ungroupLayoutElements24.json +1 -0
- package/dist/calcite/assets/calcite-icon/ungroupLayoutElements32.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-0229a408.js +5 -0
- package/dist/calcite/p-04cc8259.entry.js +5 -0
- package/dist/calcite/p-057197f8.entry.js +5 -0
- package/dist/calcite/p-05c10c53.entry.js +5 -0
- package/dist/calcite/p-05edaadf.system.entry.js +5 -0
- package/dist/calcite/p-06ddf228.entry.js +5 -0
- package/dist/calcite/p-0b45733b.entry.js +5 -0
- package/dist/calcite/{p-d11ad046.system.js → p-0f2b51bf.system.js} +1 -1
- package/dist/calcite/p-112f20e6.system.entry.js +5 -0
- package/dist/calcite/p-11f01c0a.entry.js +5 -0
- package/dist/calcite/p-18d9a261.system.js +5 -0
- package/dist/calcite/p-1942876c.js +5 -0
- package/dist/calcite/{p-3f1d1bad.entry.js → p-2151c991.entry.js} +1 -1
- package/dist/calcite/{p-f281f1e9.entry.js → p-27d9be53.entry.js} +1 -1
- package/dist/calcite/p-288899b9.entry.js +5 -0
- package/dist/calcite/p-288bc438.system.js +5 -0
- package/dist/calcite/p-2b294f8e.system.entry.js +5 -0
- package/dist/calcite/{p-c60e3a71.entry.js → p-2be1e8ee.entry.js} +1 -1
- package/dist/calcite/p-2d09cc25.js +5 -0
- package/dist/calcite/p-2d939f9e.system.entry.js +5 -0
- package/dist/calcite/p-2e29554c.js +5 -0
- package/dist/calcite/p-2fbd50f3.system.entry.js +5 -0
- package/dist/calcite/p-30036f23.system.entry.js +5 -0
- package/dist/calcite/{p-25a31861.system.js → p-34e5baa7.system.js} +1 -1
- package/dist/calcite/p-35a5c74c.system.js +5 -0
- package/dist/calcite/p-3739338a.system.entry.js +5 -0
- package/dist/calcite/p-3c25cb72.system.entry.js +5 -0
- package/dist/calcite/p-3d8ee39d.system.entry.js +5 -0
- package/dist/calcite/p-3e9c6068.entry.js +5 -0
- package/dist/calcite/p-3f8527a3.entry.js +5 -0
- package/dist/calcite/p-40991717.entry.js +5 -0
- package/dist/calcite/p-40e16f41.entry.js +5 -0
- package/dist/calcite/p-4278fb57.entry.js +5 -0
- package/dist/calcite/p-444ecda9.entry.js +5 -0
- package/dist/calcite/p-44cce7a3.system.entry.js +5 -0
- package/dist/calcite/p-4d02c6c0.system.entry.js +5 -0
- package/dist/calcite/{p-4035444d.system.js → p-4e9d072a.system.js} +1 -1
- package/dist/calcite/p-4f1f716a.system.entry.js +5 -0
- package/dist/calcite/p-4f7ebefc.system.js +5 -0
- package/dist/calcite/p-523bc291.system.js +5 -0
- package/dist/calcite/p-55f68e28.entry.js +5 -0
- package/dist/calcite/p-57169a74.entry.js +5 -0
- package/dist/calcite/p-5c9d89ce.system.entry.js +5 -0
- package/dist/calcite/p-62f3d4df.system.js +5 -0
- package/dist/calcite/p-63b9f804.entry.js +5 -0
- package/dist/calcite/p-66fda99e.entry.js +5 -0
- package/dist/calcite/p-689790cb.system.entry.js +5 -0
- package/dist/calcite/p-69bd1f5f.system.entry.js +5 -0
- package/dist/calcite/p-6a87d7b2.entry.js +5 -0
- package/dist/calcite/p-6faaa8af.system.entry.js +5 -0
- package/dist/calcite/p-6fb63fc1.entry.js +5 -0
- package/dist/calcite/p-72a60528.system.entry.js +5 -0
- package/dist/calcite/p-763479d6.system.entry.js +5 -0
- package/dist/calcite/p-768018df.entry.js +5 -0
- package/dist/calcite/p-76eda40b.entry.js +5 -0
- package/dist/calcite/p-7ac9f860.entry.js +5 -0
- package/dist/calcite/p-7ff5e336.entry.js +5 -0
- package/dist/calcite/{p-45257edb.js → p-8340b572.js} +1 -1
- package/dist/calcite/p-83744979.system.js +5 -0
- package/dist/calcite/p-87327c2f.system.entry.js +5 -0
- package/dist/calcite/p-88296be9.system.entry.js +5 -0
- package/dist/calcite/p-88b31760.system.entry.js +5 -0
- package/dist/calcite/p-8a8982ab.system.entry.js +5 -0
- package/dist/calcite/p-8c4b6059.system.entry.js +5 -0
- package/dist/calcite/p-8ebc2d51.entry.js +5 -0
- package/dist/calcite/p-9180be05.system.entry.js +5 -0
- package/dist/calcite/p-93a189be.entry.js +5 -0
- package/dist/calcite/p-97117a5d.entry.js +5 -0
- package/dist/calcite/p-97efd284.system.entry.js +5 -0
- package/dist/calcite/p-998829cb.system.entry.js +5 -0
- package/dist/calcite/p-9a1ffbad.system.entry.js +5 -0
- package/dist/calcite/p-9a8f3883.entry.js +5 -0
- package/dist/calcite/p-9b979692.entry.js +5 -0
- package/dist/calcite/p-9fc14d49.entry.js +5 -0
- package/dist/calcite/p-9feb0f5a.system.entry.js +5 -0
- package/dist/calcite/p-a2a22cbc.entry.js +5 -0
- package/dist/calcite/p-a3c498de.entry.js +5 -0
- package/dist/calcite/p-a4784cf3.system.entry.js +5 -0
- package/dist/calcite/p-a4a12ffb.system.entry.js +5 -0
- package/dist/calcite/p-a6f99f79.entry.js +5 -0
- package/dist/calcite/p-a98344e2.system.entry.js +5 -0
- package/dist/calcite/p-a9f596be.system.entry.js +5 -0
- package/dist/calcite/p-adf4699d.system.entry.js +5 -0
- package/dist/calcite/p-b180d943.system.entry.js +5 -0
- package/dist/calcite/p-b2f0596f.entry.js +5 -0
- package/dist/calcite/p-b437a8eb.system.entry.js +5 -0
- package/dist/calcite/p-b43e699c.system.entry.js +5 -0
- package/dist/calcite/p-ba7c0f01.system.entry.js +5 -0
- package/dist/calcite/p-bca0b34f.entry.js +5 -0
- package/dist/calcite/p-bd091b49.system.entry.js +5 -0
- package/dist/calcite/p-bdca5372.entry.js +5 -0
- package/dist/calcite/p-bfa6bd72.entry.js +5 -0
- package/dist/calcite/p-c00b1d26.js +5 -0
- package/dist/calcite/p-c2bfd7f9.system.entry.js +5 -0
- package/dist/calcite/p-c2fcf603.system.entry.js +5 -0
- package/dist/calcite/p-c70bacc8.system.entry.js +5 -0
- package/dist/calcite/p-c8c6323c.entry.js +5 -0
- package/dist/calcite/p-cb660e54.entry.js +5 -0
- package/dist/calcite/p-cd5d5756.system.entry.js +5 -0
- package/dist/calcite/p-ce704ece.js +5 -0
- package/dist/calcite/p-cf499949.entry.js +5 -0
- package/dist/calcite/p-d17cfab3.entry.js +5 -0
- package/dist/calcite/{p-809ddb6a.js → p-d3bd900e.js} +1 -1
- package/dist/calcite/p-d3db2b58.system.entry.js +5 -0
- package/dist/calcite/p-d4d5665a.system.entry.js +5 -0
- package/dist/calcite/p-d8039e8a.system.entry.js +5 -0
- package/dist/calcite/p-d9414082.system.entry.js +5 -0
- package/dist/calcite/p-dc7124e9.entry.js +5 -0
- package/dist/calcite/p-dc777403.system.entry.js +5 -0
- package/dist/calcite/p-dda22c7e.system.entry.js +5 -0
- package/dist/calcite/p-de67ba93.system.entry.js +5 -0
- package/dist/calcite/{p-aad45edf.system.js → p-e095517f.system.js} +1 -1
- package/dist/calcite/p-e09bac0d.system.entry.js +5 -0
- package/dist/calcite/p-e0b1e90c.entry.js +5 -0
- package/dist/calcite/p-e35b29f5.system.entry.js +5 -0
- package/dist/calcite/p-e54784a8.system.entry.js +5 -0
- package/dist/calcite/p-e63c6a55.system.entry.js +5 -0
- package/dist/calcite/p-e697ab57.system.entry.js +5 -0
- package/dist/calcite/{p-5efd7297.entry.js → p-e7801f1d.entry.js} +1 -1
- package/dist/calcite/{p-f07d3627.js → p-e7f7b0f8.js} +1 -1
- package/dist/calcite/p-eebd2bb0.entry.js +5 -0
- package/dist/calcite/p-f1f65708.entry.js +5 -0
- package/dist/calcite/p-f2340d02.system.entry.js +5 -0
- package/dist/calcite/p-f25f139a.entry.js +5 -0
- package/dist/calcite/p-f28d8e9e.system.entry.js +5 -0
- package/dist/calcite/p-f2f2ad57.entry.js +5 -0
- package/dist/calcite/p-f39dc5fd.entry.js +5 -0
- package/dist/calcite/p-f4a7fa43.entry.js +5 -0
- package/dist/calcite/p-f595d924.js +5 -0
- package/dist/calcite/{p-e7819705.entry.js → p-f72c037c.entry.js} +1 -1
- package/dist/calcite/p-f9e7371d.entry.js +5 -0
- package/dist/calcite/p-fc265aaf.entry.js +5 -0
- package/dist/calcite/p-fc9025a2.entry.js +5 -0
- package/dist/calcite/p-fd255a24.entry.js +5 -0
- package/dist/calcite/p-fd94e88d.system.entry.js +5 -0
- package/dist/cjs/{CalciteExpandToggle-6a9f9858.js → CalciteExpandToggle-d654421a.js} +2 -2
- package/dist/cjs/{CalciteHeading-363b0525.js → CalciteHeading-112c19f9.js} +1 -1
- package/dist/cjs/calcite-accordion_2.cjs.entry.js +9 -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 +2 -2
- package/dist/cjs/calcite-alert.cjs.entry.js +21 -11
- package/dist/cjs/calcite-avatar.cjs.entry.js +5 -6
- package/dist/cjs/calcite-block_2.cjs.entry.js +12 -10
- package/dist/cjs/calcite-button.cjs.entry.js +11 -6
- package/dist/cjs/calcite-card.cjs.entry.js +4 -8
- package/dist/cjs/calcite-checkbox.cjs.entry.js +35 -84
- package/dist/cjs/calcite-chip.cjs.entry.js +4 -5
- package/dist/cjs/calcite-color-picker_3.cjs.entry.js +62 -64
- package/dist/cjs/calcite-combobox_3.cjs.entry.js +89 -35
- package/dist/cjs/calcite-date-picker_4.cjs.entry.js +70 -42
- package/dist/cjs/calcite-dropdown_3.cjs.entry.js +15 -20
- 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 +2 -2
- package/dist/cjs/calcite-graph_2.cjs.entry.js +63 -35
- package/dist/cjs/calcite-handle.cjs.entry.js +2 -2
- package/dist/cjs/calcite-icon.cjs.entry.js +2 -2
- package/dist/cjs/calcite-inline-editable.cjs.entry.js +50 -41
- package/dist/cjs/calcite-input-date-picker.cjs.entry.js +87 -22
- package/dist/cjs/calcite-input-message.cjs.entry.js +3 -4
- package/dist/cjs/calcite-input-time-picker_2.cjs.entry.js +384 -250
- package/dist/cjs/calcite-input.cjs.entry.js +109 -77
- package/dist/cjs/calcite-label.cjs.entry.js +3 -6
- package/dist/cjs/calcite-link.cjs.entry.js +3 -3
- package/dist/cjs/calcite-list_3.cjs.entry.js +5 -5
- package/dist/cjs/calcite-loader.cjs.entry.js +2 -2
- 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 +39 -11
- package/dist/cjs/calcite-pagination.cjs.entry.js +4 -7
- package/dist/cjs/calcite-panel.cjs.entry.js +12 -14
- package/dist/cjs/calcite-pick-list_3.cjs.entry.js +7 -9
- package/dist/cjs/calcite-popover_2.cjs.entry.js +6 -8
- package/dist/cjs/calcite-progress.cjs.entry.js +2 -2
- package/dist/cjs/calcite-radio-button-group.cjs.entry.js +2 -2
- package/dist/cjs/calcite-radio-button.cjs.entry.js +260 -0
- package/dist/cjs/calcite-radio-group_2.cjs.entry.js +42 -56
- package/dist/cjs/calcite-rating.cjs.entry.js +14 -6
- package/dist/cjs/calcite-scrim.cjs.entry.js +2 -2
- package/dist/cjs/calcite-shell_3.cjs.entry.js +172 -12
- package/dist/cjs/calcite-sortable-list.cjs.entry.js +2 -2
- package/dist/cjs/calcite-split-button.cjs.entry.js +5 -6
- package/dist/cjs/calcite-stepper_2.cjs.entry.js +6 -8
- package/dist/cjs/calcite-switch.cjs.entry.js +24 -50
- package/dist/cjs/calcite-tab_4.cjs.entry.js +9 -12
- package/dist/cjs/calcite-tile-select_2.cjs.entry.js +6 -10
- package/dist/cjs/calcite-tile.cjs.entry.js +2 -2
- package/dist/cjs/calcite-tip_3.cjs.entry.js +5 -5
- package/dist/cjs/calcite-tooltip_2.cjs.entry.js +5 -6
- package/dist/cjs/calcite-tree_2.cjs.entry.js +4 -5
- package/dist/cjs/calcite-value-list_2.cjs.entry.js +4 -4
- package/dist/cjs/calcite.cjs.js +3 -3
- package/dist/cjs/form-a5b44a1f.js +179 -0
- package/dist/cjs/{index-cee0daa9.js → index-6b5d2de5.js} +8 -365
- package/dist/cjs/loader.cjs.js +3 -3
- package/dist/cjs/{locale-69dc9583.js → locale-33c458dc.js} +1 -1
- package/dist/cjs/math-145c80e2.js +21 -0
- package/dist/cjs/{number-e6448e15.js → number-73f7b474.js} +17 -4
- package/dist/cjs/{popper-87bf13e6.js → popper-a7580aca.js} +90 -64
- package/dist/cjs/{resources-38563593.js → resources-16974e48.js} +4 -3
- package/dist/cjs/{resources-f9c141d2.js → resources-6c4b32ef.js} +5 -5
- package/dist/collection/collection-manifest.json +9 -11
- package/dist/collection/components/calcite-accordion/calcite-accordion.css +5 -1
- package/dist/collection/components/calcite-accordion/calcite-accordion.js +1 -2
- package/dist/collection/components/calcite-accordion-item/calcite-accordion-item.css +10 -23
- package/dist/collection/components/calcite-accordion-item/calcite-accordion-item.js +4 -2
- package/dist/collection/components/calcite-action/calcite-action.css +5 -1
- package/dist/collection/components/calcite-action-bar/calcite-action-bar.css +5 -1
- package/dist/collection/components/calcite-action-bar/calcite-action-bar.js +3 -0
- package/dist/collection/components/calcite-action-group/calcite-action-group.css +5 -1
- package/dist/collection/components/calcite-action-menu/calcite-action-menu.css +5 -1
- package/dist/collection/components/calcite-action-pad/calcite-action-pad.css +7 -8
- package/dist/collection/components/calcite-action-pad/calcite-action-pad.js +2 -8
- package/dist/collection/components/calcite-alert/calcite-alert.css +29 -40
- package/dist/collection/components/calcite-alert/calcite-alert.js +21 -10
- package/dist/collection/components/calcite-avatar/calcite-avatar.css +5 -1
- package/dist/collection/components/calcite-avatar/calcite-avatar.js +2 -4
- package/dist/collection/components/calcite-block/calcite-block.css +17 -35
- package/dist/collection/components/calcite-block/calcite-block.js +10 -9
- package/dist/collection/components/calcite-block-section/calcite-block-section.css +7 -13
- package/dist/collection/components/calcite-block-section/calcite-block-section.js +1 -2
- package/dist/collection/components/calcite-button/calcite-button.css +44 -72
- 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 +6 -7
- package/dist/collection/components/calcite-card/calcite-card.js +2 -6
- package/dist/collection/components/calcite-checkbox/calcite-checkbox.css +27 -12
- package/dist/collection/components/calcite-checkbox/calcite-checkbox.js +63 -112
- package/dist/collection/components/calcite-chip/calcite-chip.css +18 -39
- package/dist/collection/components/calcite-chip/calcite-chip.js +3 -5
- package/dist/collection/components/calcite-color-picker/calcite-color-picker.css +7 -8
- package/dist/collection/components/calcite-color-picker/calcite-color-picker.js +12 -18
- package/dist/collection/components/calcite-color-picker-hex-input/calcite-color-picker-hex-input.css +5 -1
- package/dist/collection/components/calcite-color-picker-hex-input/calcite-color-picker-hex-input.js +14 -20
- package/dist/collection/components/calcite-color-picker-swatch/calcite-color-picker-swatch.css +5 -1
- package/dist/collection/components/calcite-combobox/calcite-combobox.css +24 -13
- package/dist/collection/components/calcite-combobox/calcite-combobox.js +145 -28
- package/dist/collection/components/calcite-combobox-item/calcite-combobox-item.css +7 -14
- package/dist/collection/components/calcite-combobox-item/calcite-combobox-item.js +2 -5
- package/dist/collection/components/calcite-combobox-item-group/calcite-combobox-item-group.css +7 -19
- package/dist/collection/components/calcite-combobox-item-group/calcite-combobox-item-group.js +3 -5
- package/dist/collection/components/calcite-date-picker/calcite-date-picker.css +5 -1
- package/dist/collection/components/calcite-date-picker/calcite-date-picker.js +91 -25
- package/dist/collection/components/calcite-date-picker/resources.js +2 -1
- package/dist/collection/components/calcite-date-picker-day/calcite-date-picker-day.css +27 -9
- 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 +5 -1
- 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 +5 -1
- 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 +5 -28
- package/dist/collection/components/calcite-dropdown/calcite-dropdown.js +6 -9
- package/dist/collection/components/calcite-dropdown-group/calcite-dropdown-group.css +5 -1
- package/dist/collection/components/calcite-dropdown-group/calcite-dropdown-group.js +2 -3
- package/dist/collection/components/calcite-dropdown-item/calcite-dropdown-item.css +41 -124
- package/dist/collection/components/calcite-dropdown-item/calcite-dropdown-item.js +4 -8
- package/dist/collection/components/calcite-fab/calcite-fab.css +5 -1
- package/dist/collection/components/calcite-fab/calcite-fab.js +3 -4
- package/dist/collection/components/calcite-filter/calcite-filter.css +8 -22
- package/dist/collection/components/calcite-filter/calcite-filter.js +7 -43
- package/dist/collection/components/calcite-flow/calcite-flow.css +5 -1
- package/dist/collection/components/calcite-flow/calcite-flow.js +1 -1
- package/dist/collection/components/calcite-graph/calcite-graph.css +5 -1
- package/dist/collection/components/calcite-graph/calcite-graph.js +2 -2
- package/dist/collection/components/calcite-handle/calcite-handle.css +5 -1
- 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/checkExtent16.json +1 -0
- package/dist/collection/components/calcite-icon/assets/calcite-icon/checkExtent24.json +1 -0
- package/dist/collection/components/calcite-icon/assets/calcite-icon/checkExtent32.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/driveTime16.json +1 -0
- package/dist/collection/components/calcite-icon/assets/calcite-icon/driveTime24.json +1 -0
- package/dist/collection/components/calcite-icon/assets/calcite-icon/driveTime32.json +1 -0
- package/dist/collection/components/calcite-icon/assets/calcite-icon/driveTimeLargest16.json +1 -0
- package/dist/collection/components/calcite-icon/assets/calcite-icon/driveTimeLargest24.json +1 -0
- package/dist/collection/components/calcite-icon/assets/calcite-icon/driveTimeLargest32.json +1 -0
- package/dist/collection/components/calcite-icon/assets/calcite-icon/driveTimeSmallest16.json +1 -0
- package/dist/collection/components/calcite-icon/assets/calcite-icon/driveTimeSmallest24.json +1 -0
- package/dist/collection/components/calcite-icon/assets/calcite-icon/driveTimeSmallest32.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/driveTimeXBar16.json +1 -0
- package/dist/collection/components/calcite-icon/assets/calcite-icon/driveTimeXBar24.json +1 -0
- package/dist/collection/components/calcite-icon/assets/calcite-icon/driveTimeXBar32.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/groupItems16.json +1 -0
- package/dist/collection/components/calcite-icon/assets/calcite-icon/groupItems24.json +1 -0
- package/dist/collection/components/calcite-icon/assets/calcite-icon/groupItems32.json +1 -0
- package/dist/collection/components/calcite-icon/assets/calcite-icon/groupLayoutElements16.json +1 -0
- package/dist/collection/components/calcite-icon/assets/calcite-icon/groupLayoutElements24.json +1 -0
- package/dist/collection/components/calcite-icon/assets/calcite-icon/groupLayoutElements32.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/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/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/ringsLargest16.json +1 -0
- package/dist/collection/components/calcite-icon/assets/calcite-icon/ringsLargest24.json +1 -0
- package/dist/collection/components/calcite-icon/assets/calcite-icon/ringsLargest32.json +1 -0
- package/dist/collection/components/calcite-icon/assets/calcite-icon/ringsSmallest16.json +1 -0
- package/dist/collection/components/calcite-icon/assets/calcite-icon/ringsSmallest24.json +1 -0
- package/dist/collection/components/calcite-icon/assets/calcite-icon/ringsSmallest32.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/ringsXBar16.json +1 -0
- package/dist/collection/components/calcite-icon/assets/calcite-icon/ringsXBar24.json +1 -0
- package/dist/collection/components/calcite-icon/assets/calcite-icon/ringsXBar32.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/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/ungroupItems16.json +1 -0
- package/dist/collection/components/calcite-icon/assets/calcite-icon/ungroupItems24.json +1 -0
- package/dist/collection/components/calcite-icon/assets/calcite-icon/ungroupItems32.json +1 -0
- package/dist/collection/components/calcite-icon/assets/calcite-icon/ungroupLayoutElements16.json +1 -0
- package/dist/collection/components/calcite-icon/assets/calcite-icon/ungroupLayoutElements24.json +1 -0
- package/dist/collection/components/calcite-icon/assets/calcite-icon/ungroupLayoutElements32.json +1 -0
- package/dist/collection/components/calcite-icon/calcite-icon.css +5 -1
- package/dist/collection/components/calcite-inline-editable/calcite-inline-editable.css +14 -56
- package/dist/collection/components/calcite-inline-editable/calcite-inline-editable.js +43 -32
- package/dist/collection/components/calcite-inline-editable/resources.js +7 -7
- package/dist/collection/components/calcite-input/calcite-input.css +119 -171
- package/dist/collection/components/calcite-input/calcite-input.js +143 -82
- package/dist/collection/components/calcite-input/resources.js +14 -12
- package/dist/collection/components/calcite-input-date-picker/calcite-input-date-picker.css +20 -1
- package/dist/collection/components/calcite-input-date-picker/calcite-input-date-picker.js +205 -46
- package/dist/collection/components/calcite-input-message/calcite-input-message.css +9 -10
- 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 +20 -1
- package/dist/collection/components/calcite-input-time-picker/calcite-input-time-picker.js +117 -82
- package/dist/collection/components/calcite-label/calcite-label.css +9 -8
- package/dist/collection/components/calcite-label/calcite-label.js +1 -4
- package/dist/collection/components/calcite-link/calcite-link.css +15 -18
- package/dist/collection/components/calcite-link/calcite-link.js +1 -1
- package/dist/collection/components/calcite-list/calcite-list.css +5 -1
- package/dist/collection/components/calcite-list-item/calcite-list-item.css +12 -1
- package/dist/collection/components/calcite-list-item-group/calcite-list-item-group.css +5 -1
- package/dist/collection/components/calcite-loader/calcite-loader.css +10 -11
- package/dist/collection/components/calcite-modal/calcite-modal.css +16 -26
- package/dist/collection/components/calcite-modal/calcite-modal.js +4 -7
- package/dist/collection/components/calcite-notice/calcite-notice.css +23 -33
- package/dist/collection/components/calcite-notice/calcite-notice.js +2 -4
- package/dist/collection/components/calcite-option/calcite-option.css +5 -1
- package/dist/collection/components/calcite-option/calcite-option.js +3 -1
- package/dist/collection/components/calcite-option-group/calcite-option-group.css +5 -1
- package/dist/collection/components/calcite-pagination/calcite-pagination.css +6 -2
- package/dist/collection/components/calcite-pagination/calcite-pagination.js +2 -4
- package/dist/collection/components/calcite-panel/calcite-panel.css +24 -36
- package/dist/collection/components/calcite-panel/calcite-panel.js +12 -15
- package/dist/collection/components/calcite-panel/resources.js +2 -0
- package/dist/collection/components/calcite-pick-list/calcite-pick-list.css +5 -1
- package/dist/collection/components/calcite-pick-list/calcite-pick-list.js +1 -1
- package/dist/collection/components/calcite-pick-list/shared-list-logic.js +2 -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 +6 -7
- 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 +6 -7
- package/dist/collection/components/calcite-pick-list-item/calcite-pick-list-item.js +1 -1
- package/dist/collection/components/calcite-popover/calcite-popover.css +7 -5
- package/dist/collection/components/calcite-popover/calcite-popover.js +2 -5
- package/dist/collection/components/calcite-popover-manager/calcite-popover-manager.css +5 -1
- package/dist/collection/components/calcite-progress/calcite-progress.css +5 -1
- package/dist/collection/components/calcite-radio-button/calcite-radio-button.css +92 -2
- package/dist/collection/components/calcite-radio-button/calcite-radio-button.js +83 -90
- package/dist/collection/components/calcite-radio-button/resources.js +1 -1
- package/dist/collection/components/calcite-radio-button-group/calcite-radio-button-group.css +5 -1
- package/dist/collection/components/calcite-radio-group/calcite-radio-group.css +20 -1
- package/dist/collection/components/calcite-radio-group/calcite-radio-group.js +78 -43
- package/dist/collection/components/calcite-radio-group-item/calcite-radio-group-item.css +7 -3
- package/dist/collection/components/calcite-radio-group-item/calcite-radio-group-item.js +5 -15
- package/dist/collection/components/calcite-rating/calcite-rating.css +23 -19
- package/dist/collection/components/calcite-rating/calcite-rating.js +51 -6
- package/dist/collection/components/calcite-scrim/calcite-scrim.css +6 -2
- package/dist/collection/components/calcite-select/calcite-select.css +27 -25
- package/dist/collection/components/calcite-select/calcite-select.js +100 -13
- package/dist/collection/components/calcite-shell/calcite-shell.css +17 -13
- package/dist/collection/components/calcite-shell-center-row/calcite-shell-center-row.css +8 -25
- 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 +87 -22
- package/dist/collection/components/calcite-shell-panel/calcite-shell-panel.js +205 -7
- package/dist/collection/components/calcite-shell-panel/resources.js +6 -1
- package/dist/collection/components/calcite-slider/calcite-slider.css +164 -165
- package/dist/collection/components/calcite-slider/calcite-slider.js +134 -41
- package/dist/collection/components/calcite-sortable-list/calcite-sortable-list.css +5 -1
- package/dist/collection/components/calcite-split-button/calcite-split-button.css +9 -2
- package/dist/collection/components/calcite-split-button/calcite-split-button.js +29 -6
- package/dist/collection/components/calcite-stepper/calcite-stepper.css +5 -1
- package/dist/collection/components/calcite-stepper/calcite-stepper.js +1 -2
- package/dist/collection/components/calcite-stepper-item/calcite-stepper-item.css +19 -73
- package/dist/collection/components/calcite-stepper-item/calcite-stepper-item.js +3 -6
- package/dist/collection/components/calcite-switch/calcite-switch.css +22 -21
- package/dist/collection/components/calcite-switch/calcite-switch.js +28 -67
- package/dist/collection/components/calcite-tab/calcite-tab.css +10 -2
- package/dist/collection/components/calcite-tab-nav/calcite-tab-nav.css +5 -3
- package/dist/collection/components/calcite-tab-title/calcite-tab-title.css +16 -23
- package/dist/collection/components/calcite-tab-title/calcite-tab-title.js +5 -9
- package/dist/collection/components/calcite-tabs/calcite-tabs.css +5 -1
- package/dist/collection/components/calcite-tile/calcite-tile.css +5 -1
- package/dist/collection/components/calcite-tile-select/calcite-tile-select.css +7 -15
- package/dist/collection/components/calcite-tile-select/calcite-tile-select.js +21 -15
- package/dist/collection/components/calcite-tile-select-group/calcite-tile-select-group.css +5 -1
- package/dist/collection/components/calcite-time-picker/calcite-time-picker.css +61 -92
- package/dist/collection/components/calcite-time-picker/calcite-time-picker.js +261 -296
- package/dist/collection/components/calcite-time-picker/resources.js +15 -9
- package/dist/collection/components/calcite-tip/calcite-tip.css +5 -1
- package/dist/collection/components/calcite-tip-group/calcite-tip-group.css +5 -1
- package/dist/collection/components/calcite-tip-manager/calcite-tip-manager.css +8 -13
- package/dist/collection/components/calcite-tooltip/calcite-tooltip.css +5 -1
- package/dist/collection/components/calcite-tooltip-manager/calcite-tooltip-manager.css +5 -1
- package/dist/collection/components/calcite-tooltip-manager/calcite-tooltip-manager.js +1 -2
- package/dist/collection/components/calcite-tree/calcite-tree.css +5 -1
- package/dist/collection/components/calcite-tree-item/calcite-tree-item.css +55 -73
- package/dist/collection/components/calcite-tree-item/calcite-tree-item.js +1 -2
- package/dist/collection/components/calcite-value-list/calcite-value-list.css +5 -1
- package/dist/collection/components/calcite-value-list/calcite-value-list.js +1 -1
- package/dist/collection/components/calcite-value-list-item/calcite-value-list-item.css +5 -1
- package/dist/collection/components/functional/CalciteExpandToggle.js +1 -1
- package/dist/collection/utils/conditionalSlot.js +26 -0
- package/dist/collection/utils/form.js +167 -14
- package/dist/collection/utils/key.js +0 -23
- package/dist/collection/utils/math.js +11 -0
- package/dist/collection/utils/number.js +9 -1
- package/dist/collection/utils/time.js +144 -36
- package/dist/components/CalciteExpandToggle.js +1 -1
- package/dist/components/calcite-accordion-item.js +9 -4
- package/dist/components/calcite-accordion.js +6 -4
- package/dist/components/calcite-action-bar.js +29 -2
- package/dist/components/calcite-action-group2.js +5 -2
- package/dist/components/calcite-action-menu2.js +5 -2
- package/dist/components/calcite-action-pad.js +7 -9
- package/dist/components/calcite-action2.js +5 -2
- package/dist/components/calcite-alert.js +25 -12
- package/dist/components/calcite-avatar.js +8 -6
- package/dist/components/calcite-block-section.js +7 -4
- package/dist/components/calcite-block.js +13 -8
- package/dist/components/calcite-button2.js +16 -8
- package/dist/components/calcite-card.js +7 -7
- package/dist/components/calcite-checkbox2.js +41 -88
- package/dist/components/calcite-chip2.js +8 -6
- package/dist/components/calcite-color-picker-hex-input2.js +19 -22
- package/dist/components/calcite-color-picker-swatch2.js +26 -15
- package/dist/components/calcite-color-picker.js +17 -19
- package/dist/components/calcite-combobox-item-group.js +7 -5
- package/dist/components/calcite-combobox-item.js +6 -5
- package/dist/components/calcite-combobox.js +89 -27
- package/dist/components/calcite-date-picker-day2.js +6 -4
- package/dist/components/calcite-date-picker-month-header2.js +13 -12
- package/dist/components/calcite-date-picker-month2.js +11 -11
- package/dist/components/calcite-date-picker2.js +54 -20
- package/dist/components/calcite-dropdown-group.js +7 -5
- package/dist/components/calcite-dropdown-item.js +9 -9
- package/dist/components/calcite-dropdown2.js +10 -9
- package/dist/components/calcite-fab.js +8 -6
- package/dist/components/calcite-filter2.js +8 -21
- package/dist/components/calcite-flow.js +5 -2
- package/dist/components/calcite-graph2.js +7 -4
- package/dist/components/calcite-handle2.js +5 -2
- package/dist/components/calcite-icon2.js +5 -2
- package/dist/components/calcite-inline-editable.js +56 -43
- package/dist/components/calcite-input-date-picker.js +91 -20
- package/dist/components/calcite-input-message.js +7 -5
- package/dist/components/calcite-input-time-picker.js +68 -53
- package/dist/components/calcite-input2.js +116 -78
- package/dist/components/calcite-label2.js +6 -5
- package/dist/components/calcite-link2.js +6 -3
- package/dist/components/calcite-list-item-group.js +5 -2
- package/dist/components/calcite-list-item.js +5 -2
- package/dist/components/calcite-list.js +5 -2
- package/dist/components/calcite-loader2.js +5 -2
- package/dist/components/calcite-modal.js +9 -8
- package/dist/components/calcite-notice.js +7 -5
- package/dist/components/calcite-option-group.js +5 -2
- package/dist/components/calcite-option.js +8 -3
- package/dist/components/calcite-pagination.js +7 -6
- package/dist/components/calcite-panel.js +15 -14
- package/dist/components/calcite-pick-list-group.js +7 -6
- package/dist/components/calcite-pick-list-item2.js +5 -2
- package/dist/components/calcite-pick-list.js +5 -2
- package/dist/components/calcite-popover-manager.js +5 -2
- package/dist/components/calcite-popover2.js +7 -6
- package/dist/components/calcite-progress2.js +5 -2
- package/dist/components/calcite-radio-button-group.js +5 -2
- package/dist/components/calcite-radio-button.js +89 -90
- package/dist/components/calcite-radio-group-item.js +10 -15
- package/dist/components/calcite-radio-group.js +40 -42
- package/dist/components/calcite-rating.js +18 -6
- package/dist/components/calcite-scrim2.js +5 -2
- package/dist/components/calcite-select.js +42 -10
- package/dist/components/calcite-shell-center-row.js +8 -6
- package/dist/components/calcite-shell-panel.js +176 -9
- package/dist/components/calcite-shell.js +5 -2
- package/dist/components/calcite-slider.js +57 -23
- package/dist/components/calcite-sortable-list.js +5 -2
- package/dist/components/calcite-split-button.js +9 -5
- package/dist/components/calcite-stepper-item.js +8 -7
- package/dist/components/calcite-stepper.js +6 -4
- package/dist/components/calcite-switch2.js +29 -54
- package/dist/components/calcite-tab-nav2.js +5 -2
- package/dist/components/calcite-tab-title2.js +10 -10
- package/dist/components/calcite-tab2.js +5 -2
- package/dist/components/calcite-tabs2.js +5 -2
- package/dist/components/calcite-tile-select-group.js +5 -2
- package/dist/components/calcite-tile-select.js +10 -11
- package/dist/components/calcite-tile2.js +5 -2
- package/dist/components/calcite-time-picker2.js +330 -195
- package/dist/components/calcite-tip-group.js +5 -2
- package/dist/components/calcite-tip-manager.js +5 -2
- package/dist/components/calcite-tip.js +5 -2
- package/dist/components/calcite-tooltip-manager2.js +6 -4
- package/dist/components/calcite-tooltip.js +5 -2
- package/dist/components/calcite-tree-item.js +6 -4
- package/dist/components/calcite-tree.js +5 -2
- package/dist/components/calcite-value-list-item.js +5 -2
- package/dist/components/calcite-value-list.js +5 -2
- package/dist/components/form.js +169 -15
- package/dist/components/math.js +12 -1
- package/dist/components/number.js +14 -3
- package/dist/components/popper.js +90 -64
- package/dist/components/shared-list-render.js +5 -5
- package/dist/custom-elements/index.d.ts +0 -6
- package/dist/custom-elements/index.js +1904 -1316
- package/dist/esm/{CalciteExpandToggle-235a6bfd.js → CalciteExpandToggle-c33bd6fd.js} +2 -2
- package/dist/esm/{CalciteHeading-dea3bd05.js → CalciteHeading-1d6cd311.js} +1 -1
- package/dist/esm/calcite-accordion_2.entry.js +8 -6
- package/dist/esm/calcite-action-bar.entry.js +27 -3
- 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 +5 -10
- package/dist/esm/calcite-action.entry.js +2 -2
- package/dist/esm/calcite-alert.entry.js +22 -12
- package/dist/esm/calcite-avatar.entry.js +5 -6
- package/dist/esm/calcite-block_2.entry.js +13 -11
- package/dist/esm/calcite-button.entry.js +12 -7
- package/dist/esm/calcite-card.entry.js +4 -8
- package/dist/esm/calcite-checkbox.entry.js +36 -85
- package/dist/esm/calcite-chip.entry.js +5 -6
- package/dist/esm/calcite-color-picker_3.entry.js +51 -53
- package/dist/esm/calcite-combobox_3.entry.js +88 -34
- package/dist/esm/calcite-date-picker_4.entry.js +67 -39
- package/dist/esm/calcite-dropdown_3.entry.js +14 -19
- package/dist/esm/calcite-fab.entry.js +5 -6
- package/dist/esm/calcite-filter.entry.js +5 -20
- package/dist/esm/calcite-flow.entry.js +2 -2
- package/dist/esm/calcite-graph_2.entry.js +54 -26
- package/dist/esm/calcite-handle.entry.js +2 -2
- package/dist/esm/calcite-icon.entry.js +2 -2
- package/dist/esm/calcite-inline-editable.entry.js +51 -42
- package/dist/esm/calcite-input-date-picker.entry.js +87 -22
- package/dist/esm/calcite-input-message.entry.js +4 -5
- package/dist/esm/calcite-input-time-picker_2.entry.js +369 -235
- package/dist/esm/calcite-input.entry.js +109 -77
- package/dist/esm/calcite-label.entry.js +3 -6
- package/dist/esm/calcite-link.entry.js +3 -3
- package/dist/esm/calcite-list_3.entry.js +5 -5
- package/dist/esm/calcite-loader.entry.js +2 -2
- package/dist/esm/calcite-modal.entry.js +6 -8
- package/dist/esm/calcite-notice.entry.js +4 -5
- package/dist/esm/calcite-option_3.entry.js +40 -12
- package/dist/esm/calcite-pagination.entry.js +4 -7
- package/dist/esm/calcite-panel.entry.js +13 -15
- package/dist/esm/calcite-pick-list_3.entry.js +8 -10
- package/dist/esm/calcite-popover_2.entry.js +7 -9
- package/dist/esm/calcite-progress.entry.js +2 -2
- package/dist/esm/calcite-radio-button-group.entry.js +2 -2
- package/dist/esm/calcite-radio-button.entry.js +256 -0
- package/dist/esm/calcite-radio-group_2.entry.js +38 -52
- package/dist/esm/calcite-rating.entry.js +14 -6
- package/dist/esm/calcite-scrim.entry.js +2 -2
- package/dist/esm/calcite-shell_3.entry.js +173 -13
- package/dist/esm/calcite-sortable-list.entry.js +2 -2
- package/dist/esm/calcite-split-button.entry.js +5 -6
- package/dist/esm/calcite-stepper_2.entry.js +7 -9
- package/dist/esm/calcite-switch.entry.js +25 -51
- package/dist/esm/calcite-tab_4.entry.js +10 -13
- package/dist/esm/calcite-tile-select_2.entry.js +6 -10
- package/dist/esm/calcite-tile.entry.js +2 -2
- package/dist/esm/calcite-tip_3.entry.js +5 -5
- package/dist/esm/calcite-tooltip_2.entry.js +5 -6
- package/dist/esm/calcite-tree_2.entry.js +4 -5
- package/dist/esm/calcite-value-list_2.entry.js +4 -4
- package/dist/esm/calcite.js +3 -3
- package/dist/esm/form-160b0fb5.js +174 -0
- package/dist/esm/{index-66803519.js → index-9de00868.js} +8 -365
- package/dist/esm/loader.js +3 -3
- package/dist/esm/{locale-6c1b85c7.js → locale-4c38cf6d.js} +1 -1
- package/dist/esm/math-456207f5.js +18 -0
- package/dist/esm/{number-e7393766.js → number-06e8500e.js} +14 -3
- package/dist/esm/{popper-dc4b45cf.js → popper-f5caedc4.js} +90 -64
- package/dist/esm/{resources-8dd80c84.js → resources-35c1823f.js} +6 -6
- package/dist/esm/{resources-c59a1a15.js → resources-b4eee1d4.js} +4 -3
- package/dist/esm-es5/CalciteExpandToggle-c33bd6fd.js +5 -0
- package/dist/esm-es5/{CalciteHeading-dea3bd05.js → CalciteHeading-1d6cd311.js} +1 -1
- 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 +1 -1
- 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 +1 -1
- 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 +2 -2
- package/dist/esm-es5/calcite-pick-list_3.entry.js +2 -2
- package/dist/esm-es5/calcite-popover_2.entry.js +2 -2
- package/dist/esm-es5/calcite-progress.entry.js +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 +1 -1
- 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/form-160b0fb5.js +5 -0
- package/dist/esm-es5/index-9de00868.js +5 -0
- package/dist/esm-es5/loader.js +1 -1
- package/dist/esm-es5/{locale-6c1b85c7.js → locale-4c38cf6d.js} +1 -1
- package/dist/esm-es5/math-456207f5.js +5 -0
- package/dist/esm-es5/number-06e8500e.js +5 -0
- package/dist/esm-es5/popper-f5caedc4.js +5 -0
- package/dist/esm-es5/resources-35c1823f.js +5 -0
- package/dist/esm-es5/{resources-c59a1a15.js → resources-b4eee1d4.js} +1 -1
- package/dist/extras/docs-json.json +503 -317
- package/dist/types/components/calcite-button/resources.d.ts +2 -0
- package/dist/types/components/calcite-date-picker/resources.d.ts +1 -0
- package/dist/types/components/calcite-input/resources.d.ts +2 -0
- package/dist/types/components/calcite-panel/resources.d.ts +2 -0
- package/dist/types/components/calcite-shell-panel/resources.d.ts +5 -0
- package/dist/types/components/calcite-time-picker/resources.d.ts +14 -8
- package/dist/types/components.d.ts +241 -127
- package/dist/types/preact.d.ts +0 -2
- package/dist/types/utils/conditionalSlot.d.ts +17 -0
- package/dist/types/utils/form.d.ts +112 -1
- package/dist/types/utils/key.d.ts +0 -4
- package/dist/types/utils/math.d.ts +1 -0
- package/dist/types/utils/number.d.ts +2 -0
- package/dist/types/utils/time.d.ts +18 -5
- package/hydrate/index.js +1877 -1268
- package/package.json +35 -34
- package/readme.md +2 -2
- package/CHANGELOG.md +0 -1509
- package/dist/calcite/p-0100aeb0.entry.js +0 -5
- package/dist/calcite/p-03706508.system.entry.js +0 -5
- package/dist/calcite/p-05d1dfc6.js +0 -5
- package/dist/calcite/p-06646eed.system.entry.js +0 -5
- package/dist/calcite/p-0797f73c.system.entry.js +0 -5
- package/dist/calcite/p-09e3fcfc.system.entry.js +0 -5
- package/dist/calcite/p-0ba6ede9.entry.js +0 -5
- package/dist/calcite/p-0ecd0204.system.entry.js +0 -5
- package/dist/calcite/p-0f3d73e3.system.entry.js +0 -5
- package/dist/calcite/p-10759c71.system.entry.js +0 -5
- package/dist/calcite/p-10de63d7.system.entry.js +0 -5
- package/dist/calcite/p-157d05ce.js +0 -5
- package/dist/calcite/p-15a45778.system.entry.js +0 -5
- package/dist/calcite/p-1e875199.entry.js +0 -5
- package/dist/calcite/p-1f7130a9.entry.js +0 -5
- package/dist/calcite/p-2418cceb.entry.js +0 -5
- package/dist/calcite/p-28261aae.entry.js +0 -5
- package/dist/calcite/p-3383d9b4.entry.js +0 -5
- package/dist/calcite/p-36e5db45.entry.js +0 -5
- package/dist/calcite/p-37859236.entry.js +0 -5
- package/dist/calcite/p-38ee7306.system.entry.js +0 -5
- package/dist/calcite/p-38f09842.entry.js +0 -5
- package/dist/calcite/p-3962cd38.entry.js +0 -5
- package/dist/calcite/p-3bb30b44.system.entry.js +0 -5
- package/dist/calcite/p-3cf93a58.system.entry.js +0 -5
- package/dist/calcite/p-3e438b5b.system.entry.js +0 -5
- package/dist/calcite/p-413b4857.system.entry.js +0 -5
- package/dist/calcite/p-4185db77.entry.js +0 -5
- package/dist/calcite/p-47313747.system.js +0 -5
- package/dist/calcite/p-49d5ee42.system.entry.js +0 -5
- package/dist/calcite/p-4c7e3915.system.entry.js +0 -5
- package/dist/calcite/p-502736d8.system.entry.js +0 -5
- package/dist/calcite/p-507b2cc4.entry.js +0 -5
- package/dist/calcite/p-51bc5466.entry.js +0 -5
- package/dist/calcite/p-527146c8.system.entry.js +0 -5
- package/dist/calcite/p-530b28e1.system.entry.js +0 -5
- package/dist/calcite/p-5322b333.system.entry.js +0 -5
- package/dist/calcite/p-56b352bf.system.js +0 -5
- package/dist/calcite/p-58e98b2d.system.entry.js +0 -5
- package/dist/calcite/p-58eca102.entry.js +0 -5
- package/dist/calcite/p-5ce47e9f.entry.js +0 -5
- package/dist/calcite/p-6621aee1.entry.js +0 -5
- package/dist/calcite/p-684ccd4e.system.entry.js +0 -5
- package/dist/calcite/p-6988c6b7.system.entry.js +0 -5
- package/dist/calcite/p-6c8a562f.system.entry.js +0 -5
- package/dist/calcite/p-70cd1387.system.entry.js +0 -5
- package/dist/calcite/p-71ea4a6f.system.entry.js +0 -5
- package/dist/calcite/p-72563742.js +0 -5
- package/dist/calcite/p-72fa390e.entry.js +0 -5
- package/dist/calcite/p-75f714c9.entry.js +0 -5
- package/dist/calcite/p-76ccd204.entry.js +0 -5
- package/dist/calcite/p-79cbbf2d.js +0 -5
- package/dist/calcite/p-7a6c6382.entry.js +0 -5
- package/dist/calcite/p-7ade2294.system.entry.js +0 -5
- package/dist/calcite/p-7b869bc5.entry.js +0 -5
- package/dist/calcite/p-7b89726e.system.entry.js +0 -5
- package/dist/calcite/p-7c161518.system.entry.js +0 -5
- package/dist/calcite/p-7c37ca39.entry.js +0 -5
- package/dist/calcite/p-7dd5c4e4.entry.js +0 -5
- package/dist/calcite/p-83302e1c.entry.js +0 -5
- package/dist/calcite/p-83ccefba.system.entry.js +0 -5
- package/dist/calcite/p-86af9de1.entry.js +0 -5
- package/dist/calcite/p-8953f712.entry.js +0 -5
- package/dist/calcite/p-89cdfa96.system.js +0 -5
- package/dist/calcite/p-8bc3e126.entry.js +0 -5
- package/dist/calcite/p-91645bf7.system.js +0 -5
- package/dist/calcite/p-91f046a2.entry.js +0 -5
- package/dist/calcite/p-98789055.system.entry.js +0 -5
- package/dist/calcite/p-98a632a4.system.entry.js +0 -5
- package/dist/calcite/p-9affee61.entry.js +0 -5
- package/dist/calcite/p-9f92ae58.system.entry.js +0 -5
- package/dist/calcite/p-9fa024e6.system.entry.js +0 -5
- package/dist/calcite/p-9fa5e356.entry.js +0 -5
- package/dist/calcite/p-9fa67508.entry.js +0 -5
- package/dist/calcite/p-9fc0dc2c.system.entry.js +0 -5
- package/dist/calcite/p-a09634e2.entry.js +0 -5
- package/dist/calcite/p-a5bfc29d.system.entry.js +0 -5
- package/dist/calcite/p-a677e52e.entry.js +0 -5
- package/dist/calcite/p-a7ba0292.system.js +0 -5
- package/dist/calcite/p-a8569c55.system.entry.js +0 -5
- package/dist/calcite/p-ac6b615b.entry.js +0 -5
- package/dist/calcite/p-b018fbbd.entry.js +0 -5
- package/dist/calcite/p-b1f88d45.system.js +0 -5
- package/dist/calcite/p-b244a00c.entry.js +0 -5
- package/dist/calcite/p-b2ab0485.js +0 -5
- package/dist/calcite/p-b3d6ab12.system.entry.js +0 -5
- package/dist/calcite/p-b41deed0.system.entry.js +0 -5
- package/dist/calcite/p-b42d730f.entry.js +0 -5
- package/dist/calcite/p-b4960d06.system.js +0 -5
- package/dist/calcite/p-b4e7b593.system.entry.js +0 -5
- package/dist/calcite/p-b8d040e5.system.entry.js +0 -5
- package/dist/calcite/p-ba1322e6.system.entry.js +0 -5
- package/dist/calcite/p-bf25e278.system.entry.js +0 -5
- package/dist/calcite/p-bf8b70a8.entry.js +0 -5
- package/dist/calcite/p-c399cfce.entry.js +0 -5
- package/dist/calcite/p-c4294f70.entry.js +0 -5
- package/dist/calcite/p-c48b4b7e.system.entry.js +0 -5
- package/dist/calcite/p-c8e4117c.system.entry.js +0 -5
- package/dist/calcite/p-c99d8f9e.system.entry.js +0 -5
- package/dist/calcite/p-c9ecea64.entry.js +0 -5
- package/dist/calcite/p-ca79fabf.system.entry.js +0 -5
- package/dist/calcite/p-cacca548.entry.js +0 -5
- package/dist/calcite/p-cc4aeb6f.entry.js +0 -5
- package/dist/calcite/p-cca94491.system.entry.js +0 -5
- package/dist/calcite/p-cd41629f.entry.js +0 -5
- package/dist/calcite/p-d35e423d.js +0 -5
- package/dist/calcite/p-d4059426.entry.js +0 -5
- package/dist/calcite/p-d53cc958.js +0 -5
- package/dist/calcite/p-d6048152.system.entry.js +0 -5
- package/dist/calcite/p-daa110fe.system.entry.js +0 -5
- package/dist/calcite/p-dc6aef8b.entry.js +0 -5
- package/dist/calcite/p-dcf30b00.system.entry.js +0 -5
- package/dist/calcite/p-de3a04c2.system.entry.js +0 -5
- package/dist/calcite/p-e35e7216.system.js +0 -5
- package/dist/calcite/p-e40dd6fe.system.entry.js +0 -5
- package/dist/calcite/p-e638ff0e.entry.js +0 -5
- package/dist/calcite/p-eccb140e.entry.js +0 -5
- package/dist/calcite/p-edf0f4f8.entry.js +0 -5
- package/dist/calcite/p-eed43a57.system.entry.js +0 -5
- package/dist/calcite/p-f0228763.entry.js +0 -5
- package/dist/calcite/p-f32e61bb.system.entry.js +0 -5
- package/dist/calcite/p-f5bb39bb.js +0 -5
- package/dist/calcite/p-f6f4648e.system.entry.js +0 -5
- package/dist/calcite/p-f93a7fce.entry.js +0 -5
- package/dist/calcite/p-fba65e4a.system.entry.js +0 -5
- package/dist/cjs/calcite-radio_2.cjs.entry.js +0 -300
- package/dist/cjs/form-00fb301c.js +0 -22
- package/dist/cjs/key-8bfb93ec.js +0 -37
- package/dist/cjs/math-9d44163f.js +0 -9
- 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 -68
- package/dist/components/key.js +0 -33
- package/dist/esm/calcite-radio_2.entry.js +0 -295
- package/dist/esm/form-cee9f632.js +0 -20
- package/dist/esm/key-69001a68.js +0 -33
- package/dist/esm/math-250d4476.js +0 -7
- package/dist/esm-es5/CalciteExpandToggle-235a6bfd.js +0 -5
- package/dist/esm-es5/calcite-radio_2.entry.js +0 -5
- package/dist/esm-es5/form-cee9f632.js +0 -5
- package/dist/esm-es5/index-66803519.js +0 -5
- package/dist/esm-es5/key-69001a68.js +0 -5
- package/dist/esm-es5/math-250d4476.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-8dd80c84.js +0 -5
- package/dist/types/components/calcite-accordion/calcite-accordion.d.ts +0 -42
- package/dist/types/components/calcite-accordion-item/calcite-accordion-item.d.ts +0 -53
- package/dist/types/components/calcite-action/calcite-action.d.ts +0 -73
- package/dist/types/components/calcite-action-bar/calcite-action-bar.d.ts +0 -68
- package/dist/types/components/calcite-action-group/calcite-action-group.d.ts +0 -39
- package/dist/types/components/calcite-action-menu/calcite-action-menu.d.ts +0 -82
- package/dist/types/components/calcite-action-pad/calcite-action-pad.d.ts +0 -52
- package/dist/types/components/calcite-alert/calcite-alert.d.ts +0 -79
- package/dist/types/components/calcite-avatar/calcite-avatar.d.ts +0 -26
- package/dist/types/components/calcite-block/calcite-block.d.ts +0 -72
- package/dist/types/components/calcite-block-section/calcite-block-section.d.ts +0 -43
- package/dist/types/components/calcite-button/calcite-button.d.ts +0 -81
- package/dist/types/components/calcite-card/calcite-card.d.ts +0 -43
- package/dist/types/components/calcite-checkbox/calcite-checkbox.d.ts +0 -74
- package/dist/types/components/calcite-chip/calcite-chip.d.ts +0 -37
- package/dist/types/components/calcite-color-picker/calcite-color-picker.d.ts +0 -225
- package/dist/types/components/calcite-color-picker-hex-input/calcite-color-picker-hex-input.d.ts +0 -51
- package/dist/types/components/calcite-color-picker-swatch/calcite-color-picker-swatch.d.ts +0 -23
- package/dist/types/components/calcite-combobox/calcite-combobox.d.ts +0 -159
- package/dist/types/components/calcite-combobox/interfaces.d.ts +0 -6
- package/dist/types/components/calcite-combobox/utils.d.ts +0 -6
- package/dist/types/components/calcite-combobox-item/calcite-combobox-item.d.ts +0 -46
- package/dist/types/components/calcite-combobox-item-group/calcite-combobox-item-group.d.ts +0 -17
- package/dist/types/components/calcite-date-picker/calcite-date-picker.d.ts +0 -114
- package/dist/types/components/calcite-date-picker-day/calcite-date-picker-day.d.ts +0 -45
- package/dist/types/components/calcite-date-picker-month/calcite-date-picker-month.d.ts +0 -97
- package/dist/types/components/calcite-date-picker-month-header/calcite-date-picker-month-header.d.ts +0 -55
- package/dist/types/components/calcite-dropdown/calcite-dropdown.d.ts +0 -98
- package/dist/types/components/calcite-dropdown-group/calcite-dropdown-group.d.ts +0 -32
- package/dist/types/components/calcite-dropdown-item/calcite-dropdown-item.d.ts +0 -52
- package/dist/types/components/calcite-fab/calcite-fab.d.ts +0 -47
- package/dist/types/components/calcite-filter/calcite-filter.d.ts +0 -62
- package/dist/types/components/calcite-flow/calcite-flow.d.ts +0 -22
- package/dist/types/components/calcite-graph/calcite-graph.d.ts +0 -29
- package/dist/types/components/calcite-handle/calcite-handle.d.ts +0 -22
- package/dist/types/components/calcite-icon/calcite-icon.d.ts +0 -32
- package/dist/types/components/calcite-inline-editable/calcite-inline-editable.d.ts +0 -70
- package/dist/types/components/calcite-input/calcite-input.d.ts +0 -161
- package/dist/types/components/calcite-input-date-picker/calcite-input-date-picker.d.ts +0 -135
- package/dist/types/components/calcite-input-message/calcite-input-message.d.ts +0 -27
- package/dist/types/components/calcite-input-time-picker/calcite-input-time-picker.d.ts +0 -73
- package/dist/types/components/calcite-label/calcite-label.d.ts +0 -30
- package/dist/types/components/calcite-link/calcite-link.d.ts +0 -33
- package/dist/types/components/calcite-list/calcite-list.d.ts +0 -16
- package/dist/types/components/calcite-list-item/calcite-list-item.d.ts +0 -37
- package/dist/types/components/calcite-list-item-group/calcite-list-item-group.d.ts +0 -18
- package/dist/types/components/calcite-loader/calcite-loader.d.ts +0 -27
- package/dist/types/components/calcite-modal/calcite-modal.d.ts +0 -88
- package/dist/types/components/calcite-notice/calcite-notice.d.ts +0 -51
- package/dist/types/components/calcite-pagination/calcite-pagination.d.ts +0 -51
- package/dist/types/components/calcite-panel/calcite-panel.d.ts +0 -119
- package/dist/types/components/calcite-pick-list/calcite-pick-list.d.ts +0 -74
- package/dist/types/components/calcite-pick-list/shared-list-logic.d.ts +0 -30
- package/dist/types/components/calcite-pick-list/shared-list-render.d.ts +0 -18
- package/dist/types/components/calcite-pick-list-group/calcite-pick-list-group.d.ts +0 -18
- package/dist/types/components/calcite-pick-list-item/calcite-pick-list-item.d.ts +0 -103
- package/dist/types/components/calcite-popover/calcite-popover.d.ts +0 -107
- package/dist/types/components/calcite-popover-manager/calcite-popover-manager.d.ts +0 -19
- package/dist/types/components/calcite-progress/calcite-progress.d.ts +0 -15
- package/dist/types/components/calcite-radio/calcite-radio.d.ts +0 -22
- package/dist/types/components/calcite-radio-button/calcite-radio-button.d.ts +0 -92
- package/dist/types/components/calcite-radio-button-group/calcite-radio-button-group.d.ts +0 -32
- package/dist/types/components/calcite-radio-group/calcite-radio-group.d.ts +0 -48
- package/dist/types/components/calcite-radio-group-item/calcite-radio-group-item.d.ts +0 -32
- package/dist/types/components/calcite-rating/calcite-rating.d.ts +0 -49
- package/dist/types/components/calcite-scrim/calcite-scrim.d.ts +0 -17
- package/dist/types/components/calcite-select/calcite-select.d.ts +0 -58
- package/dist/types/components/calcite-shell/calcite-shell.d.ts +0 -21
- package/dist/types/components/calcite-shell-center-row/calcite-shell-center-row.d.ts +0 -22
- package/dist/types/components/calcite-shell-panel/calcite-shell-panel.d.ts +0 -36
- package/dist/types/components/calcite-slider/calcite-slider.d.ts +0 -173
- package/dist/types/components/calcite-sortable-list/calcite-sortable-list.d.ts +0 -50
- package/dist/types/components/calcite-split-button/calcite-split-button.d.ts +0 -49
- package/dist/types/components/calcite-stepper/calcite-stepper.d.ts +0 -58
- package/dist/types/components/calcite-stepper-item/calcite-stepper-item.d.ts +0 -65
- package/dist/types/components/calcite-switch/calcite-switch.d.ts +0 -45
- package/dist/types/components/calcite-tab/calcite-tab.d.ts +0 -42
- package/dist/types/components/calcite-tab-nav/calcite-tab-nav.d.ts +0 -74
- package/dist/types/components/calcite-tab-title/calcite-tab-title.d.ts +0 -92
- package/dist/types/components/calcite-tabs/calcite-tabs.d.ts +0 -65
- package/dist/types/components/calcite-tile/calcite-tile.d.ts +0 -33
- package/dist/types/components/calcite-tile-select/calcite-tile-select.d.ts +0 -57
- package/dist/types/components/calcite-time-picker/calcite-time-picker.d.ts +0 -123
- package/dist/types/components/calcite-tip/calcite-tip.d.ts +0 -44
- package/dist/types/components/calcite-tip-manager/calcite-tip-manager.d.ts +0 -65
- package/dist/types/components/calcite-tooltip/calcite-tooltip.d.ts +0 -60
- package/dist/types/components/calcite-tooltip-manager/calcite-tooltip-manager.d.ts +0 -41
- package/dist/types/components/calcite-tree/calcite-tree.d.ts +0 -38
- package/dist/types/components/calcite-tree/interfaces.d.ts +0 -10
- package/dist/types/components/calcite-tree-item/calcite-tree-item.d.ts +0 -56
- package/dist/types/components/calcite-value-list/calcite-value-list.d.ts +0 -87
- package/dist/types/components/calcite-value-list-item/calcite-value-list-item.d.ts +0 -76
- package/dist/types/components/functional/CalciteExpandToggle.d.ts +0 -19
- package/dist/types/utils/label.d.ts +0 -35
|
@@ -6,14 +6,80 @@
|
|
|
6
6
|
|
|
7
7
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
8
8
|
|
|
9
|
-
const index = require('./index-
|
|
9
|
+
const index = require('./index-6b5d2de5.js');
|
|
10
10
|
const guid = require('./guid-b270f0db.js');
|
|
11
|
-
const
|
|
12
|
-
const number = require('./number-e6448e15.js');
|
|
11
|
+
const number = require('./number-73f7b474.js');
|
|
13
12
|
const label = require('./label-8e3552b2.js');
|
|
13
|
+
const form = require('./form-a5b44a1f.js');
|
|
14
14
|
require('./dom-19822169.js');
|
|
15
15
|
|
|
16
16
|
const maxTenthForMinuteAndSecond = 5;
|
|
17
|
+
function createLocaleDateTimeFormatter(locale, includeSeconds = true) {
|
|
18
|
+
try {
|
|
19
|
+
const options = {
|
|
20
|
+
hour: "2-digit",
|
|
21
|
+
minute: "2-digit",
|
|
22
|
+
timeZone: "UTC"
|
|
23
|
+
};
|
|
24
|
+
if (includeSeconds) {
|
|
25
|
+
options.second = "2-digit";
|
|
26
|
+
}
|
|
27
|
+
return new Intl.DateTimeFormat(locale, options);
|
|
28
|
+
}
|
|
29
|
+
catch (e) {
|
|
30
|
+
throw new Error(`Invalid locale supplied while attempting to create a DateTime formatter: ${locale}`);
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
function formatTimePart(number) {
|
|
34
|
+
const numberAsString = number.toString();
|
|
35
|
+
return number >= 0 && number <= 9 ? numberAsString.padStart(2, "0") : numberAsString;
|
|
36
|
+
}
|
|
37
|
+
function formatTimeString(value) {
|
|
38
|
+
if (!isValidTime(value)) {
|
|
39
|
+
return null;
|
|
40
|
+
}
|
|
41
|
+
const [hourString, minuteString, secondString] = value.split(":");
|
|
42
|
+
const hour = formatTimePart(parseInt(hourString));
|
|
43
|
+
const minute = formatTimePart(parseInt(minuteString));
|
|
44
|
+
if (secondString) {
|
|
45
|
+
const second = formatTimePart(parseInt(secondString));
|
|
46
|
+
return `${hour}:${minute}:${second}`;
|
|
47
|
+
}
|
|
48
|
+
return `${hour}:${minute}`;
|
|
49
|
+
}
|
|
50
|
+
function getLocaleHourCycle(locale) {
|
|
51
|
+
const formatter = createLocaleDateTimeFormatter(locale);
|
|
52
|
+
const parts = formatter.formatToParts(new Date(Date.UTC(0, 0, 0, 0, 0, 0)));
|
|
53
|
+
return getLocalizedTimePart("meridiem", parts) ? "12" : "24";
|
|
54
|
+
}
|
|
55
|
+
function getLocalizedTimePart(part, parts) {
|
|
56
|
+
var _a, _b, _c, _d;
|
|
57
|
+
if (!part || !parts) {
|
|
58
|
+
return null;
|
|
59
|
+
}
|
|
60
|
+
if (part === "hourSuffix") {
|
|
61
|
+
const hourIndex = parts.indexOf(parts.find(({ type }) => type === "hour"));
|
|
62
|
+
const minuteIndex = parts.indexOf(parts.find(({ type }) => type === "minute"));
|
|
63
|
+
const hourSuffix = parts[hourIndex + 1];
|
|
64
|
+
return hourSuffix && hourSuffix.type === "literal" && minuteIndex - hourIndex === 2
|
|
65
|
+
? ((_a = hourSuffix.value) === null || _a === void 0 ? void 0 : _a.trim()) || null
|
|
66
|
+
: null;
|
|
67
|
+
}
|
|
68
|
+
if (part === "minuteSuffix") {
|
|
69
|
+
const minuteIndex = parts.indexOf(parts.find(({ type }) => type === "minute"));
|
|
70
|
+
const secondIndex = parts.indexOf(parts.find(({ type }) => type === "second"));
|
|
71
|
+
const minuteSuffix = parts[minuteIndex + 1];
|
|
72
|
+
return minuteSuffix && minuteSuffix.type === "literal" && secondIndex - minuteIndex === 2
|
|
73
|
+
? ((_b = minuteSuffix.value) === null || _b === void 0 ? void 0 : _b.trim()) || null
|
|
74
|
+
: null;
|
|
75
|
+
}
|
|
76
|
+
if (part === "secondSuffix") {
|
|
77
|
+
const secondIndex = parts.indexOf(parts.find(({ type }) => type === "second"));
|
|
78
|
+
const secondSuffix = parts[secondIndex + 1];
|
|
79
|
+
return secondSuffix && secondSuffix.type === "literal" ? ((_c = secondSuffix.value) === null || _c === void 0 ? void 0 : _c.trim()) || null : null;
|
|
80
|
+
}
|
|
81
|
+
return ((_d = parts.find(({ type }) => (part == "meridiem" ? type === "dayPeriod" : type === part))) === null || _d === void 0 ? void 0 : _d.value) || null;
|
|
82
|
+
}
|
|
17
83
|
function getMeridiem(hour) {
|
|
18
84
|
if (!number.isValidNumber(hour)) {
|
|
19
85
|
return null;
|
|
@@ -21,54 +87,96 @@ function getMeridiem(hour) {
|
|
|
21
87
|
const hourAsNumber = parseInt(hour);
|
|
22
88
|
return hourAsNumber >= 0 && hourAsNumber <= 11 ? "AM" : "PM";
|
|
23
89
|
}
|
|
24
|
-
function
|
|
25
|
-
if (!
|
|
26
|
-
return
|
|
90
|
+
function isValidTime(value) {
|
|
91
|
+
if (!value || value.startsWith(":") || value.endsWith(":")) {
|
|
92
|
+
return false;
|
|
27
93
|
}
|
|
28
|
-
const
|
|
29
|
-
|
|
30
|
-
|
|
94
|
+
const splitValue = value.split(":");
|
|
95
|
+
const validLength = splitValue.length > 1 && splitValue.length < 4;
|
|
96
|
+
if (!validLength) {
|
|
97
|
+
return false;
|
|
98
|
+
}
|
|
99
|
+
const [hour, minute, second] = splitValue;
|
|
100
|
+
const hourAsNumber = parseInt(splitValue[0]);
|
|
101
|
+
const minuteAsNumber = parseInt(splitValue[1]);
|
|
102
|
+
const secondAsNumber = parseInt(splitValue[2]);
|
|
103
|
+
const hourValid = number.isValidNumber(hour) && hourAsNumber >= 0 && hourAsNumber < 24;
|
|
104
|
+
const minuteValid = number.isValidNumber(minute) && minuteAsNumber >= 0 && minuteAsNumber < 60;
|
|
105
|
+
const secondValid = number.isValidNumber(second) && secondAsNumber >= 0 && secondAsNumber < 60;
|
|
106
|
+
if ((hourValid && minuteValid && !second) || (hourValid && minuteValid && secondValid)) {
|
|
107
|
+
return true;
|
|
31
108
|
}
|
|
32
|
-
return hourAsNumber > 12 ? formatTimePart(hourAsNumber - 12) : hour;
|
|
33
109
|
}
|
|
34
|
-
function
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
110
|
+
function isValidTimePart(value, part) {
|
|
111
|
+
if (part === "meridiem") {
|
|
112
|
+
return value === "AM" || value === "PM";
|
|
113
|
+
}
|
|
114
|
+
if (!number.isValidNumber(value)) {
|
|
115
|
+
return false;
|
|
116
|
+
}
|
|
117
|
+
const valueAsNumber = Number(value);
|
|
118
|
+
return part === "hour" ? valueAsNumber >= 0 && valueAsNumber < 24 : valueAsNumber >= 0 && valueAsNumber < 60;
|
|
42
119
|
}
|
|
43
|
-
function
|
|
44
|
-
if (!value
|
|
120
|
+
function localizeTimePart(value, part, locale) {
|
|
121
|
+
if (!isValidTimePart(value, part)) {
|
|
122
|
+
return;
|
|
123
|
+
}
|
|
124
|
+
const valueAsNumber = parseInt(value);
|
|
125
|
+
const date = new Date(Date.UTC(0, 0, 0, part === "hour" ? valueAsNumber : part === "meridiem" ? (value === "AM" ? 0 : 12) : 0, part === "minute" ? valueAsNumber : 0, part === "second" ? valueAsNumber : 0));
|
|
126
|
+
if (!date) {
|
|
127
|
+
return;
|
|
128
|
+
}
|
|
129
|
+
const formatter = createLocaleDateTimeFormatter(locale);
|
|
130
|
+
const parts = formatter.formatToParts(date);
|
|
131
|
+
return getLocalizedTimePart(part, parts);
|
|
132
|
+
}
|
|
133
|
+
function localizeTimeString(value, locale = "en", includeSeconds = true) {
|
|
134
|
+
if (!isValidTime(value)) {
|
|
45
135
|
return null;
|
|
46
136
|
}
|
|
47
|
-
const
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
137
|
+
const { hour, minute, second = "0" } = parseTimeString(value);
|
|
138
|
+
const dateFromTimeString = new Date(Date.UTC(0, 0, 0, parseInt(hour), parseInt(minute), parseInt(second)));
|
|
139
|
+
const formatter = createLocaleDateTimeFormatter(locale, includeSeconds);
|
|
140
|
+
return (formatter === null || formatter === void 0 ? void 0 : formatter.format(dateFromTimeString)) || null;
|
|
141
|
+
}
|
|
142
|
+
function localizeTimeStringToParts(value, locale = "en") {
|
|
143
|
+
if (!isValidTime(value)) {
|
|
144
|
+
return null;
|
|
145
|
+
}
|
|
146
|
+
const { hour, minute, second = "0" } = parseTimeString(value);
|
|
147
|
+
const dateFromTimeString = new Date(Date.UTC(0, 0, 0, parseInt(hour), parseInt(minute), parseInt(second)));
|
|
148
|
+
if (dateFromTimeString) {
|
|
149
|
+
const formatter = createLocaleDateTimeFormatter(locale);
|
|
150
|
+
const parts = formatter.formatToParts(dateFromTimeString);
|
|
151
|
+
return {
|
|
152
|
+
localizedHour: getLocalizedTimePart("hour", parts),
|
|
153
|
+
localizedHourSuffix: getLocalizedTimePart("hourSuffix", parts),
|
|
154
|
+
localizedMinute: getLocalizedTimePart("minute", parts),
|
|
155
|
+
localizedMinuteSuffix: getLocalizedTimePart("minuteSuffix", parts),
|
|
156
|
+
localizedSecond: getLocalizedTimePart("second", parts),
|
|
157
|
+
localizedSecondSuffix: getLocalizedTimePart("secondSuffix", parts),
|
|
158
|
+
localizedMeridiem: getLocalizedTimePart("meridiem", parts)
|
|
159
|
+
};
|
|
63
160
|
}
|
|
64
161
|
return null;
|
|
65
162
|
}
|
|
66
|
-
function
|
|
67
|
-
|
|
68
|
-
|
|
163
|
+
function parseTimeString(value) {
|
|
164
|
+
if (isValidTime(value)) {
|
|
165
|
+
const [hour, minute, second] = value.split(":");
|
|
166
|
+
return {
|
|
167
|
+
hour,
|
|
168
|
+
minute,
|
|
169
|
+
second
|
|
170
|
+
};
|
|
171
|
+
}
|
|
172
|
+
return {
|
|
173
|
+
hour: null,
|
|
174
|
+
minute: null,
|
|
175
|
+
second: null
|
|
176
|
+
};
|
|
69
177
|
}
|
|
70
178
|
|
|
71
|
-
const calciteInputTimePickerCss = "@-webkit-keyframes in{0%{opacity:0}100%{opacity:1}}@keyframes in{0%{opacity:0}100%{opacity:1}}@-webkit-keyframes in-down{0%{opacity:0;-webkit-transform:translate3D(0, -5px, 0);transform:translate3D(0, -5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@keyframes in-down{0%{opacity:0;-webkit-transform:translate3D(0, -5px, 0);transform:translate3D(0, -5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@-webkit-keyframes in-up{0%{opacity:0;-webkit-transform:translate3D(0, 5px, 0);transform:translate3D(0, 5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@keyframes in-up{0%{opacity:0;-webkit-transform:translate3D(0, 5px, 0);transform:translate3D(0, 5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@-webkit-keyframes in-scale{0%{opacity:0;-webkit-transform:scale3D(0.95, 0.95, 1);transform:scale3D(0.95, 0.95, 1)}100%{opacity:1;-webkit-transform:scale3D(1, 1, 1);transform:scale3D(1, 1, 1)}}@keyframes in-scale{0%{opacity:0;-webkit-transform:scale3D(0.95, 0.95, 1);transform:scale3D(0.95, 0.95, 1)}100%{opacity:1;-webkit-transform:scale3D(1, 1, 1);transform:scale3D(1, 1, 1)}}:root{--calcite-animation-timing:300ms}.calcite-animate{opacity:0;-webkit-animation-fill-mode:both;animation-fill-mode:both;-webkit-animation-duration:var(--calcite-animation-timing);animation-duration:var(--calcite-animation-timing)}.calcite-animate__in{-webkit-animation-name:in;animation-name:in}.calcite-animate__in-down{-webkit-animation-name:in-down;animation-name:in-down}.calcite-animate__in-up{-webkit-animation-name:in-up;animation-name:in-up}.calcite-animate__in-scale{-webkit-animation-name:in-scale;animation-name:in-scale}:root{--calcite-popper-transition:150ms ease-in-out}:host([hidden]){display:none}:host{display:inline-block;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}";
|
|
179
|
+
const calciteInputTimePickerCss = "@-webkit-keyframes in{0%{opacity:0}100%{opacity:1}}@keyframes in{0%{opacity:0}100%{opacity:1}}@-webkit-keyframes in-down{0%{opacity:0;-webkit-transform:translate3D(0, -5px, 0);transform:translate3D(0, -5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@keyframes in-down{0%{opacity:0;-webkit-transform:translate3D(0, -5px, 0);transform:translate3D(0, -5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@-webkit-keyframes in-up{0%{opacity:0;-webkit-transform:translate3D(0, 5px, 0);transform:translate3D(0, 5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@keyframes in-up{0%{opacity:0;-webkit-transform:translate3D(0, 5px, 0);transform:translate3D(0, 5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@-webkit-keyframes in-scale{0%{opacity:0;-webkit-transform:scale3D(0.95, 0.95, 1);transform:scale3D(0.95, 0.95, 1)}100%{opacity:1;-webkit-transform:scale3D(1, 1, 1);transform:scale3D(1, 1, 1)}}@keyframes in-scale{0%{opacity:0;-webkit-transform:scale3D(0.95, 0.95, 1);transform:scale3D(0.95, 0.95, 1)}100%{opacity:1;-webkit-transform:scale3D(1, 1, 1);transform:scale3D(1, 1, 1)}}:root{--calcite-animation-timing:calc(150ms * var(--calcite-internal-duration-factor));--calcite-internal-duration-factor:var(--calcite-duration-factor, 1);--calcite-internal-animation-timing-fast:calc(100ms * var(--calcite-internal-duration-factor));--calcite-internal-animation-timing-medium:calc(200ms * var(--calcite-internal-duration-factor));--calcite-internal-animation-timing-slow:calc(300ms * var(--calcite-internal-duration-factor))}.calcite-animate{opacity:0;-webkit-animation-fill-mode:both;animation-fill-mode:both;-webkit-animation-duration:var(--calcite-animation-timing);animation-duration:var(--calcite-animation-timing)}.calcite-animate__in{-webkit-animation-name:in;animation-name:in}.calcite-animate__in-down{-webkit-animation-name:in-down;animation-name:in-down}.calcite-animate__in-up{-webkit-animation-name:in-up;animation-name:in-up}.calcite-animate__in-scale{-webkit-animation-name:in-scale;animation-name:in-scale}:root{--calcite-popper-transition:150ms ease-in-out}:host([hidden]){display:none}:host{display:inline-block;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}::slotted(input[slot=hidden-form-input]){bottom:0 !important;left:0 !important;margin:0 !important;opacity:0 !important;outline:none !important;padding:0 !important;position:absolute !important;right:0 !important;top:0 !important;-webkit-transform:none !important;transform:none !important;-webkit-appearance:none !important;z-index:-1 !important}";
|
|
72
180
|
|
|
73
181
|
let CalciteInputTimePicker = class {
|
|
74
182
|
constructor(hostRef) {
|
|
@@ -83,11 +191,20 @@ let CalciteInputTimePicker = class {
|
|
|
83
191
|
this.active = false;
|
|
84
192
|
/** The disabled state of the time input */
|
|
85
193
|
this.disabled = false;
|
|
86
|
-
/**
|
|
87
|
-
|
|
194
|
+
/**
|
|
195
|
+
* BCP 47 language tag for desired language and country format
|
|
196
|
+
* @internal
|
|
197
|
+
*/
|
|
198
|
+
this.locale = document.documentElement.lang || navigator.language || "en";
|
|
199
|
+
/**
|
|
200
|
+
* When true, makes the component required for form-submission.
|
|
201
|
+
*
|
|
202
|
+
* @internal
|
|
203
|
+
*/
|
|
204
|
+
this.required = false;
|
|
88
205
|
/** The scale (size) of the time input */
|
|
89
206
|
this.scale = "m";
|
|
90
|
-
/** number that specifies the granularity that the value must adhere to */
|
|
207
|
+
/** number (seconds) that specifies the granularity that the value must adhere to */
|
|
91
208
|
this.step = 60;
|
|
92
209
|
/** The selected time (always 24-hour format)*/
|
|
93
210
|
this.value = null;
|
|
@@ -102,56 +219,60 @@ let CalciteInputTimePicker = class {
|
|
|
102
219
|
//--------------------------------------------------------------------------
|
|
103
220
|
this.calciteInputBlurHandler = () => {
|
|
104
221
|
this.active = false;
|
|
105
|
-
const
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
}
|
|
222
|
+
const shouldIncludeSeconds = this.shouldIncludeSeconds();
|
|
223
|
+
const localizedInputValue = localizeTimeString(this.calciteInputEl.value, this.locale, shouldIncludeSeconds);
|
|
224
|
+
this.setInputValue(localizedInputValue || localizeTimeString(this.value, this.locale, shouldIncludeSeconds));
|
|
109
225
|
};
|
|
110
226
|
this.calciteInputFocusHandler = () => {
|
|
111
227
|
this.active = true;
|
|
112
228
|
};
|
|
113
229
|
this.calciteInputInputHandler = (event) => {
|
|
114
|
-
|
|
230
|
+
const target = event.target;
|
|
231
|
+
this.setValue({ value: target.value });
|
|
232
|
+
};
|
|
233
|
+
this.timePickerChangeHandler = (event) => {
|
|
234
|
+
event.stopPropagation();
|
|
235
|
+
const target = event.target;
|
|
236
|
+
const value = target.value;
|
|
237
|
+
this.setValue({ value, origin: "time-picker" });
|
|
115
238
|
};
|
|
116
239
|
this.setCalciteInputEl = (el) => {
|
|
117
240
|
this.calciteInputEl = el;
|
|
118
241
|
};
|
|
242
|
+
this.setCalciteTimePickerEl = (el) => {
|
|
243
|
+
this.calciteTimePickerEl = el;
|
|
244
|
+
};
|
|
119
245
|
this.setInputValue = (newInputValue) => {
|
|
120
246
|
if (!this.calciteInputEl) {
|
|
121
247
|
return;
|
|
122
248
|
}
|
|
123
|
-
|
|
124
|
-
const { hour, minute, second } = parseTimeString(newInputValue);
|
|
125
|
-
this.calciteInputEl.value = newInputValue
|
|
126
|
-
? `${getMeridiemHour(hour)}:${minute}${this.step !== 60 ? ":" + second : ""} ${getMeridiem(hour)}`
|
|
127
|
-
: null;
|
|
128
|
-
}
|
|
129
|
-
else {
|
|
130
|
-
this.calciteInputEl.value = newInputValue;
|
|
131
|
-
}
|
|
249
|
+
this.calciteInputEl.value = newInputValue;
|
|
132
250
|
};
|
|
133
251
|
this.setValue = ({ value, origin = "input" }) => {
|
|
134
252
|
const previousValue = this.value;
|
|
135
|
-
const
|
|
253
|
+
const newValue = formatTimeString(value);
|
|
254
|
+
const newLocalizedValue = localizeTimeString(newValue, this.locale, this.shouldIncludeSeconds());
|
|
136
255
|
this.internalValueChange = origin !== "external" && origin !== "loading";
|
|
137
256
|
const shouldEmit = origin !== "loading" &&
|
|
138
257
|
origin !== "external" &&
|
|
139
258
|
((value !== this.previousValidValue && !value) ||
|
|
140
|
-
!!(!this.previousValidValue &&
|
|
141
|
-
(
|
|
259
|
+
!!(!this.previousValidValue && newValue) ||
|
|
260
|
+
(newValue !== this.previousValidValue && newValue));
|
|
142
261
|
if (value) {
|
|
143
262
|
if (shouldEmit) {
|
|
144
|
-
this.previousValidValue =
|
|
263
|
+
this.previousValidValue = newValue;
|
|
145
264
|
}
|
|
146
|
-
if (
|
|
147
|
-
this.value =
|
|
265
|
+
if (newValue && newValue !== this.value) {
|
|
266
|
+
this.value = newValue;
|
|
148
267
|
}
|
|
268
|
+
this.localizedValue = newLocalizedValue;
|
|
149
269
|
}
|
|
150
270
|
else {
|
|
151
271
|
this.value = value;
|
|
272
|
+
this.localizedValue = null;
|
|
152
273
|
}
|
|
153
274
|
if (origin === "time-picker" || origin === "external") {
|
|
154
|
-
this.setInputValue(
|
|
275
|
+
this.setInputValue(newLocalizedValue);
|
|
155
276
|
}
|
|
156
277
|
if (shouldEmit) {
|
|
157
278
|
const changeEvent = this.calciteInputTimePickerChange.emit();
|
|
@@ -162,19 +283,28 @@ let CalciteInputTimePicker = class {
|
|
|
162
283
|
this.previousValidValue = previousValue;
|
|
163
284
|
}
|
|
164
285
|
else {
|
|
165
|
-
this.previousValidValue =
|
|
286
|
+
this.previousValidValue = newValue;
|
|
166
287
|
}
|
|
167
288
|
}
|
|
168
289
|
};
|
|
169
290
|
}
|
|
291
|
+
localeWatcher(newLocale) {
|
|
292
|
+
this.setInputValue(localizeTimeString(this.value, newLocale, this.shouldIncludeSeconds()));
|
|
293
|
+
}
|
|
170
294
|
valueWatcher(newValue) {
|
|
171
295
|
if (!this.internalValueChange) {
|
|
172
296
|
this.setValue({ value: newValue, origin: "external" });
|
|
173
297
|
}
|
|
174
298
|
this.internalValueChange = false;
|
|
175
299
|
}
|
|
300
|
+
clickHandler(event) {
|
|
301
|
+
if (event.composedPath().includes(this.calciteTimePickerEl)) {
|
|
302
|
+
return;
|
|
303
|
+
}
|
|
304
|
+
this.setFocus();
|
|
305
|
+
}
|
|
176
306
|
keyUpHandler(event) {
|
|
177
|
-
if (
|
|
307
|
+
if (event.key === "Escape" && this.active) {
|
|
178
308
|
this.active = false;
|
|
179
309
|
}
|
|
180
310
|
}
|
|
@@ -183,21 +313,6 @@ let CalciteInputTimePicker = class {
|
|
|
183
313
|
event.stopPropagation();
|
|
184
314
|
this.active = false;
|
|
185
315
|
}
|
|
186
|
-
timePickerChangeHandler(event) {
|
|
187
|
-
event.preventDefault();
|
|
188
|
-
event.stopPropagation();
|
|
189
|
-
if (event.detail) {
|
|
190
|
-
const { hour, minute, second } = event.detail;
|
|
191
|
-
let value;
|
|
192
|
-
if (hour && minute) {
|
|
193
|
-
value = second && this.step !== 60 ? `${hour}:${minute}:${second}` : `${hour}:${minute}`;
|
|
194
|
-
}
|
|
195
|
-
else {
|
|
196
|
-
value = "";
|
|
197
|
-
}
|
|
198
|
-
this.setValue({ value, origin: "time-picker" });
|
|
199
|
-
}
|
|
200
|
-
}
|
|
201
316
|
timePickerFocusHandler(event) {
|
|
202
317
|
event.preventDefault();
|
|
203
318
|
event.stopPropagation();
|
|
@@ -220,6 +335,9 @@ let CalciteInputTimePicker = class {
|
|
|
220
335
|
onLabelClick() {
|
|
221
336
|
this.setFocus();
|
|
222
337
|
}
|
|
338
|
+
shouldIncludeSeconds() {
|
|
339
|
+
return this.step < 60;
|
|
340
|
+
}
|
|
223
341
|
//--------------------------------------------------------------------------
|
|
224
342
|
//
|
|
225
343
|
// Lifecycle
|
|
@@ -227,17 +345,17 @@ let CalciteInputTimePicker = class {
|
|
|
227
345
|
//--------------------------------------------------------------------------
|
|
228
346
|
connectedCallback() {
|
|
229
347
|
if (this.value) {
|
|
230
|
-
this.setValue({ value: this.value, origin: "loading" });
|
|
348
|
+
this.setValue({ value: isValidTime(this.value) ? this.value : undefined, origin: "loading" });
|
|
231
349
|
}
|
|
232
350
|
label.connectLabel(this);
|
|
351
|
+
form.connectForm(this);
|
|
233
352
|
}
|
|
234
353
|
componentDidLoad() {
|
|
235
|
-
|
|
236
|
-
this.setInputValue(this.value);
|
|
237
|
-
}
|
|
354
|
+
this.setInputValue(this.localizedValue);
|
|
238
355
|
}
|
|
239
356
|
disconnectedCallback() {
|
|
240
357
|
label.disconnectLabel(this);
|
|
358
|
+
form.disconnectForm(this);
|
|
241
359
|
}
|
|
242
360
|
// --------------------------------------------------------------------------
|
|
243
361
|
//
|
|
@@ -245,38 +363,44 @@ let CalciteInputTimePicker = class {
|
|
|
245
363
|
//
|
|
246
364
|
// --------------------------------------------------------------------------
|
|
247
365
|
render() {
|
|
248
|
-
const { hour, minute, second } = parseTimeString(this.value);
|
|
249
366
|
const popoverId = `${this.referenceElementId}-popover`;
|
|
250
|
-
return (index.h(index.Host, null, index.h("div", { "aria-controls": popoverId, "aria-haspopup": "dialog", "aria-label": this.name, "aria-owns": popoverId, id: this.referenceElementId, role: "combobox" }, index.h("calcite-input", { disabled: this.disabled, icon: "clock", label: label.getLabelText(this),
|
|
367
|
+
return (index.h(index.Host, null, index.h("div", { "aria-controls": popoverId, "aria-haspopup": "dialog", "aria-label": this.name, "aria-owns": popoverId, id: this.referenceElementId, role: "combobox" }, index.h("calcite-input", { disabled: this.disabled, icon: "clock", label: label.getLabelText(this), onCalciteInputBlur: this.calciteInputBlurHandler, onCalciteInputFocus: this.calciteInputFocusHandler, onCalciteInputInput: this.calciteInputInputHandler, ref: this.setCalciteInputEl, scale: this.scale, step: this.step })), index.h("calcite-popover", { id: popoverId, label: "Time Picker", open: this.active || false, referenceElement: this.referenceElementId }, index.h("calcite-time-picker", { intlHour: this.intlHour, intlHourDown: this.intlHourDown, intlHourUp: this.intlHourUp, intlMeridiem: this.intlMeridiem, intlMeridiemDown: this.intlMeridiemDown, intlMeridiemUp: this.intlMeridiemUp, intlMinute: this.intlMinute, intlMinuteDown: this.intlMinuteDown, intlMinuteUp: this.intlMinuteUp, intlSecond: this.intlSecond, intlSecondDown: this.intlSecondDown, intlSecondUp: this.intlSecondUp, lang: this.locale, onCalciteTimePickerChange: this.timePickerChangeHandler, ref: this.setCalciteTimePickerEl, scale: this.scale, step: this.step, value: this.value })), index.h(form.HiddenFormInputSlot, { component: this })));
|
|
251
368
|
}
|
|
252
369
|
get el() { return index.getElement(this); }
|
|
253
370
|
static get watchers() { return {
|
|
371
|
+
"locale": ["localeWatcher"],
|
|
254
372
|
"value": ["valueWatcher"]
|
|
255
373
|
}; }
|
|
256
374
|
};
|
|
257
375
|
CalciteInputTimePicker.style = calciteInputTimePickerCss;
|
|
258
376
|
|
|
259
377
|
const CSS = {
|
|
378
|
+
button: "button",
|
|
260
379
|
buttonBottomLeft: "button--bottom-left",
|
|
261
380
|
buttonBottomRight: "button--bottom-right",
|
|
262
|
-
button: "button",
|
|
263
|
-
delimiter: "delimiter",
|
|
264
|
-
hour: "hour",
|
|
265
381
|
buttonHourDown: "button--hour-down",
|
|
266
382
|
buttonHourUp: "button--hour-up",
|
|
267
|
-
input: "input",
|
|
268
|
-
meridiem: "meridiem",
|
|
269
383
|
buttonMeridiemDown: "button--meridiem-down",
|
|
270
384
|
buttonMeridiemUp: "button--meridiem-up",
|
|
271
|
-
minute: "minute",
|
|
272
385
|
buttonMinuteDown: "button--minute-down",
|
|
273
386
|
buttonMinuteUp: "button--minute-up",
|
|
274
|
-
second: "second",
|
|
275
387
|
buttonSecondDown: "button--second-down",
|
|
276
388
|
buttonSecondUp: "button--second-up",
|
|
277
|
-
timePicker: "time-picker",
|
|
278
389
|
buttonTopLeft: "button--top-left",
|
|
279
|
-
buttonTopRight: "button--top-right"
|
|
390
|
+
buttonTopRight: "button--top-right",
|
|
391
|
+
column: "column",
|
|
392
|
+
delimiter: "delimiter",
|
|
393
|
+
hour: "hour",
|
|
394
|
+
input: "input",
|
|
395
|
+
meridiem: "meridiem",
|
|
396
|
+
minute: "minute",
|
|
397
|
+
second: "second",
|
|
398
|
+
showMeridiem: "show-meridiem",
|
|
399
|
+
showSecond: "show-second",
|
|
400
|
+
"scale-s": "scale-s",
|
|
401
|
+
"scale-m": "scale-m",
|
|
402
|
+
"scale-l": "scale-l",
|
|
403
|
+
timePicker: "time-picker"
|
|
280
404
|
};
|
|
281
405
|
const TEXT = {
|
|
282
406
|
hour: "Hour",
|
|
@@ -293,8 +417,11 @@ const TEXT = {
|
|
|
293
417
|
secondUp: "Increase second"
|
|
294
418
|
};
|
|
295
419
|
|
|
296
|
-
const calciteTimePickerCss = "@-webkit-keyframes in{0%{opacity:0}100%{opacity:1}}@keyframes in{0%{opacity:0}100%{opacity:1}}@-webkit-keyframes in-down{0%{opacity:0;-webkit-transform:translate3D(0, -5px, 0);transform:translate3D(0, -5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@keyframes in-down{0%{opacity:0;-webkit-transform:translate3D(0, -5px, 0);transform:translate3D(0, -5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@-webkit-keyframes in-up{0%{opacity:0;-webkit-transform:translate3D(0, 5px, 0);transform:translate3D(0, 5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@keyframes in-up{0%{opacity:0;-webkit-transform:translate3D(0, 5px, 0);transform:translate3D(0, 5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@-webkit-keyframes in-scale{0%{opacity:0;-webkit-transform:scale3D(0.95, 0.95, 1);transform:scale3D(0.95, 0.95, 1)}100%{opacity:1;-webkit-transform:scale3D(1, 1, 1);transform:scale3D(1, 1, 1)}}@keyframes in-scale{0%{opacity:0;-webkit-transform:scale3D(0.95, 0.95, 1);transform:scale3D(0.95, 0.95, 1)}100%{opacity:1;-webkit-transform:scale3D(1, 1, 1);transform:scale3D(1, 1, 1)}}:root{--calcite-animation-timing:300ms}.calcite-animate{opacity:0;-webkit-animation-fill-mode:both;animation-fill-mode:both;-webkit-animation-duration:var(--calcite-animation-timing);animation-duration:var(--calcite-animation-timing)}.calcite-animate__in{-webkit-animation-name:in;animation-name:in}.calcite-animate__in-down{-webkit-animation-name:in-down;animation-name:in-down}.calcite-animate__in-up{-webkit-animation-name:in-up;animation-name:in-up}.calcite-animate__in-scale{-webkit-animation-name:in-scale;animation-name:in-scale}:root{--calcite-popper-transition:150ms ease-in-out}:host([hidden]){display:none}:host{color:var(--calcite-ui-
|
|
420
|
+
const calciteTimePickerCss = "@-webkit-keyframes in{0%{opacity:0}100%{opacity:1}}@keyframes in{0%{opacity:0}100%{opacity:1}}@-webkit-keyframes in-down{0%{opacity:0;-webkit-transform:translate3D(0, -5px, 0);transform:translate3D(0, -5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@keyframes in-down{0%{opacity:0;-webkit-transform:translate3D(0, -5px, 0);transform:translate3D(0, -5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@-webkit-keyframes in-up{0%{opacity:0;-webkit-transform:translate3D(0, 5px, 0);transform:translate3D(0, 5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@keyframes in-up{0%{opacity:0;-webkit-transform:translate3D(0, 5px, 0);transform:translate3D(0, 5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@-webkit-keyframes in-scale{0%{opacity:0;-webkit-transform:scale3D(0.95, 0.95, 1);transform:scale3D(0.95, 0.95, 1)}100%{opacity:1;-webkit-transform:scale3D(1, 1, 1);transform:scale3D(1, 1, 1)}}@keyframes in-scale{0%{opacity:0;-webkit-transform:scale3D(0.95, 0.95, 1);transform:scale3D(0.95, 0.95, 1)}100%{opacity:1;-webkit-transform:scale3D(1, 1, 1);transform:scale3D(1, 1, 1)}}:root{--calcite-animation-timing:calc(150ms * var(--calcite-internal-duration-factor));--calcite-internal-duration-factor:var(--calcite-duration-factor, 1);--calcite-internal-animation-timing-fast:calc(100ms * var(--calcite-internal-duration-factor));--calcite-internal-animation-timing-medium:calc(200ms * var(--calcite-internal-duration-factor));--calcite-internal-animation-timing-slow:calc(300ms * var(--calcite-internal-duration-factor))}.calcite-animate{opacity:0;-webkit-animation-fill-mode:both;animation-fill-mode:both;-webkit-animation-duration:var(--calcite-animation-timing);animation-duration:var(--calcite-animation-timing)}.calcite-animate__in{-webkit-animation-name:in;animation-name:in}.calcite-animate__in-down{-webkit-animation-name:in-down;animation-name:in-down}.calcite-animate__in-up{-webkit-animation-name:in-up;animation-name:in-up}.calcite-animate__in-scale{-webkit-animation-name:in-scale;animation-name:in-scale}:root{--calcite-popper-transition:150ms ease-in-out}:host([hidden]){display:none}:host{display:inline-block}.time-picker{background-color:var(--calcite-ui-foreground-1);display:-ms-flexbox;display:flex;font-weight:var(--calcite-font-weight-medium);-ms-flex-align:center;align-items:center;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;-webkit-box-shadow:0 6px 20px -4px rgba(0, 0, 0, 0.1), 0 4px 12px -2px rgba(0, 0, 0, 0.08);box-shadow:0 6px 20px -4px rgba(0, 0, 0, 0.1), 0 4px 12px -2px rgba(0, 0, 0, 0.08);color:var(--calcite-ui-text-1);border-radius:var(--calcite-border-radius)}.time-picker .column{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column}.time-picker .button{background-color:var(--calcite-ui-foreground-1);cursor:pointer;display:-ms-inline-flexbox;display:inline-flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center}.time-picker .button:hover,.time-picker .button:focus{background-color:var(--calcite-ui-foreground-2);outline:2px solid transparent;outline-offset:2px}.time-picker .button:active{background-color:var(--calcite-ui-foreground-3)}.time-picker .button.top-left{border-top-left-radius:var(--calcite-border-radius)}.time-picker .button.bottom-left{border-bottom-left-radius:var(--calcite-border-radius)}.time-picker .button.top-right{border-top-right-radius:var(--calcite-border-radius)}.time-picker .button.bottom-right{border-bottom-right-radius:var(--calcite-border-radius)}.time-picker .button calcite-icon{color:var(--calcite-ui-text-3)}.time-picker .input{background-color:var(--calcite-ui-foreground-1);cursor:pointer;font-weight:var(--calcite-font-weight-medium);display:-ms-inline-flexbox;display:inline-flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center}.time-picker .input:hover{-webkit-box-shadow:inset 0 0 0 2px var(--calcite-ui-foreground-2);box-shadow:inset 0 0 0 2px var(--calcite-ui-foreground-2)}.time-picker .input:focus,.time-picker .input:hover:focus{outline:2px solid transparent;outline-offset:2px;-webkit-box-shadow:inset 0 0 0 2px var(--calcite-ui-brand);box-shadow:inset 0 0 0 2px var(--calcite-ui-brand)}.time-picker.scale-s{font-size:var(--calcite-font-size--1)}.time-picker.scale-s .button,.time-picker.scale-s .input{padding-left:0.75rem;padding-right:0.75rem;padding-top:0.25rem;padding-bottom:0.25rem}.time-picker.scale-s:not(.show-meridiem) .delimiter:last-child{-webkit-padding-end:0.75rem;padding-inline-end:0.75rem}.time-picker.scale-m{font-size:var(--calcite-font-size-0)}.time-picker.scale-m .button,.time-picker.scale-m .input{padding-left:1rem;padding-right:1rem;padding-top:0.5rem;padding-bottom:0.5rem}.time-picker.scale-m:not(.show-meridiem) .delimiter:last-child{-webkit-padding-end:1rem;padding-inline-end:1rem}.time-picker.scale-l{font-size:var(--calcite-font-size-1)}.time-picker.scale-l .button,.time-picker.scale-l .input{padding-left:1.25rem;padding-right:1.25rem;padding-top:0.75rem;padding-bottom:0.75rem}.time-picker.scale-l:not(.show-meridiem) .delimiter:last-child{-webkit-padding-end:1.25rem;padding-inline-end:1.25rem}";
|
|
297
421
|
|
|
422
|
+
function capitalize(str) {
|
|
423
|
+
return str.charAt(0).toUpperCase() + str.slice(1);
|
|
424
|
+
}
|
|
298
425
|
let CalciteTimePicker = class {
|
|
299
426
|
constructor(hostRef) {
|
|
300
427
|
index.registerInstance(this, hostRef);
|
|
@@ -306,10 +433,6 @@ let CalciteTimePicker = class {
|
|
|
306
433
|
// Properties
|
|
307
434
|
//
|
|
308
435
|
//--------------------------------------------------------------------------
|
|
309
|
-
/** The hour value (24-hour format) */
|
|
310
|
-
this.hour = null;
|
|
311
|
-
/** Format of the hour value (12-hour or 24-hour) (this will be replaced by locale eventually) */
|
|
312
|
-
this.hourDisplayFormat = "12";
|
|
313
436
|
/** aria-label for the hour input
|
|
314
437
|
* @default "Hour"
|
|
315
438
|
*/
|
|
@@ -358,35 +481,25 @@ let CalciteTimePicker = class {
|
|
|
358
481
|
* @default "Increase second"
|
|
359
482
|
*/
|
|
360
483
|
this.intlSecondUp = TEXT.secondUp;
|
|
361
|
-
/**
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
484
|
+
/**
|
|
485
|
+
* BCP 47 language tag for desired language and country format
|
|
486
|
+
* @internal
|
|
487
|
+
*/
|
|
488
|
+
this.locale = document.documentElement.lang || navigator.language || "en";
|
|
365
489
|
/** The scale (size) of the time picker */
|
|
366
490
|
this.scale = "m";
|
|
367
491
|
/** number that specifies the granularity that the value must adhere to */
|
|
368
492
|
this.step = 60;
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
// State
|
|
373
|
-
//
|
|
374
|
-
// --------------------------------------------------------------------------
|
|
375
|
-
/** The am/pm value */
|
|
376
|
-
this.meridiem = null;
|
|
377
|
-
this.displayHour = this.getDisplayHour();
|
|
378
|
-
// --------------------------------------------------------------------------
|
|
379
|
-
//
|
|
380
|
-
// Private Methods
|
|
381
|
-
//
|
|
382
|
-
// --------------------------------------------------------------------------
|
|
493
|
+
/** The selected time in UTC */
|
|
494
|
+
this.value = null;
|
|
495
|
+
this.showSecond = this.step < 60;
|
|
383
496
|
this.decrementHour = () => {
|
|
384
497
|
const newHour = !this.hour ? 0 : this.hour === "00" ? 23 : parseInt(this.hour) - 1;
|
|
385
|
-
this.
|
|
498
|
+
this.setValuePart("hour", newHour);
|
|
386
499
|
};
|
|
387
500
|
this.decrementMeridiem = () => {
|
|
388
501
|
const newMeridiem = this.meridiem === "PM" ? "AM" : "PM";
|
|
389
|
-
this.
|
|
502
|
+
this.setValuePart("meridiem", newMeridiem);
|
|
390
503
|
};
|
|
391
504
|
this.decrementMinuteOrSecond = (key) => {
|
|
392
505
|
let newValue;
|
|
@@ -397,7 +510,7 @@ let CalciteTimePicker = class {
|
|
|
397
510
|
else {
|
|
398
511
|
newValue = 59;
|
|
399
512
|
}
|
|
400
|
-
this.
|
|
513
|
+
this.setValuePart(key, newValue);
|
|
401
514
|
};
|
|
402
515
|
this.decrementMinute = () => {
|
|
403
516
|
this.decrementMinuteOrSecond("minute");
|
|
@@ -414,12 +527,12 @@ let CalciteTimePicker = class {
|
|
|
414
527
|
}
|
|
415
528
|
};
|
|
416
529
|
this.hourKeyDownHandler = (event) => {
|
|
417
|
-
const key
|
|
418
|
-
if (
|
|
419
|
-
const keyAsNumber = parseInt(key
|
|
530
|
+
const key = event.key;
|
|
531
|
+
if (number.numberKeys.includes(key)) {
|
|
532
|
+
const keyAsNumber = parseInt(key);
|
|
420
533
|
let newHour;
|
|
421
534
|
if (number.isValidNumber(this.hour)) {
|
|
422
|
-
switch (this.
|
|
535
|
+
switch (this.hourCycle) {
|
|
423
536
|
case "12":
|
|
424
537
|
newHour =
|
|
425
538
|
this.hour === "01" && keyAsNumber >= 0 && keyAsNumber <= 2
|
|
@@ -442,13 +555,13 @@ let CalciteTimePicker = class {
|
|
|
442
555
|
else {
|
|
443
556
|
newHour = keyAsNumber;
|
|
444
557
|
}
|
|
445
|
-
this.
|
|
558
|
+
this.setValuePart("hour", newHour);
|
|
446
559
|
}
|
|
447
560
|
else {
|
|
448
|
-
switch (key
|
|
561
|
+
switch (key) {
|
|
449
562
|
case "Backspace":
|
|
450
563
|
case "Delete":
|
|
451
|
-
this.
|
|
564
|
+
this.setValuePart("hour", null);
|
|
452
565
|
break;
|
|
453
566
|
case "ArrowDown":
|
|
454
567
|
event.preventDefault();
|
|
@@ -472,7 +585,7 @@ let CalciteTimePicker = class {
|
|
|
472
585
|
};
|
|
473
586
|
this.incrementMeridiem = () => {
|
|
474
587
|
const newMeridiem = this.meridiem === "AM" ? "PM" : "AM";
|
|
475
|
-
this.
|
|
588
|
+
this.setValuePart("meridiem", newMeridiem);
|
|
476
589
|
};
|
|
477
590
|
this.incrementHour = () => {
|
|
478
591
|
const newHour = number.isValidNumber(this.hour)
|
|
@@ -480,7 +593,7 @@ let CalciteTimePicker = class {
|
|
|
480
593
|
? 0
|
|
481
594
|
: parseInt(this.hour) + 1
|
|
482
595
|
: 1;
|
|
483
|
-
this.
|
|
596
|
+
this.setValuePart("hour", newHour);
|
|
484
597
|
};
|
|
485
598
|
this.incrementMinuteOrSecond = (key) => {
|
|
486
599
|
const newValue = number.isValidNumber(this[key])
|
|
@@ -488,7 +601,7 @@ let CalciteTimePicker = class {
|
|
|
488
601
|
? 0
|
|
489
602
|
: parseInt(this[key]) + 1
|
|
490
603
|
: 0;
|
|
491
|
-
this.
|
|
604
|
+
this.setValuePart(key, newValue);
|
|
492
605
|
};
|
|
493
606
|
this.incrementMinute = () => {
|
|
494
607
|
this.incrementMinuteOrSecond("minute");
|
|
@@ -502,16 +615,16 @@ let CalciteTimePicker = class {
|
|
|
502
615
|
}
|
|
503
616
|
};
|
|
504
617
|
this.meridiemKeyDownHandler = (event) => {
|
|
505
|
-
switch (
|
|
618
|
+
switch (event.key) {
|
|
506
619
|
case "a":
|
|
507
|
-
this.
|
|
620
|
+
this.setValuePart("meridiem", "AM");
|
|
508
621
|
break;
|
|
509
622
|
case "p":
|
|
510
|
-
this.
|
|
623
|
+
this.setValuePart("meridiem", "PM");
|
|
511
624
|
break;
|
|
512
625
|
case "Backspace":
|
|
513
626
|
case "Delete":
|
|
514
|
-
this.
|
|
627
|
+
this.setValuePart("meridiem", null);
|
|
515
628
|
break;
|
|
516
629
|
case "ArrowUp":
|
|
517
630
|
event.preventDefault();
|
|
@@ -538,9 +651,9 @@ let CalciteTimePicker = class {
|
|
|
538
651
|
}
|
|
539
652
|
};
|
|
540
653
|
this.minuteKeyDownHandler = (event) => {
|
|
541
|
-
const key
|
|
542
|
-
if (
|
|
543
|
-
const keyAsNumber = parseInt(key
|
|
654
|
+
const key = event.key;
|
|
655
|
+
if (number.numberKeys.includes(key)) {
|
|
656
|
+
const keyAsNumber = parseInt(key);
|
|
544
657
|
let newMinute;
|
|
545
658
|
if (number.isValidNumber(this.minute) && this.minute.startsWith("0")) {
|
|
546
659
|
const minuteAsNumber = parseInt(this.minute);
|
|
@@ -552,13 +665,13 @@ let CalciteTimePicker = class {
|
|
|
552
665
|
else {
|
|
553
666
|
newMinute = keyAsNumber;
|
|
554
667
|
}
|
|
555
|
-
this.
|
|
668
|
+
this.setValuePart("minute", newMinute);
|
|
556
669
|
}
|
|
557
670
|
else {
|
|
558
|
-
switch (key
|
|
671
|
+
switch (key) {
|
|
559
672
|
case "Backspace":
|
|
560
673
|
case "Delete":
|
|
561
|
-
this.
|
|
674
|
+
this.setValuePart("minute", null);
|
|
562
675
|
break;
|
|
563
676
|
case "ArrowDown":
|
|
564
677
|
event.preventDefault();
|
|
@@ -586,9 +699,9 @@ let CalciteTimePicker = class {
|
|
|
586
699
|
}
|
|
587
700
|
};
|
|
588
701
|
this.secondKeyDownHandler = (event) => {
|
|
589
|
-
const key
|
|
590
|
-
if (
|
|
591
|
-
const keyAsNumber = parseInt(key
|
|
702
|
+
const key = event.key;
|
|
703
|
+
if (number.numberKeys.includes(key)) {
|
|
704
|
+
const keyAsNumber = parseInt(key);
|
|
592
705
|
let newSecond;
|
|
593
706
|
if (number.isValidNumber(this.second) && this.second.startsWith("0")) {
|
|
594
707
|
const secondAsNumber = parseInt(this.second);
|
|
@@ -600,13 +713,13 @@ let CalciteTimePicker = class {
|
|
|
600
713
|
else {
|
|
601
714
|
newSecond = keyAsNumber;
|
|
602
715
|
}
|
|
603
|
-
this.
|
|
716
|
+
this.setValuePart("second", newSecond);
|
|
604
717
|
}
|
|
605
718
|
else {
|
|
606
|
-
switch (key
|
|
719
|
+
switch (key) {
|
|
607
720
|
case "Backspace":
|
|
608
721
|
case "Delete":
|
|
609
|
-
this.
|
|
722
|
+
this.setValuePart("second", null);
|
|
610
723
|
break;
|
|
611
724
|
case "ArrowDown":
|
|
612
725
|
event.preventDefault();
|
|
@@ -628,59 +741,96 @@ let CalciteTimePicker = class {
|
|
|
628
741
|
this.incrementSecond();
|
|
629
742
|
}
|
|
630
743
|
};
|
|
631
|
-
this.
|
|
632
|
-
|
|
633
|
-
|
|
634
|
-
|
|
635
|
-
|
|
636
|
-
|
|
637
|
-
|
|
638
|
-
|
|
639
|
-
|
|
640
|
-
|
|
641
|
-
|
|
642
|
-
|
|
643
|
-
|
|
644
|
-
|
|
645
|
-
|
|
646
|
-
|
|
647
|
-
|
|
648
|
-
|
|
649
|
-
|
|
650
|
-
|
|
651
|
-
|
|
652
|
-
|
|
653
|
-
|
|
654
|
-
|
|
655
|
-
|
|
656
|
-
|
|
657
|
-
|
|
658
|
-
|
|
659
|
-
|
|
660
|
-
|
|
661
|
-
|
|
662
|
-
|
|
744
|
+
this.setHourEl = (el) => (this.hourEl = el);
|
|
745
|
+
this.setMeridiemEl = (el) => (this.meridiemEl = el);
|
|
746
|
+
this.setMinuteEl = (el) => (this.minuteEl = el);
|
|
747
|
+
this.setSecondEl = (el) => (this.secondEl = el);
|
|
748
|
+
this.setValue = (value, emit = true) => {
|
|
749
|
+
if (isValidTime(value)) {
|
|
750
|
+
const { hour, minute, second } = parseTimeString(value);
|
|
751
|
+
const { localizedHour, localizedHourSuffix, localizedMinute, localizedMinuteSuffix, localizedSecond, localizedSecondSuffix, localizedMeridiem } = localizeTimeStringToParts(value, this.locale);
|
|
752
|
+
this.localizedHour = localizedHour;
|
|
753
|
+
this.localizedHourSuffix = localizedHourSuffix;
|
|
754
|
+
this.localizedMinute = localizedMinute;
|
|
755
|
+
this.localizedMinuteSuffix = localizedMinuteSuffix;
|
|
756
|
+
this.localizedSecond = localizedSecond;
|
|
757
|
+
this.localizedSecondSuffix = localizedSecondSuffix;
|
|
758
|
+
this.hour = hour;
|
|
759
|
+
this.minute = minute;
|
|
760
|
+
this.second = second;
|
|
761
|
+
if (localizedMeridiem) {
|
|
762
|
+
this.localizedMeridiem = localizedMeridiem;
|
|
763
|
+
this.meridiem = getMeridiem(this.hour);
|
|
764
|
+
}
|
|
765
|
+
}
|
|
766
|
+
else {
|
|
767
|
+
this.hour = null;
|
|
768
|
+
this.localizedHour = null;
|
|
769
|
+
this.localizedHourSuffix = null;
|
|
770
|
+
this.localizedMeridiem = null;
|
|
771
|
+
this.localizedMinute = null;
|
|
772
|
+
this.localizedMinuteSuffix = null;
|
|
773
|
+
this.localizedSecond = null;
|
|
774
|
+
this.localizedSecondSuffix = null;
|
|
775
|
+
this.meridiem = null;
|
|
776
|
+
this.minute = null;
|
|
777
|
+
this.second = null;
|
|
778
|
+
this.value = null;
|
|
779
|
+
}
|
|
780
|
+
if (emit) {
|
|
781
|
+
this.calciteTimePickerChange.emit();
|
|
782
|
+
}
|
|
783
|
+
};
|
|
784
|
+
this.setValuePart = (key, value, emit = true) => {
|
|
785
|
+
var _a;
|
|
786
|
+
if (key === "meridiem") {
|
|
787
|
+
this.meridiem = value;
|
|
788
|
+
if (number.isValidNumber(this.hour)) {
|
|
789
|
+
const hourAsNumber = parseInt(this.hour);
|
|
790
|
+
switch (value) {
|
|
791
|
+
case "AM":
|
|
792
|
+
if (hourAsNumber >= 12) {
|
|
793
|
+
this.hour = formatTimePart(hourAsNumber - 12);
|
|
794
|
+
}
|
|
795
|
+
break;
|
|
796
|
+
case "PM":
|
|
797
|
+
if (hourAsNumber < 12) {
|
|
798
|
+
this.hour = formatTimePart(hourAsNumber + 12);
|
|
799
|
+
}
|
|
800
|
+
break;
|
|
663
801
|
}
|
|
664
|
-
|
|
802
|
+
this.localizedHour = localizeTimePart(this.hour, "hour", this.locale);
|
|
803
|
+
}
|
|
804
|
+
}
|
|
805
|
+
else {
|
|
806
|
+
this[key] = typeof value === "number" ? formatTimePart(value) : value;
|
|
807
|
+
this[`localized${capitalize(key)}`] = localizeTimePart(this[key], key, this.locale);
|
|
808
|
+
}
|
|
809
|
+
if (this.hour && this.minute) {
|
|
810
|
+
const showSeconds = this.second && this.showSecond;
|
|
811
|
+
this.value = `${this.hour}:${this.minute}:${showSeconds ? this.second : "00"}`;
|
|
665
812
|
}
|
|
666
|
-
|
|
813
|
+
else {
|
|
814
|
+
this.value = null;
|
|
815
|
+
}
|
|
816
|
+
this.localizedMeridiem = this.value
|
|
817
|
+
? ((_a = localizeTimeStringToParts(this.value, this.locale)) === null || _a === void 0 ? void 0 : _a.localizedMeridiem) || null
|
|
818
|
+
: localizeTimePart(this.meridiem, "meridiem", this.locale);
|
|
667
819
|
if (emit) {
|
|
668
|
-
this.calciteTimePickerChange.emit(
|
|
820
|
+
this.calciteTimePickerChange.emit();
|
|
669
821
|
}
|
|
670
822
|
};
|
|
671
823
|
}
|
|
672
|
-
|
|
673
|
-
|
|
674
|
-
|
|
675
|
-
}
|
|
824
|
+
localeWatcher(newLocale) {
|
|
825
|
+
this.hourCycle = getLocaleHourCycle(newLocale);
|
|
826
|
+
this.setValue(this.value, false);
|
|
676
827
|
}
|
|
677
|
-
|
|
678
|
-
|
|
679
|
-
|
|
680
|
-
|
|
681
|
-
|
|
682
|
-
|
|
683
|
-
this.timeChanged = false;
|
|
828
|
+
valueWatcher(newValue) {
|
|
829
|
+
this.setValue(newValue, false);
|
|
830
|
+
}
|
|
831
|
+
hourChanged(newHour) {
|
|
832
|
+
if (this.meridiem && number.isValidNumber(newHour)) {
|
|
833
|
+
this.setValuePart("meridiem", getMeridiem(newHour));
|
|
684
834
|
}
|
|
685
835
|
}
|
|
686
836
|
//--------------------------------------------------------------------------
|
|
@@ -695,15 +845,15 @@ let CalciteTimePicker = class {
|
|
|
695
845
|
this.calciteTimePickerFocus.emit();
|
|
696
846
|
}
|
|
697
847
|
keyDownHandler(event) {
|
|
698
|
-
const key
|
|
848
|
+
const key = event.key;
|
|
699
849
|
switch (this.activeEl) {
|
|
700
850
|
case this.hourEl:
|
|
701
|
-
if (key
|
|
851
|
+
if (key === "ArrowRight") {
|
|
702
852
|
this.setFocus("minute");
|
|
703
853
|
}
|
|
704
854
|
break;
|
|
705
855
|
case this.minuteEl:
|
|
706
|
-
switch (key
|
|
856
|
+
switch (key) {
|
|
707
857
|
case "ArrowLeft":
|
|
708
858
|
this.setFocus("hour");
|
|
709
859
|
break;
|
|
@@ -711,26 +861,26 @@ let CalciteTimePicker = class {
|
|
|
711
861
|
if (this.step !== 60) {
|
|
712
862
|
this.setFocus("second");
|
|
713
863
|
}
|
|
714
|
-
else if (this.
|
|
864
|
+
else if (this.hourCycle === "12") {
|
|
715
865
|
this.setFocus("meridiem");
|
|
716
866
|
}
|
|
717
867
|
break;
|
|
718
868
|
}
|
|
719
869
|
break;
|
|
720
870
|
case this.secondEl:
|
|
721
|
-
switch (key
|
|
871
|
+
switch (key) {
|
|
722
872
|
case "ArrowLeft":
|
|
723
873
|
this.setFocus("minute");
|
|
724
874
|
break;
|
|
725
875
|
case "ArrowRight":
|
|
726
|
-
if (this.
|
|
876
|
+
if (this.hourCycle === "12") {
|
|
727
877
|
this.setFocus("meridiem");
|
|
728
878
|
}
|
|
729
879
|
break;
|
|
730
880
|
}
|
|
731
881
|
break;
|
|
732
882
|
case this.meridiemEl:
|
|
733
|
-
switch (key
|
|
883
|
+
switch (key) {
|
|
734
884
|
case "ArrowLeft":
|
|
735
885
|
if (this.step !== 60) {
|
|
736
886
|
this.setFocus("second");
|
|
@@ -753,28 +903,17 @@ let CalciteTimePicker = class {
|
|
|
753
903
|
var _a;
|
|
754
904
|
(_a = this[`${target || "hour"}El`]) === null || _a === void 0 ? void 0 : _a.focus();
|
|
755
905
|
}
|
|
906
|
+
// --------------------------------------------------------------------------
|
|
907
|
+
//
|
|
908
|
+
// Private Methods
|
|
909
|
+
//
|
|
910
|
+
// --------------------------------------------------------------------------
|
|
756
911
|
buttonActivated(event) {
|
|
757
|
-
const key
|
|
758
|
-
if (key
|
|
912
|
+
const key = event.key;
|
|
913
|
+
if (key === " ") {
|
|
759
914
|
event.preventDefault();
|
|
760
915
|
}
|
|
761
|
-
return
|
|
762
|
-
}
|
|
763
|
-
getDisplayHour() {
|
|
764
|
-
if (!this.hour) {
|
|
765
|
-
return "--";
|
|
766
|
-
}
|
|
767
|
-
if (this.hourDisplayFormat === "12") {
|
|
768
|
-
return getMeridiemHour(this.hour);
|
|
769
|
-
}
|
|
770
|
-
return this.hour;
|
|
771
|
-
}
|
|
772
|
-
getTime() {
|
|
773
|
-
return {
|
|
774
|
-
hour: this.hour,
|
|
775
|
-
minute: this.minute,
|
|
776
|
-
second: this.second
|
|
777
|
-
};
|
|
916
|
+
return number.isActivationKey(key);
|
|
778
917
|
}
|
|
779
918
|
// --------------------------------------------------------------------------
|
|
780
919
|
//
|
|
@@ -782,18 +921,8 @@ let CalciteTimePicker = class {
|
|
|
782
921
|
//
|
|
783
922
|
// --------------------------------------------------------------------------
|
|
784
923
|
connectedCallback() {
|
|
785
|
-
|
|
786
|
-
|
|
787
|
-
}
|
|
788
|
-
if (number.isValidNumber(this.hour)) {
|
|
789
|
-
this.hour = formatTimePart(parseInt(this.hour));
|
|
790
|
-
}
|
|
791
|
-
if (number.isValidNumber(this.minute)) {
|
|
792
|
-
this.minute = formatTimePart(parseInt(this.minute));
|
|
793
|
-
}
|
|
794
|
-
if (number.isValidNumber(this.second)) {
|
|
795
|
-
this.second = formatTimePart(parseInt(this.second));
|
|
796
|
-
}
|
|
924
|
+
this.setValue(this.value, false);
|
|
925
|
+
this.hourCycle = getLocaleHourCycle(this.locale);
|
|
797
926
|
}
|
|
798
927
|
// --------------------------------------------------------------------------
|
|
799
928
|
//
|
|
@@ -801,58 +930,63 @@ let CalciteTimePicker = class {
|
|
|
801
930
|
//
|
|
802
931
|
// --------------------------------------------------------------------------
|
|
803
932
|
render() {
|
|
804
|
-
const iconScale = this.scale === "s" || this.scale === "m" ? "s" : "m";
|
|
805
|
-
const includeSeconds = this.step !== 60;
|
|
806
933
|
const hourIsNumber = number.isValidNumber(this.hour);
|
|
934
|
+
const iconScale = this.scale === "s" || this.scale === "m" ? "s" : "m";
|
|
807
935
|
const minuteIsNumber = number.isValidNumber(this.minute);
|
|
808
936
|
const secondIsNumber = number.isValidNumber(this.second);
|
|
809
|
-
|
|
937
|
+
const showMeridiem = this.hourCycle === "12";
|
|
938
|
+
return (index.h("div", { class: {
|
|
939
|
+
[CSS.timePicker]: true,
|
|
940
|
+
[CSS.showMeridiem]: showMeridiem,
|
|
941
|
+
[CSS.showSecond]: this.showSecond,
|
|
942
|
+
[CSS[`scale-${this.scale}`]]: true
|
|
943
|
+
} }, index.h("div", { class: CSS.column, role: "group" }, index.h("span", { "aria-label": this.intlHourUp, class: {
|
|
810
944
|
[CSS.button]: true,
|
|
811
945
|
[CSS.buttonHourUp]: true,
|
|
812
946
|
[CSS.buttonTopLeft]: true
|
|
813
|
-
}, onClick: this.incrementHour, onKeyDown: this.hourUpButtonKeyDownHandler, role: "button", tabIndex: -1 }, index.h("calcite-icon", { icon: "chevron-up", scale: iconScale })), index.h("span", { "aria-label": this.intlHour, "aria-valuemax": "23", "aria-valuemin": "1", "aria-valuenow": hourIsNumber && parseInt(this.hour), "aria-valuetext": this.hour, class: {
|
|
947
|
+
}, onClick: this.incrementHour, onKeyDown: this.hourUpButtonKeyDownHandler, role: "button", tabIndex: -1 }, index.h("calcite-icon", { icon: "chevron-up", scale: iconScale })), index.h("span", { "aria-label": this.intlHour, "aria-valuemax": "23", "aria-valuemin": "1", "aria-valuenow": (hourIsNumber && parseInt(this.hour)) || "0", "aria-valuetext": this.hour, class: {
|
|
814
948
|
[CSS.input]: true,
|
|
815
949
|
[CSS.hour]: true
|
|
816
|
-
}, onFocus: this.focusHandler, onKeyDown: this.hourKeyDownHandler, ref:
|
|
950
|
+
}, onFocus: this.focusHandler, onKeyDown: this.hourKeyDownHandler, ref: this.setHourEl, role: "spinbutton", tabIndex: 0 }, this.localizedHour || "--"), index.h("span", { "aria-label": this.intlHourDown, class: {
|
|
817
951
|
[CSS.button]: true,
|
|
818
952
|
[CSS.buttonHourDown]: true,
|
|
819
953
|
[CSS.buttonBottomLeft]: true
|
|
820
|
-
}, onClick: this.decrementHour, onKeyDown: this.hourDownButtonKeyDownHandler, role: "button", tabIndex: -1 }, index.h("calcite-icon", { icon: "chevron-down", scale: iconScale }))), index.h("span", { class: CSS.delimiter },
|
|
954
|
+
}, onClick: this.decrementHour, onKeyDown: this.hourDownButtonKeyDownHandler, role: "button", tabIndex: -1 }, index.h("calcite-icon", { icon: "chevron-down", scale: iconScale }))), index.h("span", { class: CSS.delimiter }, this.localizedHourSuffix), index.h("div", { class: CSS.column, role: "group" }, index.h("span", { "aria-label": this.intlMinuteUp, class: {
|
|
821
955
|
[CSS.button]: true,
|
|
822
956
|
[CSS.buttonMinuteUp]: true
|
|
823
|
-
}, onClick: this.incrementMinute, onKeyDown: this.minuteUpButtonKeyDownHandler, role: "button", tabIndex: -1 }, index.h("calcite-icon", { icon: "chevron-up", scale: iconScale })), index.h("span", { "aria-label": this.intlMinute, "aria-valuemax": "12", "aria-valuemin": "1", "aria-valuenow": minuteIsNumber && parseInt(this.minute), "aria-valuetext": this.minute, class: {
|
|
957
|
+
}, onClick: this.incrementMinute, onKeyDown: this.minuteUpButtonKeyDownHandler, role: "button", tabIndex: -1 }, index.h("calcite-icon", { icon: "chevron-up", scale: iconScale })), index.h("span", { "aria-label": this.intlMinute, "aria-valuemax": "12", "aria-valuemin": "1", "aria-valuenow": (minuteIsNumber && parseInt(this.minute)) || "0", "aria-valuetext": this.minute, class: {
|
|
824
958
|
[CSS.input]: true,
|
|
825
959
|
[CSS.minute]: true
|
|
826
|
-
}, onFocus: this.focusHandler, onKeyDown: this.minuteKeyDownHandler, ref:
|
|
960
|
+
}, onFocus: this.focusHandler, onKeyDown: this.minuteKeyDownHandler, ref: this.setMinuteEl, role: "spinbutton", tabIndex: 0 }, this.localizedMinute || "--"), index.h("span", { "aria-label": this.intlMinuteDown, class: {
|
|
827
961
|
[CSS.button]: true,
|
|
828
962
|
[CSS.buttonMinuteDown]: true
|
|
829
|
-
}, onClick: this.decrementMinute, onKeyDown: this.minuteDownButtonKeyDownHandler, role: "button", tabIndex: -1 }, index.h("calcite-icon", { icon: "chevron-down", scale: iconScale }))),
|
|
963
|
+
}, onClick: this.decrementMinute, onKeyDown: this.minuteDownButtonKeyDownHandler, role: "button", tabIndex: -1 }, index.h("calcite-icon", { icon: "chevron-down", scale: iconScale }))), this.showSecond && index.h("span", { class: CSS.delimiter }, this.localizedMinuteSuffix), this.showSecond && (index.h("div", { class: CSS.column, role: "group" }, index.h("span", { "aria-label": this.intlSecondUp, class: {
|
|
830
964
|
[CSS.button]: true,
|
|
831
965
|
[CSS.buttonSecondUp]: true
|
|
832
|
-
}, onClick: this.incrementSecond, onKeyDown: this.secondUpButtonKeyDownHandler, role: "button", tabIndex: -1 }, index.h("calcite-icon", { icon: "chevron-up", scale: iconScale })), index.h("span", { "aria-label": this.intlSecond, "aria-valuemax": "59", "aria-valuemin": "0", "aria-valuenow": secondIsNumber && parseInt(this.second), "aria-valuetext": this.second, class: {
|
|
966
|
+
}, onClick: this.incrementSecond, onKeyDown: this.secondUpButtonKeyDownHandler, role: "button", tabIndex: -1 }, index.h("calcite-icon", { icon: "chevron-up", scale: iconScale })), index.h("span", { "aria-label": this.intlSecond, "aria-valuemax": "59", "aria-valuemin": "0", "aria-valuenow": (secondIsNumber && parseInt(this.second)) || "0", "aria-valuetext": this.second, class: {
|
|
833
967
|
[CSS.input]: true,
|
|
834
968
|
[CSS.second]: true
|
|
835
|
-
}, onFocus: this.focusHandler, onKeyDown: this.secondKeyDownHandler, ref:
|
|
969
|
+
}, onFocus: this.focusHandler, onKeyDown: this.secondKeyDownHandler, ref: this.setSecondEl, role: "spinbutton", tabIndex: 0 }, this.localizedSecond || "--"), index.h("span", { "aria-label": this.intlSecondDown, class: {
|
|
836
970
|
[CSS.button]: true,
|
|
837
971
|
[CSS.buttonSecondDown]: true
|
|
838
|
-
}, onClick: this.decrementSecond, onKeyDown: this.secondDownButtonKeyDownHandler, role: "button", tabIndex: -1 }, index.h("calcite-icon", { icon: "chevron-down", scale: iconScale })))), this.
|
|
972
|
+
}, onClick: this.decrementSecond, onKeyDown: this.secondDownButtonKeyDownHandler, role: "button", tabIndex: -1 }, index.h("calcite-icon", { icon: "chevron-down", scale: iconScale })))), this.localizedSecondSuffix && (index.h("span", { class: CSS.delimiter }, this.localizedSecondSuffix)), showMeridiem && (index.h("div", { class: CSS.column, role: "group" }, index.h("span", { "aria-label": this.intlMeridiemUp, class: {
|
|
839
973
|
[CSS.button]: true,
|
|
840
974
|
[CSS.buttonMeridiemUp]: true,
|
|
841
975
|
[CSS.buttonTopRight]: true
|
|
842
|
-
}, onClick: this.incrementMeridiem, onKeyDown: this.meridiemUpButtonKeyDownHandler, role: "button", tabIndex: -1 }, index.h("calcite-icon", { icon: "chevron-up", scale: iconScale })), index.h("span", { "aria-label": this.intlMeridiem, "aria-valuemax": "2", "aria-valuemin": "1", "aria-valuenow": this.meridiem === "
|
|
976
|
+
}, onClick: this.incrementMeridiem, onKeyDown: this.meridiemUpButtonKeyDownHandler, role: "button", tabIndex: -1 }, index.h("calcite-icon", { icon: "chevron-up", scale: iconScale })), index.h("span", { "aria-label": this.intlMeridiem, "aria-valuemax": "2", "aria-valuemin": "1", "aria-valuenow": (this.meridiem === "PM" && "2") || "1", "aria-valuetext": this.meridiem, class: {
|
|
843
977
|
[CSS.input]: true,
|
|
844
978
|
[CSS.meridiem]: true
|
|
845
|
-
}, onFocus: this.focusHandler, onKeyDown: this.meridiemKeyDownHandler, ref:
|
|
979
|
+
}, onFocus: this.focusHandler, onKeyDown: this.meridiemKeyDownHandler, ref: this.setMeridiemEl, role: "spinbutton", tabIndex: 0 }, this.localizedMeridiem || "--"), index.h("span", { "aria-label": this.intlMeridiemDown, class: {
|
|
846
980
|
[CSS.button]: true,
|
|
847
981
|
[CSS.buttonMeridiemDown]: true,
|
|
848
982
|
[CSS.buttonBottomRight]: true
|
|
849
|
-
}, onClick: this.decrementMeridiem, onKeyDown: this.meridiemDownButtonKeyDownHandler, role: "button", tabIndex: -1 }, index.h("calcite-icon", { icon: "chevron-down", scale: iconScale }))))))
|
|
983
|
+
}, onClick: this.decrementMeridiem, onKeyDown: this.meridiemDownButtonKeyDownHandler, role: "button", tabIndex: -1 }, index.h("calcite-icon", { icon: "chevron-down", scale: iconScale }))))));
|
|
850
984
|
}
|
|
851
985
|
get el() { return index.getElement(this); }
|
|
852
986
|
static get watchers() { return {
|
|
853
|
-
"
|
|
854
|
-
"
|
|
855
|
-
"
|
|
987
|
+
"locale": ["localeWatcher"],
|
|
988
|
+
"value": ["valueWatcher"],
|
|
989
|
+
"hour": ["hourChanged"]
|
|
856
990
|
}; }
|
|
857
991
|
};
|
|
858
992
|
CalciteTimePicker.style = calciteTimePickerCss;
|