@esri/calcite-components 1.7.0-next.13 → 1.7.0-next.15
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-007c3ec3.js +6 -0
- package/dist/calcite/p-00bb7644.js +6 -0
- package/dist/calcite/p-02a7e1df.entry.js +6 -0
- package/dist/calcite/p-02befd2f.js +6 -0
- package/dist/calcite/p-037bb301.js +6 -0
- package/dist/calcite/{p-1efcb3ea.entry.js → p-0946b370.entry.js} +2 -2
- package/dist/calcite/{p-b82299c9.entry.js → p-0997cdd3.entry.js} +2 -2
- package/dist/calcite/p-0feaada4.js +6 -0
- package/dist/calcite/p-14448051.js +6 -0
- package/dist/calcite/{p-afdf0971.js → p-1bb8af88.js} +2 -2
- package/dist/calcite/{p-6738ef06.entry.js → p-1c29face.entry.js} +2 -2
- package/dist/calcite/{p-ff56298b.js → p-1dcbf1c3.js} +2 -2
- package/dist/calcite/p-1eb219e7.entry.js +6 -0
- package/dist/calcite/{p-d84bddf2.js → p-1fde838a.js} +1 -1
- package/dist/calcite/{p-43aad518.entry.js → p-203a989f.entry.js} +2 -2
- package/dist/calcite/p-20fa2a62.entry.js +6 -0
- package/dist/calcite/p-2248e0cc.js +6 -0
- package/dist/calcite/{p-2ec82314.entry.js → p-22f06ceb.entry.js} +2 -2
- package/dist/calcite/{p-e31bc1eb.entry.js → p-231b2e94.entry.js} +2 -2
- package/dist/calcite/{p-8aecdd94.js → p-23d2cf19.js} +1 -1
- package/dist/calcite/{p-e3eb3c78.entry.js → p-25024b64.entry.js} +2 -2
- package/dist/calcite/{p-7c5235d3.entry.js → p-2d640ee8.entry.js} +2 -2
- package/dist/calcite/{p-003e75d5.entry.js → p-2dff2c48.entry.js} +2 -2
- package/dist/calcite/p-2f8763d0.js +6 -0
- package/dist/calcite/{p-44187a2b.entry.js → p-3337b1c6.entry.js} +2 -2
- package/dist/calcite/{p-5ca070ae.entry.js → p-335fba09.entry.js} +2 -2
- package/dist/calcite/{p-bbd17ec6.entry.js → p-3754cb6f.entry.js} +2 -2
- package/dist/calcite/p-3ce9a124.js +6 -0
- package/dist/calcite/{p-2cb7200e.js → p-3e206c37.js} +1 -1
- package/dist/calcite/{p-91a65ff1.entry.js → p-40023104.entry.js} +2 -2
- package/dist/calcite/p-40782cfa.js +6 -0
- package/dist/calcite/{p-5a6859da.entry.js → p-410e57db.entry.js} +2 -2
- package/dist/calcite/p-4396cd14.js +6 -0
- package/dist/calcite/p-4403a799.js +6 -0
- package/dist/calcite/p-4556194b.entry.js +6 -0
- package/dist/calcite/p-461a667a.js +6 -0
- package/dist/calcite/{p-55b7453c.js → p-46c2fbc6.js} +2 -2
- package/dist/calcite/p-47b3ff18.js +6 -0
- package/dist/calcite/p-4824f592.js +6 -0
- package/dist/calcite/p-48b91d20.js +6 -0
- package/dist/calcite/p-492d3cb1.js +6 -0
- package/dist/calcite/{p-ed53b7f7.js → p-4a651031.js} +1 -1
- package/dist/calcite/p-50b644ca.js +6 -0
- package/dist/calcite/{p-f1dd47b8.js → p-50ba6845.js} +1 -1
- package/dist/calcite/{p-1442a225.entry.js → p-52164b32.entry.js} +2 -2
- package/dist/calcite/p-52e9b64d.entry.js +6 -0
- package/dist/calcite/p-532ae163.js +6 -0
- package/dist/calcite/{p-9fb82706.entry.js → p-53584baa.entry.js} +2 -2
- package/dist/calcite/{p-1d809f99.js → p-542c5850.js} +1 -1
- package/dist/calcite/{p-c07a061a.entry.js → p-550270ae.entry.js} +2 -2
- package/dist/calcite/{p-6423a60b.entry.js → p-5551f995.entry.js} +2 -2
- package/dist/calcite/{p-8a79163d.entry.js → p-55758a37.entry.js} +2 -2
- package/dist/calcite/{p-ac147869.entry.js → p-5599adcf.entry.js} +2 -2
- package/dist/calcite/p-57e9aa34.js +6 -0
- package/dist/calcite/{p-8364af0c.entry.js → p-5a01f218.entry.js} +2 -2
- package/dist/calcite/p-5bd55830.js +6 -0
- package/dist/calcite/{p-ec7b4aa0.entry.js → p-5d0dcbfb.entry.js} +2 -2
- package/dist/calcite/{p-8a599644.entry.js → p-5ee875b7.entry.js} +2 -2
- package/dist/calcite/{p-7914d20a.entry.js → p-6193daa1.entry.js} +2 -2
- package/dist/calcite/p-65fd2d0e.js +6 -0
- package/dist/calcite/{p-0d8467bf.entry.js → p-6745d314.entry.js} +2 -2
- package/dist/calcite/p-692ab67e.js +6 -0
- package/dist/calcite/p-698670ad.js +6 -0
- package/dist/calcite/{p-bdeb9d06.js → p-6a63cc88.js} +1 -1
- package/dist/calcite/p-6af2f408.js +6 -0
- package/dist/calcite/{p-3658aee6.entry.js → p-6b236272.entry.js} +2 -2
- package/dist/calcite/p-70ef9cef.js +6 -0
- package/dist/calcite/{p-0d413952.js → p-74f54959.js} +1 -1
- package/dist/calcite/p-757310e5.js +6 -0
- package/dist/calcite/p-7607b56c.js +6 -0
- package/dist/calcite/p-76baef68.entry.js +6 -0
- package/dist/calcite/{p-f2b37961.js → p-7b5dda7e.js} +1 -1
- package/dist/calcite/{p-0735bdd7.entry.js → p-7d54fa75.entry.js} +2 -2
- package/dist/calcite/{p-7aedd7fd.entry.js → p-805935d9.entry.js} +2 -2
- package/dist/calcite/p-806469a1.js +6 -0
- package/dist/calcite/p-855d9ec9.js +6 -0
- package/dist/calcite/p-85f91ad4.js +6 -0
- package/dist/calcite/p-86b2f97a.js +6 -0
- package/dist/calcite/{p-2b00064c.js → p-87a75e12.js} +2 -2
- package/dist/calcite/{p-d0ffca9b.entry.js → p-887fdd02.entry.js} +2 -2
- package/dist/calcite/{p-32d19214.js → p-8ab93bd4.js} +1 -1
- package/dist/calcite/p-8d6122ad.js +6 -0
- package/dist/calcite/p-93f6847c.js +6 -0
- package/dist/calcite/p-972d3215.js +6 -0
- package/dist/calcite/p-97cfd319.js +6 -0
- package/dist/calcite/{p-be745308.entry.js → p-9968b9e0.entry.js} +2 -2
- package/dist/calcite/p-9b9512fd.js +6 -0
- package/dist/calcite/p-9cbf6fd2.js +6 -0
- package/dist/calcite/p-9d56cabe.js +6 -0
- package/dist/calcite/{p-3644a46c.entry.js → p-9f498574.entry.js} +2 -2
- package/dist/calcite/p-9fd7d685.js +6 -0
- package/dist/calcite/p-9ffeb6a3.js +6 -0
- package/dist/calcite/{p-db48193e.entry.js → p-a15b1706.entry.js} +2 -2
- package/dist/calcite/p-a54d9c04.js +6 -0
- package/dist/calcite/p-a71ef708.js +6 -0
- package/dist/calcite/p-a7cff8c6.js +6 -0
- package/dist/calcite/p-a9dd0db4.js +6 -0
- package/dist/calcite/{p-028c4366.entry.js → p-aa759d1c.entry.js} +2 -2
- package/dist/calcite/{p-17e62eb9.entry.js → p-ab4b95ff.entry.js} +2 -2
- package/dist/calcite/{p-b86579dd.js → p-afcc1e3d.js} +2 -2
- package/dist/calcite/p-afe859a6.js +6 -0
- package/dist/calcite/{p-461d09ae.entry.js → p-b2d05a82.entry.js} +2 -2
- package/dist/calcite/{p-0ef33e2e.entry.js → p-b47de8ae.entry.js} +2 -2
- package/dist/calcite/p-b58bc312.js +6 -0
- package/dist/calcite/{p-5ba3500a.entry.js → p-b5bffae9.entry.js} +2 -2
- package/dist/calcite/{p-90a3a149.entry.js → p-b616b875.entry.js} +2 -2
- package/dist/calcite/{p-82836922.js → p-b685ccab.js} +1 -1
- package/dist/calcite/{p-2c825d35.entry.js → p-b744990f.entry.js} +2 -2
- package/dist/calcite/{p-23109de2.entry.js → p-b8f33088.entry.js} +2 -2
- package/dist/calcite/{p-9a508498.js → p-bbb9ac9b.js} +2 -2
- package/dist/calcite/{p-fe06ca94.entry.js → p-bbdbbb67.entry.js} +2 -2
- package/dist/calcite/p-bdb87f58.js +6 -0
- package/dist/calcite/{p-8abc13d4.entry.js → p-bfe56cc8.entry.js} +2 -2
- package/dist/calcite/p-c05ae16f.entry.js +6 -0
- package/dist/calcite/p-c28b156e.js +6 -0
- package/dist/calcite/{p-fba9c586.js → p-c3616431.js} +1 -1
- package/dist/calcite/{p-106a4700.entry.js → p-c3b313f4.entry.js} +2 -2
- package/dist/calcite/{p-40b5ffc9.entry.js → p-c48fdac2.entry.js} +2 -2
- package/dist/calcite/{p-d5102f79.js → p-c6370aa4.js} +3 -3
- package/dist/calcite/{p-cfb882e5.js → p-c86acf98.js} +1 -1
- package/dist/calcite/p-cad50699.js +6 -0
- package/dist/calcite/{p-ec4ba597.entry.js → p-cf043538.entry.js} +2 -2
- package/dist/calcite/{p-270583c0.entry.js → p-cf1ad716.entry.js} +2 -2
- package/dist/calcite/{p-e2f676d4.entry.js → p-cf7d83c3.entry.js} +2 -2
- package/dist/calcite/p-d2215fda.entry.js +6 -0
- package/dist/calcite/{p-2c6dfce3.entry.js → p-d35d0dbc.entry.js} +2 -2
- package/dist/calcite/{p-c1237170.entry.js → p-d62a227a.entry.js} +2 -2
- package/dist/calcite/{p-6b421933.js → p-d9008462.js} +2 -2
- package/dist/calcite/{p-28914dec.entry.js → p-db3143e0.entry.js} +2 -2
- package/dist/calcite/{p-06f17447.entry.js → p-dcd6faab.entry.js} +2 -2
- package/dist/calcite/{p-295a05c8.js → p-dd3642e3.js} +2 -2
- package/dist/calcite/{p-f4bf05ca.js → p-de3fb84c.js} +2 -2
- package/dist/calcite/{p-7609a443.js → p-decb6e2c.js} +2 -2
- package/dist/calcite/p-ded88271.js +6 -0
- package/dist/calcite/{p-7fa21dbf.entry.js → p-df9ac2d9.entry.js} +2 -2
- package/dist/calcite/{p-e547f45f.entry.js → p-dfd6e562.entry.js} +2 -2
- package/dist/calcite/p-e256428c.entry.js +6 -0
- package/dist/calcite/{p-d5ca2223.entry.js → p-e28ea658.entry.js} +2 -2
- package/dist/calcite/p-e3c8191d.js +6 -0
- package/dist/calcite/{p-dcee696d.js → p-e4325383.js} +2 -2
- package/dist/calcite/{p-b5580f68.entry.js → p-e5b798f8.entry.js} +2 -2
- package/dist/calcite/{p-f8b43fed.js → p-e6662241.js} +2 -2
- package/dist/calcite/{p-7bfebfed.js → p-ea40c3d6.js} +2 -2
- package/dist/calcite/{p-3bde362d.entry.js → p-ebd830cf.entry.js} +2 -2
- package/dist/calcite/{p-efa22733.entry.js → p-ed665e9a.entry.js} +2 -2
- package/dist/calcite/{p-4251f642.entry.js → p-f136f8e8.entry.js} +2 -2
- package/dist/calcite/{p-ec7843e1.js → p-f1ac269c.js} +2 -2
- package/dist/calcite/{p-02645704.js → p-f366c30e.js} +1 -1
- package/dist/calcite/p-f53b58f2.js +6 -0
- package/dist/calcite/{p-a46402ae.entry.js → p-fe1a08a8.entry.js} +2 -2
- package/dist/calcite/p-fea4fd80.js +6 -0
- package/dist/calcite/{p-b82269a4.js → p-ff0b8e2c.js} +2 -2
- package/dist/cjs/{ExpandToggle-d52a28fc.js → ExpandToggle-a7dbbc1a.js} +5 -5
- package/dist/cjs/{FloatingArrow-5436d8ff.js → FloatingArrow-eadd8494.js} +2 -2
- package/dist/cjs/{Heading-277e5730.js → Heading-b5ca981d.js} +2 -2
- package/dist/cjs/{app-globals-25831d8d.js → app-globals-55b43e79.js} +2 -2
- package/dist/cjs/{ar-9afccc9d.js → ar-676d4661.js} +16 -15
- package/dist/cjs/{array-0cfea856.js → array-0eebf608.js} +1 -1
- package/dist/cjs/{bg-cecf5049.js → bg-bcd768fb.js} +16 -15
- package/dist/cjs/{bs-26979f5a.js → bs-68506139.js} +16 -15
- package/dist/cjs/{ca-27b5d9f0.js → ca-d65441a8.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 +83 -21
- package/dist/cjs/calcite-input-message.cjs.entry.js +5 -5
- package/dist/cjs/calcite-input-number.cjs.entry.js +13 -13
- package/dist/cjs/calcite-input-text.cjs.entry.js +13 -13
- package/dist/cjs/{calcite-input-time-picker.calcite-time-picker-7cd4d375.js → calcite-input-time-picker.calcite-time-picker-74f7d1fd.js} +462 -174
- package/dist/cjs/calcite-input-time-picker_2.cjs.entry.js +16 -15
- package/dist/cjs/calcite-input-time-zone.cjs.entry.js +13 -13
- package/dist/cjs/calcite-input.cjs.entry.js +13 -13
- package/dist/cjs/calcite-label.cjs.entry.js +6 -6
- package/dist/cjs/calcite-link.cjs.entry.js +7 -7
- package/dist/cjs/calcite-list_3.cjs.entry.js +14 -14
- package/dist/cjs/calcite-loader.cjs.entry.js +3 -3
- package/dist/cjs/calcite-menu_2.cjs.entry.js +10 -10
- package/dist/cjs/calcite-meter.cjs.entry.js +10 -10
- package/dist/cjs/calcite-modal.cjs.entry.js +13 -13
- package/dist/cjs/calcite-navigation_3.cjs.entry.js +6 -6
- package/dist/cjs/calcite-notice.cjs.entry.js +12 -12
- package/dist/cjs/calcite-option_3.cjs.entry.js +10 -10
- package/dist/cjs/calcite-pagination.cjs.entry.js +10 -10
- package/dist/cjs/calcite-panel.cjs.entry.js +14 -14
- package/dist/cjs/calcite-pick-list_3.cjs.entry.js +16 -16
- package/dist/cjs/calcite-popover.cjs.entry.js +16 -16
- package/dist/cjs/calcite-progress.cjs.entry.js +5 -5
- package/dist/cjs/calcite-radio-button-group.cjs.entry.js +4 -4
- package/dist/cjs/calcite-radio-button.cjs.entry.js +10 -10
- package/dist/cjs/calcite-rating.cjs.entry.js +13 -13
- package/dist/cjs/calcite-scrim.cjs.entry.js +9 -9
- package/dist/cjs/calcite-segmented-control_2.cjs.entry.js +10 -10
- package/dist/cjs/calcite-sheet.cjs.entry.js +9 -9
- package/dist/cjs/calcite-shell_3.cjs.entry.js +11 -11
- package/dist/cjs/calcite-sortable-list.cjs.entry.js +8 -8
- package/dist/cjs/calcite-split-button.cjs.entry.js +4 -4
- package/dist/cjs/calcite-stack.cjs.entry.js +6 -6
- package/dist/cjs/calcite-stepper_2.cjs.entry.js +10 -10
- package/dist/cjs/calcite-switch.cjs.entry.js +10 -10
- package/dist/cjs/calcite-tab_4.cjs.entry.js +10 -10
- package/dist/cjs/calcite-text-area.cjs.entry.js +15 -15
- package/dist/cjs/calcite-tile-select_2.cjs.entry.js +5 -5
- package/dist/cjs/calcite-tile.cjs.entry.js +8 -8
- package/dist/cjs/calcite-tip_3.cjs.entry.js +11 -11
- package/dist/cjs/calcite-tooltip.cjs.entry.js +9 -9
- package/dist/cjs/calcite-tree_2.cjs.entry.js +8 -8
- package/dist/cjs/calcite-value-list_2.cjs.entry.js +16 -16
- package/dist/cjs/calcite.cjs.js +5 -5
- package/dist/cjs/{conditionalSlot-35e0d1ff.js → conditionalSlot-a5786c5c.js} +3 -3
- package/dist/cjs/{cs-111ca8f2.js → cs-97a7bb1c.js} +16 -15
- package/dist/cjs/{da-d82e9856.js → da-f3851d5c.js} +16 -15
- package/dist/cjs/{de-at-eba92043.js → de-at-21f55bee.js} +16 -15
- package/dist/cjs/{de-ch-4d021c55.js → de-ch-e8ea7000.js} +16 -15
- package/dist/cjs/{de-61ae08b8.js → de-f231cdf7.js} +16 -15
- package/dist/cjs/{debounce-12434a9b.js → debounce-b2f36905.js} +1 -1
- package/dist/cjs/{dom-b3aeb26a.js → dom-e7bd4cb7.js} +3 -3
- package/dist/cjs/{el-f84abbda.js → el-e739883d.js} +16 -15
- package/dist/cjs/{en-au-aa1def49.js → en-au-e2a5821f.js} +16 -15
- package/dist/cjs/{en-ca-cf798137.js → en-ca-a2c7fbb8.js} +16 -15
- package/dist/cjs/{en-gb-4a6012cf.js → en-gb-26689f73.js} +16 -15
- package/dist/cjs/{es-61678472.js → es-7b551a15.js} +16 -15
- package/dist/cjs/{es-mx-cd866ce4.js → es-mx-bf466cd5.js} +16 -15
- package/dist/cjs/{et-7fffdf41.js → et-c2bdaca6.js} +16 -15
- package/dist/cjs/{fi-8f2ee314.js → fi-ab63ec68.js} +16 -15
- package/dist/cjs/{filter-bbda9f19.js → filter-92dc3c13.js} +2 -2
- package/dist/cjs/{floating-ui-b21b83ec.js → floating-ui-96140b01.js} +3 -3
- package/dist/cjs/{focusTrapComponent-5b8c6714.js → focusTrapComponent-06ac2782.js} +2 -2
- package/dist/cjs/{form-9c12dc45.js → form-edb316d0.js} +3 -3
- package/dist/cjs/{fr-ch-1fb42ab4.js → fr-ch-65bf0bbb.js} +16 -15
- package/dist/cjs/{fr-ba76b48e.js → fr-e67b1ee6.js} +16 -15
- package/dist/cjs/{guid-25401435.js → guid-644057a6.js} +1 -1
- package/dist/cjs/{he-854e468d.js → he-1584ece4.js} +16 -15
- package/dist/cjs/{hi-94d1502d.js → hi-fe82983d.js} +16 -15
- package/dist/cjs/{hr-43f1f199.js → hr-6c423352.js} +16 -15
- package/dist/cjs/{hu-bf2e6a8a.js → hu-3495e4a4.js} +16 -15
- package/dist/cjs/{id-fac3f393.js → id-d09c449b.js} +16 -15
- package/dist/cjs/{index-8c348d70.js → index-ad2cf870.js} +1 -1
- package/dist/cjs/index.cjs.js +2 -2
- package/dist/cjs/{interactive-41d7137d.js → interactive-1f1c19e2.js} +1 -1
- package/dist/cjs/{it-b74d9e4c.js → it-c2e6d7b9.js} +16 -15
- package/dist/cjs/{it-ch-ef4d6e5e.js → it-ch-3c094987.js} +16 -15
- package/dist/cjs/{ja-a02329f6.js → ja-9a01b2a4.js} +16 -15
- package/dist/cjs/{key-2d68cf34.js → key-9fe64006.js} +1 -1
- package/dist/cjs/{ko-041413b5.js → ko-f86ea633.js} +16 -15
- package/dist/cjs/{label-520032ab.js → label-dff4ea5b.js} +2 -2
- package/dist/cjs/{loadable-37f5e498.js → loadable-1bb377f1.js} +2 -2
- package/dist/cjs/loader.cjs.js +5 -5
- package/dist/cjs/{locale-3cddd6e1.js → locale-626aa262.js} +4 -4
- package/dist/cjs/{lt-39d21fb0.js → lt-3addcf3e.js} +16 -15
- package/dist/cjs/{lv-0c1227f8.js → lv-baa9fb0c.js} +16 -15
- package/dist/cjs/{math-0010fa6f.js → math-adfdb68b.js} +18 -2
- package/dist/cjs/{mk-c68493cf.js → mk-d76486b4.js} +16 -15
- package/dist/cjs/{nb-b20d78e0.js → nb-cb5485b4.js} +16 -15
- package/dist/cjs/{nl-686e0c93.js → nl-ff234132.js} +16 -15
- package/dist/cjs/{observers-591d8eb9.js → observers-da576c60.js} +1 -1
- package/dist/cjs/{openCloseComponent-c33e00e7.js → openCloseComponent-f4deda11.js} +2 -2
- package/dist/cjs/{pl-a834e9f8.js → pl-d9d3b37a.js} +16 -15
- package/dist/cjs/{pt-08a11aa1.js → pt-4cf96854.js} +16 -15
- package/dist/cjs/{pt-br-f922b1e9.js → pt-br-8e687141.js} +16 -15
- package/dist/cjs/{resources-67855b02.js → resources-3516b562.js} +5 -5
- package/dist/cjs/{resources-d340411e.js → resources-37aff98c.js} +1 -1
- package/dist/cjs/{resources-beb12f5a.js → resources-3a53ed25.js} +1 -1
- package/dist/cjs/{resources-0a2120bb.js → resources-65147bd4.js} +1 -1
- package/dist/cjs/{resources-5ece50c0.js → resources-77406b7a.js} +1 -1
- package/dist/cjs/{resources-3b2c4161.js → resources-7a384d48.js} +1 -1
- package/dist/cjs/{resources-e0612f0e.js → resources-90190440.js} +1 -1
- package/dist/cjs/{ro-0d34042f.js → ro-c97f9408.js} +16 -15
- package/dist/cjs/{ru-c0d15012.js → ru-0b476a0c.js} +16 -15
- package/dist/cjs/{sk-fe2c5d02.js → sk-eba54730.js} +16 -15
- package/dist/cjs/{sl-4621cf34.js → sl-b93fe9d8.js} +16 -15
- package/dist/cjs/{sortableComponent-9445fc94.js → sortableComponent-77a33ace.js} +2 -2
- package/dist/cjs/{sr-2dd3795b.js → sr-4f17ba65.js} +16 -15
- package/dist/cjs/{sv-7e163dbd.js → sv-27e664de.js} +16 -15
- package/dist/cjs/{t9n-1919af49.js → t9n-e16d3797.js} +3 -3
- package/dist/cjs/{th-3a5b5e1f.js → th-dada71c1.js} +16 -15
- package/dist/cjs/{throttle-0638b33c.js → throttle-16e8666d.js} +2 -2
- package/dist/cjs/{tr-e585a0e3.js → tr-6916ed57.js} +16 -15
- package/dist/cjs/{uk-c18ef84e.js → uk-046465a6.js} +16 -15
- package/dist/cjs/{utils-5eadf502.js → utils-9861df25.js} +14 -3
- package/dist/cjs/{utils-2bb1996e.js → utils-f13ba596.js} +1 -1
- package/dist/cjs/{vi-fd376807.js → vi-621da23b.js} +16 -15
- package/dist/cjs/{zh-cn-11c18ca7.js → zh-cn-7ceeda57.js} +16 -15
- package/dist/cjs/{zh-hk-1d39de2e.js → zh-hk-68ad0128.js} +16 -15
- package/dist/cjs/{zh-tw-33ff727d.js → zh-tw-f47cdecc.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 +61 -5
- package/dist/collection/components/input-date-picker/resources.js +1 -1
- package/dist/collection/components/input-date-picker/utils.js +30 -0
- package/dist/collection/components/input-message/input-message.js +1 -1
- package/dist/collection/components/input-message/interfaces.js +1 -1
- package/dist/collection/components/input-number/input-number.js +1 -1
- package/dist/collection/components/input-number/resources.js +1 -1
- package/dist/collection/components/input-text/input-text.js +1 -1
- package/dist/collection/components/input-text/resources.js +1 -1
- package/dist/collection/components/input-time-picker/input-time-picker.js +129 -27
- package/dist/collection/components/input-time-picker/resources.js +1 -1
- package/dist/collection/components/input-time-zone/input-time-zone.js +1 -1
- package/dist/collection/components/input-time-zone/utils.js +1 -1
- package/dist/collection/components/label/label.js +1 -1
- package/dist/collection/components/label/resources.js +1 -1
- package/dist/collection/components/link/link.js +1 -1
- package/dist/collection/components/list/list.js +1 -1
- package/dist/collection/components/list/resources.js +1 -1
- package/dist/collection/components/list-item/list-item.js +1 -1
- package/dist/collection/components/list-item/resources.js +1 -1
- package/dist/collection/components/list-item/utils.js +1 -1
- package/dist/collection/components/list-item-group/list-item-group.js +1 -1
- package/dist/collection/components/list-item-group/resources.js +1 -1
- package/dist/collection/components/loader/loader.js +1 -1
- package/dist/collection/components/menu/menu.js +1 -1
- package/dist/collection/components/menu-item/menu-item.js +1 -1
- package/dist/collection/components/menu-item/resources.js +1 -1
- package/dist/collection/components/meter/meter.js +1 -1
- package/dist/collection/components/meter/resources.js +1 -1
- package/dist/collection/components/modal/modal.js +1 -1
- package/dist/collection/components/modal/resources.js +1 -1
- package/dist/collection/components/navigation/navigation.js +1 -1
- package/dist/collection/components/navigation/resources.js +1 -1
- package/dist/collection/components/navigation-logo/navigation-logo.js +1 -1
- package/dist/collection/components/navigation-logo/resources.js +1 -1
- package/dist/collection/components/navigation-user/navigation-user.js +1 -1
- package/dist/collection/components/navigation-user/resources.js +1 -1
- package/dist/collection/components/notice/notice.js +1 -1
- package/dist/collection/components/notice/resources.js +1 -1
- package/dist/collection/components/option/option.js +1 -1
- package/dist/collection/components/option-group/option-group.js +1 -1
- package/dist/collection/components/pagination/pagination.js +1 -1
- package/dist/collection/components/pagination/resources.js +1 -1
- package/dist/collection/components/panel/panel.js +1 -1
- package/dist/collection/components/panel/resources.js +1 -1
- package/dist/collection/components/pick-list/pick-list.js +1 -1
- package/dist/collection/components/pick-list/resources.js +1 -1
- package/dist/collection/components/pick-list/shared-list-logic.js +1 -1
- package/dist/collection/components/pick-list/shared-list-render.js +1 -1
- package/dist/collection/components/pick-list-group/pick-list-group.js +1 -1
- package/dist/collection/components/pick-list-group/resources.js +1 -1
- package/dist/collection/components/pick-list-item/pick-list-item.js +1 -1
- package/dist/collection/components/pick-list-item/resources.js +1 -1
- package/dist/collection/components/popover/PopoverManager.js +1 -1
- package/dist/collection/components/popover/popover.js +1 -1
- package/dist/collection/components/popover/resources.js +1 -1
- package/dist/collection/components/progress/progress.js +1 -1
- package/dist/collection/components/radio-button/radio-button.js +1 -1
- package/dist/collection/components/radio-button/resources.js +1 -1
- package/dist/collection/components/radio-button-group/radio-button-group.js +1 -1
- package/dist/collection/components/rating/function/star.js +1 -1
- package/dist/collection/components/rating/rating.js +1 -1
- package/dist/collection/components/resources.js +1 -1
- package/dist/collection/components/scrim/resources.js +1 -1
- package/dist/collection/components/scrim/scrim.js +1 -1
- package/dist/collection/components/segmented-control/segmented-control.js +1 -1
- package/dist/collection/components/segmented-control-item/resources.js +1 -1
- package/dist/collection/components/segmented-control-item/segmented-control-item.js +1 -1
- package/dist/collection/components/select/resources.js +1 -1
- package/dist/collection/components/select/select.js +1 -1
- package/dist/collection/components/sheet/resources.js +1 -1
- package/dist/collection/components/sheet/sheet.js +1 -1
- package/dist/collection/components/shell/resources.js +1 -1
- package/dist/collection/components/shell/shell.js +2 -2
- package/dist/collection/components/shell-center-row/resources.js +1 -1
- package/dist/collection/components/shell-center-row/shell-center-row.js +1 -1
- package/dist/collection/components/shell-panel/resources.js +1 -1
- package/dist/collection/components/shell-panel/shell-panel.js +1 -1
- package/dist/collection/components/slider/resources.js +1 -1
- package/dist/collection/components/slider/slider.js +1 -1
- package/dist/collection/components/sortable-list/resources.js +1 -1
- package/dist/collection/components/sortable-list/sortable-list.js +1 -1
- package/dist/collection/components/split-button/resources.js +1 -1
- package/dist/collection/components/split-button/split-button.js +1 -1
- package/dist/collection/components/stack/resources.js +1 -1
- package/dist/collection/components/stack/stack.js +1 -1
- package/dist/collection/components/stepper/stepper.js +1 -1
- package/dist/collection/components/stepper-item/stepper-item.js +1 -1
- package/dist/collection/components/switch/switch.js +1 -1
- package/dist/collection/components/tab/tab.js +1 -1
- package/dist/collection/components/tab-nav/tab-nav.js +1 -1
- package/dist/collection/components/tab-title/resources.js +1 -1
- package/dist/collection/components/tab-title/tab-title.js +1 -1
- package/dist/collection/components/tabs/resources.js +1 -1
- package/dist/collection/components/tabs/tabs.js +1 -1
- package/dist/collection/components/text-area/resources.js +1 -1
- package/dist/collection/components/text-area/text-area.js +1 -1
- package/dist/collection/components/tile/resources.js +1 -1
- package/dist/collection/components/tile/tile.js +1 -1
- package/dist/collection/components/tile-select/resources.js +1 -1
- package/dist/collection/components/tile-select/tile-select.js +1 -1
- package/dist/collection/components/tile-select-group/tile-select-group.js +1 -1
- package/dist/collection/components/time-picker/assets/time-picker/t9n/index.d.ts +3 -0
- package/dist/collection/components/time-picker/assets/time-picker/t9n/messages.json +3 -0
- package/dist/collection/components/time-picker/assets/time-picker/t9n/messages_en.json +3 -0
- package/dist/collection/components/time-picker/resources.js +4 -1
- package/dist/collection/components/time-picker/time-picker.js +186 -76
- package/dist/collection/components/tip/resources.js +1 -1
- package/dist/collection/components/tip/tip.js +1 -1
- package/dist/collection/components/tip-group/tip-group.js +1 -1
- package/dist/collection/components/tip-manager/resources.js +1 -1
- package/dist/collection/components/tip-manager/tip-manager.js +1 -1
- package/dist/collection/components/tooltip/TooltipManager.js +1 -1
- package/dist/collection/components/tooltip/resources.js +1 -1
- package/dist/collection/components/tooltip/tooltip.js +1 -1
- package/dist/collection/components/tooltip/utils.js +1 -1
- package/dist/collection/components/tree/tree.js +1 -1
- package/dist/collection/components/tree/utils.js +1 -1
- package/dist/collection/components/tree-item/resources.js +1 -1
- package/dist/collection/components/tree-item/tree-item.js +1 -1
- package/dist/collection/components/value-list/resources.js +1 -1
- package/dist/collection/components/value-list/utils.js +1 -1
- package/dist/collection/components/value-list/value-list.js +1 -1
- package/dist/collection/components/value-list-item/resources.js +1 -1
- package/dist/collection/components/value-list-item/value-list-item.js +1 -1
- package/dist/collection/index.js +1 -1
- package/dist/collection/utils/array.js +1 -1
- package/dist/collection/utils/browser.js +1 -1
- package/dist/collection/utils/conditionalSlot.js +1 -1
- package/dist/collection/utils/config.js +1 -1
- package/dist/collection/utils/date.js +11 -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 +68 -5
- package/dist/components/calcite-input-message.js +1 -1
- package/dist/components/calcite-input-number.js +1 -1
- package/dist/components/calcite-input-text.js +1 -1
- package/dist/components/calcite-input-time-picker.js +128 -26
- package/dist/components/calcite-input-time-zone.js +1 -1
- package/dist/components/calcite-input.js +1 -1
- package/dist/components/calcite-label.js +1 -1
- package/dist/components/calcite-link.js +1 -1
- package/dist/components/calcite-list-item-group.js +1 -1
- package/dist/components/calcite-list-item.js +1 -1
- package/dist/components/calcite-list.js +1 -1
- package/dist/components/calcite-loader.js +1 -1
- package/dist/components/calcite-menu-item.js +1 -1
- package/dist/components/calcite-menu.js +1 -1
- package/dist/components/calcite-meter.js +1 -1
- package/dist/components/calcite-modal.js +1 -1
- package/dist/components/calcite-navigation-logo.js +1 -1
- package/dist/components/calcite-navigation-user.js +1 -1
- package/dist/components/calcite-navigation.js +1 -1
- package/dist/components/calcite-notice.js +1 -1
- package/dist/components/calcite-option-group.js +1 -1
- package/dist/components/calcite-option.js +1 -1
- package/dist/components/calcite-pagination.js +1 -1
- package/dist/components/calcite-panel.js +1 -1
- package/dist/components/calcite-pick-list-group.js +1 -1
- package/dist/components/calcite-pick-list-item.js +1 -1
- package/dist/components/calcite-pick-list.js +1 -1
- package/dist/components/calcite-popover.js +1 -1
- package/dist/components/calcite-progress.js +1 -1
- package/dist/components/calcite-radio-button-group.js +1 -1
- package/dist/components/calcite-radio-button.js +1 -1
- package/dist/components/calcite-rating.js +1 -1
- package/dist/components/calcite-scrim.js +1 -1
- package/dist/components/calcite-segmented-control-item.js +1 -1
- package/dist/components/calcite-segmented-control.js +1 -1
- package/dist/components/calcite-select.js +1 -1
- package/dist/components/calcite-sheet.js +1 -1
- package/dist/components/calcite-shell-center-row.js +1 -1
- package/dist/components/calcite-shell-panel.js +1 -1
- package/dist/components/calcite-shell.js +1 -1
- package/dist/components/calcite-slider.js +1 -1
- package/dist/components/calcite-sortable-list.js +1 -1
- package/dist/components/calcite-split-button.js +1 -1
- package/dist/components/calcite-stack.js +1 -1
- package/dist/components/calcite-stepper-item.js +1 -1
- package/dist/components/calcite-stepper.js +1 -1
- package/dist/components/calcite-switch.js +1 -1
- package/dist/components/calcite-tab-nav.js +1 -1
- package/dist/components/calcite-tab-title.js +1 -1
- package/dist/components/calcite-tab.js +1 -1
- package/dist/components/calcite-tabs.js +1 -1
- package/dist/components/calcite-text-area.js +1 -1
- package/dist/components/calcite-tile-select-group.js +1 -1
- package/dist/components/calcite-tile-select.js +1 -1
- package/dist/components/calcite-tile.js +1 -1
- package/dist/components/calcite-time-picker.js +1 -1
- package/dist/components/calcite-tip-group.js +1 -1
- package/dist/components/calcite-tip-manager.js +1 -1
- package/dist/components/calcite-tip.js +1 -1
- package/dist/components/calcite-tooltip.js +1 -1
- package/dist/components/calcite-tree-item.js +1 -1
- package/dist/components/calcite-tree.js +1 -1
- package/dist/components/calcite-value-list-item.js +1 -1
- package/dist/components/calcite-value-list.js +1 -1
- package/dist/components/checkbox.js +1 -1
- package/dist/components/chip.js +1 -1
- package/dist/components/color-picker-hex-input.js +1 -1
- package/dist/components/color-picker-swatch.js +1 -1
- package/dist/components/combobox-item.js +1 -1
- package/dist/components/combobox.js +1 -1
- package/dist/components/conditionalSlot.js +1 -1
- package/dist/components/cs.js +1 -1
- package/dist/components/da.js +1 -1
- package/dist/components/date-picker-day.js +2 -2
- package/dist/components/date-picker-month-header.js +2 -2
- package/dist/components/date-picker-month.js +2 -2
- package/dist/components/date-picker.js +2 -2
- package/dist/components/date.js +12 -2
- package/dist/components/de-at.js +1 -1
- package/dist/components/de-ch.js +1 -1
- package/dist/components/de.js +1 -1
- package/dist/components/debounce.js +1 -1
- package/dist/components/dom.js +1 -1
- package/dist/components/dropdown.js +1 -1
- package/dist/components/el.js +1 -1
- package/dist/components/en-au.js +1 -1
- package/dist/components/en-ca.js +1 -1
- package/dist/components/en-gb.js +1 -1
- package/dist/components/es-mx.js +1 -1
- package/dist/components/es.js +1 -1
- package/dist/components/et.js +1 -1
- package/dist/components/fi.js +1 -1
- package/dist/components/filter.js +1 -1
- package/dist/components/filter2.js +1 -1
- package/dist/components/floating-ui.js +1 -1
- package/dist/components/focusTrapComponent.js +1 -1
- package/dist/components/form.js +1 -1
- package/dist/components/fr-ch.js +1 -1
- package/dist/components/fr.js +1 -1
- package/dist/components/graph.js +1 -1
- package/dist/components/guid.js +1 -1
- package/dist/components/handle.js +1 -1
- package/dist/components/he.js +1 -1
- package/dist/components/hi.js +1 -1
- package/dist/components/hr.js +1 -1
- package/dist/components/hu.js +1 -1
- package/dist/components/icon.js +1 -1
- package/dist/components/id.js +1 -1
- package/dist/components/index.js +1 -1
- package/dist/components/index2.js +1 -1
- package/dist/components/input-number.js +1 -1
- package/dist/components/input-text.js +1 -1
- package/dist/components/input.js +1 -1
- package/dist/components/interactive.js +1 -1
- package/dist/components/it-ch.js +1 -1
- package/dist/components/it.js +1 -1
- package/dist/components/ja.js +1 -1
- package/dist/components/key.js +1 -1
- package/dist/components/ko.js +1 -1
- package/dist/components/label.js +1 -1
- package/dist/components/label2.js +1 -1
- package/dist/components/link.js +1 -1
- package/dist/components/loadable.js +1 -1
- package/dist/components/loader.js +1 -1
- package/dist/components/locale.js +1 -1
- package/dist/components/lt.js +1 -1
- package/dist/components/lv.js +1 -1
- package/dist/components/math.js +18 -3
- package/dist/components/menu.js +1 -1
- package/dist/components/mk.js +1 -1
- package/dist/components/nb.js +1 -1
- package/dist/components/nl.js +1 -1
- package/dist/components/observers.js +1 -1
- package/dist/components/openCloseComponent.js +1 -1
- package/dist/components/panel.js +1 -1
- package/dist/components/pick-list-item.js +1 -1
- package/dist/components/pl.js +1 -1
- package/dist/components/popover.js +1 -1
- package/dist/components/progress.js +1 -1
- package/dist/components/pt-br.js +1 -1
- package/dist/components/pt.js +1 -1
- package/dist/components/resources.js +1 -1
- package/dist/components/resources2.js +1 -1
- package/dist/components/resources3.js +1 -1
- package/dist/components/resources4.js +1 -1
- package/dist/components/ro.js +1 -1
- package/dist/components/ru.js +1 -1
- package/dist/components/scrim.js +1 -1
- package/dist/components/shared-list-render.js +1 -1
- package/dist/components/sk.js +1 -1
- package/dist/components/sl.js +1 -1
- package/dist/components/sortableComponent.js +1 -1
- package/dist/components/sr.js +1 -1
- package/dist/components/stack.js +1 -1
- package/dist/components/sv.js +1 -1
- package/dist/components/switch.js +1 -1
- package/dist/components/t9n.js +1 -1
- package/dist/components/tab-nav.js +1 -1
- package/dist/components/tab-title.js +1 -1
- package/dist/components/tab.js +1 -1
- package/dist/components/tabs.js +1 -1
- package/dist/components/th.js +1 -1
- package/dist/components/throttle.js +1 -1
- package/dist/components/tile.js +1 -1
- package/dist/components/time-picker.js +285 -94
- package/dist/components/tr.js +1 -1
- package/dist/components/uk.js +1 -1
- package/dist/components/utils.js +1 -1
- package/dist/components/utils2.js +1 -1
- package/dist/components/utils3.js +1 -1
- package/dist/components/vi.js +1 -1
- package/dist/components/zh-cn.js +1 -1
- package/dist/components/zh-hk.js +1 -1
- package/dist/components/zh-tw.js +1 -1
- package/dist/esm/{ExpandToggle-6ec45edd.js → ExpandToggle-bf0f87aa.js} +5 -5
- package/dist/esm/{FloatingArrow-6686d03e.js → FloatingArrow-bb85386c.js} +2 -2
- package/dist/esm/{Heading-8e4b47e7.js → Heading-fcdd4ccf.js} +2 -2
- package/dist/esm/{app-globals-2fff341c.js → app-globals-b6666a16.js} +2 -2
- package/dist/esm/{ar-7cca40ea.js → ar-5357c717.js} +16 -15
- package/dist/esm/{array-543b1c8c.js → array-ccfcdd0f.js} +1 -1
- package/dist/esm/{bg-25bf4ee6.js → bg-6a6f5adc.js} +16 -15
- package/dist/esm/{bs-4be99035.js → bs-9058dc82.js} +16 -15
- package/dist/esm/{ca-431f5ffd.js → ca-383aa3fa.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 +83 -21
- package/dist/esm/calcite-input-message.entry.js +5 -5
- package/dist/esm/calcite-input-number.entry.js +13 -13
- package/dist/esm/calcite-input-text.entry.js +13 -13
- package/dist/esm/{calcite-input-time-picker.calcite-time-picker-c2e3e738.js → calcite-input-time-picker.calcite-time-picker-a1e1a130.js} +462 -174
- package/dist/esm/calcite-input-time-picker_2.entry.js +16 -15
- package/dist/esm/calcite-input-time-zone.entry.js +13 -13
- package/dist/esm/calcite-input.entry.js +13 -13
- package/dist/esm/calcite-label.entry.js +6 -6
- package/dist/esm/calcite-link.entry.js +7 -7
- package/dist/esm/calcite-list_3.entry.js +14 -14
- package/dist/esm/calcite-loader.entry.js +3 -3
- package/dist/esm/calcite-menu_2.entry.js +10 -10
- package/dist/esm/calcite-meter.entry.js +10 -10
- package/dist/esm/calcite-modal.entry.js +13 -13
- package/dist/esm/calcite-navigation_3.entry.js +6 -6
- package/dist/esm/calcite-notice.entry.js +12 -12
- package/dist/esm/calcite-option_3.entry.js +10 -10
- package/dist/esm/calcite-pagination.entry.js +10 -10
- package/dist/esm/calcite-panel.entry.js +14 -14
- package/dist/esm/calcite-pick-list_3.entry.js +16 -16
- package/dist/esm/calcite-popover.entry.js +16 -16
- package/dist/esm/calcite-progress.entry.js +5 -5
- package/dist/esm/calcite-radio-button-group.entry.js +4 -4
- package/dist/esm/calcite-radio-button.entry.js +10 -10
- package/dist/esm/calcite-rating.entry.js +13 -13
- package/dist/esm/calcite-scrim.entry.js +9 -9
- package/dist/esm/calcite-segmented-control_2.entry.js +10 -10
- package/dist/esm/calcite-sheet.entry.js +9 -9
- package/dist/esm/calcite-shell_3.entry.js +11 -11
- package/dist/esm/calcite-sortable-list.entry.js +8 -8
- package/dist/esm/calcite-split-button.entry.js +4 -4
- package/dist/esm/calcite-stack.entry.js +6 -6
- package/dist/esm/calcite-stepper_2.entry.js +10 -10
- package/dist/esm/calcite-switch.entry.js +10 -10
- package/dist/esm/calcite-tab_4.entry.js +10 -10
- package/dist/esm/calcite-text-area.entry.js +15 -15
- package/dist/esm/calcite-tile-select_2.entry.js +5 -5
- package/dist/esm/calcite-tile.entry.js +8 -8
- package/dist/esm/calcite-tip_3.entry.js +11 -11
- package/dist/esm/calcite-tooltip.entry.js +9 -9
- package/dist/esm/calcite-tree_2.entry.js +8 -8
- package/dist/esm/calcite-value-list_2.entry.js +16 -16
- package/dist/esm/calcite.js +6 -6
- package/dist/esm/{conditionalSlot-1d749369.js → conditionalSlot-a632bc93.js} +3 -3
- package/dist/esm/{cs-782d542f.js → cs-62e56a64.js} +16 -15
- package/dist/esm/{da-3d378e16.js → da-96d86789.js} +16 -15
- package/dist/esm/{de-7c478ee3.js → de-a3370610.js} +16 -15
- package/dist/esm/{de-at-c2770b6c.js → de-at-52ac9fe5.js} +16 -15
- package/dist/esm/{de-ch-cd4b90e9.js → de-ch-5796fdb4.js} +16 -15
- package/dist/esm/{debounce-2e8883fd.js → debounce-c84d411d.js} +1 -1
- package/dist/esm/{dom-a03c37b6.js → dom-3294f067.js} +3 -3
- package/dist/esm/{el-527357bd.js → el-fa9c30f1.js} +16 -15
- package/dist/esm/{en-au-87c50dce.js → en-au-c9ebfa80.js} +16 -15
- package/dist/esm/{en-ca-31d241e1.js → en-ca-4d4dc66c.js} +16 -15
- package/dist/esm/{en-gb-92c502dc.js → en-gb-60a9a498.js} +16 -15
- package/dist/esm/{es-e8e2cbfd.js → es-68df2022.js} +16 -15
- package/dist/esm/{es-mx-b9a80253.js → es-mx-0974ad94.js} +16 -15
- package/dist/esm/{et-0fb079e4.js → et-ab114a16.js} +16 -15
- package/dist/esm/{fi-572a315d.js → fi-fb462cf0.js} +16 -15
- package/dist/esm/{filter-f3b884fd.js → filter-c5e813c2.js} +2 -2
- package/dist/esm/{floating-ui-a4cb044f.js → floating-ui-af58437e.js} +3 -3
- package/dist/esm/{focusTrapComponent-5cde505c.js → focusTrapComponent-2500e814.js} +2 -2
- package/dist/esm/{form-44b83a17.js → form-99051e7d.js} +3 -3
- package/dist/esm/{fr-d5ee90ed.js → fr-77e29560.js} +16 -15
- package/dist/esm/{fr-ch-04190e70.js → fr-ch-6378c2a1.js} +16 -15
- package/dist/esm/{guid-922dbbe0.js → guid-462aba50.js} +1 -1
- package/dist/esm/{he-745cfc9f.js → he-a037c4bf.js} +16 -15
- package/dist/esm/{hi-262e499d.js → hi-8d5cbee5.js} +16 -15
- package/dist/esm/{hr-d2e680f6.js → hr-f739783e.js} +16 -15
- package/dist/esm/{hu-fd8e4a6c.js → hu-2af082a1.js} +16 -15
- package/dist/esm/{id-96611a8f.js → id-4a040b69.js} +16 -15
- package/dist/esm/{index-b970cf2b.js → index-2220b578.js} +1 -1
- package/dist/esm/index.js +2 -2
- package/dist/esm/{interactive-a5b4cda0.js → interactive-917baaab.js} +1 -1
- package/dist/esm/{it-ch-ba049790.js → it-ch-1134f90d.js} +16 -15
- package/dist/esm/{it-6c8731eb.js → it-f4cc27ce.js} +16 -15
- package/dist/esm/{ja-b4d82dd3.js → ja-a557bde1.js} +16 -15
- package/dist/esm/{key-4913bd62.js → key-0a9a7c11.js} +1 -1
- package/dist/esm/{ko-d4a90140.js → ko-8e6ca8b8.js} +16 -15
- package/dist/esm/{label-5ecfd527.js → label-d23303da.js} +2 -2
- package/dist/esm/{loadable-2460e79e.js → loadable-a506fce5.js} +2 -2
- package/dist/esm/loader.js +6 -6
- package/dist/esm/{locale-ccb8fa38.js → locale-0521067c.js} +4 -4
- package/dist/esm/{lt-55ff2da9.js → lt-7bd686f3.js} +16 -15
- package/dist/esm/{lv-c24efb10.js → lv-88258bdd.js} +16 -15
- package/dist/esm/{math-14207747.js → math-54e57a6d.js} +18 -3
- package/dist/esm/{mk-18326341.js → mk-9fb1eceb.js} +16 -15
- package/dist/esm/{nb-48fda3d1.js → nb-621a3850.js} +16 -15
- package/dist/esm/{nl-26d47719.js → nl-ec3d1afc.js} +16 -15
- package/dist/esm/{observers-70b65313.js → observers-f954756c.js} +1 -1
- package/dist/esm/{openCloseComponent-17fc613e.js → openCloseComponent-b246f9ff.js} +2 -2
- package/dist/esm/{pl-c5d5ee7d.js → pl-a8793fc2.js} +16 -15
- package/dist/esm/{pt-br-52032196.js → pt-br-fff4bdda.js} +16 -15
- package/dist/esm/{pt-f1559439.js → pt-c2639b18.js} +16 -15
- package/dist/esm/{resources-b6b3ead3.js → resources-069ce391.js} +1 -1
- package/dist/esm/{resources-1ce1d9ef.js → resources-12c5581f.js} +1 -1
- package/dist/esm/{resources-a58cb4da.js → resources-3049fc4f.js} +5 -5
- package/dist/esm/{resources-489bb1fc.js → resources-808ed162.js} +1 -1
- package/dist/esm/{resources-61acd6cf.js → resources-c719bd2c.js} +1 -1
- package/dist/esm/{resources-f97a4829.js → resources-d4e19430.js} +1 -1
- package/dist/esm/{resources-08e09a4c.js → resources-df7e2247.js} +1 -1
- package/dist/esm/{ro-1da80b10.js → ro-ccf3ed16.js} +16 -15
- package/dist/esm/{ru-e7cd85fd.js → ru-02edbf33.js} +16 -15
- package/dist/esm/{sk-cb838437.js → sk-9ddefee7.js} +16 -15
- package/dist/esm/{sl-06c67a88.js → sl-5b5b18ec.js} +16 -15
- package/dist/esm/{sortableComponent-a18d2d68.js → sortableComponent-8c3c954d.js} +2 -2
- package/dist/esm/{sr-8a02e97f.js → sr-786e95f5.js} +16 -15
- package/dist/esm/{sv-3ccf128e.js → sv-3328887c.js} +16 -15
- package/dist/esm/{t9n-b3120e3b.js → t9n-d51e8c70.js} +3 -3
- package/dist/esm/{th-bc3a4f60.js → th-a5ef18dc.js} +16 -15
- package/dist/esm/{throttle-7012372b.js → throttle-f07a0c1a.js} +2 -2
- package/dist/esm/{tr-ca509c5a.js → tr-0023808e.js} +16 -15
- package/dist/esm/{uk-8410f044.js → uk-c6bc2eda.js} +16 -15
- package/dist/esm/{utils-8a9ae941.js → utils-5090842e.js} +1 -1
- package/dist/esm/{utils-d7c18644.js → utils-d9cd488f.js} +14 -4
- package/dist/esm/{vi-4bfdfc5e.js → vi-1db432eb.js} +16 -15
- package/dist/esm/{zh-cn-dc66f578.js → zh-cn-9f94c010.js} +16 -15
- package/dist/esm/{zh-hk-2379a9d5.js → zh-hk-e521cb48.js} +16 -15
- package/dist/esm/{zh-tw-b373850b.js → zh-tw-67f6ee11.js} +16 -15
- package/dist/extras/docs-json.json +28 -10
- package/dist/extras/translations-json.json +1 -1
- package/dist/extras/vscode-data.json +5 -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-date-picker/input-date-picker.d.ts +5 -0
- package/dist/types/components/input-date-picker/utils.d.ts +14 -0
- 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/components.d.ts +8 -0
- package/dist/types/utils/date.d.ts +11 -0
- package/dist/types/utils/math.d.ts +11 -1
- package/dist/types/utils/time.d.ts +11 -4
- package/hydrate/index.js +504 -125
- package/package.json +3 -2
- package/dist/calcite/p-02a66b81.js +0 -6
- package/dist/calcite/p-08b57d78.js +0 -6
- package/dist/calcite/p-08babfc8.js +0 -6
- package/dist/calcite/p-0a0bfbc4.js +0 -6
- package/dist/calcite/p-0e18467a.js +0 -6
- package/dist/calcite/p-1005d74a.js +0 -6
- package/dist/calcite/p-1281e636.entry.js +0 -6
- package/dist/calcite/p-1408ab17.js +0 -6
- package/dist/calcite/p-146568f9.js +0 -6
- package/dist/calcite/p-16a8cf43.js +0 -6
- package/dist/calcite/p-1867b8a2.entry.js +0 -6
- package/dist/calcite/p-212777e1.js +0 -6
- package/dist/calcite/p-2270fdcd.js +0 -6
- package/dist/calcite/p-28ecf950.js +0 -6
- package/dist/calcite/p-2b554c61.js +0 -6
- package/dist/calcite/p-2d235e44.js +0 -6
- package/dist/calcite/p-2e02a0fd.js +0 -6
- package/dist/calcite/p-2f46f849.js +0 -6
- package/dist/calcite/p-3543c6fe.js +0 -6
- package/dist/calcite/p-3ca1c073.js +0 -6
- package/dist/calcite/p-413368f9.entry.js +0 -6
- package/dist/calcite/p-4a22d356.js +0 -6
- package/dist/calcite/p-4de0b8f2.js +0 -6
- package/dist/calcite/p-4f70556d.js +0 -6
- package/dist/calcite/p-528ca15e.js +0 -6
- package/dist/calcite/p-59bc3475.js +0 -6
- package/dist/calcite/p-5dbc3567.js +0 -6
- package/dist/calcite/p-61f3c2c6.js +0 -6
- package/dist/calcite/p-6d93302b.js +0 -6
- package/dist/calcite/p-739e0464.entry.js +0 -6
- package/dist/calcite/p-76cf8f88.js +0 -6
- package/dist/calcite/p-79cfc70d.js +0 -6
- package/dist/calcite/p-7b199ad8.js +0 -6
- package/dist/calcite/p-82b74ef5.js +0 -6
- package/dist/calcite/p-84f8301f.js +0 -6
- package/dist/calcite/p-871194b0.js +0 -6
- package/dist/calcite/p-89c0ed08.js +0 -6
- package/dist/calcite/p-8b8f61ae.entry.js +0 -6
- package/dist/calcite/p-8efbe93f.js +0 -6
- package/dist/calcite/p-933e9515.js +0 -6
- package/dist/calcite/p-9609f88e.js +0 -6
- package/dist/calcite/p-994d9526.js +0 -6
- package/dist/calcite/p-9cffee1f.js +0 -6
- package/dist/calcite/p-9d93675d.js +0 -6
- package/dist/calcite/p-a7603764.js +0 -6
- package/dist/calcite/p-a796c3c0.js +0 -6
- package/dist/calcite/p-ac50a667.js +0 -6
- package/dist/calcite/p-b0ceca11.js +0 -6
- package/dist/calcite/p-b7bfe8d1.js +0 -6
- package/dist/calcite/p-bcdfe53c.entry.js +0 -6
- package/dist/calcite/p-c0ad0d34.entry.js +0 -6
- package/dist/calcite/p-c53f6979.js +0 -6
- package/dist/calcite/p-c88bd734.entry.js +0 -6
- package/dist/calcite/p-c9faebe1.js +0 -6
- package/dist/calcite/p-cc1cca51.js +0 -6
- package/dist/calcite/p-d82bf2fd.js +0 -6
- package/dist/calcite/p-ddc7d0e8.js +0 -6
- package/dist/calcite/p-e7096434.js +0 -6
- package/dist/calcite/p-e760291e.js +0 -6
- package/dist/calcite/p-ee6ef481.entry.js +0 -6
- package/dist/calcite/p-ef664e89.js +0 -6
- package/dist/calcite/p-f87cfecc.js +0 -6
- package/dist/calcite/p-fdd39b9a.js +0 -6
|
@@ -1,17 +1,18 @@
|
|
|
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.15
|
|
5
5
|
*/
|
|
6
6
|
import { proxyCustomElement, HTMLElement, createEvent, h } from '@stencil/core/internal/client/index.js';
|
|
7
|
-
import { n as numberKeys
|
|
8
|
-
import { a as getDateTimeFormat, i as isValidNumber, e as getSupportedNumberingSystem, c as connectLocalized, d as disconnectLocalized } from './locale.js';
|
|
7
|
+
import { n as numberKeys } from './key.js';
|
|
8
|
+
import { n as numberStringFormatter, a as getDateTimeFormat, i as isValidNumber, e as getSupportedNumberingSystem, c as connectLocalized, d as disconnectLocalized } from './locale.js';
|
|
9
9
|
import { u as updateMessages, c as connectMessages, s as setUpMessages, d as disconnectMessages } from './t9n.js';
|
|
10
|
+
import { d as decimalPlaces, g as getDecimals } from './math.js';
|
|
10
11
|
import { c as componentFocusable, a as setUpLoadableComponent, s as setComponentLoaded } from './loadable.js';
|
|
11
12
|
import { d as defineCustomElement$1 } from './icon.js';
|
|
12
13
|
|
|
13
14
|
const maxTenthForMinuteAndSecond = 5;
|
|
14
|
-
function createLocaleDateTimeFormatter(locale, numberingSystem, includeSeconds = true) {
|
|
15
|
+
function createLocaleDateTimeFormatter(locale, numberingSystem, includeSeconds = true, fractionalSecondDigits) {
|
|
15
16
|
const options = {
|
|
16
17
|
hour: "2-digit",
|
|
17
18
|
minute: "2-digit",
|
|
@@ -20,31 +21,69 @@ function createLocaleDateTimeFormatter(locale, numberingSystem, includeSeconds =
|
|
|
20
21
|
};
|
|
21
22
|
if (includeSeconds) {
|
|
22
23
|
options.second = "2-digit";
|
|
24
|
+
if (fractionalSecondDigits) {
|
|
25
|
+
options.fractionalSecondDigits = fractionalSecondDigits;
|
|
26
|
+
}
|
|
23
27
|
}
|
|
24
28
|
return getDateTimeFormat(locale, options);
|
|
25
29
|
}
|
|
26
|
-
function formatTimePart(number) {
|
|
30
|
+
function formatTimePart(number, minLength) {
|
|
31
|
+
if (number === null || number === undefined) {
|
|
32
|
+
return;
|
|
33
|
+
}
|
|
27
34
|
const numberAsString = number.toString();
|
|
28
|
-
|
|
35
|
+
const numberDecimalPlaces = decimalPlaces(number);
|
|
36
|
+
if (number < 1 && numberDecimalPlaces > 0 && numberDecimalPlaces < 4) {
|
|
37
|
+
const fractionalDigits = numberAsString.replace("0.", "");
|
|
38
|
+
if (!minLength || fractionalDigits.length === minLength) {
|
|
39
|
+
return fractionalDigits;
|
|
40
|
+
}
|
|
41
|
+
if (fractionalDigits.length < minLength) {
|
|
42
|
+
return fractionalDigits.padEnd(minLength, "0");
|
|
43
|
+
}
|
|
44
|
+
return fractionalDigits;
|
|
45
|
+
}
|
|
46
|
+
if (number >= 0 && number < 10) {
|
|
47
|
+
return numberAsString.padStart(2, "0");
|
|
48
|
+
}
|
|
49
|
+
if (number >= 10) {
|
|
50
|
+
return numberAsString;
|
|
51
|
+
}
|
|
29
52
|
}
|
|
30
53
|
function formatTimeString(value) {
|
|
31
54
|
if (!isValidTime(value)) {
|
|
32
55
|
return null;
|
|
33
56
|
}
|
|
34
|
-
const
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
57
|
+
const { hour, minute, second, fractionalSecond } = parseTimeString(value);
|
|
58
|
+
let formattedValue = `${formatTimePart(parseInt(hour))}:${formatTimePart(parseInt(minute))}`;
|
|
59
|
+
if (second) {
|
|
60
|
+
formattedValue += `:${formatTimePart(parseInt(second))}`;
|
|
61
|
+
if (fractionalSecond) {
|
|
62
|
+
formattedValue += `.${fractionalSecond}`;
|
|
63
|
+
}
|
|
40
64
|
}
|
|
41
|
-
return
|
|
65
|
+
return formattedValue;
|
|
66
|
+
}
|
|
67
|
+
function fractionalSecondPartToMilliseconds(fractionalSecondPart) {
|
|
68
|
+
return parseInt((parseFloat(`0.${fractionalSecondPart}`) / 0.001).toFixed(3));
|
|
42
69
|
}
|
|
43
70
|
function getLocaleHourCycle(locale, numberingSystem) {
|
|
44
71
|
const formatter = createLocaleDateTimeFormatter(locale, numberingSystem);
|
|
45
72
|
const parts = formatter.formatToParts(new Date(Date.UTC(0, 0, 0, 0, 0, 0)));
|
|
46
73
|
return getLocalizedTimePart("meridiem", parts) ? "12" : "24";
|
|
47
74
|
}
|
|
75
|
+
function getLocalizedDecimalSeparator(locale, numberingSystem) {
|
|
76
|
+
numberStringFormatter.numberFormatOptions = {
|
|
77
|
+
locale,
|
|
78
|
+
numberingSystem,
|
|
79
|
+
};
|
|
80
|
+
return numberStringFormatter.localize("1.1").split("")[1];
|
|
81
|
+
}
|
|
82
|
+
function getLocalizedTimePartSuffix(part, locale, numberingSystem = "latn") {
|
|
83
|
+
const formatter = createLocaleDateTimeFormatter(locale, numberingSystem);
|
|
84
|
+
const parts = formatter.formatToParts(new Date(Date.UTC(0, 0, 0, 0, 0, 0)));
|
|
85
|
+
return getLocalizedTimePart(`${part}Suffix`, parts);
|
|
86
|
+
}
|
|
48
87
|
function getLocalizedTimePart(part, parts) {
|
|
49
88
|
if (!part || !parts) {
|
|
50
89
|
return null;
|
|
@@ -110,6 +149,29 @@ function isValidTimePart(value, part) {
|
|
|
110
149
|
return part === "hour" ? valueAsNumber >= 0 && valueAsNumber < 24 : valueAsNumber >= 0 && valueAsNumber < 60;
|
|
111
150
|
}
|
|
112
151
|
function localizeTimePart({ value, part, locale, numberingSystem }) {
|
|
152
|
+
if (part === "fractionalSecond") {
|
|
153
|
+
const localizedDecimalSeparator = getLocalizedDecimalSeparator(locale, numberingSystem);
|
|
154
|
+
let localizedFractionalSecond = null;
|
|
155
|
+
if (value) {
|
|
156
|
+
numberStringFormatter.numberFormatOptions = {
|
|
157
|
+
locale,
|
|
158
|
+
numberingSystem,
|
|
159
|
+
};
|
|
160
|
+
const localizedZero = numberStringFormatter.localize("0");
|
|
161
|
+
if (parseInt(value) === 0) {
|
|
162
|
+
localizedFractionalSecond = "".padStart(value.length, localizedZero);
|
|
163
|
+
}
|
|
164
|
+
else {
|
|
165
|
+
localizedFractionalSecond = numberStringFormatter
|
|
166
|
+
.localize(`0.${value}`)
|
|
167
|
+
.replace(`${localizedZero}${localizedDecimalSeparator}`, "");
|
|
168
|
+
if (localizedFractionalSecond.length < value.length) {
|
|
169
|
+
localizedFractionalSecond = localizedFractionalSecond.padEnd(value.length, localizedZero);
|
|
170
|
+
}
|
|
171
|
+
}
|
|
172
|
+
}
|
|
173
|
+
return localizedFractionalSecond;
|
|
174
|
+
}
|
|
113
175
|
if (!isValidTimePart(value, part)) {
|
|
114
176
|
return;
|
|
115
177
|
}
|
|
@@ -122,20 +184,20 @@ function localizeTimePart({ value, part, locale, numberingSystem }) {
|
|
|
122
184
|
const parts = formatter.formatToParts(date);
|
|
123
185
|
return getLocalizedTimePart(part, parts);
|
|
124
186
|
}
|
|
125
|
-
function localizeTimeString({ value, locale, numberingSystem, includeSeconds = true, }) {
|
|
187
|
+
function localizeTimeString({ value, locale, numberingSystem, includeSeconds = true, fractionalSecondDigits, }) {
|
|
126
188
|
if (!isValidTime(value)) {
|
|
127
189
|
return null;
|
|
128
190
|
}
|
|
129
|
-
const { hour, minute, second = "0" } = parseTimeString(value);
|
|
130
|
-
const dateFromTimeString = new Date(Date.UTC(0, 0, 0, parseInt(hour), parseInt(minute), parseInt(second)));
|
|
131
|
-
const formatter = createLocaleDateTimeFormatter(locale, numberingSystem, includeSeconds);
|
|
132
|
-
return formatter
|
|
191
|
+
const { hour, minute, second = "0", fractionalSecond } = parseTimeString(value);
|
|
192
|
+
const dateFromTimeString = new Date(Date.UTC(0, 0, 0, parseInt(hour), parseInt(minute), parseInt(second), fractionalSecond && fractionalSecondPartToMilliseconds(fractionalSecond)));
|
|
193
|
+
const formatter = createLocaleDateTimeFormatter(locale, numberingSystem, includeSeconds, fractionalSecondDigits);
|
|
194
|
+
return formatter.format(dateFromTimeString) || null;
|
|
133
195
|
}
|
|
134
|
-
function localizeTimeStringToParts({ value, locale, numberingSystem, }) {
|
|
196
|
+
function localizeTimeStringToParts({ value, locale, numberingSystem = "latn", }) {
|
|
135
197
|
if (!isValidTime(value)) {
|
|
136
198
|
return null;
|
|
137
199
|
}
|
|
138
|
-
const { hour, minute, second = "0" } = parseTimeString(value);
|
|
200
|
+
const { hour, minute, second = "0", fractionalSecond } = parseTimeString(value);
|
|
139
201
|
const dateFromTimeString = new Date(Date.UTC(0, 0, 0, parseInt(hour), parseInt(minute), parseInt(second)));
|
|
140
202
|
if (dateFromTimeString) {
|
|
141
203
|
const formatter = createLocaleDateTimeFormatter(locale, numberingSystem);
|
|
@@ -146,6 +208,13 @@ function localizeTimeStringToParts({ value, locale, numberingSystem, }) {
|
|
|
146
208
|
localizedMinute: getLocalizedTimePart("minute", parts),
|
|
147
209
|
localizedMinuteSuffix: getLocalizedTimePart("minuteSuffix", parts),
|
|
148
210
|
localizedSecond: getLocalizedTimePart("second", parts),
|
|
211
|
+
localizedDecimalSeparator: getLocalizedDecimalSeparator(locale, numberingSystem),
|
|
212
|
+
localizedFractionalSecond: localizeTimePart({
|
|
213
|
+
value: fractionalSecond,
|
|
214
|
+
part: "fractionalSecond",
|
|
215
|
+
locale,
|
|
216
|
+
numberingSystem,
|
|
217
|
+
}),
|
|
149
218
|
localizedSecondSuffix: getLocalizedTimePart("secondSuffix", parts),
|
|
150
219
|
localizedMeridiem: getLocalizedTimePart("meridiem", parts),
|
|
151
220
|
};
|
|
@@ -167,14 +236,21 @@ function getTimeParts({ value, locale, numberingSystem }) {
|
|
|
167
236
|
}
|
|
168
237
|
function parseTimeString(value) {
|
|
169
238
|
if (isValidTime(value)) {
|
|
170
|
-
const [hour, minute,
|
|
239
|
+
const [hour, minute, secondDecimal] = value.split(":");
|
|
240
|
+
let second = secondDecimal;
|
|
241
|
+
let fractionalSecond = null;
|
|
242
|
+
if (secondDecimal?.includes(".")) {
|
|
243
|
+
[second, fractionalSecond] = secondDecimal.split(".");
|
|
244
|
+
}
|
|
171
245
|
return {
|
|
246
|
+
fractionalSecond,
|
|
172
247
|
hour,
|
|
173
248
|
minute,
|
|
174
249
|
second,
|
|
175
250
|
};
|
|
176
251
|
}
|
|
177
252
|
return {
|
|
253
|
+
fractionalSecond: null,
|
|
178
254
|
hour: null,
|
|
179
255
|
minute: null,
|
|
180
256
|
second: null,
|
|
@@ -184,10 +260,13 @@ function toISOTimeString(value, includeSeconds = true) {
|
|
|
184
260
|
if (!isValidTime(value)) {
|
|
185
261
|
return "";
|
|
186
262
|
}
|
|
187
|
-
const { hour, minute, second } = parseTimeString(value);
|
|
263
|
+
const { hour, minute, second, fractionalSecond } = parseTimeString(value);
|
|
188
264
|
let isoTimeString = `${formatTimePart(parseInt(hour))}:${formatTimePart(parseInt(minute))}`;
|
|
189
265
|
if (includeSeconds) {
|
|
190
266
|
isoTimeString += `:${formatTimePart(parseInt((includeSeconds && second) || "0"))}`;
|
|
267
|
+
if (fractionalSecond) {
|
|
268
|
+
isoTimeString += `.${fractionalSecond}`;
|
|
269
|
+
}
|
|
191
270
|
}
|
|
192
271
|
return isoTimeString;
|
|
193
272
|
}
|
|
@@ -196,6 +275,8 @@ const CSS = {
|
|
|
196
275
|
button: "button",
|
|
197
276
|
buttonBottomLeft: "button--bottom-left",
|
|
198
277
|
buttonBottomRight: "button--bottom-right",
|
|
278
|
+
buttonFractionalSecondDown: "button--fractionalSecond-down",
|
|
279
|
+
buttonFractionalSecondUp: "button--fractionalSecond-up",
|
|
199
280
|
buttonHourDown: "button--hour-down",
|
|
200
281
|
buttonHourUp: "button--hour-up",
|
|
201
282
|
buttonMeridiemDown: "button--meridiem-down",
|
|
@@ -208,6 +289,7 @@ const CSS = {
|
|
|
208
289
|
buttonTopRight: "button--top-right",
|
|
209
290
|
column: "column",
|
|
210
291
|
delimiter: "delimiter",
|
|
292
|
+
fractionalSecond: "fractionalSecond",
|
|
211
293
|
hour: "hour",
|
|
212
294
|
input: "input",
|
|
213
295
|
meridiem: "meridiem",
|
|
@@ -235,6 +317,9 @@ const TimePicker = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
|
|
|
235
317
|
this.calciteInternalTimePickerBlur = createEvent(this, "calciteInternalTimePickerBlur", 6);
|
|
236
318
|
this.calciteInternalTimePickerChange = createEvent(this, "calciteInternalTimePickerChange", 6);
|
|
237
319
|
this.calciteInternalTimePickerFocus = createEvent(this, "calciteInternalTimePickerFocus", 6);
|
|
320
|
+
this.decrementFractionalSecond = () => {
|
|
321
|
+
this.nudgeFractionalSecond("down");
|
|
322
|
+
};
|
|
238
323
|
this.decrementHour = () => {
|
|
239
324
|
const newHour = !this.hour ? 0 : this.hour === "00" ? 23 : parseInt(this.hour) - 1;
|
|
240
325
|
this.setValuePart("hour", newHour);
|
|
@@ -263,9 +348,39 @@ const TimePicker = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
|
|
|
263
348
|
this.focusHandler = (event) => {
|
|
264
349
|
this.activeEl = event.currentTarget;
|
|
265
350
|
};
|
|
266
|
-
this.
|
|
267
|
-
|
|
268
|
-
|
|
351
|
+
this.fractionalSecondKeyDownHandler = (event) => {
|
|
352
|
+
const { key } = event;
|
|
353
|
+
if (numberKeys.includes(key)) {
|
|
354
|
+
const stepPrecision = decimalPlaces(this.step);
|
|
355
|
+
const fractionalSecondAsInteger = parseInt(this.fractionalSecond);
|
|
356
|
+
const fractionalSecondAsIntegerLength = fractionalSecondAsInteger.toString().length;
|
|
357
|
+
let newFractionalSecondAsIntegerString;
|
|
358
|
+
if (fractionalSecondAsIntegerLength >= stepPrecision) {
|
|
359
|
+
newFractionalSecondAsIntegerString = key.padStart(stepPrecision, "0");
|
|
360
|
+
}
|
|
361
|
+
else if (fractionalSecondAsIntegerLength < stepPrecision) {
|
|
362
|
+
newFractionalSecondAsIntegerString = `${fractionalSecondAsInteger}${key}`.padStart(stepPrecision, "0");
|
|
363
|
+
}
|
|
364
|
+
this.setValuePart("fractionalSecond", parseFloat(`0.${newFractionalSecondAsIntegerString}`));
|
|
365
|
+
}
|
|
366
|
+
else {
|
|
367
|
+
switch (key) {
|
|
368
|
+
case "Backspace":
|
|
369
|
+
case "Delete":
|
|
370
|
+
this.setValuePart("fractionalSecond", null);
|
|
371
|
+
break;
|
|
372
|
+
case "ArrowDown":
|
|
373
|
+
event.preventDefault();
|
|
374
|
+
this.nudgeFractionalSecond("down");
|
|
375
|
+
break;
|
|
376
|
+
case "ArrowUp":
|
|
377
|
+
event.preventDefault();
|
|
378
|
+
this.nudgeFractionalSecond("up");
|
|
379
|
+
break;
|
|
380
|
+
case " ":
|
|
381
|
+
event.preventDefault();
|
|
382
|
+
break;
|
|
383
|
+
}
|
|
269
384
|
}
|
|
270
385
|
};
|
|
271
386
|
this.hourKeyDownHandler = (event) => {
|
|
@@ -319,10 +434,8 @@ const TimePicker = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
|
|
|
319
434
|
}
|
|
320
435
|
}
|
|
321
436
|
};
|
|
322
|
-
this.
|
|
323
|
-
|
|
324
|
-
this.incrementHour();
|
|
325
|
-
}
|
|
437
|
+
this.incrementFractionalSecond = () => {
|
|
438
|
+
this.nudgeFractionalSecond("up");
|
|
326
439
|
};
|
|
327
440
|
this.incrementMeridiem = () => {
|
|
328
441
|
const newMeridiem = this.meridiem === "AM" ? "PM" : "AM";
|
|
@@ -350,11 +463,6 @@ const TimePicker = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
|
|
|
350
463
|
this.incrementSecond = () => {
|
|
351
464
|
this.incrementMinuteOrSecond("second");
|
|
352
465
|
};
|
|
353
|
-
this.meridiemDownButtonKeyDownHandler = (event) => {
|
|
354
|
-
if (this.buttonActivated(event)) {
|
|
355
|
-
this.decrementMeridiem();
|
|
356
|
-
}
|
|
357
|
-
};
|
|
358
466
|
this.meridiemKeyDownHandler = (event) => {
|
|
359
467
|
switch (event.key) {
|
|
360
468
|
case "a":
|
|
@@ -380,16 +488,6 @@ const TimePicker = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
|
|
|
380
488
|
break;
|
|
381
489
|
}
|
|
382
490
|
};
|
|
383
|
-
this.meridiemUpButtonKeyDownHandler = (event) => {
|
|
384
|
-
if (this.buttonActivated(event)) {
|
|
385
|
-
this.incrementMeridiem();
|
|
386
|
-
}
|
|
387
|
-
};
|
|
388
|
-
this.minuteDownButtonKeyDownHandler = (event) => {
|
|
389
|
-
if (this.buttonActivated(event)) {
|
|
390
|
-
this.decrementMinute();
|
|
391
|
-
}
|
|
392
|
-
};
|
|
393
491
|
this.minuteKeyDownHandler = (event) => {
|
|
394
492
|
const { key } = event;
|
|
395
493
|
if (numberKeys.includes(key)) {
|
|
@@ -427,16 +525,51 @@ const TimePicker = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
|
|
|
427
525
|
}
|
|
428
526
|
}
|
|
429
527
|
};
|
|
430
|
-
this.
|
|
431
|
-
|
|
432
|
-
|
|
528
|
+
this.nudgeFractionalSecond = (direction) => {
|
|
529
|
+
const stepDecimal = getDecimals(this.step);
|
|
530
|
+
const stepPrecision = decimalPlaces(this.step);
|
|
531
|
+
const fractionalSecondAsInteger = parseInt(this.fractionalSecond);
|
|
532
|
+
const fractionalSecondAsFloat = parseFloat(`0.${this.fractionalSecond}`);
|
|
533
|
+
let nudgedValue;
|
|
534
|
+
let nudgedValueRounded;
|
|
535
|
+
let nudgedValueRoundedDecimals;
|
|
536
|
+
let newFractionalSecond;
|
|
537
|
+
if (direction === "up") {
|
|
538
|
+
nudgedValue = isNaN(fractionalSecondAsInteger) ? 0 : fractionalSecondAsFloat + stepDecimal;
|
|
539
|
+
nudgedValueRounded = parseFloat(nudgedValue.toFixed(stepPrecision));
|
|
540
|
+
nudgedValueRoundedDecimals = getDecimals(nudgedValueRounded);
|
|
541
|
+
newFractionalSecond =
|
|
542
|
+
nudgedValueRounded < 1 && decimalPlaces(nudgedValueRoundedDecimals) > 0
|
|
543
|
+
? formatTimePart(nudgedValueRoundedDecimals, stepPrecision)
|
|
544
|
+
: "".padStart(stepPrecision, "0");
|
|
433
545
|
}
|
|
546
|
+
if (direction === "down") {
|
|
547
|
+
nudgedValue =
|
|
548
|
+
isNaN(fractionalSecondAsInteger) || fractionalSecondAsInteger === 0
|
|
549
|
+
? 1 - stepDecimal
|
|
550
|
+
: fractionalSecondAsFloat - stepDecimal;
|
|
551
|
+
nudgedValueRounded = parseFloat(nudgedValue.toFixed(stepPrecision));
|
|
552
|
+
nudgedValueRoundedDecimals = getDecimals(nudgedValueRounded);
|
|
553
|
+
newFractionalSecond =
|
|
554
|
+
nudgedValueRounded < 1 &&
|
|
555
|
+
decimalPlaces(nudgedValueRoundedDecimals) > 0 &&
|
|
556
|
+
Math.sign(nudgedValueRoundedDecimals) === 1
|
|
557
|
+
? formatTimePart(nudgedValueRoundedDecimals, stepPrecision)
|
|
558
|
+
: "".padStart(stepPrecision, "0");
|
|
559
|
+
}
|
|
560
|
+
this.setValuePart("fractionalSecond", newFractionalSecond);
|
|
434
561
|
};
|
|
435
|
-
this.
|
|
436
|
-
|
|
437
|
-
|
|
562
|
+
this.sanitizeValue = (value) => {
|
|
563
|
+
const { hour, minute, second, fractionalSecond } = parseTimeString(value);
|
|
564
|
+
if (fractionalSecond) {
|
|
565
|
+
const sanitizedFractionalSecond = this.sanitizeFractionalSecond(fractionalSecond);
|
|
566
|
+
return `${hour}:${minute}:${second}.${sanitizedFractionalSecond}`;
|
|
438
567
|
}
|
|
568
|
+
return isValidTime(value) && value;
|
|
439
569
|
};
|
|
570
|
+
this.sanitizeFractionalSecond = (fractionalSecond) => fractionalSecond && decimalPlaces(this.step) !== fractionalSecond.length
|
|
571
|
+
? parseFloat(`0.${fractionalSecond}`).toFixed(decimalPlaces(this.step)).replace("0.", "")
|
|
572
|
+
: fractionalSecond;
|
|
440
573
|
this.secondKeyDownHandler = (event) => {
|
|
441
574
|
const { key } = event;
|
|
442
575
|
if (numberKeys.includes(key)) {
|
|
@@ -474,29 +607,28 @@ const TimePicker = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
|
|
|
474
607
|
}
|
|
475
608
|
}
|
|
476
609
|
};
|
|
477
|
-
this.secondUpButtonKeyDownHandler = (event) => {
|
|
478
|
-
if (this.buttonActivated(event)) {
|
|
479
|
-
this.incrementSecond();
|
|
480
|
-
}
|
|
481
|
-
};
|
|
482
610
|
this.setHourEl = (el) => (this.hourEl = el);
|
|
483
611
|
this.setMeridiemEl = (el) => (this.meridiemEl = el);
|
|
484
612
|
this.setMinuteEl = (el) => (this.minuteEl = el);
|
|
485
613
|
this.setSecondEl = (el) => (this.secondEl = el);
|
|
486
|
-
this.
|
|
614
|
+
this.setFractionalSecondEl = (el) => (this.fractionalSecondEl = el);
|
|
615
|
+
this.setValue = (value) => {
|
|
487
616
|
if (isValidTime(value)) {
|
|
488
|
-
const { hour, minute, second } = parseTimeString(value);
|
|
617
|
+
const { hour, minute, second, fractionalSecond } = parseTimeString(value);
|
|
489
618
|
const { effectiveLocale: locale, numberingSystem } = this;
|
|
490
|
-
const { localizedHour, localizedHourSuffix, localizedMinute, localizedMinuteSuffix, localizedSecond, localizedSecondSuffix, localizedMeridiem, } = localizeTimeStringToParts({ value, locale, numberingSystem });
|
|
619
|
+
const { localizedHour, localizedHourSuffix, localizedMinute, localizedMinuteSuffix, localizedSecond, localizedDecimalSeparator, localizedFractionalSecond, localizedSecondSuffix, localizedMeridiem, } = localizeTimeStringToParts({ value, locale, numberingSystem });
|
|
620
|
+
this.hour = hour;
|
|
621
|
+
this.minute = minute;
|
|
622
|
+
this.second = second;
|
|
623
|
+
this.fractionalSecond = this.sanitizeFractionalSecond(fractionalSecond);
|
|
491
624
|
this.localizedHour = localizedHour;
|
|
492
625
|
this.localizedHourSuffix = localizedHourSuffix;
|
|
493
626
|
this.localizedMinute = localizedMinute;
|
|
494
627
|
this.localizedMinuteSuffix = localizedMinuteSuffix;
|
|
495
628
|
this.localizedSecond = localizedSecond;
|
|
629
|
+
this.localizedDecimalSeparator = localizedDecimalSeparator;
|
|
630
|
+
this.localizedFractionalSecond = localizedFractionalSecond;
|
|
496
631
|
this.localizedSecondSuffix = localizedSecondSuffix;
|
|
497
|
-
this.hour = hour;
|
|
498
|
-
this.minute = minute;
|
|
499
|
-
this.second = second;
|
|
500
632
|
if (localizedMeridiem) {
|
|
501
633
|
this.localizedMeridiem = localizedMeridiem;
|
|
502
634
|
this.meridiem = getMeridiem(this.hour);
|
|
@@ -506,23 +638,23 @@ const TimePicker = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
|
|
|
506
638
|
}
|
|
507
639
|
else {
|
|
508
640
|
this.hour = null;
|
|
641
|
+
this.fractionalSecond = null;
|
|
509
642
|
this.localizedHour = null;
|
|
510
|
-
this.localizedHourSuffix =
|
|
643
|
+
this.localizedHourSuffix = getLocalizedTimePartSuffix("hour", this.effectiveLocale, this.numberingSystem);
|
|
511
644
|
this.localizedMeridiem = null;
|
|
512
645
|
this.localizedMinute = null;
|
|
513
|
-
this.localizedMinuteSuffix =
|
|
646
|
+
this.localizedMinuteSuffix = getLocalizedTimePartSuffix("minute", this.effectiveLocale, this.numberingSystem);
|
|
514
647
|
this.localizedSecond = null;
|
|
515
|
-
this.
|
|
648
|
+
this.localizedDecimalSeparator = getLocalizedDecimalSeparator(this.effectiveLocale, this.numberingSystem);
|
|
649
|
+
this.localizedFractionalSecond = null;
|
|
650
|
+
this.localizedSecondSuffix = getLocalizedTimePartSuffix("second", this.effectiveLocale, this.numberingSystem);
|
|
516
651
|
this.meridiem = null;
|
|
517
652
|
this.minute = null;
|
|
518
653
|
this.second = null;
|
|
519
654
|
this.value = null;
|
|
520
655
|
}
|
|
521
|
-
if (emit) {
|
|
522
|
-
this.calciteInternalTimePickerChange.emit();
|
|
523
|
-
}
|
|
524
656
|
};
|
|
525
|
-
this.setValuePart = (key, value
|
|
657
|
+
this.setValuePart = (key, value) => {
|
|
526
658
|
const { effectiveLocale: locale, numberingSystem } = this;
|
|
527
659
|
if (key === "meridiem") {
|
|
528
660
|
this.meridiem = value;
|
|
@@ -548,6 +680,22 @@ const TimePicker = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
|
|
|
548
680
|
});
|
|
549
681
|
}
|
|
550
682
|
}
|
|
683
|
+
else if (key === "fractionalSecond") {
|
|
684
|
+
const stepPrecision = decimalPlaces(this.step);
|
|
685
|
+
if (typeof value === "number") {
|
|
686
|
+
this.fractionalSecond =
|
|
687
|
+
value === 0 ? "".padStart(stepPrecision, "0") : formatTimePart(value, stepPrecision);
|
|
688
|
+
}
|
|
689
|
+
else {
|
|
690
|
+
this.fractionalSecond = value;
|
|
691
|
+
}
|
|
692
|
+
this.localizedFractionalSecond = localizeTimePart({
|
|
693
|
+
value: this.fractionalSecond,
|
|
694
|
+
part: "fractionalSecond",
|
|
695
|
+
locale,
|
|
696
|
+
numberingSystem,
|
|
697
|
+
});
|
|
698
|
+
}
|
|
551
699
|
else {
|
|
552
700
|
this[key] = typeof value === "number" ? formatTimePart(value) : value;
|
|
553
701
|
this[`localized${capitalize(key)}`] = localizeTimePart({
|
|
@@ -557,16 +705,24 @@ const TimePicker = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
|
|
|
557
705
|
numberingSystem,
|
|
558
706
|
});
|
|
559
707
|
}
|
|
708
|
+
let emit = false;
|
|
709
|
+
let newValue;
|
|
560
710
|
if (this.hour && this.minute) {
|
|
561
|
-
|
|
711
|
+
newValue = `${this.hour}:${this.minute}`;
|
|
562
712
|
if (this.showSecond) {
|
|
563
713
|
newValue = `${newValue}:${this.second ?? "00"}`;
|
|
714
|
+
if (this.showFractionalSecond && this.fractionalSecond) {
|
|
715
|
+
newValue = `${newValue}.${this.fractionalSecond}`;
|
|
716
|
+
}
|
|
564
717
|
}
|
|
565
|
-
this.value = newValue;
|
|
566
718
|
}
|
|
567
719
|
else {
|
|
568
|
-
|
|
720
|
+
newValue = null;
|
|
721
|
+
}
|
|
722
|
+
if (this.value !== newValue) {
|
|
723
|
+
emit = true;
|
|
569
724
|
}
|
|
725
|
+
this.value = newValue;
|
|
570
726
|
this.localizedMeridiem = this.value
|
|
571
727
|
? localizeTimeStringToParts({ value: this.value, locale, numberingSystem })
|
|
572
728
|
?.localizedMeridiem || null
|
|
@@ -582,11 +738,14 @@ const TimePicker = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
|
|
|
582
738
|
this.messages = undefined;
|
|
583
739
|
this.messageOverrides = undefined;
|
|
584
740
|
this.effectiveLocale = "";
|
|
741
|
+
this.fractionalSecond = undefined;
|
|
585
742
|
this.hour = undefined;
|
|
586
743
|
this.hourCycle = undefined;
|
|
744
|
+
this.localizedDecimalSeparator = ".";
|
|
587
745
|
this.localizedHour = undefined;
|
|
588
746
|
this.localizedHourSuffix = undefined;
|
|
589
747
|
this.localizedMeridiem = undefined;
|
|
748
|
+
this.localizedFractionalSecond = undefined;
|
|
590
749
|
this.localizedMinute = undefined;
|
|
591
750
|
this.localizedMinuteSuffix = undefined;
|
|
592
751
|
this.localizedSecond = undefined;
|
|
@@ -594,14 +753,15 @@ const TimePicker = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
|
|
|
594
753
|
this.meridiem = undefined;
|
|
595
754
|
this.minute = undefined;
|
|
596
755
|
this.second = undefined;
|
|
756
|
+
this.showFractionalSecond = undefined;
|
|
597
757
|
this.showSecond = undefined;
|
|
598
758
|
this.defaultMessages = undefined;
|
|
599
759
|
}
|
|
600
760
|
stepChange() {
|
|
601
|
-
this.
|
|
761
|
+
this.toggleSecond();
|
|
602
762
|
}
|
|
603
763
|
valueWatcher(newValue) {
|
|
604
|
-
this.setValue(newValue
|
|
764
|
+
this.setValue(newValue);
|
|
605
765
|
}
|
|
606
766
|
onMessagesChange() {
|
|
607
767
|
/* wired up by t9n util */
|
|
@@ -656,6 +816,23 @@ const TimePicker = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
|
|
|
656
816
|
this.focusPart("minute");
|
|
657
817
|
event.preventDefault();
|
|
658
818
|
break;
|
|
819
|
+
case "ArrowRight":
|
|
820
|
+
if (this.showFractionalSecond) {
|
|
821
|
+
this.focusPart("fractionalSecond");
|
|
822
|
+
}
|
|
823
|
+
else if (this.hourCycle === "12") {
|
|
824
|
+
this.focusPart("meridiem");
|
|
825
|
+
event.preventDefault();
|
|
826
|
+
}
|
|
827
|
+
break;
|
|
828
|
+
}
|
|
829
|
+
break;
|
|
830
|
+
case this.fractionalSecondEl:
|
|
831
|
+
switch (key) {
|
|
832
|
+
case "ArrowLeft":
|
|
833
|
+
this.focusPart("second");
|
|
834
|
+
event.preventDefault();
|
|
835
|
+
break;
|
|
659
836
|
case "ArrowRight":
|
|
660
837
|
if (this.hourCycle === "12") {
|
|
661
838
|
this.focusPart("meridiem");
|
|
@@ -667,7 +844,10 @@ const TimePicker = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
|
|
|
667
844
|
case this.meridiemEl:
|
|
668
845
|
switch (key) {
|
|
669
846
|
case "ArrowLeft":
|
|
670
|
-
if (this.
|
|
847
|
+
if (this.showFractionalSecond) {
|
|
848
|
+
this.focusPart("fractionalSecond");
|
|
849
|
+
}
|
|
850
|
+
else if (this.step !== 60) {
|
|
671
851
|
this.focusPart("second");
|
|
672
852
|
event.preventDefault();
|
|
673
853
|
}
|
|
@@ -697,19 +877,13 @@ const TimePicker = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
|
|
|
697
877
|
// Private Methods
|
|
698
878
|
//
|
|
699
879
|
// --------------------------------------------------------------------------
|
|
700
|
-
updateShowSecond() {
|
|
701
|
-
this.showSecond = this.step < 60;
|
|
702
|
-
}
|
|
703
880
|
async focusPart(target) {
|
|
704
881
|
await componentFocusable(this);
|
|
705
882
|
this[`${target || "hour"}El`]?.focus();
|
|
706
883
|
}
|
|
707
|
-
|
|
708
|
-
|
|
709
|
-
|
|
710
|
-
event.preventDefault();
|
|
711
|
-
}
|
|
712
|
-
return isActivationKey(key);
|
|
884
|
+
toggleSecond() {
|
|
885
|
+
this.showSecond = this.step < 60;
|
|
886
|
+
this.showFractionalSecond = decimalPlaces(this.step) > 0;
|
|
713
887
|
}
|
|
714
888
|
getMeridiemOrder(formatParts) {
|
|
715
889
|
const locale = this.effectiveLocale;
|
|
@@ -725,7 +899,8 @@ const TimePicker = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
|
|
|
725
899
|
updateLocale() {
|
|
726
900
|
updateMessages(this, this.effectiveLocale);
|
|
727
901
|
this.hourCycle = getLocaleHourCycle(this.effectiveLocale, this.numberingSystem);
|
|
728
|
-
this.
|
|
902
|
+
this.localizedDecimalSeparator = getLocalizedDecimalSeparator(this.effectiveLocale, this.numberingSystem);
|
|
903
|
+
this.setValue(this.sanitizeValue(this.value));
|
|
729
904
|
}
|
|
730
905
|
// --------------------------------------------------------------------------
|
|
731
906
|
//
|
|
@@ -736,7 +911,7 @@ const TimePicker = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
|
|
|
736
911
|
connectLocalized(this);
|
|
737
912
|
this.updateLocale();
|
|
738
913
|
connectMessages(this);
|
|
739
|
-
this.
|
|
914
|
+
this.toggleSecond();
|
|
740
915
|
this.meridiemOrder = this.getMeridiemOrder(getTimeParts({
|
|
741
916
|
value: "0:00:00",
|
|
742
917
|
locale: this.effectiveLocale,
|
|
@@ -764,6 +939,7 @@ const TimePicker = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
|
|
|
764
939
|
const iconScale = this.scale === "s" || this.scale === "m" ? "s" : "m";
|
|
765
940
|
const minuteIsNumber = isValidNumber(this.minute);
|
|
766
941
|
const secondIsNumber = isValidNumber(this.second);
|
|
942
|
+
const fractionalSecondIsNumber = isValidNumber(this.fractionalSecond);
|
|
767
943
|
const showMeridiem = this.hourCycle === "12";
|
|
768
944
|
return (h("div", { class: {
|
|
769
945
|
[CSS.timePicker]: true,
|
|
@@ -774,7 +950,7 @@ const TimePicker = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
|
|
|
774
950
|
[CSS.button]: true,
|
|
775
951
|
[CSS.buttonHourUp]: true,
|
|
776
952
|
[CSS.buttonTopLeft]: true,
|
|
777
|
-
}, onClick: this.incrementHour,
|
|
953
|
+
}, onClick: this.incrementHour, role: "button" }, h("calcite-icon", { icon: "chevron-up", scale: iconScale })), h("span", { "aria-label": this.messages.hour, "aria-valuemax": "23", "aria-valuemin": "1", "aria-valuenow": (hourIsNumber && parseInt(this.hour)) || "0", "aria-valuetext": this.hour, class: {
|
|
778
954
|
[CSS.input]: true,
|
|
779
955
|
[CSS.hour]: true,
|
|
780
956
|
}, onFocus: this.focusHandler, onKeyDown: this.hourKeyDownHandler, role: "spinbutton", tabIndex: 0,
|
|
@@ -783,10 +959,10 @@ const TimePicker = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
|
|
|
783
959
|
[CSS.button]: true,
|
|
784
960
|
[CSS.buttonHourDown]: true,
|
|
785
961
|
[CSS.buttonBottomLeft]: true,
|
|
786
|
-
}, onClick: this.decrementHour,
|
|
962
|
+
}, onClick: this.decrementHour, role: "button" }, h("calcite-icon", { icon: "chevron-down", scale: iconScale }))), h("span", { class: CSS.delimiter }, this.localizedHourSuffix), h("div", { class: CSS.column, role: "group" }, h("span", { "aria-label": this.messages.minuteUp, class: {
|
|
787
963
|
[CSS.button]: true,
|
|
788
964
|
[CSS.buttonMinuteUp]: true,
|
|
789
|
-
}, onClick: this.incrementMinute,
|
|
965
|
+
}, onClick: this.incrementMinute, role: "button" }, h("calcite-icon", { icon: "chevron-up", scale: iconScale })), h("span", { "aria-label": this.messages.minute, "aria-valuemax": "12", "aria-valuemin": "1", "aria-valuenow": (minuteIsNumber && parseInt(this.minute)) || "0", "aria-valuetext": this.minute, class: {
|
|
790
966
|
[CSS.input]: true,
|
|
791
967
|
[CSS.minute]: true,
|
|
792
968
|
}, onFocus: this.focusHandler, onKeyDown: this.minuteKeyDownHandler, role: "spinbutton", tabIndex: 0,
|
|
@@ -794,10 +970,10 @@ const TimePicker = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
|
|
|
794
970
|
ref: this.setMinuteEl }, this.localizedMinute || "--"), h("span", { "aria-label": this.messages.minuteDown, class: {
|
|
795
971
|
[CSS.button]: true,
|
|
796
972
|
[CSS.buttonMinuteDown]: true,
|
|
797
|
-
}, onClick: this.decrementMinute,
|
|
973
|
+
}, onClick: this.decrementMinute, role: "button" }, h("calcite-icon", { icon: "chevron-down", scale: iconScale }))), this.showSecond && h("span", { class: CSS.delimiter }, this.localizedMinuteSuffix), this.showSecond && (h("div", { class: CSS.column, role: "group" }, h("span", { "aria-label": this.messages.secondUp, class: {
|
|
798
974
|
[CSS.button]: true,
|
|
799
975
|
[CSS.buttonSecondUp]: true,
|
|
800
|
-
}, onClick: this.incrementSecond,
|
|
976
|
+
}, onClick: this.incrementSecond, role: "button" }, h("calcite-icon", { icon: "chevron-up", scale: iconScale })), h("span", { "aria-label": this.messages.second, "aria-valuemax": "59", "aria-valuemin": "0", "aria-valuenow": (secondIsNumber && parseInt(this.second)) || "0", "aria-valuetext": this.second, class: {
|
|
801
977
|
[CSS.input]: true,
|
|
802
978
|
[CSS.second]: true,
|
|
803
979
|
}, onFocus: this.focusHandler, onKeyDown: this.secondKeyDownHandler, role: "spinbutton", tabIndex: 0,
|
|
@@ -805,14 +981,25 @@ const TimePicker = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
|
|
|
805
981
|
ref: this.setSecondEl }, this.localizedSecond || "--"), h("span", { "aria-label": this.messages.secondDown, class: {
|
|
806
982
|
[CSS.button]: true,
|
|
807
983
|
[CSS.buttonSecondDown]: true,
|
|
808
|
-
}, onClick: this.decrementSecond,
|
|
984
|
+
}, onClick: this.decrementSecond, role: "button" }, h("calcite-icon", { icon: "chevron-down", scale: iconScale })))), this.showFractionalSecond && (h("span", { class: CSS.delimiter }, this.localizedDecimalSeparator)), this.showFractionalSecond && (h("div", { class: CSS.column, role: "group" }, h("span", { "aria-label": this.messages.fractionalSecondUp, class: {
|
|
985
|
+
[CSS.button]: true,
|
|
986
|
+
[CSS.buttonFractionalSecondUp]: true,
|
|
987
|
+
}, onClick: this.incrementFractionalSecond, role: "button" }, h("calcite-icon", { icon: "chevron-up", scale: iconScale })), h("span", { "aria-label": this.messages.fractionalSecond, "aria-valuemax": "999", "aria-valuemin": "1", "aria-valuenow": (fractionalSecondIsNumber && parseInt(this.fractionalSecond)) || "0", "aria-valuetext": this.localizedFractionalSecond, class: {
|
|
988
|
+
[CSS.input]: true,
|
|
989
|
+
[CSS.fractionalSecond]: true,
|
|
990
|
+
}, onFocus: this.focusHandler, onKeyDown: this.fractionalSecondKeyDownHandler, role: "spinbutton", tabIndex: 0,
|
|
991
|
+
// 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)
|
|
992
|
+
ref: this.setFractionalSecondEl }, this.localizedFractionalSecond || "--"), h("span", { "aria-label": this.messages.fractionalSecondDown, class: {
|
|
993
|
+
[CSS.button]: true,
|
|
994
|
+
[CSS.buttonFractionalSecondDown]: true,
|
|
995
|
+
}, onClick: this.decrementFractionalSecond, role: "button" }, h("calcite-icon", { icon: "chevron-down", scale: iconScale })))), this.localizedSecondSuffix && (h("span", { class: CSS.delimiter }, this.localizedSecondSuffix)), showMeridiem && (h("div", { class: {
|
|
809
996
|
[CSS.column]: true,
|
|
810
997
|
[CSS.meridiemStart]: this.meridiemOrder === 0,
|
|
811
998
|
}, role: "group" }, h("span", { "aria-label": this.messages.meridiemUp, class: {
|
|
812
999
|
[CSS.button]: true,
|
|
813
1000
|
[CSS.buttonMeridiemUp]: true,
|
|
814
1001
|
[CSS.buttonTopRight]: true,
|
|
815
|
-
}, onClick: this.incrementMeridiem,
|
|
1002
|
+
}, onClick: this.incrementMeridiem, role: "button" }, h("calcite-icon", { icon: "chevron-up", scale: iconScale })), h("span", { "aria-label": this.messages.meridiem, "aria-valuemax": "2", "aria-valuemin": "1", "aria-valuenow": (this.meridiem === "PM" && "2") || "1", "aria-valuetext": this.meridiem, class: {
|
|
816
1003
|
[CSS.input]: true,
|
|
817
1004
|
[CSS.meridiem]: true,
|
|
818
1005
|
}, onFocus: this.focusHandler, onKeyDown: this.meridiemKeyDownHandler, role: "spinbutton", tabIndex: 0,
|
|
@@ -821,7 +1008,7 @@ const TimePicker = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
|
|
|
821
1008
|
[CSS.button]: true,
|
|
822
1009
|
[CSS.buttonMeridiemDown]: true,
|
|
823
1010
|
[CSS.buttonBottomRight]: true,
|
|
824
|
-
}, onClick: this.decrementMeridiem,
|
|
1011
|
+
}, onClick: this.decrementMeridiem, role: "button" }, h("calcite-icon", { icon: "chevron-down", scale: iconScale }))))));
|
|
825
1012
|
}
|
|
826
1013
|
static get delegatesFocus() { return true; }
|
|
827
1014
|
static get assetsDirs() { return ["assets"]; }
|
|
@@ -841,11 +1028,14 @@ const TimePicker = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
|
|
|
841
1028
|
"messages": [1040],
|
|
842
1029
|
"messageOverrides": [1040],
|
|
843
1030
|
"effectiveLocale": [32],
|
|
1031
|
+
"fractionalSecond": [32],
|
|
844
1032
|
"hour": [32],
|
|
845
1033
|
"hourCycle": [32],
|
|
1034
|
+
"localizedDecimalSeparator": [32],
|
|
846
1035
|
"localizedHour": [32],
|
|
847
1036
|
"localizedHourSuffix": [32],
|
|
848
1037
|
"localizedMeridiem": [32],
|
|
1038
|
+
"localizedFractionalSecond": [32],
|
|
849
1039
|
"localizedMinute": [32],
|
|
850
1040
|
"localizedMinuteSuffix": [32],
|
|
851
1041
|
"localizedSecond": [32],
|
|
@@ -853,6 +1043,7 @@ const TimePicker = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
|
|
|
853
1043
|
"meridiem": [32],
|
|
854
1044
|
"minute": [32],
|
|
855
1045
|
"second": [32],
|
|
1046
|
+
"showFractionalSecond": [32],
|
|
856
1047
|
"showSecond": [32],
|
|
857
1048
|
"defaultMessages": [32],
|
|
858
1049
|
"setFocus": [64]
|
|
@@ -877,4 +1068,4 @@ function defineCustomElement() {
|
|
|
877
1068
|
}
|
|
878
1069
|
defineCustomElement();
|
|
879
1070
|
|
|
880
|
-
export { TimePicker as T, defineCustomElement as d, formatTimeString as f, isValidTime as i, localizeTimeString as l, toISOTimeString as t };
|
|
1071
|
+
export { TimePicker as T, formatTimePart as a, defineCustomElement as d, formatTimeString as f, isValidTime as i, localizeTimeString as l, toISOTimeString as t };
|