@esri/calcite-components 1.7.0-next.12 → 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-c9e6a84d.entry.js → p-00c0611c.entry.js} +2 -2
- package/dist/calcite/p-0204d470.js +6 -0
- package/dist/calcite/{p-f3a27853.js → p-02b9e8fc.js} +2 -2
- package/dist/calcite/{p-60c25eab.entry.js → p-041db9df.entry.js} +2 -2
- package/dist/calcite/{p-bf511e16.js → p-0473aace.js} +1 -1
- package/dist/calcite/{p-5f92aca9.js → p-04b128a1.js} +2 -2
- package/dist/calcite/{p-7337191f.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-da9945e0.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-0871dd8a.entry.js → p-0eac0d49.entry.js} +2 -2
- package/dist/calcite/p-0f015152.js +6 -0
- package/dist/calcite/{p-119998be.entry.js → p-0f03b7dd.entry.js} +2 -2
- package/dist/calcite/{p-237de6f4.entry.js → p-101f7ced.entry.js} +2 -2
- package/dist/calcite/{p-e3cf6089.entry.js → p-106a389d.entry.js} +2 -2
- package/dist/calcite/p-107999f7.js +6 -0
- package/dist/calcite/{p-e60665f1.entry.js → p-14b99c7f.entry.js} +2 -2
- package/dist/calcite/{p-f3c9f258.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-664d0178.js → p-1f34e1fd.js} +1 -1
- package/dist/calcite/{p-ce58c224.entry.js → p-1fe910cf.entry.js} +2 -2
- package/dist/calcite/{p-9db94a6e.entry.js → p-21118244.entry.js} +2 -2
- package/dist/calcite/{p-94461c15.entry.js → p-218c8064.entry.js} +2 -2
- package/dist/calcite/p-263302fc.entry.js +6 -0
- package/dist/calcite/{p-2f62f332.js → p-27fab22f.js} +2 -2
- package/dist/calcite/p-291af3bc.js +6 -0
- package/dist/calcite/{p-e82e17b4.entry.js → p-2bf9595a.entry.js} +2 -2
- package/dist/calcite/{p-251324c2.js → p-2c2c954a.js} +1 -1
- package/dist/calcite/p-2ccf1e1a.js +6 -0
- package/dist/calcite/{p-f29c8bb8.entry.js → p-2ceb7949.entry.js} +2 -2
- package/dist/calcite/{p-07f649ac.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-f9f7b73f.entry.js → p-3566e8fa.entry.js} +2 -2
- package/dist/calcite/{p-c5c51a33.js → p-356a8374.js} +2 -2
- package/dist/calcite/{p-c6419cc3.entry.js → p-35710e59.entry.js} +2 -2
- package/dist/calcite/{p-33cc63d3.js → p-367c2c01.js} +1 -1
- package/dist/calcite/p-36ace5f9.entry.js +6 -0
- package/dist/calcite/{p-8400ab3c.entry.js → p-3a8aa8e0.entry.js} +2 -2
- package/dist/calcite/{p-6da489cc.entry.js → p-3b0bc663.entry.js} +2 -2
- package/dist/calcite/{p-82f485c8.js → p-3e24464e.js} +1 -1
- package/dist/calcite/p-3ea755c3.js +6 -0
- package/dist/calcite/{p-c4b28e2c.entry.js → p-40c70921.entry.js} +2 -2
- package/dist/calcite/{p-52a78049.entry.js → p-415c7582.entry.js} +2 -2
- package/dist/calcite/p-43488336.js +6 -0
- package/dist/calcite/{p-5a16f65f.entry.js → p-47f6cc60.entry.js} +2 -2
- package/dist/calcite/{p-fe4e6179.entry.js → p-481689ed.entry.js} +2 -2
- package/dist/calcite/{p-dcd09ffb.entry.js → p-4cea1f48.entry.js} +2 -2
- package/dist/calcite/{p-d3f92e1b.entry.js → p-4feede09.entry.js} +2 -2
- package/dist/calcite/{p-0701183a.js → p-516bc559.js} +3 -3
- package/dist/calcite/p-523bf4d0.js +6 -0
- package/dist/calcite/p-528e7203.js +6 -0
- package/dist/calcite/{p-ae532c08.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-827f20bc.entry.js → p-55478161.entry.js} +2 -2
- package/dist/calcite/{p-b7a09445.js → p-56b34725.js} +2 -2
- package/dist/calcite/{p-5548ed51.entry.js → p-5a899b57.entry.js} +2 -2
- package/dist/calcite/{p-0f3918d0.entry.js → p-5b44824f.entry.js} +2 -2
- package/dist/calcite/{p-358c61b7.entry.js → p-5d7df7d7.entry.js} +2 -2
- package/dist/calcite/{p-0e11ca4c.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-2a133309.js → p-6b192a69.js} +2 -2
- package/dist/calcite/p-6bd53cb4.entry.js +6 -0
- package/dist/calcite/{p-93d0047b.entry.js → p-6bfcdcb3.entry.js} +2 -2
- package/dist/calcite/{p-657d5d37.entry.js → p-6e5301ae.entry.js} +2 -2
- package/dist/calcite/{p-6ba3eac0.entry.js → p-712e146e.entry.js} +2 -2
- package/dist/calcite/p-714c7efc.js +6 -0
- package/dist/calcite/{p-120e50fd.js → p-7293020f.js} +1 -1
- package/dist/calcite/{p-5a8fa930.js → p-72f2fc08.js} +2 -2
- package/dist/calcite/{p-06146093.js → p-734e8d42.js} +2 -2
- package/dist/calcite/{p-14458f58.entry.js → p-7483df3f.entry.js} +2 -2
- package/dist/calcite/{p-53034747.js → p-7660ae6b.js} +1 -1
- package/dist/calcite/{p-37e34c6c.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-842b5a9b.entry.js → p-7aba06d8.entry.js} +2 -2
- package/dist/calcite/{p-a661f6d1.entry.js → p-7d689862.entry.js} +2 -2
- package/dist/calcite/{p-ebe609d2.js → p-7d694580.js} +2 -2
- package/dist/calcite/{p-b24ab7cf.js → p-7f80490b.js} +2 -2
- package/dist/calcite/p-802f23c8.js +6 -0
- package/dist/calcite/{p-d8f66daa.js → p-8031ed50.js} +1 -1
- package/dist/calcite/{p-1d750bae.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-786f12fb.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-f273986a.entry.js → p-9056626e.entry.js} +2 -2
- package/dist/calcite/{p-06f437c2.entry.js → p-922a124c.entry.js} +2 -2
- package/dist/calcite/p-9317fe7a.js +6 -0
- package/dist/calcite/{p-8bae7416.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-6bd75e9a.entry.js → p-9c52c791.entry.js} +2 -2
- package/dist/calcite/p-9c9847fa.js +6 -0
- package/dist/calcite/{p-d493ba6e.entry.js → p-9cea7531.entry.js} +2 -2
- package/dist/calcite/{p-2d1a4b13.entry.js → p-9d07d546.entry.js} +2 -2
- package/dist/calcite/{p-71325d40.entry.js → p-9e9cc622.entry.js} +2 -2
- package/dist/calcite/{p-f6361a95.entry.js → p-9f5f8765.entry.js} +2 -2
- package/dist/calcite/p-a09f3a13.js +6 -0
- package/dist/calcite/{p-c397b936.entry.js → p-a0ac357b.entry.js} +2 -2
- package/dist/calcite/{p-da372921.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-d247ae8b.js → p-ae4d4713.js} +2 -2
- package/dist/calcite/{p-a5b0a58f.js → p-aedd2b1a.js} +1 -1
- package/dist/calcite/p-b743b9d1.js +6 -0
- package/dist/calcite/{p-dc093cfb.entry.js → p-b775646d.entry.js} +2 -2
- package/dist/calcite/p-b8b481a9.js +6 -0
- package/dist/calcite/{p-6bb3a9f3.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-19a67d93.entry.js → p-c0ce5f76.entry.js} +2 -2
- package/dist/calcite/{p-a47a68b8.entry.js → p-c0d2a7bc.entry.js} +2 -2
- package/dist/calcite/p-c10b1f73.js +6 -0
- package/dist/calcite/{p-f80b40d8.js → p-c45eaf43.js} +2 -2
- package/dist/calcite/{p-57cd3b7a.js → p-c5ecc918.js} +1 -1
- package/dist/calcite/p-c5f56d00.js +6 -0
- package/dist/calcite/{p-80fa9da2.entry.js → p-c6151f3a.entry.js} +2 -2
- package/dist/calcite/p-c7b75712.js +6 -0
- package/dist/calcite/{p-953a8161.entry.js → p-c8b51fb1.entry.js} +2 -2
- package/dist/calcite/p-cb223296.entry.js +6 -0
- package/dist/calcite/{p-79bcfd7b.entry.js → p-ce42fb89.entry.js} +2 -2
- package/dist/calcite/{p-09c2a0f9.entry.js → p-cef2922a.entry.js} +2 -2
- package/dist/calcite/p-d13d008f.js +6 -0
- package/dist/calcite/{p-ebdf8eb1.entry.js → p-d3975c75.entry.js} +2 -2
- package/dist/calcite/{p-eadb226b.entry.js → p-daddbcdc.entry.js} +2 -2
- package/dist/calcite/{p-3c861485.js → p-db018c92.js} +1 -1
- package/dist/calcite/{p-4db3b5d9.entry.js → p-e0c32d9c.entry.js} +2 -2
- package/dist/calcite/{p-7df6e048.entry.js → p-e42be64c.entry.js} +2 -2
- package/dist/calcite/p-e56e5d7e.js +6 -0
- package/dist/calcite/{p-443c9053.js → p-e6b1abfc.js} +1 -1
- package/dist/calcite/p-ed733533.js +6 -0
- package/dist/calcite/{p-0af72c6d.js → p-f0ac31d5.js} +2 -2
- package/dist/calcite/p-f11e7589.js +6 -0
- package/dist/calcite/{p-6c219f30.entry.js → p-f1a3a521.entry.js} +2 -2
- package/dist/calcite/{p-28a4e053.js → p-f230e9ed.js} +1 -1
- package/dist/calcite/{p-9a239e47.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-16ce6289.entry.js → p-f7dd6cfe.entry.js} +2 -2
- package/dist/cjs/{ExpandToggle-89f80534.js → ExpandToggle-b7eac610.js} +5 -5
- package/dist/cjs/{FloatingArrow-e821bafd.js → FloatingArrow-ab04000a.js} +2 -2
- package/dist/cjs/{Heading-7dcd6929.js → Heading-2c4e39c0.js} +2 -2
- package/dist/cjs/{app-globals-124bb0ba.js → app-globals-d1de22c4.js} +2 -2
- package/dist/cjs/{ar-0156ecfb.js → ar-e3f7d8d6.js} +16 -15
- package/dist/cjs/{array-b6ef7fd5.js → array-5bc51a8d.js} +1 -1
- package/dist/cjs/{bg-d166b7d7.js → bg-060348c1.js} +16 -15
- package/dist/cjs/{bs-7afb35f8.js → bs-d31c5c73.js} +16 -15
- package/dist/cjs/{ca-7a7f7724.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-e77fb39f.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 +10 -10
- 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-6d04f4eb.js → conditionalSlot-be73a844.js} +3 -3
- package/dist/cjs/{cs-da911adf.js → cs-f0c85e57.js} +16 -15
- package/dist/cjs/{da-3c3cbf8e.js → da-0c565998.js} +16 -15
- package/dist/cjs/{de-f21dae78.js → de-342c9d42.js} +16 -15
- package/dist/cjs/{de-at-cb1d7bd7.js → de-at-e27590f8.js} +16 -15
- package/dist/cjs/{de-ch-d55ae89f.js → de-ch-4bd31d0f.js} +16 -15
- package/dist/cjs/{debounce-efd40313.js → debounce-de6c62dd.js} +1 -1
- package/dist/cjs/{dom-d28fac76.js → dom-5c1f05a4.js} +3 -3
- package/dist/cjs/{el-0fc69194.js → el-db20dda3.js} +16 -15
- package/dist/cjs/{en-au-c8981324.js → en-au-fe57fd16.js} +16 -15
- package/dist/cjs/{en-ca-a08ced47.js → en-ca-57ad0ef1.js} +16 -15
- package/dist/cjs/{en-gb-5a1005cc.js → en-gb-b45ccd3a.js} +16 -15
- package/dist/cjs/{es-66d36b48.js → es-301cba4f.js} +16 -15
- package/dist/cjs/{es-mx-988efc8f.js → es-mx-7051a78b.js} +16 -15
- package/dist/cjs/{et-2aedbd12.js → et-ba36cd54.js} +16 -15
- package/dist/cjs/{fi-5d83fbde.js → fi-850ad6d4.js} +16 -15
- package/dist/cjs/{filter-82802712.js → filter-31177fd1.js} +2 -2
- package/dist/cjs/{floating-ui-35fdac02.js → floating-ui-e09abdf1.js} +3 -3
- package/dist/cjs/{focusTrapComponent-3d1ce3d1.js → focusTrapComponent-ce5a3e7f.js} +2 -2
- package/dist/cjs/{form-a49f9cc9.js → form-e383be1d.js} +3 -3
- package/dist/cjs/{fr-a5bcf53c.js → fr-cc6ec309.js} +16 -15
- package/dist/cjs/{fr-ch-8f05c241.js → fr-ch-b42c894d.js} +16 -15
- package/dist/cjs/{guid-2d501e6e.js → guid-56212af8.js} +1 -1
- package/dist/cjs/{he-dc7dc252.js → he-80b9b6ae.js} +16 -15
- package/dist/cjs/{hi-9f8ec3ec.js → hi-c67be7ee.js} +16 -15
- package/dist/cjs/{hr-932629e2.js → hr-0191e1b7.js} +16 -15
- package/dist/cjs/{hu-cca48e92.js → hu-e9be71de.js} +16 -15
- package/dist/cjs/{id-d8b1b589.js → id-b7dbbc1b.js} +16 -15
- package/dist/cjs/{index-8bbfb304.js → index-7a7283a1.js} +1 -1
- package/dist/cjs/index.cjs.js +2 -2
- package/dist/cjs/{interactive-9d64159b.js → interactive-987d5138.js} +1 -1
- package/dist/cjs/{it-4ded6c4e.js → it-64c27dea.js} +16 -15
- package/dist/cjs/{it-ch-5e361ac7.js → it-ch-3bd71f60.js} +16 -15
- package/dist/cjs/{ja-af96503c.js → ja-3a41c5d6.js} +16 -15
- package/dist/cjs/{key-e928afb1.js → key-31a858e5.js} +1 -1
- package/dist/cjs/{ko-cfb257a9.js → ko-d88c39ed.js} +16 -15
- package/dist/cjs/{label-49b45f75.js → label-f6ff58d4.js} +2 -2
- package/dist/cjs/{loadable-ce71b54c.js → loadable-35c473fe.js} +2 -2
- package/dist/cjs/loader.cjs.js +5 -5
- package/dist/cjs/{locale-ef052180.js → locale-8b7f63e3.js} +4 -4
- package/dist/cjs/{lt-d6ffcdf0.js → lt-09328619.js} +16 -15
- package/dist/cjs/{lv-e93e032b.js → lv-86eb22b6.js} +16 -15
- package/dist/cjs/{math-79f2d142.js → math-44bc2b23.js} +18 -2
- package/dist/cjs/{mk-fa07d1fe.js → mk-61a37f6a.js} +16 -15
- package/dist/cjs/{nb-a4338f2a.js → nb-75d7113d.js} +16 -15
- package/dist/cjs/{nl-4abf259c.js → nl-8d45cb62.js} +16 -15
- package/dist/cjs/{observers-5cbaffa6.js → observers-b3d334aa.js} +1 -1
- package/dist/cjs/{openCloseComponent-fa5b734d.js → openCloseComponent-bb19b968.js} +2 -2
- package/dist/cjs/{pl-7c457b80.js → pl-a212b79f.js} +16 -15
- package/dist/cjs/{pt-32fc4e88.js → pt-966ae855.js} +16 -15
- package/dist/cjs/{pt-br-e055f8f6.js → pt-br-682183f7.js} +16 -15
- package/dist/cjs/{resources-cc81d09c.js → resources-139dd2d0.js} +1 -1
- package/dist/cjs/{resources-93b3c3d0.js → resources-347319c0.js} +1 -1
- package/dist/cjs/{resources-7e7e9c36.js → resources-827d1e56.js} +5 -5
- package/dist/cjs/{resources-ce3f09a5.js → resources-8d161497.js} +1 -1
- package/dist/cjs/{resources-143a0fe1.js → resources-91ff6111.js} +1 -1
- package/dist/cjs/{resources-fb6e68df.js → resources-9c5c2364.js} +1 -1
- package/dist/cjs/{resources-2dda232f.js → resources-bf3f9968.js} +1 -1
- package/dist/cjs/{ro-753bce6c.js → ro-09a0bc24.js} +16 -15
- package/dist/cjs/{ru-575b6f91.js → ru-e02f19d4.js} +16 -15
- package/dist/cjs/{sk-3aa9ece7.js → sk-eef414fd.js} +16 -15
- package/dist/cjs/{sl-1434dce8.js → sl-64bcfd3c.js} +16 -15
- package/dist/cjs/{sortableComponent-25608770.js → sortableComponent-b4618ee3.js} +2 -2
- package/dist/cjs/{sr-c6723266.js → sr-8aa5a7fe.js} +16 -15
- package/dist/cjs/{sv-acbe49cf.js → sv-f1e6baa9.js} +16 -15
- package/dist/cjs/{t9n-2bde45e6.js → t9n-b6c38d3b.js} +3 -3
- package/dist/cjs/{th-99b8e22c.js → th-6ba512a0.js} +16 -15
- package/dist/cjs/{throttle-dd66a704.js → throttle-59ff9e96.js} +2 -2
- package/dist/cjs/{tr-6dad2538.js → tr-473141ca.js} +16 -15
- package/dist/cjs/{uk-ca1925ac.js → uk-a6378ce5.js} +16 -15
- package/dist/cjs/{utils-aa1012cf.js → utils-7d8173f3.js} +3 -3
- package/dist/cjs/{utils-f748c5b0.js → utils-fb0d548a.js} +1 -1
- package/dist/cjs/{vi-32ff3b7c.js → vi-2e02ef80.js} +16 -15
- package/dist/cjs/{zh-cn-b3070ec7.js → zh-cn-7b11995c.js} +16 -15
- package/dist/cjs/{zh-hk-4c21f9c2.js → zh-hk-fbe311b5.js} +16 -15
- package/dist/cjs/{zh-tw-b0cce27a.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.css +14 -14
- 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 +2 -2
- 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-258500de.js → ExpandToggle-5b5415c3.js} +5 -5
- package/dist/esm/{FloatingArrow-f966eeca.js → FloatingArrow-839408e5.js} +2 -2
- package/dist/esm/{Heading-39ac8e15.js → Heading-781b4385.js} +2 -2
- package/dist/esm/{app-globals-87258c66.js → app-globals-23e2811d.js} +2 -2
- package/dist/esm/{ar-b389ac47.js → ar-78982992.js} +16 -15
- package/dist/esm/{array-448e020a.js → array-aae4a469.js} +1 -1
- package/dist/esm/{bg-380b524e.js → bg-2f54eb5c.js} +16 -15
- package/dist/esm/{bs-cebc51cd.js → bs-e1e0719f.js} +16 -15
- package/dist/esm/{ca-009dc881.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-9ff279fb.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 +10 -10
- 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-c4085ebc.js → conditionalSlot-19a0d842.js} +3 -3
- package/dist/esm/{cs-b45fcb4f.js → cs-9fc201b1.js} +16 -15
- package/dist/esm/{da-e21ceb52.js → da-33cfbc62.js} +16 -15
- package/dist/esm/{de-44bd5b3f.js → de-3462a2be.js} +16 -15
- package/dist/esm/{de-at-0c492b1c.js → de-at-f5ddce47.js} +16 -15
- package/dist/esm/{de-ch-7cfe4116.js → de-ch-24269f5d.js} +16 -15
- package/dist/esm/{debounce-a15af0f9.js → debounce-525efd32.js} +1 -1
- package/dist/esm/{dom-fbb2be98.js → dom-d1df3438.js} +3 -3
- package/dist/esm/{el-744b0c0f.js → el-c753e8df.js} +16 -15
- package/dist/esm/{en-au-0d6b7b12.js → en-au-2dd870a5.js} +16 -15
- package/dist/esm/{en-ca-981db3f9.js → en-ca-3b7caf5c.js} +16 -15
- package/dist/esm/{en-gb-e77165ba.js → en-gb-0c261721.js} +16 -15
- package/dist/esm/{es-b0b2a2e6.js → es-a5f671c5.js} +16 -15
- package/dist/esm/{es-mx-dc6ec6ad.js → es-mx-498f6751.js} +16 -15
- package/dist/esm/{et-b0334665.js → et-30d6ce3c.js} +16 -15
- package/dist/esm/{fi-e140a5a1.js → fi-8691a46a.js} +16 -15
- package/dist/esm/{filter-b6d4b834.js → filter-3d8fcae3.js} +2 -2
- package/dist/esm/{floating-ui-0bf2d6d7.js → floating-ui-38fbedc1.js} +3 -3
- package/dist/esm/{focusTrapComponent-f25e2113.js → focusTrapComponent-9d61e99e.js} +2 -2
- package/dist/esm/{form-5666928a.js → form-b226ad7f.js} +3 -3
- package/dist/esm/{fr-5b43901f.js → fr-367c3ac4.js} +16 -15
- package/dist/esm/{fr-ch-89a78f54.js → fr-ch-c3f2b21d.js} +16 -15
- package/dist/esm/{guid-64dd44e0.js → guid-65e9e228.js} +1 -1
- package/dist/esm/{he-bed22a5c.js → he-5b8edc25.js} +16 -15
- package/dist/esm/{hi-b74647ed.js → hi-b8afe5e9.js} +16 -15
- package/dist/esm/{hr-5f6aa9bc.js → hr-c4dce020.js} +16 -15
- package/dist/esm/{hu-ade7fb99.js → hu-47afc582.js} +16 -15
- package/dist/esm/{id-ce67938b.js → id-029e04d5.js} +16 -15
- package/dist/esm/{index-a615b37a.js → index-c3d6823a.js} +1 -1
- package/dist/esm/index.js +2 -2
- package/dist/esm/{interactive-9307ac5c.js → interactive-fba0d02e.js} +1 -1
- package/dist/esm/{it-ch-4ab53682.js → it-ch-2225b563.js} +16 -15
- package/dist/esm/{it-d736ef4d.js → it-f16fce5f.js} +16 -15
- package/dist/esm/{ja-26fb7fda.js → ja-4890d0d2.js} +16 -15
- package/dist/esm/{key-bf6e908b.js → key-3a19d047.js} +1 -1
- package/dist/esm/{ko-8946fe9f.js → ko-b98c4dd4.js} +16 -15
- package/dist/esm/{label-f568015c.js → label-bb6becbd.js} +2 -2
- package/dist/esm/{loadable-2e52a8a1.js → loadable-68f3f302.js} +2 -2
- package/dist/esm/loader.js +6 -6
- package/dist/esm/{locale-298de8cb.js → locale-a489e018.js} +4 -4
- package/dist/esm/{lt-acd47f8e.js → lt-420a6f08.js} +16 -15
- package/dist/esm/{lv-62022cee.js → lv-e2e759d9.js} +16 -15
- package/dist/esm/{math-efa6187a.js → math-3c914a96.js} +18 -3
- package/dist/esm/{mk-a1e18c52.js → mk-c9da4390.js} +16 -15
- package/dist/esm/{nb-edb49d74.js → nb-ee10386d.js} +16 -15
- package/dist/esm/{nl-36311cdb.js → nl-59f3f458.js} +16 -15
- package/dist/esm/{observers-72dab4ed.js → observers-9d2a3e1f.js} +1 -1
- package/dist/esm/{openCloseComponent-d12e7d4a.js → openCloseComponent-558bc893.js} +2 -2
- package/dist/esm/{pl-184cbb86.js → pl-acfdfd9b.js} +16 -15
- package/dist/esm/{pt-69c06dd5.js → pt-0fa069e9.js} +16 -15
- package/dist/esm/{pt-br-93f61af9.js → pt-br-6a7dcc09.js} +16 -15
- package/dist/esm/{resources-bb515479.js → resources-070c6ecf.js} +1 -1
- package/dist/esm/{resources-60bf3379.js → resources-2d5d37e7.js} +1 -1
- package/dist/esm/{resources-1c02d0d4.js → resources-4e437cba.js} +1 -1
- package/dist/esm/{resources-40581fb4.js → resources-90a4deee.js} +1 -1
- package/dist/esm/{resources-3642d779.js → resources-ba20a89e.js} +5 -5
- package/dist/esm/{resources-a940a61b.js → resources-e2803672.js} +1 -1
- package/dist/esm/{resources-39dca8e0.js → resources-e7ab12ca.js} +1 -1
- package/dist/esm/{ro-6c65c0d0.js → ro-82c40e0e.js} +16 -15
- package/dist/esm/{ru-3fb61a57.js → ru-44d1a106.js} +16 -15
- package/dist/esm/{sk-45cc621f.js → sk-0c4f0332.js} +16 -15
- package/dist/esm/{sl-00beef9c.js → sl-cc701750.js} +16 -15
- package/dist/esm/{sortableComponent-cddc0f37.js → sortableComponent-8e28f19a.js} +2 -2
- package/dist/esm/{sr-ce7cbcc8.js → sr-165d1437.js} +16 -15
- package/dist/esm/{sv-6c90242d.js → sv-510ef66a.js} +16 -15
- package/dist/esm/{t9n-d8ea7a93.js → t9n-b23b3609.js} +3 -3
- package/dist/esm/{th-5aefb65d.js → th-5318f755.js} +16 -15
- package/dist/esm/{throttle-29ebf5bc.js → throttle-edcb49d2.js} +2 -2
- package/dist/esm/{tr-aca5f8c0.js → tr-abd5cab0.js} +16 -15
- package/dist/esm/{uk-a4219413.js → uk-1ba4a885.js} +16 -15
- package/dist/esm/{utils-00606b33.js → utils-6af46359.js} +1 -1
- package/dist/esm/{utils-690a4446.js → utils-c76b6279.js} +3 -3
- package/dist/esm/{vi-9b7c1c72.js → vi-a4843f0b.js} +16 -15
- package/dist/esm/{zh-cn-1e112e45.js → zh-cn-ba328574.js} +16 -15
- package/dist/esm/{zh-hk-17d9b5c1.js → zh-hk-fc8b22ac.js} +16 -15
- package/dist/esm/{zh-tw-842ef698.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 +428 -122
- package/package.json +3 -2
- package/dist/calcite/p-042e09f1.js +0 -6
- package/dist/calcite/p-0965956a.js +0 -6
- package/dist/calcite/p-09861241.js +0 -6
- package/dist/calcite/p-0a08556c.js +0 -6
- package/dist/calcite/p-0b45d77b.js +0 -6
- package/dist/calcite/p-1186d4d6.js +0 -6
- package/dist/calcite/p-15667486.js +0 -6
- package/dist/calcite/p-1f98a2c7.js +0 -6
- package/dist/calcite/p-2051a252.js +0 -6
- package/dist/calcite/p-24b96283.js +0 -6
- package/dist/calcite/p-24e40556.js +0 -6
- package/dist/calcite/p-2995432e.entry.js +0 -6
- package/dist/calcite/p-2fe5f5c2.js +0 -6
- package/dist/calcite/p-32dd6892.js +0 -6
- package/dist/calcite/p-3481e2e0.js +0 -6
- package/dist/calcite/p-369e8343.js +0 -6
- package/dist/calcite/p-36e9719d.js +0 -6
- package/dist/calcite/p-4307c673.js +0 -6
- package/dist/calcite/p-445d44f6.js +0 -6
- package/dist/calcite/p-4b9e662e.js +0 -6
- package/dist/calcite/p-4e8765e6.js +0 -6
- package/dist/calcite/p-519d843e.js +0 -6
- package/dist/calcite/p-51e7e06c.entry.js +0 -6
- package/dist/calcite/p-53fdc7a3.entry.js +0 -6
- package/dist/calcite/p-5631bf03.js +0 -6
- package/dist/calcite/p-5782d29a.js +0 -6
- package/dist/calcite/p-5dfae6ff.js +0 -6
- package/dist/calcite/p-5ead2f73.js +0 -6
- package/dist/calcite/p-5eefeea3.js +0 -6
- package/dist/calcite/p-6df83d8c.js +0 -6
- package/dist/calcite/p-6ed608ea.js +0 -6
- package/dist/calcite/p-7174a4c7.js +0 -6
- package/dist/calcite/p-74728722.js +0 -6
- package/dist/calcite/p-77a2dacb.js +0 -6
- package/dist/calcite/p-7a637725.js +0 -6
- package/dist/calcite/p-7ec75ac9.js +0 -6
- package/dist/calcite/p-86521a33.js +0 -6
- package/dist/calcite/p-8afa622c.js +0 -6
- package/dist/calcite/p-96a92366.js +0 -6
- package/dist/calcite/p-a022cd3b.js +0 -6
- package/dist/calcite/p-a3e97255.js +0 -6
- package/dist/calcite/p-acb80647.js +0 -6
- package/dist/calcite/p-b692b841.js +0 -6
- package/dist/calcite/p-b784ec6e.js +0 -6
- package/dist/calcite/p-b94fa840.js +0 -6
- package/dist/calcite/p-ba82c45a.js +0 -6
- package/dist/calcite/p-bc955a89.js +0 -6
- package/dist/calcite/p-bfd75112.js +0 -6
- package/dist/calcite/p-bfed2e6d.entry.js +0 -6
- package/dist/calcite/p-c0a3e770.js +0 -6
- package/dist/calcite/p-c2707e45.js +0 -6
- package/dist/calcite/p-c669d703.js +0 -6
- package/dist/calcite/p-c8a7b789.js +0 -6
- package/dist/calcite/p-cc0e7e81.js +0 -6
- package/dist/calcite/p-ce643e5b.js +0 -6
- package/dist/calcite/p-f17e45cb.js +0 -6
- package/dist/calcite/p-f3811ce9.js +0 -6
- package/dist/calcite/p-fa7561fb.js +0 -6
- package/dist/calcite/p-fd37c4ea.entry.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
|
}
|
|
@@ -37416,7 +37610,7 @@ const CSS$g = {
|
|
|
37416
37610
|
containerSlottedInShell: "container--slotted-in-shell",
|
|
37417
37611
|
};
|
|
37418
37612
|
|
|
37419
|
-
const sheetCss = "/*!@:host*/.sc-calcite-sheet-h{position:absolute;inset:0px;z-index:var(--calcite-app-z-index-overlay);display:flex;visibility:hidden !important;--calcite-sheet-scrim-background-internal:rgba(0, 0, 0, 0.85);--calcite-scrim-shadow-block-start-internal:0 4px 8px -1px rgba(0, 0, 0, 0.08), 0 2px 4px -1px rgba(0, 0, 0, 0.04);--calcite-scrim-shadow-block-end-internal:0 -4px 8px -1px rgba(0, 0, 0, 0.08), 0 -2px 4px -1px rgba(0, 0, 0, 0.04);--calcite-scrim-shadow-inline-start-internal:4px 0 8px -1px rgba(0, 0, 0, 0.08), 2px 0 4px -1px rgba(0, 0, 0, 0.04);--calcite-scrim-shadow-inline-end-internal:-4px 0 8px -1px rgba(0, 0, 0, 0.08), -2px 0 4px -1px rgba(0, 0, 0, 0.04)}/*!@.calcite--rtl*/.calcite--rtl.sc-calcite-sheet{--calcite-scrim-shadow-inline-start-internal:-4px 0 8px -1px rgba(0, 0, 0, 0.08), -2px 0 4px -1px rgba(0, 0, 0, 0.04);--calcite-scrim-shadow-inline-end-internal:4px 0 8px -1px rgba(0, 0, 0, 0.08), 2px 0 4px -1px rgba(0, 0, 0, 0.04)}/*!@.container*/.container.sc-calcite-sheet{visibility:hidden;position:fixed;z-index:var(--calcite-app-z-index-overlay);display:flex;overflow-y:hidden;color:var(--calcite-ui-text-2);opacity:0;transition:visibility 0ms linear var(--calcite-internal-animation-timing-medium), opacity var(--calcite-internal-animation-timing-medium) cubic-bezier(0.215, 0.44, 0.42, 0.88)}/*!@:host([position=inline-start]) .container*/[position=inline-start].sc-calcite-sheet-h .container.sc-calcite-sheet{justify-content:flex-start;inset-block:0;inset-inline:0 auto;--calcite-sheet-hidden-position-internal:translate3d(-1rem, 0, 0)}/*!@:host([position=inline-end]) .container*/[position=inline-end].sc-calcite-sheet-h .container.sc-calcite-sheet{justify-content:flex-end;inset-block:0;inset-inline:auto 0;--calcite-sheet-hidden-position-internal:translate3d(1rem, 0, 0)}/*!@:host([position=block-start]) .container*/[position=block-start].sc-calcite-sheet-h .container.sc-calcite-sheet{align-items:flex-start;inset-block:0 auto;inset-inline:0;--calcite-sheet-hidden-position-internal:translate3d(0, -1rem, 0)}/*!@:host([position=block-end]) .container*/[position=block-end].sc-calcite-sheet-h .container.sc-calcite-sheet{align-items:flex-end;inset-block:auto 0;inset-inline:0;--calcite-sheet-hidden-position-internal:translate3d(0, 1rem, 0)}/*!@:host([display-mode=float]) .container*/[display-mode=float].sc-calcite-sheet-h .container.sc-calcite-sheet{--tw-shadow:0 6px 20px -4px rgba(0, 0, 0, 0.1), 0 4px 12px -2px rgba(0, 0, 0, 0.08);--tw-shadow-colored:0 6px 20px -4px var(--tw-shadow-color), 0 4px 12px -2px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow)}/*!@:host([display-mode=overlay][position=inline-start]) .container*/[display-mode=overlay][position=inline-start].sc-calcite-sheet-h .container.sc-calcite-sheet{box-shadow:var(--calcite-scrim-shadow-inline-start-internal)}/*!@:host([display-mode=overlay][position=inline-end]) .container*/[display-mode=overlay][position=inline-end].sc-calcite-sheet-h .container.sc-calcite-sheet{box-shadow:var(--calcite-scrim-shadow-inline-end-internal)}/*!@:host([display-mode=overlay][position=block-start]) .container*/[display-mode=overlay][position=block-start].sc-calcite-sheet-h .container.sc-calcite-sheet{box-shadow:var(--calcite-scrim-shadow-block-start-internal)}/*!@:host([display-mode=overlay][position=block-end]) .container*/[display-mode=overlay][position=block-end].sc-calcite-sheet-h .container.sc-calcite-sheet{box-shadow:var(--calcite-scrim-shadow-block-end-internal)}/*!@:host([position^=inline]) .container,\n:host([position^=inline]) .content*/[position^=inline].sc-calcite-sheet-h .container.sc-calcite-sheet,[position^=inline].sc-calcite-sheet-h .content.sc-calcite-sheet{inline-size:var(--calcite-sheet-width-internal);max-inline-size:var(--calcite-sheet-max-width-internal);min-inline-size:var(--calcite-sheet-min-width-internal)}/*!@:host([position^=block]) .container,\n:host([position^=block]) .content*/[position^=block].sc-calcite-sheet-h .container.sc-calcite-sheet,[position^=block].sc-calcite-sheet-h .content.sc-calcite-sheet{block-size:var(--calcite-sheet-height-internal);max-block-size:var(--calcite-sheet-max-height-internal);min-block-size:var(--calcite-sheet-min-height-internal)}/*!@:host([display-mode=float][position^=inline]) .container*/[display-mode=float][position^=inline].sc-calcite-sheet-h .container.sc-calcite-sheet{block-size:calc(100% - 1.5rem);max-block-size:calc(100% - 1.5rem);min-block-size:calc(100% - 1.5rem)}/*!@:host([display-mode=float][position^=block]) .container*/[display-mode=float][position^=block].sc-calcite-sheet-h .container.sc-calcite-sheet{inline-size:calc(100% - 1.5rem);max-inline-size:calc(100% - 1.5rem);min-inline-size:calc(100% - 1.5rem)}/*!@:host([position^=inline][width-scale=s])*/[position^=inline][width-scale=s].sc-calcite-sheet-h{--calcite-sheet-width-internal:var(--calcite-sheet-width,
|
|
37613
|
+
const sheetCss = "/*!@:host*/.sc-calcite-sheet-h{position:absolute;inset:0px;z-index:var(--calcite-app-z-index-overlay);display:flex;visibility:hidden !important;--calcite-sheet-scrim-background-internal:rgba(0, 0, 0, 0.85);--calcite-scrim-shadow-block-start-internal:0 4px 8px -1px rgba(0, 0, 0, 0.08), 0 2px 4px -1px rgba(0, 0, 0, 0.04);--calcite-scrim-shadow-block-end-internal:0 -4px 8px -1px rgba(0, 0, 0, 0.08), 0 -2px 4px -1px rgba(0, 0, 0, 0.04);--calcite-scrim-shadow-inline-start-internal:4px 0 8px -1px rgba(0, 0, 0, 0.08), 2px 0 4px -1px rgba(0, 0, 0, 0.04);--calcite-scrim-shadow-inline-end-internal:-4px 0 8px -1px rgba(0, 0, 0, 0.08), -2px 0 4px -1px rgba(0, 0, 0, 0.04)}/*!@.calcite--rtl*/.calcite--rtl.sc-calcite-sheet{--calcite-scrim-shadow-inline-start-internal:-4px 0 8px -1px rgba(0, 0, 0, 0.08), -2px 0 4px -1px rgba(0, 0, 0, 0.04);--calcite-scrim-shadow-inline-end-internal:4px 0 8px -1px rgba(0, 0, 0, 0.08), 2px 0 4px -1px rgba(0, 0, 0, 0.04)}/*!@.container*/.container.sc-calcite-sheet{visibility:hidden;position:fixed;z-index:var(--calcite-app-z-index-overlay);display:flex;overflow-y:hidden;color:var(--calcite-ui-text-2);opacity:0;transition:visibility 0ms linear var(--calcite-internal-animation-timing-medium), opacity var(--calcite-internal-animation-timing-medium) cubic-bezier(0.215, 0.44, 0.42, 0.88)}/*!@:host([position=inline-start]) .container*/[position=inline-start].sc-calcite-sheet-h .container.sc-calcite-sheet{justify-content:flex-start;inset-block:0;inset-inline:0 auto;--calcite-sheet-hidden-position-internal:translate3d(-1rem, 0, 0)}/*!@:host([position=inline-end]) .container*/[position=inline-end].sc-calcite-sheet-h .container.sc-calcite-sheet{justify-content:flex-end;inset-block:0;inset-inline:auto 0;--calcite-sheet-hidden-position-internal:translate3d(1rem, 0, 0)}/*!@:host([position=block-start]) .container*/[position=block-start].sc-calcite-sheet-h .container.sc-calcite-sheet{align-items:flex-start;inset-block:0 auto;inset-inline:0;--calcite-sheet-hidden-position-internal:translate3d(0, -1rem, 0)}/*!@:host([position=block-end]) .container*/[position=block-end].sc-calcite-sheet-h .container.sc-calcite-sheet{align-items:flex-end;inset-block:auto 0;inset-inline:0;--calcite-sheet-hidden-position-internal:translate3d(0, 1rem, 0)}/*!@:host([display-mode=float]) .container*/[display-mode=float].sc-calcite-sheet-h .container.sc-calcite-sheet{--tw-shadow:0 6px 20px -4px rgba(0, 0, 0, 0.1), 0 4px 12px -2px rgba(0, 0, 0, 0.08);--tw-shadow-colored:0 6px 20px -4px var(--tw-shadow-color), 0 4px 12px -2px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow)}/*!@:host([display-mode=overlay][position=inline-start]) .container*/[display-mode=overlay][position=inline-start].sc-calcite-sheet-h .container.sc-calcite-sheet{box-shadow:var(--calcite-scrim-shadow-inline-start-internal)}/*!@:host([display-mode=overlay][position=inline-end]) .container*/[display-mode=overlay][position=inline-end].sc-calcite-sheet-h .container.sc-calcite-sheet{box-shadow:var(--calcite-scrim-shadow-inline-end-internal)}/*!@:host([display-mode=overlay][position=block-start]) .container*/[display-mode=overlay][position=block-start].sc-calcite-sheet-h .container.sc-calcite-sheet{box-shadow:var(--calcite-scrim-shadow-block-start-internal)}/*!@:host([display-mode=overlay][position=block-end]) .container*/[display-mode=overlay][position=block-end].sc-calcite-sheet-h .container.sc-calcite-sheet{box-shadow:var(--calcite-scrim-shadow-block-end-internal)}/*!@:host([position^=inline]) .container,\n:host([position^=inline]) .content*/[position^=inline].sc-calcite-sheet-h .container.sc-calcite-sheet,[position^=inline].sc-calcite-sheet-h .content.sc-calcite-sheet{inline-size:var(--calcite-sheet-width-internal);max-inline-size:var(--calcite-sheet-max-width-internal);min-inline-size:var(--calcite-sheet-min-width-internal)}/*!@:host([position^=block]) .container,\n:host([position^=block]) .content*/[position^=block].sc-calcite-sheet-h .container.sc-calcite-sheet,[position^=block].sc-calcite-sheet-h .content.sc-calcite-sheet{block-size:var(--calcite-sheet-height-internal);max-block-size:var(--calcite-sheet-max-height-internal);min-block-size:var(--calcite-sheet-min-height-internal)}/*!@:host([display-mode=float][position^=inline]) .container*/[display-mode=float][position^=inline].sc-calcite-sheet-h .container.sc-calcite-sheet{block-size:calc(100% - 1.5rem);max-block-size:calc(100% - 1.5rem);min-block-size:calc(100% - 1.5rem)}/*!@:host([display-mode=float][position^=block]) .container*/[display-mode=float][position^=block].sc-calcite-sheet-h .container.sc-calcite-sheet{inline-size:calc(100% - 1.5rem);max-inline-size:calc(100% - 1.5rem);min-inline-size:calc(100% - 1.5rem)}/*!@:host([position^=inline][width-scale=s])*/[position^=inline][width-scale=s].sc-calcite-sheet-h{--calcite-sheet-width-internal:var(--calcite-sheet-width, 15vw);--calcite-sheet-max-width-internal:var(--calcite-sheet-max-width, 360px);--calcite-sheet-min-width-internal:var(--calcite-sheet-min-width, 260px)}/*!@:host([position^=inline][width-scale=m])*/[position^=inline][width-scale=m].sc-calcite-sheet-h{--calcite-sheet-width-internal:var(--calcite-sheet-width, 25vw);--calcite-sheet-max-width-internal:var(--calcite-sheet-max-width, 420px);--calcite-sheet-min-width-internal:var(--calcite-sheet-min-width, 300px)}/*!@:host([position^=inline][width-scale=l])*/[position^=inline][width-scale=l].sc-calcite-sheet-h{--calcite-sheet-width-internal:var(--calcite-sheet-width, 45vw);--calcite-sheet-max-width-internal:var(--calcite-sheet-max-width, 680px);--calcite-sheet-min-width-internal:var(--calcite-sheet-min-width, 340px)}/*!@:host([position^=block][height-scale=s])*/[position^=block][height-scale=s].sc-calcite-sheet-h{--calcite-sheet-min-height-internal:var(--calcite-sheet-min-height, 160px);--calcite-sheet-height-internal:var(--calcite-sheet-height, 30vh);--calcite-sheet-max-height-internal:var(--calcite-sheet-max-height, 30vh)}/*!@:host([position^=block][height-scale=m])*/[position^=block][height-scale=m].sc-calcite-sheet-h{--calcite-sheet-min-height-internal:var(--calcite-sheet-min-height, 200px);--calcite-sheet-height-internal:var(--calcite-sheet-height, 45vh);--calcite-sheet-max-height-internal:var(--calcite-sheet-max-height, 50vh)}/*!@:host([position^=block][height-scale=l])*/[position^=block][height-scale=l].sc-calcite-sheet-h{--calcite-sheet-min-height-internal:var(--calcite-sheet-min-height, 240px);--calcite-sheet-height-internal:var(--calcite-sheet-height, 60vh);--calcite-sheet-max-height-internal:var(--calcite-sheet-max-height, 70vh)}/*!@.scrim*/.scrim.sc-calcite-sheet{--calcite-scrim-background:var(--calcite-sheet-scrim-background, var(--calcite-sheet-scrim-background-internal));position:fixed;inset:0px;display:flex;overflow-y:hidden}/*!@:host([opened])*/[opened].sc-calcite-sheet-h{visibility:visible !important}/*!@.content*/.content.sc-calcite-sheet{position:relative;z-index:var(--calcite-app-z-index-modal);box-sizing:border-box;display:block;max-block-size:100%;max-inline-size:100%;overflow-y:hidden;padding:0px;background-color:var(--calcite-ui-foreground-1);max-block-size:100%;visibility:hidden;transition:transform var(--calcite-internal-animation-timing-medium) cubic-bezier(0.215, 0.44, 0.42, 0.88), visibility 0ms linear var(--calcite-internal-animation-timing-medium), opacity var(--calcite-internal-animation-timing-medium) cubic-bezier(0.215, 0.44, 0.42, 0.88);transform:var(--calcite-sheet-hidden-position-internal)}/*!@.container--open .content*/.container--open.sc-calcite-sheet .content.sc-calcite-sheet{transform:translate3d(0, 0, 0)}/*!@:host([display-mode=float]) .content,\n:host([display-mode=float]) .container*/[display-mode=float].sc-calcite-sheet-h .content.sc-calcite-sheet,[display-mode=float].sc-calcite-sheet-h .container.sc-calcite-sheet{border-radius:0.25rem}/*!@:host([display-mode=float]) .container*/[display-mode=float].sc-calcite-sheet-h .container.sc-calcite-sheet{padding:0.75rem}/*!@.container--open*/.container--open.sc-calcite-sheet{visibility:visible;opacity:1;transition-delay:0ms}/*!@.container--open .content*/.container--open.sc-calcite-sheet .content.sc-calcite-sheet{pointer-events:auto;visibility:visible;opacity:1;transition:transform var(--calcite-internal-animation-timing-medium) cubic-bezier(0.215, 0.44, 0.42, 0.88), visibility 0ms linear, opacity var(--calcite-internal-animation-timing-medium) cubic-bezier(0.215, 0.44, 0.42, 0.88), max-inline-size var(--calcite-internal-animation-timing-medium) cubic-bezier(0.215, 0.44, 0.42, 0.88), max-block-size var(--calcite-internal-animation-timing-medium) cubic-bezier(0.215, 0.44, 0.42, 0.88);transition-delay:0ms}/*!@:host([position=inline-start]) .content,\n:host([position=inline-end]) .content*/[position=inline-start].sc-calcite-sheet-h .content.sc-calcite-sheet,[position=inline-end].sc-calcite-sheet-h .content.sc-calcite-sheet{block-size:100%}/*!@:host([position=block-start]) .content,\n:host([position=block-end]) .content*/[position=block-start].sc-calcite-sheet-h .content.sc-calcite-sheet,[position=block-end].sc-calcite-sheet-h .content.sc-calcite-sheet{inline-size:100%}/*!@:host([position]) .container--slotted-in-shell*/[position].sc-calcite-sheet-h .container--slotted-in-shell.sc-calcite-sheet{pointer-events:auto;position:absolute;inline-size:100%;max-inline-size:100%;min-inline-size:100%;block-size:100%;max-block-size:100%;min-block-size:100%}/*!@:host([position]) .container--slotted-in-shell calcite-scrim*/[position].sc-calcite-sheet-h .container--slotted-in-shell.sc-calcite-sheet calcite-scrim.sc-calcite-sheet{position:absolute}/*!@:host([hidden])*/[hidden].sc-calcite-sheet-h{display:none}/*!@[hidden]*/[hidden].sc-calcite-sheet{display:none}";
|
|
37420
37614
|
|
|
37421
37615
|
class Sheet {
|
|
37422
37616
|
constructor(hostRef) {
|
|
@@ -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]
|