easy-three-utils 0.0.336 → 0.0.337
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/cesium/components/index.ts +13 -0
- package/cesium/components/react/Timeline/index.tsx +19 -22
- package/cesium/index.ts +6 -4
- package/cesium/modules/dayjs/.editorconfig +7 -0
- package/cesium/modules/dayjs/CHANGELOG.md +982 -0
- package/cesium/modules/dayjs/LICENSE +21 -0
- package/cesium/modules/dayjs/README.md +180 -0
- package/cesium/modules/dayjs/dayjs.min.js +1 -0
- package/cesium/modules/dayjs/esm/constant.js +25 -0
- package/cesium/modules/dayjs/esm/index.d.ts +429 -0
- package/cesium/modules/dayjs/esm/index.js +541 -0
- package/cesium/modules/dayjs/esm/locale/af.js +39 -0
- package/cesium/modules/dayjs/esm/locale/am.js +40 -0
- package/cesium/modules/dayjs/esm/locale/ar-dz.js +41 -0
- package/cesium/modules/dayjs/esm/locale/ar-iq.js +42 -0
- package/cesium/modules/dayjs/esm/locale/ar-kw.js +41 -0
- package/cesium/modules/dayjs/esm/locale/ar-ly.js +27 -0
- package/cesium/modules/dayjs/esm/locale/ar-ma.js +42 -0
- package/cesium/modules/dayjs/esm/locale/ar-sa.js +41 -0
- package/cesium/modules/dayjs/esm/locale/ar-tn.js +42 -0
- package/cesium/modules/dayjs/esm/locale/ar.js +77 -0
- package/cesium/modules/dayjs/esm/locale/az.js +39 -0
- package/cesium/modules/dayjs/esm/locale/be.js +24 -0
- package/cesium/modules/dayjs/esm/locale/bg.js +55 -0
- package/cesium/modules/dayjs/esm/locale/bi.js +39 -0
- package/cesium/modules/dayjs/esm/locale/bm.js +39 -0
- package/cesium/modules/dayjs/esm/locale/bn-bd.js +81 -0
- package/cesium/modules/dayjs/esm/locale/bn.js +72 -0
- package/cesium/modules/dayjs/esm/locale/bo.js +38 -0
- package/cesium/modules/dayjs/esm/locale/br.js +93 -0
- package/cesium/modules/dayjs/esm/locale/bs.js +24 -0
- package/cesium/modules/dayjs/esm/locale/ca.js +44 -0
- package/cesium/modules/dayjs/esm/locale/cs.js +120 -0
- package/cesium/modules/dayjs/esm/locale/cv.js +24 -0
- package/cesium/modules/dayjs/esm/locale/cy.js +39 -0
- package/cesium/modules/dayjs/esm/locale/da.js +40 -0
- package/cesium/modules/dayjs/esm/locale/de-at.js +63 -0
- package/cesium/modules/dayjs/esm/locale/de-ch.js +63 -0
- package/cesium/modules/dayjs/esm/locale/de.js +64 -0
- package/cesium/modules/dayjs/esm/locale/dv.js +39 -0
- package/cesium/modules/dayjs/esm/locale/el.js +39 -0
- package/cesium/modules/dayjs/esm/locale/en-au.js +41 -0
- package/cesium/modules/dayjs/esm/locale/en-ca.js +38 -0
- package/cesium/modules/dayjs/esm/locale/en-gb.js +42 -0
- package/cesium/modules/dayjs/esm/locale/en-ie.js +39 -0
- package/cesium/modules/dayjs/esm/locale/en-il.js +38 -0
- package/cesium/modules/dayjs/esm/locale/en-in.js +42 -0
- package/cesium/modules/dayjs/esm/locale/en-nz.js +41 -0
- package/cesium/modules/dayjs/esm/locale/en-sg.js +39 -0
- package/cesium/modules/dayjs/esm/locale/en-tt.js +42 -0
- package/cesium/modules/dayjs/esm/locale/en.js +12 -0
- package/cesium/modules/dayjs/esm/locale/eo.js +39 -0
- package/cesium/modules/dayjs/esm/locale/es-do.js +39 -0
- package/cesium/modules/dayjs/esm/locale/es-mx.js +38 -0
- package/cesium/modules/dayjs/esm/locale/es-pr.js +39 -0
- package/cesium/modules/dayjs/esm/locale/es-us.js +38 -0
- package/cesium/modules/dayjs/esm/locale/es.js +39 -0
- package/cesium/modules/dayjs/esm/locale/et.js +65 -0
- package/cesium/modules/dayjs/esm/locale/eu.js +43 -0
- package/cesium/modules/dayjs/esm/locale/fa.js +39 -0
- package/cesium/modules/dayjs/esm/locale/fi.js +88 -0
- package/cesium/modules/dayjs/esm/locale/fo.js +39 -0
- package/cesium/modules/dayjs/esm/locale/fr-ca.js +38 -0
- package/cesium/modules/dayjs/esm/locale/fr-ch.js +39 -0
- package/cesium/modules/dayjs/esm/locale/fr.js +41 -0
- package/cesium/modules/dayjs/esm/locale/fy.js +39 -0
- package/cesium/modules/dayjs/esm/locale/ga.js +39 -0
- package/cesium/modules/dayjs/esm/locale/gd.js +39 -0
- package/cesium/modules/dayjs/esm/locale/gl.js +39 -0
- package/cesium/modules/dayjs/esm/locale/gom-latn.js +25 -0
- package/cesium/modules/dayjs/esm/locale/gu.js +38 -0
- package/cesium/modules/dayjs/esm/locale/he.js +78 -0
- package/cesium/modules/dayjs/esm/locale/hi.js +38 -0
- package/cesium/modules/dayjs/esm/locale/hr.js +53 -0
- package/cesium/modules/dayjs/esm/locale/ht.js +38 -0
- package/cesium/modules/dayjs/esm/locale/hu.js +61 -0
- package/cesium/modules/dayjs/esm/locale/hy-am.js +39 -0
- package/cesium/modules/dayjs/esm/locale/id.js +39 -0
- package/cesium/modules/dayjs/esm/locale/index.d.ts +11 -0
- package/cesium/modules/dayjs/esm/locale/is.js +68 -0
- package/cesium/modules/dayjs/esm/locale/it-ch.js +39 -0
- package/cesium/modules/dayjs/esm/locale/it.js +39 -0
- package/cesium/modules/dayjs/esm/locale/ja.js +45 -0
- package/cesium/modules/dayjs/esm/locale/jv.js +39 -0
- package/cesium/modules/dayjs/esm/locale/ka.js +39 -0
- package/cesium/modules/dayjs/esm/locale/kk.js +39 -0
- package/cesium/modules/dayjs/esm/locale/km.js +39 -0
- package/cesium/modules/dayjs/esm/locale/kn.js +38 -0
- package/cesium/modules/dayjs/esm/locale/ko.js +45 -0
- package/cesium/modules/dayjs/esm/locale/ku.js +77 -0
- package/cesium/modules/dayjs/esm/locale/ky.js +39 -0
- package/cesium/modules/dayjs/esm/locale/lb.js +24 -0
- package/cesium/modules/dayjs/esm/locale/lo.js +38 -0
- package/cesium/modules/dayjs/esm/locale/lt.js +70 -0
- package/cesium/modules/dayjs/esm/locale/lv.js +39 -0
- package/cesium/modules/dayjs/esm/locale/me.js +24 -0
- package/cesium/modules/dayjs/esm/locale/mi.js +39 -0
- package/cesium/modules/dayjs/esm/locale/mk.js +39 -0
- package/cesium/modules/dayjs/esm/locale/ml.js +38 -0
- package/cesium/modules/dayjs/esm/locale/mn.js +38 -0
- package/cesium/modules/dayjs/esm/locale/mr.js +23 -0
- package/cesium/modules/dayjs/esm/locale/ms-my.js +39 -0
- package/cesium/modules/dayjs/esm/locale/ms.js +39 -0
- package/cesium/modules/dayjs/esm/locale/mt.js +39 -0
- package/cesium/modules/dayjs/esm/locale/my.js +39 -0
- package/cesium/modules/dayjs/esm/locale/nb.js +40 -0
- package/cesium/modules/dayjs/esm/locale/ne.js +40 -0
- package/cesium/modules/dayjs/esm/locale/nl-be.js +39 -0
- package/cesium/modules/dayjs/esm/locale/nl.js +40 -0
- package/cesium/modules/dayjs/esm/locale/nn.js +39 -0
- package/cesium/modules/dayjs/esm/locale/oc-lnc.js +39 -0
- package/cesium/modules/dayjs/esm/locale/pa-in.js +38 -0
- package/cesium/modules/dayjs/esm/locale/pl.js +87 -0
- package/cesium/modules/dayjs/esm/locale/pt-br.js +38 -0
- package/cesium/modules/dayjs/esm/locale/pt.js +40 -0
- package/cesium/modules/dayjs/esm/locale/rn.js +39 -0
- package/cesium/modules/dayjs/esm/locale/ro.js +39 -0
- package/cesium/modules/dayjs/esm/locale/ru.js +99 -0
- package/cesium/modules/dayjs/esm/locale/rw.js +35 -0
- package/cesium/modules/dayjs/esm/locale/sd.js +39 -0
- package/cesium/modules/dayjs/esm/locale/se.js +39 -0
- package/cesium/modules/dayjs/esm/locale/si.js +38 -0
- package/cesium/modules/dayjs/esm/locale/sk.js +121 -0
- package/cesium/modules/dayjs/esm/locale/sl.js +141 -0
- package/cesium/modules/dayjs/esm/locale/sq.js +39 -0
- package/cesium/modules/dayjs/esm/locale/sr-cyrl.js +74 -0
- package/cesium/modules/dayjs/esm/locale/sr.js +74 -0
- package/cesium/modules/dayjs/esm/locale/ss.js +39 -0
- package/cesium/modules/dayjs/esm/locale/sv-fi.js +46 -0
- package/cesium/modules/dayjs/esm/locale/sv.js +44 -0
- package/cesium/modules/dayjs/esm/locale/sw.js +39 -0
- package/cesium/modules/dayjs/esm/locale/ta.js +38 -0
- package/cesium/modules/dayjs/esm/locale/te.js +38 -0
- package/cesium/modules/dayjs/esm/locale/tet.js +39 -0
- package/cesium/modules/dayjs/esm/locale/tg.js +39 -0
- package/cesium/modules/dayjs/esm/locale/th.js +38 -0
- package/cesium/modules/dayjs/esm/locale/tk.js +39 -0
- package/cesium/modules/dayjs/esm/locale/tl-ph.js +39 -0
- package/cesium/modules/dayjs/esm/locale/tlh.js +24 -0
- package/cesium/modules/dayjs/esm/locale/tr.js +39 -0
- package/cesium/modules/dayjs/esm/locale/types.d.ts +33 -0
- package/cesium/modules/dayjs/esm/locale/tzl.js +24 -0
- package/cesium/modules/dayjs/esm/locale/tzm-latn.js +39 -0
- package/cesium/modules/dayjs/esm/locale/tzm.js +39 -0
- package/cesium/modules/dayjs/esm/locale/ug-cn.js +39 -0
- package/cesium/modules/dayjs/esm/locale/uk.js +77 -0
- package/cesium/modules/dayjs/esm/locale/ur.js +39 -0
- package/cesium/modules/dayjs/esm/locale/uz-latn.js +39 -0
- package/cesium/modules/dayjs/esm/locale/uz.js +39 -0
- package/cesium/modules/dayjs/esm/locale/vi.js +43 -0
- package/cesium/modules/dayjs/esm/locale/x-pseudo.js +39 -0
- package/cesium/modules/dayjs/esm/locale/yo.js +39 -0
- package/cesium/modules/dayjs/esm/locale/zh-cn.js +67 -0
- package/cesium/modules/dayjs/esm/locale/zh-hk.js +65 -0
- package/cesium/modules/dayjs/esm/locale/zh-tw.js +65 -0
- package/cesium/modules/dayjs/esm/locale/zh.js +67 -0
- package/cesium/modules/dayjs/esm/plugin/advancedFormat/index.d.ts +4 -0
- package/cesium/modules/dayjs/esm/plugin/advancedFormat/index.js +66 -0
- package/cesium/modules/dayjs/esm/plugin/arraySupport/index.d.ts +10 -0
- package/cesium/modules/dayjs/esm/plugin/arraySupport/index.js +33 -0
- package/cesium/modules/dayjs/esm/plugin/badMutable/index.d.ts +4 -0
- package/cesium/modules/dayjs/esm/plugin/badMutable/index.js +61 -0
- package/cesium/modules/dayjs/esm/plugin/bigIntSupport/index.d.ts +11 -0
- package/cesium/modules/dayjs/esm/plugin/bigIntSupport/index.js +32 -0
- package/cesium/modules/dayjs/esm/plugin/buddhistEra/index.d.ts +4 -0
- package/cesium/modules/dayjs/esm/plugin/buddhistEra/index.js +21 -0
- package/cesium/modules/dayjs/esm/plugin/calendar/index.d.ts +10 -0
- package/cesium/modules/dayjs/esm/plugin/calendar/index.js +32 -0
- package/cesium/modules/dayjs/esm/plugin/customParseFormat/index.d.ts +8 -0
- package/cesium/modules/dayjs/esm/plugin/customParseFormat/index.js +333 -0
- package/cesium/modules/dayjs/esm/plugin/dayOfYear/index.d.ts +11 -0
- package/cesium/modules/dayjs/esm/plugin/dayOfYear/index.js +9 -0
- package/cesium/modules/dayjs/esm/plugin/devHelper/index.d.ts +4 -0
- package/cesium/modules/dayjs/esm/plugin/devHelper/index.js +38 -0
- package/cesium/modules/dayjs/esm/plugin/duration/index.d.ts +88 -0
- package/cesium/modules/dayjs/esm/plugin/duration/index.js +356 -0
- package/cesium/modules/dayjs/esm/plugin/isBetween/index.d.ts +10 -0
- package/cesium/modules/dayjs/esm/plugin/isBetween/index.js +10 -0
- package/cesium/modules/dayjs/esm/plugin/isLeapYear/index.d.ts +10 -0
- package/cesium/modules/dayjs/esm/plugin/isLeapYear/index.js +7 -0
- package/cesium/modules/dayjs/esm/plugin/isMoment/index.d.ts +10 -0
- package/cesium/modules/dayjs/esm/plugin/isMoment/index.js +5 -0
- package/cesium/modules/dayjs/esm/plugin/isSameOrAfter/index.d.ts +10 -0
- package/cesium/modules/dayjs/esm/plugin/isSameOrAfter/index.js +5 -0
- package/cesium/modules/dayjs/esm/plugin/isSameOrBefore/index.d.ts +10 -0
- package/cesium/modules/dayjs/esm/plugin/isSameOrBefore/index.js +5 -0
- package/cesium/modules/dayjs/esm/plugin/isToday/index.d.ts +10 -0
- package/cesium/modules/dayjs/esm/plugin/isToday/index.js +9 -0
- package/cesium/modules/dayjs/esm/plugin/isTomorrow/index.d.ts +10 -0
- package/cesium/modules/dayjs/esm/plugin/isTomorrow/index.js +9 -0
- package/cesium/modules/dayjs/esm/plugin/isYesterday/index.d.ts +10 -0
- package/cesium/modules/dayjs/esm/plugin/isYesterday/index.js +9 -0
- package/cesium/modules/dayjs/esm/plugin/isoWeek/index.d.ts +27 -0
- package/cesium/modules/dayjs/esm/plugin/isoWeek/index.js +57 -0
- package/cesium/modules/dayjs/esm/plugin/isoWeeksInYear/index.d.ts +10 -0
- package/cesium/modules/dayjs/esm/plugin/isoWeeksInYear/index.js +15 -0
- package/cesium/modules/dayjs/esm/plugin/localeData/index.d.ts +44 -0
- package/cesium/modules/dayjs/esm/plugin/localeData/index.js +114 -0
- package/cesium/modules/dayjs/esm/plugin/localizedFormat/index.d.ts +4 -0
- package/cesium/modules/dayjs/esm/plugin/localizedFormat/index.js +20 -0
- package/cesium/modules/dayjs/esm/plugin/localizedFormat/utils.js +20 -0
- package/cesium/modules/dayjs/esm/plugin/minMax/index.d.ts +22 -0
- package/cesium/modules/dayjs/esm/plugin/minMax/index.js +39 -0
- package/cesium/modules/dayjs/esm/plugin/negativeYear/index.d.ts +4 -0
- package/cesium/modules/dayjs/esm/plugin/negativeYear/index.js +36 -0
- package/cesium/modules/dayjs/esm/plugin/objectSupport/index.d.ts +48 -0
- package/cesium/modules/dayjs/esm/plugin/objectSupport/index.js +97 -0
- package/cesium/modules/dayjs/esm/plugin/pluralGetSet/index.d.ts +44 -0
- package/cesium/modules/dayjs/esm/plugin/pluralGetSet/index.js +7 -0
- package/cesium/modules/dayjs/esm/plugin/preParsePostFormat/index.d.ts +4 -0
- package/cesium/modules/dayjs/esm/plugin/preParsePostFormat/index.js +40 -0
- package/cesium/modules/dayjs/esm/plugin/quarterOfYear/index.d.ts +26 -0
- package/cesium/modules/dayjs/esm/plugin/quarterOfYear/index.js +41 -0
- package/cesium/modules/dayjs/esm/plugin/relativeTime/index.d.ts +24 -0
- package/cesium/modules/dayjs/esm/plugin/relativeTime/index.js +130 -0
- package/cesium/modules/dayjs/esm/plugin/timezone/index.d.ts +20 -0
- package/cesium/modules/dayjs/esm/plugin/timezone/index.js +198 -0
- package/cesium/modules/dayjs/esm/plugin/toArray/index.d.ts +10 -0
- package/cesium/modules/dayjs/esm/plugin/toArray/index.js +7 -0
- package/cesium/modules/dayjs/esm/plugin/toObject/index.d.ts +20 -0
- package/cesium/modules/dayjs/esm/plugin/toObject/index.js +15 -0
- package/cesium/modules/dayjs/esm/plugin/updateLocale/index.d.ts +8 -0
- package/cesium/modules/dayjs/esm/plugin/updateLocale/index.js +12 -0
- package/cesium/modules/dayjs/esm/plugin/utc/index.d.ts +19 -0
- package/cesium/modules/dayjs/esm/plugin/utc/index.js +188 -0
- package/cesium/modules/dayjs/esm/plugin/weekOfYear/index.d.ts +12 -0
- package/cesium/modules/dayjs/esm/plugin/weekOfYear/index.js +44 -0
- package/cesium/modules/dayjs/esm/plugin/weekYear/index.d.ts +10 -0
- package/cesium/modules/dayjs/esm/plugin/weekYear/index.js +19 -0
- package/cesium/modules/dayjs/esm/plugin/weekday/index.d.ts +12 -0
- package/cesium/modules/dayjs/esm/plugin/weekday/index.js +15 -0
- package/cesium/modules/dayjs/esm/utils.js +58 -0
- package/cesium/modules/dayjs/index.d.ts +429 -0
- package/cesium/modules/dayjs/locale/af.js +1 -0
- package/cesium/modules/dayjs/locale/am.js +1 -0
- package/cesium/modules/dayjs/locale/ar-dz.js +1 -0
- package/cesium/modules/dayjs/locale/ar-iq.js +1 -0
- package/cesium/modules/dayjs/locale/ar-kw.js +1 -0
- package/cesium/modules/dayjs/locale/ar-ly.js +1 -0
- package/cesium/modules/dayjs/locale/ar-ma.js +1 -0
- package/cesium/modules/dayjs/locale/ar-sa.js +1 -0
- package/cesium/modules/dayjs/locale/ar-tn.js +1 -0
- package/cesium/modules/dayjs/locale/ar.js +1 -0
- package/cesium/modules/dayjs/locale/az.js +1 -0
- package/cesium/modules/dayjs/locale/be.js +1 -0
- package/cesium/modules/dayjs/locale/bg.js +1 -0
- package/cesium/modules/dayjs/locale/bi.js +1 -0
- package/cesium/modules/dayjs/locale/bm.js +1 -0
- package/cesium/modules/dayjs/locale/bn-bd.js +1 -0
- package/cesium/modules/dayjs/locale/bn.js +1 -0
- package/cesium/modules/dayjs/locale/bo.js +1 -0
- package/cesium/modules/dayjs/locale/br.js +1 -0
- package/cesium/modules/dayjs/locale/bs.js +1 -0
- package/cesium/modules/dayjs/locale/ca.js +1 -0
- package/cesium/modules/dayjs/locale/cs.js +1 -0
- package/cesium/modules/dayjs/locale/cv.js +1 -0
- package/cesium/modules/dayjs/locale/cy.js +1 -0
- package/cesium/modules/dayjs/locale/da.js +1 -0
- package/cesium/modules/dayjs/locale/de-at.js +1 -0
- package/cesium/modules/dayjs/locale/de-ch.js +1 -0
- package/cesium/modules/dayjs/locale/de.js +1 -0
- package/cesium/modules/dayjs/locale/dv.js +1 -0
- package/cesium/modules/dayjs/locale/el.js +1 -0
- package/cesium/modules/dayjs/locale/en-au.js +1 -0
- package/cesium/modules/dayjs/locale/en-ca.js +1 -0
- package/cesium/modules/dayjs/locale/en-gb.js +1 -0
- package/cesium/modules/dayjs/locale/en-ie.js +1 -0
- package/cesium/modules/dayjs/locale/en-il.js +1 -0
- package/cesium/modules/dayjs/locale/en-in.js +1 -0
- package/cesium/modules/dayjs/locale/en-nz.js +1 -0
- package/cesium/modules/dayjs/locale/en-sg.js +1 -0
- package/cesium/modules/dayjs/locale/en-tt.js +1 -0
- package/cesium/modules/dayjs/locale/en.js +1 -0
- package/cesium/modules/dayjs/locale/eo.js +1 -0
- package/cesium/modules/dayjs/locale/es-do.js +1 -0
- package/cesium/modules/dayjs/locale/es-mx.js +1 -0
- package/cesium/modules/dayjs/locale/es-pr.js +1 -0
- package/cesium/modules/dayjs/locale/es-us.js +1 -0
- package/cesium/modules/dayjs/locale/es.js +1 -0
- package/cesium/modules/dayjs/locale/et.js +1 -0
- package/cesium/modules/dayjs/locale/eu.js +1 -0
- package/cesium/modules/dayjs/locale/fa.js +1 -0
- package/cesium/modules/dayjs/locale/fi.js +1 -0
- package/cesium/modules/dayjs/locale/fo.js +1 -0
- package/cesium/modules/dayjs/locale/fr-ca.js +1 -0
- package/cesium/modules/dayjs/locale/fr-ch.js +1 -0
- package/cesium/modules/dayjs/locale/fr.js +1 -0
- package/cesium/modules/dayjs/locale/fy.js +1 -0
- package/cesium/modules/dayjs/locale/ga.js +1 -0
- package/cesium/modules/dayjs/locale/gd.js +1 -0
- package/cesium/modules/dayjs/locale/gl.js +1 -0
- package/cesium/modules/dayjs/locale/gom-latn.js +1 -0
- package/cesium/modules/dayjs/locale/gu.js +1 -0
- package/cesium/modules/dayjs/locale/he.js +1 -0
- package/cesium/modules/dayjs/locale/hi.js +1 -0
- package/cesium/modules/dayjs/locale/hr.js +1 -0
- package/cesium/modules/dayjs/locale/ht.js +1 -0
- package/cesium/modules/dayjs/locale/hu.js +1 -0
- package/cesium/modules/dayjs/locale/hy-am.js +1 -0
- package/cesium/modules/dayjs/locale/id.js +1 -0
- package/cesium/modules/dayjs/locale/index.d.ts +11 -0
- package/cesium/modules/dayjs/locale/is.js +1 -0
- package/cesium/modules/dayjs/locale/it-ch.js +1 -0
- package/cesium/modules/dayjs/locale/it.js +1 -0
- package/cesium/modules/dayjs/locale/ja.js +1 -0
- package/cesium/modules/dayjs/locale/jv.js +1 -0
- package/cesium/modules/dayjs/locale/ka.js +1 -0
- package/cesium/modules/dayjs/locale/kk.js +1 -0
- package/cesium/modules/dayjs/locale/km.js +1 -0
- package/cesium/modules/dayjs/locale/kn.js +1 -0
- package/cesium/modules/dayjs/locale/ko.js +1 -0
- package/cesium/modules/dayjs/locale/ku.js +1 -0
- package/cesium/modules/dayjs/locale/ky.js +1 -0
- package/cesium/modules/dayjs/locale/lb.js +1 -0
- package/cesium/modules/dayjs/locale/lo.js +1 -0
- package/cesium/modules/dayjs/locale/lt.js +1 -0
- package/cesium/modules/dayjs/locale/lv.js +1 -0
- package/cesium/modules/dayjs/locale/me.js +1 -0
- package/cesium/modules/dayjs/locale/mi.js +1 -0
- package/cesium/modules/dayjs/locale/mk.js +1 -0
- package/cesium/modules/dayjs/locale/ml.js +1 -0
- package/cesium/modules/dayjs/locale/mn.js +1 -0
- package/cesium/modules/dayjs/locale/mr.js +1 -0
- package/cesium/modules/dayjs/locale/ms-my.js +1 -0
- package/cesium/modules/dayjs/locale/ms.js +1 -0
- package/cesium/modules/dayjs/locale/mt.js +1 -0
- package/cesium/modules/dayjs/locale/my.js +1 -0
- package/cesium/modules/dayjs/locale/nb.js +1 -0
- package/cesium/modules/dayjs/locale/ne.js +1 -0
- package/cesium/modules/dayjs/locale/nl-be.js +1 -0
- package/cesium/modules/dayjs/locale/nl.js +1 -0
- package/cesium/modules/dayjs/locale/nn.js +1 -0
- package/cesium/modules/dayjs/locale/oc-lnc.js +1 -0
- package/cesium/modules/dayjs/locale/pa-in.js +1 -0
- package/cesium/modules/dayjs/locale/pl.js +1 -0
- package/cesium/modules/dayjs/locale/pt-br.js +1 -0
- package/cesium/modules/dayjs/locale/pt.js +1 -0
- package/cesium/modules/dayjs/locale/rn.js +1 -0
- package/cesium/modules/dayjs/locale/ro.js +1 -0
- package/cesium/modules/dayjs/locale/ru.js +1 -0
- package/cesium/modules/dayjs/locale/rw.js +1 -0
- package/cesium/modules/dayjs/locale/sd.js +1 -0
- package/cesium/modules/dayjs/locale/se.js +1 -0
- package/cesium/modules/dayjs/locale/si.js +1 -0
- package/cesium/modules/dayjs/locale/sk.js +1 -0
- package/cesium/modules/dayjs/locale/sl.js +1 -0
- package/cesium/modules/dayjs/locale/sq.js +1 -0
- package/cesium/modules/dayjs/locale/sr-cyrl.js +1 -0
- package/cesium/modules/dayjs/locale/sr.js +1 -0
- package/cesium/modules/dayjs/locale/ss.js +1 -0
- package/cesium/modules/dayjs/locale/sv-fi.js +1 -0
- package/cesium/modules/dayjs/locale/sv.js +1 -0
- package/cesium/modules/dayjs/locale/sw.js +1 -0
- package/cesium/modules/dayjs/locale/ta.js +1 -0
- package/cesium/modules/dayjs/locale/te.js +1 -0
- package/cesium/modules/dayjs/locale/tet.js +1 -0
- package/cesium/modules/dayjs/locale/tg.js +1 -0
- package/cesium/modules/dayjs/locale/th.js +1 -0
- package/cesium/modules/dayjs/locale/tk.js +1 -0
- package/cesium/modules/dayjs/locale/tl-ph.js +1 -0
- package/cesium/modules/dayjs/locale/tlh.js +1 -0
- package/cesium/modules/dayjs/locale/tr.js +1 -0
- package/cesium/modules/dayjs/locale/types.d.ts +33 -0
- package/cesium/modules/dayjs/locale/tzl.js +1 -0
- package/cesium/modules/dayjs/locale/tzm-latn.js +1 -0
- package/cesium/modules/dayjs/locale/tzm.js +1 -0
- package/cesium/modules/dayjs/locale/ug-cn.js +1 -0
- package/cesium/modules/dayjs/locale/uk.js +1 -0
- package/cesium/modules/dayjs/locale/ur.js +1 -0
- package/cesium/modules/dayjs/locale/uz-latn.js +1 -0
- package/cesium/modules/dayjs/locale/uz.js +1 -0
- package/cesium/modules/dayjs/locale/vi.js +1 -0
- package/cesium/modules/dayjs/locale/x-pseudo.js +1 -0
- package/cesium/modules/dayjs/locale/yo.js +1 -0
- package/cesium/modules/dayjs/locale/zh-cn.js +1 -0
- package/cesium/modules/dayjs/locale/zh-hk.js +1 -0
- package/cesium/modules/dayjs/locale/zh-tw.js +1 -0
- package/cesium/modules/dayjs/locale/zh.js +1 -0
- package/cesium/modules/dayjs/locale.json +1 -0
- package/cesium/modules/dayjs/package.json +85 -0
- package/cesium/modules/dayjs/plugin/advancedFormat.d.ts +4 -0
- package/cesium/modules/dayjs/plugin/advancedFormat.js +1 -0
- package/cesium/modules/dayjs/plugin/arraySupport.d.ts +10 -0
- package/cesium/modules/dayjs/plugin/arraySupport.js +1 -0
- package/cesium/modules/dayjs/plugin/badMutable.d.ts +4 -0
- package/cesium/modules/dayjs/plugin/badMutable.js +1 -0
- package/cesium/modules/dayjs/plugin/bigIntSupport.d.ts +11 -0
- package/cesium/modules/dayjs/plugin/bigIntSupport.js +1 -0
- package/cesium/modules/dayjs/plugin/buddhistEra.d.ts +4 -0
- package/cesium/modules/dayjs/plugin/buddhistEra.js +1 -0
- package/cesium/modules/dayjs/plugin/calendar.d.ts +10 -0
- package/cesium/modules/dayjs/plugin/calendar.js +1 -0
- package/cesium/modules/dayjs/plugin/customParseFormat.d.ts +8 -0
- package/cesium/modules/dayjs/plugin/customParseFormat.js +1 -0
- package/cesium/modules/dayjs/plugin/dayOfYear.d.ts +11 -0
- package/cesium/modules/dayjs/plugin/dayOfYear.js +1 -0
- package/cesium/modules/dayjs/plugin/devHelper.d.ts +4 -0
- package/cesium/modules/dayjs/plugin/devHelper.js +1 -0
- package/cesium/modules/dayjs/plugin/duration.d.ts +88 -0
- package/cesium/modules/dayjs/plugin/duration.js +1 -0
- package/cesium/modules/dayjs/plugin/isBetween.d.ts +10 -0
- package/cesium/modules/dayjs/plugin/isBetween.js +1 -0
- package/cesium/modules/dayjs/plugin/isLeapYear.d.ts +10 -0
- package/cesium/modules/dayjs/plugin/isLeapYear.js +1 -0
- package/cesium/modules/dayjs/plugin/isMoment.d.ts +10 -0
- package/cesium/modules/dayjs/plugin/isMoment.js +1 -0
- package/cesium/modules/dayjs/plugin/isSameOrAfter.d.ts +10 -0
- package/cesium/modules/dayjs/plugin/isSameOrAfter.js +1 -0
- package/cesium/modules/dayjs/plugin/isSameOrBefore.d.ts +10 -0
- package/cesium/modules/dayjs/plugin/isSameOrBefore.js +1 -0
- package/cesium/modules/dayjs/plugin/isToday.d.ts +10 -0
- package/cesium/modules/dayjs/plugin/isToday.js +1 -0
- package/cesium/modules/dayjs/plugin/isTomorrow.d.ts +10 -0
- package/cesium/modules/dayjs/plugin/isTomorrow.js +1 -0
- package/cesium/modules/dayjs/plugin/isYesterday.d.ts +10 -0
- package/cesium/modules/dayjs/plugin/isYesterday.js +1 -0
- package/cesium/modules/dayjs/plugin/isoWeek.d.ts +27 -0
- package/cesium/modules/dayjs/plugin/isoWeek.js +1 -0
- package/cesium/modules/dayjs/plugin/isoWeeksInYear.d.ts +10 -0
- package/cesium/modules/dayjs/plugin/isoWeeksInYear.js +1 -0
- package/cesium/modules/dayjs/plugin/localeData.d.ts +44 -0
- package/cesium/modules/dayjs/plugin/localeData.js +1 -0
- package/cesium/modules/dayjs/plugin/localizedFormat.d.ts +4 -0
- package/cesium/modules/dayjs/plugin/localizedFormat.js +1 -0
- package/cesium/modules/dayjs/plugin/minMax.d.ts +22 -0
- package/cesium/modules/dayjs/plugin/minMax.js +1 -0
- package/cesium/modules/dayjs/plugin/negativeYear.d.ts +4 -0
- package/cesium/modules/dayjs/plugin/negativeYear.js +1 -0
- package/cesium/modules/dayjs/plugin/objectSupport.d.ts +48 -0
- package/cesium/modules/dayjs/plugin/objectSupport.js +1 -0
- package/cesium/modules/dayjs/plugin/pluralGetSet.d.ts +44 -0
- package/cesium/modules/dayjs/plugin/pluralGetSet.js +1 -0
- package/cesium/modules/dayjs/plugin/preParsePostFormat.d.ts +4 -0
- package/cesium/modules/dayjs/plugin/preParsePostFormat.js +1 -0
- package/cesium/modules/dayjs/plugin/quarterOfYear.d.ts +26 -0
- package/cesium/modules/dayjs/plugin/quarterOfYear.js +1 -0
- package/cesium/modules/dayjs/plugin/relativeTime.d.ts +24 -0
- package/cesium/modules/dayjs/plugin/relativeTime.js +1 -0
- package/cesium/modules/dayjs/plugin/timezone.d.ts +20 -0
- package/cesium/modules/dayjs/plugin/timezone.js +1 -0
- package/cesium/modules/dayjs/plugin/toArray.d.ts +10 -0
- package/cesium/modules/dayjs/plugin/toArray.js +1 -0
- package/cesium/modules/dayjs/plugin/toObject.d.ts +20 -0
- package/cesium/modules/dayjs/plugin/toObject.js +1 -0
- package/cesium/modules/dayjs/plugin/updateLocale.d.ts +8 -0
- package/cesium/modules/dayjs/plugin/updateLocale.js +1 -0
- package/cesium/modules/dayjs/plugin/utc.d.ts +19 -0
- package/cesium/modules/dayjs/plugin/utc.js +1 -0
- package/cesium/modules/dayjs/plugin/weekOfYear.d.ts +12 -0
- package/cesium/modules/dayjs/plugin/weekOfYear.js +1 -0
- package/cesium/modules/dayjs/plugin/weekYear.d.ts +10 -0
- package/cesium/modules/dayjs/plugin/weekYear.js +1 -0
- package/cesium/modules/dayjs/plugin/weekday.d.ts +12 -0
- package/cesium/modules/dayjs/plugin/weekday.js +1 -0
- package/package.json +1 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&define.amd?define(t):(e="undefined"!=typeof globalThis?globalThis:e||self).dayjs_plugin_customParseFormat=t()}(this,(function(){"use strict";var e={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},t=/(\[[^[]*\])|([-_:/.,()\s]+)|(A|a|Q|YYYY|YY?|ww?|MM?M?M?|Do|DD?|hh?|HH?|mm?|ss?|S{1,3}|z|ZZ?)/g,n=/\d/,r=/\d\d/,i=/\d\d?/,o=/\d*[^-_:/,()\s\d]+/,s={},a=function(e){return(e=+e)+(e>68?1900:2e3)};var f=function(e){return function(t){this[e]=+t}},h=[/[+-]\d\d:?(\d\d)?|Z/,function(e){(this.zone||(this.zone={})).offset=function(e){if(!e)return 0;if("Z"===e)return 0;var t=e.match(/([+-]|\d\d)/g),n=60*t[1]+(+t[2]||0);return 0===n?0:"+"===t[0]?-n:n}(e)}],u=function(e){var t=s[e];return t&&(t.indexOf?t:t.s.concat(t.f))},d=function(e,t){var n,r=s.meridiem;if(r){for(var i=1;i<=24;i+=1)if(e.indexOf(r(i,0,t))>-1){n=i>12;break}}else n=e===(t?"pm":"PM");return n},c={A:[o,function(e){this.afternoon=d(e,!1)}],a:[o,function(e){this.afternoon=d(e,!0)}],Q:[n,function(e){this.month=3*(e-1)+1}],S:[n,function(e){this.milliseconds=100*+e}],SS:[r,function(e){this.milliseconds=10*+e}],SSS:[/\d{3}/,function(e){this.milliseconds=+e}],s:[i,f("seconds")],ss:[i,f("seconds")],m:[i,f("minutes")],mm:[i,f("minutes")],H:[i,f("hours")],h:[i,f("hours")],HH:[i,f("hours")],hh:[i,f("hours")],D:[i,f("day")],DD:[r,f("day")],Do:[o,function(e){var t=s.ordinal,n=e.match(/\d+/);if(this.day=n[0],t)for(var r=1;r<=31;r+=1)t(r).replace(/\[|\]/g,"")===e&&(this.day=r)}],w:[i,f("week")],ww:[r,f("week")],M:[i,f("month")],MM:[r,f("month")],MMM:[o,function(e){var t=u("months"),n=(u("monthsShort")||t.map((function(e){return e.slice(0,3)}))).indexOf(e)+1;if(n<1)throw new Error;this.month=n%12||n}],MMMM:[o,function(e){var t=u("months").indexOf(e)+1;if(t<1)throw new Error;this.month=t%12||t}],Y:[/[+-]?\d+/,f("year")],YY:[r,function(e){this.year=a(e)}],YYYY:[/\d{4}/,f("year")],Z:h,ZZ:h};function l(n){var r,i;r=n,i=s&&s.formats;for(var o=(n=r.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,(function(t,n,r){var o=r&&r.toUpperCase();return n||i[r]||e[r]||i[o].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,(function(e,t,n){return t||n.slice(1)}))}))).match(t),a=o.length,f=0;f<a;f+=1){var h=o[f],u=c[h],d=u&&u[0],l=u&&u[1];o[f]=l?{regex:d,parser:l}:h.replace(/^\[|\]$/g,"")}return function(e){for(var t={},n=0,r=0;n<a;n+=1){var i=o[n];if("string"==typeof i)r+=i.length;else{var s=i.regex,f=i.parser,h=e.slice(r),u=s.exec(h)[0];f.call(t,u),e=e.replace(u,"")}}return function(e){var t=e.afternoon;if(void 0!==t){var n=e.hours;t?n<12&&(e.hours+=12):12===n&&(e.hours=0),delete e.afternoon}}(t),t}}return function(e,t,n){n.p.customParseFormat=!0,e&&e.parseTwoDigitYear&&(a=e.parseTwoDigitYear);var r=t.prototype,i=r.parse;r.parse=function(e){var t=e.date,r=e.utc,o=e.args;this.$u=r;var a=o[1];if("string"==typeof a){var f=!0===o[2],h=!0===o[3],u=f||h,d=o[2];h&&(d=o[2]),s=this.$locale(),!f&&d&&(s=n.Ls[d]),this.$d=function(e,t,n,r){try{if(["x","X"].indexOf(t)>-1)return new Date(("X"===t?1e3:1)*e);var i=l(t)(e),o=i.year,s=i.month,a=i.day,f=i.hours,h=i.minutes,u=i.seconds,d=i.milliseconds,c=i.zone,m=i.week,M=new Date,Y=a||(o||s?1:M.getDate()),p=o||M.getFullYear(),v=0;o&&!s||(v=s>0?s-1:M.getMonth());var D,w=f||0,g=h||0,y=u||0,L=d||0;return c?new Date(Date.UTC(p,v,Y,w,g,y,L+60*c.offset*1e3)):n?new Date(Date.UTC(p,v,Y,w,g,y,L)):(D=new Date(p,v,Y,w,g,y,L),m&&(D=r(D).week(m).toDate()),D)}catch(e){return new Date("")}}(t,a,r,n),this.init(),d&&!0!==d&&(this.$L=this.locale(d).$L),u&&t!=this.format(a)&&(this.$d=new Date("")),s={}}else if(a instanceof Array)for(var c=a.length,m=1;m<=c;m+=1){o[1]=a[m-1];var M=n.apply(this,o);if(M.isValid()){this.$d=M.$d,this.$L=M.$L,this.init();break}m===c&&(this.$d=new Date(""))}else i.call(this,e)}}}));
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&define.amd?define(t):(e="undefined"!=typeof globalThis?globalThis:e||self).dayjs_plugin_dayOfYear=t()}(this,(function(){"use strict";return function(e,t,n){t.prototype.dayOfYear=function(e){var t=Math.round((n(this).startOf("day")-n(this).startOf("year"))/864e5)+1;return null==e?t:this.add(e-t,"day")}}}));
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&define.amd?define(t):(e="undefined"!=typeof globalThis?globalThis:e||self).dayjs_plugin_devHelper=t()}(this,(function(){"use strict";return function(e,t,o){if(!process||"production"!==process.env.NODE_ENV){var s=t.prototype,n=s.parse;s.parse=function(e){var t=e.date;return"string"==typeof t&&13===t.length&&console.warn("To parse a Unix timestamp like "+t+", you should pass it as a Number. https://day.js.org/docs/en/parse/unix-timestamp-milliseconds"),"number"==typeof t&&4===String(t).length&&console.warn("Guessing you may want to parse the Year "+t+", you should pass it as a String "+t+", not a Number. Otherwise, "+t+" will be treated as a Unix timestamp"),e.args.length>=2&&!o.p.customParseFormat&&console.warn("To parse a date-time string like "+t+" using the given format, you should enable customParseFormat plugin first. https://day.js.org/docs/en/parse/string-format"),n.bind(this)(e)};var a=o.locale;o.locale=function(e,t,s){return void 0===t&&"string"==typeof e&&(o.Ls[e]||console.warn("Guessing you may want to use locale "+e+", you have to load it before using it. https://day.js.org/docs/en/i18n/loading-into-nodejs")),a(e,t,s)}}}}));
|
|
@@ -0,0 +1,88 @@
|
|
|
1
|
+
import { PluginFunc } from 'dayjs'
|
|
2
|
+
import { OpUnitType, UnitTypeLongPlural } from 'dayjs';
|
|
3
|
+
|
|
4
|
+
declare const plugin: PluginFunc
|
|
5
|
+
export as namespace plugin;
|
|
6
|
+
export = plugin
|
|
7
|
+
|
|
8
|
+
declare namespace plugin {
|
|
9
|
+
/**
|
|
10
|
+
* @deprecated Please use more strict types
|
|
11
|
+
*/
|
|
12
|
+
type DurationInputType = string | number | object
|
|
13
|
+
/**
|
|
14
|
+
* @deprecated Please use more strict types
|
|
15
|
+
*/
|
|
16
|
+
type DurationAddType = number | object | Duration
|
|
17
|
+
|
|
18
|
+
type DurationUnitsObjectType = Partial<{
|
|
19
|
+
[unit in Exclude<UnitTypeLongPlural, "dates"> | "weeks"]: number
|
|
20
|
+
}>;
|
|
21
|
+
type DurationUnitType = Exclude<OpUnitType, "date" | "dates">
|
|
22
|
+
type CreateDurationType =
|
|
23
|
+
((units: DurationUnitsObjectType) => Duration)
|
|
24
|
+
& ((time: number, unit?: DurationUnitType) => Duration)
|
|
25
|
+
& ((ISO_8601: string) => Duration)
|
|
26
|
+
type AddDurationType = CreateDurationType & ((duration: Duration) => Duration)
|
|
27
|
+
|
|
28
|
+
interface Duration {
|
|
29
|
+
new (input: string | number | object, unit?: string, locale?: string): Duration
|
|
30
|
+
|
|
31
|
+
clone(): Duration
|
|
32
|
+
|
|
33
|
+
humanize(withSuffix?: boolean): string
|
|
34
|
+
|
|
35
|
+
milliseconds(): number
|
|
36
|
+
asMilliseconds(): number
|
|
37
|
+
|
|
38
|
+
seconds(): number
|
|
39
|
+
asSeconds(): number
|
|
40
|
+
|
|
41
|
+
minutes(): number
|
|
42
|
+
asMinutes(): number
|
|
43
|
+
|
|
44
|
+
hours(): number
|
|
45
|
+
asHours(): number
|
|
46
|
+
|
|
47
|
+
days(): number
|
|
48
|
+
asDays(): number
|
|
49
|
+
|
|
50
|
+
weeks(): number
|
|
51
|
+
asWeeks(): number
|
|
52
|
+
|
|
53
|
+
months(): number
|
|
54
|
+
asMonths(): number
|
|
55
|
+
|
|
56
|
+
years(): number
|
|
57
|
+
asYears(): number
|
|
58
|
+
|
|
59
|
+
as(unit: DurationUnitType): number
|
|
60
|
+
|
|
61
|
+
get(unit: DurationUnitType): number
|
|
62
|
+
|
|
63
|
+
add: AddDurationType
|
|
64
|
+
|
|
65
|
+
subtract: AddDurationType
|
|
66
|
+
|
|
67
|
+
toJSON(): string
|
|
68
|
+
|
|
69
|
+
toISOString(): string
|
|
70
|
+
|
|
71
|
+
format(formatStr?: string): string
|
|
72
|
+
|
|
73
|
+
locale(locale: string): Duration
|
|
74
|
+
}
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
declare module 'dayjs' {
|
|
78
|
+
interface Dayjs {
|
|
79
|
+
add(duration: plugin.Duration): Dayjs
|
|
80
|
+
subtract(duration: plugin.Duration): Dayjs
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
/**
|
|
84
|
+
* @param time If unit is not present, time treated as number of milliseconds
|
|
85
|
+
*/
|
|
86
|
+
export const duration: plugin.CreateDurationType;
|
|
87
|
+
export function isDuration(d: any): d is plugin.Duration
|
|
88
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
!function(t,s){"object"==typeof exports&&"undefined"!=typeof module?module.exports=s():"function"==typeof define&&define.amd?define(s):(t="undefined"!=typeof globalThis?globalThis:t||self).dayjs_plugin_duration=s()}(this,(function(){"use strict";var t,s,n=1e3,i=6e4,e=36e5,r=864e5,o=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,u=31536e6,d=2628e6,a=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/,h={years:u,months:d,days:r,hours:e,minutes:i,seconds:n,milliseconds:1,weeks:6048e5},c=function(t){return t instanceof g},f=function(t,s,n){return new g(t,n,s.$l)},m=function(t){return s.p(t)+"s"},l=function(t){return t<0},$=function(t){return l(t)?Math.ceil(t):Math.floor(t)},y=function(t){return Math.abs(t)},v=function(t,s){return t?l(t)?{negative:!0,format:""+y(t)+s}:{negative:!1,format:""+t+s}:{negative:!1,format:""}},g=function(){function l(t,s,n){var i=this;if(this.$d={},this.$l=n,void 0===t&&(this.$ms=0,this.parseFromMilliseconds()),s)return f(t*h[m(s)],this);if("number"==typeof t)return this.$ms=t,this.parseFromMilliseconds(),this;if("object"==typeof t)return Object.keys(t).forEach((function(s){i.$d[m(s)]=t[s]})),this.calMilliseconds(),this;if("string"==typeof t){var e=t.match(a);if(e){var r=e.slice(2).map((function(t){return null!=t?Number(t):0}));return this.$d.years=r[0],this.$d.months=r[1],this.$d.weeks=r[2],this.$d.days=r[3],this.$d.hours=r[4],this.$d.minutes=r[5],this.$d.seconds=r[6],this.calMilliseconds(),this}}return this}var y=l.prototype;return y.calMilliseconds=function(){var t=this;this.$ms=Object.keys(this.$d).reduce((function(s,n){return s+(t.$d[n]||0)*h[n]}),0)},y.parseFromMilliseconds=function(){var t=this.$ms;this.$d.years=$(t/u),t%=u,this.$d.months=$(t/d),t%=d,this.$d.days=$(t/r),t%=r,this.$d.hours=$(t/e),t%=e,this.$d.minutes=$(t/i),t%=i,this.$d.seconds=$(t/n),t%=n,this.$d.milliseconds=t},y.toISOString=function(){var t=v(this.$d.years,"Y"),s=v(this.$d.months,"M"),n=+this.$d.days||0;this.$d.weeks&&(n+=7*this.$d.weeks);var i=v(n,"D"),e=v(this.$d.hours,"H"),r=v(this.$d.minutes,"M"),o=this.$d.seconds||0;this.$d.milliseconds&&(o+=this.$d.milliseconds/1e3,o=Math.round(1e3*o)/1e3);var u=v(o,"S"),d=t.negative||s.negative||i.negative||e.negative||r.negative||u.negative,a=e.format||r.format||u.format?"T":"",h=(d?"-":"")+"P"+t.format+s.format+i.format+a+e.format+r.format+u.format;return"P"===h||"-P"===h?"P0D":h},y.toJSON=function(){return this.toISOString()},y.format=function(t){var n=t||"YYYY-MM-DDTHH:mm:ss",i={Y:this.$d.years,YY:s.s(this.$d.years,2,"0"),YYYY:s.s(this.$d.years,4,"0"),M:this.$d.months,MM:s.s(this.$d.months,2,"0"),D:this.$d.days,DD:s.s(this.$d.days,2,"0"),H:this.$d.hours,HH:s.s(this.$d.hours,2,"0"),m:this.$d.minutes,mm:s.s(this.$d.minutes,2,"0"),s:this.$d.seconds,ss:s.s(this.$d.seconds,2,"0"),SSS:s.s(this.$d.milliseconds,3,"0")};return n.replace(o,(function(t,s){return s||String(i[t])}))},y.as=function(t){return this.$ms/h[m(t)]},y.get=function(t){var s=this.$ms,n=m(t);return"milliseconds"===n?s%=1e3:s="weeks"===n?$(s/h[n]):this.$d[n],s||0},y.add=function(t,s,n){var i;return i=s?t*h[m(s)]:c(t)?t.$ms:f(t,this).$ms,f(this.$ms+i*(n?-1:1),this)},y.subtract=function(t,s){return this.add(t,s,!0)},y.locale=function(t){var s=this.clone();return s.$l=t,s},y.clone=function(){return f(this.$ms,this)},y.humanize=function(s){return t().add(this.$ms,"ms").locale(this.$l).fromNow(!s)},y.valueOf=function(){return this.asMilliseconds()},y.milliseconds=function(){return this.get("milliseconds")},y.asMilliseconds=function(){return this.as("milliseconds")},y.seconds=function(){return this.get("seconds")},y.asSeconds=function(){return this.as("seconds")},y.minutes=function(){return this.get("minutes")},y.asMinutes=function(){return this.as("minutes")},y.hours=function(){return this.get("hours")},y.asHours=function(){return this.as("hours")},y.days=function(){return this.get("days")},y.asDays=function(){return this.as("days")},y.weeks=function(){return this.get("weeks")},y.asWeeks=function(){return this.as("weeks")},y.months=function(){return this.get("months")},y.asMonths=function(){return this.as("months")},y.years=function(){return this.get("years")},y.asYears=function(){return this.as("years")},l}(),p=function(t,s,n){return t.add(s.years()*n,"y").add(s.months()*n,"M").add(s.days()*n,"d").add(s.hours()*n,"h").add(s.minutes()*n,"m").add(s.seconds()*n,"s").add(s.milliseconds()*n,"ms")};return function(n,i,e){t=e,s=e().$utils(),e.duration=function(t,s){var n=e.locale();return f(t,{$l:n},s)},e.isDuration=c;var r=i.prototype.add,o=i.prototype.subtract;i.prototype.add=function(t,s){return c(t)?p(this,t,1):r.bind(this)(t,s)},i.prototype.subtract=function(t,s){return c(t)?p(this,t,-1):o.bind(this)(t,s)}}}));
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { PluginFunc, ConfigType, OpUnitType } from 'dayjs'
|
|
2
|
+
|
|
3
|
+
declare const plugin: PluginFunc
|
|
4
|
+
export = plugin
|
|
5
|
+
|
|
6
|
+
declare module 'dayjs' {
|
|
7
|
+
interface Dayjs {
|
|
8
|
+
isBetween(a: ConfigType, b: ConfigType, c?: OpUnitType | null, d?: '()' | '[]' | '[)' | '(]'): boolean
|
|
9
|
+
}
|
|
10
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
!function(e,i){"object"==typeof exports&&"undefined"!=typeof module?module.exports=i():"function"==typeof define&&define.amd?define(i):(e="undefined"!=typeof globalThis?globalThis:e||self).dayjs_plugin_isBetween=i()}(this,(function(){"use strict";return function(e,i,t){i.prototype.isBetween=function(e,i,s,f){var n=t(e),o=t(i),r="("===(f=f||"()")[0],u=")"===f[1];return(r?this.isAfter(n,s):!this.isBefore(n,s))&&(u?this.isBefore(o,s):!this.isAfter(o,s))||(r?this.isBefore(n,s):!this.isAfter(n,s))&&(u?this.isAfter(o,s):!this.isBefore(o,s))}}}));
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&define.amd?define(t):(e="undefined"!=typeof globalThis?globalThis:e||self).dayjs_plugin_isLeapYear=t()}(this,(function(){"use strict";return function(e,t){t.prototype.isLeapYear=function(){return this.$y%4==0&&this.$y%100!=0||this.$y%400==0}}}));
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
!function(e,n){"object"==typeof exports&&"undefined"!=typeof module?module.exports=n():"function"==typeof define&&define.amd?define(n):(e="undefined"!=typeof globalThis?globalThis:e||self).dayjs_plugin_isMoment=n()}(this,(function(){"use strict";return function(e,n,t){t.isMoment=function(e){return t.isDayjs(e)}}}));
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&define.amd?define(t):(e="undefined"!=typeof globalThis?globalThis:e||self).dayjs_plugin_isSameOrAfter=t()}(this,(function(){"use strict";return function(e,t){t.prototype.isSameOrAfter=function(e,t){return this.isSame(e,t)||this.isAfter(e,t)}}}));
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
!function(e,i){"object"==typeof exports&&"undefined"!=typeof module?module.exports=i():"function"==typeof define&&define.amd?define(i):(e="undefined"!=typeof globalThis?globalThis:e||self).dayjs_plugin_isSameOrBefore=i()}(this,(function(){"use strict";return function(e,i){i.prototype.isSameOrBefore=function(e,i){return this.isSame(e,i)||this.isBefore(e,i)}}}));
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
!function(e,o){"object"==typeof exports&&"undefined"!=typeof module?module.exports=o():"function"==typeof define&&define.amd?define(o):(e="undefined"!=typeof globalThis?globalThis:e||self).dayjs_plugin_isToday=o()}(this,(function(){"use strict";return function(e,o,t){o.prototype.isToday=function(){var e="YYYY-MM-DD",o=t();return this.format(e)===o.format(e)}}}));
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
!function(o,e){"object"==typeof exports&&"undefined"!=typeof module?module.exports=e():"function"==typeof define&&define.amd?define(e):(o="undefined"!=typeof globalThis?globalThis:o||self).dayjs_plugin_isTomorrow=e()}(this,(function(){"use strict";return function(o,e,t){e.prototype.isTomorrow=function(){var o="YYYY-MM-DD",e=t().add(1,"day");return this.format(o)===e.format(o)}}}));
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&define.amd?define(t):(e="undefined"!=typeof globalThis?globalThis:e||self).dayjs_plugin_isYesterday=t()}(this,(function(){"use strict";return function(e,t,n){t.prototype.isYesterday=function(){var e="YYYY-MM-DD",t=n().subtract(1,"day");return this.format(e)===t.format(e)}}}));
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { PluginFunc, OpUnitType, ConfigType } from 'dayjs'
|
|
2
|
+
|
|
3
|
+
declare const plugin: PluginFunc
|
|
4
|
+
export = plugin
|
|
5
|
+
|
|
6
|
+
type ISOUnitType = OpUnitType | 'isoWeek';
|
|
7
|
+
|
|
8
|
+
declare module 'dayjs' {
|
|
9
|
+
interface Dayjs {
|
|
10
|
+
isoWeekYear(): number
|
|
11
|
+
isoWeek(): number
|
|
12
|
+
isoWeek(value: number): Dayjs
|
|
13
|
+
|
|
14
|
+
isoWeekday(): number
|
|
15
|
+
isoWeekday(value: number): Dayjs
|
|
16
|
+
|
|
17
|
+
startOf(unit: ISOUnitType): Dayjs
|
|
18
|
+
|
|
19
|
+
endOf(unit: ISOUnitType): Dayjs
|
|
20
|
+
|
|
21
|
+
isSame(date?: ConfigType, unit?: ISOUnitType): boolean
|
|
22
|
+
|
|
23
|
+
isBefore(date?: ConfigType, unit?: ISOUnitType): boolean
|
|
24
|
+
|
|
25
|
+
isAfter(date?: ConfigType, unit?: ISOUnitType): boolean
|
|
26
|
+
}
|
|
27
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&define.amd?define(t):(e="undefined"!=typeof globalThis?globalThis:e||self).dayjs_plugin_isoWeek=t()}(this,(function(){"use strict";var e="day";return function(t,i,s){var a=function(t){return t.add(4-t.isoWeekday(),e)},d=i.prototype;d.isoWeekYear=function(){return a(this).year()},d.isoWeek=function(t){if(!this.$utils().u(t))return this.add(7*(t-this.isoWeek()),e);var i,d,n,o,r=a(this),u=(i=this.isoWeekYear(),d=this.$u,n=(d?s.utc:s)().year(i).startOf("year"),o=4-n.isoWeekday(),n.isoWeekday()>4&&(o+=7),n.add(o,e));return r.diff(u,"week")+1},d.isoWeekday=function(e){return this.$utils().u(e)?this.day()||7:this.day(this.day()%7?e:e-7)};var n=d.startOf;d.startOf=function(e,t){var i=this.$utils(),s=!!i.u(t)||t;return"isoweek"===i.p(e)?s?this.date(this.date()-(this.isoWeekday()-1)).startOf("day"):this.date(this.date()-1-(this.isoWeekday()-1)+7).endOf("day"):n.bind(this)(e,t)}}}));
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
!function(e,n){"object"==typeof exports&&"undefined"!=typeof module?module.exports=n():"function"==typeof define&&define.amd?define(n):(e="undefined"!=typeof globalThis?globalThis:e||self).dayjs_plugin_isoWeeksInYear=n()}(this,(function(){"use strict";return function(e,n){n.prototype.isoWeeksInYear=function(){var e=this.isLeapYear(),n=this.endOf("y").day();return 4===n||e&&5===n?53:52}}}));
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
import { PluginFunc } from 'dayjs'
|
|
2
|
+
|
|
3
|
+
declare const plugin: PluginFunc
|
|
4
|
+
export = plugin
|
|
5
|
+
|
|
6
|
+
declare module 'dayjs' {
|
|
7
|
+
type WeekdayNames = [string, string, string, string, string, string, string];
|
|
8
|
+
type MonthNames = [string, string, string, string, string, string, string, string, string, string, string, string];
|
|
9
|
+
|
|
10
|
+
interface InstanceLocaleDataReturn {
|
|
11
|
+
firstDayOfWeek(): number;
|
|
12
|
+
weekdays(instance?: Dayjs): WeekdayNames;
|
|
13
|
+
weekdaysShort(instance?: Dayjs): WeekdayNames;
|
|
14
|
+
weekdaysMin(instance?: Dayjs): WeekdayNames;
|
|
15
|
+
months(instance?: Dayjs): MonthNames;
|
|
16
|
+
monthsShort(instance?: Dayjs): MonthNames;
|
|
17
|
+
longDateFormat(format: string): string;
|
|
18
|
+
meridiem(hour?: number, minute?: number, isLower?: boolean): string;
|
|
19
|
+
ordinal(n: number): string
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
interface GlobalLocaleDataReturn {
|
|
23
|
+
firstDayOfWeek(): number;
|
|
24
|
+
weekdays(): WeekdayNames;
|
|
25
|
+
weekdaysShort(): WeekdayNames;
|
|
26
|
+
weekdaysMin(): WeekdayNames;
|
|
27
|
+
months(): MonthNames;
|
|
28
|
+
monthsShort(): MonthNames;
|
|
29
|
+
longDateFormat(format: string): string;
|
|
30
|
+
meridiem(hour?: number, minute?: number, isLower?: boolean): string;
|
|
31
|
+
ordinal(n: number): string
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
interface Dayjs {
|
|
35
|
+
localeData(): InstanceLocaleDataReturn;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
export function weekdays(localOrder?: boolean): WeekdayNames;
|
|
39
|
+
export function weekdaysShort(localOrder?: boolean): WeekdayNames;
|
|
40
|
+
export function weekdaysMin(localOrder?: boolean): WeekdayNames;
|
|
41
|
+
export function monthsShort(): MonthNames;
|
|
42
|
+
export function months(): MonthNames;
|
|
43
|
+
export function localeData(): GlobalLocaleDataReturn;
|
|
44
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
!function(n,e){"object"==typeof exports&&"undefined"!=typeof module?module.exports=e():"function"==typeof define&&define.amd?define(e):(n="undefined"!=typeof globalThis?globalThis:n||self).dayjs_plugin_localeData=e()}(this,(function(){"use strict";return function(n,e,t){var r=e.prototype,o=function(n){return n&&(n.indexOf?n:n.s)},u=function(n,e,t,r,u){var i=n.name?n:n.$locale(),a=o(i[e]),s=o(i[t]),f=a||s.map((function(n){return n.slice(0,r)}));if(!u)return f;var d=i.weekStart;return f.map((function(n,e){return f[(e+(d||0))%7]}))},i=function(){return t.Ls[t.locale()]},a=function(n,e){return n.formats[e]||function(n){return n.replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,(function(n,e,t){return e||t.slice(1)}))}(n.formats[e.toUpperCase()])},s=function(){var n=this;return{months:function(e){return e?e.format("MMMM"):u(n,"months")},monthsShort:function(e){return e?e.format("MMM"):u(n,"monthsShort","months",3)},firstDayOfWeek:function(){return n.$locale().weekStart||0},weekdays:function(e){return e?e.format("dddd"):u(n,"weekdays")},weekdaysMin:function(e){return e?e.format("dd"):u(n,"weekdaysMin","weekdays",2)},weekdaysShort:function(e){return e?e.format("ddd"):u(n,"weekdaysShort","weekdays",3)},longDateFormat:function(e){return a(n.$locale(),e)},meridiem:this.$locale().meridiem,ordinal:this.$locale().ordinal}};r.localeData=function(){return s.bind(this)()},t.localeData=function(){var n=i();return{firstDayOfWeek:function(){return n.weekStart||0},weekdays:function(){return t.weekdays()},weekdaysShort:function(){return t.weekdaysShort()},weekdaysMin:function(){return t.weekdaysMin()},months:function(){return t.months()},monthsShort:function(){return t.monthsShort()},longDateFormat:function(e){return a(n,e)},meridiem:n.meridiem,ordinal:n.ordinal}},t.months=function(){return u(i(),"months")},t.monthsShort=function(){return u(i(),"monthsShort","months",3)},t.weekdays=function(n){return u(i(),"weekdays",null,null,n)},t.weekdaysShort=function(n){return u(i(),"weekdaysShort","weekdays",3,n)},t.weekdaysMin=function(n){return u(i(),"weekdaysMin","weekdays",2,n)}}}));
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&define.amd?define(t):(e="undefined"!=typeof globalThis?globalThis:e||self).dayjs_plugin_localizedFormat=t()}(this,(function(){"use strict";var e={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"};return function(t,o,n){var r=o.prototype,i=r.format;n.en.formats=e,r.format=function(t){void 0===t&&(t="YYYY-MM-DDTHH:mm:ssZ");var o=this.$locale().formats,n=function(t,o){return t.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,(function(t,n,r){var i=r&&r.toUpperCase();return n||o[r]||e[r]||o[i].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,(function(e,t,o){return t||o.slice(1)}))}))}(t,void 0===o?{}:o);return i.call(this,n)}}}));
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { PluginFunc } from 'dayjs'
|
|
2
|
+
|
|
3
|
+
declare const plugin: PluginFunc
|
|
4
|
+
export = plugin
|
|
5
|
+
|
|
6
|
+
declare module 'dayjs' {
|
|
7
|
+
export function max(dayjs: [Dayjs, ...Dayjs[]]): Dayjs
|
|
8
|
+
export function max(noDates: never[]): null
|
|
9
|
+
export function max(maybeDates: Dayjs[]): Dayjs | null
|
|
10
|
+
|
|
11
|
+
export function max(...dayjs: [Dayjs, ...Dayjs[]]): Dayjs
|
|
12
|
+
export function max(...noDates: never[]): null
|
|
13
|
+
export function max(...maybeDates: Dayjs[]): Dayjs | null
|
|
14
|
+
|
|
15
|
+
export function min(dayjs: [Dayjs, ...Dayjs[]]): Dayjs
|
|
16
|
+
export function min(noDates: never[]): null
|
|
17
|
+
export function min(maybeDates: Dayjs[]): Dayjs | null
|
|
18
|
+
|
|
19
|
+
export function min(...dayjs: [Dayjs, ...Dayjs[]]): Dayjs
|
|
20
|
+
export function min(...noDates: never[]): null
|
|
21
|
+
export function min(...maybeDates: Dayjs[]): Dayjs | null
|
|
22
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
!function(e,n){"object"==typeof exports&&"undefined"!=typeof module?module.exports=n():"function"==typeof define&&define.amd?define(n):(e="undefined"!=typeof globalThis?globalThis:e||self).dayjs_plugin_minMax=n()}(this,(function(){"use strict";return function(e,n,t){var i=function(e,n){if(!n||!n.length||1===n.length&&!n[0]||1===n.length&&Array.isArray(n[0])&&!n[0].length)return null;var t;1===n.length&&n[0].length>0&&(n=n[0]);t=(n=n.filter((function(e){return e})))[0];for(var i=1;i<n.length;i+=1)n[i].isValid()&&!n[i][e](t)||(t=n[i]);return t};t.max=function(){var e=[].slice.call(arguments,0);return i("isAfter",e)},t.min=function(){var e=[].slice.call(arguments,0);return i("isBefore",e)}}}));
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&define.amd?define(t):(e="undefined"!=typeof globalThis?globalThis:e||self).dayjs_plugin_negativeYear=t()}(this,(function(){"use strict";return function(e,t,n){var i=t.prototype,o=function(e){var t=e.date,i=e.utc;if("string"==typeof t&&"-"===t.charAt(0)){var o=t.slice(1),r=n(o),f=(r=i?n.utc(o):n(o)).year();return-1!==t.indexOf("-"+f)?n(r).subtract(2*f,"year").toDate():t}return t},r=i.parse;i.parse=function(e){e.date=o.bind(this)(e),r.bind(this)(e)}}}));
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
import { PluginFunc } from 'dayjs'
|
|
2
|
+
|
|
3
|
+
declare const plugin: PluginFunc
|
|
4
|
+
export = plugin
|
|
5
|
+
|
|
6
|
+
declare module 'dayjs' {
|
|
7
|
+
interface Dayjs {
|
|
8
|
+
set(argument: object): Dayjs
|
|
9
|
+
add(argument: object): Dayjs
|
|
10
|
+
subtract(argument: object): Dayjs
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
interface ConfigTypeMap {
|
|
14
|
+
objectSupport: {
|
|
15
|
+
years?: number | string;
|
|
16
|
+
year?: number | string;
|
|
17
|
+
y?: number | string;
|
|
18
|
+
|
|
19
|
+
months?: number | string;
|
|
20
|
+
month?: number | string;
|
|
21
|
+
M?: number | string;
|
|
22
|
+
|
|
23
|
+
days?: number | string;
|
|
24
|
+
day?: number | string;
|
|
25
|
+
d?: number | string;
|
|
26
|
+
|
|
27
|
+
dates?: number | string;
|
|
28
|
+
date?: number | string;
|
|
29
|
+
D?: number | string;
|
|
30
|
+
|
|
31
|
+
hours?: number | string;
|
|
32
|
+
hour?: number | string;
|
|
33
|
+
h?: number | string;
|
|
34
|
+
|
|
35
|
+
minutes?: number | string;
|
|
36
|
+
minute?: number | string;
|
|
37
|
+
m?: number | string;
|
|
38
|
+
|
|
39
|
+
seconds?: number | string;
|
|
40
|
+
second?: number | string;
|
|
41
|
+
s?: number | string;
|
|
42
|
+
|
|
43
|
+
milliseconds?: number | string;
|
|
44
|
+
millisecond?: number | string;
|
|
45
|
+
ms?: number | string;
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
!function(t,n){"object"==typeof exports&&"undefined"!=typeof module?module.exports=n():"function"==typeof define&&define.amd?define(n):(t="undefined"!=typeof globalThis?globalThis:t||self).dayjs_plugin_objectSupport=n()}(this,(function(){"use strict";return function(t,n,e){var i=n.prototype,r=function(t){var n,r=t.date,o=t.utc,u={};if(!(null===(n=r)||n instanceof Date||n instanceof Array||i.$utils().u(n)||"Object"!==n.constructor.name)){if(!Object.keys(r).length)return new Date;var a=o?e.utc():e();Object.keys(r).forEach((function(t){var n,e;u[(n=t,e=i.$utils().p(n),"date"===e?"day":e)]=r[t]}));var c=u.day||(u.year||u.month>=0?1:a.date()),s=u.year||a.year(),d=u.month>=0?u.month:u.year||u.day?0:a.month(),f=u.hour||0,b=u.minute||0,h=u.second||0,y=u.millisecond||0;return o?new Date(Date.UTC(s,d,c,f,b,h,y)):new Date(s,d,c,f,b,h,y)}return r},o=i.parse;i.parse=function(t){t.date=r.bind(this)(t),o.bind(this)(t)};var u=i.set,a=i.add,c=i.subtract,s=function(t,n,e,i){void 0===i&&(i=1);var r=Object.keys(n),o=this;return r.forEach((function(e){o=t.bind(o)(n[e]*i,e)})),o};i.set=function(t,n){return n=void 0===n?t:n,"Object"===t.constructor.name?s.bind(this)((function(t,n){return u.bind(this)(n,t)}),n,t):u.bind(this)(t,n)},i.add=function(t,n){return"Object"===t.constructor.name?s.bind(this)(a,t,n):a.bind(this)(t,n)},i.subtract=function(t,n){return"Object"===t.constructor.name?s.bind(this)(a,t,n,-1):c.bind(this)(t,n)}}}));
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
import { PluginFunc, UnitType, ConfigType } from 'dayjs'
|
|
2
|
+
|
|
3
|
+
declare const plugin: PluginFunc
|
|
4
|
+
export = plugin
|
|
5
|
+
|
|
6
|
+
declare module 'dayjs' {
|
|
7
|
+
interface Dayjs {
|
|
8
|
+
years(): number
|
|
9
|
+
|
|
10
|
+
years(value: number): Dayjs
|
|
11
|
+
|
|
12
|
+
months(): number
|
|
13
|
+
|
|
14
|
+
months(value: number): Dayjs
|
|
15
|
+
|
|
16
|
+
dates(): number
|
|
17
|
+
|
|
18
|
+
dates(value: number): Dayjs
|
|
19
|
+
|
|
20
|
+
weeks(): number
|
|
21
|
+
|
|
22
|
+
weeks(value: number): Dayjs
|
|
23
|
+
|
|
24
|
+
days(): number
|
|
25
|
+
|
|
26
|
+
days(value: number): Dayjs
|
|
27
|
+
|
|
28
|
+
hours(): number
|
|
29
|
+
|
|
30
|
+
hours(value: number): Dayjs
|
|
31
|
+
|
|
32
|
+
minutes(): number
|
|
33
|
+
|
|
34
|
+
minutes(value: number): Dayjs
|
|
35
|
+
|
|
36
|
+
seconds(): number
|
|
37
|
+
|
|
38
|
+
seconds(value: number): Dayjs
|
|
39
|
+
|
|
40
|
+
milliseconds(): number
|
|
41
|
+
|
|
42
|
+
milliseconds(value: number): Dayjs
|
|
43
|
+
}
|
|
44
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
!function(e,o){"object"==typeof exports&&"undefined"!=typeof module?module.exports=o():"function"==typeof define&&define.amd?define(o):(e="undefined"!=typeof globalThis?globalThis:e||self).dayjs_plugin_pluralGetSet=o()}(this,(function(){"use strict";return function(e,o){var s=o.prototype;["milliseconds","seconds","minutes","hours","days","weeks","isoWeeks","months","quarters","years","dates"].forEach((function(e){s[e]=s[e.replace(/s$/,"")]}))}}));
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?module.exports=e():"function"==typeof define&&define.amd?define(e):(t="undefined"!=typeof globalThis?globalThis:t||self).dayjs_plugin_preParsePostFormat=e()}(this,(function(){"use strict";return function(t,e){var o=e.prototype.parse;e.prototype.parse=function(t){if("string"==typeof t.date){var e=this.$locale();t.date=e&&e.preparse?e.preparse(t.date):t.date}return o.bind(this)(t)};var r=e.prototype.format;e.prototype.format=function(){for(var t=arguments.length,e=new Array(t),o=0;o<t;o++)e[o]=arguments[o];var a=r.call.apply(r,[this].concat(e)),p=this.$locale();return p&&p.postformat?p.postformat(a):a};var a=e.prototype.fromToBase;a&&(e.prototype.fromToBase=function(t,e,o,r){var p=this.$locale()||o.$locale();return a.call(this,t,e,o,r,p&&p.postformat)})}}));
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { PluginFunc, ConfigType, QUnitType, OpUnitType } from 'dayjs'
|
|
2
|
+
|
|
3
|
+
declare const plugin: PluginFunc
|
|
4
|
+
export = plugin
|
|
5
|
+
|
|
6
|
+
declare module 'dayjs' {
|
|
7
|
+
interface Dayjs {
|
|
8
|
+
quarter(): number
|
|
9
|
+
|
|
10
|
+
quarter(quarter: number): Dayjs
|
|
11
|
+
|
|
12
|
+
add(value: number, unit: QUnitType): Dayjs
|
|
13
|
+
|
|
14
|
+
subtract(value: number, unit: QUnitType): Dayjs
|
|
15
|
+
|
|
16
|
+
startOf(unit: QUnitType | OpUnitType): Dayjs
|
|
17
|
+
|
|
18
|
+
endOf(unit: QUnitType | OpUnitType): Dayjs
|
|
19
|
+
|
|
20
|
+
isSame(date?: ConfigType, unit?: QUnitType): boolean
|
|
21
|
+
|
|
22
|
+
isBefore(date?: ConfigType, unit?: QUnitType): boolean
|
|
23
|
+
|
|
24
|
+
isAfter(date?: ConfigType, unit?: QUnitType): boolean
|
|
25
|
+
}
|
|
26
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
!function(t,n){"object"==typeof exports&&"undefined"!=typeof module?module.exports=n():"function"==typeof define&&define.amd?define(n):(t="undefined"!=typeof globalThis?globalThis:t||self).dayjs_plugin_quarterOfYear=n()}(this,(function(){"use strict";var t="month",n="quarter";return function(e,i){var r=i.prototype;r.quarter=function(t){return this.$utils().u(t)?Math.ceil((this.month()+1)/3):this.month(this.month()%3+3*(t-1))};var s=r.add;r.add=function(e,i){return e=Number(e),this.$utils().p(i)===n?this.add(3*e,t):s.bind(this)(e,i)};var u=r.startOf;r.startOf=function(e,i){var r=this.$utils(),s=!!r.u(i)||i;if(r.p(e)===n){var o=this.quarter()-1;return s?this.month(3*o).startOf(t).startOf("day"):this.month(3*o+2).endOf(t).endOf("day")}return u.bind(this)(e,i)}}}));
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { PluginFunc, ConfigType } from 'dayjs'
|
|
2
|
+
|
|
3
|
+
declare interface RelativeTimeThreshold {
|
|
4
|
+
l: string
|
|
5
|
+
r?: number
|
|
6
|
+
d?: string
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
declare interface RelativeTimeOptions {
|
|
10
|
+
rounding?: (num: number) => number
|
|
11
|
+
thresholds?: RelativeTimeThreshold[]
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
declare const plugin: PluginFunc<RelativeTimeOptions>
|
|
15
|
+
export = plugin
|
|
16
|
+
|
|
17
|
+
declare module 'dayjs' {
|
|
18
|
+
interface Dayjs {
|
|
19
|
+
fromNow(withoutSuffix?: boolean): string
|
|
20
|
+
from(compared: ConfigType, withoutSuffix?: boolean): string
|
|
21
|
+
toNow(withoutSuffix?: boolean): string
|
|
22
|
+
to(compared: ConfigType, withoutSuffix?: boolean): string
|
|
23
|
+
}
|
|
24
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
!function(r,e){"object"==typeof exports&&"undefined"!=typeof module?module.exports=e():"function"==typeof define&&define.amd?define(e):(r="undefined"!=typeof globalThis?globalThis:r||self).dayjs_plugin_relativeTime=e()}(this,(function(){"use strict";return function(r,e,t){r=r||{};var n=e.prototype,o={future:"in %s",past:"%s ago",s:"a few seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"};function i(r,e,t,o){return n.fromToBase(r,e,t,o)}t.en.relativeTime=o,n.fromToBase=function(e,n,i,d,u){for(var f,a,s,l=i.$locale().relativeTime||o,h=r.thresholds||[{l:"s",r:44,d:"second"},{l:"m",r:89},{l:"mm",r:44,d:"minute"},{l:"h",r:89},{l:"hh",r:21,d:"hour"},{l:"d",r:35},{l:"dd",r:25,d:"day"},{l:"M",r:45},{l:"MM",r:10,d:"month"},{l:"y",r:17},{l:"yy",d:"year"}],m=h.length,c=0;c<m;c+=1){var y=h[c];y.d&&(f=d?t(e).diff(i,y.d,!0):i.diff(e,y.d,!0));var p=(r.rounding||Math.round)(Math.abs(f));if(s=f>0,p<=y.r||!y.r){p<=1&&c>0&&(y=h[c-1]);var v=l[y.l];u&&(p=u(""+p)),a="string"==typeof v?v.replace("%d",p):v(p,n,y.l,s);break}}if(n)return a;var M=s?l.future:l.past;return"function"==typeof M?M(a):M.replace("%s",a)},n.to=function(r,e){return i(r,e,this,!0)},n.from=function(r,e){return i(r,e,this)};var d=function(r){return r.$u?t.utc():t()};n.toNow=function(r){return this.to(d(this),r)},n.fromNow=function(r){return this.from(d(this),r)}}}));
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { PluginFunc, ConfigType } from 'dayjs'
|
|
2
|
+
|
|
3
|
+
declare const plugin: PluginFunc
|
|
4
|
+
export = plugin
|
|
5
|
+
|
|
6
|
+
declare module 'dayjs' {
|
|
7
|
+
interface Dayjs {
|
|
8
|
+
tz(timezone?: string, keepLocalTime?: boolean): Dayjs
|
|
9
|
+
offsetName(type?: 'short' | 'long'): string | undefined
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
interface DayjsTimezone {
|
|
13
|
+
(date?: ConfigType, timezone?: string): Dayjs
|
|
14
|
+
(date: ConfigType, format: string, timezone?: string): Dayjs
|
|
15
|
+
guess(): string
|
|
16
|
+
setDefault(timezone?: string): void
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
const tz: DayjsTimezone
|
|
20
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?module.exports=e():"function"==typeof define&&define.amd?define(e):(t="undefined"!=typeof globalThis?globalThis:t||self).dayjs_plugin_timezone=e()}(this,(function(){"use strict";var t={year:0,month:1,day:2,hour:3,minute:4,second:5},e={};return function(n,i,o){var r,a=function(t,n,i){void 0===i&&(i={});var o=new Date(t),r=function(t,n){void 0===n&&(n={});var i=n.timeZoneName||"short",o=t+"|"+i,r=e[o];return r||(r=new Intl.DateTimeFormat("en-US",{hour12:!1,timeZone:t,year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit",timeZoneName:i}),e[o]=r),r}(n,i);return r.formatToParts(o)},u=function(e,n){for(var i=a(e,n),r=[],u=0;u<i.length;u+=1){var f=i[u],s=f.type,m=f.value,c=t[s];c>=0&&(r[c]=parseInt(m,10))}var d=r[3],l=24===d?0:d,h=r[0]+"-"+r[1]+"-"+r[2]+" "+l+":"+r[4]+":"+r[5]+":000",v=+e;return(o.utc(h).valueOf()-(v-=v%1e3))/6e4},f=i.prototype;f.tz=function(t,e){void 0===t&&(t=r);var n,i=this.utcOffset(),a=this.toDate(),u=a.toLocaleString("en-US",{timeZone:t}),f=Math.round((a-new Date(u))/1e3/60),s=15*-Math.round(a.getTimezoneOffset()/15)-f;if(!Number(s))n=this.utcOffset(0,e);else if(n=o(u,{locale:this.$L}).$set("millisecond",this.$ms).utcOffset(s,!0),e){var m=n.utcOffset();n=n.add(i-m,"minute")}return n.$x.$timezone=t,n},f.offsetName=function(t){var e=this.$x.$timezone||o.tz.guess(),n=a(this.valueOf(),e,{timeZoneName:t}).find((function(t){return"timezonename"===t.type.toLowerCase()}));return n&&n.value};var s=f.startOf;f.startOf=function(t,e){if(!this.$x||!this.$x.$timezone)return s.call(this,t,e);var n=o(this.format("YYYY-MM-DD HH:mm:ss:SSS"),{locale:this.$L});return s.call(n,t,e).tz(this.$x.$timezone,!0)},o.tz=function(t,e,n){var i=n&&e,a=n||e||r,f=u(+o(),a);if("string"!=typeof t)return o(t).tz(a);var s=function(t,e,n){var i=t-60*e*1e3,o=u(i,n);if(e===o)return[i,e];var r=u(i-=60*(o-e)*1e3,n);return o===r?[i,o]:[t-60*Math.min(o,r)*1e3,Math.max(o,r)]}(o.utc(t,i).valueOf(),f,a),m=s[0],c=s[1],d=o(m).utcOffset(c);return d.$x.$timezone=a,d},o.tz.guess=function(){return Intl.DateTimeFormat().resolvedOptions().timeZone},o.tz.setDefault=function(t){r=t}}}));
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?module.exports=e():"function"==typeof define&&define.amd?define(e):(t="undefined"!=typeof globalThis?globalThis:t||self).dayjs_plugin_toArray=e()}(this,(function(){"use strict";return function(t,e){e.prototype.toArray=function(){return[this.$y,this.$M,this.$D,this.$H,this.$m,this.$s,this.$ms]}}}));
|