@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
package/hydrate/index.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* All material copyright ESRI, All Rights Reserved, unless otherwise specified.
|
|
3
3
|
* See https://github.com/Esri/calcite-design-system/blob/main/LICENSE.md for details.
|
|
4
|
-
* v1.7.0-next.
|
|
4
|
+
* v1.7.0-next.14
|
|
5
5
|
*/
|
|
6
6
|
'use strict';
|
|
7
7
|
|
|
@@ -15861,9 +15861,18 @@ const SCOPE_SIZE = 1;
|
|
|
15861
15861
|
|
|
15862
15862
|
const clamp$1 = (value, min, max) => Math.max(min, Math.min(value, max));
|
|
15863
15863
|
const decimalNumberRegex = new RegExp(/(?:\.(\d+))?(?:[eE]([+-]?\d+))?$/);
|
|
15864
|
+
/**
|
|
15865
|
+
* Returns the quantity of real decimal places for a number, which excludes trailing zeros.
|
|
15866
|
+
*
|
|
15867
|
+
* Adapted from {@link https://stackoverflow.com/questions/10454518/javascript-how-to-retrieve-the-number-of-decimals-of-a-string-number}.
|
|
15868
|
+
*
|
|
15869
|
+
* @param decimal - decimal value
|
|
15870
|
+
* @param value
|
|
15871
|
+
* @returns {number} the amount of decimal places in a number
|
|
15872
|
+
*/
|
|
15864
15873
|
const decimalPlaces = (value) => {
|
|
15865
15874
|
const match = ("" + value).match(decimalNumberRegex);
|
|
15866
|
-
if (!match) {
|
|
15875
|
+
if (!match || parseInt(match[1]) === 0) {
|
|
15867
15876
|
return 0;
|
|
15868
15877
|
}
|
|
15869
15878
|
return Math.max(0,
|
|
@@ -15872,6 +15881,12 @@ const decimalPlaces = (value) => {
|
|
|
15872
15881
|
// Adjust for scientific notation.
|
|
15873
15882
|
(match[2] ? +match[2] : 0));
|
|
15874
15883
|
};
|
|
15884
|
+
function getDecimals(value) {
|
|
15885
|
+
if (decimalPlaces(value) > 0 && value > 0) {
|
|
15886
|
+
return parseFloat(`0.${value.toString().split(".")[1]}`);
|
|
15887
|
+
}
|
|
15888
|
+
return value;
|
|
15889
|
+
}
|
|
15875
15890
|
function remap(value, fromMin, fromMax, toMin, toMax) {
|
|
15876
15891
|
return ((value - fromMin) * (toMax - toMin)) / (fromMax - fromMin) + toMin;
|
|
15877
15892
|
}
|
|
@@ -26784,7 +26799,7 @@ class InputText {
|
|
|
26784
26799
|
}
|
|
26785
26800
|
|
|
26786
26801
|
const maxTenthForMinuteAndSecond = 5;
|
|
26787
|
-
function createLocaleDateTimeFormatter(locale, numberingSystem, includeSeconds = true) {
|
|
26802
|
+
function createLocaleDateTimeFormatter(locale, numberingSystem, includeSeconds = true, fractionalSecondDigits) {
|
|
26788
26803
|
const options = {
|
|
26789
26804
|
hour: "2-digit",
|
|
26790
26805
|
minute: "2-digit",
|
|
@@ -26793,31 +26808,69 @@ function createLocaleDateTimeFormatter(locale, numberingSystem, includeSeconds =
|
|
|
26793
26808
|
};
|
|
26794
26809
|
if (includeSeconds) {
|
|
26795
26810
|
options.second = "2-digit";
|
|
26811
|
+
if (fractionalSecondDigits) {
|
|
26812
|
+
options.fractionalSecondDigits = fractionalSecondDigits;
|
|
26813
|
+
}
|
|
26796
26814
|
}
|
|
26797
26815
|
return getDateTimeFormat(locale, options);
|
|
26798
26816
|
}
|
|
26799
|
-
function formatTimePart(number) {
|
|
26817
|
+
function formatTimePart(number, minLength) {
|
|
26818
|
+
if (number === null || number === undefined) {
|
|
26819
|
+
return;
|
|
26820
|
+
}
|
|
26800
26821
|
const numberAsString = number.toString();
|
|
26801
|
-
|
|
26822
|
+
const numberDecimalPlaces = decimalPlaces(number);
|
|
26823
|
+
if (number < 1 && numberDecimalPlaces > 0 && numberDecimalPlaces < 4) {
|
|
26824
|
+
const fractionalDigits = numberAsString.replace("0.", "");
|
|
26825
|
+
if (!minLength || fractionalDigits.length === minLength) {
|
|
26826
|
+
return fractionalDigits;
|
|
26827
|
+
}
|
|
26828
|
+
if (fractionalDigits.length < minLength) {
|
|
26829
|
+
return fractionalDigits.padEnd(minLength, "0");
|
|
26830
|
+
}
|
|
26831
|
+
return fractionalDigits;
|
|
26832
|
+
}
|
|
26833
|
+
if (number >= 0 && number < 10) {
|
|
26834
|
+
return numberAsString.padStart(2, "0");
|
|
26835
|
+
}
|
|
26836
|
+
if (number >= 10) {
|
|
26837
|
+
return numberAsString;
|
|
26838
|
+
}
|
|
26802
26839
|
}
|
|
26803
26840
|
function formatTimeString(value) {
|
|
26804
26841
|
if (!isValidTime(value)) {
|
|
26805
26842
|
return null;
|
|
26806
26843
|
}
|
|
26807
|
-
const
|
|
26808
|
-
|
|
26809
|
-
|
|
26810
|
-
|
|
26811
|
-
|
|
26812
|
-
|
|
26844
|
+
const { hour, minute, second, fractionalSecond } = parseTimeString(value);
|
|
26845
|
+
let formattedValue = `${formatTimePart(parseInt(hour))}:${formatTimePart(parseInt(minute))}`;
|
|
26846
|
+
if (second) {
|
|
26847
|
+
formattedValue += `:${formatTimePart(parseInt(second))}`;
|
|
26848
|
+
if (fractionalSecond) {
|
|
26849
|
+
formattedValue += `.${fractionalSecond}`;
|
|
26850
|
+
}
|
|
26813
26851
|
}
|
|
26814
|
-
return
|
|
26852
|
+
return formattedValue;
|
|
26853
|
+
}
|
|
26854
|
+
function fractionalSecondPartToMilliseconds(fractionalSecondPart) {
|
|
26855
|
+
return parseInt((parseFloat(`0.${fractionalSecondPart}`) / 0.001).toFixed(3));
|
|
26815
26856
|
}
|
|
26816
26857
|
function getLocaleHourCycle(locale, numberingSystem) {
|
|
26817
26858
|
const formatter = createLocaleDateTimeFormatter(locale, numberingSystem);
|
|
26818
26859
|
const parts = formatter.formatToParts(new Date(Date.UTC(0, 0, 0, 0, 0, 0)));
|
|
26819
26860
|
return getLocalizedTimePart("meridiem", parts) ? "12" : "24";
|
|
26820
26861
|
}
|
|
26862
|
+
function getLocalizedDecimalSeparator(locale, numberingSystem) {
|
|
26863
|
+
numberStringFormatter.numberFormatOptions = {
|
|
26864
|
+
locale,
|
|
26865
|
+
numberingSystem,
|
|
26866
|
+
};
|
|
26867
|
+
return numberStringFormatter.localize("1.1").split("")[1];
|
|
26868
|
+
}
|
|
26869
|
+
function getLocalizedTimePartSuffix(part, locale, numberingSystem = "latn") {
|
|
26870
|
+
const formatter = createLocaleDateTimeFormatter(locale, numberingSystem);
|
|
26871
|
+
const parts = formatter.formatToParts(new Date(Date.UTC(0, 0, 0, 0, 0, 0)));
|
|
26872
|
+
return getLocalizedTimePart(`${part}Suffix`, parts);
|
|
26873
|
+
}
|
|
26821
26874
|
function getLocalizedTimePart(part, parts) {
|
|
26822
26875
|
if (!part || !parts) {
|
|
26823
26876
|
return null;
|
|
@@ -26883,6 +26936,29 @@ function isValidTimePart(value, part) {
|
|
|
26883
26936
|
return part === "hour" ? valueAsNumber >= 0 && valueAsNumber < 24 : valueAsNumber >= 0 && valueAsNumber < 60;
|
|
26884
26937
|
}
|
|
26885
26938
|
function localizeTimePart({ value, part, locale, numberingSystem }) {
|
|
26939
|
+
if (part === "fractionalSecond") {
|
|
26940
|
+
const localizedDecimalSeparator = getLocalizedDecimalSeparator(locale, numberingSystem);
|
|
26941
|
+
let localizedFractionalSecond = null;
|
|
26942
|
+
if (value) {
|
|
26943
|
+
numberStringFormatter.numberFormatOptions = {
|
|
26944
|
+
locale,
|
|
26945
|
+
numberingSystem,
|
|
26946
|
+
};
|
|
26947
|
+
const localizedZero = numberStringFormatter.localize("0");
|
|
26948
|
+
if (parseInt(value) === 0) {
|
|
26949
|
+
localizedFractionalSecond = "".padStart(value.length, localizedZero);
|
|
26950
|
+
}
|
|
26951
|
+
else {
|
|
26952
|
+
localizedFractionalSecond = numberStringFormatter
|
|
26953
|
+
.localize(`0.${value}`)
|
|
26954
|
+
.replace(`${localizedZero}${localizedDecimalSeparator}`, "");
|
|
26955
|
+
if (localizedFractionalSecond.length < value.length) {
|
|
26956
|
+
localizedFractionalSecond = localizedFractionalSecond.padEnd(value.length, localizedZero);
|
|
26957
|
+
}
|
|
26958
|
+
}
|
|
26959
|
+
}
|
|
26960
|
+
return localizedFractionalSecond;
|
|
26961
|
+
}
|
|
26886
26962
|
if (!isValidTimePart(value, part)) {
|
|
26887
26963
|
return;
|
|
26888
26964
|
}
|
|
@@ -26895,20 +26971,20 @@ function localizeTimePart({ value, part, locale, numberingSystem }) {
|
|
|
26895
26971
|
const parts = formatter.formatToParts(date);
|
|
26896
26972
|
return getLocalizedTimePart(part, parts);
|
|
26897
26973
|
}
|
|
26898
|
-
function localizeTimeString({ value, locale, numberingSystem, includeSeconds = true, }) {
|
|
26974
|
+
function localizeTimeString({ value, locale, numberingSystem, includeSeconds = true, fractionalSecondDigits, }) {
|
|
26899
26975
|
if (!isValidTime(value)) {
|
|
26900
26976
|
return null;
|
|
26901
26977
|
}
|
|
26902
|
-
const { hour, minute, second = "0" } = parseTimeString(value);
|
|
26903
|
-
const dateFromTimeString = new Date(Date.UTC(0, 0, 0, parseInt(hour), parseInt(minute), parseInt(second)));
|
|
26904
|
-
const formatter = createLocaleDateTimeFormatter(locale, numberingSystem, includeSeconds);
|
|
26905
|
-
return formatter
|
|
26978
|
+
const { hour, minute, second = "0", fractionalSecond } = parseTimeString(value);
|
|
26979
|
+
const dateFromTimeString = new Date(Date.UTC(0, 0, 0, parseInt(hour), parseInt(minute), parseInt(second), fractionalSecond && fractionalSecondPartToMilliseconds(fractionalSecond)));
|
|
26980
|
+
const formatter = createLocaleDateTimeFormatter(locale, numberingSystem, includeSeconds, fractionalSecondDigits);
|
|
26981
|
+
return formatter.format(dateFromTimeString) || null;
|
|
26906
26982
|
}
|
|
26907
|
-
function localizeTimeStringToParts({ value, locale, numberingSystem, }) {
|
|
26983
|
+
function localizeTimeStringToParts({ value, locale, numberingSystem = "latn", }) {
|
|
26908
26984
|
if (!isValidTime(value)) {
|
|
26909
26985
|
return null;
|
|
26910
26986
|
}
|
|
26911
|
-
const { hour, minute, second = "0" } = parseTimeString(value);
|
|
26987
|
+
const { hour, minute, second = "0", fractionalSecond } = parseTimeString(value);
|
|
26912
26988
|
const dateFromTimeString = new Date(Date.UTC(0, 0, 0, parseInt(hour), parseInt(minute), parseInt(second)));
|
|
26913
26989
|
if (dateFromTimeString) {
|
|
26914
26990
|
const formatter = createLocaleDateTimeFormatter(locale, numberingSystem);
|
|
@@ -26919,6 +26995,13 @@ function localizeTimeStringToParts({ value, locale, numberingSystem, }) {
|
|
|
26919
26995
|
localizedMinute: getLocalizedTimePart("minute", parts),
|
|
26920
26996
|
localizedMinuteSuffix: getLocalizedTimePart("minuteSuffix", parts),
|
|
26921
26997
|
localizedSecond: getLocalizedTimePart("second", parts),
|
|
26998
|
+
localizedDecimalSeparator: getLocalizedDecimalSeparator(locale, numberingSystem),
|
|
26999
|
+
localizedFractionalSecond: localizeTimePart({
|
|
27000
|
+
value: fractionalSecond,
|
|
27001
|
+
part: "fractionalSecond",
|
|
27002
|
+
locale,
|
|
27003
|
+
numberingSystem,
|
|
27004
|
+
}),
|
|
26922
27005
|
localizedSecondSuffix: getLocalizedTimePart("secondSuffix", parts),
|
|
26923
27006
|
localizedMeridiem: getLocalizedTimePart("meridiem", parts),
|
|
26924
27007
|
};
|
|
@@ -26940,14 +27023,21 @@ function getTimeParts({ value, locale, numberingSystem }) {
|
|
|
26940
27023
|
}
|
|
26941
27024
|
function parseTimeString(value) {
|
|
26942
27025
|
if (isValidTime(value)) {
|
|
26943
|
-
const [hour, minute,
|
|
27026
|
+
const [hour, minute, secondDecimal] = value.split(":");
|
|
27027
|
+
let second = secondDecimal;
|
|
27028
|
+
let fractionalSecond = null;
|
|
27029
|
+
if (secondDecimal?.includes(".")) {
|
|
27030
|
+
[second, fractionalSecond] = secondDecimal.split(".");
|
|
27031
|
+
}
|
|
26944
27032
|
return {
|
|
27033
|
+
fractionalSecond,
|
|
26945
27034
|
hour,
|
|
26946
27035
|
minute,
|
|
26947
27036
|
second,
|
|
26948
27037
|
};
|
|
26949
27038
|
}
|
|
26950
27039
|
return {
|
|
27040
|
+
fractionalSecond: null,
|
|
26951
27041
|
hour: null,
|
|
26952
27042
|
minute: null,
|
|
26953
27043
|
second: null,
|
|
@@ -26957,10 +27047,13 @@ function toISOTimeString(value, includeSeconds = true) {
|
|
|
26957
27047
|
if (!isValidTime(value)) {
|
|
26958
27048
|
return "";
|
|
26959
27049
|
}
|
|
26960
|
-
const { hour, minute, second } = parseTimeString(value);
|
|
27050
|
+
const { hour, minute, second, fractionalSecond } = parseTimeString(value);
|
|
26961
27051
|
let isoTimeString = `${formatTimePart(parseInt(hour))}:${formatTimePart(parseInt(minute))}`;
|
|
26962
27052
|
if (includeSeconds) {
|
|
26963
27053
|
isoTimeString += `:${formatTimePart(parseInt((includeSeconds && second) || "0"))}`;
|
|
27054
|
+
if (fractionalSecond) {
|
|
27055
|
+
isoTimeString += `.${fractionalSecond}`;
|
|
27056
|
+
}
|
|
26964
27057
|
}
|
|
26965
27058
|
return isoTimeString;
|
|
26966
27059
|
}
|
|
@@ -28133,7 +28226,7 @@ var updateLocale = (function (option, Dayjs, dayjs) {
|
|
|
28133
28226
|
const inputTimePickerCss = "/*!@:host([disabled])*/[disabled].sc-calcite-input-time-picker-h{cursor:default;-webkit-user-select:none;user-select:none;opacity:var(--calcite-ui-opacity-disabled)}/*!@:host([disabled]) *,\n:host([disabled]) ::slotted(*)*/[disabled].sc-calcite-input-time-picker-h *.sc-calcite-input-time-picker,.sc-calcite-input-time-picker-h[disabled] .sc-calcite-input-time-picker-s>*{pointer-events:none}/*!@:host*/.sc-calcite-input-time-picker-h{display:inline-block;-webkit-user-select:none;user-select:none}/*!@:host([disabled]) ::slotted([calcite-hydrated][disabled]),\n:host([disabled]) [calcite-hydrated][disabled]*/.sc-calcite-input-time-picker-h[disabled] .sc-calcite-input-time-picker-s>[calcite-hydrated][disabled],[disabled].sc-calcite-input-time-picker-h [calcite-hydrated][disabled].sc-calcite-input-time-picker{opacity:1}/*!@::slotted(input[slot=hidden-form-input])*/.sc-calcite-input-time-picker-s>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])*/[scale=s].sc-calcite-input-time-picker-h{--calcite-toggle-spacing:0.5rem}/*!@:host([scale=m])*/[scale=m].sc-calcite-input-time-picker-h{--calcite-toggle-spacing:0.75rem}/*!@:host([scale=l])*/[scale=l].sc-calcite-input-time-picker-h{--calcite-toggle-spacing:1rem}/*!@.input-wrapper*/.input-wrapper.sc-calcite-input-time-picker{position:relative}/*!@.toggle-icon*/.toggle-icon.sc-calcite-input-time-picker{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])*/[hidden].sc-calcite-input-time-picker-h{display:none}/*!@[hidden]*/[hidden].sc-calcite-input-time-picker{display:none}";
|
|
28134
28227
|
|
|
28135
28228
|
// some bundlers (e.g., Webpack) need dynamic import paths to be static
|
|
28136
|
-
const
|
|
28229
|
+
const supportedDayjsLocaleToLocaleConfigImport = new Map([
|
|
28137
28230
|
["ar", () => Promise.resolve().then(function () { return ar; })],
|
|
28138
28231
|
["bg", () => Promise.resolve().then(function () { return bg; })],
|
|
28139
28232
|
["bs", () => Promise.resolve().then(function () { return bs; })],
|
|
@@ -28219,6 +28312,7 @@ class InputTimePicker {
|
|
|
28219
28312
|
locale: this.effectiveLocale,
|
|
28220
28313
|
numberingSystem: this.numberingSystem,
|
|
28221
28314
|
includeSeconds: this.shouldIncludeSeconds(),
|
|
28315
|
+
fractionalSecondDigits: decimalPlaces(this.step),
|
|
28222
28316
|
});
|
|
28223
28317
|
if (localizedTimeString !== inputValue) {
|
|
28224
28318
|
this.setInputValue(localizedTimeString);
|
|
@@ -28260,6 +28354,7 @@ class InputTimePicker {
|
|
|
28260
28354
|
locale: this.effectiveLocale,
|
|
28261
28355
|
numberingSystem: this.numberingSystem,
|
|
28262
28356
|
includeSeconds,
|
|
28357
|
+
fractionalSecondDigits: decimalPlaces(this.step),
|
|
28263
28358
|
}));
|
|
28264
28359
|
};
|
|
28265
28360
|
this.popoverCloseHandler = () => {
|
|
@@ -28294,15 +28389,18 @@ class InputTimePicker {
|
|
|
28294
28389
|
return;
|
|
28295
28390
|
}
|
|
28296
28391
|
const newValue = this.delocalizeTimeString(this.calciteInputEl.value);
|
|
28297
|
-
|
|
28298
|
-
|
|
28299
|
-
|
|
28300
|
-
|
|
28301
|
-
|
|
28302
|
-
|
|
28303
|
-
|
|
28304
|
-
|
|
28305
|
-
|
|
28392
|
+
if (isValidTime(newValue)) {
|
|
28393
|
+
this.setValue(newValue);
|
|
28394
|
+
const localizedTimeString = localizeTimeString({
|
|
28395
|
+
value: this.value,
|
|
28396
|
+
locale: this.effectiveLocale,
|
|
28397
|
+
numberingSystem: this.numberingSystem,
|
|
28398
|
+
includeSeconds: this.shouldIncludeSeconds(),
|
|
28399
|
+
fractionalSecondDigits: decimalPlaces(this.step),
|
|
28400
|
+
});
|
|
28401
|
+
if (newValue && this.calciteInputEl.value !== localizedTimeString) {
|
|
28402
|
+
this.setInputValue(localizedTimeString);
|
|
28403
|
+
}
|
|
28306
28404
|
}
|
|
28307
28405
|
}
|
|
28308
28406
|
else if (key === "ArrowDown") {
|
|
@@ -28361,6 +28459,7 @@ class InputTimePicker {
|
|
|
28361
28459
|
locale: this.effectiveLocale,
|
|
28362
28460
|
numberingSystem: this.numberingSystem,
|
|
28363
28461
|
includeSeconds: this.shouldIncludeSeconds(),
|
|
28462
|
+
fractionalSecondDigits: decimalPlaces(this.step),
|
|
28364
28463
|
}));
|
|
28365
28464
|
}
|
|
28366
28465
|
};
|
|
@@ -28379,6 +28478,7 @@ class InputTimePicker {
|
|
|
28379
28478
|
includeSeconds,
|
|
28380
28479
|
locale: this.effectiveLocale,
|
|
28381
28480
|
numberingSystem: this.numberingSystem,
|
|
28481
|
+
fractionalSecondDigits: decimalPlaces(this.step),
|
|
28382
28482
|
})
|
|
28383
28483
|
: "");
|
|
28384
28484
|
};
|
|
@@ -28435,6 +28535,7 @@ class InputTimePicker {
|
|
|
28435
28535
|
locale: this.effectiveLocale,
|
|
28436
28536
|
numberingSystem,
|
|
28437
28537
|
includeSeconds: this.shouldIncludeSeconds(),
|
|
28538
|
+
fractionalSecondDigits: decimalPlaces(this.step),
|
|
28438
28539
|
}));
|
|
28439
28540
|
}
|
|
28440
28541
|
stepWatcher(newStep, oldStep) {
|
|
@@ -28456,6 +28557,7 @@ class InputTimePicker {
|
|
|
28456
28557
|
locale,
|
|
28457
28558
|
numberingSystem: this.numberingSystem,
|
|
28458
28559
|
includeSeconds: this.shouldIncludeSeconds(),
|
|
28560
|
+
fractionalSecondDigits: decimalPlaces(this.step),
|
|
28459
28561
|
}));
|
|
28460
28562
|
}
|
|
28461
28563
|
// --------------------------------------------------------------------------
|
|
@@ -28484,26 +28586,114 @@ class InputTimePicker {
|
|
|
28484
28586
|
delocalizeTimeString(value) {
|
|
28485
28587
|
// we need to set the corresponding locale before parsing, otherwise it defaults to English (possible dayjs bug)
|
|
28486
28588
|
dayjs.locale(this.effectiveLocale.toLowerCase());
|
|
28487
|
-
const
|
|
28589
|
+
const nonFractionalSecondParts = this.delocalizeTimeStringToParts(value);
|
|
28590
|
+
let delocalizedTimeString;
|
|
28591
|
+
if (this.shouldIncludeFractionalSeconds()) {
|
|
28592
|
+
const stepPrecision = decimalPlaces(this.step);
|
|
28593
|
+
const centisecondParts = this.delocalizeTimeStringToParts(value, "S");
|
|
28594
|
+
if (stepPrecision === 1) {
|
|
28595
|
+
delocalizedTimeString =
|
|
28596
|
+
centisecondParts.millisecond !== 0
|
|
28597
|
+
? this.getTimeStringFromParts(centisecondParts)
|
|
28598
|
+
: this.getTimeStringFromParts(nonFractionalSecondParts);
|
|
28599
|
+
}
|
|
28600
|
+
else {
|
|
28601
|
+
const decisecondParts = this.delocalizeTimeStringToParts(value, "SS");
|
|
28602
|
+
if (stepPrecision === 2) {
|
|
28603
|
+
if (decisecondParts.millisecond !== 0) {
|
|
28604
|
+
delocalizedTimeString = this.getTimeStringFromParts(decisecondParts);
|
|
28605
|
+
}
|
|
28606
|
+
else if (centisecondParts.millisecond !== 0) {
|
|
28607
|
+
delocalizedTimeString = this.getTimeStringFromParts(centisecondParts);
|
|
28608
|
+
}
|
|
28609
|
+
else {
|
|
28610
|
+
delocalizedTimeString = this.getTimeStringFromParts(nonFractionalSecondParts);
|
|
28611
|
+
}
|
|
28612
|
+
}
|
|
28613
|
+
else if (stepPrecision >= 3) {
|
|
28614
|
+
const millisecondParts = this.delocalizeTimeStringToParts(value, "SSS");
|
|
28615
|
+
if (millisecondParts.millisecond !== 0) {
|
|
28616
|
+
delocalizedTimeString = this.getTimeStringFromParts(millisecondParts);
|
|
28617
|
+
}
|
|
28618
|
+
else if (decisecondParts.millisecond !== 0) {
|
|
28619
|
+
delocalizedTimeString = this.getTimeStringFromParts(decisecondParts);
|
|
28620
|
+
}
|
|
28621
|
+
else if (centisecondParts.millisecond !== 0) {
|
|
28622
|
+
delocalizedTimeString = this.getTimeStringFromParts(centisecondParts);
|
|
28623
|
+
}
|
|
28624
|
+
else {
|
|
28625
|
+
delocalizedTimeString = this.getTimeStringFromParts(nonFractionalSecondParts);
|
|
28626
|
+
}
|
|
28627
|
+
}
|
|
28628
|
+
}
|
|
28629
|
+
}
|
|
28630
|
+
else {
|
|
28631
|
+
delocalizedTimeString = this.getTimeStringFromParts(nonFractionalSecondParts);
|
|
28632
|
+
}
|
|
28633
|
+
return delocalizedTimeString;
|
|
28634
|
+
}
|
|
28635
|
+
delocalizeTimeStringToParts(localizedTimeString, fractionalSecondFormatToken) {
|
|
28636
|
+
const ltsFormatString = this.localeConfig?.formats?.LTS;
|
|
28637
|
+
const fractionalSecondTokenMatch = ltsFormatString.match(/ss\.*(S+)/g);
|
|
28638
|
+
if (fractionalSecondFormatToken && this.shouldIncludeFractionalSeconds()) {
|
|
28639
|
+
const secondFormatToken = `ss.${fractionalSecondFormatToken}`;
|
|
28640
|
+
this.localeConfig.formats.LTS = fractionalSecondTokenMatch
|
|
28641
|
+
? ltsFormatString.replace(fractionalSecondTokenMatch[0], secondFormatToken)
|
|
28642
|
+
: ltsFormatString.replace("ss", secondFormatToken);
|
|
28643
|
+
}
|
|
28644
|
+
else if (fractionalSecondTokenMatch) {
|
|
28645
|
+
this.localeConfig.formats.LTS = ltsFormatString.replace(fractionalSecondTokenMatch[0], "ss");
|
|
28646
|
+
}
|
|
28647
|
+
dayjs.updateLocale(this.getSupportedDayjsLocale(getSupportedLocale(this.effectiveLocale)), this.localeConfig);
|
|
28648
|
+
const dayjsParseResult = dayjs(localizedTimeString, ["LTS", "LT"]);
|
|
28488
28649
|
if (dayjsParseResult.isValid()) {
|
|
28489
|
-
|
|
28490
|
-
|
|
28491
|
-
|
|
28650
|
+
return {
|
|
28651
|
+
hour: dayjsParseResult.get("hour"),
|
|
28652
|
+
minute: dayjsParseResult.get("minute"),
|
|
28653
|
+
second: dayjsParseResult.get("second"),
|
|
28654
|
+
millisecond: dayjsParseResult.get("millisecond"),
|
|
28655
|
+
};
|
|
28656
|
+
}
|
|
28657
|
+
return {
|
|
28658
|
+
hour: null,
|
|
28659
|
+
minute: null,
|
|
28660
|
+
second: null,
|
|
28661
|
+
millisecond: null,
|
|
28662
|
+
};
|
|
28663
|
+
}
|
|
28664
|
+
getTimeStringFromParts(parts) {
|
|
28665
|
+
let timeString = "";
|
|
28666
|
+
if (!parts) {
|
|
28667
|
+
return timeString;
|
|
28668
|
+
}
|
|
28669
|
+
if (parts.hour !== null && parts.minute !== null) {
|
|
28670
|
+
timeString = `${formatTimePart(parts.hour)}:${formatTimePart(parts.minute)}`;
|
|
28671
|
+
if (this.shouldIncludeSeconds() && parts.second !== null) {
|
|
28672
|
+
timeString += `:${formatTimePart(parts.second)}`;
|
|
28673
|
+
if (this.shouldIncludeFractionalSeconds() && parts.millisecond !== null) {
|
|
28674
|
+
const second = (parts.millisecond * 0.001).toFixed(decimalPlaces(this.step));
|
|
28675
|
+
timeString += `.${second.toString().replace("0.", "")}`;
|
|
28676
|
+
}
|
|
28492
28677
|
}
|
|
28493
|
-
return formatTimeString(unformattedTimeString) || "";
|
|
28494
28678
|
}
|
|
28495
|
-
return
|
|
28679
|
+
return timeString;
|
|
28496
28680
|
}
|
|
28497
|
-
|
|
28498
|
-
|
|
28499
|
-
if (
|
|
28500
|
-
|
|
28681
|
+
getSupportedDayjsLocale(locale) {
|
|
28682
|
+
const dayjsLocale = locale.toLowerCase();
|
|
28683
|
+
if (dayjsLocale === "no") {
|
|
28684
|
+
return "nb";
|
|
28501
28685
|
}
|
|
28502
|
-
if (
|
|
28503
|
-
|
|
28686
|
+
if (dayjsLocale === "pt-pt") {
|
|
28687
|
+
return "pt";
|
|
28504
28688
|
}
|
|
28505
|
-
|
|
28506
|
-
|
|
28689
|
+
return dayjsLocale;
|
|
28690
|
+
}
|
|
28691
|
+
async loadDateTimeLocaleData() {
|
|
28692
|
+
let supportedLocale = getSupportedLocale(this.effectiveLocale).toLowerCase();
|
|
28693
|
+
supportedLocale = this.getSupportedDayjsLocale(supportedLocale);
|
|
28694
|
+
const { default: localeConfig } = await supportedDayjsLocaleToLocaleConfigImport.get(supportedLocale)();
|
|
28695
|
+
this.localeConfig = localeConfig;
|
|
28696
|
+
dayjs.locale(this.localeConfig, null, true);
|
|
28507
28697
|
dayjs.updateLocale(supportedLocale, this.getExtendedLocaleConfig(supportedLocale));
|
|
28508
28698
|
}
|
|
28509
28699
|
getExtendedLocaleConfig(locale) {
|
|
@@ -28577,6 +28767,9 @@ class InputTimePicker {
|
|
|
28577
28767
|
shouldIncludeSeconds() {
|
|
28578
28768
|
return this.step < 60;
|
|
28579
28769
|
}
|
|
28770
|
+
shouldIncludeFractionalSeconds() {
|
|
28771
|
+
return decimalPlaces(this.step) > 0;
|
|
28772
|
+
}
|
|
28580
28773
|
//--------------------------------------------------------------------------
|
|
28581
28774
|
//
|
|
28582
28775
|
// Lifecycle
|
|
@@ -28607,6 +28800,7 @@ class InputTimePicker {
|
|
|
28607
28800
|
locale: this.effectiveLocale,
|
|
28608
28801
|
numberingSystem: this.numberingSystem,
|
|
28609
28802
|
includeSeconds: this.shouldIncludeSeconds(),
|
|
28803
|
+
fractionalSecondDigits: decimalPlaces(this.step),
|
|
28610
28804
|
}));
|
|
28611
28805
|
}
|
|
28612
28806
|
}
|
|
@@ -37676,7 +37870,7 @@ const shellCss = "/*!@:host*/.sc-calcite-shell-h{box-sizing:border-box;backgroun
|
|
|
37676
37870
|
* @slot center-row - [Deprecated] Use the `"panel-bottom"` slot instead. A slot for adding the bottom `calcite-shell-center-row`.
|
|
37677
37871
|
* @slot modals - A slot for adding `calcite-modal` components. When placed in this slot, the modal position will be constrained to the extent of the shell.
|
|
37678
37872
|
* @slot alerts - A slot for adding `calcite-alert` components. When placed in this slot, the alert position will be constrained to the extent of the shell.
|
|
37679
|
-
* @slot sheets - A slot for adding `calcite-sheet` components. When placed in this slot, the
|
|
37873
|
+
* @slot sheets - A slot for adding `calcite-sheet` components. When placed in this slot, the sheet position will be constrained to the extent of the shell.
|
|
37680
37874
|
*/
|
|
37681
37875
|
class Shell {
|
|
37682
37876
|
constructor(hostRef) {
|
|
@@ -41474,6 +41668,8 @@ const CSS$6 = {
|
|
|
41474
41668
|
button: "button",
|
|
41475
41669
|
buttonBottomLeft: "button--bottom-left",
|
|
41476
41670
|
buttonBottomRight: "button--bottom-right",
|
|
41671
|
+
buttonFractionalSecondDown: "button--fractionalSecond-down",
|
|
41672
|
+
buttonFractionalSecondUp: "button--fractionalSecond-up",
|
|
41477
41673
|
buttonHourDown: "button--hour-down",
|
|
41478
41674
|
buttonHourUp: "button--hour-up",
|
|
41479
41675
|
buttonMeridiemDown: "button--meridiem-down",
|
|
@@ -41486,6 +41682,7 @@ const CSS$6 = {
|
|
|
41486
41682
|
buttonTopRight: "button--top-right",
|
|
41487
41683
|
column: "column",
|
|
41488
41684
|
delimiter: "delimiter",
|
|
41685
|
+
fractionalSecond: "fractionalSecond",
|
|
41489
41686
|
hour: "hour",
|
|
41490
41687
|
input: "input",
|
|
41491
41688
|
meridiem: "meridiem",
|
|
@@ -41511,6 +41708,9 @@ class TimePicker {
|
|
|
41511
41708
|
this.calciteInternalTimePickerBlur = createEvent(this, "calciteInternalTimePickerBlur", 6);
|
|
41512
41709
|
this.calciteInternalTimePickerChange = createEvent(this, "calciteInternalTimePickerChange", 6);
|
|
41513
41710
|
this.calciteInternalTimePickerFocus = createEvent(this, "calciteInternalTimePickerFocus", 6);
|
|
41711
|
+
this.decrementFractionalSecond = () => {
|
|
41712
|
+
this.nudgeFractionalSecond("down");
|
|
41713
|
+
};
|
|
41514
41714
|
this.decrementHour = () => {
|
|
41515
41715
|
const newHour = !this.hour ? 0 : this.hour === "00" ? 23 : parseInt(this.hour) - 1;
|
|
41516
41716
|
this.setValuePart("hour", newHour);
|
|
@@ -41539,9 +41739,39 @@ class TimePicker {
|
|
|
41539
41739
|
this.focusHandler = (event) => {
|
|
41540
41740
|
this.activeEl = event.currentTarget;
|
|
41541
41741
|
};
|
|
41542
|
-
this.
|
|
41543
|
-
|
|
41544
|
-
|
|
41742
|
+
this.fractionalSecondKeyDownHandler = (event) => {
|
|
41743
|
+
const { key } = event;
|
|
41744
|
+
if (numberKeys.includes(key)) {
|
|
41745
|
+
const stepPrecision = decimalPlaces(this.step);
|
|
41746
|
+
const fractionalSecondAsInteger = parseInt(this.fractionalSecond);
|
|
41747
|
+
const fractionalSecondAsIntegerLength = fractionalSecondAsInteger.toString().length;
|
|
41748
|
+
let newFractionalSecondAsIntegerString;
|
|
41749
|
+
if (fractionalSecondAsIntegerLength >= stepPrecision) {
|
|
41750
|
+
newFractionalSecondAsIntegerString = key.padStart(stepPrecision, "0");
|
|
41751
|
+
}
|
|
41752
|
+
else if (fractionalSecondAsIntegerLength < stepPrecision) {
|
|
41753
|
+
newFractionalSecondAsIntegerString = `${fractionalSecondAsInteger}${key}`.padStart(stepPrecision, "0");
|
|
41754
|
+
}
|
|
41755
|
+
this.setValuePart("fractionalSecond", parseFloat(`0.${newFractionalSecondAsIntegerString}`));
|
|
41756
|
+
}
|
|
41757
|
+
else {
|
|
41758
|
+
switch (key) {
|
|
41759
|
+
case "Backspace":
|
|
41760
|
+
case "Delete":
|
|
41761
|
+
this.setValuePart("fractionalSecond", null);
|
|
41762
|
+
break;
|
|
41763
|
+
case "ArrowDown":
|
|
41764
|
+
event.preventDefault();
|
|
41765
|
+
this.nudgeFractionalSecond("down");
|
|
41766
|
+
break;
|
|
41767
|
+
case "ArrowUp":
|
|
41768
|
+
event.preventDefault();
|
|
41769
|
+
this.nudgeFractionalSecond("up");
|
|
41770
|
+
break;
|
|
41771
|
+
case " ":
|
|
41772
|
+
event.preventDefault();
|
|
41773
|
+
break;
|
|
41774
|
+
}
|
|
41545
41775
|
}
|
|
41546
41776
|
};
|
|
41547
41777
|
this.hourKeyDownHandler = (event) => {
|
|
@@ -41595,10 +41825,8 @@ class TimePicker {
|
|
|
41595
41825
|
}
|
|
41596
41826
|
}
|
|
41597
41827
|
};
|
|
41598
|
-
this.
|
|
41599
|
-
|
|
41600
|
-
this.incrementHour();
|
|
41601
|
-
}
|
|
41828
|
+
this.incrementFractionalSecond = () => {
|
|
41829
|
+
this.nudgeFractionalSecond("up");
|
|
41602
41830
|
};
|
|
41603
41831
|
this.incrementMeridiem = () => {
|
|
41604
41832
|
const newMeridiem = this.meridiem === "AM" ? "PM" : "AM";
|
|
@@ -41626,11 +41854,6 @@ class TimePicker {
|
|
|
41626
41854
|
this.incrementSecond = () => {
|
|
41627
41855
|
this.incrementMinuteOrSecond("second");
|
|
41628
41856
|
};
|
|
41629
|
-
this.meridiemDownButtonKeyDownHandler = (event) => {
|
|
41630
|
-
if (this.buttonActivated(event)) {
|
|
41631
|
-
this.decrementMeridiem();
|
|
41632
|
-
}
|
|
41633
|
-
};
|
|
41634
41857
|
this.meridiemKeyDownHandler = (event) => {
|
|
41635
41858
|
switch (event.key) {
|
|
41636
41859
|
case "a":
|
|
@@ -41656,16 +41879,6 @@ class TimePicker {
|
|
|
41656
41879
|
break;
|
|
41657
41880
|
}
|
|
41658
41881
|
};
|
|
41659
|
-
this.meridiemUpButtonKeyDownHandler = (event) => {
|
|
41660
|
-
if (this.buttonActivated(event)) {
|
|
41661
|
-
this.incrementMeridiem();
|
|
41662
|
-
}
|
|
41663
|
-
};
|
|
41664
|
-
this.minuteDownButtonKeyDownHandler = (event) => {
|
|
41665
|
-
if (this.buttonActivated(event)) {
|
|
41666
|
-
this.decrementMinute();
|
|
41667
|
-
}
|
|
41668
|
-
};
|
|
41669
41882
|
this.minuteKeyDownHandler = (event) => {
|
|
41670
41883
|
const { key } = event;
|
|
41671
41884
|
if (numberKeys.includes(key)) {
|
|
@@ -41703,16 +41916,51 @@ class TimePicker {
|
|
|
41703
41916
|
}
|
|
41704
41917
|
}
|
|
41705
41918
|
};
|
|
41706
|
-
this.
|
|
41707
|
-
|
|
41708
|
-
|
|
41709
|
-
|
|
41710
|
-
|
|
41711
|
-
|
|
41712
|
-
|
|
41713
|
-
|
|
41714
|
-
|
|
41715
|
-
|
|
41919
|
+
this.nudgeFractionalSecond = (direction) => {
|
|
41920
|
+
const stepDecimal = getDecimals(this.step);
|
|
41921
|
+
const stepPrecision = decimalPlaces(this.step);
|
|
41922
|
+
const fractionalSecondAsInteger = parseInt(this.fractionalSecond);
|
|
41923
|
+
const fractionalSecondAsFloat = parseFloat(`0.${this.fractionalSecond}`);
|
|
41924
|
+
let nudgedValue;
|
|
41925
|
+
let nudgedValueRounded;
|
|
41926
|
+
let nudgedValueRoundedDecimals;
|
|
41927
|
+
let newFractionalSecond;
|
|
41928
|
+
if (direction === "up") {
|
|
41929
|
+
nudgedValue = isNaN(fractionalSecondAsInteger) ? 0 : fractionalSecondAsFloat + stepDecimal;
|
|
41930
|
+
nudgedValueRounded = parseFloat(nudgedValue.toFixed(stepPrecision));
|
|
41931
|
+
nudgedValueRoundedDecimals = getDecimals(nudgedValueRounded);
|
|
41932
|
+
newFractionalSecond =
|
|
41933
|
+
nudgedValueRounded < 1 && decimalPlaces(nudgedValueRoundedDecimals) > 0
|
|
41934
|
+
? formatTimePart(nudgedValueRoundedDecimals, stepPrecision)
|
|
41935
|
+
: "".padStart(stepPrecision, "0");
|
|
41936
|
+
}
|
|
41937
|
+
if (direction === "down") {
|
|
41938
|
+
nudgedValue =
|
|
41939
|
+
isNaN(fractionalSecondAsInteger) || fractionalSecondAsInteger === 0
|
|
41940
|
+
? 1 - stepDecimal
|
|
41941
|
+
: fractionalSecondAsFloat - stepDecimal;
|
|
41942
|
+
nudgedValueRounded = parseFloat(nudgedValue.toFixed(stepPrecision));
|
|
41943
|
+
nudgedValueRoundedDecimals = getDecimals(nudgedValueRounded);
|
|
41944
|
+
newFractionalSecond =
|
|
41945
|
+
nudgedValueRounded < 1 &&
|
|
41946
|
+
decimalPlaces(nudgedValueRoundedDecimals) > 0 &&
|
|
41947
|
+
Math.sign(nudgedValueRoundedDecimals) === 1
|
|
41948
|
+
? formatTimePart(nudgedValueRoundedDecimals, stepPrecision)
|
|
41949
|
+
: "".padStart(stepPrecision, "0");
|
|
41950
|
+
}
|
|
41951
|
+
this.setValuePart("fractionalSecond", newFractionalSecond);
|
|
41952
|
+
};
|
|
41953
|
+
this.sanitizeValue = (value) => {
|
|
41954
|
+
const { hour, minute, second, fractionalSecond } = parseTimeString(value);
|
|
41955
|
+
if (fractionalSecond) {
|
|
41956
|
+
const sanitizedFractionalSecond = this.sanitizeFractionalSecond(fractionalSecond);
|
|
41957
|
+
return `${hour}:${minute}:${second}.${sanitizedFractionalSecond}`;
|
|
41958
|
+
}
|
|
41959
|
+
return isValidTime(value) && value;
|
|
41960
|
+
};
|
|
41961
|
+
this.sanitizeFractionalSecond = (fractionalSecond) => fractionalSecond && decimalPlaces(this.step) !== fractionalSecond.length
|
|
41962
|
+
? parseFloat(`0.${fractionalSecond}`).toFixed(decimalPlaces(this.step)).replace("0.", "")
|
|
41963
|
+
: fractionalSecond;
|
|
41716
41964
|
this.secondKeyDownHandler = (event) => {
|
|
41717
41965
|
const { key } = event;
|
|
41718
41966
|
if (numberKeys.includes(key)) {
|
|
@@ -41750,29 +41998,28 @@ class TimePicker {
|
|
|
41750
41998
|
}
|
|
41751
41999
|
}
|
|
41752
42000
|
};
|
|
41753
|
-
this.secondUpButtonKeyDownHandler = (event) => {
|
|
41754
|
-
if (this.buttonActivated(event)) {
|
|
41755
|
-
this.incrementSecond();
|
|
41756
|
-
}
|
|
41757
|
-
};
|
|
41758
42001
|
this.setHourEl = (el) => (this.hourEl = el);
|
|
41759
42002
|
this.setMeridiemEl = (el) => (this.meridiemEl = el);
|
|
41760
42003
|
this.setMinuteEl = (el) => (this.minuteEl = el);
|
|
41761
42004
|
this.setSecondEl = (el) => (this.secondEl = el);
|
|
41762
|
-
this.
|
|
42005
|
+
this.setFractionalSecondEl = (el) => (this.fractionalSecondEl = el);
|
|
42006
|
+
this.setValue = (value) => {
|
|
41763
42007
|
if (isValidTime(value)) {
|
|
41764
|
-
const { hour, minute, second } = parseTimeString(value);
|
|
42008
|
+
const { hour, minute, second, fractionalSecond } = parseTimeString(value);
|
|
41765
42009
|
const { effectiveLocale: locale, numberingSystem } = this;
|
|
41766
|
-
const { localizedHour, localizedHourSuffix, localizedMinute, localizedMinuteSuffix, localizedSecond, localizedSecondSuffix, localizedMeridiem, } = localizeTimeStringToParts({ value, locale, numberingSystem });
|
|
42010
|
+
const { localizedHour, localizedHourSuffix, localizedMinute, localizedMinuteSuffix, localizedSecond, localizedDecimalSeparator, localizedFractionalSecond, localizedSecondSuffix, localizedMeridiem, } = localizeTimeStringToParts({ value, locale, numberingSystem });
|
|
42011
|
+
this.hour = hour;
|
|
42012
|
+
this.minute = minute;
|
|
42013
|
+
this.second = second;
|
|
42014
|
+
this.fractionalSecond = this.sanitizeFractionalSecond(fractionalSecond);
|
|
41767
42015
|
this.localizedHour = localizedHour;
|
|
41768
42016
|
this.localizedHourSuffix = localizedHourSuffix;
|
|
41769
42017
|
this.localizedMinute = localizedMinute;
|
|
41770
42018
|
this.localizedMinuteSuffix = localizedMinuteSuffix;
|
|
41771
42019
|
this.localizedSecond = localizedSecond;
|
|
42020
|
+
this.localizedDecimalSeparator = localizedDecimalSeparator;
|
|
42021
|
+
this.localizedFractionalSecond = localizedFractionalSecond;
|
|
41772
42022
|
this.localizedSecondSuffix = localizedSecondSuffix;
|
|
41773
|
-
this.hour = hour;
|
|
41774
|
-
this.minute = minute;
|
|
41775
|
-
this.second = second;
|
|
41776
42023
|
if (localizedMeridiem) {
|
|
41777
42024
|
this.localizedMeridiem = localizedMeridiem;
|
|
41778
42025
|
this.meridiem = getMeridiem(this.hour);
|
|
@@ -41782,23 +42029,23 @@ class TimePicker {
|
|
|
41782
42029
|
}
|
|
41783
42030
|
else {
|
|
41784
42031
|
this.hour = null;
|
|
42032
|
+
this.fractionalSecond = null;
|
|
41785
42033
|
this.localizedHour = null;
|
|
41786
|
-
this.localizedHourSuffix =
|
|
42034
|
+
this.localizedHourSuffix = getLocalizedTimePartSuffix("hour", this.effectiveLocale, this.numberingSystem);
|
|
41787
42035
|
this.localizedMeridiem = null;
|
|
41788
42036
|
this.localizedMinute = null;
|
|
41789
|
-
this.localizedMinuteSuffix =
|
|
42037
|
+
this.localizedMinuteSuffix = getLocalizedTimePartSuffix("minute", this.effectiveLocale, this.numberingSystem);
|
|
41790
42038
|
this.localizedSecond = null;
|
|
41791
|
-
this.
|
|
42039
|
+
this.localizedDecimalSeparator = getLocalizedDecimalSeparator(this.effectiveLocale, this.numberingSystem);
|
|
42040
|
+
this.localizedFractionalSecond = null;
|
|
42041
|
+
this.localizedSecondSuffix = getLocalizedTimePartSuffix("second", this.effectiveLocale, this.numberingSystem);
|
|
41792
42042
|
this.meridiem = null;
|
|
41793
42043
|
this.minute = null;
|
|
41794
42044
|
this.second = null;
|
|
41795
42045
|
this.value = null;
|
|
41796
42046
|
}
|
|
41797
|
-
if (emit) {
|
|
41798
|
-
this.calciteInternalTimePickerChange.emit();
|
|
41799
|
-
}
|
|
41800
42047
|
};
|
|
41801
|
-
this.setValuePart = (key, value
|
|
42048
|
+
this.setValuePart = (key, value) => {
|
|
41802
42049
|
const { effectiveLocale: locale, numberingSystem } = this;
|
|
41803
42050
|
if (key === "meridiem") {
|
|
41804
42051
|
this.meridiem = value;
|
|
@@ -41824,6 +42071,22 @@ class TimePicker {
|
|
|
41824
42071
|
});
|
|
41825
42072
|
}
|
|
41826
42073
|
}
|
|
42074
|
+
else if (key === "fractionalSecond") {
|
|
42075
|
+
const stepPrecision = decimalPlaces(this.step);
|
|
42076
|
+
if (typeof value === "number") {
|
|
42077
|
+
this.fractionalSecond =
|
|
42078
|
+
value === 0 ? "".padStart(stepPrecision, "0") : formatTimePart(value, stepPrecision);
|
|
42079
|
+
}
|
|
42080
|
+
else {
|
|
42081
|
+
this.fractionalSecond = value;
|
|
42082
|
+
}
|
|
42083
|
+
this.localizedFractionalSecond = localizeTimePart({
|
|
42084
|
+
value: this.fractionalSecond,
|
|
42085
|
+
part: "fractionalSecond",
|
|
42086
|
+
locale,
|
|
42087
|
+
numberingSystem,
|
|
42088
|
+
});
|
|
42089
|
+
}
|
|
41827
42090
|
else {
|
|
41828
42091
|
this[key] = typeof value === "number" ? formatTimePart(value) : value;
|
|
41829
42092
|
this[`localized${capitalize(key)}`] = localizeTimePart({
|
|
@@ -41833,16 +42096,24 @@ class TimePicker {
|
|
|
41833
42096
|
numberingSystem,
|
|
41834
42097
|
});
|
|
41835
42098
|
}
|
|
42099
|
+
let emit = false;
|
|
42100
|
+
let newValue;
|
|
41836
42101
|
if (this.hour && this.minute) {
|
|
41837
|
-
|
|
42102
|
+
newValue = `${this.hour}:${this.minute}`;
|
|
41838
42103
|
if (this.showSecond) {
|
|
41839
42104
|
newValue = `${newValue}:${this.second ?? "00"}`;
|
|
42105
|
+
if (this.showFractionalSecond && this.fractionalSecond) {
|
|
42106
|
+
newValue = `${newValue}.${this.fractionalSecond}`;
|
|
42107
|
+
}
|
|
41840
42108
|
}
|
|
41841
|
-
this.value = newValue;
|
|
41842
42109
|
}
|
|
41843
42110
|
else {
|
|
41844
|
-
|
|
42111
|
+
newValue = null;
|
|
41845
42112
|
}
|
|
42113
|
+
if (this.value !== newValue) {
|
|
42114
|
+
emit = true;
|
|
42115
|
+
}
|
|
42116
|
+
this.value = newValue;
|
|
41846
42117
|
this.localizedMeridiem = this.value
|
|
41847
42118
|
? localizeTimeStringToParts({ value: this.value, locale, numberingSystem })
|
|
41848
42119
|
?.localizedMeridiem || null
|
|
@@ -41858,11 +42129,14 @@ class TimePicker {
|
|
|
41858
42129
|
this.messages = undefined;
|
|
41859
42130
|
this.messageOverrides = undefined;
|
|
41860
42131
|
this.effectiveLocale = "";
|
|
42132
|
+
this.fractionalSecond = undefined;
|
|
41861
42133
|
this.hour = undefined;
|
|
41862
42134
|
this.hourCycle = undefined;
|
|
42135
|
+
this.localizedDecimalSeparator = ".";
|
|
41863
42136
|
this.localizedHour = undefined;
|
|
41864
42137
|
this.localizedHourSuffix = undefined;
|
|
41865
42138
|
this.localizedMeridiem = undefined;
|
|
42139
|
+
this.localizedFractionalSecond = undefined;
|
|
41866
42140
|
this.localizedMinute = undefined;
|
|
41867
42141
|
this.localizedMinuteSuffix = undefined;
|
|
41868
42142
|
this.localizedSecond = undefined;
|
|
@@ -41870,14 +42144,15 @@ class TimePicker {
|
|
|
41870
42144
|
this.meridiem = undefined;
|
|
41871
42145
|
this.minute = undefined;
|
|
41872
42146
|
this.second = undefined;
|
|
42147
|
+
this.showFractionalSecond = undefined;
|
|
41873
42148
|
this.showSecond = undefined;
|
|
41874
42149
|
this.defaultMessages = undefined;
|
|
41875
42150
|
}
|
|
41876
42151
|
stepChange() {
|
|
41877
|
-
this.
|
|
42152
|
+
this.toggleSecond();
|
|
41878
42153
|
}
|
|
41879
42154
|
valueWatcher(newValue) {
|
|
41880
|
-
this.setValue(newValue
|
|
42155
|
+
this.setValue(newValue);
|
|
41881
42156
|
}
|
|
41882
42157
|
onMessagesChange() {
|
|
41883
42158
|
/* wired up by t9n util */
|
|
@@ -41932,6 +42207,23 @@ class TimePicker {
|
|
|
41932
42207
|
this.focusPart("minute");
|
|
41933
42208
|
event.preventDefault();
|
|
41934
42209
|
break;
|
|
42210
|
+
case "ArrowRight":
|
|
42211
|
+
if (this.showFractionalSecond) {
|
|
42212
|
+
this.focusPart("fractionalSecond");
|
|
42213
|
+
}
|
|
42214
|
+
else if (this.hourCycle === "12") {
|
|
42215
|
+
this.focusPart("meridiem");
|
|
42216
|
+
event.preventDefault();
|
|
42217
|
+
}
|
|
42218
|
+
break;
|
|
42219
|
+
}
|
|
42220
|
+
break;
|
|
42221
|
+
case this.fractionalSecondEl:
|
|
42222
|
+
switch (key) {
|
|
42223
|
+
case "ArrowLeft":
|
|
42224
|
+
this.focusPart("second");
|
|
42225
|
+
event.preventDefault();
|
|
42226
|
+
break;
|
|
41935
42227
|
case "ArrowRight":
|
|
41936
42228
|
if (this.hourCycle === "12") {
|
|
41937
42229
|
this.focusPart("meridiem");
|
|
@@ -41943,7 +42235,10 @@ class TimePicker {
|
|
|
41943
42235
|
case this.meridiemEl:
|
|
41944
42236
|
switch (key) {
|
|
41945
42237
|
case "ArrowLeft":
|
|
41946
|
-
if (this.
|
|
42238
|
+
if (this.showFractionalSecond) {
|
|
42239
|
+
this.focusPart("fractionalSecond");
|
|
42240
|
+
}
|
|
42241
|
+
else if (this.step !== 60) {
|
|
41947
42242
|
this.focusPart("second");
|
|
41948
42243
|
event.preventDefault();
|
|
41949
42244
|
}
|
|
@@ -41973,19 +42268,13 @@ class TimePicker {
|
|
|
41973
42268
|
// Private Methods
|
|
41974
42269
|
//
|
|
41975
42270
|
// --------------------------------------------------------------------------
|
|
41976
|
-
updateShowSecond() {
|
|
41977
|
-
this.showSecond = this.step < 60;
|
|
41978
|
-
}
|
|
41979
42271
|
async focusPart(target) {
|
|
41980
42272
|
await componentFocusable(this);
|
|
41981
42273
|
this[`${target || "hour"}El`]?.focus();
|
|
41982
42274
|
}
|
|
41983
|
-
|
|
41984
|
-
|
|
41985
|
-
|
|
41986
|
-
event.preventDefault();
|
|
41987
|
-
}
|
|
41988
|
-
return isActivationKey(key);
|
|
42275
|
+
toggleSecond() {
|
|
42276
|
+
this.showSecond = this.step < 60;
|
|
42277
|
+
this.showFractionalSecond = decimalPlaces(this.step) > 0;
|
|
41989
42278
|
}
|
|
41990
42279
|
getMeridiemOrder(formatParts) {
|
|
41991
42280
|
const locale = this.effectiveLocale;
|
|
@@ -42001,7 +42290,8 @@ class TimePicker {
|
|
|
42001
42290
|
updateLocale() {
|
|
42002
42291
|
updateMessages(this);
|
|
42003
42292
|
this.hourCycle = getLocaleHourCycle(this.effectiveLocale, this.numberingSystem);
|
|
42004
|
-
this.
|
|
42293
|
+
this.localizedDecimalSeparator = getLocalizedDecimalSeparator(this.effectiveLocale, this.numberingSystem);
|
|
42294
|
+
this.setValue(this.sanitizeValue(this.value));
|
|
42005
42295
|
}
|
|
42006
42296
|
// --------------------------------------------------------------------------
|
|
42007
42297
|
//
|
|
@@ -42012,7 +42302,7 @@ class TimePicker {
|
|
|
42012
42302
|
connectLocalized(this);
|
|
42013
42303
|
this.updateLocale();
|
|
42014
42304
|
connectMessages(this);
|
|
42015
|
-
this.
|
|
42305
|
+
this.toggleSecond();
|
|
42016
42306
|
this.meridiemOrder = this.getMeridiemOrder(getTimeParts({
|
|
42017
42307
|
value: "0:00:00",
|
|
42018
42308
|
locale: this.effectiveLocale,
|
|
@@ -42040,6 +42330,7 @@ class TimePicker {
|
|
|
42040
42330
|
const iconScale = this.scale === "s" || this.scale === "m" ? "s" : "m";
|
|
42041
42331
|
const minuteIsNumber = isValidNumber(this.minute);
|
|
42042
42332
|
const secondIsNumber = isValidNumber(this.second);
|
|
42333
|
+
const fractionalSecondIsNumber = isValidNumber(this.fractionalSecond);
|
|
42043
42334
|
const showMeridiem = this.hourCycle === "12";
|
|
42044
42335
|
return (hAsync("div", { class: {
|
|
42045
42336
|
[CSS$6.timePicker]: true,
|
|
@@ -42050,7 +42341,7 @@ class TimePicker {
|
|
|
42050
42341
|
[CSS$6.button]: true,
|
|
42051
42342
|
[CSS$6.buttonHourUp]: true,
|
|
42052
42343
|
[CSS$6.buttonTopLeft]: true,
|
|
42053
|
-
}, onClick: this.incrementHour,
|
|
42344
|
+
}, onClick: this.incrementHour, role: "button" }, hAsync("calcite-icon", { icon: "chevron-up", scale: iconScale })), hAsync("span", { "aria-label": this.messages.hour, "aria-valuemax": "23", "aria-valuemin": "1", "aria-valuenow": (hourIsNumber && parseInt(this.hour)) || "0", "aria-valuetext": this.hour, class: {
|
|
42054
42345
|
[CSS$6.input]: true,
|
|
42055
42346
|
[CSS$6.hour]: true,
|
|
42056
42347
|
}, onFocus: this.focusHandler, onKeyDown: this.hourKeyDownHandler, role: "spinbutton", tabIndex: 0,
|
|
@@ -42059,10 +42350,10 @@ class TimePicker {
|
|
|
42059
42350
|
[CSS$6.button]: true,
|
|
42060
42351
|
[CSS$6.buttonHourDown]: true,
|
|
42061
42352
|
[CSS$6.buttonBottomLeft]: true,
|
|
42062
|
-
}, onClick: this.decrementHour,
|
|
42353
|
+
}, onClick: this.decrementHour, role: "button" }, hAsync("calcite-icon", { icon: "chevron-down", scale: iconScale }))), hAsync("span", { class: CSS$6.delimiter }, this.localizedHourSuffix), hAsync("div", { class: CSS$6.column, role: "group" }, hAsync("span", { "aria-label": this.messages.minuteUp, class: {
|
|
42063
42354
|
[CSS$6.button]: true,
|
|
42064
42355
|
[CSS$6.buttonMinuteUp]: true,
|
|
42065
|
-
}, onClick: this.incrementMinute,
|
|
42356
|
+
}, onClick: this.incrementMinute, role: "button" }, hAsync("calcite-icon", { icon: "chevron-up", scale: iconScale })), hAsync("span", { "aria-label": this.messages.minute, "aria-valuemax": "12", "aria-valuemin": "1", "aria-valuenow": (minuteIsNumber && parseInt(this.minute)) || "0", "aria-valuetext": this.minute, class: {
|
|
42066
42357
|
[CSS$6.input]: true,
|
|
42067
42358
|
[CSS$6.minute]: true,
|
|
42068
42359
|
}, onFocus: this.focusHandler, onKeyDown: this.minuteKeyDownHandler, role: "spinbutton", tabIndex: 0,
|
|
@@ -42070,10 +42361,10 @@ class TimePicker {
|
|
|
42070
42361
|
ref: this.setMinuteEl }, this.localizedMinute || "--"), hAsync("span", { "aria-label": this.messages.minuteDown, class: {
|
|
42071
42362
|
[CSS$6.button]: true,
|
|
42072
42363
|
[CSS$6.buttonMinuteDown]: true,
|
|
42073
|
-
}, onClick: this.decrementMinute,
|
|
42364
|
+
}, onClick: this.decrementMinute, role: "button" }, hAsync("calcite-icon", { icon: "chevron-down", scale: iconScale }))), this.showSecond && hAsync("span", { class: CSS$6.delimiter }, this.localizedMinuteSuffix), this.showSecond && (hAsync("div", { class: CSS$6.column, role: "group" }, hAsync("span", { "aria-label": this.messages.secondUp, class: {
|
|
42074
42365
|
[CSS$6.button]: true,
|
|
42075
42366
|
[CSS$6.buttonSecondUp]: true,
|
|
42076
|
-
}, onClick: this.incrementSecond,
|
|
42367
|
+
}, onClick: this.incrementSecond, role: "button" }, hAsync("calcite-icon", { icon: "chevron-up", scale: iconScale })), hAsync("span", { "aria-label": this.messages.second, "aria-valuemax": "59", "aria-valuemin": "0", "aria-valuenow": (secondIsNumber && parseInt(this.second)) || "0", "aria-valuetext": this.second, class: {
|
|
42077
42368
|
[CSS$6.input]: true,
|
|
42078
42369
|
[CSS$6.second]: true,
|
|
42079
42370
|
}, onFocus: this.focusHandler, onKeyDown: this.secondKeyDownHandler, role: "spinbutton", tabIndex: 0,
|
|
@@ -42081,14 +42372,25 @@ class TimePicker {
|
|
|
42081
42372
|
ref: this.setSecondEl }, this.localizedSecond || "--"), hAsync("span", { "aria-label": this.messages.secondDown, class: {
|
|
42082
42373
|
[CSS$6.button]: true,
|
|
42083
42374
|
[CSS$6.buttonSecondDown]: true,
|
|
42084
|
-
}, onClick: this.decrementSecond,
|
|
42375
|
+
}, onClick: this.decrementSecond, role: "button" }, hAsync("calcite-icon", { icon: "chevron-down", scale: iconScale })))), this.showFractionalSecond && (hAsync("span", { class: CSS$6.delimiter }, this.localizedDecimalSeparator)), this.showFractionalSecond && (hAsync("div", { class: CSS$6.column, role: "group" }, hAsync("span", { "aria-label": this.messages.fractionalSecondUp, class: {
|
|
42376
|
+
[CSS$6.button]: true,
|
|
42377
|
+
[CSS$6.buttonFractionalSecondUp]: true,
|
|
42378
|
+
}, onClick: this.incrementFractionalSecond, role: "button" }, hAsync("calcite-icon", { icon: "chevron-up", scale: iconScale })), hAsync("span", { "aria-label": this.messages.fractionalSecond, "aria-valuemax": "999", "aria-valuemin": "1", "aria-valuenow": (fractionalSecondIsNumber && parseInt(this.fractionalSecond)) || "0", "aria-valuetext": this.localizedFractionalSecond, class: {
|
|
42379
|
+
[CSS$6.input]: true,
|
|
42380
|
+
[CSS$6.fractionalSecond]: true,
|
|
42381
|
+
}, onFocus: this.focusHandler, onKeyDown: this.fractionalSecondKeyDownHandler, role: "spinbutton", tabIndex: 0,
|
|
42382
|
+
// 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)
|
|
42383
|
+
ref: this.setFractionalSecondEl }, this.localizedFractionalSecond || "--"), hAsync("span", { "aria-label": this.messages.fractionalSecondDown, class: {
|
|
42384
|
+
[CSS$6.button]: true,
|
|
42385
|
+
[CSS$6.buttonFractionalSecondDown]: true,
|
|
42386
|
+
}, onClick: this.decrementFractionalSecond, role: "button" }, hAsync("calcite-icon", { icon: "chevron-down", scale: iconScale })))), this.localizedSecondSuffix && (hAsync("span", { class: CSS$6.delimiter }, this.localizedSecondSuffix)), showMeridiem && (hAsync("div", { class: {
|
|
42085
42387
|
[CSS$6.column]: true,
|
|
42086
42388
|
[CSS$6.meridiemStart]: this.meridiemOrder === 0,
|
|
42087
42389
|
}, role: "group" }, hAsync("span", { "aria-label": this.messages.meridiemUp, class: {
|
|
42088
42390
|
[CSS$6.button]: true,
|
|
42089
42391
|
[CSS$6.buttonMeridiemUp]: true,
|
|
42090
42392
|
[CSS$6.buttonTopRight]: true,
|
|
42091
|
-
}, onClick: this.incrementMeridiem,
|
|
42393
|
+
}, onClick: this.incrementMeridiem, role: "button" }, hAsync("calcite-icon", { icon: "chevron-up", scale: iconScale })), hAsync("span", { "aria-label": this.messages.meridiem, "aria-valuemax": "2", "aria-valuemin": "1", "aria-valuenow": (this.meridiem === "PM" && "2") || "1", "aria-valuetext": this.meridiem, class: {
|
|
42092
42394
|
[CSS$6.input]: true,
|
|
42093
42395
|
[CSS$6.meridiem]: true,
|
|
42094
42396
|
}, onFocus: this.focusHandler, onKeyDown: this.meridiemKeyDownHandler, role: "spinbutton", tabIndex: 0,
|
|
@@ -42097,7 +42399,7 @@ class TimePicker {
|
|
|
42097
42399
|
[CSS$6.button]: true,
|
|
42098
42400
|
[CSS$6.buttonMeridiemDown]: true,
|
|
42099
42401
|
[CSS$6.buttonBottomRight]: true,
|
|
42100
|
-
}, onClick: this.decrementMeridiem,
|
|
42402
|
+
}, onClick: this.decrementMeridiem, role: "button" }, hAsync("calcite-icon", { icon: "chevron-down", scale: iconScale }))))));
|
|
42101
42403
|
}
|
|
42102
42404
|
static get delegatesFocus() { return true; }
|
|
42103
42405
|
static get assetsDirs() { return ["assets"]; }
|
|
@@ -42120,11 +42422,14 @@ class TimePicker {
|
|
|
42120
42422
|
"messages": [1040],
|
|
42121
42423
|
"messageOverrides": [1040],
|
|
42122
42424
|
"effectiveLocale": [32],
|
|
42425
|
+
"fractionalSecond": [32],
|
|
42123
42426
|
"hour": [32],
|
|
42124
42427
|
"hourCycle": [32],
|
|
42428
|
+
"localizedDecimalSeparator": [32],
|
|
42125
42429
|
"localizedHour": [32],
|
|
42126
42430
|
"localizedHourSuffix": [32],
|
|
42127
42431
|
"localizedMeridiem": [32],
|
|
42432
|
+
"localizedFractionalSecond": [32],
|
|
42128
42433
|
"localizedMinute": [32],
|
|
42129
42434
|
"localizedMinuteSuffix": [32],
|
|
42130
42435
|
"localizedSecond": [32],
|
|
@@ -42132,6 +42437,7 @@ class TimePicker {
|
|
|
42132
42437
|
"meridiem": [32],
|
|
42133
42438
|
"minute": [32],
|
|
42134
42439
|
"second": [32],
|
|
42440
|
+
"showFractionalSecond": [32],
|
|
42135
42441
|
"showSecond": [32],
|
|
42136
42442
|
"defaultMessages": [32],
|
|
42137
42443
|
"setFocus": [64]
|