@nocobase/plugin-action-import 1.7.0-beta.2 → 1.7.0-beta.20
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/client/ImportAction.d.ts +8 -0
- package/dist/client/index.js +1 -1
- package/dist/client/useShared.d.ts +8 -1
- package/dist/externalVersion.js +8 -8
- package/dist/locale/it-IT.json +1 -1
- package/dist/locale/nl-NL.json +44 -36
- package/dist/node_modules/exceljs/excel.js +3 -3
- package/dist/node_modules/exceljs/package.json +1 -1
- package/dist/node_modules/xlsx/package.json +1 -1
- package/dist/server/actions/import-xlsx.js +2 -1
- package/dist/server/locale/nl-NL.json +7 -7
- package/package.json +2 -2
- package/dist/node_modules/exceljs/node_modules/dayjs/.editorconfig +0 -7
- package/dist/node_modules/exceljs/node_modules/dayjs/dayjs.min.js +0 -1
- package/dist/node_modules/exceljs/node_modules/dayjs/esm/constant.js +0 -25
- package/dist/node_modules/exceljs/node_modules/dayjs/esm/index.d.ts +0 -429
- package/dist/node_modules/exceljs/node_modules/dayjs/esm/index.js +0 -541
- package/dist/node_modules/exceljs/node_modules/dayjs/esm/locale/af.js +0 -39
- package/dist/node_modules/exceljs/node_modules/dayjs/esm/locale/am.js +0 -40
- package/dist/node_modules/exceljs/node_modules/dayjs/esm/locale/ar-dz.js +0 -41
- package/dist/node_modules/exceljs/node_modules/dayjs/esm/locale/ar-iq.js +0 -42
- package/dist/node_modules/exceljs/node_modules/dayjs/esm/locale/ar-kw.js +0 -41
- package/dist/node_modules/exceljs/node_modules/dayjs/esm/locale/ar-ly.js +0 -27
- package/dist/node_modules/exceljs/node_modules/dayjs/esm/locale/ar-ma.js +0 -42
- package/dist/node_modules/exceljs/node_modules/dayjs/esm/locale/ar-sa.js +0 -41
- package/dist/node_modules/exceljs/node_modules/dayjs/esm/locale/ar-tn.js +0 -42
- package/dist/node_modules/exceljs/node_modules/dayjs/esm/locale/ar.js +0 -77
- package/dist/node_modules/exceljs/node_modules/dayjs/esm/locale/az.js +0 -39
- package/dist/node_modules/exceljs/node_modules/dayjs/esm/locale/be.js +0 -24
- package/dist/node_modules/exceljs/node_modules/dayjs/esm/locale/bg.js +0 -55
- package/dist/node_modules/exceljs/node_modules/dayjs/esm/locale/bi.js +0 -39
- package/dist/node_modules/exceljs/node_modules/dayjs/esm/locale/bm.js +0 -39
- package/dist/node_modules/exceljs/node_modules/dayjs/esm/locale/bn-bd.js +0 -81
- package/dist/node_modules/exceljs/node_modules/dayjs/esm/locale/bn.js +0 -72
- package/dist/node_modules/exceljs/node_modules/dayjs/esm/locale/bo.js +0 -38
- package/dist/node_modules/exceljs/node_modules/dayjs/esm/locale/br.js +0 -93
- package/dist/node_modules/exceljs/node_modules/dayjs/esm/locale/bs.js +0 -24
- package/dist/node_modules/exceljs/node_modules/dayjs/esm/locale/ca.js +0 -44
- package/dist/node_modules/exceljs/node_modules/dayjs/esm/locale/cs.js +0 -120
- package/dist/node_modules/exceljs/node_modules/dayjs/esm/locale/cv.js +0 -24
- package/dist/node_modules/exceljs/node_modules/dayjs/esm/locale/cy.js +0 -39
- package/dist/node_modules/exceljs/node_modules/dayjs/esm/locale/da.js +0 -40
- package/dist/node_modules/exceljs/node_modules/dayjs/esm/locale/de-at.js +0 -63
- package/dist/node_modules/exceljs/node_modules/dayjs/esm/locale/de-ch.js +0 -63
- package/dist/node_modules/exceljs/node_modules/dayjs/esm/locale/de.js +0 -64
- package/dist/node_modules/exceljs/node_modules/dayjs/esm/locale/dv.js +0 -39
- package/dist/node_modules/exceljs/node_modules/dayjs/esm/locale/el.js +0 -39
- package/dist/node_modules/exceljs/node_modules/dayjs/esm/locale/en-au.js +0 -39
- package/dist/node_modules/exceljs/node_modules/dayjs/esm/locale/en-ca.js +0 -38
- package/dist/node_modules/exceljs/node_modules/dayjs/esm/locale/en-gb.js +0 -42
- package/dist/node_modules/exceljs/node_modules/dayjs/esm/locale/en-ie.js +0 -39
- package/dist/node_modules/exceljs/node_modules/dayjs/esm/locale/en-il.js +0 -38
- package/dist/node_modules/exceljs/node_modules/dayjs/esm/locale/en-in.js +0 -42
- package/dist/node_modules/exceljs/node_modules/dayjs/esm/locale/en-nz.js +0 -41
- package/dist/node_modules/exceljs/node_modules/dayjs/esm/locale/en-sg.js +0 -39
- package/dist/node_modules/exceljs/node_modules/dayjs/esm/locale/en-tt.js +0 -42
- package/dist/node_modules/exceljs/node_modules/dayjs/esm/locale/en.js +0 -12
- package/dist/node_modules/exceljs/node_modules/dayjs/esm/locale/eo.js +0 -39
- package/dist/node_modules/exceljs/node_modules/dayjs/esm/locale/es-do.js +0 -39
- package/dist/node_modules/exceljs/node_modules/dayjs/esm/locale/es-mx.js +0 -38
- package/dist/node_modules/exceljs/node_modules/dayjs/esm/locale/es-pr.js +0 -39
- package/dist/node_modules/exceljs/node_modules/dayjs/esm/locale/es-us.js +0 -38
- package/dist/node_modules/exceljs/node_modules/dayjs/esm/locale/es.js +0 -39
- package/dist/node_modules/exceljs/node_modules/dayjs/esm/locale/et.js +0 -65
- package/dist/node_modules/exceljs/node_modules/dayjs/esm/locale/eu.js +0 -43
- package/dist/node_modules/exceljs/node_modules/dayjs/esm/locale/fa.js +0 -39
- package/dist/node_modules/exceljs/node_modules/dayjs/esm/locale/fi.js +0 -88
- package/dist/node_modules/exceljs/node_modules/dayjs/esm/locale/fo.js +0 -39
- package/dist/node_modules/exceljs/node_modules/dayjs/esm/locale/fr-ca.js +0 -38
- package/dist/node_modules/exceljs/node_modules/dayjs/esm/locale/fr-ch.js +0 -39
- package/dist/node_modules/exceljs/node_modules/dayjs/esm/locale/fr.js +0 -41
- package/dist/node_modules/exceljs/node_modules/dayjs/esm/locale/fy.js +0 -39
- package/dist/node_modules/exceljs/node_modules/dayjs/esm/locale/ga.js +0 -39
- package/dist/node_modules/exceljs/node_modules/dayjs/esm/locale/gd.js +0 -39
- package/dist/node_modules/exceljs/node_modules/dayjs/esm/locale/gl.js +0 -39
- package/dist/node_modules/exceljs/node_modules/dayjs/esm/locale/gom-latn.js +0 -25
- package/dist/node_modules/exceljs/node_modules/dayjs/esm/locale/gu.js +0 -38
- package/dist/node_modules/exceljs/node_modules/dayjs/esm/locale/he.js +0 -78
- package/dist/node_modules/exceljs/node_modules/dayjs/esm/locale/hi.js +0 -38
- package/dist/node_modules/exceljs/node_modules/dayjs/esm/locale/hr.js +0 -53
- package/dist/node_modules/exceljs/node_modules/dayjs/esm/locale/ht.js +0 -38
- package/dist/node_modules/exceljs/node_modules/dayjs/esm/locale/hu.js +0 -61
- package/dist/node_modules/exceljs/node_modules/dayjs/esm/locale/hy-am.js +0 -39
- package/dist/node_modules/exceljs/node_modules/dayjs/esm/locale/id.js +0 -39
- package/dist/node_modules/exceljs/node_modules/dayjs/esm/locale/index.d.ts +0 -11
- package/dist/node_modules/exceljs/node_modules/dayjs/esm/locale/is.js +0 -68
- package/dist/node_modules/exceljs/node_modules/dayjs/esm/locale/it-ch.js +0 -39
- package/dist/node_modules/exceljs/node_modules/dayjs/esm/locale/it.js +0 -39
- package/dist/node_modules/exceljs/node_modules/dayjs/esm/locale/ja.js +0 -45
- package/dist/node_modules/exceljs/node_modules/dayjs/esm/locale/jv.js +0 -39
- package/dist/node_modules/exceljs/node_modules/dayjs/esm/locale/ka.js +0 -39
- package/dist/node_modules/exceljs/node_modules/dayjs/esm/locale/kk.js +0 -39
- package/dist/node_modules/exceljs/node_modules/dayjs/esm/locale/km.js +0 -39
- package/dist/node_modules/exceljs/node_modules/dayjs/esm/locale/kn.js +0 -38
- package/dist/node_modules/exceljs/node_modules/dayjs/esm/locale/ko.js +0 -45
- package/dist/node_modules/exceljs/node_modules/dayjs/esm/locale/ku.js +0 -77
- package/dist/node_modules/exceljs/node_modules/dayjs/esm/locale/ky.js +0 -39
- package/dist/node_modules/exceljs/node_modules/dayjs/esm/locale/lb.js +0 -24
- package/dist/node_modules/exceljs/node_modules/dayjs/esm/locale/lo.js +0 -38
- package/dist/node_modules/exceljs/node_modules/dayjs/esm/locale/lt.js +0 -70
- package/dist/node_modules/exceljs/node_modules/dayjs/esm/locale/lv.js +0 -39
- package/dist/node_modules/exceljs/node_modules/dayjs/esm/locale/me.js +0 -24
- package/dist/node_modules/exceljs/node_modules/dayjs/esm/locale/mi.js +0 -39
- package/dist/node_modules/exceljs/node_modules/dayjs/esm/locale/mk.js +0 -39
- package/dist/node_modules/exceljs/node_modules/dayjs/esm/locale/ml.js +0 -38
- package/dist/node_modules/exceljs/node_modules/dayjs/esm/locale/mn.js +0 -38
- package/dist/node_modules/exceljs/node_modules/dayjs/esm/locale/mr.js +0 -23
- package/dist/node_modules/exceljs/node_modules/dayjs/esm/locale/ms-my.js +0 -39
- package/dist/node_modules/exceljs/node_modules/dayjs/esm/locale/ms.js +0 -39
- package/dist/node_modules/exceljs/node_modules/dayjs/esm/locale/mt.js +0 -39
- package/dist/node_modules/exceljs/node_modules/dayjs/esm/locale/my.js +0 -39
- package/dist/node_modules/exceljs/node_modules/dayjs/esm/locale/nb.js +0 -40
- package/dist/node_modules/exceljs/node_modules/dayjs/esm/locale/ne.js +0 -40
- package/dist/node_modules/exceljs/node_modules/dayjs/esm/locale/nl-be.js +0 -39
- package/dist/node_modules/exceljs/node_modules/dayjs/esm/locale/nl.js +0 -40
- package/dist/node_modules/exceljs/node_modules/dayjs/esm/locale/nn.js +0 -39
- package/dist/node_modules/exceljs/node_modules/dayjs/esm/locale/oc-lnc.js +0 -39
- package/dist/node_modules/exceljs/node_modules/dayjs/esm/locale/pa-in.js +0 -38
- package/dist/node_modules/exceljs/node_modules/dayjs/esm/locale/pl.js +0 -87
- package/dist/node_modules/exceljs/node_modules/dayjs/esm/locale/pt-br.js +0 -38
- package/dist/node_modules/exceljs/node_modules/dayjs/esm/locale/pt.js +0 -40
- package/dist/node_modules/exceljs/node_modules/dayjs/esm/locale/rn.js +0 -39
- package/dist/node_modules/exceljs/node_modules/dayjs/esm/locale/ro.js +0 -39
- package/dist/node_modules/exceljs/node_modules/dayjs/esm/locale/ru.js +0 -99
- package/dist/node_modules/exceljs/node_modules/dayjs/esm/locale/rw.js +0 -35
- package/dist/node_modules/exceljs/node_modules/dayjs/esm/locale/sd.js +0 -39
- package/dist/node_modules/exceljs/node_modules/dayjs/esm/locale/se.js +0 -39
- package/dist/node_modules/exceljs/node_modules/dayjs/esm/locale/si.js +0 -38
- package/dist/node_modules/exceljs/node_modules/dayjs/esm/locale/sk.js +0 -121
- package/dist/node_modules/exceljs/node_modules/dayjs/esm/locale/sl.js +0 -141
- package/dist/node_modules/exceljs/node_modules/dayjs/esm/locale/sq.js +0 -39
- package/dist/node_modules/exceljs/node_modules/dayjs/esm/locale/sr-cyrl.js +0 -74
- package/dist/node_modules/exceljs/node_modules/dayjs/esm/locale/sr.js +0 -74
- package/dist/node_modules/exceljs/node_modules/dayjs/esm/locale/ss.js +0 -39
- package/dist/node_modules/exceljs/node_modules/dayjs/esm/locale/sv-fi.js +0 -46
- package/dist/node_modules/exceljs/node_modules/dayjs/esm/locale/sv.js +0 -44
- package/dist/node_modules/exceljs/node_modules/dayjs/esm/locale/sw.js +0 -39
- package/dist/node_modules/exceljs/node_modules/dayjs/esm/locale/ta.js +0 -38
- package/dist/node_modules/exceljs/node_modules/dayjs/esm/locale/te.js +0 -38
- package/dist/node_modules/exceljs/node_modules/dayjs/esm/locale/tet.js +0 -39
- package/dist/node_modules/exceljs/node_modules/dayjs/esm/locale/tg.js +0 -39
- package/dist/node_modules/exceljs/node_modules/dayjs/esm/locale/th.js +0 -38
- package/dist/node_modules/exceljs/node_modules/dayjs/esm/locale/tk.js +0 -39
- package/dist/node_modules/exceljs/node_modules/dayjs/esm/locale/tl-ph.js +0 -39
- package/dist/node_modules/exceljs/node_modules/dayjs/esm/locale/tlh.js +0 -24
- package/dist/node_modules/exceljs/node_modules/dayjs/esm/locale/tr.js +0 -39
- package/dist/node_modules/exceljs/node_modules/dayjs/esm/locale/types.d.ts +0 -33
- package/dist/node_modules/exceljs/node_modules/dayjs/esm/locale/tzl.js +0 -24
- package/dist/node_modules/exceljs/node_modules/dayjs/esm/locale/tzm-latn.js +0 -39
- package/dist/node_modules/exceljs/node_modules/dayjs/esm/locale/tzm.js +0 -39
- package/dist/node_modules/exceljs/node_modules/dayjs/esm/locale/ug-cn.js +0 -39
- package/dist/node_modules/exceljs/node_modules/dayjs/esm/locale/uk.js +0 -77
- package/dist/node_modules/exceljs/node_modules/dayjs/esm/locale/ur.js +0 -39
- package/dist/node_modules/exceljs/node_modules/dayjs/esm/locale/uz-latn.js +0 -39
- package/dist/node_modules/exceljs/node_modules/dayjs/esm/locale/uz.js +0 -39
- package/dist/node_modules/exceljs/node_modules/dayjs/esm/locale/vi.js +0 -43
- package/dist/node_modules/exceljs/node_modules/dayjs/esm/locale/x-pseudo.js +0 -39
- package/dist/node_modules/exceljs/node_modules/dayjs/esm/locale/yo.js +0 -39
- package/dist/node_modules/exceljs/node_modules/dayjs/esm/locale/zh-cn.js +0 -67
- package/dist/node_modules/exceljs/node_modules/dayjs/esm/locale/zh-hk.js +0 -65
- package/dist/node_modules/exceljs/node_modules/dayjs/esm/locale/zh-tw.js +0 -65
- package/dist/node_modules/exceljs/node_modules/dayjs/esm/locale/zh.js +0 -67
- package/dist/node_modules/exceljs/node_modules/dayjs/esm/plugin/advancedFormat/index.d.ts +0 -4
- package/dist/node_modules/exceljs/node_modules/dayjs/esm/plugin/advancedFormat/index.js +0 -66
- package/dist/node_modules/exceljs/node_modules/dayjs/esm/plugin/arraySupport/index.d.ts +0 -10
- package/dist/node_modules/exceljs/node_modules/dayjs/esm/plugin/arraySupport/index.js +0 -33
- package/dist/node_modules/exceljs/node_modules/dayjs/esm/plugin/badMutable/index.d.ts +0 -4
- package/dist/node_modules/exceljs/node_modules/dayjs/esm/plugin/badMutable/index.js +0 -61
- package/dist/node_modules/exceljs/node_modules/dayjs/esm/plugin/bigIntSupport/index.d.ts +0 -11
- package/dist/node_modules/exceljs/node_modules/dayjs/esm/plugin/bigIntSupport/index.js +0 -32
- package/dist/node_modules/exceljs/node_modules/dayjs/esm/plugin/buddhistEra/index.d.ts +0 -4
- package/dist/node_modules/exceljs/node_modules/dayjs/esm/plugin/buddhistEra/index.js +0 -21
- package/dist/node_modules/exceljs/node_modules/dayjs/esm/plugin/calendar/index.d.ts +0 -10
- package/dist/node_modules/exceljs/node_modules/dayjs/esm/plugin/calendar/index.js +0 -32
- package/dist/node_modules/exceljs/node_modules/dayjs/esm/plugin/customParseFormat/index.d.ts +0 -8
- package/dist/node_modules/exceljs/node_modules/dayjs/esm/plugin/customParseFormat/index.js +0 -333
- package/dist/node_modules/exceljs/node_modules/dayjs/esm/plugin/dayOfYear/index.d.ts +0 -11
- package/dist/node_modules/exceljs/node_modules/dayjs/esm/plugin/dayOfYear/index.js +0 -9
- package/dist/node_modules/exceljs/node_modules/dayjs/esm/plugin/devHelper/index.d.ts +0 -4
- package/dist/node_modules/exceljs/node_modules/dayjs/esm/plugin/devHelper/index.js +0 -38
- package/dist/node_modules/exceljs/node_modules/dayjs/esm/plugin/duration/index.d.ts +0 -88
- package/dist/node_modules/exceljs/node_modules/dayjs/esm/plugin/duration/index.js +0 -356
- package/dist/node_modules/exceljs/node_modules/dayjs/esm/plugin/isBetween/index.d.ts +0 -10
- package/dist/node_modules/exceljs/node_modules/dayjs/esm/plugin/isBetween/index.js +0 -10
- package/dist/node_modules/exceljs/node_modules/dayjs/esm/plugin/isLeapYear/index.d.ts +0 -10
- package/dist/node_modules/exceljs/node_modules/dayjs/esm/plugin/isLeapYear/index.js +0 -7
- package/dist/node_modules/exceljs/node_modules/dayjs/esm/plugin/isMoment/index.d.ts +0 -10
- package/dist/node_modules/exceljs/node_modules/dayjs/esm/plugin/isMoment/index.js +0 -5
- package/dist/node_modules/exceljs/node_modules/dayjs/esm/plugin/isSameOrAfter/index.d.ts +0 -10
- package/dist/node_modules/exceljs/node_modules/dayjs/esm/plugin/isSameOrAfter/index.js +0 -5
- package/dist/node_modules/exceljs/node_modules/dayjs/esm/plugin/isSameOrBefore/index.d.ts +0 -10
- package/dist/node_modules/exceljs/node_modules/dayjs/esm/plugin/isSameOrBefore/index.js +0 -5
- package/dist/node_modules/exceljs/node_modules/dayjs/esm/plugin/isToday/index.d.ts +0 -10
- package/dist/node_modules/exceljs/node_modules/dayjs/esm/plugin/isToday/index.js +0 -9
- package/dist/node_modules/exceljs/node_modules/dayjs/esm/plugin/isTomorrow/index.d.ts +0 -10
- package/dist/node_modules/exceljs/node_modules/dayjs/esm/plugin/isTomorrow/index.js +0 -9
- package/dist/node_modules/exceljs/node_modules/dayjs/esm/plugin/isYesterday/index.d.ts +0 -10
- package/dist/node_modules/exceljs/node_modules/dayjs/esm/plugin/isYesterday/index.js +0 -9
- package/dist/node_modules/exceljs/node_modules/dayjs/esm/plugin/isoWeek/index.d.ts +0 -27
- package/dist/node_modules/exceljs/node_modules/dayjs/esm/plugin/isoWeek/index.js +0 -57
- package/dist/node_modules/exceljs/node_modules/dayjs/esm/plugin/isoWeeksInYear/index.d.ts +0 -10
- package/dist/node_modules/exceljs/node_modules/dayjs/esm/plugin/isoWeeksInYear/index.js +0 -15
- package/dist/node_modules/exceljs/node_modules/dayjs/esm/plugin/localeData/index.d.ts +0 -44
- package/dist/node_modules/exceljs/node_modules/dayjs/esm/plugin/localeData/index.js +0 -114
- package/dist/node_modules/exceljs/node_modules/dayjs/esm/plugin/localizedFormat/index.d.ts +0 -4
- package/dist/node_modules/exceljs/node_modules/dayjs/esm/plugin/localizedFormat/index.js +0 -20
- package/dist/node_modules/exceljs/node_modules/dayjs/esm/plugin/localizedFormat/utils.js +0 -20
- package/dist/node_modules/exceljs/node_modules/dayjs/esm/plugin/minMax/index.d.ts +0 -22
- package/dist/node_modules/exceljs/node_modules/dayjs/esm/plugin/minMax/index.js +0 -39
- package/dist/node_modules/exceljs/node_modules/dayjs/esm/plugin/negativeYear/index.d.ts +0 -4
- package/dist/node_modules/exceljs/node_modules/dayjs/esm/plugin/negativeYear/index.js +0 -36
- package/dist/node_modules/exceljs/node_modules/dayjs/esm/plugin/objectSupport/index.d.ts +0 -48
- package/dist/node_modules/exceljs/node_modules/dayjs/esm/plugin/objectSupport/index.js +0 -97
- package/dist/node_modules/exceljs/node_modules/dayjs/esm/plugin/pluralGetSet/index.d.ts +0 -44
- package/dist/node_modules/exceljs/node_modules/dayjs/esm/plugin/pluralGetSet/index.js +0 -7
- package/dist/node_modules/exceljs/node_modules/dayjs/esm/plugin/preParsePostFormat/index.d.ts +0 -4
- package/dist/node_modules/exceljs/node_modules/dayjs/esm/plugin/preParsePostFormat/index.js +0 -40
- package/dist/node_modules/exceljs/node_modules/dayjs/esm/plugin/quarterOfYear/index.d.ts +0 -26
- package/dist/node_modules/exceljs/node_modules/dayjs/esm/plugin/quarterOfYear/index.js +0 -41
- package/dist/node_modules/exceljs/node_modules/dayjs/esm/plugin/relativeTime/index.d.ts +0 -24
- package/dist/node_modules/exceljs/node_modules/dayjs/esm/plugin/relativeTime/index.js +0 -130
- package/dist/node_modules/exceljs/node_modules/dayjs/esm/plugin/timezone/index.d.ts +0 -20
- package/dist/node_modules/exceljs/node_modules/dayjs/esm/plugin/timezone/index.js +0 -198
- package/dist/node_modules/exceljs/node_modules/dayjs/esm/plugin/toArray/index.d.ts +0 -10
- package/dist/node_modules/exceljs/node_modules/dayjs/esm/plugin/toArray/index.js +0 -7
- package/dist/node_modules/exceljs/node_modules/dayjs/esm/plugin/toObject/index.d.ts +0 -20
- package/dist/node_modules/exceljs/node_modules/dayjs/esm/plugin/toObject/index.js +0 -15
- package/dist/node_modules/exceljs/node_modules/dayjs/esm/plugin/updateLocale/index.d.ts +0 -8
- package/dist/node_modules/exceljs/node_modules/dayjs/esm/plugin/updateLocale/index.js +0 -12
- package/dist/node_modules/exceljs/node_modules/dayjs/esm/plugin/utc/index.d.ts +0 -19
- package/dist/node_modules/exceljs/node_modules/dayjs/esm/plugin/utc/index.js +0 -188
- package/dist/node_modules/exceljs/node_modules/dayjs/esm/plugin/weekOfYear/index.d.ts +0 -12
- package/dist/node_modules/exceljs/node_modules/dayjs/esm/plugin/weekOfYear/index.js +0 -44
- package/dist/node_modules/exceljs/node_modules/dayjs/esm/plugin/weekYear/index.d.ts +0 -10
- package/dist/node_modules/exceljs/node_modules/dayjs/esm/plugin/weekYear/index.js +0 -19
- package/dist/node_modules/exceljs/node_modules/dayjs/esm/plugin/weekday/index.d.ts +0 -12
- package/dist/node_modules/exceljs/node_modules/dayjs/esm/plugin/weekday/index.js +0 -15
- package/dist/node_modules/exceljs/node_modules/dayjs/esm/utils.js +0 -58
- package/dist/node_modules/exceljs/node_modules/dayjs/index.d.ts +0 -429
- package/dist/node_modules/exceljs/node_modules/dayjs/locale/af.js +0 -1
- package/dist/node_modules/exceljs/node_modules/dayjs/locale/am.js +0 -1
- package/dist/node_modules/exceljs/node_modules/dayjs/locale/ar-dz.js +0 -1
- package/dist/node_modules/exceljs/node_modules/dayjs/locale/ar-iq.js +0 -1
- package/dist/node_modules/exceljs/node_modules/dayjs/locale/ar-kw.js +0 -1
- package/dist/node_modules/exceljs/node_modules/dayjs/locale/ar-ly.js +0 -1
- package/dist/node_modules/exceljs/node_modules/dayjs/locale/ar-ma.js +0 -1
- package/dist/node_modules/exceljs/node_modules/dayjs/locale/ar-sa.js +0 -1
- package/dist/node_modules/exceljs/node_modules/dayjs/locale/ar-tn.js +0 -1
- package/dist/node_modules/exceljs/node_modules/dayjs/locale/ar.js +0 -1
- package/dist/node_modules/exceljs/node_modules/dayjs/locale/az.js +0 -1
- package/dist/node_modules/exceljs/node_modules/dayjs/locale/be.js +0 -1
- package/dist/node_modules/exceljs/node_modules/dayjs/locale/bg.js +0 -1
- package/dist/node_modules/exceljs/node_modules/dayjs/locale/bi.js +0 -1
- package/dist/node_modules/exceljs/node_modules/dayjs/locale/bm.js +0 -1
- package/dist/node_modules/exceljs/node_modules/dayjs/locale/bn-bd.js +0 -1
- package/dist/node_modules/exceljs/node_modules/dayjs/locale/bn.js +0 -1
- package/dist/node_modules/exceljs/node_modules/dayjs/locale/bo.js +0 -1
- package/dist/node_modules/exceljs/node_modules/dayjs/locale/br.js +0 -1
- package/dist/node_modules/exceljs/node_modules/dayjs/locale/bs.js +0 -1
- package/dist/node_modules/exceljs/node_modules/dayjs/locale/ca.js +0 -1
- package/dist/node_modules/exceljs/node_modules/dayjs/locale/cs.js +0 -1
- package/dist/node_modules/exceljs/node_modules/dayjs/locale/cv.js +0 -1
- package/dist/node_modules/exceljs/node_modules/dayjs/locale/cy.js +0 -1
- package/dist/node_modules/exceljs/node_modules/dayjs/locale/da.js +0 -1
- package/dist/node_modules/exceljs/node_modules/dayjs/locale/de-at.js +0 -1
- package/dist/node_modules/exceljs/node_modules/dayjs/locale/de-ch.js +0 -1
- package/dist/node_modules/exceljs/node_modules/dayjs/locale/de.js +0 -1
- package/dist/node_modules/exceljs/node_modules/dayjs/locale/dv.js +0 -1
- package/dist/node_modules/exceljs/node_modules/dayjs/locale/el.js +0 -1
- package/dist/node_modules/exceljs/node_modules/dayjs/locale/en-au.js +0 -1
- package/dist/node_modules/exceljs/node_modules/dayjs/locale/en-ca.js +0 -1
- package/dist/node_modules/exceljs/node_modules/dayjs/locale/en-gb.js +0 -1
- package/dist/node_modules/exceljs/node_modules/dayjs/locale/en-ie.js +0 -1
- package/dist/node_modules/exceljs/node_modules/dayjs/locale/en-il.js +0 -1
- package/dist/node_modules/exceljs/node_modules/dayjs/locale/en-in.js +0 -1
- package/dist/node_modules/exceljs/node_modules/dayjs/locale/en-nz.js +0 -1
- package/dist/node_modules/exceljs/node_modules/dayjs/locale/en-sg.js +0 -1
- package/dist/node_modules/exceljs/node_modules/dayjs/locale/en-tt.js +0 -1
- package/dist/node_modules/exceljs/node_modules/dayjs/locale/en.js +0 -1
- package/dist/node_modules/exceljs/node_modules/dayjs/locale/eo.js +0 -1
- package/dist/node_modules/exceljs/node_modules/dayjs/locale/es-do.js +0 -1
- package/dist/node_modules/exceljs/node_modules/dayjs/locale/es-mx.js +0 -1
- package/dist/node_modules/exceljs/node_modules/dayjs/locale/es-pr.js +0 -1
- package/dist/node_modules/exceljs/node_modules/dayjs/locale/es-us.js +0 -1
- package/dist/node_modules/exceljs/node_modules/dayjs/locale/es.js +0 -1
- package/dist/node_modules/exceljs/node_modules/dayjs/locale/et.js +0 -1
- package/dist/node_modules/exceljs/node_modules/dayjs/locale/eu.js +0 -1
- package/dist/node_modules/exceljs/node_modules/dayjs/locale/fa.js +0 -1
- package/dist/node_modules/exceljs/node_modules/dayjs/locale/fi.js +0 -1
- package/dist/node_modules/exceljs/node_modules/dayjs/locale/fo.js +0 -1
- package/dist/node_modules/exceljs/node_modules/dayjs/locale/fr-ca.js +0 -1
- package/dist/node_modules/exceljs/node_modules/dayjs/locale/fr-ch.js +0 -1
- package/dist/node_modules/exceljs/node_modules/dayjs/locale/fr.js +0 -1
- package/dist/node_modules/exceljs/node_modules/dayjs/locale/fy.js +0 -1
- package/dist/node_modules/exceljs/node_modules/dayjs/locale/ga.js +0 -1
- package/dist/node_modules/exceljs/node_modules/dayjs/locale/gd.js +0 -1
- package/dist/node_modules/exceljs/node_modules/dayjs/locale/gl.js +0 -1
- package/dist/node_modules/exceljs/node_modules/dayjs/locale/gom-latn.js +0 -1
- package/dist/node_modules/exceljs/node_modules/dayjs/locale/gu.js +0 -1
- package/dist/node_modules/exceljs/node_modules/dayjs/locale/he.js +0 -1
- package/dist/node_modules/exceljs/node_modules/dayjs/locale/hi.js +0 -1
- package/dist/node_modules/exceljs/node_modules/dayjs/locale/hr.js +0 -1
- package/dist/node_modules/exceljs/node_modules/dayjs/locale/ht.js +0 -1
- package/dist/node_modules/exceljs/node_modules/dayjs/locale/hu.js +0 -1
- package/dist/node_modules/exceljs/node_modules/dayjs/locale/hy-am.js +0 -1
- package/dist/node_modules/exceljs/node_modules/dayjs/locale/id.js +0 -1
- package/dist/node_modules/exceljs/node_modules/dayjs/locale/index.d.ts +0 -11
- package/dist/node_modules/exceljs/node_modules/dayjs/locale/is.js +0 -1
- package/dist/node_modules/exceljs/node_modules/dayjs/locale/it-ch.js +0 -1
- package/dist/node_modules/exceljs/node_modules/dayjs/locale/it.js +0 -1
- package/dist/node_modules/exceljs/node_modules/dayjs/locale/ja.js +0 -1
- package/dist/node_modules/exceljs/node_modules/dayjs/locale/jv.js +0 -1
- package/dist/node_modules/exceljs/node_modules/dayjs/locale/ka.js +0 -1
- package/dist/node_modules/exceljs/node_modules/dayjs/locale/kk.js +0 -1
- package/dist/node_modules/exceljs/node_modules/dayjs/locale/km.js +0 -1
- package/dist/node_modules/exceljs/node_modules/dayjs/locale/kn.js +0 -1
- package/dist/node_modules/exceljs/node_modules/dayjs/locale/ko.js +0 -1
- package/dist/node_modules/exceljs/node_modules/dayjs/locale/ku.js +0 -1
- package/dist/node_modules/exceljs/node_modules/dayjs/locale/ky.js +0 -1
- package/dist/node_modules/exceljs/node_modules/dayjs/locale/lb.js +0 -1
- package/dist/node_modules/exceljs/node_modules/dayjs/locale/lo.js +0 -1
- package/dist/node_modules/exceljs/node_modules/dayjs/locale/lt.js +0 -1
- package/dist/node_modules/exceljs/node_modules/dayjs/locale/lv.js +0 -1
- package/dist/node_modules/exceljs/node_modules/dayjs/locale/me.js +0 -1
- package/dist/node_modules/exceljs/node_modules/dayjs/locale/mi.js +0 -1
- package/dist/node_modules/exceljs/node_modules/dayjs/locale/mk.js +0 -1
- package/dist/node_modules/exceljs/node_modules/dayjs/locale/ml.js +0 -1
- package/dist/node_modules/exceljs/node_modules/dayjs/locale/mn.js +0 -1
- package/dist/node_modules/exceljs/node_modules/dayjs/locale/mr.js +0 -1
- package/dist/node_modules/exceljs/node_modules/dayjs/locale/ms-my.js +0 -1
- package/dist/node_modules/exceljs/node_modules/dayjs/locale/ms.js +0 -1
- package/dist/node_modules/exceljs/node_modules/dayjs/locale/mt.js +0 -1
- package/dist/node_modules/exceljs/node_modules/dayjs/locale/my.js +0 -1
- package/dist/node_modules/exceljs/node_modules/dayjs/locale/nb.js +0 -1
- package/dist/node_modules/exceljs/node_modules/dayjs/locale/ne.js +0 -1
- package/dist/node_modules/exceljs/node_modules/dayjs/locale/nl-be.js +0 -1
- package/dist/node_modules/exceljs/node_modules/dayjs/locale/nl.js +0 -1
- package/dist/node_modules/exceljs/node_modules/dayjs/locale/nn.js +0 -1
- package/dist/node_modules/exceljs/node_modules/dayjs/locale/oc-lnc.js +0 -1
- package/dist/node_modules/exceljs/node_modules/dayjs/locale/pa-in.js +0 -1
- package/dist/node_modules/exceljs/node_modules/dayjs/locale/pl.js +0 -1
- package/dist/node_modules/exceljs/node_modules/dayjs/locale/pt-br.js +0 -1
- package/dist/node_modules/exceljs/node_modules/dayjs/locale/pt.js +0 -1
- package/dist/node_modules/exceljs/node_modules/dayjs/locale/rn.js +0 -1
- package/dist/node_modules/exceljs/node_modules/dayjs/locale/ro.js +0 -1
- package/dist/node_modules/exceljs/node_modules/dayjs/locale/ru.js +0 -1
- package/dist/node_modules/exceljs/node_modules/dayjs/locale/rw.js +0 -1
- package/dist/node_modules/exceljs/node_modules/dayjs/locale/sd.js +0 -1
- package/dist/node_modules/exceljs/node_modules/dayjs/locale/se.js +0 -1
- package/dist/node_modules/exceljs/node_modules/dayjs/locale/si.js +0 -1
- package/dist/node_modules/exceljs/node_modules/dayjs/locale/sk.js +0 -1
- package/dist/node_modules/exceljs/node_modules/dayjs/locale/sl.js +0 -1
- package/dist/node_modules/exceljs/node_modules/dayjs/locale/sq.js +0 -1
- package/dist/node_modules/exceljs/node_modules/dayjs/locale/sr-cyrl.js +0 -1
- package/dist/node_modules/exceljs/node_modules/dayjs/locale/sr.js +0 -1
- package/dist/node_modules/exceljs/node_modules/dayjs/locale/ss.js +0 -1
- package/dist/node_modules/exceljs/node_modules/dayjs/locale/sv-fi.js +0 -1
- package/dist/node_modules/exceljs/node_modules/dayjs/locale/sv.js +0 -1
- package/dist/node_modules/exceljs/node_modules/dayjs/locale/sw.js +0 -1
- package/dist/node_modules/exceljs/node_modules/dayjs/locale/ta.js +0 -1
- package/dist/node_modules/exceljs/node_modules/dayjs/locale/te.js +0 -1
- package/dist/node_modules/exceljs/node_modules/dayjs/locale/tet.js +0 -1
- package/dist/node_modules/exceljs/node_modules/dayjs/locale/tg.js +0 -1
- package/dist/node_modules/exceljs/node_modules/dayjs/locale/th.js +0 -1
- package/dist/node_modules/exceljs/node_modules/dayjs/locale/tk.js +0 -1
- package/dist/node_modules/exceljs/node_modules/dayjs/locale/tl-ph.js +0 -1
- package/dist/node_modules/exceljs/node_modules/dayjs/locale/tlh.js +0 -1
- package/dist/node_modules/exceljs/node_modules/dayjs/locale/tr.js +0 -1
- package/dist/node_modules/exceljs/node_modules/dayjs/locale/types.d.ts +0 -33
- package/dist/node_modules/exceljs/node_modules/dayjs/locale/tzl.js +0 -1
- package/dist/node_modules/exceljs/node_modules/dayjs/locale/tzm-latn.js +0 -1
- package/dist/node_modules/exceljs/node_modules/dayjs/locale/tzm.js +0 -1
- package/dist/node_modules/exceljs/node_modules/dayjs/locale/ug-cn.js +0 -1
- package/dist/node_modules/exceljs/node_modules/dayjs/locale/uk.js +0 -1
- package/dist/node_modules/exceljs/node_modules/dayjs/locale/ur.js +0 -1
- package/dist/node_modules/exceljs/node_modules/dayjs/locale/uz-latn.js +0 -1
- package/dist/node_modules/exceljs/node_modules/dayjs/locale/uz.js +0 -1
- package/dist/node_modules/exceljs/node_modules/dayjs/locale/vi.js +0 -1
- package/dist/node_modules/exceljs/node_modules/dayjs/locale/x-pseudo.js +0 -1
- package/dist/node_modules/exceljs/node_modules/dayjs/locale/yo.js +0 -1
- package/dist/node_modules/exceljs/node_modules/dayjs/locale/zh-cn.js +0 -1
- package/dist/node_modules/exceljs/node_modules/dayjs/locale/zh-hk.js +0 -1
- package/dist/node_modules/exceljs/node_modules/dayjs/locale/zh-tw.js +0 -1
- package/dist/node_modules/exceljs/node_modules/dayjs/locale/zh.js +0 -1
- package/dist/node_modules/exceljs/node_modules/dayjs/locale.json +0 -1
- package/dist/node_modules/exceljs/node_modules/dayjs/package.json +0 -84
- package/dist/node_modules/exceljs/node_modules/dayjs/plugin/advancedFormat.d.ts +0 -4
- package/dist/node_modules/exceljs/node_modules/dayjs/plugin/advancedFormat.js +0 -1
- package/dist/node_modules/exceljs/node_modules/dayjs/plugin/arraySupport.d.ts +0 -10
- package/dist/node_modules/exceljs/node_modules/dayjs/plugin/arraySupport.js +0 -1
- package/dist/node_modules/exceljs/node_modules/dayjs/plugin/badMutable.d.ts +0 -4
- package/dist/node_modules/exceljs/node_modules/dayjs/plugin/badMutable.js +0 -1
- package/dist/node_modules/exceljs/node_modules/dayjs/plugin/bigIntSupport.d.ts +0 -11
- package/dist/node_modules/exceljs/node_modules/dayjs/plugin/bigIntSupport.js +0 -1
- package/dist/node_modules/exceljs/node_modules/dayjs/plugin/buddhistEra.d.ts +0 -4
- package/dist/node_modules/exceljs/node_modules/dayjs/plugin/buddhistEra.js +0 -1
- package/dist/node_modules/exceljs/node_modules/dayjs/plugin/calendar.d.ts +0 -10
- package/dist/node_modules/exceljs/node_modules/dayjs/plugin/calendar.js +0 -1
- package/dist/node_modules/exceljs/node_modules/dayjs/plugin/customParseFormat.d.ts +0 -8
- package/dist/node_modules/exceljs/node_modules/dayjs/plugin/customParseFormat.js +0 -1
- package/dist/node_modules/exceljs/node_modules/dayjs/plugin/dayOfYear.d.ts +0 -11
- package/dist/node_modules/exceljs/node_modules/dayjs/plugin/dayOfYear.js +0 -1
- package/dist/node_modules/exceljs/node_modules/dayjs/plugin/devHelper.d.ts +0 -4
- package/dist/node_modules/exceljs/node_modules/dayjs/plugin/devHelper.js +0 -1
- package/dist/node_modules/exceljs/node_modules/dayjs/plugin/duration.d.ts +0 -88
- package/dist/node_modules/exceljs/node_modules/dayjs/plugin/duration.js +0 -1
- package/dist/node_modules/exceljs/node_modules/dayjs/plugin/isBetween.d.ts +0 -10
- package/dist/node_modules/exceljs/node_modules/dayjs/plugin/isBetween.js +0 -1
- package/dist/node_modules/exceljs/node_modules/dayjs/plugin/isLeapYear.d.ts +0 -10
- package/dist/node_modules/exceljs/node_modules/dayjs/plugin/isLeapYear.js +0 -1
- package/dist/node_modules/exceljs/node_modules/dayjs/plugin/isMoment.d.ts +0 -10
- package/dist/node_modules/exceljs/node_modules/dayjs/plugin/isMoment.js +0 -1
- package/dist/node_modules/exceljs/node_modules/dayjs/plugin/isSameOrAfter.d.ts +0 -10
- package/dist/node_modules/exceljs/node_modules/dayjs/plugin/isSameOrAfter.js +0 -1
- package/dist/node_modules/exceljs/node_modules/dayjs/plugin/isSameOrBefore.d.ts +0 -10
- package/dist/node_modules/exceljs/node_modules/dayjs/plugin/isSameOrBefore.js +0 -1
- package/dist/node_modules/exceljs/node_modules/dayjs/plugin/isToday.d.ts +0 -10
- package/dist/node_modules/exceljs/node_modules/dayjs/plugin/isToday.js +0 -1
- package/dist/node_modules/exceljs/node_modules/dayjs/plugin/isTomorrow.d.ts +0 -10
- package/dist/node_modules/exceljs/node_modules/dayjs/plugin/isTomorrow.js +0 -1
- package/dist/node_modules/exceljs/node_modules/dayjs/plugin/isYesterday.d.ts +0 -10
- package/dist/node_modules/exceljs/node_modules/dayjs/plugin/isYesterday.js +0 -1
- package/dist/node_modules/exceljs/node_modules/dayjs/plugin/isoWeek.d.ts +0 -27
- package/dist/node_modules/exceljs/node_modules/dayjs/plugin/isoWeek.js +0 -1
- package/dist/node_modules/exceljs/node_modules/dayjs/plugin/isoWeeksInYear.d.ts +0 -10
- package/dist/node_modules/exceljs/node_modules/dayjs/plugin/isoWeeksInYear.js +0 -1
- package/dist/node_modules/exceljs/node_modules/dayjs/plugin/localeData.d.ts +0 -44
- package/dist/node_modules/exceljs/node_modules/dayjs/plugin/localeData.js +0 -1
- package/dist/node_modules/exceljs/node_modules/dayjs/plugin/localizedFormat.d.ts +0 -4
- package/dist/node_modules/exceljs/node_modules/dayjs/plugin/localizedFormat.js +0 -1
- package/dist/node_modules/exceljs/node_modules/dayjs/plugin/minMax.d.ts +0 -22
- package/dist/node_modules/exceljs/node_modules/dayjs/plugin/minMax.js +0 -1
- package/dist/node_modules/exceljs/node_modules/dayjs/plugin/negativeYear.d.ts +0 -4
- package/dist/node_modules/exceljs/node_modules/dayjs/plugin/negativeYear.js +0 -1
- package/dist/node_modules/exceljs/node_modules/dayjs/plugin/objectSupport.d.ts +0 -48
- package/dist/node_modules/exceljs/node_modules/dayjs/plugin/objectSupport.js +0 -1
- package/dist/node_modules/exceljs/node_modules/dayjs/plugin/pluralGetSet.d.ts +0 -44
- package/dist/node_modules/exceljs/node_modules/dayjs/plugin/pluralGetSet.js +0 -1
- package/dist/node_modules/exceljs/node_modules/dayjs/plugin/preParsePostFormat.d.ts +0 -4
- package/dist/node_modules/exceljs/node_modules/dayjs/plugin/preParsePostFormat.js +0 -1
- package/dist/node_modules/exceljs/node_modules/dayjs/plugin/quarterOfYear.d.ts +0 -26
- package/dist/node_modules/exceljs/node_modules/dayjs/plugin/quarterOfYear.js +0 -1
- package/dist/node_modules/exceljs/node_modules/dayjs/plugin/relativeTime.d.ts +0 -24
- package/dist/node_modules/exceljs/node_modules/dayjs/plugin/relativeTime.js +0 -1
- package/dist/node_modules/exceljs/node_modules/dayjs/plugin/timezone.d.ts +0 -20
- package/dist/node_modules/exceljs/node_modules/dayjs/plugin/timezone.js +0 -1
- package/dist/node_modules/exceljs/node_modules/dayjs/plugin/toArray.d.ts +0 -10
- package/dist/node_modules/exceljs/node_modules/dayjs/plugin/toArray.js +0 -1
- package/dist/node_modules/exceljs/node_modules/dayjs/plugin/toObject.d.ts +0 -20
- package/dist/node_modules/exceljs/node_modules/dayjs/plugin/toObject.js +0 -1
- package/dist/node_modules/exceljs/node_modules/dayjs/plugin/updateLocale.d.ts +0 -8
- package/dist/node_modules/exceljs/node_modules/dayjs/plugin/updateLocale.js +0 -1
- package/dist/node_modules/exceljs/node_modules/dayjs/plugin/utc.d.ts +0 -19
- package/dist/node_modules/exceljs/node_modules/dayjs/plugin/utc.js +0 -1
- package/dist/node_modules/exceljs/node_modules/dayjs/plugin/weekOfYear.d.ts +0 -12
- package/dist/node_modules/exceljs/node_modules/dayjs/plugin/weekOfYear.js +0 -1
- package/dist/node_modules/exceljs/node_modules/dayjs/plugin/weekYear.d.ts +0 -10
- package/dist/node_modules/exceljs/node_modules/dayjs/plugin/weekYear.js +0 -1
- package/dist/node_modules/exceljs/node_modules/dayjs/plugin/weekday.d.ts +0 -12
- package/dist/node_modules/exceljs/node_modules/dayjs/plugin/weekday.js +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"name":"exceljs","version":"4.4.0","description":"Excel Workbook Manager - Read and Write xlsx and csv Files.","private":false,"license":"MIT","author":{"name":"Guyon Roche","email":"guyon@live.com"},"repository":{"type":"git","url":"https://github.com/exceljs/exceljs.git"},"engines":{"node":">=8.3.0"},"main":"./excel.js","browser":"./dist/exceljs.min.js","types":"./index.d.ts","files":["dist","lib","excel.js","LICENSE","README.md","README_zh.md","index.ts","index.d.ts"],"scripts":{"test":"npm run test:full","test:es5":"export EXCEL_BUILD=es5 && npm run test:full","test:full":"npm run build && npm run test:unit && npm run test:integration && npm run test:end-to-end && npm run test:jasmine","test:version":"npm run build && npm run test:unit && npm run test:integration && npm run test:end-to-end && npm run test:browser && npm run test:dist","test:all":"npm run test:native && npm run test:es5","test:native":"npm run test:full","test:unit":"mocha --require spec/config/setup --require spec/config/setup-unit spec/unit --recursive","test:integration":"mocha --require spec/config/setup spec/integration --recursive","test:end-to-end":"mocha --require spec/config/setup spec/end-to-end --recursive","test:browser":"if [ ! -f .disable-test-browser ]; then npm run build && npm run test:jasmine; fi","test:jasmine":"grunt jasmine","test:unit:es5":"export EXCEL_BUILD=es5 && npm run test:unit","test:integration:es5":"export EXCEL_BUILD=es5 && npm run test:integration","test:end-to-end:es5":"export EXCEL_BUILD=es5 && npm run test:end-to-end","test:dist":"mocha --require spec/config/setup spec/dist --recursive","test:manual":"node spec/manual/app.js","test:typescript":"mocha -r ts-node/register spec/typescript/**/*.spec.ts","clean-build":"npm run clean && npm run build","lint":"eslint --format node_modules/eslint-friendly-formatter .","lint:fix":"prettier-eslint --write $(pwd)'/**/*.js'","lint:staged":"lint-staged","clean":"rm -rf build/ && rm -rf dist","benchmark":"node --expose-gc benchmark","benchmark:debug":"node --expose-gc --inspect-brk --trace-deopt benchmark","build":"grunt build","install-build":"npm install && grunt build","preversion":"npm run clean && npm run build && npm run test:version","postversion":"git push --no-verify && git push --tags --no-verify"},"husky":{"hooks":{"pre-commit":"lint-staged"}},"lint-staged":{"*.js":["prettier-eslint --write","eslint --format node_modules/eslint-friendly-formatter","git add"]},"keywords":["xlsx","json","csv","excel","font","border","fill","number","format","number format","alignment","office","spreadsheet","workbook","defined names","data validations","rich text","in-cell format","outlineLevel","views","frozen","split","pageSetup"],"dependencies":{"archiver":"^5.0.0","dayjs":"^1.8.34","fast-csv":"^4.3.1","jszip":"^3.10.1","readable-stream":"^3.6.0","saxes":"^5.0.1","tmp":"^0.2.0","unzipper":"^0.10.11","uuid":"^8.3.0"},"devDependencies":{"@babel/cli":"^7.10.5","@babel/core":"^7.11.4","@babel/preset-env":"^7.11.0","@types/chai":"^4.2.12","@types/mocha":"^8.0.3","@types/node":"^14.11.2","babelify":"^10.0.0","browserify":"^16.5.2","chai":"^4.2.0","chai-datetime":"^1.7.0","chai-xml":"^0.3.2","core-js":"^3.6.5","dirty-chai":"^2.0.1","eslint":"^6.5.1","eslint-config-airbnb-base":"^14.2.0","eslint-config-prettier":"^6.12.0","eslint-friendly-formatter":"^4.0.1","eslint-plugin-import":"^2.22.0","eslint-plugin-node":"^11.1.0","express":"^4.16.4","got":"^9.0.0","grunt":"^1.3.0","grunt-babel":"^8.0.0","grunt-browserify":"^5.3.0","grunt-contrib-copy":"^1.0.0","grunt-contrib-jasmine":"^2.2.0","grunt-contrib-watch":"^1.1.0","grunt-exorcise":"^2.1.1","grunt-terser":"^1.0.0","husky":"^4.3.0","lint-staged":"^10.2.13","mocha":"^7.2.0","prettier-eslint":"^11.0.0","prettier-eslint-cli":"^5.0.0","regenerator-runtime":"^0.13.7","sax":"^1.2.4","ts-node":"^8.10.2","typescript":"^3.9.7"},"_lastModified":"2025-
|
|
1
|
+
{"name":"exceljs","version":"4.4.0","description":"Excel Workbook Manager - Read and Write xlsx and csv Files.","private":false,"license":"MIT","author":{"name":"Guyon Roche","email":"guyon@live.com"},"repository":{"type":"git","url":"https://github.com/exceljs/exceljs.git"},"engines":{"node":">=8.3.0"},"main":"./excel.js","browser":"./dist/exceljs.min.js","types":"./index.d.ts","files":["dist","lib","excel.js","LICENSE","README.md","README_zh.md","index.ts","index.d.ts"],"scripts":{"test":"npm run test:full","test:es5":"export EXCEL_BUILD=es5 && npm run test:full","test:full":"npm run build && npm run test:unit && npm run test:integration && npm run test:end-to-end && npm run test:jasmine","test:version":"npm run build && npm run test:unit && npm run test:integration && npm run test:end-to-end && npm run test:browser && npm run test:dist","test:all":"npm run test:native && npm run test:es5","test:native":"npm run test:full","test:unit":"mocha --require spec/config/setup --require spec/config/setup-unit spec/unit --recursive","test:integration":"mocha --require spec/config/setup spec/integration --recursive","test:end-to-end":"mocha --require spec/config/setup spec/end-to-end --recursive","test:browser":"if [ ! -f .disable-test-browser ]; then npm run build && npm run test:jasmine; fi","test:jasmine":"grunt jasmine","test:unit:es5":"export EXCEL_BUILD=es5 && npm run test:unit","test:integration:es5":"export EXCEL_BUILD=es5 && npm run test:integration","test:end-to-end:es5":"export EXCEL_BUILD=es5 && npm run test:end-to-end","test:dist":"mocha --require spec/config/setup spec/dist --recursive","test:manual":"node spec/manual/app.js","test:typescript":"mocha -r ts-node/register spec/typescript/**/*.spec.ts","clean-build":"npm run clean && npm run build","lint":"eslint --format node_modules/eslint-friendly-formatter .","lint:fix":"prettier-eslint --write $(pwd)'/**/*.js'","lint:staged":"lint-staged","clean":"rm -rf build/ && rm -rf dist","benchmark":"node --expose-gc benchmark","benchmark:debug":"node --expose-gc --inspect-brk --trace-deopt benchmark","build":"grunt build","install-build":"npm install && grunt build","preversion":"npm run clean && npm run build && npm run test:version","postversion":"git push --no-verify && git push --tags --no-verify"},"husky":{"hooks":{"pre-commit":"lint-staged"}},"lint-staged":{"*.js":["prettier-eslint --write","eslint --format node_modules/eslint-friendly-formatter","git add"]},"keywords":["xlsx","json","csv","excel","font","border","fill","number","format","number format","alignment","office","spreadsheet","workbook","defined names","data validations","rich text","in-cell format","outlineLevel","views","frozen","split","pageSetup"],"dependencies":{"archiver":"^5.0.0","dayjs":"^1.8.34","fast-csv":"^4.3.1","jszip":"^3.10.1","readable-stream":"^3.6.0","saxes":"^5.0.1","tmp":"^0.2.0","unzipper":"^0.10.11","uuid":"^8.3.0"},"devDependencies":{"@babel/cli":"^7.10.5","@babel/core":"^7.11.4","@babel/preset-env":"^7.11.0","@types/chai":"^4.2.12","@types/mocha":"^8.0.3","@types/node":"^14.11.2","babelify":"^10.0.0","browserify":"^16.5.2","chai":"^4.2.0","chai-datetime":"^1.7.0","chai-xml":"^0.3.2","core-js":"^3.6.5","dirty-chai":"^2.0.1","eslint":"^6.5.1","eslint-config-airbnb-base":"^14.2.0","eslint-config-prettier":"^6.12.0","eslint-friendly-formatter":"^4.0.1","eslint-plugin-import":"^2.22.0","eslint-plugin-node":"^11.1.0","express":"^4.16.4","got":"^9.0.0","grunt":"^1.3.0","grunt-babel":"^8.0.0","grunt-browserify":"^5.3.0","grunt-contrib-copy":"^1.0.0","grunt-contrib-jasmine":"^2.2.0","grunt-contrib-watch":"^1.1.0","grunt-exorcise":"^2.1.1","grunt-terser":"^1.0.0","husky":"^4.3.0","lint-staged":"^10.2.13","mocha":"^7.2.0","prettier-eslint":"^11.0.0","prettier-eslint-cli":"^5.0.0","regenerator-runtime":"^0.13.7","sax":"^1.2.4","ts-node":"^8.10.2","typescript":"^3.9.7"},"_lastModified":"2025-04-18T01:02:01.860Z"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"name":"xlsx","version":"0.20.2","author":"sheetjs","description":"SheetJS Spreadsheet data parser and writer","keywords":["excel","xls","xlsx","xlsb","xlsm","ods","csv","dbf","dif","sylk","office","spreadsheet"],"bin":{"xlsx":"./bin/xlsx.njs"},"main":"xlsx.js","module":"xlsx.mjs","unpkg":"dist/xlsx.full.min.js","jsdelivr":"dist/xlsx.full.min.js","types":"types/index.d.ts","exports":{".":{"import":"./xlsx.mjs","require":"./xlsx.js","types":"./types/index.d.ts"},"./xlsx.mjs":{"import":"./xlsx.mjs","types":"./types/index.d.ts"},"./xlsx.js":{"require":"./xlsx.js","types":"./types/index.d.ts"},"./dist/xlsx.core.min":{"import":"./dist/xlsx.core.min.js","require":"./dist/xlsx.core.min.js","types":"./types/index.d.ts"},"./dist/xlsx.core.min.js":{"import":"./dist/xlsx.core.min.js","require":"./dist/xlsx.core.min.js","types":"./types/index.d.ts"},"./dist/xlsx.full.min":{"import":"./dist/xlsx.full.min.js","require":"./dist/xlsx.full.min.js","types":"./types/index.d.ts"},"./dist/xlsx.full.min.js":{"import":"./dist/xlsx.full.min.js","require":"./dist/xlsx.full.min.js","types":"./types/index.d.ts"},"./dist/xlsx.mini.min":{"import":"./dist/xlsx.mini.min.js","require":"./dist/xlsx.mini.min.js","types":"./types/index.d.ts"},"./dist/xlsx.mini.min.js":{"import":"./dist/xlsx.mini.min.js","require":"./dist/xlsx.mini.min.js","types":"./types/index.d.ts"},"./dist/xlsx.zahl":{"import":"./dist/xlsx.zahl.mjs","require":"./dist/xlsx.zahl.js","types":"./dist/zahl.d.ts"},"./dist/xlsx.zahl.mjs":{"import":"./dist/xlsx.zahl.mjs","types":"./dist/zahl.d.ts"},"./dist/xlsx.zahl.js":{"require":"./dist/xlsx.zahl.js","types":"./dist/zahl.d.ts"},"./dist/cpexcel":{"import":"./dist/cpexcel.full.mjs","require":"./dist/cpexcel.js","types":"./dist/cpexcel.d.ts"},"./dist/cpexcel.js":{"require":"./dist/cpexcel.js","types":"./dist/cpexcel.d.ts"},"./dist/cpexcel.full":{"import":"./dist/cpexcel.full.mjs","require":"./dist/cpexcel.js","types":"./dist/cpexcel.d.ts"},"./dist/cpexcel.full.mjs":{"import":"./dist/cpexcel.full.mjs","types":"./dist/cpexcel.d.ts"}},"browser":{"buffer":false,"crypto":false,"stream":false,"process":false,"fs":false},"sideEffects":false,"dependencies":{},"devDependencies":{"@sheetjs/uglify-js":"~2.7.3","@types/node":"^8.5.9","acorn":"7.4.1","adler-32":"~1.3.1","alex":"8.1.1","blanket":"~1.2.3","cfb":"~1.2.2","codepage":"~1.15.0","commander":"~2.17.1","crc-32":"~1.2.2","dtslint":"^0.1.2","eslint":"7.23.0","eslint-plugin-html":"^6.1.2","eslint-plugin-json":"^2.1.2","exit-on-epipe":"~1.0.1","fflate":"^0.7.1","jsdom":"~11.1.0","markdown-spellcheck":"^1.3.1","mocha":"~2.5.3","sinon":"^1.17.7","ssf":"~0.11.2","typescript":"2.2.0","wmf":"~1.0.1","word":"~0.3.0"},"repository":{"type":"git","url":"https://git.sheetjs.com/SheetJS/sheetjs"},"scripts":{"pretest":"npm run lint","test":"npm run tests-only","pretest-only":"git submodule init && git submodule update","tests-only":"make travis","build":"make","lint":"make fullint","dtslint":"dtslint types"},"config":{"blanket":{"pattern":"xlsx.js"}},"alex":{"allow":["chinese","special","simple","just","crash","wtf","holes"]},"homepage":"https://sheetjs.com/","files":["CHANGELOG.md","LICENSE","README.md","bower.json","package.json","xlsx.js","xlsx.mjs","xlsxworker.js","bin/xlsx.njs","dist/LICENSE","dist/*.mjs","dist/*.js","dist/*.map","dist/*.d.ts","types/index.d.ts","types/tsconfig.json"],"bugs":{"url":"https://git.sheetjs.com/SheetJS/sheetjs/issues"},"license":"Apache-2.0","engines":{"node":">=0.8"},"_lastModified":"2025-
|
|
1
|
+
{"name":"xlsx","version":"0.20.2","author":"sheetjs","description":"SheetJS Spreadsheet data parser and writer","keywords":["excel","xls","xlsx","xlsb","xlsm","ods","csv","dbf","dif","sylk","office","spreadsheet"],"bin":{"xlsx":"./bin/xlsx.njs"},"main":"xlsx.js","module":"xlsx.mjs","unpkg":"dist/xlsx.full.min.js","jsdelivr":"dist/xlsx.full.min.js","types":"types/index.d.ts","exports":{".":{"import":"./xlsx.mjs","require":"./xlsx.js","types":"./types/index.d.ts"},"./xlsx.mjs":{"import":"./xlsx.mjs","types":"./types/index.d.ts"},"./xlsx.js":{"require":"./xlsx.js","types":"./types/index.d.ts"},"./dist/xlsx.core.min":{"import":"./dist/xlsx.core.min.js","require":"./dist/xlsx.core.min.js","types":"./types/index.d.ts"},"./dist/xlsx.core.min.js":{"import":"./dist/xlsx.core.min.js","require":"./dist/xlsx.core.min.js","types":"./types/index.d.ts"},"./dist/xlsx.full.min":{"import":"./dist/xlsx.full.min.js","require":"./dist/xlsx.full.min.js","types":"./types/index.d.ts"},"./dist/xlsx.full.min.js":{"import":"./dist/xlsx.full.min.js","require":"./dist/xlsx.full.min.js","types":"./types/index.d.ts"},"./dist/xlsx.mini.min":{"import":"./dist/xlsx.mini.min.js","require":"./dist/xlsx.mini.min.js","types":"./types/index.d.ts"},"./dist/xlsx.mini.min.js":{"import":"./dist/xlsx.mini.min.js","require":"./dist/xlsx.mini.min.js","types":"./types/index.d.ts"},"./dist/xlsx.zahl":{"import":"./dist/xlsx.zahl.mjs","require":"./dist/xlsx.zahl.js","types":"./dist/zahl.d.ts"},"./dist/xlsx.zahl.mjs":{"import":"./dist/xlsx.zahl.mjs","types":"./dist/zahl.d.ts"},"./dist/xlsx.zahl.js":{"require":"./dist/xlsx.zahl.js","types":"./dist/zahl.d.ts"},"./dist/cpexcel":{"import":"./dist/cpexcel.full.mjs","require":"./dist/cpexcel.js","types":"./dist/cpexcel.d.ts"},"./dist/cpexcel.js":{"require":"./dist/cpexcel.js","types":"./dist/cpexcel.d.ts"},"./dist/cpexcel.full":{"import":"./dist/cpexcel.full.mjs","require":"./dist/cpexcel.js","types":"./dist/cpexcel.d.ts"},"./dist/cpexcel.full.mjs":{"import":"./dist/cpexcel.full.mjs","types":"./dist/cpexcel.d.ts"}},"browser":{"buffer":false,"crypto":false,"stream":false,"process":false,"fs":false},"sideEffects":false,"dependencies":{},"devDependencies":{"@sheetjs/uglify-js":"~2.7.3","@types/node":"^8.5.9","acorn":"7.4.1","adler-32":"~1.3.1","alex":"8.1.1","blanket":"~1.2.3","cfb":"~1.2.2","codepage":"~1.15.0","commander":"~2.17.1","crc-32":"~1.2.2","dtslint":"^0.1.2","eslint":"7.23.0","eslint-plugin-html":"^6.1.2","eslint-plugin-json":"^2.1.2","exit-on-epipe":"~1.0.1","fflate":"^0.7.1","jsdom":"~11.1.0","markdown-spellcheck":"^1.3.1","mocha":"~2.5.3","sinon":"^1.17.7","ssf":"~0.11.2","typescript":"2.2.0","wmf":"~1.0.1","word":"~0.3.0"},"repository":{"type":"git","url":"https://git.sheetjs.com/SheetJS/sheetjs"},"scripts":{"pretest":"npm run lint","test":"npm run tests-only","pretest-only":"git submodule init && git submodule update","tests-only":"make travis","build":"make","lint":"make fullint","dtslint":"dtslint types"},"config":{"blanket":{"pattern":"xlsx.js"}},"alex":{"allow":["chinese","special","simple","just","crash","wtf","holes"]},"homepage":"https://sheetjs.com/","files":["CHANGELOG.md","LICENSE","README.md","bower.json","package.json","xlsx.js","xlsx.mjs","xlsxworker.js","bin/xlsx.njs","dist/LICENSE","dist/*.mjs","dist/*.js","dist/*.map","dist/*.d.ts","types/index.d.ts","types/tsconfig.json"],"bugs":{"url":"https://git.sheetjs.com/SheetJS/sheetjs/issues"},"license":"Apache-2.0","engines":{"node":">=0.8"},"_lastModified":"2025-04-18T01:02:03.521Z"}
|
|
@@ -56,7 +56,8 @@ async function importXlsxAction(ctx, next) {
|
|
|
56
56
|
}
|
|
57
57
|
const workbook = import_xlsx.default.read(ctx.file.buffer, {
|
|
58
58
|
type: "buffer",
|
|
59
|
-
sheetRows: readLimit
|
|
59
|
+
sheetRows: readLimit,
|
|
60
|
+
cellDates: true
|
|
60
61
|
});
|
|
61
62
|
const repository = ctx.getCurrentRepository();
|
|
62
63
|
const dataSource = ctx.dataSource;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
{
|
|
2
2
|
"Yes": "Ja",
|
|
3
3
|
"No": "Nee",
|
|
4
|
-
"can not find value": "
|
|
5
|
-
"password is empty": "
|
|
6
|
-
"Incorrect time format": "
|
|
7
|
-
"Incorrect date format": "
|
|
8
|
-
"Incorrect email format": "
|
|
9
|
-
"Illegal percentage format": "
|
|
10
|
-
}
|
|
4
|
+
"can not find value": "Kan waarde niet vinden",
|
|
5
|
+
"password is empty": "Wachtwoord is leeg",
|
|
6
|
+
"Incorrect time format": "Onjuist tijdformaat",
|
|
7
|
+
"Incorrect date format": "Onjuist datumformaat",
|
|
8
|
+
"Incorrect email format": "Onjuist e-mailformaat",
|
|
9
|
+
"Illegal percentage format": "Ongeldig percentageformaat"
|
|
10
|
+
}
|
package/package.json
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
"displayName.zh-CN": "操作:导入记录",
|
|
5
5
|
"description": "Import records using excel templates. You can configure which fields to import and templates will be generated automatically.",
|
|
6
6
|
"description.zh-CN": "使用 Excel 模板导入数据,可以配置导入哪些字段,自动生成模板。",
|
|
7
|
-
"version": "1.7.0-beta.
|
|
7
|
+
"version": "1.7.0-beta.20",
|
|
8
8
|
"license": "AGPL-3.0",
|
|
9
9
|
"main": "./dist/server/index.js",
|
|
10
10
|
"homepage": "https://docs.nocobase.com/handbook/action-import",
|
|
@@ -36,7 +36,7 @@
|
|
|
36
36
|
"@nocobase/test": "1.x",
|
|
37
37
|
"@nocobase/utils": "1.x"
|
|
38
38
|
},
|
|
39
|
-
"gitHead": "
|
|
39
|
+
"gitHead": "178910a2afe33bd4850e2519507d32b631a380fc",
|
|
40
40
|
"keywords": [
|
|
41
41
|
"Actions"
|
|
42
42
|
]
|
|
@@ -1 +0,0 @@
|
|
|
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=e()}(this,(function(){"use strict";var t=1e3,e=6e4,n=36e5,r="millisecond",i="second",s="minute",u="hour",a="day",o="week",c="month",f="quarter",h="year",d="date",l="Invalid Date",$=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,y=/\[([^\]]+)]|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,M={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(t){var e=["th","st","nd","rd"],n=t%100;return"["+t+(e[(n-20)%10]||e[n]||e[0])+"]"}},m=function(t,e,n){var r=String(t);return!r||r.length>=e?t:""+Array(e+1-r.length).join(n)+t},v={s:m,z:function(t){var e=-t.utcOffset(),n=Math.abs(e),r=Math.floor(n/60),i=n%60;return(e<=0?"+":"-")+m(r,2,"0")+":"+m(i,2,"0")},m:function t(e,n){if(e.date()<n.date())return-t(n,e);var r=12*(n.year()-e.year())+(n.month()-e.month()),i=e.clone().add(r,c),s=n-i<0,u=e.clone().add(r+(s?-1:1),c);return+(-(r+(n-i)/(s?i-u:u-i))||0)},a:function(t){return t<0?Math.ceil(t)||0:Math.floor(t)},p:function(t){return{M:c,y:h,w:o,d:a,D:d,h:u,m:s,s:i,ms:r,Q:f}[t]||String(t||"").toLowerCase().replace(/s$/,"")},u:function(t){return void 0===t}},g="en",D={};D[g]=M;var p="$isDayjsObject",S=function(t){return t instanceof _||!(!t||!t[p])},w=function t(e,n,r){var i;if(!e)return g;if("string"==typeof e){var s=e.toLowerCase();D[s]&&(i=s),n&&(D[s]=n,i=s);var u=e.split("-");if(!i&&u.length>1)return t(u[0])}else{var a=e.name;D[a]=e,i=a}return!r&&i&&(g=i),i||!r&&g},O=function(t,e){if(S(t))return t.clone();var n="object"==typeof e?e:{};return n.date=t,n.args=arguments,new _(n)},b=v;b.l=w,b.i=S,b.w=function(t,e){return O(t,{locale:e.$L,utc:e.$u,x:e.$x,$offset:e.$offset})};var _=function(){function M(t){this.$L=w(t.locale,null,!0),this.parse(t),this.$x=this.$x||t.x||{},this[p]=!0}var m=M.prototype;return m.parse=function(t){this.$d=function(t){var e=t.date,n=t.utc;if(null===e)return new Date(NaN);if(b.u(e))return new Date;if(e instanceof Date)return new Date(e);if("string"==typeof e&&!/Z$/i.test(e)){var r=e.match($);if(r){var i=r[2]-1||0,s=(r[7]||"0").substring(0,3);return n?new Date(Date.UTC(r[1],i,r[3]||1,r[4]||0,r[5]||0,r[6]||0,s)):new Date(r[1],i,r[3]||1,r[4]||0,r[5]||0,r[6]||0,s)}}return new Date(e)}(t),this.init()},m.init=function(){var t=this.$d;this.$y=t.getFullYear(),this.$M=t.getMonth(),this.$D=t.getDate(),this.$W=t.getDay(),this.$H=t.getHours(),this.$m=t.getMinutes(),this.$s=t.getSeconds(),this.$ms=t.getMilliseconds()},m.$utils=function(){return b},m.isValid=function(){return!(this.$d.toString()===l)},m.isSame=function(t,e){var n=O(t);return this.startOf(e)<=n&&n<=this.endOf(e)},m.isAfter=function(t,e){return O(t)<this.startOf(e)},m.isBefore=function(t,e){return this.endOf(e)<O(t)},m.$g=function(t,e,n){return b.u(t)?this[e]:this.set(n,t)},m.unix=function(){return Math.floor(this.valueOf()/1e3)},m.valueOf=function(){return this.$d.getTime()},m.startOf=function(t,e){var n=this,r=!!b.u(e)||e,f=b.p(t),l=function(t,e){var i=b.w(n.$u?Date.UTC(n.$y,e,t):new Date(n.$y,e,t),n);return r?i:i.endOf(a)},$=function(t,e){return b.w(n.toDate()[t].apply(n.toDate("s"),(r?[0,0,0,0]:[23,59,59,999]).slice(e)),n)},y=this.$W,M=this.$M,m=this.$D,v="set"+(this.$u?"UTC":"");switch(f){case h:return r?l(1,0):l(31,11);case c:return r?l(1,M):l(0,M+1);case o:var g=this.$locale().weekStart||0,D=(y<g?y+7:y)-g;return l(r?m-D:m+(6-D),M);case a:case d:return $(v+"Hours",0);case u:return $(v+"Minutes",1);case s:return $(v+"Seconds",2);case i:return $(v+"Milliseconds",3);default:return this.clone()}},m.endOf=function(t){return this.startOf(t,!1)},m.$set=function(t,e){var n,o=b.p(t),f="set"+(this.$u?"UTC":""),l=(n={},n[a]=f+"Date",n[d]=f+"Date",n[c]=f+"Month",n[h]=f+"FullYear",n[u]=f+"Hours",n[s]=f+"Minutes",n[i]=f+"Seconds",n[r]=f+"Milliseconds",n)[o],$=o===a?this.$D+(e-this.$W):e;if(o===c||o===h){var y=this.clone().set(d,1);y.$d[l]($),y.init(),this.$d=y.set(d,Math.min(this.$D,y.daysInMonth())).$d}else l&&this.$d[l]($);return this.init(),this},m.set=function(t,e){return this.clone().$set(t,e)},m.get=function(t){return this[b.p(t)]()},m.add=function(r,f){var d,l=this;r=Number(r);var $=b.p(f),y=function(t){var e=O(l);return b.w(e.date(e.date()+Math.round(t*r)),l)};if($===c)return this.set(c,this.$M+r);if($===h)return this.set(h,this.$y+r);if($===a)return y(1);if($===o)return y(7);var M=(d={},d[s]=e,d[u]=n,d[i]=t,d)[$]||1,m=this.$d.getTime()+r*M;return b.w(m,this)},m.subtract=function(t,e){return this.add(-1*t,e)},m.format=function(t){var e=this,n=this.$locale();if(!this.isValid())return n.invalidDate||l;var r=t||"YYYY-MM-DDTHH:mm:ssZ",i=b.z(this),s=this.$H,u=this.$m,a=this.$M,o=n.weekdays,c=n.months,f=n.meridiem,h=function(t,n,i,s){return t&&(t[n]||t(e,r))||i[n].slice(0,s)},d=function(t){return b.s(s%12||12,t,"0")},$=f||function(t,e,n){var r=t<12?"AM":"PM";return n?r.toLowerCase():r};return r.replace(y,(function(t,r){return r||function(t){switch(t){case"YY":return String(e.$y).slice(-2);case"YYYY":return b.s(e.$y,4,"0");case"M":return a+1;case"MM":return b.s(a+1,2,"0");case"MMM":return h(n.monthsShort,a,c,3);case"MMMM":return h(c,a);case"D":return e.$D;case"DD":return b.s(e.$D,2,"0");case"d":return String(e.$W);case"dd":return h(n.weekdaysMin,e.$W,o,2);case"ddd":return h(n.weekdaysShort,e.$W,o,3);case"dddd":return o[e.$W];case"H":return String(s);case"HH":return b.s(s,2,"0");case"h":return d(1);case"hh":return d(2);case"a":return $(s,u,!0);case"A":return $(s,u,!1);case"m":return String(u);case"mm":return b.s(u,2,"0");case"s":return String(e.$s);case"ss":return b.s(e.$s,2,"0");case"SSS":return b.s(e.$ms,3,"0");case"Z":return i}return null}(t)||i.replace(":","")}))},m.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},m.diff=function(r,d,l){var $,y=this,M=b.p(d),m=O(r),v=(m.utcOffset()-this.utcOffset())*e,g=this-m,D=function(){return b.m(y,m)};switch(M){case h:$=D()/12;break;case c:$=D();break;case f:$=D()/3;break;case o:$=(g-v)/6048e5;break;case a:$=(g-v)/864e5;break;case u:$=g/n;break;case s:$=g/e;break;case i:$=g/t;break;default:$=g}return l?$:b.a($)},m.daysInMonth=function(){return this.endOf(c).$D},m.$locale=function(){return D[this.$L]},m.locale=function(t,e){if(!t)return this.$L;var n=this.clone(),r=w(t,e,!0);return r&&(n.$L=r),n},m.clone=function(){return b.w(this.$d,this)},m.toDate=function(){return new Date(this.valueOf())},m.toJSON=function(){return this.isValid()?this.toISOString():null},m.toISOString=function(){return this.$d.toISOString()},m.toString=function(){return this.$d.toUTCString()},M}(),k=_.prototype;return O.prototype=k,[["$ms",r],["$s",i],["$m",s],["$H",u],["$W",a],["$M",c],["$y",h],["$D",d]].forEach((function(t){k[t[1]]=function(e){return this.$g(e,t[0],t[1])}})),O.extend=function(t,e){return t.$i||(t(e,_,O),t.$i=!0),O},O.locale=w,O.isDayjs=S,O.unix=function(t){return O(1e3*t)},O.en=D[g],O.Ls=D,O.p={},O}));
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
export var SECONDS_A_MINUTE = 60;
|
|
2
|
-
export var SECONDS_A_HOUR = SECONDS_A_MINUTE * 60;
|
|
3
|
-
export var SECONDS_A_DAY = SECONDS_A_HOUR * 24;
|
|
4
|
-
export var SECONDS_A_WEEK = SECONDS_A_DAY * 7;
|
|
5
|
-
export var MILLISECONDS_A_SECOND = 1e3;
|
|
6
|
-
export var MILLISECONDS_A_MINUTE = SECONDS_A_MINUTE * MILLISECONDS_A_SECOND;
|
|
7
|
-
export var MILLISECONDS_A_HOUR = SECONDS_A_HOUR * MILLISECONDS_A_SECOND;
|
|
8
|
-
export var MILLISECONDS_A_DAY = SECONDS_A_DAY * MILLISECONDS_A_SECOND;
|
|
9
|
-
export var MILLISECONDS_A_WEEK = SECONDS_A_WEEK * MILLISECONDS_A_SECOND; // English locales
|
|
10
|
-
|
|
11
|
-
export var MS = 'millisecond';
|
|
12
|
-
export var S = 'second';
|
|
13
|
-
export var MIN = 'minute';
|
|
14
|
-
export var H = 'hour';
|
|
15
|
-
export var D = 'day';
|
|
16
|
-
export var W = 'week';
|
|
17
|
-
export var M = 'month';
|
|
18
|
-
export var Q = 'quarter';
|
|
19
|
-
export var Y = 'year';
|
|
20
|
-
export var DATE = 'date';
|
|
21
|
-
export var FORMAT_DEFAULT = 'YYYY-MM-DDTHH:mm:ssZ';
|
|
22
|
-
export var INVALID_DATE_STRING = 'Invalid Date'; // regex
|
|
23
|
-
|
|
24
|
-
export var REGEX_PARSE = /^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/;
|
|
25
|
-
export var REGEX_FORMAT = /\[([^\]]+)]|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;
|
|
@@ -1,429 +0,0 @@
|
|
|
1
|
-
/// <reference path="./locale/index.d.ts" />
|
|
2
|
-
|
|
3
|
-
export = dayjs;
|
|
4
|
-
|
|
5
|
-
declare function dayjs (date?: dayjs.ConfigType): dayjs.Dayjs
|
|
6
|
-
|
|
7
|
-
declare function dayjs (date?: dayjs.ConfigType, format?: dayjs.OptionType, strict?: boolean): dayjs.Dayjs
|
|
8
|
-
|
|
9
|
-
declare function dayjs (date?: dayjs.ConfigType, format?: dayjs.OptionType, locale?: string, strict?: boolean): dayjs.Dayjs
|
|
10
|
-
|
|
11
|
-
declare namespace dayjs {
|
|
12
|
-
interface ConfigTypeMap {
|
|
13
|
-
default: string | number | Date | Dayjs | null | undefined
|
|
14
|
-
}
|
|
15
|
-
|
|
16
|
-
export type ConfigType = ConfigTypeMap[keyof ConfigTypeMap]
|
|
17
|
-
|
|
18
|
-
export interface FormatObject { locale?: string, format?: string, utc?: boolean }
|
|
19
|
-
|
|
20
|
-
export type OptionType = FormatObject | string | string[]
|
|
21
|
-
|
|
22
|
-
export type UnitTypeShort = 'd' | 'D' | 'M' | 'y' | 'h' | 'm' | 's' | 'ms'
|
|
23
|
-
|
|
24
|
-
export type UnitTypeLong = 'millisecond' | 'second' | 'minute' | 'hour' | 'day' | 'month' | 'year' | 'date'
|
|
25
|
-
|
|
26
|
-
export type UnitTypeLongPlural = 'milliseconds' | 'seconds' | 'minutes' | 'hours' | 'days' | 'months' | 'years' | 'dates'
|
|
27
|
-
|
|
28
|
-
export type UnitType = UnitTypeLong | UnitTypeLongPlural | UnitTypeShort;
|
|
29
|
-
|
|
30
|
-
export type OpUnitType = UnitType | "week" | "weeks" | 'w';
|
|
31
|
-
export type QUnitType = UnitType | "quarter" | "quarters" | 'Q';
|
|
32
|
-
export type ManipulateType = Exclude<OpUnitType, 'date' | 'dates'>;
|
|
33
|
-
class Dayjs {
|
|
34
|
-
constructor (config?: ConfigType)
|
|
35
|
-
/**
|
|
36
|
-
* All Day.js objects are immutable. Still, `dayjs#clone` can create a clone of the current object if you need one.
|
|
37
|
-
* ```
|
|
38
|
-
* dayjs().clone()// => Dayjs
|
|
39
|
-
* dayjs(dayjs('2019-01-25')) // passing a Dayjs object to a constructor will also clone it
|
|
40
|
-
* ```
|
|
41
|
-
* Docs: https://day.js.org/docs/en/parse/dayjs-clone
|
|
42
|
-
*/
|
|
43
|
-
clone(): Dayjs
|
|
44
|
-
/**
|
|
45
|
-
* This returns a `boolean` indicating whether the Day.js object contains a valid date or not.
|
|
46
|
-
* ```
|
|
47
|
-
* dayjs().isValid()// => boolean
|
|
48
|
-
* ```
|
|
49
|
-
* Docs: https://day.js.org/docs/en/parse/is-valid
|
|
50
|
-
*/
|
|
51
|
-
isValid(): boolean
|
|
52
|
-
/**
|
|
53
|
-
* Get the year.
|
|
54
|
-
* ```
|
|
55
|
-
* dayjs().year()// => 2020
|
|
56
|
-
* ```
|
|
57
|
-
* Docs: https://day.js.org/docs/en/get-set/year
|
|
58
|
-
*/
|
|
59
|
-
year(): number
|
|
60
|
-
/**
|
|
61
|
-
* Set the year.
|
|
62
|
-
* ```
|
|
63
|
-
* dayjs().year(2000)// => Dayjs
|
|
64
|
-
* ```
|
|
65
|
-
* Docs: https://day.js.org/docs/en/get-set/year
|
|
66
|
-
*/
|
|
67
|
-
year(value: number): Dayjs
|
|
68
|
-
/**
|
|
69
|
-
* Get the month.
|
|
70
|
-
*
|
|
71
|
-
* Months are zero indexed, so January is month 0.
|
|
72
|
-
* ```
|
|
73
|
-
* dayjs().month()// => 0-11
|
|
74
|
-
* ```
|
|
75
|
-
* Docs: https://day.js.org/docs/en/get-set/month
|
|
76
|
-
*/
|
|
77
|
-
month(): number
|
|
78
|
-
/**
|
|
79
|
-
* Set the month.
|
|
80
|
-
*
|
|
81
|
-
* Months are zero indexed, so January is month 0.
|
|
82
|
-
*
|
|
83
|
-
* Accepts numbers from 0 to 11. If the range is exceeded, it will bubble up to the next year.
|
|
84
|
-
* ```
|
|
85
|
-
* dayjs().month(0)// => Dayjs
|
|
86
|
-
* ```
|
|
87
|
-
* Docs: https://day.js.org/docs/en/get-set/month
|
|
88
|
-
*/
|
|
89
|
-
month(value: number): Dayjs
|
|
90
|
-
/**
|
|
91
|
-
* Get the date of the month.
|
|
92
|
-
* ```
|
|
93
|
-
* dayjs().date()// => 1-31
|
|
94
|
-
* ```
|
|
95
|
-
* Docs: https://day.js.org/docs/en/get-set/date
|
|
96
|
-
*/
|
|
97
|
-
date(): number
|
|
98
|
-
/**
|
|
99
|
-
* Set the date of the month.
|
|
100
|
-
*
|
|
101
|
-
* Accepts numbers from 1 to 31. If the range is exceeded, it will bubble up to the next months.
|
|
102
|
-
* ```
|
|
103
|
-
* dayjs().date(1)// => Dayjs
|
|
104
|
-
* ```
|
|
105
|
-
* Docs: https://day.js.org/docs/en/get-set/date
|
|
106
|
-
*/
|
|
107
|
-
date(value: number): Dayjs
|
|
108
|
-
/**
|
|
109
|
-
* Get the day of the week.
|
|
110
|
-
*
|
|
111
|
-
* Returns numbers from 0 (Sunday) to 6 (Saturday).
|
|
112
|
-
* ```
|
|
113
|
-
* dayjs().day()// 0-6
|
|
114
|
-
* ```
|
|
115
|
-
* Docs: https://day.js.org/docs/en/get-set/day
|
|
116
|
-
*/
|
|
117
|
-
day(): 0 | 1 | 2 | 3 | 4 | 5 | 6
|
|
118
|
-
/**
|
|
119
|
-
* Set the day of the week.
|
|
120
|
-
*
|
|
121
|
-
* Accepts numbers from 0 (Sunday) to 6 (Saturday). If the range is exceeded, it will bubble up to next weeks.
|
|
122
|
-
* ```
|
|
123
|
-
* dayjs().day(0)// => Dayjs
|
|
124
|
-
* ```
|
|
125
|
-
* Docs: https://day.js.org/docs/en/get-set/day
|
|
126
|
-
*/
|
|
127
|
-
day(value: number): Dayjs
|
|
128
|
-
/**
|
|
129
|
-
* Get the hour.
|
|
130
|
-
* ```
|
|
131
|
-
* dayjs().hour()// => 0-23
|
|
132
|
-
* ```
|
|
133
|
-
* Docs: https://day.js.org/docs/en/get-set/hour
|
|
134
|
-
*/
|
|
135
|
-
hour(): number
|
|
136
|
-
/**
|
|
137
|
-
* Set the hour.
|
|
138
|
-
*
|
|
139
|
-
* Accepts numbers from 0 to 23. If the range is exceeded, it will bubble up to the next day.
|
|
140
|
-
* ```
|
|
141
|
-
* dayjs().hour(12)// => Dayjs
|
|
142
|
-
* ```
|
|
143
|
-
* Docs: https://day.js.org/docs/en/get-set/hour
|
|
144
|
-
*/
|
|
145
|
-
hour(value: number): Dayjs
|
|
146
|
-
/**
|
|
147
|
-
* Get the minutes.
|
|
148
|
-
* ```
|
|
149
|
-
* dayjs().minute()// => 0-59
|
|
150
|
-
* ```
|
|
151
|
-
* Docs: https://day.js.org/docs/en/get-set/minute
|
|
152
|
-
*/
|
|
153
|
-
minute(): number
|
|
154
|
-
/**
|
|
155
|
-
* Set the minutes.
|
|
156
|
-
*
|
|
157
|
-
* Accepts numbers from 0 to 59. If the range is exceeded, it will bubble up to the next hour.
|
|
158
|
-
* ```
|
|
159
|
-
* dayjs().minute(59)// => Dayjs
|
|
160
|
-
* ```
|
|
161
|
-
* Docs: https://day.js.org/docs/en/get-set/minute
|
|
162
|
-
*/
|
|
163
|
-
minute(value: number): Dayjs
|
|
164
|
-
/**
|
|
165
|
-
* Get the seconds.
|
|
166
|
-
* ```
|
|
167
|
-
* dayjs().second()// => 0-59
|
|
168
|
-
* ```
|
|
169
|
-
* Docs: https://day.js.org/docs/en/get-set/second
|
|
170
|
-
*/
|
|
171
|
-
second(): number
|
|
172
|
-
/**
|
|
173
|
-
* Set the seconds.
|
|
174
|
-
*
|
|
175
|
-
* Accepts numbers from 0 to 59. If the range is exceeded, it will bubble up to the next minutes.
|
|
176
|
-
* ```
|
|
177
|
-
* dayjs().second(1)// Dayjs
|
|
178
|
-
* ```
|
|
179
|
-
*/
|
|
180
|
-
second(value: number): Dayjs
|
|
181
|
-
/**
|
|
182
|
-
* Get the milliseconds.
|
|
183
|
-
* ```
|
|
184
|
-
* dayjs().millisecond()// => 0-999
|
|
185
|
-
* ```
|
|
186
|
-
* Docs: https://day.js.org/docs/en/get-set/millisecond
|
|
187
|
-
*/
|
|
188
|
-
millisecond(): number
|
|
189
|
-
/**
|
|
190
|
-
* Set the milliseconds.
|
|
191
|
-
*
|
|
192
|
-
* Accepts numbers from 0 to 999. If the range is exceeded, it will bubble up to the next seconds.
|
|
193
|
-
* ```
|
|
194
|
-
* dayjs().millisecond(1)// => Dayjs
|
|
195
|
-
* ```
|
|
196
|
-
* Docs: https://day.js.org/docs/en/get-set/millisecond
|
|
197
|
-
*/
|
|
198
|
-
millisecond(value: number): Dayjs
|
|
199
|
-
/**
|
|
200
|
-
* Generic setter, accepting unit as first argument, and value as second, returns a new instance with the applied changes.
|
|
201
|
-
*
|
|
202
|
-
* In general:
|
|
203
|
-
* ```
|
|
204
|
-
* dayjs().set(unit, value) === dayjs()[unit](value)
|
|
205
|
-
* ```
|
|
206
|
-
* Units are case insensitive, and support plural and short forms.
|
|
207
|
-
* ```
|
|
208
|
-
* dayjs().set('date', 1)
|
|
209
|
-
* dayjs().set('month', 3) // April
|
|
210
|
-
* dayjs().set('second', 30)
|
|
211
|
-
* ```
|
|
212
|
-
* Docs: https://day.js.org/docs/en/get-set/set
|
|
213
|
-
*/
|
|
214
|
-
set(unit: UnitType, value: number): Dayjs
|
|
215
|
-
/**
|
|
216
|
-
* String getter, returns the corresponding information getting from Day.js object.
|
|
217
|
-
*
|
|
218
|
-
* In general:
|
|
219
|
-
* ```
|
|
220
|
-
* dayjs().get(unit) === dayjs()[unit]()
|
|
221
|
-
* ```
|
|
222
|
-
* Units are case insensitive, and support plural and short forms.
|
|
223
|
-
* ```
|
|
224
|
-
* dayjs().get('year')
|
|
225
|
-
* dayjs().get('month') // start 0
|
|
226
|
-
* dayjs().get('date')
|
|
227
|
-
* ```
|
|
228
|
-
* Docs: https://day.js.org/docs/en/get-set/get
|
|
229
|
-
*/
|
|
230
|
-
get(unit: UnitType): number
|
|
231
|
-
/**
|
|
232
|
-
* Returns a cloned Day.js object with a specified amount of time added.
|
|
233
|
-
* ```
|
|
234
|
-
* dayjs().add(7, 'day')// => Dayjs
|
|
235
|
-
* ```
|
|
236
|
-
* Units are case insensitive, and support plural and short forms.
|
|
237
|
-
*
|
|
238
|
-
* Docs: https://day.js.org/docs/en/manipulate/add
|
|
239
|
-
*/
|
|
240
|
-
add(value: number, unit?: ManipulateType): Dayjs
|
|
241
|
-
/**
|
|
242
|
-
* Returns a cloned Day.js object with a specified amount of time subtracted.
|
|
243
|
-
* ```
|
|
244
|
-
* dayjs().subtract(7, 'year')// => Dayjs
|
|
245
|
-
* ```
|
|
246
|
-
* Units are case insensitive, and support plural and short forms.
|
|
247
|
-
*
|
|
248
|
-
* Docs: https://day.js.org/docs/en/manipulate/subtract
|
|
249
|
-
*/
|
|
250
|
-
subtract(value: number, unit?: ManipulateType): Dayjs
|
|
251
|
-
/**
|
|
252
|
-
* Returns a cloned Day.js object and set it to the start of a unit of time.
|
|
253
|
-
* ```
|
|
254
|
-
* dayjs().startOf('year')// => Dayjs
|
|
255
|
-
* ```
|
|
256
|
-
* Units are case insensitive, and support plural and short forms.
|
|
257
|
-
*
|
|
258
|
-
* Docs: https://day.js.org/docs/en/manipulate/start-of
|
|
259
|
-
*/
|
|
260
|
-
startOf(unit: OpUnitType): Dayjs
|
|
261
|
-
/**
|
|
262
|
-
* Returns a cloned Day.js object and set it to the end of a unit of time.
|
|
263
|
-
* ```
|
|
264
|
-
* dayjs().endOf('month')// => Dayjs
|
|
265
|
-
* ```
|
|
266
|
-
* Units are case insensitive, and support plural and short forms.
|
|
267
|
-
*
|
|
268
|
-
* Docs: https://day.js.org/docs/en/manipulate/end-of
|
|
269
|
-
*/
|
|
270
|
-
endOf(unit: OpUnitType): Dayjs
|
|
271
|
-
/**
|
|
272
|
-
* Get the formatted date according to the string of tokens passed in.
|
|
273
|
-
*
|
|
274
|
-
* To escape characters, wrap them in square brackets (e.g. [MM]).
|
|
275
|
-
* ```
|
|
276
|
-
* dayjs().format()// => current date in ISO8601, without fraction seconds e.g. '2020-04-02T08:02:17-05:00'
|
|
277
|
-
* dayjs('2019-01-25').format('[YYYYescape] YYYY-MM-DDTHH:mm:ssZ[Z]')// 'YYYYescape 2019-01-25T00:00:00-02:00Z'
|
|
278
|
-
* dayjs('2019-01-25').format('DD/MM/YYYY') // '25/01/2019'
|
|
279
|
-
* ```
|
|
280
|
-
* Docs: https://day.js.org/docs/en/display/format
|
|
281
|
-
*/
|
|
282
|
-
format(template?: string): string
|
|
283
|
-
/**
|
|
284
|
-
* This indicates the difference between two date-time in the specified unit.
|
|
285
|
-
*
|
|
286
|
-
* To get the difference in milliseconds, use `dayjs#diff`
|
|
287
|
-
* ```
|
|
288
|
-
* const date1 = dayjs('2019-01-25')
|
|
289
|
-
* const date2 = dayjs('2018-06-05')
|
|
290
|
-
* date1.diff(date2) // 20214000000 default milliseconds
|
|
291
|
-
* date1.diff() // milliseconds to current time
|
|
292
|
-
* ```
|
|
293
|
-
*
|
|
294
|
-
* To get the difference in another unit of measurement, pass that measurement as the second argument.
|
|
295
|
-
* ```
|
|
296
|
-
* const date1 = dayjs('2019-01-25')
|
|
297
|
-
* date1.diff('2018-06-05', 'month') // 7
|
|
298
|
-
* ```
|
|
299
|
-
* Units are case insensitive, and support plural and short forms.
|
|
300
|
-
*
|
|
301
|
-
* Docs: https://day.js.org/docs/en/display/difference
|
|
302
|
-
*/
|
|
303
|
-
diff(date?: ConfigType, unit?: QUnitType | OpUnitType, float?: boolean): number
|
|
304
|
-
/**
|
|
305
|
-
* This returns the number of **milliseconds** since the Unix Epoch of the Day.js object.
|
|
306
|
-
* ```
|
|
307
|
-
* dayjs('2019-01-25').valueOf() // 1548381600000
|
|
308
|
-
* +dayjs(1548381600000) // 1548381600000
|
|
309
|
-
* ```
|
|
310
|
-
* To get a Unix timestamp (the number of seconds since the epoch) from a Day.js object, you should use Unix Timestamp `dayjs#unix()`.
|
|
311
|
-
*
|
|
312
|
-
* Docs: https://day.js.org/docs/en/display/unix-timestamp-milliseconds
|
|
313
|
-
*/
|
|
314
|
-
valueOf(): number
|
|
315
|
-
/**
|
|
316
|
-
* This returns the Unix timestamp (the number of **seconds** since the Unix Epoch) of the Day.js object.
|
|
317
|
-
* ```
|
|
318
|
-
* dayjs('2019-01-25').unix() // 1548381600
|
|
319
|
-
* ```
|
|
320
|
-
* This value is floored to the nearest second, and does not include a milliseconds component.
|
|
321
|
-
*
|
|
322
|
-
* Docs: https://day.js.org/docs/en/display/unix-timestamp
|
|
323
|
-
*/
|
|
324
|
-
unix(): number
|
|
325
|
-
/**
|
|
326
|
-
* Get the number of days in the current month.
|
|
327
|
-
* ```
|
|
328
|
-
* dayjs('2019-01-25').daysInMonth() // 31
|
|
329
|
-
* ```
|
|
330
|
-
* Docs: https://day.js.org/docs/en/display/days-in-month
|
|
331
|
-
*/
|
|
332
|
-
daysInMonth(): number
|
|
333
|
-
/**
|
|
334
|
-
* To get a copy of the native `Date` object parsed from the Day.js object use `dayjs#toDate`.
|
|
335
|
-
* ```
|
|
336
|
-
* dayjs('2019-01-25').toDate()// => Date
|
|
337
|
-
* ```
|
|
338
|
-
*/
|
|
339
|
-
toDate(): Date
|
|
340
|
-
/**
|
|
341
|
-
* To serialize as an ISO 8601 string.
|
|
342
|
-
* ```
|
|
343
|
-
* dayjs('2019-01-25').toJSON() // '2019-01-25T02:00:00.000Z'
|
|
344
|
-
* ```
|
|
345
|
-
* Docs: https://day.js.org/docs/en/display/as-json
|
|
346
|
-
*/
|
|
347
|
-
toJSON(): string
|
|
348
|
-
/**
|
|
349
|
-
* To format as an ISO 8601 string.
|
|
350
|
-
* ```
|
|
351
|
-
* dayjs('2019-01-25').toISOString() // '2019-01-25T02:00:00.000Z'
|
|
352
|
-
* ```
|
|
353
|
-
* Docs: https://day.js.org/docs/en/display/as-iso-string
|
|
354
|
-
*/
|
|
355
|
-
toISOString(): string
|
|
356
|
-
/**
|
|
357
|
-
* Returns a string representation of the date.
|
|
358
|
-
* ```
|
|
359
|
-
* dayjs('2019-01-25').toString() // 'Fri, 25 Jan 2019 02:00:00 GMT'
|
|
360
|
-
* ```
|
|
361
|
-
* Docs: https://day.js.org/docs/en/display/as-string
|
|
362
|
-
*/
|
|
363
|
-
toString(): string
|
|
364
|
-
/**
|
|
365
|
-
* Get the UTC offset in minutes.
|
|
366
|
-
* ```
|
|
367
|
-
* dayjs().utcOffset()
|
|
368
|
-
* ```
|
|
369
|
-
* Docs: https://day.js.org/docs/en/manipulate/utc-offset
|
|
370
|
-
*/
|
|
371
|
-
utcOffset(): number
|
|
372
|
-
/**
|
|
373
|
-
* This indicates whether the Day.js object is before the other supplied date-time.
|
|
374
|
-
* ```
|
|
375
|
-
* dayjs().isBefore(dayjs('2011-01-01')) // default milliseconds
|
|
376
|
-
* ```
|
|
377
|
-
* If you want to limit the granularity to a unit other than milliseconds, pass it as the second parameter.
|
|
378
|
-
* ```
|
|
379
|
-
* dayjs().isBefore('2011-01-01', 'year')// => boolean
|
|
380
|
-
* ```
|
|
381
|
-
* Units are case insensitive, and support plural and short forms.
|
|
382
|
-
*
|
|
383
|
-
* Docs: https://day.js.org/docs/en/query/is-before
|
|
384
|
-
*/
|
|
385
|
-
isBefore(date?: ConfigType, unit?: OpUnitType): boolean
|
|
386
|
-
/**
|
|
387
|
-
* This indicates whether the Day.js object is the same as the other supplied date-time.
|
|
388
|
-
* ```
|
|
389
|
-
* dayjs().isSame(dayjs('2011-01-01')) // default milliseconds
|
|
390
|
-
* ```
|
|
391
|
-
* If you want to limit the granularity to a unit other than milliseconds, pass it as the second parameter.
|
|
392
|
-
* ```
|
|
393
|
-
* dayjs().isSame('2011-01-01', 'year')// => boolean
|
|
394
|
-
* ```
|
|
395
|
-
* Docs: https://day.js.org/docs/en/query/is-same
|
|
396
|
-
*/
|
|
397
|
-
isSame(date?: ConfigType, unit?: OpUnitType): boolean
|
|
398
|
-
/**
|
|
399
|
-
* This indicates whether the Day.js object is after the other supplied date-time.
|
|
400
|
-
* ```
|
|
401
|
-
* dayjs().isAfter(dayjs('2011-01-01')) // default milliseconds
|
|
402
|
-
* ```
|
|
403
|
-
* If you want to limit the granularity to a unit other than milliseconds, pass it as the second parameter.
|
|
404
|
-
* ```
|
|
405
|
-
* dayjs().isAfter('2011-01-01', 'year')// => boolean
|
|
406
|
-
* ```
|
|
407
|
-
* Units are case insensitive, and support plural and short forms.
|
|
408
|
-
*
|
|
409
|
-
* Docs: https://day.js.org/docs/en/query/is-after
|
|
410
|
-
*/
|
|
411
|
-
isAfter(date?: ConfigType, unit?: OpUnitType): boolean
|
|
412
|
-
|
|
413
|
-
locale(): string
|
|
414
|
-
|
|
415
|
-
locale(preset: string | ILocale, object?: Partial<ILocale>): Dayjs
|
|
416
|
-
}
|
|
417
|
-
|
|
418
|
-
export type PluginFunc<T = unknown> = (option: T, c: typeof Dayjs, d: typeof dayjs) => void
|
|
419
|
-
|
|
420
|
-
export function extend<T = unknown>(plugin: PluginFunc<T>, option?: T): Dayjs
|
|
421
|
-
|
|
422
|
-
export function locale(preset?: string | ILocale, object?: Partial<ILocale>, isLocal?: boolean): string
|
|
423
|
-
|
|
424
|
-
export function isDayjs(d: any): d is Dayjs
|
|
425
|
-
|
|
426
|
-
export function unix(t: number): Dayjs
|
|
427
|
-
|
|
428
|
-
const Ls : { [key: string] : ILocale }
|
|
429
|
-
}
|