@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
package/hydrate/index.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* All material copyright ESRI, All Rights Reserved, unless otherwise specified.
|
|
3
3
|
* See https://github.com/Esri/calcite-design-system/blob/main/LICENSE.md for details.
|
|
4
|
-
* v1.7.0-next.
|
|
4
|
+
* v1.7.0-next.15
|
|
5
5
|
*/
|
|
6
6
|
'use strict';
|
|
7
7
|
|
|
@@ -15861,9 +15861,18 @@ const SCOPE_SIZE = 1;
|
|
|
15861
15861
|
|
|
15862
15862
|
const clamp$1 = (value, min, max) => Math.max(min, Math.min(value, max));
|
|
15863
15863
|
const decimalNumberRegex = new RegExp(/(?:\.(\d+))?(?:[eE]([+-]?\d+))?$/);
|
|
15864
|
+
/**
|
|
15865
|
+
* Returns the quantity of real decimal places for a number, which excludes trailing zeros.
|
|
15866
|
+
*
|
|
15867
|
+
* Adapted from {@link https://stackoverflow.com/questions/10454518/javascript-how-to-retrieve-the-number-of-decimals-of-a-string-number}.
|
|
15868
|
+
*
|
|
15869
|
+
* @param decimal - decimal value
|
|
15870
|
+
* @param value
|
|
15871
|
+
* @returns {number} the amount of decimal places in a number
|
|
15872
|
+
*/
|
|
15864
15873
|
const decimalPlaces = (value) => {
|
|
15865
15874
|
const match = ("" + value).match(decimalNumberRegex);
|
|
15866
|
-
if (!match) {
|
|
15875
|
+
if (!match || parseInt(match[1]) === 0) {
|
|
15867
15876
|
return 0;
|
|
15868
15877
|
}
|
|
15869
15878
|
return Math.max(0,
|
|
@@ -15872,6 +15881,12 @@ const decimalPlaces = (value) => {
|
|
|
15872
15881
|
// Adjust for scientific notation.
|
|
15873
15882
|
(match[2] ? +match[2] : 0));
|
|
15874
15883
|
};
|
|
15884
|
+
function getDecimals(value) {
|
|
15885
|
+
if (decimalPlaces(value) > 0 && value > 0) {
|
|
15886
|
+
return parseFloat(`0.${value.toString().split(".")[1]}`);
|
|
15887
|
+
}
|
|
15888
|
+
return value;
|
|
15889
|
+
}
|
|
15875
15890
|
function remap(value, fromMin, fromMax, toMin, toMax) {
|
|
15876
15891
|
return ((value - fromMin) * (toMax - toMin)) / (fromMax - fromMin) + toMin;
|
|
15877
15892
|
}
|
|
@@ -20135,6 +20150,16 @@ function dateToISO(date) {
|
|
|
20135
20150
|
}
|
|
20136
20151
|
return "";
|
|
20137
20152
|
}
|
|
20153
|
+
/**
|
|
20154
|
+
* Retrieve day, month, and year strings from a ISO string (YYYY-mm-dd)
|
|
20155
|
+
*
|
|
20156
|
+
* @param string
|
|
20157
|
+
* @param isoDate
|
|
20158
|
+
*/
|
|
20159
|
+
function datePartsFromISO(isoDate) {
|
|
20160
|
+
const dateParts = isoDate.split("-");
|
|
20161
|
+
return { day: dateParts[2], month: dateParts[1], year: dateParts[0] };
|
|
20162
|
+
}
|
|
20138
20163
|
/**
|
|
20139
20164
|
* Check if two dates are the same day, month, year
|
|
20140
20165
|
*
|
|
@@ -25106,6 +25131,31 @@ function updateFocusTrapElements(component) {
|
|
|
25106
25131
|
component.focusTrap?.updateContainerElements(component.el);
|
|
25107
25132
|
}
|
|
25108
25133
|
|
|
25134
|
+
/**
|
|
25135
|
+
* Specifies if an ISO string date (YYYY-MM-DD) has two digit year.
|
|
25136
|
+
*
|
|
25137
|
+
* @param {string} value
|
|
25138
|
+
* @returns {boolean}
|
|
25139
|
+
*/
|
|
25140
|
+
function isTwoDigitYear(value) {
|
|
25141
|
+
if (!value) {
|
|
25142
|
+
return false;
|
|
25143
|
+
}
|
|
25144
|
+
const { year } = datePartsFromISO(value);
|
|
25145
|
+
return Number(year) < 100;
|
|
25146
|
+
}
|
|
25147
|
+
/**
|
|
25148
|
+
* Returns a normalized year to current century from a given two digit year number.
|
|
25149
|
+
*
|
|
25150
|
+
* @param {number} twoDigitYear
|
|
25151
|
+
* @returns {string}
|
|
25152
|
+
*/
|
|
25153
|
+
function normalizeToCurrentCentury(twoDigitYear) {
|
|
25154
|
+
const currentYear = new Date().getFullYear();
|
|
25155
|
+
const normalizedYear = Math.floor(currentYear / 100) * 100 + twoDigitYear;
|
|
25156
|
+
return normalizedYear;
|
|
25157
|
+
}
|
|
25158
|
+
|
|
25109
25159
|
const inputDatePickerCss = "/*!@:host*/.sc-calcite-input-date-picker-h{--calcite-icon-size:1rem;--calcite-spacing-eighth:0.125rem;--calcite-spacing-quarter:0.25rem;--calcite-spacing-half:0.5rem;--calcite-spacing-three-quarters:0.75rem;--calcite-spacing:1rem;--calcite-spacing-plus-quarter:1.25rem;--calcite-spacing-plus-half:1.5rem;--calcite-spacing-double:2rem;--calcite-menu-min-width:10rem;--calcite-header-min-height:3rem;--calcite-footer-min-height:3rem}/*!@:host([disabled])*/[disabled].sc-calcite-input-date-picker-h{cursor:default;-webkit-user-select:none;user-select:none;opacity:var(--calcite-ui-opacity-disabled)}/*!@:host([disabled]) *,\n:host([disabled]) ::slotted(*)*/[disabled].sc-calcite-input-date-picker-h *.sc-calcite-input-date-picker,.sc-calcite-input-date-picker-h[disabled] .sc-calcite-input-date-picker-s>*{pointer-events:none}/*!@:host*/.sc-calcite-input-date-picker-h{position:relative;display:inline-block;inline-size:100%;overflow:visible;vertical-align:top;--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow)}/*!@:host .menu-container .calcite-floating-ui-anim*/.sc-calcite-input-date-picker-h .menu-container.sc-calcite-input-date-picker .calcite-floating-ui-anim.sc-calcite-input-date-picker{position:relative;transition:var(--calcite-floating-ui-transition);transition-property:transform, visibility, opacity;opacity:0;box-shadow:0 0 16px 0 rgba(0, 0, 0, 0.16);z-index:var(--calcite-app-z-index);border-radius:0.25rem}/*!@:host .menu-container[data-placement^=bottom] .calcite-floating-ui-anim*/.sc-calcite-input-date-picker-h .menu-container[data-placement^=bottom].sc-calcite-input-date-picker .calcite-floating-ui-anim.sc-calcite-input-date-picker{transform:translateY(-5px)}/*!@:host .menu-container[data-placement^=top] .calcite-floating-ui-anim*/.sc-calcite-input-date-picker-h .menu-container[data-placement^=top].sc-calcite-input-date-picker .calcite-floating-ui-anim.sc-calcite-input-date-picker{transform:translateY(5px)}/*!@:host .menu-container[data-placement^=left] .calcite-floating-ui-anim*/.sc-calcite-input-date-picker-h .menu-container[data-placement^=left].sc-calcite-input-date-picker .calcite-floating-ui-anim.sc-calcite-input-date-picker{transform:translateX(5px)}/*!@:host .menu-container[data-placement^=right] .calcite-floating-ui-anim*/.sc-calcite-input-date-picker-h .menu-container[data-placement^=right].sc-calcite-input-date-picker .calcite-floating-ui-anim.sc-calcite-input-date-picker{transform:translateX(-5px)}/*!@:host .menu-container[data-placement] .calcite-floating-ui-anim--active*/.sc-calcite-input-date-picker-h .menu-container[data-placement].sc-calcite-input-date-picker .calcite-floating-ui-anim--active.sc-calcite-input-date-picker{opacity:1;transform:translate(0)}/*!@:host([scale=s])*/[scale=s].sc-calcite-input-date-picker-h{--calcite-toggle-spacing:0.5rem}/*!@:host([scale=m])*/[scale=m].sc-calcite-input-date-picker-h{--calcite-toggle-spacing:0.75rem}/*!@:host([scale=l])*/[scale=l].sc-calcite-input-date-picker-h{--calcite-toggle-spacing:1rem}/*!@:host([disabled]) ::slotted([calcite-hydrated][disabled]),\n:host([disabled]) [calcite-hydrated][disabled]*/.sc-calcite-input-date-picker-h[disabled] .sc-calcite-input-date-picker-s>[calcite-hydrated][disabled],[disabled].sc-calcite-input-date-picker-h [calcite-hydrated][disabled].sc-calcite-input-date-picker{opacity:1}/*!@.calendar-picker-wrapper*/.calendar-picker-wrapper.sc-calcite-input-date-picker{position:static;inline-size:100%;--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);transform:translate3d(0, 0, 0)}/*!@.input-wrapper*/.input-wrapper.sc-calcite-input-date-picker{position:relative}/*!@.toggle-icon*/.toggle-icon.sc-calcite-input-date-picker{position:absolute;display:flex;inline-size:1rem;cursor:pointer;align-items:center;inset-inline-end:0;inset-block:0;padding-inline:var(--calcite-toggle-spacing)}/*!@:host([range]) .input-container*/[range].sc-calcite-input-date-picker-h .input-container.sc-calcite-input-date-picker{display:flex}/*!@:host([range]) .input-wrapper*/[range].sc-calcite-input-date-picker-h .input-wrapper.sc-calcite-input-date-picker{flex:1 1 auto}/*!@:host([range]) .horizontal-arrow-container*/[range].sc-calcite-input-date-picker-h .horizontal-arrow-container.sc-calcite-input-date-picker{display:flex;align-items:center;border-width:1px;border-inline-start-width:0px;border-inline-end-width:0px;border-style:solid;border-color:var(--calcite-ui-border-input);background-color:var(--calcite-ui-background);padding-block:0px;padding-inline:0.25rem}/*!@:host([range][layout=vertical]) .input-wrapper*/[range][layout=vertical].sc-calcite-input-date-picker-h .input-wrapper.sc-calcite-input-date-picker{inline-size:100%}/*!@:host([range][layout=vertical]) .input-container*/[range][layout=vertical].sc-calcite-input-date-picker-h .input-container.sc-calcite-input-date-picker{flex-direction:column;align-items:flex-start}/*!@:host([range][layout=vertical]) .calendar-picker-wrapper--end*/[range][layout=vertical].sc-calcite-input-date-picker-h .calendar-picker-wrapper--end.sc-calcite-input-date-picker{transform:translate3d(0, 0, 0)}/*!@:host([range][layout=vertical]) .vertical-arrow-container*/[range][layout=vertical].sc-calcite-input-date-picker-h .vertical-arrow-container.sc-calcite-input-date-picker{inset-block-start:1.5rem;position:absolute;z-index:var(--calcite-app-z-index);margin-inline:1px;background-color:var(--calcite-ui-foreground-1);padding-inline:0.625rem;inset-inline-start:0}/*!@:host([scale=s][range]:not([layout=vertical])) .calendar-picker-wrapper*/[scale=s][range].sc-calcite-input-date-picker-h:not([layout=vertical]) .calendar-picker-wrapper.sc-calcite-input-date-picker{inline-size:216px}/*!@:host([scale=m][range]:not([layout=vertical])) .calendar-picker-wrapper*/[scale=m][range].sc-calcite-input-date-picker-h:not([layout=vertical]) .calendar-picker-wrapper.sc-calcite-input-date-picker{inline-size:286px}/*!@:host([scale=l][range]:not([layout=vertical])) .calendar-picker-wrapper*/[scale=l][range].sc-calcite-input-date-picker-h:not([layout=vertical]) .calendar-picker-wrapper.sc-calcite-input-date-picker{inline-size:398px}/*!@.menu-container*/.menu-container.sc-calcite-input-date-picker{--calcite-floating-ui-z-index:var(--calcite-app-z-index-dropdown);display:block;position:absolute;z-index:var(--calcite-floating-ui-z-index);visibility:hidden}/*!@.menu-container .calcite-floating-ui-anim*/.menu-container.sc-calcite-input-date-picker .calcite-floating-ui-anim.sc-calcite-input-date-picker{position:relative;transition:var(--calcite-floating-ui-transition);transition-property:transform, visibility, opacity;opacity:0;box-shadow:0 0 16px 0 rgba(0, 0, 0, 0.16);z-index:var(--calcite-app-z-index);border-radius:0.25rem}/*!@.menu-container[data-placement^=bottom] .calcite-floating-ui-anim*/.menu-container[data-placement^=bottom].sc-calcite-input-date-picker .calcite-floating-ui-anim.sc-calcite-input-date-picker{transform:translateY(-5px)}/*!@.menu-container[data-placement^=top] .calcite-floating-ui-anim*/.menu-container[data-placement^=top].sc-calcite-input-date-picker .calcite-floating-ui-anim.sc-calcite-input-date-picker{transform:translateY(5px)}/*!@.menu-container[data-placement^=left] .calcite-floating-ui-anim*/.menu-container[data-placement^=left].sc-calcite-input-date-picker .calcite-floating-ui-anim.sc-calcite-input-date-picker{transform:translateX(5px)}/*!@.menu-container[data-placement^=right] .calcite-floating-ui-anim*/.menu-container[data-placement^=right].sc-calcite-input-date-picker .calcite-floating-ui-anim.sc-calcite-input-date-picker{transform:translateX(-5px)}/*!@.menu-container[data-placement] .calcite-floating-ui-anim--active*/.menu-container[data-placement].sc-calcite-input-date-picker .calcite-floating-ui-anim--active.sc-calcite-input-date-picker{opacity:1;transform:translate(0)}/*!@:host([open]) .menu-container*/[open].sc-calcite-input-date-picker-h .menu-container.sc-calcite-input-date-picker{visibility:visible}/*!@.menu-container--active*/.menu-container--active.sc-calcite-input-date-picker{visibility:visible}/*!@.input .calcite-input__wrapper*/.input.sc-calcite-input-date-picker .calcite-input__wrapper.sc-calcite-input-date-picker{margin-block-start:0px}/*!@:host([range][layout=vertical][scale=m]) .vertical-arrow-container*/[range][layout=vertical][scale=m].sc-calcite-input-date-picker-h .vertical-arrow-container.sc-calcite-input-date-picker{inset-block-start:1.5rem;padding-inline-start:0.75rem}/*!@:host([range][layout=vertical][scale=m]) .vertical-arrow-container calcite-icon*/[range][layout=vertical][scale=m].sc-calcite-input-date-picker-h .vertical-arrow-container.sc-calcite-input-date-picker calcite-icon.sc-calcite-input-date-picker{block-size:0.75rem;inline-size:0.75rem;min-inline-size:0px}/*!@:host([range][layout=vertical][scale=l]) .vertical-arrow-container*/[range][layout=vertical][scale=l].sc-calcite-input-date-picker-h .vertical-arrow-container.sc-calcite-input-date-picker{inset-block-start:2.25rem;padding-inline:0.875rem}/*!@:host([range][layout=vertical][open]) .vertical-arrow-container*/[range][layout=vertical][open].sc-calcite-input-date-picker-h .vertical-arrow-container.sc-calcite-input-date-picker{display:none}/*!@::slotted(input[slot=hidden-form-input])*/.sc-calcite-input-date-picker-s>input[slot=hidden-form-input]{margin:0 !important;opacity:0 !important;outline:none !important;padding:0 !important;position:absolute !important;inset:0 !important;transform:none !important;-webkit-appearance:none !important;z-index:-1 !important}/*!@.assistive-text*/.assistive-text.sc-calcite-input-date-picker{position:absolute;inline-size:1px;block-size:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0, 0, 0, 0);white-space:nowrap;border-width:0}/*!@:host([hidden])*/[hidden].sc-calcite-input-date-picker-h{display:none}/*!@[hidden]*/[hidden].sc-calcite-input-date-picker{display:none}";
|
|
25110
25160
|
|
|
25111
25161
|
class InputDatePicker {
|
|
@@ -25273,9 +25323,15 @@ class InputDatePicker {
|
|
|
25273
25323
|
const oldValueIsArray = Array.isArray(oldValue);
|
|
25274
25324
|
const valueIsArray = Array.isArray(valueAsDate);
|
|
25275
25325
|
const newStartDate = valueIsArray ? valueAsDate[0] : null;
|
|
25276
|
-
|
|
25326
|
+
let newStartDateISO = valueIsArray ? dateToISO(newStartDate) : "";
|
|
25327
|
+
if (newStartDateISO && isTwoDigitYear(newStartDateISO)) {
|
|
25328
|
+
newStartDateISO = this.getNormalizedDate(newStartDateISO);
|
|
25329
|
+
}
|
|
25277
25330
|
const newEndDate = valueIsArray ? valueAsDate[1] : null;
|
|
25278
|
-
|
|
25331
|
+
let newEndDateISO = valueIsArray ? dateToISO(newEndDate) : "";
|
|
25332
|
+
if (newEndDateISO && isTwoDigitYear(newEndDateISO)) {
|
|
25333
|
+
newEndDateISO = this.getNormalizedDate(newEndDateISO);
|
|
25334
|
+
}
|
|
25279
25335
|
const newValue = newStartDateISO || newEndDateISO ? [newStartDateISO, newEndDateISO] : "";
|
|
25280
25336
|
if (newValue === oldValue) {
|
|
25281
25337
|
return;
|
|
@@ -25301,7 +25357,10 @@ class InputDatePicker {
|
|
|
25301
25357
|
return;
|
|
25302
25358
|
}
|
|
25303
25359
|
const oldValue = this.value;
|
|
25304
|
-
|
|
25360
|
+
let newValue = dateToISO(value);
|
|
25361
|
+
if (isTwoDigitYear(newValue)) {
|
|
25362
|
+
newValue = this.getNormalizedDate(newValue);
|
|
25363
|
+
}
|
|
25305
25364
|
if (newValue === oldValue) {
|
|
25306
25365
|
return;
|
|
25307
25366
|
}
|
|
@@ -25347,6 +25406,7 @@ class InputDatePicker {
|
|
|
25347
25406
|
this.max = undefined;
|
|
25348
25407
|
this.open = false;
|
|
25349
25408
|
this.name = undefined;
|
|
25409
|
+
this.normalizeYear = false;
|
|
25350
25410
|
this.numberingSystem = undefined;
|
|
25351
25411
|
this.scale = "m";
|
|
25352
25412
|
this.placement = defaultMenuPlacement;
|
|
@@ -25376,9 +25436,17 @@ class InputDatePicker {
|
|
|
25376
25436
|
if (!this.userChangedValue) {
|
|
25377
25437
|
let newValueAsDate;
|
|
25378
25438
|
if (Array.isArray(newValue)) {
|
|
25439
|
+
if (isTwoDigitYear(newValue[0]) || isTwoDigitYear(newValue[1])) {
|
|
25440
|
+
this.value = newValue.map((val) => this.getNormalizedDate(val));
|
|
25441
|
+
return;
|
|
25442
|
+
}
|
|
25379
25443
|
newValueAsDate = getValueAsDateRange(newValue);
|
|
25380
25444
|
}
|
|
25381
25445
|
else if (newValue) {
|
|
25446
|
+
if (isTwoDigitYear(newValue)) {
|
|
25447
|
+
this.value = this.getNormalizedDate(newValue);
|
|
25448
|
+
return;
|
|
25449
|
+
}
|
|
25382
25450
|
newValueAsDate = dateFromISO(newValue);
|
|
25383
25451
|
}
|
|
25384
25452
|
else {
|
|
@@ -25480,10 +25548,18 @@ class InputDatePicker {
|
|
|
25480
25548
|
const { open } = this;
|
|
25481
25549
|
open && this.openHandler(open);
|
|
25482
25550
|
if (Array.isArray(this.value)) {
|
|
25551
|
+
if (isTwoDigitYear(this.value[0]) || isTwoDigitYear(this.value[1])) {
|
|
25552
|
+
this.value = this.value.map((val) => this.getNormalizedDate(val));
|
|
25553
|
+
return;
|
|
25554
|
+
}
|
|
25483
25555
|
this.valueAsDate = getValueAsDateRange(this.value);
|
|
25484
25556
|
}
|
|
25485
25557
|
else if (this.value) {
|
|
25486
25558
|
try {
|
|
25559
|
+
if (isTwoDigitYear(this.value)) {
|
|
25560
|
+
this.value = this.getNormalizedDate(this.value);
|
|
25561
|
+
return;
|
|
25562
|
+
}
|
|
25487
25563
|
this.valueAsDate = dateFromISO(this.value);
|
|
25488
25564
|
}
|
|
25489
25565
|
catch (error) {
|
|
@@ -25692,6 +25768,17 @@ class InputDatePicker {
|
|
|
25692
25768
|
warnAboutInvalidValue(value) {
|
|
25693
25769
|
console.warn(`The specified value "${value}" does not conform to the required format, "YYYY-MM-DD".`);
|
|
25694
25770
|
}
|
|
25771
|
+
getNormalizedDate(value) {
|
|
25772
|
+
if (!value) {
|
|
25773
|
+
return "";
|
|
25774
|
+
}
|
|
25775
|
+
if (!this.normalizeYear) {
|
|
25776
|
+
return value;
|
|
25777
|
+
}
|
|
25778
|
+
const { day, month, year } = datePartsFromISO(value);
|
|
25779
|
+
const normalizedYear = normalizeToCurrentCentury(Number(year));
|
|
25780
|
+
return `${normalizedYear}-${month}-${day}`;
|
|
25781
|
+
}
|
|
25695
25782
|
static get delegatesFocus() { return true; }
|
|
25696
25783
|
static get assetsDirs() { return ["assets"]; }
|
|
25697
25784
|
get el() { return getElement(this); }
|
|
@@ -25732,6 +25819,7 @@ class InputDatePicker {
|
|
|
25732
25819
|
"max": [1],
|
|
25733
25820
|
"open": [1540],
|
|
25734
25821
|
"name": [513],
|
|
25822
|
+
"normalizeYear": [516, "normalize-year"],
|
|
25735
25823
|
"numberingSystem": [513, "numbering-system"],
|
|
25736
25824
|
"scale": [513],
|
|
25737
25825
|
"placement": [513],
|
|
@@ -25750,7 +25838,7 @@ class InputDatePicker {
|
|
|
25750
25838
|
},
|
|
25751
25839
|
"$listeners$": [[0, "calciteDaySelect", "calciteDaySelectHandler"]],
|
|
25752
25840
|
"$lazyBundleId$": "-",
|
|
25753
|
-
"$attrsToReflect$": [["disabled", "disabled"], ["focusTrapDisabled", "focus-trap-disabled"], ["form", "form"], ["readOnly", "read-only"], ["headingLevel", "heading-level"], ["open", "open"], ["name", "name"], ["numberingSystem", "numbering-system"], ["scale", "scale"], ["placement", "placement"], ["range", "range"], ["required", "required"], ["overlayPositioning", "overlay-positioning"], ["layout", "layout"]]
|
|
25841
|
+
"$attrsToReflect$": [["disabled", "disabled"], ["focusTrapDisabled", "focus-trap-disabled"], ["form", "form"], ["readOnly", "read-only"], ["headingLevel", "heading-level"], ["open", "open"], ["name", "name"], ["normalizeYear", "normalize-year"], ["numberingSystem", "numbering-system"], ["scale", "scale"], ["placement", "placement"], ["range", "range"], ["required", "required"], ["overlayPositioning", "overlay-positioning"], ["layout", "layout"]]
|
|
25754
25842
|
}; }
|
|
25755
25843
|
}
|
|
25756
25844
|
|
|
@@ -26784,7 +26872,7 @@ class InputText {
|
|
|
26784
26872
|
}
|
|
26785
26873
|
|
|
26786
26874
|
const maxTenthForMinuteAndSecond = 5;
|
|
26787
|
-
function createLocaleDateTimeFormatter(locale, numberingSystem, includeSeconds = true) {
|
|
26875
|
+
function createLocaleDateTimeFormatter(locale, numberingSystem, includeSeconds = true, fractionalSecondDigits) {
|
|
26788
26876
|
const options = {
|
|
26789
26877
|
hour: "2-digit",
|
|
26790
26878
|
minute: "2-digit",
|
|
@@ -26793,31 +26881,69 @@ function createLocaleDateTimeFormatter(locale, numberingSystem, includeSeconds =
|
|
|
26793
26881
|
};
|
|
26794
26882
|
if (includeSeconds) {
|
|
26795
26883
|
options.second = "2-digit";
|
|
26884
|
+
if (fractionalSecondDigits) {
|
|
26885
|
+
options.fractionalSecondDigits = fractionalSecondDigits;
|
|
26886
|
+
}
|
|
26796
26887
|
}
|
|
26797
26888
|
return getDateTimeFormat(locale, options);
|
|
26798
26889
|
}
|
|
26799
|
-
function formatTimePart(number) {
|
|
26890
|
+
function formatTimePart(number, minLength) {
|
|
26891
|
+
if (number === null || number === undefined) {
|
|
26892
|
+
return;
|
|
26893
|
+
}
|
|
26800
26894
|
const numberAsString = number.toString();
|
|
26801
|
-
|
|
26895
|
+
const numberDecimalPlaces = decimalPlaces(number);
|
|
26896
|
+
if (number < 1 && numberDecimalPlaces > 0 && numberDecimalPlaces < 4) {
|
|
26897
|
+
const fractionalDigits = numberAsString.replace("0.", "");
|
|
26898
|
+
if (!minLength || fractionalDigits.length === minLength) {
|
|
26899
|
+
return fractionalDigits;
|
|
26900
|
+
}
|
|
26901
|
+
if (fractionalDigits.length < minLength) {
|
|
26902
|
+
return fractionalDigits.padEnd(minLength, "0");
|
|
26903
|
+
}
|
|
26904
|
+
return fractionalDigits;
|
|
26905
|
+
}
|
|
26906
|
+
if (number >= 0 && number < 10) {
|
|
26907
|
+
return numberAsString.padStart(2, "0");
|
|
26908
|
+
}
|
|
26909
|
+
if (number >= 10) {
|
|
26910
|
+
return numberAsString;
|
|
26911
|
+
}
|
|
26802
26912
|
}
|
|
26803
26913
|
function formatTimeString(value) {
|
|
26804
26914
|
if (!isValidTime(value)) {
|
|
26805
26915
|
return null;
|
|
26806
26916
|
}
|
|
26807
|
-
const
|
|
26808
|
-
|
|
26809
|
-
|
|
26810
|
-
|
|
26811
|
-
|
|
26812
|
-
|
|
26917
|
+
const { hour, minute, second, fractionalSecond } = parseTimeString(value);
|
|
26918
|
+
let formattedValue = `${formatTimePart(parseInt(hour))}:${formatTimePart(parseInt(minute))}`;
|
|
26919
|
+
if (second) {
|
|
26920
|
+
formattedValue += `:${formatTimePart(parseInt(second))}`;
|
|
26921
|
+
if (fractionalSecond) {
|
|
26922
|
+
formattedValue += `.${fractionalSecond}`;
|
|
26923
|
+
}
|
|
26813
26924
|
}
|
|
26814
|
-
return
|
|
26925
|
+
return formattedValue;
|
|
26926
|
+
}
|
|
26927
|
+
function fractionalSecondPartToMilliseconds(fractionalSecondPart) {
|
|
26928
|
+
return parseInt((parseFloat(`0.${fractionalSecondPart}`) / 0.001).toFixed(3));
|
|
26815
26929
|
}
|
|
26816
26930
|
function getLocaleHourCycle(locale, numberingSystem) {
|
|
26817
26931
|
const formatter = createLocaleDateTimeFormatter(locale, numberingSystem);
|
|
26818
26932
|
const parts = formatter.formatToParts(new Date(Date.UTC(0, 0, 0, 0, 0, 0)));
|
|
26819
26933
|
return getLocalizedTimePart("meridiem", parts) ? "12" : "24";
|
|
26820
26934
|
}
|
|
26935
|
+
function getLocalizedDecimalSeparator(locale, numberingSystem) {
|
|
26936
|
+
numberStringFormatter.numberFormatOptions = {
|
|
26937
|
+
locale,
|
|
26938
|
+
numberingSystem,
|
|
26939
|
+
};
|
|
26940
|
+
return numberStringFormatter.localize("1.1").split("")[1];
|
|
26941
|
+
}
|
|
26942
|
+
function getLocalizedTimePartSuffix(part, locale, numberingSystem = "latn") {
|
|
26943
|
+
const formatter = createLocaleDateTimeFormatter(locale, numberingSystem);
|
|
26944
|
+
const parts = formatter.formatToParts(new Date(Date.UTC(0, 0, 0, 0, 0, 0)));
|
|
26945
|
+
return getLocalizedTimePart(`${part}Suffix`, parts);
|
|
26946
|
+
}
|
|
26821
26947
|
function getLocalizedTimePart(part, parts) {
|
|
26822
26948
|
if (!part || !parts) {
|
|
26823
26949
|
return null;
|
|
@@ -26883,6 +27009,29 @@ function isValidTimePart(value, part) {
|
|
|
26883
27009
|
return part === "hour" ? valueAsNumber >= 0 && valueAsNumber < 24 : valueAsNumber >= 0 && valueAsNumber < 60;
|
|
26884
27010
|
}
|
|
26885
27011
|
function localizeTimePart({ value, part, locale, numberingSystem }) {
|
|
27012
|
+
if (part === "fractionalSecond") {
|
|
27013
|
+
const localizedDecimalSeparator = getLocalizedDecimalSeparator(locale, numberingSystem);
|
|
27014
|
+
let localizedFractionalSecond = null;
|
|
27015
|
+
if (value) {
|
|
27016
|
+
numberStringFormatter.numberFormatOptions = {
|
|
27017
|
+
locale,
|
|
27018
|
+
numberingSystem,
|
|
27019
|
+
};
|
|
27020
|
+
const localizedZero = numberStringFormatter.localize("0");
|
|
27021
|
+
if (parseInt(value) === 0) {
|
|
27022
|
+
localizedFractionalSecond = "".padStart(value.length, localizedZero);
|
|
27023
|
+
}
|
|
27024
|
+
else {
|
|
27025
|
+
localizedFractionalSecond = numberStringFormatter
|
|
27026
|
+
.localize(`0.${value}`)
|
|
27027
|
+
.replace(`${localizedZero}${localizedDecimalSeparator}`, "");
|
|
27028
|
+
if (localizedFractionalSecond.length < value.length) {
|
|
27029
|
+
localizedFractionalSecond = localizedFractionalSecond.padEnd(value.length, localizedZero);
|
|
27030
|
+
}
|
|
27031
|
+
}
|
|
27032
|
+
}
|
|
27033
|
+
return localizedFractionalSecond;
|
|
27034
|
+
}
|
|
26886
27035
|
if (!isValidTimePart(value, part)) {
|
|
26887
27036
|
return;
|
|
26888
27037
|
}
|
|
@@ -26895,20 +27044,20 @@ function localizeTimePart({ value, part, locale, numberingSystem }) {
|
|
|
26895
27044
|
const parts = formatter.formatToParts(date);
|
|
26896
27045
|
return getLocalizedTimePart(part, parts);
|
|
26897
27046
|
}
|
|
26898
|
-
function localizeTimeString({ value, locale, numberingSystem, includeSeconds = true, }) {
|
|
27047
|
+
function localizeTimeString({ value, locale, numberingSystem, includeSeconds = true, fractionalSecondDigits, }) {
|
|
26899
27048
|
if (!isValidTime(value)) {
|
|
26900
27049
|
return null;
|
|
26901
27050
|
}
|
|
26902
|
-
const { hour, minute, second = "0" } = parseTimeString(value);
|
|
26903
|
-
const dateFromTimeString = new Date(Date.UTC(0, 0, 0, parseInt(hour), parseInt(minute), parseInt(second)));
|
|
26904
|
-
const formatter = createLocaleDateTimeFormatter(locale, numberingSystem, includeSeconds);
|
|
26905
|
-
return formatter
|
|
27051
|
+
const { hour, minute, second = "0", fractionalSecond } = parseTimeString(value);
|
|
27052
|
+
const dateFromTimeString = new Date(Date.UTC(0, 0, 0, parseInt(hour), parseInt(minute), parseInt(second), fractionalSecond && fractionalSecondPartToMilliseconds(fractionalSecond)));
|
|
27053
|
+
const formatter = createLocaleDateTimeFormatter(locale, numberingSystem, includeSeconds, fractionalSecondDigits);
|
|
27054
|
+
return formatter.format(dateFromTimeString) || null;
|
|
26906
27055
|
}
|
|
26907
|
-
function localizeTimeStringToParts({ value, locale, numberingSystem, }) {
|
|
27056
|
+
function localizeTimeStringToParts({ value, locale, numberingSystem = "latn", }) {
|
|
26908
27057
|
if (!isValidTime(value)) {
|
|
26909
27058
|
return null;
|
|
26910
27059
|
}
|
|
26911
|
-
const { hour, minute, second = "0" } = parseTimeString(value);
|
|
27060
|
+
const { hour, minute, second = "0", fractionalSecond } = parseTimeString(value);
|
|
26912
27061
|
const dateFromTimeString = new Date(Date.UTC(0, 0, 0, parseInt(hour), parseInt(minute), parseInt(second)));
|
|
26913
27062
|
if (dateFromTimeString) {
|
|
26914
27063
|
const formatter = createLocaleDateTimeFormatter(locale, numberingSystem);
|
|
@@ -26919,6 +27068,13 @@ function localizeTimeStringToParts({ value, locale, numberingSystem, }) {
|
|
|
26919
27068
|
localizedMinute: getLocalizedTimePart("minute", parts),
|
|
26920
27069
|
localizedMinuteSuffix: getLocalizedTimePart("minuteSuffix", parts),
|
|
26921
27070
|
localizedSecond: getLocalizedTimePart("second", parts),
|
|
27071
|
+
localizedDecimalSeparator: getLocalizedDecimalSeparator(locale, numberingSystem),
|
|
27072
|
+
localizedFractionalSecond: localizeTimePart({
|
|
27073
|
+
value: fractionalSecond,
|
|
27074
|
+
part: "fractionalSecond",
|
|
27075
|
+
locale,
|
|
27076
|
+
numberingSystem,
|
|
27077
|
+
}),
|
|
26922
27078
|
localizedSecondSuffix: getLocalizedTimePart("secondSuffix", parts),
|
|
26923
27079
|
localizedMeridiem: getLocalizedTimePart("meridiem", parts),
|
|
26924
27080
|
};
|
|
@@ -26940,14 +27096,21 @@ function getTimeParts({ value, locale, numberingSystem }) {
|
|
|
26940
27096
|
}
|
|
26941
27097
|
function parseTimeString(value) {
|
|
26942
27098
|
if (isValidTime(value)) {
|
|
26943
|
-
const [hour, minute,
|
|
27099
|
+
const [hour, minute, secondDecimal] = value.split(":");
|
|
27100
|
+
let second = secondDecimal;
|
|
27101
|
+
let fractionalSecond = null;
|
|
27102
|
+
if (secondDecimal?.includes(".")) {
|
|
27103
|
+
[second, fractionalSecond] = secondDecimal.split(".");
|
|
27104
|
+
}
|
|
26944
27105
|
return {
|
|
27106
|
+
fractionalSecond,
|
|
26945
27107
|
hour,
|
|
26946
27108
|
minute,
|
|
26947
27109
|
second,
|
|
26948
27110
|
};
|
|
26949
27111
|
}
|
|
26950
27112
|
return {
|
|
27113
|
+
fractionalSecond: null,
|
|
26951
27114
|
hour: null,
|
|
26952
27115
|
minute: null,
|
|
26953
27116
|
second: null,
|
|
@@ -26957,10 +27120,13 @@ function toISOTimeString(value, includeSeconds = true) {
|
|
|
26957
27120
|
if (!isValidTime(value)) {
|
|
26958
27121
|
return "";
|
|
26959
27122
|
}
|
|
26960
|
-
const { hour, minute, second } = parseTimeString(value);
|
|
27123
|
+
const { hour, minute, second, fractionalSecond } = parseTimeString(value);
|
|
26961
27124
|
let isoTimeString = `${formatTimePart(parseInt(hour))}:${formatTimePart(parseInt(minute))}`;
|
|
26962
27125
|
if (includeSeconds) {
|
|
26963
27126
|
isoTimeString += `:${formatTimePart(parseInt((includeSeconds && second) || "0"))}`;
|
|
27127
|
+
if (fractionalSecond) {
|
|
27128
|
+
isoTimeString += `.${fractionalSecond}`;
|
|
27129
|
+
}
|
|
26964
27130
|
}
|
|
26965
27131
|
return isoTimeString;
|
|
26966
27132
|
}
|
|
@@ -28133,7 +28299,7 @@ var updateLocale = (function (option, Dayjs, dayjs) {
|
|
|
28133
28299
|
const inputTimePickerCss = "/*!@:host([disabled])*/[disabled].sc-calcite-input-time-picker-h{cursor:default;-webkit-user-select:none;user-select:none;opacity:var(--calcite-ui-opacity-disabled)}/*!@:host([disabled]) *,\n:host([disabled]) ::slotted(*)*/[disabled].sc-calcite-input-time-picker-h *.sc-calcite-input-time-picker,.sc-calcite-input-time-picker-h[disabled] .sc-calcite-input-time-picker-s>*{pointer-events:none}/*!@:host*/.sc-calcite-input-time-picker-h{display:inline-block;-webkit-user-select:none;user-select:none}/*!@:host([disabled]) ::slotted([calcite-hydrated][disabled]),\n:host([disabled]) [calcite-hydrated][disabled]*/.sc-calcite-input-time-picker-h[disabled] .sc-calcite-input-time-picker-s>[calcite-hydrated][disabled],[disabled].sc-calcite-input-time-picker-h [calcite-hydrated][disabled].sc-calcite-input-time-picker{opacity:1}/*!@::slotted(input[slot=hidden-form-input])*/.sc-calcite-input-time-picker-s>input[slot=hidden-form-input]{margin:0 !important;opacity:0 !important;outline:none !important;padding:0 !important;position:absolute !important;inset:0 !important;transform:none !important;-webkit-appearance:none !important;z-index:-1 !important}/*!@:host([scale=s])*/[scale=s].sc-calcite-input-time-picker-h{--calcite-toggle-spacing:0.5rem}/*!@:host([scale=m])*/[scale=m].sc-calcite-input-time-picker-h{--calcite-toggle-spacing:0.75rem}/*!@:host([scale=l])*/[scale=l].sc-calcite-input-time-picker-h{--calcite-toggle-spacing:1rem}/*!@.input-wrapper*/.input-wrapper.sc-calcite-input-time-picker{position:relative}/*!@.toggle-icon*/.toggle-icon.sc-calcite-input-time-picker{position:absolute;display:flex;inline-size:1rem;cursor:pointer;align-items:center;inset-inline-end:0;inset-block:0;padding-inline:var(--calcite-toggle-spacing)}/*!@:host([hidden])*/[hidden].sc-calcite-input-time-picker-h{display:none}/*!@[hidden]*/[hidden].sc-calcite-input-time-picker{display:none}";
|
|
28134
28300
|
|
|
28135
28301
|
// some bundlers (e.g., Webpack) need dynamic import paths to be static
|
|
28136
|
-
const
|
|
28302
|
+
const supportedDayjsLocaleToLocaleConfigImport = new Map([
|
|
28137
28303
|
["ar", () => Promise.resolve().then(function () { return ar; })],
|
|
28138
28304
|
["bg", () => Promise.resolve().then(function () { return bg; })],
|
|
28139
28305
|
["bs", () => Promise.resolve().then(function () { return bs; })],
|
|
@@ -28219,6 +28385,7 @@ class InputTimePicker {
|
|
|
28219
28385
|
locale: this.effectiveLocale,
|
|
28220
28386
|
numberingSystem: this.numberingSystem,
|
|
28221
28387
|
includeSeconds: this.shouldIncludeSeconds(),
|
|
28388
|
+
fractionalSecondDigits: decimalPlaces(this.step),
|
|
28222
28389
|
});
|
|
28223
28390
|
if (localizedTimeString !== inputValue) {
|
|
28224
28391
|
this.setInputValue(localizedTimeString);
|
|
@@ -28260,6 +28427,7 @@ class InputTimePicker {
|
|
|
28260
28427
|
locale: this.effectiveLocale,
|
|
28261
28428
|
numberingSystem: this.numberingSystem,
|
|
28262
28429
|
includeSeconds,
|
|
28430
|
+
fractionalSecondDigits: decimalPlaces(this.step),
|
|
28263
28431
|
}));
|
|
28264
28432
|
};
|
|
28265
28433
|
this.popoverCloseHandler = () => {
|
|
@@ -28294,15 +28462,18 @@ class InputTimePicker {
|
|
|
28294
28462
|
return;
|
|
28295
28463
|
}
|
|
28296
28464
|
const newValue = this.delocalizeTimeString(this.calciteInputEl.value);
|
|
28297
|
-
|
|
28298
|
-
|
|
28299
|
-
|
|
28300
|
-
|
|
28301
|
-
|
|
28302
|
-
|
|
28303
|
-
|
|
28304
|
-
|
|
28305
|
-
|
|
28465
|
+
if (isValidTime(newValue)) {
|
|
28466
|
+
this.setValue(newValue);
|
|
28467
|
+
const localizedTimeString = localizeTimeString({
|
|
28468
|
+
value: this.value,
|
|
28469
|
+
locale: this.effectiveLocale,
|
|
28470
|
+
numberingSystem: this.numberingSystem,
|
|
28471
|
+
includeSeconds: this.shouldIncludeSeconds(),
|
|
28472
|
+
fractionalSecondDigits: decimalPlaces(this.step),
|
|
28473
|
+
});
|
|
28474
|
+
if (newValue && this.calciteInputEl.value !== localizedTimeString) {
|
|
28475
|
+
this.setInputValue(localizedTimeString);
|
|
28476
|
+
}
|
|
28306
28477
|
}
|
|
28307
28478
|
}
|
|
28308
28479
|
else if (key === "ArrowDown") {
|
|
@@ -28361,6 +28532,7 @@ class InputTimePicker {
|
|
|
28361
28532
|
locale: this.effectiveLocale,
|
|
28362
28533
|
numberingSystem: this.numberingSystem,
|
|
28363
28534
|
includeSeconds: this.shouldIncludeSeconds(),
|
|
28535
|
+
fractionalSecondDigits: decimalPlaces(this.step),
|
|
28364
28536
|
}));
|
|
28365
28537
|
}
|
|
28366
28538
|
};
|
|
@@ -28379,6 +28551,7 @@ class InputTimePicker {
|
|
|
28379
28551
|
includeSeconds,
|
|
28380
28552
|
locale: this.effectiveLocale,
|
|
28381
28553
|
numberingSystem: this.numberingSystem,
|
|
28554
|
+
fractionalSecondDigits: decimalPlaces(this.step),
|
|
28382
28555
|
})
|
|
28383
28556
|
: "");
|
|
28384
28557
|
};
|
|
@@ -28435,6 +28608,7 @@ class InputTimePicker {
|
|
|
28435
28608
|
locale: this.effectiveLocale,
|
|
28436
28609
|
numberingSystem,
|
|
28437
28610
|
includeSeconds: this.shouldIncludeSeconds(),
|
|
28611
|
+
fractionalSecondDigits: decimalPlaces(this.step),
|
|
28438
28612
|
}));
|
|
28439
28613
|
}
|
|
28440
28614
|
stepWatcher(newStep, oldStep) {
|
|
@@ -28456,6 +28630,7 @@ class InputTimePicker {
|
|
|
28456
28630
|
locale,
|
|
28457
28631
|
numberingSystem: this.numberingSystem,
|
|
28458
28632
|
includeSeconds: this.shouldIncludeSeconds(),
|
|
28633
|
+
fractionalSecondDigits: decimalPlaces(this.step),
|
|
28459
28634
|
}));
|
|
28460
28635
|
}
|
|
28461
28636
|
// --------------------------------------------------------------------------
|
|
@@ -28484,26 +28659,114 @@ class InputTimePicker {
|
|
|
28484
28659
|
delocalizeTimeString(value) {
|
|
28485
28660
|
// we need to set the corresponding locale before parsing, otherwise it defaults to English (possible dayjs bug)
|
|
28486
28661
|
dayjs.locale(this.effectiveLocale.toLowerCase());
|
|
28487
|
-
const
|
|
28662
|
+
const nonFractionalSecondParts = this.delocalizeTimeStringToParts(value);
|
|
28663
|
+
let delocalizedTimeString;
|
|
28664
|
+
if (this.shouldIncludeFractionalSeconds()) {
|
|
28665
|
+
const stepPrecision = decimalPlaces(this.step);
|
|
28666
|
+
const centisecondParts = this.delocalizeTimeStringToParts(value, "S");
|
|
28667
|
+
if (stepPrecision === 1) {
|
|
28668
|
+
delocalizedTimeString =
|
|
28669
|
+
centisecondParts.millisecond !== 0
|
|
28670
|
+
? this.getTimeStringFromParts(centisecondParts)
|
|
28671
|
+
: this.getTimeStringFromParts(nonFractionalSecondParts);
|
|
28672
|
+
}
|
|
28673
|
+
else {
|
|
28674
|
+
const decisecondParts = this.delocalizeTimeStringToParts(value, "SS");
|
|
28675
|
+
if (stepPrecision === 2) {
|
|
28676
|
+
if (decisecondParts.millisecond !== 0) {
|
|
28677
|
+
delocalizedTimeString = this.getTimeStringFromParts(decisecondParts);
|
|
28678
|
+
}
|
|
28679
|
+
else if (centisecondParts.millisecond !== 0) {
|
|
28680
|
+
delocalizedTimeString = this.getTimeStringFromParts(centisecondParts);
|
|
28681
|
+
}
|
|
28682
|
+
else {
|
|
28683
|
+
delocalizedTimeString = this.getTimeStringFromParts(nonFractionalSecondParts);
|
|
28684
|
+
}
|
|
28685
|
+
}
|
|
28686
|
+
else if (stepPrecision >= 3) {
|
|
28687
|
+
const millisecondParts = this.delocalizeTimeStringToParts(value, "SSS");
|
|
28688
|
+
if (millisecondParts.millisecond !== 0) {
|
|
28689
|
+
delocalizedTimeString = this.getTimeStringFromParts(millisecondParts);
|
|
28690
|
+
}
|
|
28691
|
+
else if (decisecondParts.millisecond !== 0) {
|
|
28692
|
+
delocalizedTimeString = this.getTimeStringFromParts(decisecondParts);
|
|
28693
|
+
}
|
|
28694
|
+
else if (centisecondParts.millisecond !== 0) {
|
|
28695
|
+
delocalizedTimeString = this.getTimeStringFromParts(centisecondParts);
|
|
28696
|
+
}
|
|
28697
|
+
else {
|
|
28698
|
+
delocalizedTimeString = this.getTimeStringFromParts(nonFractionalSecondParts);
|
|
28699
|
+
}
|
|
28700
|
+
}
|
|
28701
|
+
}
|
|
28702
|
+
}
|
|
28703
|
+
else {
|
|
28704
|
+
delocalizedTimeString = this.getTimeStringFromParts(nonFractionalSecondParts);
|
|
28705
|
+
}
|
|
28706
|
+
return delocalizedTimeString;
|
|
28707
|
+
}
|
|
28708
|
+
delocalizeTimeStringToParts(localizedTimeString, fractionalSecondFormatToken) {
|
|
28709
|
+
const ltsFormatString = this.localeConfig?.formats?.LTS;
|
|
28710
|
+
const fractionalSecondTokenMatch = ltsFormatString.match(/ss\.*(S+)/g);
|
|
28711
|
+
if (fractionalSecondFormatToken && this.shouldIncludeFractionalSeconds()) {
|
|
28712
|
+
const secondFormatToken = `ss.${fractionalSecondFormatToken}`;
|
|
28713
|
+
this.localeConfig.formats.LTS = fractionalSecondTokenMatch
|
|
28714
|
+
? ltsFormatString.replace(fractionalSecondTokenMatch[0], secondFormatToken)
|
|
28715
|
+
: ltsFormatString.replace("ss", secondFormatToken);
|
|
28716
|
+
}
|
|
28717
|
+
else if (fractionalSecondTokenMatch) {
|
|
28718
|
+
this.localeConfig.formats.LTS = ltsFormatString.replace(fractionalSecondTokenMatch[0], "ss");
|
|
28719
|
+
}
|
|
28720
|
+
dayjs.updateLocale(this.getSupportedDayjsLocale(getSupportedLocale(this.effectiveLocale)), this.localeConfig);
|
|
28721
|
+
const dayjsParseResult = dayjs(localizedTimeString, ["LTS", "LT"]);
|
|
28488
28722
|
if (dayjsParseResult.isValid()) {
|
|
28489
|
-
|
|
28490
|
-
|
|
28491
|
-
|
|
28723
|
+
return {
|
|
28724
|
+
hour: dayjsParseResult.get("hour"),
|
|
28725
|
+
minute: dayjsParseResult.get("minute"),
|
|
28726
|
+
second: dayjsParseResult.get("second"),
|
|
28727
|
+
millisecond: dayjsParseResult.get("millisecond"),
|
|
28728
|
+
};
|
|
28729
|
+
}
|
|
28730
|
+
return {
|
|
28731
|
+
hour: null,
|
|
28732
|
+
minute: null,
|
|
28733
|
+
second: null,
|
|
28734
|
+
millisecond: null,
|
|
28735
|
+
};
|
|
28736
|
+
}
|
|
28737
|
+
getTimeStringFromParts(parts) {
|
|
28738
|
+
let timeString = "";
|
|
28739
|
+
if (!parts) {
|
|
28740
|
+
return timeString;
|
|
28741
|
+
}
|
|
28742
|
+
if (parts.hour !== null && parts.minute !== null) {
|
|
28743
|
+
timeString = `${formatTimePart(parts.hour)}:${formatTimePart(parts.minute)}`;
|
|
28744
|
+
if (this.shouldIncludeSeconds() && parts.second !== null) {
|
|
28745
|
+
timeString += `:${formatTimePart(parts.second)}`;
|
|
28746
|
+
if (this.shouldIncludeFractionalSeconds() && parts.millisecond !== null) {
|
|
28747
|
+
const second = (parts.millisecond * 0.001).toFixed(decimalPlaces(this.step));
|
|
28748
|
+
timeString += `.${second.toString().replace("0.", "")}`;
|
|
28749
|
+
}
|
|
28492
28750
|
}
|
|
28493
|
-
return formatTimeString(unformattedTimeString) || "";
|
|
28494
28751
|
}
|
|
28495
|
-
return
|
|
28752
|
+
return timeString;
|
|
28496
28753
|
}
|
|
28497
|
-
|
|
28498
|
-
|
|
28499
|
-
if (
|
|
28500
|
-
|
|
28754
|
+
getSupportedDayjsLocale(locale) {
|
|
28755
|
+
const dayjsLocale = locale.toLowerCase();
|
|
28756
|
+
if (dayjsLocale === "no") {
|
|
28757
|
+
return "nb";
|
|
28501
28758
|
}
|
|
28502
|
-
if (
|
|
28503
|
-
|
|
28759
|
+
if (dayjsLocale === "pt-pt") {
|
|
28760
|
+
return "pt";
|
|
28504
28761
|
}
|
|
28505
|
-
|
|
28506
|
-
|
|
28762
|
+
return dayjsLocale;
|
|
28763
|
+
}
|
|
28764
|
+
async loadDateTimeLocaleData() {
|
|
28765
|
+
let supportedLocale = getSupportedLocale(this.effectiveLocale).toLowerCase();
|
|
28766
|
+
supportedLocale = this.getSupportedDayjsLocale(supportedLocale);
|
|
28767
|
+
const { default: localeConfig } = await supportedDayjsLocaleToLocaleConfigImport.get(supportedLocale)();
|
|
28768
|
+
this.localeConfig = localeConfig;
|
|
28769
|
+
dayjs.locale(this.localeConfig, null, true);
|
|
28507
28770
|
dayjs.updateLocale(supportedLocale, this.getExtendedLocaleConfig(supportedLocale));
|
|
28508
28771
|
}
|
|
28509
28772
|
getExtendedLocaleConfig(locale) {
|
|
@@ -28577,6 +28840,9 @@ class InputTimePicker {
|
|
|
28577
28840
|
shouldIncludeSeconds() {
|
|
28578
28841
|
return this.step < 60;
|
|
28579
28842
|
}
|
|
28843
|
+
shouldIncludeFractionalSeconds() {
|
|
28844
|
+
return decimalPlaces(this.step) > 0;
|
|
28845
|
+
}
|
|
28580
28846
|
//--------------------------------------------------------------------------
|
|
28581
28847
|
//
|
|
28582
28848
|
// Lifecycle
|
|
@@ -28607,6 +28873,7 @@ class InputTimePicker {
|
|
|
28607
28873
|
locale: this.effectiveLocale,
|
|
28608
28874
|
numberingSystem: this.numberingSystem,
|
|
28609
28875
|
includeSeconds: this.shouldIncludeSeconds(),
|
|
28876
|
+
fractionalSecondDigits: decimalPlaces(this.step),
|
|
28610
28877
|
}));
|
|
28611
28878
|
}
|
|
28612
28879
|
}
|
|
@@ -37676,7 +37943,7 @@ const shellCss = "/*!@:host*/.sc-calcite-shell-h{box-sizing:border-box;backgroun
|
|
|
37676
37943
|
* @slot center-row - [Deprecated] Use the `"panel-bottom"` slot instead. A slot for adding the bottom `calcite-shell-center-row`.
|
|
37677
37944
|
* @slot modals - A slot for adding `calcite-modal` components. When placed in this slot, the modal position will be constrained to the extent of the shell.
|
|
37678
37945
|
* @slot alerts - A slot for adding `calcite-alert` components. When placed in this slot, the alert position will be constrained to the extent of the shell.
|
|
37679
|
-
* @slot sheets - A slot for adding `calcite-sheet` components. When placed in this slot, the
|
|
37946
|
+
* @slot sheets - A slot for adding `calcite-sheet` components. When placed in this slot, the sheet position will be constrained to the extent of the shell.
|
|
37680
37947
|
*/
|
|
37681
37948
|
class Shell {
|
|
37682
37949
|
constructor(hostRef) {
|
|
@@ -41474,6 +41741,8 @@ const CSS$6 = {
|
|
|
41474
41741
|
button: "button",
|
|
41475
41742
|
buttonBottomLeft: "button--bottom-left",
|
|
41476
41743
|
buttonBottomRight: "button--bottom-right",
|
|
41744
|
+
buttonFractionalSecondDown: "button--fractionalSecond-down",
|
|
41745
|
+
buttonFractionalSecondUp: "button--fractionalSecond-up",
|
|
41477
41746
|
buttonHourDown: "button--hour-down",
|
|
41478
41747
|
buttonHourUp: "button--hour-up",
|
|
41479
41748
|
buttonMeridiemDown: "button--meridiem-down",
|
|
@@ -41486,6 +41755,7 @@ const CSS$6 = {
|
|
|
41486
41755
|
buttonTopRight: "button--top-right",
|
|
41487
41756
|
column: "column",
|
|
41488
41757
|
delimiter: "delimiter",
|
|
41758
|
+
fractionalSecond: "fractionalSecond",
|
|
41489
41759
|
hour: "hour",
|
|
41490
41760
|
input: "input",
|
|
41491
41761
|
meridiem: "meridiem",
|
|
@@ -41511,6 +41781,9 @@ class TimePicker {
|
|
|
41511
41781
|
this.calciteInternalTimePickerBlur = createEvent(this, "calciteInternalTimePickerBlur", 6);
|
|
41512
41782
|
this.calciteInternalTimePickerChange = createEvent(this, "calciteInternalTimePickerChange", 6);
|
|
41513
41783
|
this.calciteInternalTimePickerFocus = createEvent(this, "calciteInternalTimePickerFocus", 6);
|
|
41784
|
+
this.decrementFractionalSecond = () => {
|
|
41785
|
+
this.nudgeFractionalSecond("down");
|
|
41786
|
+
};
|
|
41514
41787
|
this.decrementHour = () => {
|
|
41515
41788
|
const newHour = !this.hour ? 0 : this.hour === "00" ? 23 : parseInt(this.hour) - 1;
|
|
41516
41789
|
this.setValuePart("hour", newHour);
|
|
@@ -41539,9 +41812,39 @@ class TimePicker {
|
|
|
41539
41812
|
this.focusHandler = (event) => {
|
|
41540
41813
|
this.activeEl = event.currentTarget;
|
|
41541
41814
|
};
|
|
41542
|
-
this.
|
|
41543
|
-
|
|
41544
|
-
|
|
41815
|
+
this.fractionalSecondKeyDownHandler = (event) => {
|
|
41816
|
+
const { key } = event;
|
|
41817
|
+
if (numberKeys.includes(key)) {
|
|
41818
|
+
const stepPrecision = decimalPlaces(this.step);
|
|
41819
|
+
const fractionalSecondAsInteger = parseInt(this.fractionalSecond);
|
|
41820
|
+
const fractionalSecondAsIntegerLength = fractionalSecondAsInteger.toString().length;
|
|
41821
|
+
let newFractionalSecondAsIntegerString;
|
|
41822
|
+
if (fractionalSecondAsIntegerLength >= stepPrecision) {
|
|
41823
|
+
newFractionalSecondAsIntegerString = key.padStart(stepPrecision, "0");
|
|
41824
|
+
}
|
|
41825
|
+
else if (fractionalSecondAsIntegerLength < stepPrecision) {
|
|
41826
|
+
newFractionalSecondAsIntegerString = `${fractionalSecondAsInteger}${key}`.padStart(stepPrecision, "0");
|
|
41827
|
+
}
|
|
41828
|
+
this.setValuePart("fractionalSecond", parseFloat(`0.${newFractionalSecondAsIntegerString}`));
|
|
41829
|
+
}
|
|
41830
|
+
else {
|
|
41831
|
+
switch (key) {
|
|
41832
|
+
case "Backspace":
|
|
41833
|
+
case "Delete":
|
|
41834
|
+
this.setValuePart("fractionalSecond", null);
|
|
41835
|
+
break;
|
|
41836
|
+
case "ArrowDown":
|
|
41837
|
+
event.preventDefault();
|
|
41838
|
+
this.nudgeFractionalSecond("down");
|
|
41839
|
+
break;
|
|
41840
|
+
case "ArrowUp":
|
|
41841
|
+
event.preventDefault();
|
|
41842
|
+
this.nudgeFractionalSecond("up");
|
|
41843
|
+
break;
|
|
41844
|
+
case " ":
|
|
41845
|
+
event.preventDefault();
|
|
41846
|
+
break;
|
|
41847
|
+
}
|
|
41545
41848
|
}
|
|
41546
41849
|
};
|
|
41547
41850
|
this.hourKeyDownHandler = (event) => {
|
|
@@ -41595,10 +41898,8 @@ class TimePicker {
|
|
|
41595
41898
|
}
|
|
41596
41899
|
}
|
|
41597
41900
|
};
|
|
41598
|
-
this.
|
|
41599
|
-
|
|
41600
|
-
this.incrementHour();
|
|
41601
|
-
}
|
|
41901
|
+
this.incrementFractionalSecond = () => {
|
|
41902
|
+
this.nudgeFractionalSecond("up");
|
|
41602
41903
|
};
|
|
41603
41904
|
this.incrementMeridiem = () => {
|
|
41604
41905
|
const newMeridiem = this.meridiem === "AM" ? "PM" : "AM";
|
|
@@ -41626,11 +41927,6 @@ class TimePicker {
|
|
|
41626
41927
|
this.incrementSecond = () => {
|
|
41627
41928
|
this.incrementMinuteOrSecond("second");
|
|
41628
41929
|
};
|
|
41629
|
-
this.meridiemDownButtonKeyDownHandler = (event) => {
|
|
41630
|
-
if (this.buttonActivated(event)) {
|
|
41631
|
-
this.decrementMeridiem();
|
|
41632
|
-
}
|
|
41633
|
-
};
|
|
41634
41930
|
this.meridiemKeyDownHandler = (event) => {
|
|
41635
41931
|
switch (event.key) {
|
|
41636
41932
|
case "a":
|
|
@@ -41656,16 +41952,6 @@ class TimePicker {
|
|
|
41656
41952
|
break;
|
|
41657
41953
|
}
|
|
41658
41954
|
};
|
|
41659
|
-
this.meridiemUpButtonKeyDownHandler = (event) => {
|
|
41660
|
-
if (this.buttonActivated(event)) {
|
|
41661
|
-
this.incrementMeridiem();
|
|
41662
|
-
}
|
|
41663
|
-
};
|
|
41664
|
-
this.minuteDownButtonKeyDownHandler = (event) => {
|
|
41665
|
-
if (this.buttonActivated(event)) {
|
|
41666
|
-
this.decrementMinute();
|
|
41667
|
-
}
|
|
41668
|
-
};
|
|
41669
41955
|
this.minuteKeyDownHandler = (event) => {
|
|
41670
41956
|
const { key } = event;
|
|
41671
41957
|
if (numberKeys.includes(key)) {
|
|
@@ -41703,16 +41989,51 @@ class TimePicker {
|
|
|
41703
41989
|
}
|
|
41704
41990
|
}
|
|
41705
41991
|
};
|
|
41706
|
-
this.
|
|
41707
|
-
|
|
41708
|
-
|
|
41709
|
-
|
|
41710
|
-
|
|
41711
|
-
|
|
41712
|
-
|
|
41713
|
-
|
|
41714
|
-
|
|
41715
|
-
|
|
41992
|
+
this.nudgeFractionalSecond = (direction) => {
|
|
41993
|
+
const stepDecimal = getDecimals(this.step);
|
|
41994
|
+
const stepPrecision = decimalPlaces(this.step);
|
|
41995
|
+
const fractionalSecondAsInteger = parseInt(this.fractionalSecond);
|
|
41996
|
+
const fractionalSecondAsFloat = parseFloat(`0.${this.fractionalSecond}`);
|
|
41997
|
+
let nudgedValue;
|
|
41998
|
+
let nudgedValueRounded;
|
|
41999
|
+
let nudgedValueRoundedDecimals;
|
|
42000
|
+
let newFractionalSecond;
|
|
42001
|
+
if (direction === "up") {
|
|
42002
|
+
nudgedValue = isNaN(fractionalSecondAsInteger) ? 0 : fractionalSecondAsFloat + stepDecimal;
|
|
42003
|
+
nudgedValueRounded = parseFloat(nudgedValue.toFixed(stepPrecision));
|
|
42004
|
+
nudgedValueRoundedDecimals = getDecimals(nudgedValueRounded);
|
|
42005
|
+
newFractionalSecond =
|
|
42006
|
+
nudgedValueRounded < 1 && decimalPlaces(nudgedValueRoundedDecimals) > 0
|
|
42007
|
+
? formatTimePart(nudgedValueRoundedDecimals, stepPrecision)
|
|
42008
|
+
: "".padStart(stepPrecision, "0");
|
|
42009
|
+
}
|
|
42010
|
+
if (direction === "down") {
|
|
42011
|
+
nudgedValue =
|
|
42012
|
+
isNaN(fractionalSecondAsInteger) || fractionalSecondAsInteger === 0
|
|
42013
|
+
? 1 - stepDecimal
|
|
42014
|
+
: fractionalSecondAsFloat - stepDecimal;
|
|
42015
|
+
nudgedValueRounded = parseFloat(nudgedValue.toFixed(stepPrecision));
|
|
42016
|
+
nudgedValueRoundedDecimals = getDecimals(nudgedValueRounded);
|
|
42017
|
+
newFractionalSecond =
|
|
42018
|
+
nudgedValueRounded < 1 &&
|
|
42019
|
+
decimalPlaces(nudgedValueRoundedDecimals) > 0 &&
|
|
42020
|
+
Math.sign(nudgedValueRoundedDecimals) === 1
|
|
42021
|
+
? formatTimePart(nudgedValueRoundedDecimals, stepPrecision)
|
|
42022
|
+
: "".padStart(stepPrecision, "0");
|
|
42023
|
+
}
|
|
42024
|
+
this.setValuePart("fractionalSecond", newFractionalSecond);
|
|
42025
|
+
};
|
|
42026
|
+
this.sanitizeValue = (value) => {
|
|
42027
|
+
const { hour, minute, second, fractionalSecond } = parseTimeString(value);
|
|
42028
|
+
if (fractionalSecond) {
|
|
42029
|
+
const sanitizedFractionalSecond = this.sanitizeFractionalSecond(fractionalSecond);
|
|
42030
|
+
return `${hour}:${minute}:${second}.${sanitizedFractionalSecond}`;
|
|
42031
|
+
}
|
|
42032
|
+
return isValidTime(value) && value;
|
|
42033
|
+
};
|
|
42034
|
+
this.sanitizeFractionalSecond = (fractionalSecond) => fractionalSecond && decimalPlaces(this.step) !== fractionalSecond.length
|
|
42035
|
+
? parseFloat(`0.${fractionalSecond}`).toFixed(decimalPlaces(this.step)).replace("0.", "")
|
|
42036
|
+
: fractionalSecond;
|
|
41716
42037
|
this.secondKeyDownHandler = (event) => {
|
|
41717
42038
|
const { key } = event;
|
|
41718
42039
|
if (numberKeys.includes(key)) {
|
|
@@ -41750,29 +42071,28 @@ class TimePicker {
|
|
|
41750
42071
|
}
|
|
41751
42072
|
}
|
|
41752
42073
|
};
|
|
41753
|
-
this.secondUpButtonKeyDownHandler = (event) => {
|
|
41754
|
-
if (this.buttonActivated(event)) {
|
|
41755
|
-
this.incrementSecond();
|
|
41756
|
-
}
|
|
41757
|
-
};
|
|
41758
42074
|
this.setHourEl = (el) => (this.hourEl = el);
|
|
41759
42075
|
this.setMeridiemEl = (el) => (this.meridiemEl = el);
|
|
41760
42076
|
this.setMinuteEl = (el) => (this.minuteEl = el);
|
|
41761
42077
|
this.setSecondEl = (el) => (this.secondEl = el);
|
|
41762
|
-
this.
|
|
42078
|
+
this.setFractionalSecondEl = (el) => (this.fractionalSecondEl = el);
|
|
42079
|
+
this.setValue = (value) => {
|
|
41763
42080
|
if (isValidTime(value)) {
|
|
41764
|
-
const { hour, minute, second } = parseTimeString(value);
|
|
42081
|
+
const { hour, minute, second, fractionalSecond } = parseTimeString(value);
|
|
41765
42082
|
const { effectiveLocale: locale, numberingSystem } = this;
|
|
41766
|
-
const { localizedHour, localizedHourSuffix, localizedMinute, localizedMinuteSuffix, localizedSecond, localizedSecondSuffix, localizedMeridiem, } = localizeTimeStringToParts({ value, locale, numberingSystem });
|
|
42083
|
+
const { localizedHour, localizedHourSuffix, localizedMinute, localizedMinuteSuffix, localizedSecond, localizedDecimalSeparator, localizedFractionalSecond, localizedSecondSuffix, localizedMeridiem, } = localizeTimeStringToParts({ value, locale, numberingSystem });
|
|
42084
|
+
this.hour = hour;
|
|
42085
|
+
this.minute = minute;
|
|
42086
|
+
this.second = second;
|
|
42087
|
+
this.fractionalSecond = this.sanitizeFractionalSecond(fractionalSecond);
|
|
41767
42088
|
this.localizedHour = localizedHour;
|
|
41768
42089
|
this.localizedHourSuffix = localizedHourSuffix;
|
|
41769
42090
|
this.localizedMinute = localizedMinute;
|
|
41770
42091
|
this.localizedMinuteSuffix = localizedMinuteSuffix;
|
|
41771
42092
|
this.localizedSecond = localizedSecond;
|
|
42093
|
+
this.localizedDecimalSeparator = localizedDecimalSeparator;
|
|
42094
|
+
this.localizedFractionalSecond = localizedFractionalSecond;
|
|
41772
42095
|
this.localizedSecondSuffix = localizedSecondSuffix;
|
|
41773
|
-
this.hour = hour;
|
|
41774
|
-
this.minute = minute;
|
|
41775
|
-
this.second = second;
|
|
41776
42096
|
if (localizedMeridiem) {
|
|
41777
42097
|
this.localizedMeridiem = localizedMeridiem;
|
|
41778
42098
|
this.meridiem = getMeridiem(this.hour);
|
|
@@ -41782,23 +42102,23 @@ class TimePicker {
|
|
|
41782
42102
|
}
|
|
41783
42103
|
else {
|
|
41784
42104
|
this.hour = null;
|
|
42105
|
+
this.fractionalSecond = null;
|
|
41785
42106
|
this.localizedHour = null;
|
|
41786
|
-
this.localizedHourSuffix =
|
|
42107
|
+
this.localizedHourSuffix = getLocalizedTimePartSuffix("hour", this.effectiveLocale, this.numberingSystem);
|
|
41787
42108
|
this.localizedMeridiem = null;
|
|
41788
42109
|
this.localizedMinute = null;
|
|
41789
|
-
this.localizedMinuteSuffix =
|
|
42110
|
+
this.localizedMinuteSuffix = getLocalizedTimePartSuffix("minute", this.effectiveLocale, this.numberingSystem);
|
|
41790
42111
|
this.localizedSecond = null;
|
|
41791
|
-
this.
|
|
42112
|
+
this.localizedDecimalSeparator = getLocalizedDecimalSeparator(this.effectiveLocale, this.numberingSystem);
|
|
42113
|
+
this.localizedFractionalSecond = null;
|
|
42114
|
+
this.localizedSecondSuffix = getLocalizedTimePartSuffix("second", this.effectiveLocale, this.numberingSystem);
|
|
41792
42115
|
this.meridiem = null;
|
|
41793
42116
|
this.minute = null;
|
|
41794
42117
|
this.second = null;
|
|
41795
42118
|
this.value = null;
|
|
41796
42119
|
}
|
|
41797
|
-
if (emit) {
|
|
41798
|
-
this.calciteInternalTimePickerChange.emit();
|
|
41799
|
-
}
|
|
41800
42120
|
};
|
|
41801
|
-
this.setValuePart = (key, value
|
|
42121
|
+
this.setValuePart = (key, value) => {
|
|
41802
42122
|
const { effectiveLocale: locale, numberingSystem } = this;
|
|
41803
42123
|
if (key === "meridiem") {
|
|
41804
42124
|
this.meridiem = value;
|
|
@@ -41824,6 +42144,22 @@ class TimePicker {
|
|
|
41824
42144
|
});
|
|
41825
42145
|
}
|
|
41826
42146
|
}
|
|
42147
|
+
else if (key === "fractionalSecond") {
|
|
42148
|
+
const stepPrecision = decimalPlaces(this.step);
|
|
42149
|
+
if (typeof value === "number") {
|
|
42150
|
+
this.fractionalSecond =
|
|
42151
|
+
value === 0 ? "".padStart(stepPrecision, "0") : formatTimePart(value, stepPrecision);
|
|
42152
|
+
}
|
|
42153
|
+
else {
|
|
42154
|
+
this.fractionalSecond = value;
|
|
42155
|
+
}
|
|
42156
|
+
this.localizedFractionalSecond = localizeTimePart({
|
|
42157
|
+
value: this.fractionalSecond,
|
|
42158
|
+
part: "fractionalSecond",
|
|
42159
|
+
locale,
|
|
42160
|
+
numberingSystem,
|
|
42161
|
+
});
|
|
42162
|
+
}
|
|
41827
42163
|
else {
|
|
41828
42164
|
this[key] = typeof value === "number" ? formatTimePart(value) : value;
|
|
41829
42165
|
this[`localized${capitalize(key)}`] = localizeTimePart({
|
|
@@ -41833,16 +42169,24 @@ class TimePicker {
|
|
|
41833
42169
|
numberingSystem,
|
|
41834
42170
|
});
|
|
41835
42171
|
}
|
|
42172
|
+
let emit = false;
|
|
42173
|
+
let newValue;
|
|
41836
42174
|
if (this.hour && this.minute) {
|
|
41837
|
-
|
|
42175
|
+
newValue = `${this.hour}:${this.minute}`;
|
|
41838
42176
|
if (this.showSecond) {
|
|
41839
42177
|
newValue = `${newValue}:${this.second ?? "00"}`;
|
|
42178
|
+
if (this.showFractionalSecond && this.fractionalSecond) {
|
|
42179
|
+
newValue = `${newValue}.${this.fractionalSecond}`;
|
|
42180
|
+
}
|
|
41840
42181
|
}
|
|
41841
|
-
this.value = newValue;
|
|
41842
42182
|
}
|
|
41843
42183
|
else {
|
|
41844
|
-
|
|
42184
|
+
newValue = null;
|
|
41845
42185
|
}
|
|
42186
|
+
if (this.value !== newValue) {
|
|
42187
|
+
emit = true;
|
|
42188
|
+
}
|
|
42189
|
+
this.value = newValue;
|
|
41846
42190
|
this.localizedMeridiem = this.value
|
|
41847
42191
|
? localizeTimeStringToParts({ value: this.value, locale, numberingSystem })
|
|
41848
42192
|
?.localizedMeridiem || null
|
|
@@ -41858,11 +42202,14 @@ class TimePicker {
|
|
|
41858
42202
|
this.messages = undefined;
|
|
41859
42203
|
this.messageOverrides = undefined;
|
|
41860
42204
|
this.effectiveLocale = "";
|
|
42205
|
+
this.fractionalSecond = undefined;
|
|
41861
42206
|
this.hour = undefined;
|
|
41862
42207
|
this.hourCycle = undefined;
|
|
42208
|
+
this.localizedDecimalSeparator = ".";
|
|
41863
42209
|
this.localizedHour = undefined;
|
|
41864
42210
|
this.localizedHourSuffix = undefined;
|
|
41865
42211
|
this.localizedMeridiem = undefined;
|
|
42212
|
+
this.localizedFractionalSecond = undefined;
|
|
41866
42213
|
this.localizedMinute = undefined;
|
|
41867
42214
|
this.localizedMinuteSuffix = undefined;
|
|
41868
42215
|
this.localizedSecond = undefined;
|
|
@@ -41870,14 +42217,15 @@ class TimePicker {
|
|
|
41870
42217
|
this.meridiem = undefined;
|
|
41871
42218
|
this.minute = undefined;
|
|
41872
42219
|
this.second = undefined;
|
|
42220
|
+
this.showFractionalSecond = undefined;
|
|
41873
42221
|
this.showSecond = undefined;
|
|
41874
42222
|
this.defaultMessages = undefined;
|
|
41875
42223
|
}
|
|
41876
42224
|
stepChange() {
|
|
41877
|
-
this.
|
|
42225
|
+
this.toggleSecond();
|
|
41878
42226
|
}
|
|
41879
42227
|
valueWatcher(newValue) {
|
|
41880
|
-
this.setValue(newValue
|
|
42228
|
+
this.setValue(newValue);
|
|
41881
42229
|
}
|
|
41882
42230
|
onMessagesChange() {
|
|
41883
42231
|
/* wired up by t9n util */
|
|
@@ -41932,6 +42280,23 @@ class TimePicker {
|
|
|
41932
42280
|
this.focusPart("minute");
|
|
41933
42281
|
event.preventDefault();
|
|
41934
42282
|
break;
|
|
42283
|
+
case "ArrowRight":
|
|
42284
|
+
if (this.showFractionalSecond) {
|
|
42285
|
+
this.focusPart("fractionalSecond");
|
|
42286
|
+
}
|
|
42287
|
+
else if (this.hourCycle === "12") {
|
|
42288
|
+
this.focusPart("meridiem");
|
|
42289
|
+
event.preventDefault();
|
|
42290
|
+
}
|
|
42291
|
+
break;
|
|
42292
|
+
}
|
|
42293
|
+
break;
|
|
42294
|
+
case this.fractionalSecondEl:
|
|
42295
|
+
switch (key) {
|
|
42296
|
+
case "ArrowLeft":
|
|
42297
|
+
this.focusPart("second");
|
|
42298
|
+
event.preventDefault();
|
|
42299
|
+
break;
|
|
41935
42300
|
case "ArrowRight":
|
|
41936
42301
|
if (this.hourCycle === "12") {
|
|
41937
42302
|
this.focusPart("meridiem");
|
|
@@ -41943,7 +42308,10 @@ class TimePicker {
|
|
|
41943
42308
|
case this.meridiemEl:
|
|
41944
42309
|
switch (key) {
|
|
41945
42310
|
case "ArrowLeft":
|
|
41946
|
-
if (this.
|
|
42311
|
+
if (this.showFractionalSecond) {
|
|
42312
|
+
this.focusPart("fractionalSecond");
|
|
42313
|
+
}
|
|
42314
|
+
else if (this.step !== 60) {
|
|
41947
42315
|
this.focusPart("second");
|
|
41948
42316
|
event.preventDefault();
|
|
41949
42317
|
}
|
|
@@ -41973,19 +42341,13 @@ class TimePicker {
|
|
|
41973
42341
|
// Private Methods
|
|
41974
42342
|
//
|
|
41975
42343
|
// --------------------------------------------------------------------------
|
|
41976
|
-
updateShowSecond() {
|
|
41977
|
-
this.showSecond = this.step < 60;
|
|
41978
|
-
}
|
|
41979
42344
|
async focusPart(target) {
|
|
41980
42345
|
await componentFocusable(this);
|
|
41981
42346
|
this[`${target || "hour"}El`]?.focus();
|
|
41982
42347
|
}
|
|
41983
|
-
|
|
41984
|
-
|
|
41985
|
-
|
|
41986
|
-
event.preventDefault();
|
|
41987
|
-
}
|
|
41988
|
-
return isActivationKey(key);
|
|
42348
|
+
toggleSecond() {
|
|
42349
|
+
this.showSecond = this.step < 60;
|
|
42350
|
+
this.showFractionalSecond = decimalPlaces(this.step) > 0;
|
|
41989
42351
|
}
|
|
41990
42352
|
getMeridiemOrder(formatParts) {
|
|
41991
42353
|
const locale = this.effectiveLocale;
|
|
@@ -42001,7 +42363,8 @@ class TimePicker {
|
|
|
42001
42363
|
updateLocale() {
|
|
42002
42364
|
updateMessages(this);
|
|
42003
42365
|
this.hourCycle = getLocaleHourCycle(this.effectiveLocale, this.numberingSystem);
|
|
42004
|
-
this.
|
|
42366
|
+
this.localizedDecimalSeparator = getLocalizedDecimalSeparator(this.effectiveLocale, this.numberingSystem);
|
|
42367
|
+
this.setValue(this.sanitizeValue(this.value));
|
|
42005
42368
|
}
|
|
42006
42369
|
// --------------------------------------------------------------------------
|
|
42007
42370
|
//
|
|
@@ -42012,7 +42375,7 @@ class TimePicker {
|
|
|
42012
42375
|
connectLocalized(this);
|
|
42013
42376
|
this.updateLocale();
|
|
42014
42377
|
connectMessages(this);
|
|
42015
|
-
this.
|
|
42378
|
+
this.toggleSecond();
|
|
42016
42379
|
this.meridiemOrder = this.getMeridiemOrder(getTimeParts({
|
|
42017
42380
|
value: "0:00:00",
|
|
42018
42381
|
locale: this.effectiveLocale,
|
|
@@ -42040,6 +42403,7 @@ class TimePicker {
|
|
|
42040
42403
|
const iconScale = this.scale === "s" || this.scale === "m" ? "s" : "m";
|
|
42041
42404
|
const minuteIsNumber = isValidNumber(this.minute);
|
|
42042
42405
|
const secondIsNumber = isValidNumber(this.second);
|
|
42406
|
+
const fractionalSecondIsNumber = isValidNumber(this.fractionalSecond);
|
|
42043
42407
|
const showMeridiem = this.hourCycle === "12";
|
|
42044
42408
|
return (hAsync("div", { class: {
|
|
42045
42409
|
[CSS$6.timePicker]: true,
|
|
@@ -42050,7 +42414,7 @@ class TimePicker {
|
|
|
42050
42414
|
[CSS$6.button]: true,
|
|
42051
42415
|
[CSS$6.buttonHourUp]: true,
|
|
42052
42416
|
[CSS$6.buttonTopLeft]: true,
|
|
42053
|
-
}, onClick: this.incrementHour,
|
|
42417
|
+
}, onClick: this.incrementHour, role: "button" }, hAsync("calcite-icon", { icon: "chevron-up", scale: iconScale })), hAsync("span", { "aria-label": this.messages.hour, "aria-valuemax": "23", "aria-valuemin": "1", "aria-valuenow": (hourIsNumber && parseInt(this.hour)) || "0", "aria-valuetext": this.hour, class: {
|
|
42054
42418
|
[CSS$6.input]: true,
|
|
42055
42419
|
[CSS$6.hour]: true,
|
|
42056
42420
|
}, onFocus: this.focusHandler, onKeyDown: this.hourKeyDownHandler, role: "spinbutton", tabIndex: 0,
|
|
@@ -42059,10 +42423,10 @@ class TimePicker {
|
|
|
42059
42423
|
[CSS$6.button]: true,
|
|
42060
42424
|
[CSS$6.buttonHourDown]: true,
|
|
42061
42425
|
[CSS$6.buttonBottomLeft]: true,
|
|
42062
|
-
}, onClick: this.decrementHour,
|
|
42426
|
+
}, onClick: this.decrementHour, role: "button" }, hAsync("calcite-icon", { icon: "chevron-down", scale: iconScale }))), hAsync("span", { class: CSS$6.delimiter }, this.localizedHourSuffix), hAsync("div", { class: CSS$6.column, role: "group" }, hAsync("span", { "aria-label": this.messages.minuteUp, class: {
|
|
42063
42427
|
[CSS$6.button]: true,
|
|
42064
42428
|
[CSS$6.buttonMinuteUp]: true,
|
|
42065
|
-
}, onClick: this.incrementMinute,
|
|
42429
|
+
}, onClick: this.incrementMinute, role: "button" }, hAsync("calcite-icon", { icon: "chevron-up", scale: iconScale })), hAsync("span", { "aria-label": this.messages.minute, "aria-valuemax": "12", "aria-valuemin": "1", "aria-valuenow": (minuteIsNumber && parseInt(this.minute)) || "0", "aria-valuetext": this.minute, class: {
|
|
42066
42430
|
[CSS$6.input]: true,
|
|
42067
42431
|
[CSS$6.minute]: true,
|
|
42068
42432
|
}, onFocus: this.focusHandler, onKeyDown: this.minuteKeyDownHandler, role: "spinbutton", tabIndex: 0,
|
|
@@ -42070,10 +42434,10 @@ class TimePicker {
|
|
|
42070
42434
|
ref: this.setMinuteEl }, this.localizedMinute || "--"), hAsync("span", { "aria-label": this.messages.minuteDown, class: {
|
|
42071
42435
|
[CSS$6.button]: true,
|
|
42072
42436
|
[CSS$6.buttonMinuteDown]: true,
|
|
42073
|
-
}, onClick: this.decrementMinute,
|
|
42437
|
+
}, onClick: this.decrementMinute, role: "button" }, hAsync("calcite-icon", { icon: "chevron-down", scale: iconScale }))), this.showSecond && hAsync("span", { class: CSS$6.delimiter }, this.localizedMinuteSuffix), this.showSecond && (hAsync("div", { class: CSS$6.column, role: "group" }, hAsync("span", { "aria-label": this.messages.secondUp, class: {
|
|
42074
42438
|
[CSS$6.button]: true,
|
|
42075
42439
|
[CSS$6.buttonSecondUp]: true,
|
|
42076
|
-
}, onClick: this.incrementSecond,
|
|
42440
|
+
}, onClick: this.incrementSecond, role: "button" }, hAsync("calcite-icon", { icon: "chevron-up", scale: iconScale })), hAsync("span", { "aria-label": this.messages.second, "aria-valuemax": "59", "aria-valuemin": "0", "aria-valuenow": (secondIsNumber && parseInt(this.second)) || "0", "aria-valuetext": this.second, class: {
|
|
42077
42441
|
[CSS$6.input]: true,
|
|
42078
42442
|
[CSS$6.second]: true,
|
|
42079
42443
|
}, onFocus: this.focusHandler, onKeyDown: this.secondKeyDownHandler, role: "spinbutton", tabIndex: 0,
|
|
@@ -42081,14 +42445,25 @@ class TimePicker {
|
|
|
42081
42445
|
ref: this.setSecondEl }, this.localizedSecond || "--"), hAsync("span", { "aria-label": this.messages.secondDown, class: {
|
|
42082
42446
|
[CSS$6.button]: true,
|
|
42083
42447
|
[CSS$6.buttonSecondDown]: true,
|
|
42084
|
-
}, onClick: this.decrementSecond,
|
|
42448
|
+
}, onClick: this.decrementSecond, role: "button" }, hAsync("calcite-icon", { icon: "chevron-down", scale: iconScale })))), this.showFractionalSecond && (hAsync("span", { class: CSS$6.delimiter }, this.localizedDecimalSeparator)), this.showFractionalSecond && (hAsync("div", { class: CSS$6.column, role: "group" }, hAsync("span", { "aria-label": this.messages.fractionalSecondUp, class: {
|
|
42449
|
+
[CSS$6.button]: true,
|
|
42450
|
+
[CSS$6.buttonFractionalSecondUp]: true,
|
|
42451
|
+
}, onClick: this.incrementFractionalSecond, role: "button" }, hAsync("calcite-icon", { icon: "chevron-up", scale: iconScale })), hAsync("span", { "aria-label": this.messages.fractionalSecond, "aria-valuemax": "999", "aria-valuemin": "1", "aria-valuenow": (fractionalSecondIsNumber && parseInt(this.fractionalSecond)) || "0", "aria-valuetext": this.localizedFractionalSecond, class: {
|
|
42452
|
+
[CSS$6.input]: true,
|
|
42453
|
+
[CSS$6.fractionalSecond]: true,
|
|
42454
|
+
}, onFocus: this.focusHandler, onKeyDown: this.fractionalSecondKeyDownHandler, role: "spinbutton", tabIndex: 0,
|
|
42455
|
+
// 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)
|
|
42456
|
+
ref: this.setFractionalSecondEl }, this.localizedFractionalSecond || "--"), hAsync("span", { "aria-label": this.messages.fractionalSecondDown, class: {
|
|
42457
|
+
[CSS$6.button]: true,
|
|
42458
|
+
[CSS$6.buttonFractionalSecondDown]: true,
|
|
42459
|
+
}, onClick: this.decrementFractionalSecond, role: "button" }, hAsync("calcite-icon", { icon: "chevron-down", scale: iconScale })))), this.localizedSecondSuffix && (hAsync("span", { class: CSS$6.delimiter }, this.localizedSecondSuffix)), showMeridiem && (hAsync("div", { class: {
|
|
42085
42460
|
[CSS$6.column]: true,
|
|
42086
42461
|
[CSS$6.meridiemStart]: this.meridiemOrder === 0,
|
|
42087
42462
|
}, role: "group" }, hAsync("span", { "aria-label": this.messages.meridiemUp, class: {
|
|
42088
42463
|
[CSS$6.button]: true,
|
|
42089
42464
|
[CSS$6.buttonMeridiemUp]: true,
|
|
42090
42465
|
[CSS$6.buttonTopRight]: true,
|
|
42091
|
-
}, onClick: this.incrementMeridiem,
|
|
42466
|
+
}, onClick: this.incrementMeridiem, role: "button" }, hAsync("calcite-icon", { icon: "chevron-up", scale: iconScale })), hAsync("span", { "aria-label": this.messages.meridiem, "aria-valuemax": "2", "aria-valuemin": "1", "aria-valuenow": (this.meridiem === "PM" && "2") || "1", "aria-valuetext": this.meridiem, class: {
|
|
42092
42467
|
[CSS$6.input]: true,
|
|
42093
42468
|
[CSS$6.meridiem]: true,
|
|
42094
42469
|
}, onFocus: this.focusHandler, onKeyDown: this.meridiemKeyDownHandler, role: "spinbutton", tabIndex: 0,
|
|
@@ -42097,7 +42472,7 @@ class TimePicker {
|
|
|
42097
42472
|
[CSS$6.button]: true,
|
|
42098
42473
|
[CSS$6.buttonMeridiemDown]: true,
|
|
42099
42474
|
[CSS$6.buttonBottomRight]: true,
|
|
42100
|
-
}, onClick: this.decrementMeridiem,
|
|
42475
|
+
}, onClick: this.decrementMeridiem, role: "button" }, hAsync("calcite-icon", { icon: "chevron-down", scale: iconScale }))))));
|
|
42101
42476
|
}
|
|
42102
42477
|
static get delegatesFocus() { return true; }
|
|
42103
42478
|
static get assetsDirs() { return ["assets"]; }
|
|
@@ -42120,11 +42495,14 @@ class TimePicker {
|
|
|
42120
42495
|
"messages": [1040],
|
|
42121
42496
|
"messageOverrides": [1040],
|
|
42122
42497
|
"effectiveLocale": [32],
|
|
42498
|
+
"fractionalSecond": [32],
|
|
42123
42499
|
"hour": [32],
|
|
42124
42500
|
"hourCycle": [32],
|
|
42501
|
+
"localizedDecimalSeparator": [32],
|
|
42125
42502
|
"localizedHour": [32],
|
|
42126
42503
|
"localizedHourSuffix": [32],
|
|
42127
42504
|
"localizedMeridiem": [32],
|
|
42505
|
+
"localizedFractionalSecond": [32],
|
|
42128
42506
|
"localizedMinute": [32],
|
|
42129
42507
|
"localizedMinuteSuffix": [32],
|
|
42130
42508
|
"localizedSecond": [32],
|
|
@@ -42132,6 +42510,7 @@ class TimePicker {
|
|
|
42132
42510
|
"meridiem": [32],
|
|
42133
42511
|
"minute": [32],
|
|
42134
42512
|
"second": [32],
|
|
42513
|
+
"showFractionalSecond": [32],
|
|
42135
42514
|
"showSecond": [32],
|
|
42136
42515
|
"defaultMessages": [32],
|
|
42137
42516
|
"setFocus": [64]
|