@loadsmart/miranda-wc 3.24.3 → 4.0.0-alpha.10
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/{add-circle-iZsUBnq6-XNrz138W.js → add-circle-iZsUBnq6-BK_ECN4l.js} +1 -1
- package/dist/{alarm-ysHY-vBB-B7K7w6Si.js → alarm-ysHY-vBB-CS_1ENZQ.js} +1 -1
- package/dist/{alert-blocked-Botv-UWs-DFFJqFZT.js → alert-blocked-Botv-UWs-DM9k-Fwx.js} +1 -1
- package/dist/{alert-circle-BMbYDPc0-CMOB86Bt.js → alert-circle-BMbYDPc0-Dx_CpxWq.js} +1 -1
- package/dist/{anchor-CIkqVJ-7-CZeHPQWi.js → anchor-CIkqVJ-7-83ByCeO_.js} +1 -1
- package/dist/{archive-C-c-Bwp_-CfmT7qhI.js → archive-C-c-Bwp_-C0HuavdA.js} +1 -1
- package/dist/{arrow-left-BMMqpyiU-Co71R-2j.js → arrow-left-BMMqpyiU-sHR0qf-V.js} +1 -1
- package/dist/{arrow-right-CATIosHx-BxW9ilDr.js → arrow-right-CATIosHx-B0Vk5y93.js} +1 -1
- package/dist/{arrow-sort-down-BJPFNr0f-BRRzPR8f.js → arrow-sort-down-BJPFNr0f-BLv7trtQ.js} +1 -1
- package/dist/{arrow-sort-up-BUh8DPaP-CvHCJ7Fd.js → arrow-sort-up-BUh8DPaP-Db4rVW6v.js} +1 -1
- package/dist/{arrow-sort-up-down-jQZsJ97S-CD7bWncb.js → arrow-sort-up-down-jQZsJ97S-DR9viERl.js} +1 -1
- package/dist/{asterisk-VYba9y6Z-ICRDmrOS.js → asterisk-VYba9y6Z-CVsLR4x0.js} +1 -1
- package/dist/{attention-CdktWWez-CQt3DZBc.js → attention-CdktWWez-DQyfLXkg.js} +1 -1
- package/dist/{automatic-UuAurtdI-CbJnJz64.js → automatic-UuAurtdI-DXKBncjE.js} +1 -1
- package/dist/{bank-0asCbZAR-G7VMvB2a.js → bank-0asCbZAR-CS7XewEh.js} +1 -1
- package/dist/{bell-CAwfByzU-98t1_9HS.js → bell-CAwfByzU-CL8JX9Bb.js} +1 -1
- package/dist/{bell-cancel-Chswh-XR-CHvC5YLt.js → bell-cancel-Chswh-XR-DZGqhzv0.js} +1 -1
- package/dist/{blind-bol-ozJwZGJw-BufTjKEu.js → blind-bol-ozJwZGJw-BMFkT6fY.js} +1 -1
- package/dist/{board-DbViCrnL-BBBYpKH1.js → board-DbViCrnL-crhXz-FM.js} +1 -1
- package/dist/{bol-DRN9SUzW-LDOZ8X7x.js → bol-DRN9SUzW-BT7g7Cgx.js} +1 -1
- package/dist/{bolt-off-Sit85Q5M-DPT3_uLS.js → bolt-off-Sit85Q5M-DV5Lz_AZ.js} +1 -1
- package/dist/{bolt-yvlUH75m-DOCLCJrY.js → bolt-yvlUH75m-cfZHFz7_.js} +1 -1
- package/dist/{box-g6rAQzi4-CrBhwqWw.js → box-g6rAQzi4-DNdpRNSk.js} +1 -1
- package/dist/{broadcast-DwGvkb-z-DS0NaU_l.js → broadcast-DwGvkb-z-DuVwX5Qj.js} +1 -1
- package/dist/{burguer-menu-CwWhzH0T-BAVSZGN5.js → burguer-menu-CwWhzH0T-D9Cqqap3.js} +1 -1
- package/dist/{calendar-zdZkngTI-BakrQq9m.js → calendar-zdZkngTI-C9xBpC4M.js} +1 -1
- package/dist/{camera-DYJgYixP-Egss0PVc.js → camera-DYJgYixP-DVHYKPBg.js} +1 -1
- package/dist/{canada-flag-CtKUvTz9-C7anhL2k.js → canada-flag-CtKUvTz9-Cp5aatJi.js} +1 -1
- package/dist/{caret-down-CqFR9PeY-oj8j2nXw.js → caret-down-CqFR9PeY-DZhOFQo1.js} +1 -1
- package/dist/{caret-left-DyXwvYpY-DAhDweaR.js → caret-left-DyXwvYpY-DLsXQVo7.js} +1 -1
- package/dist/{caret-right-DZQQvP6J-CBTa49Fn.js → caret-right-DZQQvP6J-6ieGppt1.js} +1 -1
- package/dist/{caret-up-VxnQYjC6-BvrJpVIt.js → caret-up-VxnQYjC6-BeE9BTxz.js} +1 -1
- package/dist/{carrier-contract-B8_u75UN-Da97BEsL.js → carrier-contract-B8_u75UN-BASLewWa.js} +1 -1
- package/dist/{chat-aFeELvSn-DwibSp7Y.js → chat-aFeELvSn-DCDDyVQE.js} +1 -1
- package/dist/{check-CAp1CoZf-X1eiNCEb.js → check-CAp1CoZf-DYWWtqKz.js} +1 -1
- package/dist/{clip-G9UJlY6N-S6gaEIIP.js → clip-G9UJlY6N-C5QfS9Sy.js} +1 -1
- package/dist/{clock-_5WIz38p-LNBNmca1.js → clock-_5WIz38p-DSE4Km7A.js} +1 -1
- package/dist/{clown-Yw49zh-G-CIsWdCNy.js → clown-Yw49zh-G-BEnjoMsh.js} +1 -1
- package/dist/{code-B4w6sC9w-g8tFE5Zx.js → code-B4w6sC9w-BiZjnZGR.js} +1 -1
- package/dist/{comment-DIFLoE5T-Cu2uqZBu.js → comment-DIFLoE5T-B5rO9jd8.js} +1 -1
- package/dist/{company-CajAOKNH-CmyHBfkw.js → company-CajAOKNH-I0K0oLCW.js} +1 -1
- package/dist/components/accordion/accordion-content.d.ts +4 -2
- package/dist/components/accordion/accordion-title.d.ts +7 -1
- package/dist/components/accordion/accordion.context.d.ts +7 -0
- package/dist/components/accordion/accordion.d.ts +4 -16
- package/dist/components/accordion/accordion.styles.d.ts +2 -3
- package/dist/components/accordion/index.d.ts +1 -1
- package/dist/components/card/card-body.d.ts +1 -1
- package/dist/components/card/card.d.ts +1 -5
- package/dist/components/card/card.styles.d.ts +2 -2
- package/dist/components/card/index.d.ts +1 -1
- package/dist/components/date-picker/date-calendar.d.ts +71 -0
- package/dist/components/date-picker/date-formatter.d.ts +55 -0
- package/dist/components/date-picker/date-parser.d.ts +4 -0
- package/dist/components/date-picker/date-picker.d.ts +354 -0
- package/dist/components/date-picker/date-picker.styles.d.ts +3 -0
- package/dist/components/date-picker/date-picker.types.d.ts +14 -0
- package/dist/components/date-picker/date-range-picker.d.ts +135 -0
- package/dist/components/date-picker/date.d.ts +130 -0
- package/dist/components/date-picker/index.d.ts +10 -0
- package/dist/components/dropdown/dropdown-menu.d.ts +1 -0
- package/dist/components/dropdown/dropdown.d.ts +4 -3
- package/dist/components/dropdown/dropdown.styles.d.ts +5 -1
- package/dist/components/popover/index.d.ts +1 -1
- package/dist/components/popover/popover.d.ts +5 -2
- package/dist/components/popover/popover.styles.d.ts +9 -3
- package/dist/components/select/select.constants.d.ts +0 -3
- package/dist/components/select/select.d.ts +16 -2
- package/dist/components/select/select.styles.d.ts +3 -0
- package/dist/components/text-area/text-area.d.ts +2 -0
- package/dist/components/timeline/index.d.ts +0 -1
- package/dist/components/timeline/timeline-item-body.d.ts +4 -2
- package/dist/components/timeline/timeline-item-header.d.ts +7 -1
- package/dist/components/timeline/timeline-item.context.d.ts +2 -0
- package/dist/components/timeline/timeline-item.d.ts +22 -1
- package/dist/components/timeline/timeline.styles.d.ts +2 -3
- package/dist/components/tooltip/tooltip.d.ts +3 -1
- package/dist/{confetti-C4fnQZbz-C56wgLkK.js → confetti-C4fnQZbz-C4XwWJIR.js} +1 -1
- package/dist/{contract-DXWhEskx-OUsNEwHQ.js → contract-DXWhEskx-BRDvE-_1.js} +1 -1
- package/dist/controllers/controller-context.d.ts +1 -0
- package/dist/controllers/expandable/expandable.controller.d.ts +20 -0
- package/dist/controllers/expandable/expandable.styles.d.ts +19 -0
- package/dist/controllers/expandable/index.d.ts +3 -0
- package/dist/controllers/focus-manager/focus-manager.controller.d.ts +26 -13
- package/dist/controllers/focus-manager/index.d.ts +2 -0
- package/dist/controllers/focus-manager/roving-focus.controller.d.ts +27 -0
- package/dist/controllers/togglable.controller.d.ts +1 -4
- package/dist/{copy-BdFJGMCT-DBVmMG1P.js → copy-BdFJGMCT-CzXOL0aF.js} +1 -1
- package/dist/{corner-down-nqTXcdLW-BX0z1Ir4.js → corner-down-nqTXcdLW-CkgNIA0s.js} +1 -1
- package/dist/{corner-down-r-Dz24vzgf-NvWrJiOW.js → corner-down-r-Dz24vzgf-jFWWtvUP.js} +1 -1
- package/dist/{corner-up-kyS0m2Aa-CdsXKCG0.js → corner-up-kyS0m2Aa-KQaenKoq.js} +1 -1
- package/dist/{credit-card-CmIy84Fy-ox7Zjach.js → credit-card-CmIy84Fy-CmH_4Lsi.js} +1 -1
- package/dist/{delivery-s7jFwaw9-DAA_ojvr.js → delivery-s7jFwaw9-Bsp0wmJm.js} +1 -1
- package/dist/{dislike-Bck_TU0W-KHmaaDXd.js → dislike-Bck_TU0W-BgC45O9M.js} +1 -1
- package/dist/{document-csv-BV5LVUth-BAA25eyw.js → document-csv-BV5LVUth--yGGftlv.js} +1 -1
- package/dist/{document-file-DKgTdKV6-CoM0DTLA.js → document-file-DKgTdKV6-CUbkEzq_.js} +1 -1
- package/dist/{document-file-plus-BHP_qFbC-DPQ5RRzT.js → document-file-plus-BHP_qFbC-BwZ8lVKf.js} +1 -1
- package/dist/{document-image-B0beaDP9-Cm-7JWjJ.js → document-image-B0beaDP9-BaAoqYRd.js} +1 -1
- package/dist/{dollar-07eDsd-u-Vl9qMY-a.js → dollar-07eDsd-u-B6FJWKi2.js} +1 -1
- package/dist/{dollar-circle-DPoIZ5FB-BR6_2rYN.js → dollar-circle-DPoIZ5FB-BtA0CGsV.js} +1 -1
- package/dist/{dots-horizontal-0ZKWKeTs-CtmaU64-.js → dots-horizontal-0ZKWKeTs-B-eJYwhw.js} +1 -1
- package/dist/{dots-vertical-DkT-4ScQ-C2SY8h4k.js → dots-vertical-DkT-4ScQ-BREF7ghM.js} +1 -1
- package/dist/{double-caret-left-hBuMYpG4-rBW5hd8b.js → double-caret-left-hBuMYpG4-JxgD1Oda.js} +1 -1
- package/dist/{double-caret-right-CyyiZiDj-Q7qPxUw9.js → double-caret-right-CyyiZiDj-ar2nArpa.js} +1 -1
- package/dist/{down-DGHy35iL-CEnAPmPW.js → down-DGHy35iL-afH1Hk_n.js} +1 -1
- package/dist/{download-_2jPqEUi-DrY87CSR.js → download-_2jPqEUi-D75BYyCe.js} +1 -1
- package/dist/{drop-trailer-BX7uV0dw-CMHBnFUC.js → drop-trailer-BX7uV0dw-BLrtan9L.js} +1 -1
- package/dist/{dropdown-BakZBObP-D1sHNouh.js → dropdown-BakZBObP-DlDr_rtl.js} +1 -1
- package/dist/{email-CP1E3rBj-f6546S2C.js → email-CP1E3rBj-Cwrhl4kr.js} +1 -1
- package/dist/{email-filled-DT5xSMTZ-w6JWLFu-.js → email-filled-DT5xSMTZ-DG_X1q72.js} +1 -1
- package/dist/{export-DaxKXXLV-grIeMxKa.js → export-DaxKXXLV-BTj6X2gy.js} +1 -1
- package/dist/{eye-CA3rw9Oa-CucamOQj.js → eye-CA3rw9Oa-DFbcoAvv.js} +1 -1
- package/dist/{fast-BFCDdT5n-Bxvb4ZPQ.js → fast-BFCDdT5n-CiG6EZaG.js} +1 -1
- package/dist/{favorite-D5y4J4Ra-BXmglLsM.js → favorite-D5y4J4Ra-BGjpT8Up.js} +1 -1
- package/dist/{file-CENHd6__-CzNX0_z-.js → file-CENHd6__-K0sIvneQ.js} +1 -1
- package/dist/{filter-DsJ-Iccv-Jx3uj6gP.js → filter-DsJ-Iccv-B3NmH5IS.js} +1 -1
- package/dist/{flag-CYHLFt0k-DqSJnt_H.js → flag-CYHLFt0k-DIvkyuxU.js} +1 -1
- package/dist/{folder-Dxh_BRu5-CMt9gcrC.js → folder-Dxh_BRu5-DQlK1_VW.js} +1 -1
- package/dist/{funnel-CrNvAGuW-C7GdfInp.js → funnel-CrNvAGuW-Dpf3FTb5.js} +1 -1
- package/dist/{gear-CoVrFxnA-Drt__6K3.js → gear-CoVrFxnA-DSQqyB57.js} +1 -1
- package/dist/{graph-BKgtwsV3-BPot2M5-.js → graph-BKgtwsV3-C-Af1PPD.js} +1 -1
- package/dist/{hand-C0NouEE7-NdmTOvyd.js → hand-C0NouEE7-M3NhtiBW.js} +1 -1
- package/dist/{hand-tap-DL6BFNVT-BZ9lO9_3.js → hand-tap-DL6BFNVT-DUJIRGQH.js} +1 -1
- package/dist/{high-signal-D-Loy93V-Dt-Dl6_g.js → high-signal-D-Loy93V-GccvKRiW.js} +1 -1
- package/dist/{history-C3s9a2PB-BsO3w8wL.js → history-C3s9a2PB-DbO7JI1r.js} +1 -1
- package/dist/{home-BlWzn4pr-CMVRNV3a.js → home-BlWzn4pr-Bq-xcPRS.js} +1 -1
- package/dist/{hourglass-CQnmDZ4A-DOXZhxke.js → hourglass-CQnmDZ4A-B8x5xA0v.js} +1 -1
- package/dist/{import-2-CS6NkIfD-Dq5E_T74.js → import-2-CS6NkIfD-D-jBcXMx.js} +1 -1
- package/dist/{import-sJW41C_C-80CRT_A7.js → import-sJW41C_C-BNxtmvcF.js} +1 -1
- package/dist/{indeterminate-SfAe5LhV-zURfr1ZW.js → indeterminate-SfAe5LhV-4Br7who5.js} +1 -1
- package/dist/{index-fGE6_p5_.js → index-DDHsobf8.js} +2005 -1245
- package/dist/index.js +1 -1
- package/dist/{info-Ddk8uZ19-cYKpYxkv.js → info-Ddk8uZ19-CTNlzCNy.js} +1 -1
- package/dist/{invoice-DhoMJkUZ-CwrGn0iT.js → invoice-DhoMJkUZ-D9lfco51.js} +1 -1
- package/dist/{invoice-items-8mzoNhEj-CrIyOzaz.js → invoice-items-8mzoNhEj-BZ8TkoMh.js} +1 -1
- package/dist/{kanban-VCM_KJhQ-DxFB18ca.js → kanban-VCM_KJhQ-CberYGv3.js} +1 -1
- package/dist/{light-bulb-CSGMsDQY-bDPI4NgU.js → light-bulb-CSGMsDQY-DEDj89Lu.js} +1 -1
- package/dist/{like-D3Jpm5X7-spKTpeOk.js → like-D3Jpm5X7-BitZwqOM.js} +1 -1
- package/dist/{link-CsBshBNq-HvdX8r73.js → link-CsBshBNq-y0edt-jt.js} +1 -1
- package/dist/{list-E4pcDh3--Ck-KM1W2.js → list-E4pcDh3--DzZvebqd.js} +1 -1
- package/dist/{loadsmart-logo-DNmkYL4i-b72yN41Z.js → loadsmart-logo-DNmkYL4i-1iHnEQlA.js} +1 -1
- package/dist/{log-out-BqpjMnMI-DNBOO_KM.js → log-out-BqpjMnMI-SyzIGg_I.js} +1 -1
- package/dist/{low-signal-Dif4nP61-ZpW7KQx4.js → low-signal-Dif4nP61-CN6RohAO.js} +1 -1
- package/dist/{map-B4jN_bVf-CFiusxZ2.js → map-B4jN_bVf-CFLkitgB.js} +1 -1
- package/dist/{medal-DAnuxgCI-Do4_GvmR.js → medal-DAnuxgCI-BJEn_lsN.js} +1 -1
- package/dist/{megaphone-DjNvqar1-hsvoiMG5.js → megaphone-DjNvqar1-CGYyTxiK.js} +1 -1
- package/dist/{mexico-flag-CqGFhtSH-DOcMz0xe.js → mexico-flag-CqGFhtSH-D0cf9_Dm.js} +1 -1
- package/dist/{minus-DK0FtTNf-C14H3-Br.js → minus-DK0FtTNf-Dffl0eYZ.js} +1 -1
- package/dist/{network-signal-CsUP8Ptz-CEvdeFin.js → network-signal-CsUP8Ptz-CX_CQmZ9.js} +1 -1
- package/dist/{no-awarded-vl-gphms-BXB-nqZK.js → no-awarded-vl-gphms-BdFAi-7G.js} +1 -1
- package/dist/{notes-CQBZbb9A-DqwBS15R.js → notes-CQBZbb9A-COWREMbS.js} +1 -1
- package/dist/{notes-lock-CjGCv1ZX-CXJ1c4_x.js → notes-lock-CjGCv1ZX-C3X2Da5b.js} +1 -1
- package/dist/{order-hO7iPoqM-C9uOukjy.js → order-hO7iPoqM-lFdznBoJ.js} +1 -1
- package/dist/{package-tracking-CAguCFtD-opp8A2k8.js → package-tracking-CAguCFtD-Dmdma0dc.js} +1 -1
- package/dist/{padlock-0Vc9_RRn-Bxe2sCRT.js → padlock-0Vc9_RRn-Af_eqpWf.js} +1 -1
- package/dist/{padlock-open-DgjqvDck-Coizm4Yj.js → padlock-open-DgjqvDck-DKIzIi2t.js} +1 -1
- package/dist/{pencil-CSQCUeMY-C6PKFstQ.js → pencil-CSQCUeMY-O98dvrzl.js} +1 -1
- package/dist/{phone-BjnM7V1h-BvILdB4F.js → phone-BjnM7V1h-Bu9r3bAG.js} +1 -1
- package/dist/{pin-7U-Io3Zu-BhzcApCD.js → pin-7U-Io3Zu-DnNFrBR1.js} +1 -1
- package/dist/{pin-filled-CHWw7pLc-Dk60EDRi.js → pin-filled-CHWw7pLc-YK70az1b.js} +1 -1
- package/dist/{pin-map-DcVmbMYA-4sm2949a.js → pin-map-DcVmbMYA-BlTiOZk3.js} +1 -1
- package/dist/{plugs-DepRTRbM-DGsFjHRh.js → plugs-DepRTRbM-DrUn_hAV.js} +1 -1
- package/dist/{plus-Dln52wsB-BQXTylIx.js → plus-Dln52wsB-Yk1TR2nj.js} +1 -1
- package/dist/{pod-SNevlOYb-B-B8UnSM.js → pod-SNevlOYb-B6KxAcMO.js} +1 -1
- package/dist/{pre-confirmed-load-Cb_-W5UZ-CuA_tytZ.js → pre-confirmed-load-Cb_-W5UZ-CQOnlQit.js} +1 -1
- package/dist/{print-D3JvFgVL-Dp5iIv4x.js → print-D3JvFgVL-CPKgcrn1.js} +1 -1
- package/dist/{profile-CWcVkYjv-P-vAAEQg.js → profile-CWcVkYjv-bEnMQUS3.js} +1 -1
- package/dist/{question-dot-B8eRfTO_-B6GizYuI.js → question-dot-B8eRfTO_-CKoVNEN3.js} +1 -1
- package/dist/{receipt-DG8B4t6W-BM98Qxot.js → receipt-DG8B4t6W-BLUdmECi.js} +1 -1
- package/dist/{redo-D_9fkV-_-D8JQr0ko.js → redo-D_9fkV-_-PC4zGDZ8.js} +1 -1
- package/dist/{refresh-DsRwaV6m-BCZnXbT0.js → refresh-DsRwaV6m-1tkSgSHH.js} +1 -1
- package/dist/{reloading-DjGGRLN3-k5_Ky4Ym.js → reloading-DjGGRLN3-BeK_7vFQ.js} +1 -1
- package/dist/{road-CPN3L-Tw-BxbP6KpL.js → road-CPN3L-Tw-CgqArdt2.js} +1 -1
- package/dist/{round-trip-DtRTrJcY-1QR41O7-.js → round-trip-DtRTrJcY-BQdM8kCL.js} +1 -1
- package/dist/{satellite-D5g-KNPk-BcShPZ4d.js → satellite-D5g-KNPk-DYPxnvaw.js} +1 -1
- package/dist/{search-DKbTkH3_-tQUdk_19.js → search-DKbTkH3_-DLfCdH4i.js} +1 -1
- package/dist/{send-jbLTZQk6-DR_Z6qZq.js → send-jbLTZQk6-DWbY8QAv.js} +1 -1
- package/dist/{share-BOjrFu5w-KRQ0Sgax.js → share-BOjrFu5w-DtRjBmBG.js} +1 -1
- package/dist/{ship-B5FalQfb-BfHQcurP.js → ship-B5FalQfb-Bi09vBjT.js} +1 -1
- package/dist/{signal-C2RLXCHt-Du06jxd4.js → signal-C2RLXCHt-DDi7wCAK.js} +1 -1
- package/dist/{sparkle-DNKTA0Ro-n402VIWk.js → sparkle-DNKTA0Ro-BMD6JVKX.js} +1 -1
- package/dist/{star-BhvsY83m-Bq2RAznU.js → star-BhvsY83m-CVNrtt-f.js} +1 -1
- package/dist/styles/accessibility.d.ts +14 -0
- package/dist/styles/index.d.ts +1 -0
- package/dist/{swap-DThJS-cn-DhfHLIWV.js → swap-DThJS-cn-0qzQ48E4.js} +1 -1
- package/dist/{tag-LVon-vu9-Dkz2cRRW.js → tag-LVon-vu9-GHv999gO.js} +1 -1
- package/dist/{tag-chevron-CM4-HIcV-Dky3W_in.js → tag-chevron-CM4-HIcV-CPLPmbjQ.js} +1 -1
- package/dist/{telephone-BzGJg29C-2R-smv2X.js → telephone-BzGJg29C-BRTIw1o-.js} +1 -1
- package/dist/{telephone-slash-nbhq1d_v-B_zvCBDE.js → telephone-slash-nbhq1d_v-BPAK_zuc.js} +1 -1
- package/dist/{terminal-DIcZvtLE-BvA6FZCD.js → terminal-DIcZvtLE-DwbNbR7_.js} +1 -1
- package/dist/{timer-DcKddyz3-C_yWcknl.js → timer-DcKddyz3-CqL5Myup.js} +1 -1
- package/dist/{tms-ready-C4jtdZtC-C2iNI8RG.js → tms-ready-C4jtdZtC-QGVFcBNg.js} +1 -1
- package/dist/{train-BHBEWAYE-CDo0_zWA.js → train-BHBEWAYE-DxoDHu4N.js} +1 -1
- package/dist/{trash-2wSIYKzH-SNvIuPJ8.js → trash-2wSIYKzH-C2PnhqdI.js} +1 -1
- package/dist/{trend-down-p18sT5Uf-D0WLjUb0.js → trend-down-p18sT5Uf-s0yvj6Ev.js} +1 -1
- package/dist/{trend-up-aV-k8hjB-BgEQE-8c.js → trend-up-aV-k8hjB-BcwBuzjx.js} +1 -1
- package/dist/{trophee-DL77-Lxa-CULdOKhc.js → trophee-DL77-Lxa-Brs6-Inq.js} +1 -1
- package/dist/{truck-PDwOxtHR-DE4gtlwi.js → truck-PDwOxtHR-BeYipL7l.js} +1 -1
- package/dist/{truckload-DqC0dBPA-CGHCZ5oa.js → truckload-DqC0dBPA-CMEpHDQH.js} +1 -1
- package/dist/{unarchive-IaOcYX11-icllg8i4.js → unarchive-IaOcYX11-B59lNpkO.js} +1 -1
- package/dist/{undo-CVvi0Y_o-CZcAaf7h.js → undo-CVvi0Y_o-ByH-vE5b.js} +1 -1
- package/dist/{united-states-flag-BDkHDww8-l0BrUnXZ.js → united-states-flag-BDkHDww8-NWciypGp.js} +1 -1
- package/dist/{up-r5abb8zT-1wZO9Bl7.js → up-r5abb8zT-BbFoSinU.js} +1 -1
- package/dist/{upgrade-C-TDBC5o-BASgjtxw.js → upgrade-C-TDBC5o-_PbJ8PJr.js} +1 -1
- package/dist/{upload-D-P2penM-C2XxyePe.js → upload-D-P2penM-Dpn2bT2V.js} +1 -1
- package/dist/{user-DNv351cF-DJl8diMi.js → user-DNv351cF-GEhzU4nC.js} +1 -1
- package/dist/utils/slot.d.ts +1 -0
- package/dist/utils/string.d.ts +6 -0
- package/dist/{wallet-CmC71HtP-DbketOjw.js → wallet-CmC71HtP-BrNqflu8.js} +1 -1
- package/dist/{warehouse-DlyOdwNG-B2_eA-nr.js → warehouse-DlyOdwNG-D58jqpBK.js} +1 -1
- package/dist/{website-visibility-BNPQQxyP-Da4Ij8o9.js → website-visibility-BNPQQxyP-Q4OJE3n5.js} +1 -1
- package/dist/{wifi-DbKyle3E-DCLd6vKZ.js → wifi-DbKyle3E-Cfj7L5Rm.js} +1 -1
- package/dist/{wifi-off-c-Jz5muK-D2unO1tV.js → wifi-off-c-Jz5muK-BzQwGuDG.js} +1 -1
- package/dist/{x-CAVjI-CF-B2RfaIl7.js → x-CAVjI-CF-CtjLwot8.js} +1 -1
- package/dist/{x-small-BG3KNROg-DobFXtTt.js → x-small-BG3KNROg-DzpHucBC.js} +1 -1
- package/dist/{zoom-in-BjVjvm28-f1ZNSIAD.js → zoom-in-BjVjvm28-YzReNweE.js} +1 -1
- package/dist/{zoom-out-BuupA6Ar-CPMg6Vv6.js → zoom-out-BuupA6Ar-DDb8OU0A.js} +1 -1
- package/package.json +5 -4
- package/dist/components/dropdown/dropdown.constants.d.ts +0 -3
- package/dist/components/timeline/timeline-expandable-item.d.ts +0 -77
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
import type { CalendarDate } from './date';
|
|
2
|
+
export interface CalendarDateFormatter<T = string | number> {
|
|
3
|
+
format(date: CalendarDate): T;
|
|
4
|
+
}
|
|
5
|
+
/**
|
|
6
|
+
* Supported tokens:
|
|
7
|
+
*
|
|
8
|
+
*| | Token | Output |
|
|
9
|
+
*| :----------------------------- | :---- | :---------------------------------------- |
|
|
10
|
+
*| Month | MM | 01, 02, ..., 11, 12 |
|
|
11
|
+
*| | MMM | Jan, Feb, ..., Nov, Dec |
|
|
12
|
+
*| | MMMM | January, February, ..., November,December |
|
|
13
|
+
*| Day of Month | D | 1, 2, ..., 30, 31 |
|
|
14
|
+
*| Day of Month with leading 0 | DD | 01, 02, ..., 30, 31 |
|
|
15
|
+
*| Day of week | ddd | Sun, Mon, ... Fri, Sat |
|
|
16
|
+
*| | dddd | Sunday, Monday, ..., Friday, Saturday |
|
|
17
|
+
*| Year | YYYY | 1970, 1971, ..., 2029, 2030 |
|
|
18
|
+
*| Hour | HH | 00, 01, ..., 22, 23 |
|
|
19
|
+
*| | hh | 00, 01, ..., 11, 12 |
|
|
20
|
+
*| Minute | mm | 01, 02, ..., 58, 59 |
|
|
21
|
+
*| Seconds | ss | 01, 02, ..., 58, 59 |
|
|
22
|
+
*| Post or ante meridiem | a | am, pm |
|
|
23
|
+
*| | A | AM, PM |
|
|
24
|
+
*| Ordinal numbers | o | 1st, 2nd, 3rd, ..., 10th |
|
|
25
|
+
*
|
|
26
|
+
* Any character that is not a date token is treated as a separator.
|
|
27
|
+
* For example: "MM/DD/YYYY", "DD-MM-YYYY", "YYYY.MM.DD", "MM,DD|YYYY"
|
|
28
|
+
*
|
|
29
|
+
* @param format
|
|
30
|
+
* @returns
|
|
31
|
+
*/
|
|
32
|
+
export interface Token {
|
|
33
|
+
value: string;
|
|
34
|
+
type: 'token' | 'separator';
|
|
35
|
+
}
|
|
36
|
+
export declare function tokenizer(format: string): Token[];
|
|
37
|
+
type FormatOptions = {
|
|
38
|
+
locale?: string;
|
|
39
|
+
timeZone?: string;
|
|
40
|
+
};
|
|
41
|
+
/**
|
|
42
|
+
* This helper provides a convenient layer on top of `Intl.DateTimeFormat`,
|
|
43
|
+
* using common tokens (based on `momentjs`) to format dates.
|
|
44
|
+
*/
|
|
45
|
+
export declare function createCalendarDateFormatter(format: 'timestamp', options?: FormatOptions): CalendarDateFormatter<number>;
|
|
46
|
+
export declare function createCalendarDateFormatter(format: 'short-iso' | 'full-iso', options?: FormatOptions): CalendarDateFormatter<string>;
|
|
47
|
+
export declare function createCalendarDateFormatter(format: string, options?: FormatOptions): CalendarDateFormatter<string>;
|
|
48
|
+
export declare const DateIDFormatter: {
|
|
49
|
+
format(value: number | CalendarDate | null): string;
|
|
50
|
+
};
|
|
51
|
+
export declare const MMMDoYYYYFormatter: CalendarDateFormatter<string>;
|
|
52
|
+
export declare const MMMMFormatter: CalendarDateFormatter<string>;
|
|
53
|
+
export declare const ShortISOFormatter: CalendarDateFormatter<string>;
|
|
54
|
+
export declare const MMDDYYYYFormatter: CalendarDateFormatter<string>;
|
|
55
|
+
export {};
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import type { CalendarDate } from './date';
|
|
2
|
+
export declare function parseDate(value: string, referenceDate?: CalendarDate | null): CalendarDate | null;
|
|
3
|
+
export declare function parseDateRange(value: string): [CalendarDate | null, CalendarDate | null] | null;
|
|
4
|
+
export declare function fromAttribute(value: number | string | [string | number | null, string | number | null] | null): [number | null, number | null];
|
|
@@ -0,0 +1,354 @@
|
|
|
1
|
+
import type { PropertyValues, TemplateResult } from 'lit';
|
|
2
|
+
import { Popover } from '../popover';
|
|
3
|
+
import type { Calendar } from './date-calendar';
|
|
4
|
+
import type { CalendarDateConstraint } from './date';
|
|
5
|
+
import type { CalendarDateFormatter } from './date-formatter';
|
|
6
|
+
import type { DatePickerReturnFormat } from './date-picker.types';
|
|
7
|
+
import type { FieldStatus } from '../field';
|
|
8
|
+
import type { PopoverProps } from '../popover';
|
|
9
|
+
import '../button';
|
|
10
|
+
import '../close-button';
|
|
11
|
+
import '../layout/group';
|
|
12
|
+
import '../layout/stack';
|
|
13
|
+
import '../select';
|
|
14
|
+
import '../text';
|
|
15
|
+
declare const WEEK_DAYS: {
|
|
16
|
+
readonly sunday: {
|
|
17
|
+
readonly abbr: "Su";
|
|
18
|
+
readonly label: "Sunday";
|
|
19
|
+
};
|
|
20
|
+
readonly monday: {
|
|
21
|
+
readonly abbr: "Mo";
|
|
22
|
+
readonly label: "Monday";
|
|
23
|
+
};
|
|
24
|
+
readonly tuesday: {
|
|
25
|
+
readonly abbr: "Tu";
|
|
26
|
+
readonly label: "Tuesday";
|
|
27
|
+
};
|
|
28
|
+
readonly wednesday: {
|
|
29
|
+
readonly abbr: "We";
|
|
30
|
+
readonly label: "Wednesday";
|
|
31
|
+
};
|
|
32
|
+
readonly thursday: {
|
|
33
|
+
readonly abbr: "Th";
|
|
34
|
+
readonly label: "Thursday";
|
|
35
|
+
};
|
|
36
|
+
readonly friday: {
|
|
37
|
+
readonly abbr: "Fr";
|
|
38
|
+
readonly label: "Friday";
|
|
39
|
+
};
|
|
40
|
+
readonly saturday: {
|
|
41
|
+
readonly abbr: "Sa";
|
|
42
|
+
readonly label: "Saturday";
|
|
43
|
+
};
|
|
44
|
+
};
|
|
45
|
+
export type WeekDay = keyof typeof WEEK_DAYS;
|
|
46
|
+
declare const MONTHS: {
|
|
47
|
+
january: {
|
|
48
|
+
abbr: string;
|
|
49
|
+
label: string;
|
|
50
|
+
};
|
|
51
|
+
february: {
|
|
52
|
+
abbr: string;
|
|
53
|
+
label: string;
|
|
54
|
+
};
|
|
55
|
+
march: {
|
|
56
|
+
abbr: string;
|
|
57
|
+
label: string;
|
|
58
|
+
};
|
|
59
|
+
april: {
|
|
60
|
+
abbr: string;
|
|
61
|
+
label: string;
|
|
62
|
+
};
|
|
63
|
+
may: {
|
|
64
|
+
abbr: string;
|
|
65
|
+
label: string;
|
|
66
|
+
};
|
|
67
|
+
june: {
|
|
68
|
+
abbr: string;
|
|
69
|
+
label: string;
|
|
70
|
+
};
|
|
71
|
+
july: {
|
|
72
|
+
abbr: string;
|
|
73
|
+
label: string;
|
|
74
|
+
};
|
|
75
|
+
august: {
|
|
76
|
+
abbr: string;
|
|
77
|
+
label: string;
|
|
78
|
+
};
|
|
79
|
+
september: {
|
|
80
|
+
abbr: string;
|
|
81
|
+
label: string;
|
|
82
|
+
};
|
|
83
|
+
october: {
|
|
84
|
+
abbr: string;
|
|
85
|
+
label: string;
|
|
86
|
+
};
|
|
87
|
+
november: {
|
|
88
|
+
abbr: string;
|
|
89
|
+
label: string;
|
|
90
|
+
};
|
|
91
|
+
december: {
|
|
92
|
+
abbr: string;
|
|
93
|
+
label: string;
|
|
94
|
+
};
|
|
95
|
+
};
|
|
96
|
+
export type MonthDefinition = keyof typeof MONTHS;
|
|
97
|
+
export interface DatePickerProps extends PopoverProps {
|
|
98
|
+
clearable?: boolean;
|
|
99
|
+
constraints?: CalendarDateConstraint[];
|
|
100
|
+
disabled?: boolean;
|
|
101
|
+
format?: string;
|
|
102
|
+
initialValue?: number | string | null;
|
|
103
|
+
label?: string;
|
|
104
|
+
months?: Record<MonthDefinition, {
|
|
105
|
+
abbr: string;
|
|
106
|
+
label: string;
|
|
107
|
+
}>;
|
|
108
|
+
name?: string;
|
|
109
|
+
placeholder?: string;
|
|
110
|
+
presets?: string[] | (string | {
|
|
111
|
+
label: string;
|
|
112
|
+
prompt: string;
|
|
113
|
+
})[];
|
|
114
|
+
returnFormat?: DatePickerReturnFormat;
|
|
115
|
+
status?: FieldStatus;
|
|
116
|
+
value?: number | string | [string | number | null, string | number | null] | null;
|
|
117
|
+
weekDays?: Record<WeekDay, {
|
|
118
|
+
abbr: string;
|
|
119
|
+
label: string;
|
|
120
|
+
}>;
|
|
121
|
+
weekStart?: WeekDay;
|
|
122
|
+
onchange?: GlobalEventHandlers['onchange'];
|
|
123
|
+
onclear?: () => void;
|
|
124
|
+
}
|
|
125
|
+
declare const DatePicker_base: import("../../utils/types").Constructor<import("../component/form-component.mixin").WithFormComponentMixinInterface> & typeof Popover;
|
|
126
|
+
export declare class DatePicker extends DatePicker_base implements DatePickerProps {
|
|
127
|
+
#private;
|
|
128
|
+
static styles: (import("lit").CSSResult | import("lit").CSSResult[])[][];
|
|
129
|
+
static get properties(): {
|
|
130
|
+
clearable: {
|
|
131
|
+
type: BooleanConstructor;
|
|
132
|
+
};
|
|
133
|
+
constraints: {};
|
|
134
|
+
disabled: {
|
|
135
|
+
type: BooleanConstructor;
|
|
136
|
+
};
|
|
137
|
+
format: {
|
|
138
|
+
type: StringConstructor;
|
|
139
|
+
reflect: boolean;
|
|
140
|
+
};
|
|
141
|
+
formatter: {};
|
|
142
|
+
initialValue: {
|
|
143
|
+
type: StringConstructor;
|
|
144
|
+
attribute: string;
|
|
145
|
+
reflect: boolean;
|
|
146
|
+
};
|
|
147
|
+
label: {
|
|
148
|
+
type: StringConstructor;
|
|
149
|
+
};
|
|
150
|
+
months: {
|
|
151
|
+
type: ObjectConstructor;
|
|
152
|
+
};
|
|
153
|
+
name: {
|
|
154
|
+
type: StringConstructor;
|
|
155
|
+
reflect: boolean;
|
|
156
|
+
};
|
|
157
|
+
onchange: {};
|
|
158
|
+
placeholder: {
|
|
159
|
+
type: StringConstructor;
|
|
160
|
+
};
|
|
161
|
+
presets: {
|
|
162
|
+
type: ArrayConstructor;
|
|
163
|
+
};
|
|
164
|
+
providedValue: {
|
|
165
|
+
type: StringConstructor;
|
|
166
|
+
attribute: string;
|
|
167
|
+
};
|
|
168
|
+
returnFormat: {
|
|
169
|
+
type: StringConstructor;
|
|
170
|
+
reflect: boolean;
|
|
171
|
+
attribute: string;
|
|
172
|
+
};
|
|
173
|
+
status: {
|
|
174
|
+
type: StringConstructor;
|
|
175
|
+
reflect: boolean;
|
|
176
|
+
};
|
|
177
|
+
weekDays: {
|
|
178
|
+
type: ObjectConstructor;
|
|
179
|
+
attribute: string;
|
|
180
|
+
};
|
|
181
|
+
weekStart: {
|
|
182
|
+
type: StringConstructor;
|
|
183
|
+
reflect: boolean;
|
|
184
|
+
attribute: string;
|
|
185
|
+
};
|
|
186
|
+
calendar: {
|
|
187
|
+
state: boolean;
|
|
188
|
+
};
|
|
189
|
+
selection: {
|
|
190
|
+
state: boolean;
|
|
191
|
+
};
|
|
192
|
+
position: {
|
|
193
|
+
type: StringConstructor;
|
|
194
|
+
reflect: boolean;
|
|
195
|
+
};
|
|
196
|
+
placement: {
|
|
197
|
+
type: StringConstructor;
|
|
198
|
+
};
|
|
199
|
+
open: {
|
|
200
|
+
type: BooleanConstructor;
|
|
201
|
+
reflect: boolean;
|
|
202
|
+
};
|
|
203
|
+
asPopover: {
|
|
204
|
+
type: BooleanConstructor;
|
|
205
|
+
attribute: string;
|
|
206
|
+
};
|
|
207
|
+
};
|
|
208
|
+
/**
|
|
209
|
+
* Whether the date picker is clearable.
|
|
210
|
+
*/
|
|
211
|
+
clearable: DatePickerProps['clearable'];
|
|
212
|
+
/**
|
|
213
|
+
* Constraints to apply to the date picker's calendar.
|
|
214
|
+
*/
|
|
215
|
+
constraints: DatePickerProps['constraints'];
|
|
216
|
+
/**
|
|
217
|
+
* Should the picker be disabled.
|
|
218
|
+
*/
|
|
219
|
+
disabled: DatePickerProps['disabled'];
|
|
220
|
+
/**
|
|
221
|
+
* Date format.
|
|
222
|
+
*/
|
|
223
|
+
format: DatePickerProps['format'];
|
|
224
|
+
/**
|
|
225
|
+
* Value that will be selected by default on initialization and form reset.
|
|
226
|
+
*/
|
|
227
|
+
initialValue: DatePickerProps['initialValue'];
|
|
228
|
+
/**
|
|
229
|
+
* Label for the date picker input field.
|
|
230
|
+
*/
|
|
231
|
+
label: DatePickerProps['label'];
|
|
232
|
+
/**
|
|
233
|
+
* Array with the months to be used to render the calendar.
|
|
234
|
+
*/
|
|
235
|
+
months: DatePickerProps['months'];
|
|
236
|
+
/**
|
|
237
|
+
* Name that will represent this control in the form.
|
|
238
|
+
*/
|
|
239
|
+
name: DatePickerProps['name'];
|
|
240
|
+
/**
|
|
241
|
+
* Helper text to guide the user when there's no date selected.
|
|
242
|
+
*/
|
|
243
|
+
placeholder: DatePickerProps['placeholder'];
|
|
244
|
+
/**
|
|
245
|
+
* Date selection presets (used to offer quick date selection options).
|
|
246
|
+
*/
|
|
247
|
+
presets: DatePickerProps['presets'];
|
|
248
|
+
/**
|
|
249
|
+
* Current value.
|
|
250
|
+
*/
|
|
251
|
+
providedValue: DatePickerProps['value'];
|
|
252
|
+
/**
|
|
253
|
+
* The format of the date to return when the date picker is used as a form control.
|
|
254
|
+
*
|
|
255
|
+
* - `full-iso`: Returns the date in the format `YYYY-MM-DDTHH:mm:ss.sss`.
|
|
256
|
+
* - `short-iso`: Returns the date in the format `YYYY-MM-DD`.
|
|
257
|
+
* - `timestamp`: Returns the date as a timestamp.
|
|
258
|
+
*
|
|
259
|
+
* @default 'full-iso'
|
|
260
|
+
*/
|
|
261
|
+
returnFormat: DatePickerProps['returnFormat'];
|
|
262
|
+
/**
|
|
263
|
+
* Validation status type.
|
|
264
|
+
*/
|
|
265
|
+
status: DatePickerProps['status'];
|
|
266
|
+
/**
|
|
267
|
+
* Array with the week days to be used to render the calendar.
|
|
268
|
+
*/
|
|
269
|
+
weekDays: DatePickerProps['weekDays'];
|
|
270
|
+
/**
|
|
271
|
+
* The start day of the week used to render the calendar.
|
|
272
|
+
* @default 'sunday'
|
|
273
|
+
*/
|
|
274
|
+
weekStart: DatePickerProps['weekStart'];
|
|
275
|
+
/**
|
|
276
|
+
* Current selection.
|
|
277
|
+
*/
|
|
278
|
+
selection: [number | null, number | null];
|
|
279
|
+
calendar: Calendar;
|
|
280
|
+
private field;
|
|
281
|
+
/**
|
|
282
|
+
* Date formatter for the display value.
|
|
283
|
+
*/
|
|
284
|
+
protected displayValueFormatter: CalendarDateFormatter<string>;
|
|
285
|
+
/**
|
|
286
|
+
* Date formatter for the form value.
|
|
287
|
+
*/
|
|
288
|
+
protected formValueFormatter: CalendarDateFormatter;
|
|
289
|
+
static define(): void;
|
|
290
|
+
constructor();
|
|
291
|
+
createRenderRoot(): DocumentFragment | HTMLElement;
|
|
292
|
+
connectedCallback(): Promise<void>;
|
|
293
|
+
disconnectedCallback(): void;
|
|
294
|
+
update(changedProperties: PropertyValues<this>): void;
|
|
295
|
+
getReferenceElement(): HTMLInputElement | null;
|
|
296
|
+
getFloatingElement(): HTMLElement | null;
|
|
297
|
+
getArrowElement(): null;
|
|
298
|
+
getFloatingOffset(): {
|
|
299
|
+
crossAxis: number;
|
|
300
|
+
mainAxis: number;
|
|
301
|
+
};
|
|
302
|
+
protected renderPicker(): TemplateResult<1>;
|
|
303
|
+
renderCalendar(): TemplateResult<1>;
|
|
304
|
+
renderActions(): symbol | TemplateResult<1>;
|
|
305
|
+
protected renderPresets(): symbol | TemplateResult<1>;
|
|
306
|
+
protected renderFooter(): symbol | TemplateResult<1>;
|
|
307
|
+
render(): TemplateResult<1>;
|
|
308
|
+
get triggers(): HTMLInputElement[];
|
|
309
|
+
get dialogMessage(): HTMLDivElement | null;
|
|
310
|
+
get queried(): HTMLButtonElement[];
|
|
311
|
+
get value(): number | string | [string | number | null, string | number | null] | null;
|
|
312
|
+
set value(value: number | string | [string | number | null, string | number | null] | null);
|
|
313
|
+
/**
|
|
314
|
+
* Imperatively pick date/date range.
|
|
315
|
+
* This is here to be used especifically for testing purposes.
|
|
316
|
+
*/
|
|
317
|
+
pick: (value: number | [number | null, number | null]) => void;
|
|
318
|
+
clear: () => Promise<void>;
|
|
319
|
+
expand: (args?: {
|
|
320
|
+
focusOnTrigger?: boolean;
|
|
321
|
+
}) => Promise<void>;
|
|
322
|
+
collapse(args?: {
|
|
323
|
+
focusOnTrigger?: boolean;
|
|
324
|
+
}): Promise<void>;
|
|
325
|
+
/**
|
|
326
|
+
* Toggle select menu.
|
|
327
|
+
*/
|
|
328
|
+
toggle: (args?: {
|
|
329
|
+
focusOnTrigger?: boolean;
|
|
330
|
+
}) => Promise<void>;
|
|
331
|
+
protected initialize(value?: string | null): void;
|
|
332
|
+
protected getSelected: () => HTMLButtonElement | null;
|
|
333
|
+
protected handleDayClick: (timestamp: number) => void;
|
|
334
|
+
protected handleValueChange: (value: [number | null, number | null] | null) => boolean;
|
|
335
|
+
protected handleClear: () => void;
|
|
336
|
+
protected setDialogMessage: (message: string) => void;
|
|
337
|
+
protected clearDialogMessage: () => void;
|
|
338
|
+
protected formatDateValue: (value: number | null) => string;
|
|
339
|
+
protected updatePicker: () => void;
|
|
340
|
+
formResetCallback(): void;
|
|
341
|
+
formStateRestoreCallback(state: string): void;
|
|
342
|
+
formDisabledCallback(disabled: boolean): void;
|
|
343
|
+
/**
|
|
344
|
+
* Select date by value.
|
|
345
|
+
* This can also be used for testing purposes.
|
|
346
|
+
*/
|
|
347
|
+
pickDate: (value?: number | null) => void;
|
|
348
|
+
}
|
|
349
|
+
declare global {
|
|
350
|
+
interface HTMLElementTagNameMap {
|
|
351
|
+
'm-date-picker': DatePicker;
|
|
352
|
+
}
|
|
353
|
+
}
|
|
354
|
+
export {};
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
export type CalendarSelection = [
|
|
2
|
+
string | number | null,
|
|
3
|
+
string | number | null
|
|
4
|
+
];
|
|
5
|
+
/**
|
|
6
|
+
* The format of the date to return when the date picker is used as a form control.
|
|
7
|
+
*
|
|
8
|
+
* - `full-iso`: Returns the date in the format `YYYY-MM-DDTHH:mm:ss.sss`.
|
|
9
|
+
* - `short-iso`: Returns the date in the format `YYYY-MM-DD`.
|
|
10
|
+
* - `timestamp`: Returns the date as a timestamp.
|
|
11
|
+
*
|
|
12
|
+
* @default 'full-iso'
|
|
13
|
+
*/
|
|
14
|
+
export type DatePickerReturnFormat = 'full-iso' | 'short-iso' | 'timestamp';
|
|
@@ -0,0 +1,135 @@
|
|
|
1
|
+
import { nothing } from 'lit';
|
|
2
|
+
import { DatePicker } from './date-picker';
|
|
3
|
+
import type { DatePickerProps } from './date-picker';
|
|
4
|
+
import '../layout';
|
|
5
|
+
import '../dropdown';
|
|
6
|
+
export interface DateRangePickerProps extends DatePickerProps {
|
|
7
|
+
nameStart?: string;
|
|
8
|
+
nameEnd?: string;
|
|
9
|
+
}
|
|
10
|
+
export declare const PRESETS: string[];
|
|
11
|
+
export declare class DateRangePicker extends DatePicker implements DateRangePickerProps {
|
|
12
|
+
#private;
|
|
13
|
+
static get properties(): {
|
|
14
|
+
nameEnd: {
|
|
15
|
+
type: StringConstructor;
|
|
16
|
+
attribute: string;
|
|
17
|
+
reflect: boolean;
|
|
18
|
+
};
|
|
19
|
+
nameStart: {
|
|
20
|
+
type: StringConstructor;
|
|
21
|
+
attribute: string;
|
|
22
|
+
reflect: boolean;
|
|
23
|
+
};
|
|
24
|
+
clearable: {
|
|
25
|
+
type: BooleanConstructor;
|
|
26
|
+
};
|
|
27
|
+
constraints: {};
|
|
28
|
+
disabled: {
|
|
29
|
+
type: BooleanConstructor;
|
|
30
|
+
};
|
|
31
|
+
format: {
|
|
32
|
+
type: StringConstructor;
|
|
33
|
+
reflect: boolean;
|
|
34
|
+
};
|
|
35
|
+
formatter: {};
|
|
36
|
+
initialValue: {
|
|
37
|
+
type: StringConstructor;
|
|
38
|
+
attribute: string;
|
|
39
|
+
reflect: boolean;
|
|
40
|
+
};
|
|
41
|
+
label: {
|
|
42
|
+
type: StringConstructor;
|
|
43
|
+
};
|
|
44
|
+
months: {
|
|
45
|
+
type: ObjectConstructor;
|
|
46
|
+
};
|
|
47
|
+
name: {
|
|
48
|
+
type: StringConstructor;
|
|
49
|
+
reflect: boolean;
|
|
50
|
+
};
|
|
51
|
+
onchange: {};
|
|
52
|
+
placeholder: {
|
|
53
|
+
type: StringConstructor;
|
|
54
|
+
};
|
|
55
|
+
presets: {
|
|
56
|
+
type: ArrayConstructor;
|
|
57
|
+
};
|
|
58
|
+
providedValue: {
|
|
59
|
+
type: StringConstructor;
|
|
60
|
+
attribute: string;
|
|
61
|
+
};
|
|
62
|
+
returnFormat: {
|
|
63
|
+
type: StringConstructor;
|
|
64
|
+
reflect: boolean;
|
|
65
|
+
attribute: string;
|
|
66
|
+
};
|
|
67
|
+
status: {
|
|
68
|
+
type: StringConstructor;
|
|
69
|
+
reflect: boolean;
|
|
70
|
+
};
|
|
71
|
+
weekDays: {
|
|
72
|
+
type: ObjectConstructor;
|
|
73
|
+
attribute: string;
|
|
74
|
+
};
|
|
75
|
+
weekStart: {
|
|
76
|
+
type: StringConstructor;
|
|
77
|
+
reflect: boolean;
|
|
78
|
+
attribute: string;
|
|
79
|
+
};
|
|
80
|
+
calendar: {
|
|
81
|
+
state: boolean;
|
|
82
|
+
};
|
|
83
|
+
selection: {
|
|
84
|
+
state: boolean;
|
|
85
|
+
};
|
|
86
|
+
position: {
|
|
87
|
+
type: StringConstructor;
|
|
88
|
+
reflect: boolean;
|
|
89
|
+
};
|
|
90
|
+
placement: {
|
|
91
|
+
type: StringConstructor;
|
|
92
|
+
};
|
|
93
|
+
open: {
|
|
94
|
+
type: BooleanConstructor;
|
|
95
|
+
reflect: boolean;
|
|
96
|
+
};
|
|
97
|
+
asPopover: {
|
|
98
|
+
type: BooleanConstructor;
|
|
99
|
+
attribute: string;
|
|
100
|
+
};
|
|
101
|
+
};
|
|
102
|
+
/**
|
|
103
|
+
* The name of the end date value when the date range picker is used as a form control.
|
|
104
|
+
*/
|
|
105
|
+
nameEnd: DateRangePickerProps['nameEnd'];
|
|
106
|
+
/**
|
|
107
|
+
* The name of the start date value when the date range picker is used as a form control.
|
|
108
|
+
*/
|
|
109
|
+
nameStart: DateRangePickerProps['nameStart'];
|
|
110
|
+
private picking;
|
|
111
|
+
static define(): void;
|
|
112
|
+
renderPicker(): import("lit-html").TemplateResult<1>;
|
|
113
|
+
renderPresets(): import("lit-html").TemplateResult<1> | typeof nothing;
|
|
114
|
+
renderActions(): import("lit-html").TemplateResult<1>;
|
|
115
|
+
renderFooter(): import("lit-html").TemplateResult<1> | typeof nothing;
|
|
116
|
+
get value(): number | string | [string | number | null, string | number | null] | null;
|
|
117
|
+
set value(value: number | string | [string | number | null, string | number | null] | null);
|
|
118
|
+
pickDateRange: (value: [number | null, number | null]) => void;
|
|
119
|
+
pickDate: () => never;
|
|
120
|
+
protected initialize(value?: string | null): void;
|
|
121
|
+
collapse(args?: {
|
|
122
|
+
focusOnTrigger?: boolean;
|
|
123
|
+
}): Promise<void>;
|
|
124
|
+
getSelected: () => HTMLButtonElement | null;
|
|
125
|
+
handleDayClick: (timestamp: number) => void;
|
|
126
|
+
handleDone: () => void;
|
|
127
|
+
handleValueChange: (value: [number | null, number | null] | null) => boolean;
|
|
128
|
+
updatePicker: () => void;
|
|
129
|
+
formDisabledCallback(disabled: boolean): void;
|
|
130
|
+
}
|
|
131
|
+
declare global {
|
|
132
|
+
interface HTMLElementTagNameMap {
|
|
133
|
+
'm-date-range-picker': DateRangePicker;
|
|
134
|
+
}
|
|
135
|
+
}
|
|
@@ -0,0 +1,130 @@
|
|
|
1
|
+
import type { CalendarDateFormatter } from './date-formatter';
|
|
2
|
+
export declare function padded(value: number | string, maxLength?: number): string;
|
|
3
|
+
export type DateHelperOptions = {
|
|
4
|
+
normalize?: boolean;
|
|
5
|
+
};
|
|
6
|
+
export type InputDate = string | number | Date;
|
|
7
|
+
export type Unit = 'year' | 'month' | 'day' | 'hour' | 'minute' | 'second' | 'millisecond';
|
|
8
|
+
export type Operator = '>=' | '>' | '=' | '<' | '<=';
|
|
9
|
+
export type DateConstraint = InputDate | [InputDate, InputDate] | [null, InputDate] | [InputDate, null];
|
|
10
|
+
export type FunctionConstraint = (day: CalendarDate) => boolean;
|
|
11
|
+
export type CalendarDateConstraint = DateConstraint | FunctionConstraint;
|
|
12
|
+
export interface CalendarDate {
|
|
13
|
+
/**
|
|
14
|
+
* Get `Date` object representing this date.
|
|
15
|
+
*/
|
|
16
|
+
get(): Date;
|
|
17
|
+
/**
|
|
18
|
+
* Get the year using Universal Coordinated Time (UTC).
|
|
19
|
+
*/
|
|
20
|
+
getYear(): number;
|
|
21
|
+
/**
|
|
22
|
+
* Gets the month using Universal Coordinated Time (UTC).
|
|
23
|
+
*/
|
|
24
|
+
getMonth(): number;
|
|
25
|
+
/**
|
|
26
|
+
* Get the day-of-the-month, using Universal Coordinated Time (UTC).
|
|
27
|
+
*/
|
|
28
|
+
getDate(): number;
|
|
29
|
+
/**
|
|
30
|
+
* Get the time value in milliseconds.
|
|
31
|
+
*
|
|
32
|
+
* [!] Be aware that it might be normalized to 12:00:00 (UTC), if you did not call the helper with
|
|
33
|
+
* `options.normalize: false`.
|
|
34
|
+
*
|
|
35
|
+
*/
|
|
36
|
+
getTime(): number;
|
|
37
|
+
/**
|
|
38
|
+
* Get the day of the week.
|
|
39
|
+
*
|
|
40
|
+
* [!] Be aware that it might be normalized to 12:00:00 (UTC), if you did not call the helper with
|
|
41
|
+
* `options.normalize: false`.
|
|
42
|
+
*
|
|
43
|
+
*/
|
|
44
|
+
getWeekday(): number;
|
|
45
|
+
/**
|
|
46
|
+
* Get the hours value.
|
|
47
|
+
*
|
|
48
|
+
* [!] Be aware that it might be normalized to 12:00:00 (UTC), if you did not call the helper with
|
|
49
|
+
* `options.normalize: false`.
|
|
50
|
+
*
|
|
51
|
+
*/
|
|
52
|
+
getHours(): number;
|
|
53
|
+
/**
|
|
54
|
+
* Get the minutes value.
|
|
55
|
+
*
|
|
56
|
+
* [!] Be aware that it might be normalized to 12:00:00 (UTC), if you did not call the helper with
|
|
57
|
+
* `options.normalize: false`.
|
|
58
|
+
*/
|
|
59
|
+
getMinutes(): number;
|
|
60
|
+
/**
|
|
61
|
+
* Get the seconds value.
|
|
62
|
+
*
|
|
63
|
+
* [!] Be aware that it might be normalized to 12:00:00 (UTC), if you did not call the helper with
|
|
64
|
+
* `options.normalize: false`.
|
|
65
|
+
*
|
|
66
|
+
*/
|
|
67
|
+
getSeconds(): number;
|
|
68
|
+
/**
|
|
69
|
+
* Get the milliseconds value.
|
|
70
|
+
*
|
|
71
|
+
* [!] Be aware that it might be normalized to 12:00:00 (UTC), if you did not call the helper with
|
|
72
|
+
* `options.normalize: false`.
|
|
73
|
+
*
|
|
74
|
+
*/
|
|
75
|
+
getMilliseconds(): number;
|
|
76
|
+
/**
|
|
77
|
+
* Check if the current date matches **at least one** of the provided constraints.
|
|
78
|
+
*
|
|
79
|
+
* [!] Be aware that all dates in this comparison will be normalized to 12:00:00 (UTC).
|
|
80
|
+
*/
|
|
81
|
+
matches(...constraints: CalendarDateConstraint[]): boolean;
|
|
82
|
+
/**
|
|
83
|
+
* Set the given `value` to the `unit` property of this instance.
|
|
84
|
+
*/
|
|
85
|
+
set(units: Partial<{
|
|
86
|
+
[key in Unit]: number;
|
|
87
|
+
}>): CalendarDate;
|
|
88
|
+
/**
|
|
89
|
+
* Return a copy of this instance, adding the given `value` to the `unit` property.
|
|
90
|
+
*/
|
|
91
|
+
add(unit: Unit, value: number): CalendarDate;
|
|
92
|
+
/**
|
|
93
|
+
* Return a copy of this instance, subtracting the given `value` from the `unit` property.
|
|
94
|
+
*/
|
|
95
|
+
subtract(unit: Unit, value: number): CalendarDate;
|
|
96
|
+
/**
|
|
97
|
+
* Compare this date with the given `other`.
|
|
98
|
+
*
|
|
99
|
+
* [!] Be aware that it might be normalized to 12:00:00 (UTC), if you did not call the helper with
|
|
100
|
+
* `options.normalize: false`.
|
|
101
|
+
*/
|
|
102
|
+
is(operator: Operator, other: CalendarDate, precision?: string): boolean;
|
|
103
|
+
/**
|
|
104
|
+
* Format this date using the given formatter.
|
|
105
|
+
*/
|
|
106
|
+
format<T>(formatter: CalendarDateFormatter<T>): T;
|
|
107
|
+
/**
|
|
108
|
+
* Return this date as a string value in ISO format.
|
|
109
|
+
*/
|
|
110
|
+
toString(): string;
|
|
111
|
+
/**
|
|
112
|
+
* Return this date as a string value in ISO format.
|
|
113
|
+
*/
|
|
114
|
+
toLocaleDateString(locales?: Intl.LocalesArgument, formatOptions?: Intl.DateTimeFormatOptions): string;
|
|
115
|
+
getOptions(): DateHelperOptions;
|
|
116
|
+
}
|
|
117
|
+
/**
|
|
118
|
+
* Get the comparable date for the given date and precision. It essentially
|
|
119
|
+
* zeroes out the given precision.
|
|
120
|
+
*/
|
|
121
|
+
export declare function getComparableDate(date: Date, precision?: Unit): number;
|
|
122
|
+
export declare class InvalidDateConstraintError extends Error {
|
|
123
|
+
}
|
|
124
|
+
export declare class InvalidComparisonOperatorError extends Error {
|
|
125
|
+
constructor(operator: string);
|
|
126
|
+
}
|
|
127
|
+
export declare function createCalendarDate(dateArg?: InputDate | null): CalendarDate;
|
|
128
|
+
export declare const TODAY: CalendarDate;
|
|
129
|
+
export declare const MIN_SUPPORTED_DATE: CalendarDate;
|
|
130
|
+
export declare const MAX_SUPPORTED_DATE: CalendarDate;
|