@esri/calcite-components 1.7.0-next.13 → 1.7.0-next.14
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/time-picker/t9n/index.d.ts +3 -0
- package/dist/calcite/assets/time-picker/t9n/messages.json +3 -0
- package/dist/calcite/assets/time-picker/t9n/messages_en.json +3 -0
- package/dist/calcite/calcite.esm.js +2 -2
- package/dist/calcite/index.esm.js +2 -2
- package/dist/calcite/{p-270583c0.entry.js → p-00c0611c.entry.js} +2 -2
- package/dist/calcite/p-0204d470.js +6 -0
- package/dist/calcite/{p-7609a443.js → p-02b9e8fc.js} +2 -2
- package/dist/calcite/{p-5ca070ae.entry.js → p-041db9df.entry.js} +2 -2
- package/dist/calcite/{p-82836922.js → p-0473aace.js} +1 -1
- package/dist/calcite/{p-ec7843e1.js → p-04b128a1.js} +2 -2
- package/dist/calcite/{p-d84bddf2.js → p-051b2fb2.js} +1 -1
- package/dist/calcite/p-08aa1753.js +6 -0
- package/dist/calcite/p-0b10f4c3.js +6 -0
- package/dist/calcite/{p-c07a061a.entry.js → p-0be88856.entry.js} +2 -2
- package/dist/calcite/p-0c355a73.js +6 -0
- package/dist/calcite/p-0d551f7c.js +6 -0
- package/dist/calcite/{p-fe06ca94.entry.js → p-0eac0d49.entry.js} +2 -2
- package/dist/calcite/p-0f015152.js +6 -0
- package/dist/calcite/{p-17e62eb9.entry.js → p-0f03b7dd.entry.js} +2 -2
- package/dist/calcite/{p-efa22733.entry.js → p-101f7ced.entry.js} +2 -2
- package/dist/calcite/{p-ec4ba597.entry.js → p-106a389d.entry.js} +2 -2
- package/dist/calcite/p-107999f7.js +6 -0
- package/dist/calcite/{p-3658aee6.entry.js → p-14b99c7f.entry.js} +2 -2
- package/dist/calcite/{p-461d09ae.entry.js → p-17baa712.entry.js} +2 -2
- package/dist/calcite/p-192a67a7.js +6 -0
- package/dist/calcite/p-1a43f5c1.js +6 -0
- package/dist/calcite/p-1d360664.js +6 -0
- package/dist/calcite/{p-fba9c586.js → p-1f34e1fd.js} +1 -1
- package/dist/calcite/{p-3bde362d.entry.js → p-1fe910cf.entry.js} +2 -2
- package/dist/calcite/p-21118244.entry.js +6 -0
- package/dist/calcite/{p-2c6dfce3.entry.js → p-218c8064.entry.js} +2 -2
- package/dist/calcite/p-263302fc.entry.js +6 -0
- package/dist/calcite/{p-9a508498.js → p-27fab22f.js} +2 -2
- package/dist/calcite/p-291af3bc.js +6 -0
- package/dist/calcite/{p-ec7b4aa0.entry.js → p-2bf9595a.entry.js} +2 -2
- package/dist/calcite/{p-1d809f99.js → p-2c2c954a.js} +1 -1
- package/dist/calcite/p-2ccf1e1a.js +6 -0
- package/dist/calcite/{p-db48193e.entry.js → p-2ceb7949.entry.js} +2 -2
- package/dist/calcite/{p-8364af0c.entry.js → p-2cf50507.entry.js} +2 -2
- package/dist/calcite/p-2eb53efa.js +6 -0
- package/dist/calcite/p-350ba848.js +6 -0
- package/dist/calcite/{p-c1237170.entry.js → p-3566e8fa.entry.js} +2 -2
- package/dist/calcite/{p-55b7453c.js → p-356a8374.js} +2 -2
- package/dist/calcite/{p-1442a225.entry.js → p-35710e59.entry.js} +2 -2
- package/dist/calcite/{p-f1dd47b8.js → p-367c2c01.js} +1 -1
- package/dist/calcite/{p-0735bdd7.entry.js → p-36ace5f9.entry.js} +2 -2
- package/dist/calcite/{p-ac147869.entry.js → p-3a8aa8e0.entry.js} +2 -2
- package/dist/calcite/{p-7c5235d3.entry.js → p-3b0bc663.entry.js} +2 -2
- package/dist/calcite/{p-02645704.js → p-3e24464e.js} +1 -1
- package/dist/calcite/p-3ea755c3.js +6 -0
- package/dist/calcite/{p-bbd17ec6.entry.js → p-40c70921.entry.js} +2 -2
- package/dist/calcite/{p-28914dec.entry.js → p-415c7582.entry.js} +2 -2
- package/dist/calcite/p-43488336.js +6 -0
- package/dist/calcite/{p-739e0464.entry.js → p-47f6cc60.entry.js} +2 -2
- package/dist/calcite/{p-8a599644.entry.js → p-481689ed.entry.js} +2 -2
- package/dist/calcite/{p-0d8467bf.entry.js → p-4cea1f48.entry.js} +2 -2
- package/dist/calcite/{p-9fb82706.entry.js → p-4feede09.entry.js} +2 -2
- package/dist/calcite/{p-d5102f79.js → p-516bc559.js} +2 -2
- package/dist/calcite/p-523bf4d0.js +6 -0
- package/dist/calcite/p-528e7203.js +6 -0
- package/dist/calcite/{p-4251f642.entry.js → p-52b1bf7b.entry.js} +2 -2
- package/dist/calcite/p-53f98def.js +6 -0
- package/dist/calcite/p-550b5646.js +6 -0
- package/dist/calcite/{p-b82299c9.entry.js → p-55478161.entry.js} +2 -2
- package/dist/calcite/p-56b34725.js +6 -0
- package/dist/calcite/{p-bcdfe53c.entry.js → p-5a899b57.entry.js} +2 -2
- package/dist/calcite/{p-b5580f68.entry.js → p-5b44824f.entry.js} +2 -2
- package/dist/calcite/{p-5a6859da.entry.js → p-5d7df7d7.entry.js} +2 -2
- package/dist/calcite/{p-ff56298b.js → p-5f4f6135.js} +2 -2
- package/dist/calcite/p-6459de7f.js +6 -0
- package/dist/calcite/p-66338fee.js +6 -0
- package/dist/calcite/{p-b86579dd.js → p-6b192a69.js} +2 -2
- package/dist/calcite/p-6bd53cb4.entry.js +6 -0
- package/dist/calcite/{p-90a3a149.entry.js → p-6bfcdcb3.entry.js} +2 -2
- package/dist/calcite/{p-3644a46c.entry.js → p-6e5301ae.entry.js} +2 -2
- package/dist/calcite/{p-413368f9.entry.js → p-712e146e.entry.js} +2 -2
- package/dist/calcite/p-714c7efc.js +6 -0
- package/dist/calcite/{p-0d413952.js → p-7293020f.js} +1 -1
- package/dist/calcite/{p-afdf0971.js → p-72f2fc08.js} +2 -2
- package/dist/calcite/{p-b82269a4.js → p-734e8d42.js} +2 -2
- package/dist/calcite/{p-d0ffca9b.entry.js → p-7483df3f.entry.js} +2 -2
- package/dist/calcite/{p-f2b37961.js → p-7660ae6b.js} +1 -1
- package/dist/calcite/{p-e31bc1eb.entry.js → p-7886a6bf.entry.js} +2 -2
- package/dist/calcite/p-79c89028.js +6 -0
- package/dist/calcite/p-7a7b7385.js +6 -0
- package/dist/calcite/{p-2ec82314.entry.js → p-7aba06d8.entry.js} +2 -2
- package/dist/calcite/{p-028c4366.entry.js → p-7d689862.entry.js} +2 -2
- package/dist/calcite/{p-6b421933.js → p-7d694580.js} +2 -2
- package/dist/calcite/{p-295a05c8.js → p-7f80490b.js} +2 -2
- package/dist/calcite/p-802f23c8.js +6 -0
- package/dist/calcite/{p-2cb7200e.js → p-8031ed50.js} +1 -1
- package/dist/calcite/{p-e3eb3c78.entry.js → p-847ffa38.entry.js} +2 -2
- package/dist/calcite/p-84ac0b8e.js +6 -0
- package/dist/calcite/p-863222dd.js +6 -0
- package/dist/calcite/{p-8abc13d4.entry.js → p-8b8a985a.entry.js} +2 -2
- package/dist/calcite/p-8b92bdfe.js +6 -0
- package/dist/calcite/p-8bd48824.js +6 -0
- package/dist/calcite/p-8be2aaf5.js +6 -0
- package/dist/calcite/p-8dd15d84.entry.js +6 -0
- package/dist/calcite/{p-6738ef06.entry.js → p-9056626e.entry.js} +2 -2
- package/dist/calcite/{p-23109de2.entry.js → p-922a124c.entry.js} +2 -2
- package/dist/calcite/{p-7bfebfed.js → p-9317fe7a.js} +2 -2
- package/dist/calcite/{p-be745308.entry.js → p-93ab9355.entry.js} +2 -2
- package/dist/calcite/p-93d4269f.js +6 -0
- package/dist/calcite/p-94d6b5ec.js +6 -0
- package/dist/calcite/p-991cd313.js +6 -0
- package/dist/calcite/p-99b80b00.js +6 -0
- package/dist/calcite/p-9c52c791.entry.js +6 -0
- package/dist/calcite/p-9c9847fa.js +6 -0
- package/dist/calcite/{p-2c825d35.entry.js → p-9cea7531.entry.js} +2 -2
- package/dist/calcite/{p-8a79163d.entry.js → p-9d07d546.entry.js} +2 -2
- package/dist/calcite/{p-003e75d5.entry.js → p-9e9cc622.entry.js} +2 -2
- package/dist/calcite/{p-91a65ff1.entry.js → p-9f5f8765.entry.js} +2 -2
- package/dist/calcite/p-a09f3a13.js +6 -0
- package/dist/calcite/{p-e547f45f.entry.js → p-a0ac357b.entry.js} +2 -2
- package/dist/calcite/{p-40b5ffc9.entry.js → p-a4b6bfbd.entry.js} +2 -2
- package/dist/calcite/p-a6b6e4b0.js +6 -0
- package/dist/calcite/p-ac04826f.js +6 -0
- package/dist/calcite/p-ac18189f.js +6 -0
- package/dist/calcite/{p-f4bf05ca.js → p-ae4d4713.js} +2 -2
- package/dist/calcite/{p-ed53b7f7.js → p-aedd2b1a.js} +1 -1
- package/dist/calcite/p-b743b9d1.js +6 -0
- package/dist/calcite/{p-1281e636.entry.js → p-b775646d.entry.js} +2 -2
- package/dist/calcite/p-b8b481a9.js +6 -0
- package/dist/calcite/{p-f8b43fed.js → p-bd273c4a.js} +2 -2
- package/dist/calcite/p-bd696583.js +6 -0
- package/dist/calcite/p-bf40c366.js +6 -0
- package/dist/calcite/{p-06f17447.entry.js → p-c0ce5f76.entry.js} +2 -2
- package/dist/calcite/{p-7fa21dbf.entry.js → p-c0d2a7bc.entry.js} +2 -2
- package/dist/calcite/p-c10b1f73.js +6 -0
- package/dist/calcite/{p-2b554c61.js → p-c45eaf43.js} +2 -2
- package/dist/calcite/{p-bdeb9d06.js → p-c5ecc918.js} +1 -1
- package/dist/calcite/{p-212777e1.js → p-c5f56d00.js} +2 -2
- package/dist/calcite/{p-44187a2b.entry.js → p-c6151f3a.entry.js} +2 -2
- package/dist/calcite/p-c7b75712.js +6 -0
- package/dist/calcite/{p-c0ad0d34.entry.js → p-c8b51fb1.entry.js} +2 -2
- package/dist/calcite/p-cb223296.entry.js +6 -0
- package/dist/calcite/{p-a46402ae.entry.js → p-ce42fb89.entry.js} +2 -2
- package/dist/calcite/{p-5ba3500a.entry.js → p-cef2922a.entry.js} +2 -2
- package/dist/calcite/p-d13d008f.js +6 -0
- package/dist/calcite/{p-6423a60b.entry.js → p-d3975c75.entry.js} +2 -2
- package/dist/calcite/{p-1efcb3ea.entry.js → p-daddbcdc.entry.js} +2 -2
- package/dist/calcite/{p-32d19214.js → p-db018c92.js} +1 -1
- package/dist/calcite/{p-0ef33e2e.entry.js → p-e0c32d9c.entry.js} +2 -2
- package/dist/calcite/{p-43aad518.entry.js → p-e42be64c.entry.js} +2 -2
- package/dist/calcite/p-e56e5d7e.js +6 -0
- package/dist/calcite/{p-cfb882e5.js → p-e6b1abfc.js} +1 -1
- package/dist/calcite/p-ed733533.js +6 -0
- package/dist/calcite/p-f0ac31d5.js +6 -0
- package/dist/calcite/p-f11e7589.js +6 -0
- package/dist/calcite/{p-106a4700.entry.js → p-f1a3a521.entry.js} +2 -2
- package/dist/calcite/{p-8aecdd94.js → p-f230e9ed.js} +1 -1
- package/dist/calcite/{p-7aedd7fd.entry.js → p-f34bb1f9.entry.js} +2 -2
- package/dist/calcite/p-f7a2f911.js +6 -0
- package/dist/calcite/p-f7b4a857.js +6 -0
- package/dist/calcite/{p-e2f676d4.entry.js → p-f7dd6cfe.entry.js} +2 -2
- package/dist/cjs/{ExpandToggle-d52a28fc.js → ExpandToggle-b7eac610.js} +5 -5
- package/dist/cjs/{FloatingArrow-5436d8ff.js → FloatingArrow-ab04000a.js} +2 -2
- package/dist/cjs/{Heading-277e5730.js → Heading-2c4e39c0.js} +2 -2
- package/dist/cjs/{app-globals-25831d8d.js → app-globals-d1de22c4.js} +2 -2
- package/dist/cjs/{ar-9afccc9d.js → ar-e3f7d8d6.js} +16 -15
- package/dist/cjs/{array-0cfea856.js → array-5bc51a8d.js} +1 -1
- package/dist/cjs/{bg-cecf5049.js → bg-060348c1.js} +16 -15
- package/dist/cjs/{bs-26979f5a.js → bs-d31c5c73.js} +16 -15
- package/dist/cjs/{ca-27b5d9f0.js → ca-9b1e61e2.js} +16 -15
- package/dist/cjs/calcite-accordion_2.cjs.entry.js +7 -7
- package/dist/cjs/calcite-action-bar.cjs.entry.js +15 -15
- package/dist/cjs/calcite-action-group.cjs.entry.js +13 -13
- package/dist/cjs/calcite-action-menu.cjs.entry.js +9 -9
- package/dist/cjs/calcite-action-pad.cjs.entry.js +14 -14
- package/dist/cjs/calcite-action.cjs.entry.js +11 -11
- package/dist/cjs/calcite-alert.cjs.entry.js +12 -12
- package/dist/cjs/calcite-avatar.cjs.entry.js +6 -6
- package/dist/cjs/calcite-block_2.cjs.entry.js +13 -13
- package/dist/cjs/calcite-button.cjs.entry.js +13 -13
- package/dist/cjs/calcite-card.cjs.entry.js +10 -10
- package/dist/cjs/calcite-checkbox.cjs.entry.js +10 -10
- package/dist/cjs/calcite-chip-group.cjs.entry.js +8 -8
- package/dist/cjs/calcite-chip.cjs.entry.js +12 -12
- package/dist/cjs/calcite-color-picker_3.cjs.entry.js +15 -15
- package/dist/cjs/calcite-combobox_3.cjs.entry.js +18 -18
- package/dist/cjs/calcite-date-picker_4.cjs.entry.js +13 -13
- package/dist/cjs/calcite-dropdown_3.cjs.entry.js +12 -12
- package/dist/cjs/calcite-fab.cjs.entry.js +7 -7
- package/dist/cjs/calcite-filter.cjs.entry.js +13 -13
- package/dist/cjs/calcite-flow-item.cjs.entry.js +12 -12
- package/dist/cjs/calcite-flow.cjs.entry.js +4 -4
- package/dist/cjs/calcite-graph_2.cjs.entry.js +13 -13
- package/dist/cjs/calcite-handle.cjs.entry.js +10 -10
- package/dist/cjs/calcite-icon.cjs.entry.js +6 -6
- package/dist/cjs/calcite-inline-editable.cjs.entry.js +12 -12
- package/dist/cjs/calcite-input-date-picker.cjs.entry.js +18 -18
- package/dist/cjs/calcite-input-message.cjs.entry.js +5 -5
- package/dist/cjs/calcite-input-number.cjs.entry.js +13 -13
- package/dist/cjs/calcite-input-text.cjs.entry.js +13 -13
- package/dist/cjs/{calcite-input-time-picker.calcite-time-picker-7cd4d375.js → calcite-input-time-picker.calcite-time-picker-1ecc301c.js} +462 -174
- package/dist/cjs/calcite-input-time-picker_2.cjs.entry.js +16 -15
- package/dist/cjs/calcite-input-time-zone.cjs.entry.js +13 -13
- package/dist/cjs/calcite-input.cjs.entry.js +13 -13
- package/dist/cjs/calcite-label.cjs.entry.js +6 -6
- package/dist/cjs/calcite-link.cjs.entry.js +7 -7
- package/dist/cjs/calcite-list_3.cjs.entry.js +14 -14
- package/dist/cjs/calcite-loader.cjs.entry.js +3 -3
- package/dist/cjs/calcite-menu_2.cjs.entry.js +10 -10
- package/dist/cjs/calcite-meter.cjs.entry.js +10 -10
- package/dist/cjs/calcite-modal.cjs.entry.js +13 -13
- package/dist/cjs/calcite-navigation_3.cjs.entry.js +6 -6
- package/dist/cjs/calcite-notice.cjs.entry.js +12 -12
- package/dist/cjs/calcite-option_3.cjs.entry.js +10 -10
- package/dist/cjs/calcite-pagination.cjs.entry.js +10 -10
- package/dist/cjs/calcite-panel.cjs.entry.js +14 -14
- package/dist/cjs/calcite-pick-list_3.cjs.entry.js +16 -16
- package/dist/cjs/calcite-popover.cjs.entry.js +16 -16
- package/dist/cjs/calcite-progress.cjs.entry.js +5 -5
- package/dist/cjs/calcite-radio-button-group.cjs.entry.js +4 -4
- package/dist/cjs/calcite-radio-button.cjs.entry.js +10 -10
- package/dist/cjs/calcite-rating.cjs.entry.js +13 -13
- package/dist/cjs/calcite-scrim.cjs.entry.js +9 -9
- package/dist/cjs/calcite-segmented-control_2.cjs.entry.js +10 -10
- package/dist/cjs/calcite-sheet.cjs.entry.js +9 -9
- package/dist/cjs/calcite-shell_3.cjs.entry.js +11 -11
- package/dist/cjs/calcite-sortable-list.cjs.entry.js +8 -8
- package/dist/cjs/calcite-split-button.cjs.entry.js +4 -4
- package/dist/cjs/calcite-stack.cjs.entry.js +6 -6
- package/dist/cjs/calcite-stepper_2.cjs.entry.js +10 -10
- package/dist/cjs/calcite-switch.cjs.entry.js +10 -10
- package/dist/cjs/calcite-tab_4.cjs.entry.js +10 -10
- package/dist/cjs/calcite-text-area.cjs.entry.js +15 -15
- package/dist/cjs/calcite-tile-select_2.cjs.entry.js +5 -5
- package/dist/cjs/calcite-tile.cjs.entry.js +8 -8
- package/dist/cjs/calcite-tip_3.cjs.entry.js +11 -11
- package/dist/cjs/calcite-tooltip.cjs.entry.js +9 -9
- package/dist/cjs/calcite-tree_2.cjs.entry.js +8 -8
- package/dist/cjs/calcite-value-list_2.cjs.entry.js +16 -16
- package/dist/cjs/calcite.cjs.js +5 -5
- package/dist/cjs/{conditionalSlot-35e0d1ff.js → conditionalSlot-be73a844.js} +3 -3
- package/dist/cjs/{cs-111ca8f2.js → cs-f0c85e57.js} +16 -15
- package/dist/cjs/{da-d82e9856.js → da-0c565998.js} +16 -15
- package/dist/cjs/{de-61ae08b8.js → de-342c9d42.js} +16 -15
- package/dist/cjs/{de-at-eba92043.js → de-at-e27590f8.js} +16 -15
- package/dist/cjs/{de-ch-4d021c55.js → de-ch-4bd31d0f.js} +16 -15
- package/dist/cjs/{debounce-12434a9b.js → debounce-de6c62dd.js} +1 -1
- package/dist/cjs/{dom-b3aeb26a.js → dom-5c1f05a4.js} +3 -3
- package/dist/cjs/{el-f84abbda.js → el-db20dda3.js} +16 -15
- package/dist/cjs/{en-au-aa1def49.js → en-au-fe57fd16.js} +16 -15
- package/dist/cjs/{en-ca-cf798137.js → en-ca-57ad0ef1.js} +16 -15
- package/dist/cjs/{en-gb-4a6012cf.js → en-gb-b45ccd3a.js} +16 -15
- package/dist/cjs/{es-61678472.js → es-301cba4f.js} +16 -15
- package/dist/cjs/{es-mx-cd866ce4.js → es-mx-7051a78b.js} +16 -15
- package/dist/cjs/{et-7fffdf41.js → et-ba36cd54.js} +16 -15
- package/dist/cjs/{fi-8f2ee314.js → fi-850ad6d4.js} +16 -15
- package/dist/cjs/{filter-bbda9f19.js → filter-31177fd1.js} +2 -2
- package/dist/cjs/{floating-ui-b21b83ec.js → floating-ui-e09abdf1.js} +3 -3
- package/dist/cjs/{focusTrapComponent-5b8c6714.js → focusTrapComponent-ce5a3e7f.js} +2 -2
- package/dist/cjs/{form-9c12dc45.js → form-e383be1d.js} +3 -3
- package/dist/cjs/{fr-ba76b48e.js → fr-cc6ec309.js} +16 -15
- package/dist/cjs/{fr-ch-1fb42ab4.js → fr-ch-b42c894d.js} +16 -15
- package/dist/cjs/{guid-25401435.js → guid-56212af8.js} +1 -1
- package/dist/cjs/{he-854e468d.js → he-80b9b6ae.js} +16 -15
- package/dist/cjs/{hi-94d1502d.js → hi-c67be7ee.js} +16 -15
- package/dist/cjs/{hr-43f1f199.js → hr-0191e1b7.js} +16 -15
- package/dist/cjs/{hu-bf2e6a8a.js → hu-e9be71de.js} +16 -15
- package/dist/cjs/{id-fac3f393.js → id-b7dbbc1b.js} +16 -15
- package/dist/cjs/{index-8c348d70.js → index-7a7283a1.js} +1 -1
- package/dist/cjs/index.cjs.js +2 -2
- package/dist/cjs/{interactive-41d7137d.js → interactive-987d5138.js} +1 -1
- package/dist/cjs/{it-b74d9e4c.js → it-64c27dea.js} +16 -15
- package/dist/cjs/{it-ch-ef4d6e5e.js → it-ch-3bd71f60.js} +16 -15
- package/dist/cjs/{ja-a02329f6.js → ja-3a41c5d6.js} +16 -15
- package/dist/cjs/{key-2d68cf34.js → key-31a858e5.js} +1 -1
- package/dist/cjs/{ko-041413b5.js → ko-d88c39ed.js} +16 -15
- package/dist/cjs/{label-520032ab.js → label-f6ff58d4.js} +2 -2
- package/dist/cjs/{loadable-37f5e498.js → loadable-35c473fe.js} +2 -2
- package/dist/cjs/loader.cjs.js +5 -5
- package/dist/cjs/{locale-3cddd6e1.js → locale-8b7f63e3.js} +4 -4
- package/dist/cjs/{lt-39d21fb0.js → lt-09328619.js} +16 -15
- package/dist/cjs/{lv-0c1227f8.js → lv-86eb22b6.js} +16 -15
- package/dist/cjs/{math-0010fa6f.js → math-44bc2b23.js} +18 -2
- package/dist/cjs/{mk-c68493cf.js → mk-61a37f6a.js} +16 -15
- package/dist/cjs/{nb-b20d78e0.js → nb-75d7113d.js} +16 -15
- package/dist/cjs/{nl-686e0c93.js → nl-8d45cb62.js} +16 -15
- package/dist/cjs/{observers-591d8eb9.js → observers-b3d334aa.js} +1 -1
- package/dist/cjs/{openCloseComponent-c33e00e7.js → openCloseComponent-bb19b968.js} +2 -2
- package/dist/cjs/{pl-a834e9f8.js → pl-a212b79f.js} +16 -15
- package/dist/cjs/{pt-08a11aa1.js → pt-966ae855.js} +16 -15
- package/dist/cjs/{pt-br-f922b1e9.js → pt-br-682183f7.js} +16 -15
- package/dist/cjs/{resources-d340411e.js → resources-139dd2d0.js} +1 -1
- package/dist/cjs/{resources-5ece50c0.js → resources-347319c0.js} +1 -1
- package/dist/cjs/{resources-67855b02.js → resources-827d1e56.js} +5 -5
- package/dist/cjs/{resources-3b2c4161.js → resources-8d161497.js} +1 -1
- package/dist/cjs/{resources-beb12f5a.js → resources-91ff6111.js} +1 -1
- package/dist/cjs/{resources-e0612f0e.js → resources-9c5c2364.js} +1 -1
- package/dist/cjs/{resources-0a2120bb.js → resources-bf3f9968.js} +1 -1
- package/dist/cjs/{ro-0d34042f.js → ro-09a0bc24.js} +16 -15
- package/dist/cjs/{ru-c0d15012.js → ru-e02f19d4.js} +16 -15
- package/dist/cjs/{sk-fe2c5d02.js → sk-eef414fd.js} +16 -15
- package/dist/cjs/{sl-4621cf34.js → sl-64bcfd3c.js} +16 -15
- package/dist/cjs/{sortableComponent-9445fc94.js → sortableComponent-b4618ee3.js} +2 -2
- package/dist/cjs/{sr-2dd3795b.js → sr-8aa5a7fe.js} +16 -15
- package/dist/cjs/{sv-7e163dbd.js → sv-f1e6baa9.js} +16 -15
- package/dist/cjs/{t9n-1919af49.js → t9n-b6c38d3b.js} +3 -3
- package/dist/cjs/{th-3a5b5e1f.js → th-6ba512a0.js} +16 -15
- package/dist/cjs/{throttle-0638b33c.js → throttle-59ff9e96.js} +2 -2
- package/dist/cjs/{tr-e585a0e3.js → tr-473141ca.js} +16 -15
- package/dist/cjs/{uk-c18ef84e.js → uk-a6378ce5.js} +16 -15
- package/dist/cjs/{utils-5eadf502.js → utils-7d8173f3.js} +3 -3
- package/dist/cjs/{utils-2bb1996e.js → utils-fb0d548a.js} +1 -1
- package/dist/cjs/{vi-fd376807.js → vi-2e02ef80.js} +16 -15
- package/dist/cjs/{zh-cn-11c18ca7.js → zh-cn-7b11995c.js} +16 -15
- package/dist/cjs/{zh-hk-1d39de2e.js → zh-hk-fbe311b5.js} +16 -15
- package/dist/cjs/{zh-tw-33ff727d.js → zh-tw-137c4d01.js} +16 -15
- package/dist/collection/components/accordion/accordion.js +1 -1
- package/dist/collection/components/accordion-item/accordion-item.js +1 -1
- package/dist/collection/components/accordion-item/resources.js +1 -1
- package/dist/collection/components/action/action.js +1 -1
- package/dist/collection/components/action/resources.js +1 -1
- package/dist/collection/components/action-bar/action-bar.js +1 -1
- package/dist/collection/components/action-bar/resources.js +1 -1
- package/dist/collection/components/action-bar/utils.js +1 -1
- package/dist/collection/components/action-group/action-group.js +1 -1
- package/dist/collection/components/action-group/resources.js +1 -1
- package/dist/collection/components/action-menu/action-menu.js +1 -1
- package/dist/collection/components/action-menu/resources.js +1 -1
- package/dist/collection/components/action-pad/action-pad.js +1 -1
- package/dist/collection/components/action-pad/resources.js +1 -1
- package/dist/collection/components/alert/alert.js +1 -1
- package/dist/collection/components/alert/resources.js +1 -1
- package/dist/collection/components/avatar/avatar.js +1 -1
- package/dist/collection/components/avatar/utils.js +1 -1
- package/dist/collection/components/block/block.js +1 -1
- package/dist/collection/components/block/resources.js +1 -1
- package/dist/collection/components/block-section/block-section.js +1 -1
- package/dist/collection/components/block-section/resources.js +1 -1
- package/dist/collection/components/button/button.js +1 -1
- package/dist/collection/components/button/resources.js +1 -1
- package/dist/collection/components/card/card.js +1 -1
- package/dist/collection/components/card/resources.js +1 -1
- package/dist/collection/components/checkbox/checkbox.js +1 -1
- package/dist/collection/components/chip/chip.js +1 -1
- package/dist/collection/components/chip/resources.js +1 -1
- package/dist/collection/components/chip-group/chip-group.js +1 -1
- package/dist/collection/components/color-picker/color-picker.js +1 -1
- package/dist/collection/components/color-picker/resources.js +1 -1
- package/dist/collection/components/color-picker/utils.js +1 -1
- package/dist/collection/components/color-picker-hex-input/color-picker-hex-input.js +1 -1
- package/dist/collection/components/color-picker-hex-input/resources.js +1 -1
- package/dist/collection/components/color-picker-swatch/color-picker-swatch.js +1 -1
- package/dist/collection/components/color-picker-swatch/resources.js +1 -1
- package/dist/collection/components/combobox/combobox.js +1 -1
- package/dist/collection/components/combobox/resources.js +1 -1
- package/dist/collection/components/combobox/utils.js +1 -1
- package/dist/collection/components/combobox-item/combobox-item.js +1 -1
- package/dist/collection/components/combobox-item/resources.js +1 -1
- package/dist/collection/components/combobox-item-group/combobox-item-group.js +1 -1
- package/dist/collection/components/combobox-item-group/resources.js +1 -1
- package/dist/collection/components/date-picker/date-picker.js +1 -1
- package/dist/collection/components/date-picker/resources.js +1 -1
- package/dist/collection/components/date-picker/utils.js +1 -1
- package/dist/collection/components/date-picker-day/date-picker-day.js +1 -1
- package/dist/collection/components/date-picker-month/date-picker-month.js +1 -1
- package/dist/collection/components/date-picker-month-header/date-picker-month-header.js +1 -1
- package/dist/collection/components/date-picker-month-header/resources.js +1 -1
- package/dist/collection/components/dropdown/dropdown.js +1 -1
- package/dist/collection/components/dropdown/resources.js +1 -1
- package/dist/collection/components/dropdown-group/dropdown-group.js +1 -1
- package/dist/collection/components/dropdown-item/dropdown-item.js +1 -1
- package/dist/collection/components/dropdown-item/resources.js +1 -1
- package/dist/collection/components/fab/fab.js +1 -1
- package/dist/collection/components/fab/resources.js +1 -1
- package/dist/collection/components/filter/filter.js +1 -1
- package/dist/collection/components/filter/resources.js +1 -1
- package/dist/collection/components/flow/flow.js +1 -1
- package/dist/collection/components/flow/resources.js +1 -1
- package/dist/collection/components/flow-item/flow-item.js +1 -1
- package/dist/collection/components/flow-item/resources.js +1 -1
- package/dist/collection/components/functional/ExpandToggle.js +1 -1
- package/dist/collection/components/functional/FloatingArrow.js +1 -1
- package/dist/collection/components/functional/Heading.js +1 -1
- package/dist/collection/components/functional/XButton.js +1 -1
- package/dist/collection/components/graph/graph.js +1 -1
- package/dist/collection/components/graph/util.js +1 -1
- package/dist/collection/components/handle/handle.js +1 -1
- package/dist/collection/components/handle/resources.js +1 -1
- package/dist/collection/components/icon/icon.js +1 -1
- package/dist/collection/components/icon/resources.js +1 -1
- package/dist/collection/components/icon/utils.js +1 -1
- package/dist/collection/components/inline-editable/inline-editable.js +1 -1
- package/dist/collection/components/inline-editable/resources.js +1 -1
- package/dist/collection/components/input/input.js +1 -1
- package/dist/collection/components/input/resources.js +1 -1
- package/dist/collection/components/input-date-picker/input-date-picker.js +1 -1
- package/dist/collection/components/input-date-picker/resources.js +1 -1
- package/dist/collection/components/input-message/input-message.js +1 -1
- package/dist/collection/components/input-message/interfaces.js +1 -1
- package/dist/collection/components/input-number/input-number.js +1 -1
- package/dist/collection/components/input-number/resources.js +1 -1
- package/dist/collection/components/input-text/input-text.js +1 -1
- package/dist/collection/components/input-text/resources.js +1 -1
- package/dist/collection/components/input-time-picker/input-time-picker.js +129 -27
- package/dist/collection/components/input-time-picker/resources.js +1 -1
- package/dist/collection/components/input-time-zone/input-time-zone.js +1 -1
- package/dist/collection/components/input-time-zone/utils.js +1 -1
- package/dist/collection/components/label/label.js +1 -1
- package/dist/collection/components/label/resources.js +1 -1
- package/dist/collection/components/link/link.js +1 -1
- package/dist/collection/components/list/list.js +1 -1
- package/dist/collection/components/list/resources.js +1 -1
- package/dist/collection/components/list-item/list-item.js +1 -1
- package/dist/collection/components/list-item/resources.js +1 -1
- package/dist/collection/components/list-item/utils.js +1 -1
- package/dist/collection/components/list-item-group/list-item-group.js +1 -1
- package/dist/collection/components/list-item-group/resources.js +1 -1
- package/dist/collection/components/loader/loader.js +1 -1
- package/dist/collection/components/menu/menu.js +1 -1
- package/dist/collection/components/menu-item/menu-item.js +1 -1
- package/dist/collection/components/menu-item/resources.js +1 -1
- package/dist/collection/components/meter/meter.js +1 -1
- package/dist/collection/components/meter/resources.js +1 -1
- package/dist/collection/components/modal/modal.js +1 -1
- package/dist/collection/components/modal/resources.js +1 -1
- package/dist/collection/components/navigation/navigation.js +1 -1
- package/dist/collection/components/navigation/resources.js +1 -1
- package/dist/collection/components/navigation-logo/navigation-logo.js +1 -1
- package/dist/collection/components/navigation-logo/resources.js +1 -1
- package/dist/collection/components/navigation-user/navigation-user.js +1 -1
- package/dist/collection/components/navigation-user/resources.js +1 -1
- package/dist/collection/components/notice/notice.js +1 -1
- package/dist/collection/components/notice/resources.js +1 -1
- package/dist/collection/components/option/option.js +1 -1
- package/dist/collection/components/option-group/option-group.js +1 -1
- package/dist/collection/components/pagination/pagination.js +1 -1
- package/dist/collection/components/pagination/resources.js +1 -1
- package/dist/collection/components/panel/panel.js +1 -1
- package/dist/collection/components/panel/resources.js +1 -1
- package/dist/collection/components/pick-list/pick-list.js +1 -1
- package/dist/collection/components/pick-list/resources.js +1 -1
- package/dist/collection/components/pick-list/shared-list-logic.js +1 -1
- package/dist/collection/components/pick-list/shared-list-render.js +1 -1
- package/dist/collection/components/pick-list-group/pick-list-group.js +1 -1
- package/dist/collection/components/pick-list-group/resources.js +1 -1
- package/dist/collection/components/pick-list-item/pick-list-item.js +1 -1
- package/dist/collection/components/pick-list-item/resources.js +1 -1
- package/dist/collection/components/popover/PopoverManager.js +1 -1
- package/dist/collection/components/popover/popover.js +1 -1
- package/dist/collection/components/popover/resources.js +1 -1
- package/dist/collection/components/progress/progress.js +1 -1
- package/dist/collection/components/radio-button/radio-button.js +1 -1
- package/dist/collection/components/radio-button/resources.js +1 -1
- package/dist/collection/components/radio-button-group/radio-button-group.js +1 -1
- package/dist/collection/components/rating/function/star.js +1 -1
- package/dist/collection/components/rating/rating.js +1 -1
- package/dist/collection/components/resources.js +1 -1
- package/dist/collection/components/scrim/resources.js +1 -1
- package/dist/collection/components/scrim/scrim.js +1 -1
- package/dist/collection/components/segmented-control/segmented-control.js +1 -1
- package/dist/collection/components/segmented-control-item/resources.js +1 -1
- package/dist/collection/components/segmented-control-item/segmented-control-item.js +1 -1
- package/dist/collection/components/select/resources.js +1 -1
- package/dist/collection/components/select/select.js +1 -1
- package/dist/collection/components/sheet/resources.js +1 -1
- package/dist/collection/components/sheet/sheet.js +1 -1
- package/dist/collection/components/shell/resources.js +1 -1
- package/dist/collection/components/shell/shell.js +2 -2
- package/dist/collection/components/shell-center-row/resources.js +1 -1
- package/dist/collection/components/shell-center-row/shell-center-row.js +1 -1
- package/dist/collection/components/shell-panel/resources.js +1 -1
- package/dist/collection/components/shell-panel/shell-panel.js +1 -1
- package/dist/collection/components/slider/resources.js +1 -1
- package/dist/collection/components/slider/slider.js +1 -1
- package/dist/collection/components/sortable-list/resources.js +1 -1
- package/dist/collection/components/sortable-list/sortable-list.js +1 -1
- package/dist/collection/components/split-button/resources.js +1 -1
- package/dist/collection/components/split-button/split-button.js +1 -1
- package/dist/collection/components/stack/resources.js +1 -1
- package/dist/collection/components/stack/stack.js +1 -1
- package/dist/collection/components/stepper/stepper.js +1 -1
- package/dist/collection/components/stepper-item/stepper-item.js +1 -1
- package/dist/collection/components/switch/switch.js +1 -1
- package/dist/collection/components/tab/tab.js +1 -1
- package/dist/collection/components/tab-nav/tab-nav.js +1 -1
- package/dist/collection/components/tab-title/resources.js +1 -1
- package/dist/collection/components/tab-title/tab-title.js +1 -1
- package/dist/collection/components/tabs/resources.js +1 -1
- package/dist/collection/components/tabs/tabs.js +1 -1
- package/dist/collection/components/text-area/resources.js +1 -1
- package/dist/collection/components/text-area/text-area.js +1 -1
- package/dist/collection/components/tile/resources.js +1 -1
- package/dist/collection/components/tile/tile.js +1 -1
- package/dist/collection/components/tile-select/resources.js +1 -1
- package/dist/collection/components/tile-select/tile-select.js +1 -1
- package/dist/collection/components/tile-select-group/tile-select-group.js +1 -1
- package/dist/collection/components/time-picker/assets/time-picker/t9n/index.d.ts +3 -0
- package/dist/collection/components/time-picker/assets/time-picker/t9n/messages.json +3 -0
- package/dist/collection/components/time-picker/assets/time-picker/t9n/messages_en.json +3 -0
- package/dist/collection/components/time-picker/resources.js +4 -1
- package/dist/collection/components/time-picker/time-picker.js +186 -76
- package/dist/collection/components/tip/resources.js +1 -1
- package/dist/collection/components/tip/tip.js +1 -1
- package/dist/collection/components/tip-group/tip-group.js +1 -1
- package/dist/collection/components/tip-manager/resources.js +1 -1
- package/dist/collection/components/tip-manager/tip-manager.js +1 -1
- package/dist/collection/components/tooltip/TooltipManager.js +1 -1
- package/dist/collection/components/tooltip/resources.js +1 -1
- package/dist/collection/components/tooltip/tooltip.js +1 -1
- package/dist/collection/components/tooltip/utils.js +1 -1
- package/dist/collection/components/tree/tree.js +1 -1
- package/dist/collection/components/tree/utils.js +1 -1
- package/dist/collection/components/tree-item/resources.js +1 -1
- package/dist/collection/components/tree-item/tree-item.js +1 -1
- package/dist/collection/components/value-list/resources.js +1 -1
- package/dist/collection/components/value-list/utils.js +1 -1
- package/dist/collection/components/value-list/value-list.js +1 -1
- package/dist/collection/components/value-list-item/resources.js +1 -1
- package/dist/collection/components/value-list-item/value-list-item.js +1 -1
- package/dist/collection/index.js +1 -1
- package/dist/collection/utils/array.js +1 -1
- package/dist/collection/utils/browser.js +1 -1
- package/dist/collection/utils/conditionalSlot.js +1 -1
- package/dist/collection/utils/config.js +1 -1
- package/dist/collection/utils/date.js +1 -1
- package/dist/collection/utils/dom.js +1 -1
- package/dist/collection/utils/filter.js +1 -1
- package/dist/collection/utils/floating-ui.js +1 -1
- package/dist/collection/utils/focusTrapComponent.js +1 -1
- package/dist/collection/utils/form.js +1 -1
- package/dist/collection/utils/globalAttributes.js +1 -1
- package/dist/collection/utils/globalScript.js +1 -1
- package/dist/collection/utils/guid.js +1 -1
- package/dist/collection/utils/interactive.js +1 -1
- package/dist/collection/utils/key.js +1 -1
- package/dist/collection/utils/label.js +1 -1
- package/dist/collection/utils/loadable.js +1 -1
- package/dist/collection/utils/locale.js +1 -1
- package/dist/collection/utils/math.js +17 -2
- package/dist/collection/utils/mode.js +1 -1
- package/dist/collection/utils/number.js +1 -1
- package/dist/collection/utils/observers.js +1 -1
- package/dist/collection/utils/openCloseComponent.js +1 -1
- package/dist/collection/utils/resources.js +1 -1
- package/dist/collection/utils/sortableComponent.js +1 -1
- package/dist/collection/utils/t9n.js +1 -1
- package/dist/collection/utils/time.js +100 -21
- package/dist/components/ExpandToggle.js +1 -1
- package/dist/components/FloatingArrow.js +1 -1
- package/dist/components/Heading.js +1 -1
- package/dist/components/action-group.js +1 -1
- package/dist/components/action-menu.js +1 -1
- package/dist/components/action.js +1 -1
- package/dist/components/ar.js +1 -1
- package/dist/components/array.js +1 -1
- package/dist/components/avatar.js +1 -1
- package/dist/components/bg.js +1 -1
- package/dist/components/bs.js +1 -1
- package/dist/components/button.js +1 -1
- package/dist/components/ca.js +1 -1
- package/dist/components/calcite-accordion-item.js +1 -1
- package/dist/components/calcite-accordion.js +1 -1
- package/dist/components/calcite-action-bar.js +1 -1
- package/dist/components/calcite-action-group.js +1 -1
- package/dist/components/calcite-action-menu.js +1 -1
- package/dist/components/calcite-action-pad.js +1 -1
- package/dist/components/calcite-action.js +1 -1
- package/dist/components/calcite-alert.js +1 -1
- package/dist/components/calcite-avatar.js +1 -1
- package/dist/components/calcite-block-section.js +1 -1
- package/dist/components/calcite-block.js +1 -1
- package/dist/components/calcite-button.js +1 -1
- package/dist/components/calcite-card.js +1 -1
- package/dist/components/calcite-checkbox.js +1 -1
- package/dist/components/calcite-chip-group.js +1 -1
- package/dist/components/calcite-chip.js +1 -1
- package/dist/components/calcite-color-picker-hex-input.js +1 -1
- package/dist/components/calcite-color-picker-swatch.js +1 -1
- package/dist/components/calcite-color-picker.js +1 -1
- package/dist/components/calcite-combobox-item-group.js +1 -1
- package/dist/components/calcite-combobox-item.js +1 -1
- package/dist/components/calcite-combobox.js +1 -1
- package/dist/components/calcite-date-picker-day.js +1 -1
- package/dist/components/calcite-date-picker-month-header.js +1 -1
- package/dist/components/calcite-date-picker-month.js +1 -1
- package/dist/components/calcite-date-picker.js +1 -1
- package/dist/components/calcite-dropdown-group.js +1 -1
- package/dist/components/calcite-dropdown-item.js +1 -1
- package/dist/components/calcite-dropdown.js +1 -1
- package/dist/components/calcite-fab.js +1 -1
- package/dist/components/calcite-filter.js +1 -1
- package/dist/components/calcite-flow-item.js +1 -1
- package/dist/components/calcite-flow.js +1 -1
- package/dist/components/calcite-graph.js +1 -1
- package/dist/components/calcite-handle.js +1 -1
- package/dist/components/calcite-icon.js +1 -1
- package/dist/components/calcite-inline-editable.js +1 -1
- package/dist/components/calcite-input-date-picker.js +1 -1
- package/dist/components/calcite-input-message.js +1 -1
- package/dist/components/calcite-input-number.js +1 -1
- package/dist/components/calcite-input-text.js +1 -1
- package/dist/components/calcite-input-time-picker.js +128 -26
- package/dist/components/calcite-input-time-zone.js +1 -1
- package/dist/components/calcite-input.js +1 -1
- package/dist/components/calcite-label.js +1 -1
- package/dist/components/calcite-link.js +1 -1
- package/dist/components/calcite-list-item-group.js +1 -1
- package/dist/components/calcite-list-item.js +1 -1
- package/dist/components/calcite-list.js +1 -1
- package/dist/components/calcite-loader.js +1 -1
- package/dist/components/calcite-menu-item.js +1 -1
- package/dist/components/calcite-menu.js +1 -1
- package/dist/components/calcite-meter.js +1 -1
- package/dist/components/calcite-modal.js +1 -1
- package/dist/components/calcite-navigation-logo.js +1 -1
- package/dist/components/calcite-navigation-user.js +1 -1
- package/dist/components/calcite-navigation.js +1 -1
- package/dist/components/calcite-notice.js +1 -1
- package/dist/components/calcite-option-group.js +1 -1
- package/dist/components/calcite-option.js +1 -1
- package/dist/components/calcite-pagination.js +1 -1
- package/dist/components/calcite-panel.js +1 -1
- package/dist/components/calcite-pick-list-group.js +1 -1
- package/dist/components/calcite-pick-list-item.js +1 -1
- package/dist/components/calcite-pick-list.js +1 -1
- package/dist/components/calcite-popover.js +1 -1
- package/dist/components/calcite-progress.js +1 -1
- package/dist/components/calcite-radio-button-group.js +1 -1
- package/dist/components/calcite-radio-button.js +1 -1
- package/dist/components/calcite-rating.js +1 -1
- package/dist/components/calcite-scrim.js +1 -1
- package/dist/components/calcite-segmented-control-item.js +1 -1
- package/dist/components/calcite-segmented-control.js +1 -1
- package/dist/components/calcite-select.js +1 -1
- package/dist/components/calcite-sheet.js +1 -1
- package/dist/components/calcite-shell-center-row.js +1 -1
- package/dist/components/calcite-shell-panel.js +1 -1
- package/dist/components/calcite-shell.js +1 -1
- package/dist/components/calcite-slider.js +1 -1
- package/dist/components/calcite-sortable-list.js +1 -1
- package/dist/components/calcite-split-button.js +1 -1
- package/dist/components/calcite-stack.js +1 -1
- package/dist/components/calcite-stepper-item.js +1 -1
- package/dist/components/calcite-stepper.js +1 -1
- package/dist/components/calcite-switch.js +1 -1
- package/dist/components/calcite-tab-nav.js +1 -1
- package/dist/components/calcite-tab-title.js +1 -1
- package/dist/components/calcite-tab.js +1 -1
- package/dist/components/calcite-tabs.js +1 -1
- package/dist/components/calcite-text-area.js +1 -1
- package/dist/components/calcite-tile-select-group.js +1 -1
- package/dist/components/calcite-tile-select.js +1 -1
- package/dist/components/calcite-tile.js +1 -1
- package/dist/components/calcite-time-picker.js +1 -1
- package/dist/components/calcite-tip-group.js +1 -1
- package/dist/components/calcite-tip-manager.js +1 -1
- package/dist/components/calcite-tip.js +1 -1
- package/dist/components/calcite-tooltip.js +1 -1
- package/dist/components/calcite-tree-item.js +1 -1
- package/dist/components/calcite-tree.js +1 -1
- package/dist/components/calcite-value-list-item.js +1 -1
- package/dist/components/calcite-value-list.js +1 -1
- package/dist/components/checkbox.js +1 -1
- package/dist/components/chip.js +1 -1
- package/dist/components/color-picker-hex-input.js +1 -1
- package/dist/components/color-picker-swatch.js +1 -1
- package/dist/components/combobox-item.js +1 -1
- package/dist/components/combobox.js +1 -1
- package/dist/components/conditionalSlot.js +1 -1
- package/dist/components/cs.js +1 -1
- package/dist/components/da.js +1 -1
- package/dist/components/date-picker-day.js +1 -1
- package/dist/components/date-picker-month-header.js +1 -1
- package/dist/components/date-picker-month.js +1 -1
- package/dist/components/date-picker.js +1 -1
- package/dist/components/date.js +1 -1
- package/dist/components/de-at.js +1 -1
- package/dist/components/de-ch.js +1 -1
- package/dist/components/de.js +1 -1
- package/dist/components/debounce.js +1 -1
- package/dist/components/dom.js +1 -1
- package/dist/components/dropdown.js +1 -1
- package/dist/components/el.js +1 -1
- package/dist/components/en-au.js +1 -1
- package/dist/components/en-ca.js +1 -1
- package/dist/components/en-gb.js +1 -1
- package/dist/components/es-mx.js +1 -1
- package/dist/components/es.js +1 -1
- package/dist/components/et.js +1 -1
- package/dist/components/fi.js +1 -1
- package/dist/components/filter.js +1 -1
- package/dist/components/filter2.js +1 -1
- package/dist/components/floating-ui.js +1 -1
- package/dist/components/focusTrapComponent.js +1 -1
- package/dist/components/form.js +1 -1
- package/dist/components/fr-ch.js +1 -1
- package/dist/components/fr.js +1 -1
- package/dist/components/graph.js +1 -1
- package/dist/components/guid.js +1 -1
- package/dist/components/handle.js +1 -1
- package/dist/components/he.js +1 -1
- package/dist/components/hi.js +1 -1
- package/dist/components/hr.js +1 -1
- package/dist/components/hu.js +1 -1
- package/dist/components/icon.js +1 -1
- package/dist/components/id.js +1 -1
- package/dist/components/index.js +1 -1
- package/dist/components/index2.js +1 -1
- package/dist/components/input-number.js +1 -1
- package/dist/components/input-text.js +1 -1
- package/dist/components/input.js +1 -1
- package/dist/components/interactive.js +1 -1
- package/dist/components/it-ch.js +1 -1
- package/dist/components/it.js +1 -1
- package/dist/components/ja.js +1 -1
- package/dist/components/key.js +1 -1
- package/dist/components/ko.js +1 -1
- package/dist/components/label.js +1 -1
- package/dist/components/label2.js +1 -1
- package/dist/components/link.js +1 -1
- package/dist/components/loadable.js +1 -1
- package/dist/components/loader.js +1 -1
- package/dist/components/locale.js +1 -1
- package/dist/components/lt.js +1 -1
- package/dist/components/lv.js +1 -1
- package/dist/components/math.js +18 -3
- package/dist/components/menu.js +1 -1
- package/dist/components/mk.js +1 -1
- package/dist/components/nb.js +1 -1
- package/dist/components/nl.js +1 -1
- package/dist/components/observers.js +1 -1
- package/dist/components/openCloseComponent.js +1 -1
- package/dist/components/panel.js +1 -1
- package/dist/components/pick-list-item.js +1 -1
- package/dist/components/pl.js +1 -1
- package/dist/components/popover.js +1 -1
- package/dist/components/progress.js +1 -1
- package/dist/components/pt-br.js +1 -1
- package/dist/components/pt.js +1 -1
- package/dist/components/resources.js +1 -1
- package/dist/components/resources2.js +1 -1
- package/dist/components/resources3.js +1 -1
- package/dist/components/resources4.js +1 -1
- package/dist/components/ro.js +1 -1
- package/dist/components/ru.js +1 -1
- package/dist/components/scrim.js +1 -1
- package/dist/components/shared-list-render.js +1 -1
- package/dist/components/sk.js +1 -1
- package/dist/components/sl.js +1 -1
- package/dist/components/sortableComponent.js +1 -1
- package/dist/components/sr.js +1 -1
- package/dist/components/stack.js +1 -1
- package/dist/components/sv.js +1 -1
- package/dist/components/switch.js +1 -1
- package/dist/components/t9n.js +1 -1
- package/dist/components/tab-nav.js +1 -1
- package/dist/components/tab-title.js +1 -1
- package/dist/components/tab.js +1 -1
- package/dist/components/tabs.js +1 -1
- package/dist/components/th.js +1 -1
- package/dist/components/throttle.js +1 -1
- package/dist/components/tile.js +1 -1
- package/dist/components/time-picker.js +285 -94
- package/dist/components/tr.js +1 -1
- package/dist/components/uk.js +1 -1
- package/dist/components/utils.js +1 -1
- package/dist/components/utils2.js +1 -1
- package/dist/components/utils3.js +1 -1
- package/dist/components/vi.js +1 -1
- package/dist/components/zh-cn.js +1 -1
- package/dist/components/zh-hk.js +1 -1
- package/dist/components/zh-tw.js +1 -1
- package/dist/esm/{ExpandToggle-6ec45edd.js → ExpandToggle-5b5415c3.js} +5 -5
- package/dist/esm/{FloatingArrow-6686d03e.js → FloatingArrow-839408e5.js} +2 -2
- package/dist/esm/{Heading-8e4b47e7.js → Heading-781b4385.js} +2 -2
- package/dist/esm/{app-globals-2fff341c.js → app-globals-23e2811d.js} +2 -2
- package/dist/esm/{ar-7cca40ea.js → ar-78982992.js} +16 -15
- package/dist/esm/{array-543b1c8c.js → array-aae4a469.js} +1 -1
- package/dist/esm/{bg-25bf4ee6.js → bg-2f54eb5c.js} +16 -15
- package/dist/esm/{bs-4be99035.js → bs-e1e0719f.js} +16 -15
- package/dist/esm/{ca-431f5ffd.js → ca-3e6f25a1.js} +16 -15
- package/dist/esm/calcite-accordion_2.entry.js +7 -7
- package/dist/esm/calcite-action-bar.entry.js +15 -15
- package/dist/esm/calcite-action-group.entry.js +13 -13
- package/dist/esm/calcite-action-menu.entry.js +9 -9
- package/dist/esm/calcite-action-pad.entry.js +14 -14
- package/dist/esm/calcite-action.entry.js +11 -11
- package/dist/esm/calcite-alert.entry.js +12 -12
- package/dist/esm/calcite-avatar.entry.js +6 -6
- package/dist/esm/calcite-block_2.entry.js +13 -13
- package/dist/esm/calcite-button.entry.js +13 -13
- package/dist/esm/calcite-card.entry.js +10 -10
- package/dist/esm/calcite-checkbox.entry.js +10 -10
- package/dist/esm/calcite-chip-group.entry.js +8 -8
- package/dist/esm/calcite-chip.entry.js +12 -12
- package/dist/esm/calcite-color-picker_3.entry.js +15 -15
- package/dist/esm/calcite-combobox_3.entry.js +18 -18
- package/dist/esm/calcite-date-picker_4.entry.js +13 -13
- package/dist/esm/calcite-dropdown_3.entry.js +12 -12
- package/dist/esm/calcite-fab.entry.js +7 -7
- package/dist/esm/calcite-filter.entry.js +13 -13
- package/dist/esm/calcite-flow-item.entry.js +12 -12
- package/dist/esm/calcite-flow.entry.js +4 -4
- package/dist/esm/calcite-graph_2.entry.js +13 -13
- package/dist/esm/calcite-handle.entry.js +10 -10
- package/dist/esm/calcite-icon.entry.js +6 -6
- package/dist/esm/calcite-inline-editable.entry.js +12 -12
- package/dist/esm/calcite-input-date-picker.entry.js +18 -18
- package/dist/esm/calcite-input-message.entry.js +5 -5
- package/dist/esm/calcite-input-number.entry.js +13 -13
- package/dist/esm/calcite-input-text.entry.js +13 -13
- package/dist/esm/{calcite-input-time-picker.calcite-time-picker-c2e3e738.js → calcite-input-time-picker.calcite-time-picker-e496d079.js} +462 -174
- package/dist/esm/calcite-input-time-picker_2.entry.js +16 -15
- package/dist/esm/calcite-input-time-zone.entry.js +13 -13
- package/dist/esm/calcite-input.entry.js +13 -13
- package/dist/esm/calcite-label.entry.js +6 -6
- package/dist/esm/calcite-link.entry.js +7 -7
- package/dist/esm/calcite-list_3.entry.js +14 -14
- package/dist/esm/calcite-loader.entry.js +3 -3
- package/dist/esm/calcite-menu_2.entry.js +10 -10
- package/dist/esm/calcite-meter.entry.js +10 -10
- package/dist/esm/calcite-modal.entry.js +13 -13
- package/dist/esm/calcite-navigation_3.entry.js +6 -6
- package/dist/esm/calcite-notice.entry.js +12 -12
- package/dist/esm/calcite-option_3.entry.js +10 -10
- package/dist/esm/calcite-pagination.entry.js +10 -10
- package/dist/esm/calcite-panel.entry.js +14 -14
- package/dist/esm/calcite-pick-list_3.entry.js +16 -16
- package/dist/esm/calcite-popover.entry.js +16 -16
- package/dist/esm/calcite-progress.entry.js +5 -5
- package/dist/esm/calcite-radio-button-group.entry.js +4 -4
- package/dist/esm/calcite-radio-button.entry.js +10 -10
- package/dist/esm/calcite-rating.entry.js +13 -13
- package/dist/esm/calcite-scrim.entry.js +9 -9
- package/dist/esm/calcite-segmented-control_2.entry.js +10 -10
- package/dist/esm/calcite-sheet.entry.js +9 -9
- package/dist/esm/calcite-shell_3.entry.js +11 -11
- package/dist/esm/calcite-sortable-list.entry.js +8 -8
- package/dist/esm/calcite-split-button.entry.js +4 -4
- package/dist/esm/calcite-stack.entry.js +6 -6
- package/dist/esm/calcite-stepper_2.entry.js +10 -10
- package/dist/esm/calcite-switch.entry.js +10 -10
- package/dist/esm/calcite-tab_4.entry.js +10 -10
- package/dist/esm/calcite-text-area.entry.js +15 -15
- package/dist/esm/calcite-tile-select_2.entry.js +5 -5
- package/dist/esm/calcite-tile.entry.js +8 -8
- package/dist/esm/calcite-tip_3.entry.js +11 -11
- package/dist/esm/calcite-tooltip.entry.js +9 -9
- package/dist/esm/calcite-tree_2.entry.js +8 -8
- package/dist/esm/calcite-value-list_2.entry.js +16 -16
- package/dist/esm/calcite.js +6 -6
- package/dist/esm/{conditionalSlot-1d749369.js → conditionalSlot-19a0d842.js} +3 -3
- package/dist/esm/{cs-782d542f.js → cs-9fc201b1.js} +16 -15
- package/dist/esm/{da-3d378e16.js → da-33cfbc62.js} +16 -15
- package/dist/esm/{de-7c478ee3.js → de-3462a2be.js} +16 -15
- package/dist/esm/{de-at-c2770b6c.js → de-at-f5ddce47.js} +16 -15
- package/dist/esm/{de-ch-cd4b90e9.js → de-ch-24269f5d.js} +16 -15
- package/dist/esm/{debounce-2e8883fd.js → debounce-525efd32.js} +1 -1
- package/dist/esm/{dom-a03c37b6.js → dom-d1df3438.js} +3 -3
- package/dist/esm/{el-527357bd.js → el-c753e8df.js} +16 -15
- package/dist/esm/{en-au-87c50dce.js → en-au-2dd870a5.js} +16 -15
- package/dist/esm/{en-ca-31d241e1.js → en-ca-3b7caf5c.js} +16 -15
- package/dist/esm/{en-gb-92c502dc.js → en-gb-0c261721.js} +16 -15
- package/dist/esm/{es-e8e2cbfd.js → es-a5f671c5.js} +16 -15
- package/dist/esm/{es-mx-b9a80253.js → es-mx-498f6751.js} +16 -15
- package/dist/esm/{et-0fb079e4.js → et-30d6ce3c.js} +16 -15
- package/dist/esm/{fi-572a315d.js → fi-8691a46a.js} +16 -15
- package/dist/esm/{filter-f3b884fd.js → filter-3d8fcae3.js} +2 -2
- package/dist/esm/{floating-ui-a4cb044f.js → floating-ui-38fbedc1.js} +3 -3
- package/dist/esm/{focusTrapComponent-5cde505c.js → focusTrapComponent-9d61e99e.js} +2 -2
- package/dist/esm/{form-44b83a17.js → form-b226ad7f.js} +3 -3
- package/dist/esm/{fr-d5ee90ed.js → fr-367c3ac4.js} +16 -15
- package/dist/esm/{fr-ch-04190e70.js → fr-ch-c3f2b21d.js} +16 -15
- package/dist/esm/{guid-922dbbe0.js → guid-65e9e228.js} +1 -1
- package/dist/esm/{he-745cfc9f.js → he-5b8edc25.js} +16 -15
- package/dist/esm/{hi-262e499d.js → hi-b8afe5e9.js} +16 -15
- package/dist/esm/{hr-d2e680f6.js → hr-c4dce020.js} +16 -15
- package/dist/esm/{hu-fd8e4a6c.js → hu-47afc582.js} +16 -15
- package/dist/esm/{id-96611a8f.js → id-029e04d5.js} +16 -15
- package/dist/esm/{index-b970cf2b.js → index-c3d6823a.js} +1 -1
- package/dist/esm/index.js +2 -2
- package/dist/esm/{interactive-a5b4cda0.js → interactive-fba0d02e.js} +1 -1
- package/dist/esm/{it-ch-ba049790.js → it-ch-2225b563.js} +16 -15
- package/dist/esm/{it-6c8731eb.js → it-f16fce5f.js} +16 -15
- package/dist/esm/{ja-b4d82dd3.js → ja-4890d0d2.js} +16 -15
- package/dist/esm/{key-4913bd62.js → key-3a19d047.js} +1 -1
- package/dist/esm/{ko-d4a90140.js → ko-b98c4dd4.js} +16 -15
- package/dist/esm/{label-5ecfd527.js → label-bb6becbd.js} +2 -2
- package/dist/esm/{loadable-2460e79e.js → loadable-68f3f302.js} +2 -2
- package/dist/esm/loader.js +6 -6
- package/dist/esm/{locale-ccb8fa38.js → locale-a489e018.js} +4 -4
- package/dist/esm/{lt-55ff2da9.js → lt-420a6f08.js} +16 -15
- package/dist/esm/{lv-c24efb10.js → lv-e2e759d9.js} +16 -15
- package/dist/esm/{math-14207747.js → math-3c914a96.js} +18 -3
- package/dist/esm/{mk-18326341.js → mk-c9da4390.js} +16 -15
- package/dist/esm/{nb-48fda3d1.js → nb-ee10386d.js} +16 -15
- package/dist/esm/{nl-26d47719.js → nl-59f3f458.js} +16 -15
- package/dist/esm/{observers-70b65313.js → observers-9d2a3e1f.js} +1 -1
- package/dist/esm/{openCloseComponent-17fc613e.js → openCloseComponent-558bc893.js} +2 -2
- package/dist/esm/{pl-c5d5ee7d.js → pl-acfdfd9b.js} +16 -15
- package/dist/esm/{pt-f1559439.js → pt-0fa069e9.js} +16 -15
- package/dist/esm/{pt-br-52032196.js → pt-br-6a7dcc09.js} +16 -15
- package/dist/esm/{resources-1ce1d9ef.js → resources-070c6ecf.js} +1 -1
- package/dist/esm/{resources-489bb1fc.js → resources-2d5d37e7.js} +1 -1
- package/dist/esm/{resources-61acd6cf.js → resources-4e437cba.js} +1 -1
- package/dist/esm/{resources-b6b3ead3.js → resources-90a4deee.js} +1 -1
- package/dist/esm/{resources-a58cb4da.js → resources-ba20a89e.js} +5 -5
- package/dist/esm/{resources-f97a4829.js → resources-e2803672.js} +1 -1
- package/dist/esm/{resources-08e09a4c.js → resources-e7ab12ca.js} +1 -1
- package/dist/esm/{ro-1da80b10.js → ro-82c40e0e.js} +16 -15
- package/dist/esm/{ru-e7cd85fd.js → ru-44d1a106.js} +16 -15
- package/dist/esm/{sk-cb838437.js → sk-0c4f0332.js} +16 -15
- package/dist/esm/{sl-06c67a88.js → sl-cc701750.js} +16 -15
- package/dist/esm/{sortableComponent-a18d2d68.js → sortableComponent-8e28f19a.js} +2 -2
- package/dist/esm/{sr-8a02e97f.js → sr-165d1437.js} +16 -15
- package/dist/esm/{sv-3ccf128e.js → sv-510ef66a.js} +16 -15
- package/dist/esm/{t9n-b3120e3b.js → t9n-b23b3609.js} +3 -3
- package/dist/esm/{th-bc3a4f60.js → th-5318f755.js} +16 -15
- package/dist/esm/{throttle-7012372b.js → throttle-edcb49d2.js} +2 -2
- package/dist/esm/{tr-ca509c5a.js → tr-abd5cab0.js} +16 -15
- package/dist/esm/{uk-8410f044.js → uk-1ba4a885.js} +16 -15
- package/dist/esm/{utils-8a9ae941.js → utils-6af46359.js} +1 -1
- package/dist/esm/{utils-d7c18644.js → utils-c76b6279.js} +3 -3
- package/dist/esm/{vi-4bfdfc5e.js → vi-a4843f0b.js} +16 -15
- package/dist/esm/{zh-cn-dc66f578.js → zh-cn-ba328574.js} +16 -15
- package/dist/esm/{zh-hk-2379a9d5.js → zh-hk-fc8b22ac.js} +16 -15
- package/dist/esm/{zh-tw-b373850b.js → zh-tw-18ff5468.js} +16 -15
- package/dist/extras/docs-json.json +11 -10
- package/dist/extras/translations-json.json +1 -1
- package/dist/extras/vscode-data.json +1 -1
- package/dist/loader/cdn.js +1 -1
- package/dist/loader/index.cjs.js +1 -1
- package/dist/loader/index.es2017.js +1 -1
- package/dist/loader/index.js +1 -1
- package/dist/types/components/input-time-picker/input-time-picker.d.ts +5 -0
- package/dist/types/components/shell/shell.d.ts +1 -1
- package/dist/types/components/time-picker/assets/time-picker/t9n/index.d.ts +3 -0
- package/dist/types/components/time-picker/resources.d.ts +3 -0
- package/dist/types/components/time-picker/time-picker.d.ts +14 -11
- package/dist/types/utils/math.d.ts +11 -1
- package/dist/types/utils/time.d.ts +11 -4
- package/hydrate/index.js +427 -121
- package/package.json +3 -2
- package/dist/calcite/p-02a66b81.js +0 -6
- package/dist/calcite/p-08b57d78.js +0 -6
- package/dist/calcite/p-08babfc8.js +0 -6
- package/dist/calcite/p-0a0bfbc4.js +0 -6
- package/dist/calcite/p-0e18467a.js +0 -6
- package/dist/calcite/p-1005d74a.js +0 -6
- package/dist/calcite/p-1408ab17.js +0 -6
- package/dist/calcite/p-146568f9.js +0 -6
- package/dist/calcite/p-16a8cf43.js +0 -6
- package/dist/calcite/p-1867b8a2.entry.js +0 -6
- package/dist/calcite/p-2270fdcd.js +0 -6
- package/dist/calcite/p-28ecf950.js +0 -6
- package/dist/calcite/p-2b00064c.js +0 -6
- package/dist/calcite/p-2d235e44.js +0 -6
- package/dist/calcite/p-2e02a0fd.js +0 -6
- package/dist/calcite/p-2f46f849.js +0 -6
- package/dist/calcite/p-3543c6fe.js +0 -6
- package/dist/calcite/p-3ca1c073.js +0 -6
- package/dist/calcite/p-4a22d356.js +0 -6
- package/dist/calcite/p-4de0b8f2.js +0 -6
- package/dist/calcite/p-4f70556d.js +0 -6
- package/dist/calcite/p-528ca15e.js +0 -6
- package/dist/calcite/p-59bc3475.js +0 -6
- package/dist/calcite/p-5dbc3567.js +0 -6
- package/dist/calcite/p-61f3c2c6.js +0 -6
- package/dist/calcite/p-6d93302b.js +0 -6
- package/dist/calcite/p-76cf8f88.js +0 -6
- package/dist/calcite/p-7914d20a.entry.js +0 -6
- package/dist/calcite/p-79cfc70d.js +0 -6
- package/dist/calcite/p-7b199ad8.js +0 -6
- package/dist/calcite/p-82b74ef5.js +0 -6
- package/dist/calcite/p-84f8301f.js +0 -6
- package/dist/calcite/p-871194b0.js +0 -6
- package/dist/calcite/p-89c0ed08.js +0 -6
- package/dist/calcite/p-8b8f61ae.entry.js +0 -6
- package/dist/calcite/p-8efbe93f.js +0 -6
- package/dist/calcite/p-933e9515.js +0 -6
- package/dist/calcite/p-9609f88e.js +0 -6
- package/dist/calcite/p-994d9526.js +0 -6
- package/dist/calcite/p-9cffee1f.js +0 -6
- package/dist/calcite/p-9d93675d.js +0 -6
- package/dist/calcite/p-a7603764.js +0 -6
- package/dist/calcite/p-a796c3c0.js +0 -6
- package/dist/calcite/p-ac50a667.js +0 -6
- package/dist/calcite/p-b0ceca11.js +0 -6
- package/dist/calcite/p-b7bfe8d1.js +0 -6
- package/dist/calcite/p-c53f6979.js +0 -6
- package/dist/calcite/p-c88bd734.entry.js +0 -6
- package/dist/calcite/p-c9faebe1.js +0 -6
- package/dist/calcite/p-cc1cca51.js +0 -6
- package/dist/calcite/p-d5ca2223.entry.js +0 -6
- package/dist/calcite/p-d82bf2fd.js +0 -6
- package/dist/calcite/p-dcee696d.js +0 -6
- package/dist/calcite/p-ddc7d0e8.js +0 -6
- package/dist/calcite/p-e7096434.js +0 -6
- package/dist/calcite/p-e760291e.js +0 -6
- package/dist/calcite/p-ee6ef481.entry.js +0 -6
- package/dist/calcite/p-ef664e89.js +0 -6
- package/dist/calcite/p-f87cfecc.js +0 -6
- package/dist/calcite/p-fdd39b9a.js +0 -6
|
@@ -1,21 +1,22 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* All material copyright ESRI, All Rights Reserved, unless otherwise specified.
|
|
3
3
|
* See https://github.com/Esri/calcite-design-system/blob/main/LICENSE.md for details.
|
|
4
|
-
* v1.7.0-next.
|
|
4
|
+
* v1.7.0-next.14
|
|
5
5
|
*/
|
|
6
|
-
import { r as registerInstance, c as createEvent, h, H as Host, a as getElement } from './index-
|
|
7
|
-
import { s as submitForm, c as connectForm, d as disconnectForm, H as HiddenFormInputSlot } from './form-
|
|
8
|
-
import { g as guid } from './guid-
|
|
9
|
-
import { c as connectInteractive, d as disconnectInteractive, u as updateHostInteraction } from './interactive-
|
|
10
|
-
import { n as numberKeys
|
|
11
|
-
import { c as connectLabel, d as disconnectLabel, g as getLabelText } from './label-
|
|
12
|
-
import { c as componentFocusable, s as setUpLoadableComponent, a as setComponentLoaded } from './loadable-
|
|
13
|
-
import { b as getDateTimeFormat, i as isValidNumber, e as getSupportedNumberingSystem,
|
|
14
|
-
import { d as deactivateFocusTrap, a as activateFocusTrap, c as connectFocusTrap } from './focusTrapComponent-
|
|
15
|
-
import {
|
|
6
|
+
import { r as registerInstance, c as createEvent, h, H as Host, a as getElement } from './index-c3d6823a.js';
|
|
7
|
+
import { s as submitForm, c as connectForm, d as disconnectForm, H as HiddenFormInputSlot } from './form-b226ad7f.js';
|
|
8
|
+
import { g as guid } from './guid-65e9e228.js';
|
|
9
|
+
import { c as connectInteractive, d as disconnectInteractive, u as updateHostInteraction } from './interactive-fba0d02e.js';
|
|
10
|
+
import { n as numberKeys } from './key-3a19d047.js';
|
|
11
|
+
import { c as connectLabel, d as disconnectLabel, g as getLabelText } from './label-bb6becbd.js';
|
|
12
|
+
import { c as componentFocusable, s as setUpLoadableComponent, a as setComponentLoaded } from './loadable-68f3f302.js';
|
|
13
|
+
import { n as numberStringFormatter, b as getDateTimeFormat, i as isValidNumber, e as getSupportedNumberingSystem, g as getSupportedLocale, c as connectLocalized, d as disconnectLocalized } from './locale-a489e018.js';
|
|
14
|
+
import { d as deactivateFocusTrap, a as activateFocusTrap, c as connectFocusTrap } from './focusTrapComponent-9d61e99e.js';
|
|
15
|
+
import { d as decimalPlaces, g as getDecimals } from './math-3c914a96.js';
|
|
16
|
+
import { c as connectMessages, s as setUpMessages, d as disconnectMessages, u as updateMessages } from './t9n-b23b3609.js';
|
|
16
17
|
|
|
17
18
|
const maxTenthForMinuteAndSecond = 5;
|
|
18
|
-
function createLocaleDateTimeFormatter(locale, numberingSystem, includeSeconds = true) {
|
|
19
|
+
function createLocaleDateTimeFormatter(locale, numberingSystem, includeSeconds = true, fractionalSecondDigits) {
|
|
19
20
|
const options = {
|
|
20
21
|
hour: "2-digit",
|
|
21
22
|
minute: "2-digit",
|
|
@@ -24,31 +25,69 @@ function createLocaleDateTimeFormatter(locale, numberingSystem, includeSeconds =
|
|
|
24
25
|
};
|
|
25
26
|
if (includeSeconds) {
|
|
26
27
|
options.second = "2-digit";
|
|
28
|
+
if (fractionalSecondDigits) {
|
|
29
|
+
options.fractionalSecondDigits = fractionalSecondDigits;
|
|
30
|
+
}
|
|
27
31
|
}
|
|
28
32
|
return getDateTimeFormat(locale, options);
|
|
29
33
|
}
|
|
30
|
-
function formatTimePart(number) {
|
|
34
|
+
function formatTimePart(number, minLength) {
|
|
35
|
+
if (number === null || number === undefined) {
|
|
36
|
+
return;
|
|
37
|
+
}
|
|
31
38
|
const numberAsString = number.toString();
|
|
32
|
-
|
|
39
|
+
const numberDecimalPlaces = decimalPlaces(number);
|
|
40
|
+
if (number < 1 && numberDecimalPlaces > 0 && numberDecimalPlaces < 4) {
|
|
41
|
+
const fractionalDigits = numberAsString.replace("0.", "");
|
|
42
|
+
if (!minLength || fractionalDigits.length === minLength) {
|
|
43
|
+
return fractionalDigits;
|
|
44
|
+
}
|
|
45
|
+
if (fractionalDigits.length < minLength) {
|
|
46
|
+
return fractionalDigits.padEnd(minLength, "0");
|
|
47
|
+
}
|
|
48
|
+
return fractionalDigits;
|
|
49
|
+
}
|
|
50
|
+
if (number >= 0 && number < 10) {
|
|
51
|
+
return numberAsString.padStart(2, "0");
|
|
52
|
+
}
|
|
53
|
+
if (number >= 10) {
|
|
54
|
+
return numberAsString;
|
|
55
|
+
}
|
|
33
56
|
}
|
|
34
57
|
function formatTimeString(value) {
|
|
35
58
|
if (!isValidTime(value)) {
|
|
36
59
|
return null;
|
|
37
60
|
}
|
|
38
|
-
const
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
61
|
+
const { hour, minute, second, fractionalSecond } = parseTimeString(value);
|
|
62
|
+
let formattedValue = `${formatTimePart(parseInt(hour))}:${formatTimePart(parseInt(minute))}`;
|
|
63
|
+
if (second) {
|
|
64
|
+
formattedValue += `:${formatTimePart(parseInt(second))}`;
|
|
65
|
+
if (fractionalSecond) {
|
|
66
|
+
formattedValue += `.${fractionalSecond}`;
|
|
67
|
+
}
|
|
44
68
|
}
|
|
45
|
-
return
|
|
69
|
+
return formattedValue;
|
|
70
|
+
}
|
|
71
|
+
function fractionalSecondPartToMilliseconds(fractionalSecondPart) {
|
|
72
|
+
return parseInt((parseFloat(`0.${fractionalSecondPart}`) / 0.001).toFixed(3));
|
|
46
73
|
}
|
|
47
74
|
function getLocaleHourCycle(locale, numberingSystem) {
|
|
48
75
|
const formatter = createLocaleDateTimeFormatter(locale, numberingSystem);
|
|
49
76
|
const parts = formatter.formatToParts(new Date(Date.UTC(0, 0, 0, 0, 0, 0)));
|
|
50
77
|
return getLocalizedTimePart("meridiem", parts) ? "12" : "24";
|
|
51
78
|
}
|
|
79
|
+
function getLocalizedDecimalSeparator(locale, numberingSystem) {
|
|
80
|
+
numberStringFormatter.numberFormatOptions = {
|
|
81
|
+
locale,
|
|
82
|
+
numberingSystem,
|
|
83
|
+
};
|
|
84
|
+
return numberStringFormatter.localize("1.1").split("")[1];
|
|
85
|
+
}
|
|
86
|
+
function getLocalizedTimePartSuffix(part, locale, numberingSystem = "latn") {
|
|
87
|
+
const formatter = createLocaleDateTimeFormatter(locale, numberingSystem);
|
|
88
|
+
const parts = formatter.formatToParts(new Date(Date.UTC(0, 0, 0, 0, 0, 0)));
|
|
89
|
+
return getLocalizedTimePart(`${part}Suffix`, parts);
|
|
90
|
+
}
|
|
52
91
|
function getLocalizedTimePart(part, parts) {
|
|
53
92
|
if (!part || !parts) {
|
|
54
93
|
return null;
|
|
@@ -114,6 +153,29 @@ function isValidTimePart(value, part) {
|
|
|
114
153
|
return part === "hour" ? valueAsNumber >= 0 && valueAsNumber < 24 : valueAsNumber >= 0 && valueAsNumber < 60;
|
|
115
154
|
}
|
|
116
155
|
function localizeTimePart({ value, part, locale, numberingSystem }) {
|
|
156
|
+
if (part === "fractionalSecond") {
|
|
157
|
+
const localizedDecimalSeparator = getLocalizedDecimalSeparator(locale, numberingSystem);
|
|
158
|
+
let localizedFractionalSecond = null;
|
|
159
|
+
if (value) {
|
|
160
|
+
numberStringFormatter.numberFormatOptions = {
|
|
161
|
+
locale,
|
|
162
|
+
numberingSystem,
|
|
163
|
+
};
|
|
164
|
+
const localizedZero = numberStringFormatter.localize("0");
|
|
165
|
+
if (parseInt(value) === 0) {
|
|
166
|
+
localizedFractionalSecond = "".padStart(value.length, localizedZero);
|
|
167
|
+
}
|
|
168
|
+
else {
|
|
169
|
+
localizedFractionalSecond = numberStringFormatter
|
|
170
|
+
.localize(`0.${value}`)
|
|
171
|
+
.replace(`${localizedZero}${localizedDecimalSeparator}`, "");
|
|
172
|
+
if (localizedFractionalSecond.length < value.length) {
|
|
173
|
+
localizedFractionalSecond = localizedFractionalSecond.padEnd(value.length, localizedZero);
|
|
174
|
+
}
|
|
175
|
+
}
|
|
176
|
+
}
|
|
177
|
+
return localizedFractionalSecond;
|
|
178
|
+
}
|
|
117
179
|
if (!isValidTimePart(value, part)) {
|
|
118
180
|
return;
|
|
119
181
|
}
|
|
@@ -126,20 +188,20 @@ function localizeTimePart({ value, part, locale, numberingSystem }) {
|
|
|
126
188
|
const parts = formatter.formatToParts(date);
|
|
127
189
|
return getLocalizedTimePart(part, parts);
|
|
128
190
|
}
|
|
129
|
-
function localizeTimeString({ value, locale, numberingSystem, includeSeconds = true, }) {
|
|
191
|
+
function localizeTimeString({ value, locale, numberingSystem, includeSeconds = true, fractionalSecondDigits, }) {
|
|
130
192
|
if (!isValidTime(value)) {
|
|
131
193
|
return null;
|
|
132
194
|
}
|
|
133
|
-
const { hour, minute, second = "0" } = parseTimeString(value);
|
|
134
|
-
const dateFromTimeString = new Date(Date.UTC(0, 0, 0, parseInt(hour), parseInt(minute), parseInt(second)));
|
|
135
|
-
const formatter = createLocaleDateTimeFormatter(locale, numberingSystem, includeSeconds);
|
|
136
|
-
return formatter
|
|
195
|
+
const { hour, minute, second = "0", fractionalSecond } = parseTimeString(value);
|
|
196
|
+
const dateFromTimeString = new Date(Date.UTC(0, 0, 0, parseInt(hour), parseInt(minute), parseInt(second), fractionalSecond && fractionalSecondPartToMilliseconds(fractionalSecond)));
|
|
197
|
+
const formatter = createLocaleDateTimeFormatter(locale, numberingSystem, includeSeconds, fractionalSecondDigits);
|
|
198
|
+
return formatter.format(dateFromTimeString) || null;
|
|
137
199
|
}
|
|
138
|
-
function localizeTimeStringToParts({ value, locale, numberingSystem, }) {
|
|
200
|
+
function localizeTimeStringToParts({ value, locale, numberingSystem = "latn", }) {
|
|
139
201
|
if (!isValidTime(value)) {
|
|
140
202
|
return null;
|
|
141
203
|
}
|
|
142
|
-
const { hour, minute, second = "0" } = parseTimeString(value);
|
|
204
|
+
const { hour, minute, second = "0", fractionalSecond } = parseTimeString(value);
|
|
143
205
|
const dateFromTimeString = new Date(Date.UTC(0, 0, 0, parseInt(hour), parseInt(minute), parseInt(second)));
|
|
144
206
|
if (dateFromTimeString) {
|
|
145
207
|
const formatter = createLocaleDateTimeFormatter(locale, numberingSystem);
|
|
@@ -150,6 +212,13 @@ function localizeTimeStringToParts({ value, locale, numberingSystem, }) {
|
|
|
150
212
|
localizedMinute: getLocalizedTimePart("minute", parts),
|
|
151
213
|
localizedMinuteSuffix: getLocalizedTimePart("minuteSuffix", parts),
|
|
152
214
|
localizedSecond: getLocalizedTimePart("second", parts),
|
|
215
|
+
localizedDecimalSeparator: getLocalizedDecimalSeparator(locale, numberingSystem),
|
|
216
|
+
localizedFractionalSecond: localizeTimePart({
|
|
217
|
+
value: fractionalSecond,
|
|
218
|
+
part: "fractionalSecond",
|
|
219
|
+
locale,
|
|
220
|
+
numberingSystem,
|
|
221
|
+
}),
|
|
153
222
|
localizedSecondSuffix: getLocalizedTimePart("secondSuffix", parts),
|
|
154
223
|
localizedMeridiem: getLocalizedTimePart("meridiem", parts),
|
|
155
224
|
};
|
|
@@ -171,14 +240,21 @@ function getTimeParts({ value, locale, numberingSystem }) {
|
|
|
171
240
|
}
|
|
172
241
|
function parseTimeString(value) {
|
|
173
242
|
if (isValidTime(value)) {
|
|
174
|
-
const [hour, minute,
|
|
243
|
+
const [hour, minute, secondDecimal] = value.split(":");
|
|
244
|
+
let second = secondDecimal;
|
|
245
|
+
let fractionalSecond = null;
|
|
246
|
+
if (secondDecimal?.includes(".")) {
|
|
247
|
+
[second, fractionalSecond] = secondDecimal.split(".");
|
|
248
|
+
}
|
|
175
249
|
return {
|
|
250
|
+
fractionalSecond,
|
|
176
251
|
hour,
|
|
177
252
|
minute,
|
|
178
253
|
second,
|
|
179
254
|
};
|
|
180
255
|
}
|
|
181
256
|
return {
|
|
257
|
+
fractionalSecond: null,
|
|
182
258
|
hour: null,
|
|
183
259
|
minute: null,
|
|
184
260
|
second: null,
|
|
@@ -188,10 +264,13 @@ function toISOTimeString(value, includeSeconds = true) {
|
|
|
188
264
|
if (!isValidTime(value)) {
|
|
189
265
|
return "";
|
|
190
266
|
}
|
|
191
|
-
const { hour, minute, second } = parseTimeString(value);
|
|
267
|
+
const { hour, minute, second, fractionalSecond } = parseTimeString(value);
|
|
192
268
|
let isoTimeString = `${formatTimePart(parseInt(hour))}:${formatTimePart(parseInt(minute))}`;
|
|
193
269
|
if (includeSeconds) {
|
|
194
270
|
isoTimeString += `:${formatTimePart(parseInt((includeSeconds && second) || "0"))}`;
|
|
271
|
+
if (fractionalSecond) {
|
|
272
|
+
isoTimeString += `.${fractionalSecond}`;
|
|
273
|
+
}
|
|
195
274
|
}
|
|
196
275
|
return isoTimeString;
|
|
197
276
|
}
|
|
@@ -1364,57 +1443,57 @@ const updateLocale = (function (option, Dayjs, dayjs) {
|
|
|
1364
1443
|
const inputTimePickerCss = ":host([disabled]){cursor:default;-webkit-user-select:none;user-select:none;opacity:var(--calcite-ui-opacity-disabled)}:host([disabled]) *,:host([disabled]) ::slotted(*){pointer-events:none}:host{display:inline-block;-webkit-user-select:none;user-select:none}:host([disabled]) ::slotted([calcite-hydrated][disabled]),:host([disabled]) [calcite-hydrated][disabled]{opacity:1}::slotted(input[slot=hidden-form-input]){margin:0 !important;opacity:0 !important;outline:none !important;padding:0 !important;position:absolute !important;inset:0 !important;transform:none !important;-webkit-appearance:none !important;z-index:-1 !important}:host([scale=s]){--calcite-toggle-spacing:0.5rem}:host([scale=m]){--calcite-toggle-spacing:0.75rem}:host([scale=l]){--calcite-toggle-spacing:1rem}.input-wrapper{position:relative}.toggle-icon{position:absolute;display:flex;inline-size:1rem;cursor:pointer;align-items:center;inset-inline-end:0;inset-block:0;padding-inline:var(--calcite-toggle-spacing)}:host([hidden]){display:none}[hidden]{display:none}";
|
|
1365
1444
|
|
|
1366
1445
|
// some bundlers (e.g., Webpack) need dynamic import paths to be static
|
|
1367
|
-
const
|
|
1368
|
-
["ar", () => import('./ar-
|
|
1369
|
-
["bg", () => import('./bg-
|
|
1370
|
-
["bs", () => import('./bs-
|
|
1371
|
-
["ca", () => import('./ca-
|
|
1372
|
-
["cs", () => import('./cs-
|
|
1373
|
-
["da", () => import('./da-
|
|
1374
|
-
["de", () => import('./de-
|
|
1375
|
-
["de-at", () => import('./de-at-
|
|
1376
|
-
["de-ch", () => import('./de-ch-
|
|
1377
|
-
["el", () => import('./el-
|
|
1446
|
+
const supportedDayjsLocaleToLocaleConfigImport = new Map([
|
|
1447
|
+
["ar", () => import('./ar-78982992.js')],
|
|
1448
|
+
["bg", () => import('./bg-2f54eb5c.js')],
|
|
1449
|
+
["bs", () => import('./bs-e1e0719f.js')],
|
|
1450
|
+
["ca", () => import('./ca-3e6f25a1.js')],
|
|
1451
|
+
["cs", () => import('./cs-9fc201b1.js')],
|
|
1452
|
+
["da", () => import('./da-33cfbc62.js')],
|
|
1453
|
+
["de", () => import('./de-3462a2be.js')],
|
|
1454
|
+
["de-at", () => import('./de-at-f5ddce47.js')],
|
|
1455
|
+
["de-ch", () => import('./de-ch-24269f5d.js')],
|
|
1456
|
+
["el", () => import('./el-c753e8df.js')],
|
|
1378
1457
|
["en", () => Promise.resolve().then(function () { return en$1; })],
|
|
1379
|
-
["en-au", () => import('./en-au-
|
|
1380
|
-
["en-ca", () => import('./en-ca-
|
|
1381
|
-
["en-gb", () => import('./en-gb-
|
|
1382
|
-
["es", () => import('./es-
|
|
1383
|
-
["es-mx", () => import('./es-mx-
|
|
1384
|
-
["et", () => import('./et-
|
|
1385
|
-
["fi", () => import('./fi-
|
|
1386
|
-
["fr", () => import('./fr-
|
|
1387
|
-
["fr-ch", () => import('./fr-ch-
|
|
1388
|
-
["he", () => import('./he-
|
|
1389
|
-
["hi", () => import('./hi-
|
|
1390
|
-
["hr", () => import('./hr-
|
|
1391
|
-
["hu", () => import('./hu-
|
|
1392
|
-
["id", () => import('./id-
|
|
1393
|
-
["it", () => import('./it-
|
|
1394
|
-
["it-ch", () => import('./it-ch-
|
|
1395
|
-
["ja", () => import('./ja-
|
|
1396
|
-
["ko", () => import('./ko-
|
|
1397
|
-
["lt", () => import('./lt-
|
|
1398
|
-
["lv", () => import('./lv-
|
|
1399
|
-
["mk", () => import('./mk-
|
|
1400
|
-
["nl", () => import('./nl-
|
|
1401
|
-
["nb", () => import('./nb-
|
|
1402
|
-
["pl", () => import('./pl-
|
|
1403
|
-
["pt", () => import('./pt-
|
|
1404
|
-
["pt-br", () => import('./pt-br-
|
|
1405
|
-
["ro", () => import('./ro-
|
|
1406
|
-
["ru", () => import('./ru-
|
|
1407
|
-
["sk", () => import('./sk-
|
|
1408
|
-
["sl", () => import('./sl-
|
|
1409
|
-
["sr", () => import('./sr-
|
|
1410
|
-
["sv", () => import('./sv-
|
|
1411
|
-
["th", () => import('./th-
|
|
1412
|
-
["tr", () => import('./tr-
|
|
1413
|
-
["uk", () => import('./uk-
|
|
1414
|
-
["vi", () => import('./vi-
|
|
1415
|
-
["zh-cn", () => import('./zh-cn-
|
|
1416
|
-
["zh-hk", () => import('./zh-hk-
|
|
1417
|
-
["zh-tw", () => import('./zh-tw-
|
|
1458
|
+
["en-au", () => import('./en-au-2dd870a5.js')],
|
|
1459
|
+
["en-ca", () => import('./en-ca-3b7caf5c.js')],
|
|
1460
|
+
["en-gb", () => import('./en-gb-0c261721.js')],
|
|
1461
|
+
["es", () => import('./es-a5f671c5.js')],
|
|
1462
|
+
["es-mx", () => import('./es-mx-498f6751.js')],
|
|
1463
|
+
["et", () => import('./et-30d6ce3c.js')],
|
|
1464
|
+
["fi", () => import('./fi-8691a46a.js')],
|
|
1465
|
+
["fr", () => import('./fr-367c3ac4.js')],
|
|
1466
|
+
["fr-ch", () => import('./fr-ch-c3f2b21d.js')],
|
|
1467
|
+
["he", () => import('./he-5b8edc25.js')],
|
|
1468
|
+
["hi", () => import('./hi-b8afe5e9.js')],
|
|
1469
|
+
["hr", () => import('./hr-c4dce020.js')],
|
|
1470
|
+
["hu", () => import('./hu-47afc582.js')],
|
|
1471
|
+
["id", () => import('./id-029e04d5.js')],
|
|
1472
|
+
["it", () => import('./it-f16fce5f.js')],
|
|
1473
|
+
["it-ch", () => import('./it-ch-2225b563.js')],
|
|
1474
|
+
["ja", () => import('./ja-4890d0d2.js')],
|
|
1475
|
+
["ko", () => import('./ko-b98c4dd4.js')],
|
|
1476
|
+
["lt", () => import('./lt-420a6f08.js')],
|
|
1477
|
+
["lv", () => import('./lv-e2e759d9.js')],
|
|
1478
|
+
["mk", () => import('./mk-c9da4390.js')],
|
|
1479
|
+
["nl", () => import('./nl-59f3f458.js')],
|
|
1480
|
+
["nb", () => import('./nb-ee10386d.js')],
|
|
1481
|
+
["pl", () => import('./pl-acfdfd9b.js')],
|
|
1482
|
+
["pt", () => import('./pt-0fa069e9.js')],
|
|
1483
|
+
["pt-br", () => import('./pt-br-6a7dcc09.js')],
|
|
1484
|
+
["ro", () => import('./ro-82c40e0e.js')],
|
|
1485
|
+
["ru", () => import('./ru-44d1a106.js')],
|
|
1486
|
+
["sk", () => import('./sk-0c4f0332.js')],
|
|
1487
|
+
["sl", () => import('./sl-cc701750.js')],
|
|
1488
|
+
["sr", () => import('./sr-165d1437.js')],
|
|
1489
|
+
["sv", () => import('./sv-510ef66a.js')],
|
|
1490
|
+
["th", () => import('./th-5318f755.js')],
|
|
1491
|
+
["tr", () => import('./tr-abd5cab0.js')],
|
|
1492
|
+
["uk", () => import('./uk-1ba4a885.js')],
|
|
1493
|
+
["vi", () => import('./vi-a4843f0b.js')],
|
|
1494
|
+
["zh-cn", () => import('./zh-cn-ba328574.js')],
|
|
1495
|
+
["zh-hk", () => import('./zh-hk-fc8b22ac.js')],
|
|
1496
|
+
["zh-tw", () => import('./zh-tw-18ff5468.js')],
|
|
1418
1497
|
]);
|
|
1419
1498
|
dayjs.extend(customParseFormat);
|
|
1420
1499
|
dayjs.extend(localeData);
|
|
@@ -1450,6 +1529,7 @@ const InputTimePicker = class {
|
|
|
1450
1529
|
locale: this.effectiveLocale,
|
|
1451
1530
|
numberingSystem: this.numberingSystem,
|
|
1452
1531
|
includeSeconds: this.shouldIncludeSeconds(),
|
|
1532
|
+
fractionalSecondDigits: decimalPlaces(this.step),
|
|
1453
1533
|
});
|
|
1454
1534
|
if (localizedTimeString !== inputValue) {
|
|
1455
1535
|
this.setInputValue(localizedTimeString);
|
|
@@ -1491,6 +1571,7 @@ const InputTimePicker = class {
|
|
|
1491
1571
|
locale: this.effectiveLocale,
|
|
1492
1572
|
numberingSystem: this.numberingSystem,
|
|
1493
1573
|
includeSeconds,
|
|
1574
|
+
fractionalSecondDigits: decimalPlaces(this.step),
|
|
1494
1575
|
}));
|
|
1495
1576
|
};
|
|
1496
1577
|
this.popoverCloseHandler = () => {
|
|
@@ -1525,15 +1606,18 @@ const InputTimePicker = class {
|
|
|
1525
1606
|
return;
|
|
1526
1607
|
}
|
|
1527
1608
|
const newValue = this.delocalizeTimeString(this.calciteInputEl.value);
|
|
1528
|
-
|
|
1529
|
-
|
|
1530
|
-
|
|
1531
|
-
|
|
1532
|
-
|
|
1533
|
-
|
|
1534
|
-
|
|
1535
|
-
|
|
1536
|
-
|
|
1609
|
+
if (isValidTime(newValue)) {
|
|
1610
|
+
this.setValue(newValue);
|
|
1611
|
+
const localizedTimeString = localizeTimeString({
|
|
1612
|
+
value: this.value,
|
|
1613
|
+
locale: this.effectiveLocale,
|
|
1614
|
+
numberingSystem: this.numberingSystem,
|
|
1615
|
+
includeSeconds: this.shouldIncludeSeconds(),
|
|
1616
|
+
fractionalSecondDigits: decimalPlaces(this.step),
|
|
1617
|
+
});
|
|
1618
|
+
if (newValue && this.calciteInputEl.value !== localizedTimeString) {
|
|
1619
|
+
this.setInputValue(localizedTimeString);
|
|
1620
|
+
}
|
|
1537
1621
|
}
|
|
1538
1622
|
}
|
|
1539
1623
|
else if (key === "ArrowDown") {
|
|
@@ -1592,6 +1676,7 @@ const InputTimePicker = class {
|
|
|
1592
1676
|
locale: this.effectiveLocale,
|
|
1593
1677
|
numberingSystem: this.numberingSystem,
|
|
1594
1678
|
includeSeconds: this.shouldIncludeSeconds(),
|
|
1679
|
+
fractionalSecondDigits: decimalPlaces(this.step),
|
|
1595
1680
|
}));
|
|
1596
1681
|
}
|
|
1597
1682
|
};
|
|
@@ -1610,6 +1695,7 @@ const InputTimePicker = class {
|
|
|
1610
1695
|
includeSeconds,
|
|
1611
1696
|
locale: this.effectiveLocale,
|
|
1612
1697
|
numberingSystem: this.numberingSystem,
|
|
1698
|
+
fractionalSecondDigits: decimalPlaces(this.step),
|
|
1613
1699
|
})
|
|
1614
1700
|
: "");
|
|
1615
1701
|
};
|
|
@@ -1666,6 +1752,7 @@ const InputTimePicker = class {
|
|
|
1666
1752
|
locale: this.effectiveLocale,
|
|
1667
1753
|
numberingSystem,
|
|
1668
1754
|
includeSeconds: this.shouldIncludeSeconds(),
|
|
1755
|
+
fractionalSecondDigits: decimalPlaces(this.step),
|
|
1669
1756
|
}));
|
|
1670
1757
|
}
|
|
1671
1758
|
stepWatcher(newStep, oldStep) {
|
|
@@ -1687,6 +1774,7 @@ const InputTimePicker = class {
|
|
|
1687
1774
|
locale,
|
|
1688
1775
|
numberingSystem: this.numberingSystem,
|
|
1689
1776
|
includeSeconds: this.shouldIncludeSeconds(),
|
|
1777
|
+
fractionalSecondDigits: decimalPlaces(this.step),
|
|
1690
1778
|
}));
|
|
1691
1779
|
}
|
|
1692
1780
|
// --------------------------------------------------------------------------
|
|
@@ -1715,26 +1803,114 @@ const InputTimePicker = class {
|
|
|
1715
1803
|
delocalizeTimeString(value) {
|
|
1716
1804
|
// we need to set the corresponding locale before parsing, otherwise it defaults to English (possible dayjs bug)
|
|
1717
1805
|
dayjs.locale(this.effectiveLocale.toLowerCase());
|
|
1718
|
-
const
|
|
1806
|
+
const nonFractionalSecondParts = this.delocalizeTimeStringToParts(value);
|
|
1807
|
+
let delocalizedTimeString;
|
|
1808
|
+
if (this.shouldIncludeFractionalSeconds()) {
|
|
1809
|
+
const stepPrecision = decimalPlaces(this.step);
|
|
1810
|
+
const centisecondParts = this.delocalizeTimeStringToParts(value, "S");
|
|
1811
|
+
if (stepPrecision === 1) {
|
|
1812
|
+
delocalizedTimeString =
|
|
1813
|
+
centisecondParts.millisecond !== 0
|
|
1814
|
+
? this.getTimeStringFromParts(centisecondParts)
|
|
1815
|
+
: this.getTimeStringFromParts(nonFractionalSecondParts);
|
|
1816
|
+
}
|
|
1817
|
+
else {
|
|
1818
|
+
const decisecondParts = this.delocalizeTimeStringToParts(value, "SS");
|
|
1819
|
+
if (stepPrecision === 2) {
|
|
1820
|
+
if (decisecondParts.millisecond !== 0) {
|
|
1821
|
+
delocalizedTimeString = this.getTimeStringFromParts(decisecondParts);
|
|
1822
|
+
}
|
|
1823
|
+
else if (centisecondParts.millisecond !== 0) {
|
|
1824
|
+
delocalizedTimeString = this.getTimeStringFromParts(centisecondParts);
|
|
1825
|
+
}
|
|
1826
|
+
else {
|
|
1827
|
+
delocalizedTimeString = this.getTimeStringFromParts(nonFractionalSecondParts);
|
|
1828
|
+
}
|
|
1829
|
+
}
|
|
1830
|
+
else if (stepPrecision >= 3) {
|
|
1831
|
+
const millisecondParts = this.delocalizeTimeStringToParts(value, "SSS");
|
|
1832
|
+
if (millisecondParts.millisecond !== 0) {
|
|
1833
|
+
delocalizedTimeString = this.getTimeStringFromParts(millisecondParts);
|
|
1834
|
+
}
|
|
1835
|
+
else if (decisecondParts.millisecond !== 0) {
|
|
1836
|
+
delocalizedTimeString = this.getTimeStringFromParts(decisecondParts);
|
|
1837
|
+
}
|
|
1838
|
+
else if (centisecondParts.millisecond !== 0) {
|
|
1839
|
+
delocalizedTimeString = this.getTimeStringFromParts(centisecondParts);
|
|
1840
|
+
}
|
|
1841
|
+
else {
|
|
1842
|
+
delocalizedTimeString = this.getTimeStringFromParts(nonFractionalSecondParts);
|
|
1843
|
+
}
|
|
1844
|
+
}
|
|
1845
|
+
}
|
|
1846
|
+
}
|
|
1847
|
+
else {
|
|
1848
|
+
delocalizedTimeString = this.getTimeStringFromParts(nonFractionalSecondParts);
|
|
1849
|
+
}
|
|
1850
|
+
return delocalizedTimeString;
|
|
1851
|
+
}
|
|
1852
|
+
delocalizeTimeStringToParts(localizedTimeString, fractionalSecondFormatToken) {
|
|
1853
|
+
const ltsFormatString = this.localeConfig?.formats?.LTS;
|
|
1854
|
+
const fractionalSecondTokenMatch = ltsFormatString.match(/ss\.*(S+)/g);
|
|
1855
|
+
if (fractionalSecondFormatToken && this.shouldIncludeFractionalSeconds()) {
|
|
1856
|
+
const secondFormatToken = `ss.${fractionalSecondFormatToken}`;
|
|
1857
|
+
this.localeConfig.formats.LTS = fractionalSecondTokenMatch
|
|
1858
|
+
? ltsFormatString.replace(fractionalSecondTokenMatch[0], secondFormatToken)
|
|
1859
|
+
: ltsFormatString.replace("ss", secondFormatToken);
|
|
1860
|
+
}
|
|
1861
|
+
else if (fractionalSecondTokenMatch) {
|
|
1862
|
+
this.localeConfig.formats.LTS = ltsFormatString.replace(fractionalSecondTokenMatch[0], "ss");
|
|
1863
|
+
}
|
|
1864
|
+
dayjs.updateLocale(this.getSupportedDayjsLocale(getSupportedLocale(this.effectiveLocale)), this.localeConfig);
|
|
1865
|
+
const dayjsParseResult = dayjs(localizedTimeString, ["LTS", "LT"]);
|
|
1719
1866
|
if (dayjsParseResult.isValid()) {
|
|
1720
|
-
|
|
1721
|
-
|
|
1722
|
-
|
|
1867
|
+
return {
|
|
1868
|
+
hour: dayjsParseResult.get("hour"),
|
|
1869
|
+
minute: dayjsParseResult.get("minute"),
|
|
1870
|
+
second: dayjsParseResult.get("second"),
|
|
1871
|
+
millisecond: dayjsParseResult.get("millisecond"),
|
|
1872
|
+
};
|
|
1873
|
+
}
|
|
1874
|
+
return {
|
|
1875
|
+
hour: null,
|
|
1876
|
+
minute: null,
|
|
1877
|
+
second: null,
|
|
1878
|
+
millisecond: null,
|
|
1879
|
+
};
|
|
1880
|
+
}
|
|
1881
|
+
getTimeStringFromParts(parts) {
|
|
1882
|
+
let timeString = "";
|
|
1883
|
+
if (!parts) {
|
|
1884
|
+
return timeString;
|
|
1885
|
+
}
|
|
1886
|
+
if (parts.hour !== null && parts.minute !== null) {
|
|
1887
|
+
timeString = `${formatTimePart(parts.hour)}:${formatTimePart(parts.minute)}`;
|
|
1888
|
+
if (this.shouldIncludeSeconds() && parts.second !== null) {
|
|
1889
|
+
timeString += `:${formatTimePart(parts.second)}`;
|
|
1890
|
+
if (this.shouldIncludeFractionalSeconds() && parts.millisecond !== null) {
|
|
1891
|
+
const second = (parts.millisecond * 0.001).toFixed(decimalPlaces(this.step));
|
|
1892
|
+
timeString += `.${second.toString().replace("0.", "")}`;
|
|
1893
|
+
}
|
|
1723
1894
|
}
|
|
1724
|
-
return formatTimeString(unformattedTimeString) || "";
|
|
1725
1895
|
}
|
|
1726
|
-
return
|
|
1896
|
+
return timeString;
|
|
1727
1897
|
}
|
|
1728
|
-
|
|
1729
|
-
|
|
1730
|
-
if (
|
|
1731
|
-
|
|
1898
|
+
getSupportedDayjsLocale(locale) {
|
|
1899
|
+
const dayjsLocale = locale.toLowerCase();
|
|
1900
|
+
if (dayjsLocale === "no") {
|
|
1901
|
+
return "nb";
|
|
1732
1902
|
}
|
|
1733
|
-
if (
|
|
1734
|
-
|
|
1903
|
+
if (dayjsLocale === "pt-pt") {
|
|
1904
|
+
return "pt";
|
|
1735
1905
|
}
|
|
1736
|
-
|
|
1737
|
-
|
|
1906
|
+
return dayjsLocale;
|
|
1907
|
+
}
|
|
1908
|
+
async loadDateTimeLocaleData() {
|
|
1909
|
+
let supportedLocale = getSupportedLocale(this.effectiveLocale).toLowerCase();
|
|
1910
|
+
supportedLocale = this.getSupportedDayjsLocale(supportedLocale);
|
|
1911
|
+
const { default: localeConfig } = await supportedDayjsLocaleToLocaleConfigImport.get(supportedLocale)();
|
|
1912
|
+
this.localeConfig = localeConfig;
|
|
1913
|
+
dayjs.locale(this.localeConfig, null, true);
|
|
1738
1914
|
dayjs.updateLocale(supportedLocale, this.getExtendedLocaleConfig(supportedLocale));
|
|
1739
1915
|
}
|
|
1740
1916
|
getExtendedLocaleConfig(locale) {
|
|
@@ -1808,6 +1984,9 @@ const InputTimePicker = class {
|
|
|
1808
1984
|
shouldIncludeSeconds() {
|
|
1809
1985
|
return this.step < 60;
|
|
1810
1986
|
}
|
|
1987
|
+
shouldIncludeFractionalSeconds() {
|
|
1988
|
+
return decimalPlaces(this.step) > 0;
|
|
1989
|
+
}
|
|
1811
1990
|
//--------------------------------------------------------------------------
|
|
1812
1991
|
//
|
|
1813
1992
|
// Lifecycle
|
|
@@ -1838,6 +2017,7 @@ const InputTimePicker = class {
|
|
|
1838
2017
|
locale: this.effectiveLocale,
|
|
1839
2018
|
numberingSystem: this.numberingSystem,
|
|
1840
2019
|
includeSeconds: this.shouldIncludeSeconds(),
|
|
2020
|
+
fractionalSecondDigits: decimalPlaces(this.step),
|
|
1841
2021
|
}));
|
|
1842
2022
|
}
|
|
1843
2023
|
}
|
|
@@ -1891,6 +2071,8 @@ const CSS = {
|
|
|
1891
2071
|
button: "button",
|
|
1892
2072
|
buttonBottomLeft: "button--bottom-left",
|
|
1893
2073
|
buttonBottomRight: "button--bottom-right",
|
|
2074
|
+
buttonFractionalSecondDown: "button--fractionalSecond-down",
|
|
2075
|
+
buttonFractionalSecondUp: "button--fractionalSecond-up",
|
|
1894
2076
|
buttonHourDown: "button--hour-down",
|
|
1895
2077
|
buttonHourUp: "button--hour-up",
|
|
1896
2078
|
buttonMeridiemDown: "button--meridiem-down",
|
|
@@ -1903,6 +2085,7 @@ const CSS = {
|
|
|
1903
2085
|
buttonTopRight: "button--top-right",
|
|
1904
2086
|
column: "column",
|
|
1905
2087
|
delimiter: "delimiter",
|
|
2088
|
+
fractionalSecond: "fractionalSecond",
|
|
1906
2089
|
hour: "hour",
|
|
1907
2090
|
input: "input",
|
|
1908
2091
|
meridiem: "meridiem",
|
|
@@ -1928,6 +2111,9 @@ const TimePicker = class {
|
|
|
1928
2111
|
this.calciteInternalTimePickerBlur = createEvent(this, "calciteInternalTimePickerBlur", 6);
|
|
1929
2112
|
this.calciteInternalTimePickerChange = createEvent(this, "calciteInternalTimePickerChange", 6);
|
|
1930
2113
|
this.calciteInternalTimePickerFocus = createEvent(this, "calciteInternalTimePickerFocus", 6);
|
|
2114
|
+
this.decrementFractionalSecond = () => {
|
|
2115
|
+
this.nudgeFractionalSecond("down");
|
|
2116
|
+
};
|
|
1931
2117
|
this.decrementHour = () => {
|
|
1932
2118
|
const newHour = !this.hour ? 0 : this.hour === "00" ? 23 : parseInt(this.hour) - 1;
|
|
1933
2119
|
this.setValuePart("hour", newHour);
|
|
@@ -1956,9 +2142,39 @@ const TimePicker = class {
|
|
|
1956
2142
|
this.focusHandler = (event) => {
|
|
1957
2143
|
this.activeEl = event.currentTarget;
|
|
1958
2144
|
};
|
|
1959
|
-
this.
|
|
1960
|
-
|
|
1961
|
-
|
|
2145
|
+
this.fractionalSecondKeyDownHandler = (event) => {
|
|
2146
|
+
const { key } = event;
|
|
2147
|
+
if (numberKeys.includes(key)) {
|
|
2148
|
+
const stepPrecision = decimalPlaces(this.step);
|
|
2149
|
+
const fractionalSecondAsInteger = parseInt(this.fractionalSecond);
|
|
2150
|
+
const fractionalSecondAsIntegerLength = fractionalSecondAsInteger.toString().length;
|
|
2151
|
+
let newFractionalSecondAsIntegerString;
|
|
2152
|
+
if (fractionalSecondAsIntegerLength >= stepPrecision) {
|
|
2153
|
+
newFractionalSecondAsIntegerString = key.padStart(stepPrecision, "0");
|
|
2154
|
+
}
|
|
2155
|
+
else if (fractionalSecondAsIntegerLength < stepPrecision) {
|
|
2156
|
+
newFractionalSecondAsIntegerString = `${fractionalSecondAsInteger}${key}`.padStart(stepPrecision, "0");
|
|
2157
|
+
}
|
|
2158
|
+
this.setValuePart("fractionalSecond", parseFloat(`0.${newFractionalSecondAsIntegerString}`));
|
|
2159
|
+
}
|
|
2160
|
+
else {
|
|
2161
|
+
switch (key) {
|
|
2162
|
+
case "Backspace":
|
|
2163
|
+
case "Delete":
|
|
2164
|
+
this.setValuePart("fractionalSecond", null);
|
|
2165
|
+
break;
|
|
2166
|
+
case "ArrowDown":
|
|
2167
|
+
event.preventDefault();
|
|
2168
|
+
this.nudgeFractionalSecond("down");
|
|
2169
|
+
break;
|
|
2170
|
+
case "ArrowUp":
|
|
2171
|
+
event.preventDefault();
|
|
2172
|
+
this.nudgeFractionalSecond("up");
|
|
2173
|
+
break;
|
|
2174
|
+
case " ":
|
|
2175
|
+
event.preventDefault();
|
|
2176
|
+
break;
|
|
2177
|
+
}
|
|
1962
2178
|
}
|
|
1963
2179
|
};
|
|
1964
2180
|
this.hourKeyDownHandler = (event) => {
|
|
@@ -2012,10 +2228,8 @@ const TimePicker = class {
|
|
|
2012
2228
|
}
|
|
2013
2229
|
}
|
|
2014
2230
|
};
|
|
2015
|
-
this.
|
|
2016
|
-
|
|
2017
|
-
this.incrementHour();
|
|
2018
|
-
}
|
|
2231
|
+
this.incrementFractionalSecond = () => {
|
|
2232
|
+
this.nudgeFractionalSecond("up");
|
|
2019
2233
|
};
|
|
2020
2234
|
this.incrementMeridiem = () => {
|
|
2021
2235
|
const newMeridiem = this.meridiem === "AM" ? "PM" : "AM";
|
|
@@ -2043,11 +2257,6 @@ const TimePicker = class {
|
|
|
2043
2257
|
this.incrementSecond = () => {
|
|
2044
2258
|
this.incrementMinuteOrSecond("second");
|
|
2045
2259
|
};
|
|
2046
|
-
this.meridiemDownButtonKeyDownHandler = (event) => {
|
|
2047
|
-
if (this.buttonActivated(event)) {
|
|
2048
|
-
this.decrementMeridiem();
|
|
2049
|
-
}
|
|
2050
|
-
};
|
|
2051
2260
|
this.meridiemKeyDownHandler = (event) => {
|
|
2052
2261
|
switch (event.key) {
|
|
2053
2262
|
case "a":
|
|
@@ -2073,16 +2282,6 @@ const TimePicker = class {
|
|
|
2073
2282
|
break;
|
|
2074
2283
|
}
|
|
2075
2284
|
};
|
|
2076
|
-
this.meridiemUpButtonKeyDownHandler = (event) => {
|
|
2077
|
-
if (this.buttonActivated(event)) {
|
|
2078
|
-
this.incrementMeridiem();
|
|
2079
|
-
}
|
|
2080
|
-
};
|
|
2081
|
-
this.minuteDownButtonKeyDownHandler = (event) => {
|
|
2082
|
-
if (this.buttonActivated(event)) {
|
|
2083
|
-
this.decrementMinute();
|
|
2084
|
-
}
|
|
2085
|
-
};
|
|
2086
2285
|
this.minuteKeyDownHandler = (event) => {
|
|
2087
2286
|
const { key } = event;
|
|
2088
2287
|
if (numberKeys.includes(key)) {
|
|
@@ -2120,16 +2319,51 @@ const TimePicker = class {
|
|
|
2120
2319
|
}
|
|
2121
2320
|
}
|
|
2122
2321
|
};
|
|
2123
|
-
this.
|
|
2124
|
-
|
|
2125
|
-
|
|
2322
|
+
this.nudgeFractionalSecond = (direction) => {
|
|
2323
|
+
const stepDecimal = getDecimals(this.step);
|
|
2324
|
+
const stepPrecision = decimalPlaces(this.step);
|
|
2325
|
+
const fractionalSecondAsInteger = parseInt(this.fractionalSecond);
|
|
2326
|
+
const fractionalSecondAsFloat = parseFloat(`0.${this.fractionalSecond}`);
|
|
2327
|
+
let nudgedValue;
|
|
2328
|
+
let nudgedValueRounded;
|
|
2329
|
+
let nudgedValueRoundedDecimals;
|
|
2330
|
+
let newFractionalSecond;
|
|
2331
|
+
if (direction === "up") {
|
|
2332
|
+
nudgedValue = isNaN(fractionalSecondAsInteger) ? 0 : fractionalSecondAsFloat + stepDecimal;
|
|
2333
|
+
nudgedValueRounded = parseFloat(nudgedValue.toFixed(stepPrecision));
|
|
2334
|
+
nudgedValueRoundedDecimals = getDecimals(nudgedValueRounded);
|
|
2335
|
+
newFractionalSecond =
|
|
2336
|
+
nudgedValueRounded < 1 && decimalPlaces(nudgedValueRoundedDecimals) > 0
|
|
2337
|
+
? formatTimePart(nudgedValueRoundedDecimals, stepPrecision)
|
|
2338
|
+
: "".padStart(stepPrecision, "0");
|
|
2339
|
+
}
|
|
2340
|
+
if (direction === "down") {
|
|
2341
|
+
nudgedValue =
|
|
2342
|
+
isNaN(fractionalSecondAsInteger) || fractionalSecondAsInteger === 0
|
|
2343
|
+
? 1 - stepDecimal
|
|
2344
|
+
: fractionalSecondAsFloat - stepDecimal;
|
|
2345
|
+
nudgedValueRounded = parseFloat(nudgedValue.toFixed(stepPrecision));
|
|
2346
|
+
nudgedValueRoundedDecimals = getDecimals(nudgedValueRounded);
|
|
2347
|
+
newFractionalSecond =
|
|
2348
|
+
nudgedValueRounded < 1 &&
|
|
2349
|
+
decimalPlaces(nudgedValueRoundedDecimals) > 0 &&
|
|
2350
|
+
Math.sign(nudgedValueRoundedDecimals) === 1
|
|
2351
|
+
? formatTimePart(nudgedValueRoundedDecimals, stepPrecision)
|
|
2352
|
+
: "".padStart(stepPrecision, "0");
|
|
2126
2353
|
}
|
|
2354
|
+
this.setValuePart("fractionalSecond", newFractionalSecond);
|
|
2127
2355
|
};
|
|
2128
|
-
this.
|
|
2129
|
-
|
|
2130
|
-
|
|
2356
|
+
this.sanitizeValue = (value) => {
|
|
2357
|
+
const { hour, minute, second, fractionalSecond } = parseTimeString(value);
|
|
2358
|
+
if (fractionalSecond) {
|
|
2359
|
+
const sanitizedFractionalSecond = this.sanitizeFractionalSecond(fractionalSecond);
|
|
2360
|
+
return `${hour}:${minute}:${second}.${sanitizedFractionalSecond}`;
|
|
2131
2361
|
}
|
|
2362
|
+
return isValidTime(value) && value;
|
|
2132
2363
|
};
|
|
2364
|
+
this.sanitizeFractionalSecond = (fractionalSecond) => fractionalSecond && decimalPlaces(this.step) !== fractionalSecond.length
|
|
2365
|
+
? parseFloat(`0.${fractionalSecond}`).toFixed(decimalPlaces(this.step)).replace("0.", "")
|
|
2366
|
+
: fractionalSecond;
|
|
2133
2367
|
this.secondKeyDownHandler = (event) => {
|
|
2134
2368
|
const { key } = event;
|
|
2135
2369
|
if (numberKeys.includes(key)) {
|
|
@@ -2167,29 +2401,28 @@ const TimePicker = class {
|
|
|
2167
2401
|
}
|
|
2168
2402
|
}
|
|
2169
2403
|
};
|
|
2170
|
-
this.secondUpButtonKeyDownHandler = (event) => {
|
|
2171
|
-
if (this.buttonActivated(event)) {
|
|
2172
|
-
this.incrementSecond();
|
|
2173
|
-
}
|
|
2174
|
-
};
|
|
2175
2404
|
this.setHourEl = (el) => (this.hourEl = el);
|
|
2176
2405
|
this.setMeridiemEl = (el) => (this.meridiemEl = el);
|
|
2177
2406
|
this.setMinuteEl = (el) => (this.minuteEl = el);
|
|
2178
2407
|
this.setSecondEl = (el) => (this.secondEl = el);
|
|
2179
|
-
this.
|
|
2408
|
+
this.setFractionalSecondEl = (el) => (this.fractionalSecondEl = el);
|
|
2409
|
+
this.setValue = (value) => {
|
|
2180
2410
|
if (isValidTime(value)) {
|
|
2181
|
-
const { hour, minute, second } = parseTimeString(value);
|
|
2411
|
+
const { hour, minute, second, fractionalSecond } = parseTimeString(value);
|
|
2182
2412
|
const { effectiveLocale: locale, numberingSystem } = this;
|
|
2183
|
-
const { localizedHour, localizedHourSuffix, localizedMinute, localizedMinuteSuffix, localizedSecond, localizedSecondSuffix, localizedMeridiem, } = localizeTimeStringToParts({ value, locale, numberingSystem });
|
|
2413
|
+
const { localizedHour, localizedHourSuffix, localizedMinute, localizedMinuteSuffix, localizedSecond, localizedDecimalSeparator, localizedFractionalSecond, localizedSecondSuffix, localizedMeridiem, } = localizeTimeStringToParts({ value, locale, numberingSystem });
|
|
2414
|
+
this.hour = hour;
|
|
2415
|
+
this.minute = minute;
|
|
2416
|
+
this.second = second;
|
|
2417
|
+
this.fractionalSecond = this.sanitizeFractionalSecond(fractionalSecond);
|
|
2184
2418
|
this.localizedHour = localizedHour;
|
|
2185
2419
|
this.localizedHourSuffix = localizedHourSuffix;
|
|
2186
2420
|
this.localizedMinute = localizedMinute;
|
|
2187
2421
|
this.localizedMinuteSuffix = localizedMinuteSuffix;
|
|
2188
2422
|
this.localizedSecond = localizedSecond;
|
|
2423
|
+
this.localizedDecimalSeparator = localizedDecimalSeparator;
|
|
2424
|
+
this.localizedFractionalSecond = localizedFractionalSecond;
|
|
2189
2425
|
this.localizedSecondSuffix = localizedSecondSuffix;
|
|
2190
|
-
this.hour = hour;
|
|
2191
|
-
this.minute = minute;
|
|
2192
|
-
this.second = second;
|
|
2193
2426
|
if (localizedMeridiem) {
|
|
2194
2427
|
this.localizedMeridiem = localizedMeridiem;
|
|
2195
2428
|
this.meridiem = getMeridiem(this.hour);
|
|
@@ -2199,23 +2432,23 @@ const TimePicker = class {
|
|
|
2199
2432
|
}
|
|
2200
2433
|
else {
|
|
2201
2434
|
this.hour = null;
|
|
2435
|
+
this.fractionalSecond = null;
|
|
2202
2436
|
this.localizedHour = null;
|
|
2203
|
-
this.localizedHourSuffix =
|
|
2437
|
+
this.localizedHourSuffix = getLocalizedTimePartSuffix("hour", this.effectiveLocale, this.numberingSystem);
|
|
2204
2438
|
this.localizedMeridiem = null;
|
|
2205
2439
|
this.localizedMinute = null;
|
|
2206
|
-
this.localizedMinuteSuffix =
|
|
2440
|
+
this.localizedMinuteSuffix = getLocalizedTimePartSuffix("minute", this.effectiveLocale, this.numberingSystem);
|
|
2207
2441
|
this.localizedSecond = null;
|
|
2208
|
-
this.
|
|
2442
|
+
this.localizedDecimalSeparator = getLocalizedDecimalSeparator(this.effectiveLocale, this.numberingSystem);
|
|
2443
|
+
this.localizedFractionalSecond = null;
|
|
2444
|
+
this.localizedSecondSuffix = getLocalizedTimePartSuffix("second", this.effectiveLocale, this.numberingSystem);
|
|
2209
2445
|
this.meridiem = null;
|
|
2210
2446
|
this.minute = null;
|
|
2211
2447
|
this.second = null;
|
|
2212
2448
|
this.value = null;
|
|
2213
2449
|
}
|
|
2214
|
-
if (emit) {
|
|
2215
|
-
this.calciteInternalTimePickerChange.emit();
|
|
2216
|
-
}
|
|
2217
2450
|
};
|
|
2218
|
-
this.setValuePart = (key, value
|
|
2451
|
+
this.setValuePart = (key, value) => {
|
|
2219
2452
|
const { effectiveLocale: locale, numberingSystem } = this;
|
|
2220
2453
|
if (key === "meridiem") {
|
|
2221
2454
|
this.meridiem = value;
|
|
@@ -2241,6 +2474,22 @@ const TimePicker = class {
|
|
|
2241
2474
|
});
|
|
2242
2475
|
}
|
|
2243
2476
|
}
|
|
2477
|
+
else if (key === "fractionalSecond") {
|
|
2478
|
+
const stepPrecision = decimalPlaces(this.step);
|
|
2479
|
+
if (typeof value === "number") {
|
|
2480
|
+
this.fractionalSecond =
|
|
2481
|
+
value === 0 ? "".padStart(stepPrecision, "0") : formatTimePart(value, stepPrecision);
|
|
2482
|
+
}
|
|
2483
|
+
else {
|
|
2484
|
+
this.fractionalSecond = value;
|
|
2485
|
+
}
|
|
2486
|
+
this.localizedFractionalSecond = localizeTimePart({
|
|
2487
|
+
value: this.fractionalSecond,
|
|
2488
|
+
part: "fractionalSecond",
|
|
2489
|
+
locale,
|
|
2490
|
+
numberingSystem,
|
|
2491
|
+
});
|
|
2492
|
+
}
|
|
2244
2493
|
else {
|
|
2245
2494
|
this[key] = typeof value === "number" ? formatTimePart(value) : value;
|
|
2246
2495
|
this[`localized${capitalize(key)}`] = localizeTimePart({
|
|
@@ -2250,16 +2499,24 @@ const TimePicker = class {
|
|
|
2250
2499
|
numberingSystem,
|
|
2251
2500
|
});
|
|
2252
2501
|
}
|
|
2502
|
+
let emit = false;
|
|
2503
|
+
let newValue;
|
|
2253
2504
|
if (this.hour && this.minute) {
|
|
2254
|
-
|
|
2505
|
+
newValue = `${this.hour}:${this.minute}`;
|
|
2255
2506
|
if (this.showSecond) {
|
|
2256
2507
|
newValue = `${newValue}:${this.second ?? "00"}`;
|
|
2508
|
+
if (this.showFractionalSecond && this.fractionalSecond) {
|
|
2509
|
+
newValue = `${newValue}.${this.fractionalSecond}`;
|
|
2510
|
+
}
|
|
2257
2511
|
}
|
|
2258
|
-
this.value = newValue;
|
|
2259
2512
|
}
|
|
2260
2513
|
else {
|
|
2261
|
-
|
|
2514
|
+
newValue = null;
|
|
2515
|
+
}
|
|
2516
|
+
if (this.value !== newValue) {
|
|
2517
|
+
emit = true;
|
|
2262
2518
|
}
|
|
2519
|
+
this.value = newValue;
|
|
2263
2520
|
this.localizedMeridiem = this.value
|
|
2264
2521
|
? localizeTimeStringToParts({ value: this.value, locale, numberingSystem })
|
|
2265
2522
|
?.localizedMeridiem || null
|
|
@@ -2275,11 +2532,14 @@ const TimePicker = class {
|
|
|
2275
2532
|
this.messages = undefined;
|
|
2276
2533
|
this.messageOverrides = undefined;
|
|
2277
2534
|
this.effectiveLocale = "";
|
|
2535
|
+
this.fractionalSecond = undefined;
|
|
2278
2536
|
this.hour = undefined;
|
|
2279
2537
|
this.hourCycle = undefined;
|
|
2538
|
+
this.localizedDecimalSeparator = ".";
|
|
2280
2539
|
this.localizedHour = undefined;
|
|
2281
2540
|
this.localizedHourSuffix = undefined;
|
|
2282
2541
|
this.localizedMeridiem = undefined;
|
|
2542
|
+
this.localizedFractionalSecond = undefined;
|
|
2283
2543
|
this.localizedMinute = undefined;
|
|
2284
2544
|
this.localizedMinuteSuffix = undefined;
|
|
2285
2545
|
this.localizedSecond = undefined;
|
|
@@ -2287,14 +2547,15 @@ const TimePicker = class {
|
|
|
2287
2547
|
this.meridiem = undefined;
|
|
2288
2548
|
this.minute = undefined;
|
|
2289
2549
|
this.second = undefined;
|
|
2550
|
+
this.showFractionalSecond = undefined;
|
|
2290
2551
|
this.showSecond = undefined;
|
|
2291
2552
|
this.defaultMessages = undefined;
|
|
2292
2553
|
}
|
|
2293
2554
|
stepChange() {
|
|
2294
|
-
this.
|
|
2555
|
+
this.toggleSecond();
|
|
2295
2556
|
}
|
|
2296
2557
|
valueWatcher(newValue) {
|
|
2297
|
-
this.setValue(newValue
|
|
2558
|
+
this.setValue(newValue);
|
|
2298
2559
|
}
|
|
2299
2560
|
onMessagesChange() {
|
|
2300
2561
|
/* wired up by t9n util */
|
|
@@ -2349,6 +2610,23 @@ const TimePicker = class {
|
|
|
2349
2610
|
this.focusPart("minute");
|
|
2350
2611
|
event.preventDefault();
|
|
2351
2612
|
break;
|
|
2613
|
+
case "ArrowRight":
|
|
2614
|
+
if (this.showFractionalSecond) {
|
|
2615
|
+
this.focusPart("fractionalSecond");
|
|
2616
|
+
}
|
|
2617
|
+
else if (this.hourCycle === "12") {
|
|
2618
|
+
this.focusPart("meridiem");
|
|
2619
|
+
event.preventDefault();
|
|
2620
|
+
}
|
|
2621
|
+
break;
|
|
2622
|
+
}
|
|
2623
|
+
break;
|
|
2624
|
+
case this.fractionalSecondEl:
|
|
2625
|
+
switch (key) {
|
|
2626
|
+
case "ArrowLeft":
|
|
2627
|
+
this.focusPart("second");
|
|
2628
|
+
event.preventDefault();
|
|
2629
|
+
break;
|
|
2352
2630
|
case "ArrowRight":
|
|
2353
2631
|
if (this.hourCycle === "12") {
|
|
2354
2632
|
this.focusPart("meridiem");
|
|
@@ -2360,7 +2638,10 @@ const TimePicker = class {
|
|
|
2360
2638
|
case this.meridiemEl:
|
|
2361
2639
|
switch (key) {
|
|
2362
2640
|
case "ArrowLeft":
|
|
2363
|
-
if (this.
|
|
2641
|
+
if (this.showFractionalSecond) {
|
|
2642
|
+
this.focusPart("fractionalSecond");
|
|
2643
|
+
}
|
|
2644
|
+
else if (this.step !== 60) {
|
|
2364
2645
|
this.focusPart("second");
|
|
2365
2646
|
event.preventDefault();
|
|
2366
2647
|
}
|
|
@@ -2390,19 +2671,13 @@ const TimePicker = class {
|
|
|
2390
2671
|
// Private Methods
|
|
2391
2672
|
//
|
|
2392
2673
|
// --------------------------------------------------------------------------
|
|
2393
|
-
updateShowSecond() {
|
|
2394
|
-
this.showSecond = this.step < 60;
|
|
2395
|
-
}
|
|
2396
2674
|
async focusPart(target) {
|
|
2397
2675
|
await componentFocusable(this);
|
|
2398
2676
|
this[`${target || "hour"}El`]?.focus();
|
|
2399
2677
|
}
|
|
2400
|
-
|
|
2401
|
-
|
|
2402
|
-
|
|
2403
|
-
event.preventDefault();
|
|
2404
|
-
}
|
|
2405
|
-
return isActivationKey(key);
|
|
2678
|
+
toggleSecond() {
|
|
2679
|
+
this.showSecond = this.step < 60;
|
|
2680
|
+
this.showFractionalSecond = decimalPlaces(this.step) > 0;
|
|
2406
2681
|
}
|
|
2407
2682
|
getMeridiemOrder(formatParts) {
|
|
2408
2683
|
const locale = this.effectiveLocale;
|
|
@@ -2418,7 +2693,8 @@ const TimePicker = class {
|
|
|
2418
2693
|
updateLocale() {
|
|
2419
2694
|
updateMessages(this, this.effectiveLocale);
|
|
2420
2695
|
this.hourCycle = getLocaleHourCycle(this.effectiveLocale, this.numberingSystem);
|
|
2421
|
-
this.
|
|
2696
|
+
this.localizedDecimalSeparator = getLocalizedDecimalSeparator(this.effectiveLocale, this.numberingSystem);
|
|
2697
|
+
this.setValue(this.sanitizeValue(this.value));
|
|
2422
2698
|
}
|
|
2423
2699
|
// --------------------------------------------------------------------------
|
|
2424
2700
|
//
|
|
@@ -2429,7 +2705,7 @@ const TimePicker = class {
|
|
|
2429
2705
|
connectLocalized(this);
|
|
2430
2706
|
this.updateLocale();
|
|
2431
2707
|
connectMessages(this);
|
|
2432
|
-
this.
|
|
2708
|
+
this.toggleSecond();
|
|
2433
2709
|
this.meridiemOrder = this.getMeridiemOrder(getTimeParts({
|
|
2434
2710
|
value: "0:00:00",
|
|
2435
2711
|
locale: this.effectiveLocale,
|
|
@@ -2457,6 +2733,7 @@ const TimePicker = class {
|
|
|
2457
2733
|
const iconScale = this.scale === "s" || this.scale === "m" ? "s" : "m";
|
|
2458
2734
|
const minuteIsNumber = isValidNumber(this.minute);
|
|
2459
2735
|
const secondIsNumber = isValidNumber(this.second);
|
|
2736
|
+
const fractionalSecondIsNumber = isValidNumber(this.fractionalSecond);
|
|
2460
2737
|
const showMeridiem = this.hourCycle === "12";
|
|
2461
2738
|
return (h("div", { class: {
|
|
2462
2739
|
[CSS.timePicker]: true,
|
|
@@ -2467,7 +2744,7 @@ const TimePicker = class {
|
|
|
2467
2744
|
[CSS.button]: true,
|
|
2468
2745
|
[CSS.buttonHourUp]: true,
|
|
2469
2746
|
[CSS.buttonTopLeft]: true,
|
|
2470
|
-
}, onClick: this.incrementHour,
|
|
2747
|
+
}, onClick: this.incrementHour, role: "button" }, h("calcite-icon", { icon: "chevron-up", scale: iconScale })), h("span", { "aria-label": this.messages.hour, "aria-valuemax": "23", "aria-valuemin": "1", "aria-valuenow": (hourIsNumber && parseInt(this.hour)) || "0", "aria-valuetext": this.hour, class: {
|
|
2471
2748
|
[CSS.input]: true,
|
|
2472
2749
|
[CSS.hour]: true,
|
|
2473
2750
|
}, onFocus: this.focusHandler, onKeyDown: this.hourKeyDownHandler, role: "spinbutton", tabIndex: 0,
|
|
@@ -2476,10 +2753,10 @@ const TimePicker = class {
|
|
|
2476
2753
|
[CSS.button]: true,
|
|
2477
2754
|
[CSS.buttonHourDown]: true,
|
|
2478
2755
|
[CSS.buttonBottomLeft]: true,
|
|
2479
|
-
}, onClick: this.decrementHour,
|
|
2756
|
+
}, onClick: this.decrementHour, role: "button" }, h("calcite-icon", { icon: "chevron-down", scale: iconScale }))), h("span", { class: CSS.delimiter }, this.localizedHourSuffix), h("div", { class: CSS.column, role: "group" }, h("span", { "aria-label": this.messages.minuteUp, class: {
|
|
2480
2757
|
[CSS.button]: true,
|
|
2481
2758
|
[CSS.buttonMinuteUp]: true,
|
|
2482
|
-
}, onClick: this.incrementMinute,
|
|
2759
|
+
}, onClick: this.incrementMinute, role: "button" }, h("calcite-icon", { icon: "chevron-up", scale: iconScale })), h("span", { "aria-label": this.messages.minute, "aria-valuemax": "12", "aria-valuemin": "1", "aria-valuenow": (minuteIsNumber && parseInt(this.minute)) || "0", "aria-valuetext": this.minute, class: {
|
|
2483
2760
|
[CSS.input]: true,
|
|
2484
2761
|
[CSS.minute]: true,
|
|
2485
2762
|
}, onFocus: this.focusHandler, onKeyDown: this.minuteKeyDownHandler, role: "spinbutton", tabIndex: 0,
|
|
@@ -2487,10 +2764,10 @@ const TimePicker = class {
|
|
|
2487
2764
|
ref: this.setMinuteEl }, this.localizedMinute || "--"), h("span", { "aria-label": this.messages.minuteDown, class: {
|
|
2488
2765
|
[CSS.button]: true,
|
|
2489
2766
|
[CSS.buttonMinuteDown]: true,
|
|
2490
|
-
}, onClick: this.decrementMinute,
|
|
2767
|
+
}, onClick: this.decrementMinute, role: "button" }, h("calcite-icon", { icon: "chevron-down", scale: iconScale }))), this.showSecond && h("span", { class: CSS.delimiter }, this.localizedMinuteSuffix), this.showSecond && (h("div", { class: CSS.column, role: "group" }, h("span", { "aria-label": this.messages.secondUp, class: {
|
|
2491
2768
|
[CSS.button]: true,
|
|
2492
2769
|
[CSS.buttonSecondUp]: true,
|
|
2493
|
-
}, onClick: this.incrementSecond,
|
|
2770
|
+
}, onClick: this.incrementSecond, role: "button" }, h("calcite-icon", { icon: "chevron-up", scale: iconScale })), h("span", { "aria-label": this.messages.second, "aria-valuemax": "59", "aria-valuemin": "0", "aria-valuenow": (secondIsNumber && parseInt(this.second)) || "0", "aria-valuetext": this.second, class: {
|
|
2494
2771
|
[CSS.input]: true,
|
|
2495
2772
|
[CSS.second]: true,
|
|
2496
2773
|
}, onFocus: this.focusHandler, onKeyDown: this.secondKeyDownHandler, role: "spinbutton", tabIndex: 0,
|
|
@@ -2498,14 +2775,25 @@ const TimePicker = class {
|
|
|
2498
2775
|
ref: this.setSecondEl }, this.localizedSecond || "--"), h("span", { "aria-label": this.messages.secondDown, class: {
|
|
2499
2776
|
[CSS.button]: true,
|
|
2500
2777
|
[CSS.buttonSecondDown]: true,
|
|
2501
|
-
}, onClick: this.decrementSecond,
|
|
2778
|
+
}, onClick: this.decrementSecond, role: "button" }, h("calcite-icon", { icon: "chevron-down", scale: iconScale })))), this.showFractionalSecond && (h("span", { class: CSS.delimiter }, this.localizedDecimalSeparator)), this.showFractionalSecond && (h("div", { class: CSS.column, role: "group" }, h("span", { "aria-label": this.messages.fractionalSecondUp, class: {
|
|
2779
|
+
[CSS.button]: true,
|
|
2780
|
+
[CSS.buttonFractionalSecondUp]: true,
|
|
2781
|
+
}, onClick: this.incrementFractionalSecond, role: "button" }, h("calcite-icon", { icon: "chevron-up", scale: iconScale })), h("span", { "aria-label": this.messages.fractionalSecond, "aria-valuemax": "999", "aria-valuemin": "1", "aria-valuenow": (fractionalSecondIsNumber && parseInt(this.fractionalSecond)) || "0", "aria-valuetext": this.localizedFractionalSecond, class: {
|
|
2782
|
+
[CSS.input]: true,
|
|
2783
|
+
[CSS.fractionalSecond]: true,
|
|
2784
|
+
}, onFocus: this.focusHandler, onKeyDown: this.fractionalSecondKeyDownHandler, role: "spinbutton", tabIndex: 0,
|
|
2785
|
+
// eslint-disable-next-line react/jsx-sort-props -- ref should be last so node attrs/props are in sync (see https://github.com/Esri/calcite-design-system/pull/6530)
|
|
2786
|
+
ref: this.setFractionalSecondEl }, this.localizedFractionalSecond || "--"), h("span", { "aria-label": this.messages.fractionalSecondDown, class: {
|
|
2787
|
+
[CSS.button]: true,
|
|
2788
|
+
[CSS.buttonFractionalSecondDown]: true,
|
|
2789
|
+
}, onClick: this.decrementFractionalSecond, role: "button" }, h("calcite-icon", { icon: "chevron-down", scale: iconScale })))), this.localizedSecondSuffix && (h("span", { class: CSS.delimiter }, this.localizedSecondSuffix)), showMeridiem && (h("div", { class: {
|
|
2502
2790
|
[CSS.column]: true,
|
|
2503
2791
|
[CSS.meridiemStart]: this.meridiemOrder === 0,
|
|
2504
2792
|
}, role: "group" }, h("span", { "aria-label": this.messages.meridiemUp, class: {
|
|
2505
2793
|
[CSS.button]: true,
|
|
2506
2794
|
[CSS.buttonMeridiemUp]: true,
|
|
2507
2795
|
[CSS.buttonTopRight]: true,
|
|
2508
|
-
}, onClick: this.incrementMeridiem,
|
|
2796
|
+
}, onClick: this.incrementMeridiem, role: "button" }, h("calcite-icon", { icon: "chevron-up", scale: iconScale })), h("span", { "aria-label": this.messages.meridiem, "aria-valuemax": "2", "aria-valuemin": "1", "aria-valuenow": (this.meridiem === "PM" && "2") || "1", "aria-valuetext": this.meridiem, class: {
|
|
2509
2797
|
[CSS.input]: true,
|
|
2510
2798
|
[CSS.meridiem]: true,
|
|
2511
2799
|
}, onFocus: this.focusHandler, onKeyDown: this.meridiemKeyDownHandler, role: "spinbutton", tabIndex: 0,
|
|
@@ -2514,7 +2802,7 @@ const TimePicker = class {
|
|
|
2514
2802
|
[CSS.button]: true,
|
|
2515
2803
|
[CSS.buttonMeridiemDown]: true,
|
|
2516
2804
|
[CSS.buttonBottomRight]: true,
|
|
2517
|
-
}, onClick: this.decrementMeridiem,
|
|
2805
|
+
}, onClick: this.decrementMeridiem, role: "button" }, h("calcite-icon", { icon: "chevron-down", scale: iconScale }))))));
|
|
2518
2806
|
}
|
|
2519
2807
|
static get delegatesFocus() { return true; }
|
|
2520
2808
|
static get assetsDirs() { return ["assets"]; }
|