@jnrs/shared 1.0.16 → 1.0.18
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/date-fns.cjs +11 -0
- package/dist/date-fns.cjs.map +1 -0
- package/dist/date-fns.d.ts +2 -0
- package/dist/date-fns.d.ts.map +1 -0
- package/dist/date-fns.js +2 -0
- package/dist/date-fns.js.map +1 -0
- package/dist/index.cjs +1 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.ts +3 -2
- package/dist/index.js +2 -0
- package/dist/index.js.map +1 -1
- package/dist/lodash.d.ts +5 -1
- package/dist/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/_lib/defaultOptions.cjs +10 -0
- package/dist/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/_lib/defaultOptions.cjs.map +1 -0
- package/dist/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/_lib/defaultOptions.js +8 -0
- package/dist/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/_lib/defaultOptions.js.map +1 -0
- package/dist/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/_lib/normalizeDates.cjs +14 -0
- package/dist/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/_lib/normalizeDates.cjs.map +1 -0
- package/dist/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/_lib/normalizeDates.js +12 -0
- package/dist/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/_lib/normalizeDates.js.map +1 -0
- package/dist/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/constants.cjs +35 -0
- package/dist/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/constants.cjs.map +1 -0
- package/dist/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/constants.js +33 -0
- package/dist/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/constants.js.map +1 -0
- package/dist/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/constructFrom.cjs +55 -0
- package/dist/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/constructFrom.cjs.map +1 -0
- package/dist/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/constructFrom.js +50 -0
- package/dist/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/constructFrom.js.map +1 -0
- package/dist/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/isSameWeek.cjs +57 -0
- package/dist/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/isSameWeek.cjs.map +1 -0
- package/dist/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/isSameWeek.js +52 -0
- package/dist/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/isSameWeek.js.map +1 -0
- package/dist/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/locale/_lib/buildFormatLongFn.cjs +13 -0
- package/dist/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/locale/_lib/buildFormatLongFn.cjs.map +1 -0
- package/dist/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/locale/_lib/buildFormatLongFn.js +11 -0
- package/dist/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/locale/_lib/buildFormatLongFn.js.map +1 -0
- package/dist/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/locale/_lib/buildLocalizeFn.cjs +67 -0
- package/dist/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/locale/_lib/buildLocalizeFn.cjs.map +1 -0
- package/dist/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/locale/_lib/buildLocalizeFn.js +65 -0
- package/dist/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/locale/_lib/buildLocalizeFn.js.map +1 -0
- package/dist/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/locale/_lib/buildMatchFn.cjs +62 -0
- package/dist/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/locale/_lib/buildMatchFn.cjs.map +1 -0
- package/dist/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/locale/_lib/buildMatchFn.js +60 -0
- package/dist/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/locale/_lib/buildMatchFn.js.map +1 -0
- package/dist/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/locale/_lib/buildMatchPatternFn.cjs +25 -0
- package/dist/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/locale/_lib/buildMatchPatternFn.cjs.map +1 -0
- package/dist/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/locale/_lib/buildMatchPatternFn.js +23 -0
- package/dist/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/locale/_lib/buildMatchPatternFn.js.map +1 -0
- package/dist/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/locale/de/_lib/formatDistance.cjs +201 -0
- package/dist/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/locale/de/_lib/formatDistance.cjs.map +1 -0
- package/dist/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/locale/de/_lib/formatDistance.js +199 -0
- package/dist/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/locale/de/_lib/formatDistance.js.map +1 -0
- package/dist/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/locale/de/_lib/formatLong.cjs +45 -0
- package/dist/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/locale/de/_lib/formatLong.cjs.map +1 -0
- package/dist/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/locale/de/_lib/formatLong.js +43 -0
- package/dist/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/locale/de/_lib/formatLong.js.map +1 -0
- package/dist/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/locale/de/_lib/formatRelative.cjs +16 -0
- package/dist/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/locale/de/_lib/formatRelative.cjs.map +1 -0
- package/dist/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/locale/de/_lib/formatRelative.js +14 -0
- package/dist/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/locale/de/_lib/formatRelative.js.map +1 -0
- package/dist/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/locale/de/_lib/localize.cjs +196 -0
- package/dist/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/locale/de/_lib/localize.cjs.map +1 -0
- package/dist/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/locale/de/_lib/localize.js +194 -0
- package/dist/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/locale/de/_lib/localize.js.map +1 -0
- package/dist/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/locale/de/_lib/match.cjs +139 -0
- package/dist/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/locale/de/_lib/match.cjs.map +1 -0
- package/dist/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/locale/de/_lib/match.js +137 -0
- package/dist/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/locale/de/_lib/match.js.map +1 -0
- package/dist/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/locale/de.cjs +37 -0
- package/dist/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/locale/de.cjs.map +1 -0
- package/dist/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/locale/de.js +32 -0
- package/dist/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/locale/de.js.map +1 -0
- package/dist/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/locale/en-US/_lib/formatDistance.cjs +106 -0
- package/dist/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/locale/en-US/_lib/formatDistance.cjs.map +1 -0
- package/dist/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/locale/en-US/_lib/formatDistance.js +104 -0
- package/dist/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/locale/en-US/_lib/formatDistance.js.map +1 -0
- package/dist/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/locale/en-US/_lib/formatLong.cjs +44 -0
- package/dist/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/locale/en-US/_lib/formatLong.cjs.map +1 -0
- package/dist/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/locale/en-US/_lib/formatLong.js +42 -0
- package/dist/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/locale/en-US/_lib/formatLong.js.map +1 -0
- package/dist/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/locale/en-US/_lib/formatRelative.cjs +16 -0
- package/dist/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/locale/en-US/_lib/formatRelative.cjs.map +1 -0
- package/dist/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/locale/en-US/_lib/formatRelative.js +14 -0
- package/dist/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/locale/en-US/_lib/formatRelative.js.map +1 -0
- package/dist/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/locale/en-US/_lib/localize.cjs +192 -0
- package/dist/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/locale/en-US/_lib/localize.cjs.map +1 -0
- package/dist/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/locale/en-US/_lib/localize.js +190 -0
- package/dist/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/locale/en-US/_lib/localize.js.map +1 -0
- package/dist/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/locale/en-US/_lib/match.cjs +137 -0
- package/dist/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/locale/en-US/_lib/match.cjs.map +1 -0
- package/dist/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/locale/en-US/_lib/match.js +135 -0
- package/dist/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/locale/en-US/_lib/match.js.map +1 -0
- package/dist/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/locale/en-US.cjs +34 -0
- package/dist/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/locale/en-US.cjs.map +1 -0
- package/dist/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/locale/en-US.js +29 -0
- package/dist/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/locale/en-US.js.map +1 -0
- package/dist/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/locale/es/_lib/formatDistance.cjs +106 -0
- package/dist/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/locale/es/_lib/formatDistance.cjs.map +1 -0
- package/dist/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/locale/es/_lib/formatDistance.js +104 -0
- package/dist/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/locale/es/_lib/formatDistance.js.map +1 -0
- package/dist/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/locale/es/_lib/formatLong.cjs +44 -0
- package/dist/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/locale/es/_lib/formatLong.cjs.map +1 -0
- package/dist/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/locale/es/_lib/formatLong.js +42 -0
- package/dist/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/locale/es/_lib/formatLong.js.map +1 -0
- package/dist/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/locale/es/_lib/formatRelative.cjs +30 -0
- package/dist/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/locale/es/_lib/formatRelative.cjs.map +1 -0
- package/dist/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/locale/es/_lib/formatRelative.js +28 -0
- package/dist/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/locale/es/_lib/formatRelative.js.map +1 -0
- package/dist/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/locale/es/_lib/localize.cjs +169 -0
- package/dist/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/locale/es/_lib/localize.cjs.map +1 -0
- package/dist/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/locale/es/_lib/localize.js +167 -0
- package/dist/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/locale/es/_lib/localize.js.map +1 -0
- package/dist/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/locale/es/_lib/match.cjs +143 -0
- package/dist/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/locale/es/_lib/match.cjs.map +1 -0
- package/dist/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/locale/es/_lib/match.js +141 -0
- package/dist/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/locale/es/_lib/match.js.map +1 -0
- package/dist/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/locale/es.cjs +37 -0
- package/dist/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/locale/es.cjs.map +1 -0
- package/dist/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/locale/es.js +32 -0
- package/dist/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/locale/es.js.map +1 -0
- package/dist/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/locale/fr/_lib/formatDistance.cjs +105 -0
- package/dist/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/locale/fr/_lib/formatDistance.cjs.map +1 -0
- package/dist/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/locale/fr/_lib/formatDistance.js +103 -0
- package/dist/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/locale/fr/_lib/formatDistance.js.map +1 -0
- package/dist/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/locale/fr/_lib/formatLong.cjs +44 -0
- package/dist/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/locale/fr/_lib/formatLong.cjs.map +1 -0
- package/dist/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/locale/fr/_lib/formatLong.js +42 -0
- package/dist/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/locale/fr/_lib/formatLong.js.map +1 -0
- package/dist/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/locale/fr/_lib/formatRelative.cjs +16 -0
- package/dist/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/locale/fr/_lib/formatRelative.cjs.map +1 -0
- package/dist/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/locale/fr/_lib/formatRelative.js +14 -0
- package/dist/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/locale/fr/_lib/formatRelative.js.map +1 -0
- package/dist/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/locale/fr/_lib/localize.cjs +170 -0
- package/dist/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/locale/fr/_lib/localize.cjs.map +1 -0
- package/dist/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/locale/fr/_lib/localize.js +168 -0
- package/dist/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/locale/fr/_lib/localize.js.map +1 -0
- package/dist/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/locale/fr/_lib/match.cjs +138 -0
- package/dist/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/locale/fr/_lib/match.cjs.map +1 -0
- package/dist/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/locale/fr/_lib/match.js +136 -0
- package/dist/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/locale/fr/_lib/match.js.map +1 -0
- package/dist/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/locale/fr.cjs +34 -0
- package/dist/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/locale/fr.cjs.map +1 -0
- package/dist/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/locale/fr.js +29 -0
- package/dist/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/locale/fr.js.map +1 -0
- package/dist/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/locale/ja/_lib/formatDistance.cjs +120 -0
- package/dist/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/locale/ja/_lib/formatDistance.cjs.map +1 -0
- package/dist/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/locale/ja/_lib/formatDistance.js +118 -0
- package/dist/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/locale/ja/_lib/formatDistance.js.map +1 -0
- package/dist/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/locale/ja/_lib/formatLong.cjs +44 -0
- package/dist/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/locale/ja/_lib/formatLong.cjs.map +1 -0
- package/dist/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/locale/ja/_lib/formatLong.js +42 -0
- package/dist/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/locale/ja/_lib/formatLong.js.map +1 -0
- package/dist/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/locale/ja/_lib/formatRelative.cjs +17 -0
- package/dist/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/locale/ja/_lib/formatRelative.cjs.map +1 -0
- package/dist/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/locale/ja/_lib/formatRelative.js +15 -0
- package/dist/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/locale/ja/_lib/formatRelative.js.map +1 -0
- package/dist/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/locale/ja/_lib/localize.cjs +182 -0
- package/dist/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/locale/ja/_lib/localize.cjs.map +1 -0
- package/dist/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/locale/ja/_lib/localize.js +180 -0
- package/dist/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/locale/ja/_lib/localize.js.map +1 -0
- package/dist/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/locale/ja/_lib/match.cjs +123 -0
- package/dist/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/locale/ja/_lib/match.cjs.map +1 -0
- package/dist/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/locale/ja/_lib/match.js +121 -0
- package/dist/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/locale/ja/_lib/match.js.map +1 -0
- package/dist/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/locale/ja.cjs +37 -0
- package/dist/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/locale/ja.cjs.map +1 -0
- package/dist/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/locale/ja.js +32 -0
- package/dist/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/locale/ja.js.map +1 -0
- package/dist/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/locale/ko/_lib/formatDistance.cjs +106 -0
- package/dist/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/locale/ko/_lib/formatDistance.cjs.map +1 -0
- package/dist/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/locale/ko/_lib/formatDistance.js +104 -0
- package/dist/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/locale/ko/_lib/formatDistance.js.map +1 -0
- package/dist/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/locale/ko/_lib/formatLong.cjs +44 -0
- package/dist/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/locale/ko/_lib/formatLong.cjs.map +1 -0
- package/dist/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/locale/ko/_lib/formatLong.js +42 -0
- package/dist/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/locale/ko/_lib/formatLong.js.map +1 -0
- package/dist/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/locale/ko/_lib/formatRelative.cjs +16 -0
- package/dist/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/locale/ko/_lib/formatRelative.cjs.map +1 -0
- package/dist/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/locale/ko/_lib/formatRelative.js +14 -0
- package/dist/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/locale/ko/_lib/formatRelative.js.map +1 -0
- package/dist/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/locale/ko/_lib/localize.cjs +172 -0
- package/dist/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/locale/ko/_lib/localize.cjs.map +1 -0
- package/dist/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/locale/ko/_lib/localize.js +170 -0
- package/dist/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/locale/ko/_lib/localize.js.map +1 -0
- package/dist/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/locale/ko/_lib/match.cjs +120 -0
- package/dist/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/locale/ko/_lib/match.cjs.map +1 -0
- package/dist/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/locale/ko/_lib/match.js +118 -0
- package/dist/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/locale/ko/_lib/match.js.map +1 -0
- package/dist/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/locale/ko.cjs +35 -0
- package/dist/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/locale/ko.cjs.map +1 -0
- package/dist/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/locale/ko.js +30 -0
- package/dist/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/locale/ko.js.map +1 -0
- package/dist/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/locale/ru/_lib/formatDistance.cjs +251 -0
- package/dist/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/locale/ru/_lib/formatDistance.cjs.map +1 -0
- package/dist/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/locale/ru/_lib/formatDistance.js +249 -0
- package/dist/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/locale/ru/_lib/formatDistance.js.map +1 -0
- package/dist/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/locale/ru/_lib/formatLong.cjs +41 -0
- package/dist/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/locale/ru/_lib/formatLong.cjs.map +1 -0
- package/dist/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/locale/ru/_lib/formatLong.js +39 -0
- package/dist/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/locale/ru/_lib/formatLong.js.map +1 -0
- package/dist/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/locale/ru/_lib/formatRelative.cjs +93 -0
- package/dist/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/locale/ru/_lib/formatRelative.cjs.map +1 -0
- package/dist/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/locale/ru/_lib/formatRelative.js +91 -0
- package/dist/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/locale/ru/_lib/formatRelative.js.map +1 -0
- package/dist/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/locale/ru/_lib/localize.cjs +215 -0
- package/dist/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/locale/ru/_lib/localize.cjs.map +1 -0
- package/dist/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/locale/ru/_lib/localize.js +213 -0
- package/dist/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/locale/ru/_lib/localize.js.map +1 -0
- package/dist/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/locale/ru/_lib/match.cjs +143 -0
- package/dist/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/locale/ru/_lib/match.cjs.map +1 -0
- package/dist/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/locale/ru/_lib/match.js +141 -0
- package/dist/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/locale/ru/_lib/match.js.map +1 -0
- package/dist/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/locale/ru.cjs +34 -0
- package/dist/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/locale/ru.cjs.map +1 -0
- package/dist/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/locale/ru.js +29 -0
- package/dist/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/locale/ru.js.map +1 -0
- package/dist/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/locale/zh-CN/_lib/formatDistance.cjs +106 -0
- package/dist/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/locale/zh-CN/_lib/formatDistance.cjs.map +1 -0
- package/dist/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/locale/zh-CN/_lib/formatDistance.js +104 -0
- package/dist/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/locale/zh-CN/_lib/formatDistance.js.map +1 -0
- package/dist/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/locale/zh-CN/_lib/formatLong.cjs +44 -0
- package/dist/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/locale/zh-CN/_lib/formatLong.cjs.map +1 -0
- package/dist/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/locale/zh-CN/_lib/formatLong.js +42 -0
- package/dist/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/locale/zh-CN/_lib/formatLong.js.map +1 -0
- package/dist/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/locale/zh-CN/_lib/formatRelative.cjs +36 -0
- package/dist/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/locale/zh-CN/_lib/formatRelative.cjs.map +1 -0
- package/dist/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/locale/zh-CN/_lib/formatRelative.js +34 -0
- package/dist/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/locale/zh-CN/_lib/formatRelative.js.map +1 -0
- package/dist/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/locale/zh-CN/_lib/localize.cjs +188 -0
- package/dist/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/locale/zh-CN/_lib/localize.cjs.map +1 -0
- package/dist/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/locale/zh-CN/_lib/localize.js +186 -0
- package/dist/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/locale/zh-CN/_lib/localize.js.map +1 -0
- package/dist/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/locale/zh-CN/_lib/match.cjs +135 -0
- package/dist/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/locale/zh-CN/_lib/match.cjs.map +1 -0
- package/dist/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/locale/zh-CN/_lib/match.js +133 -0
- package/dist/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/locale/zh-CN/_lib/match.js.map +1 -0
- package/dist/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/locale/zh-CN.cjs +37 -0
- package/dist/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/locale/zh-CN.cjs.map +1 -0
- package/dist/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/locale/zh-CN.js +32 -0
- package/dist/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/locale/zh-CN.js.map +1 -0
- package/dist/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/startOfWeek.cjs +59 -0
- package/dist/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/startOfWeek.cjs.map +1 -0
- package/dist/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/startOfWeek.js +54 -0
- package/dist/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/startOfWeek.js.map +1 -0
- package/dist/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/toDate.cjs +52 -0
- package/dist/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/toDate.cjs.map +1 -0
- package/dist/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/toDate.js +47 -0
- package/dist/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/toDate.js.map +1 -0
- package/dist/utils/date.cjs +16 -9
- package/dist/utils/date.cjs.map +1 -1
- package/dist/utils/date.d.ts +10 -12
- package/dist/utils/date.js +8 -1
- package/dist/utils/date.js.map +1 -1
- package/dist/utils/fullscreen.d.ts +2 -3
- package/dist/uuid.d.ts +3 -1
- package/package.json +7 -1
package/dist/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/locale/zh-CN/_lib/match.js
ADDED
|
@@ -0,0 +1,133 @@
|
|
|
1
|
+
import { buildMatchFn } from '../../_lib/buildMatchFn.js';
|
|
2
|
+
import { buildMatchPatternFn } from '../../_lib/buildMatchPatternFn.js';
|
|
3
|
+
|
|
4
|
+
const matchOrdinalNumberPattern = /^(第\s*)?\d+(日|时|分|秒)?/i;
|
|
5
|
+
const parseOrdinalNumberPattern = /\d+/i;
|
|
6
|
+
|
|
7
|
+
const matchEraPatterns = {
|
|
8
|
+
narrow: /^(前)/i,
|
|
9
|
+
abbreviated: /^(前)/i,
|
|
10
|
+
wide: /^(公元前|公元)/i,
|
|
11
|
+
};
|
|
12
|
+
const parseEraPatterns = {
|
|
13
|
+
any: [/^(前)/i, /^(公元)/i],
|
|
14
|
+
};
|
|
15
|
+
|
|
16
|
+
const matchQuarterPatterns = {
|
|
17
|
+
narrow: /^[1234]/i,
|
|
18
|
+
abbreviated: /^第[一二三四]刻/i,
|
|
19
|
+
wide: /^第[一二三四]刻钟/i,
|
|
20
|
+
};
|
|
21
|
+
const parseQuarterPatterns = {
|
|
22
|
+
any: [/(1|一)/i, /(2|二)/i, /(3|三)/i, /(4|四)/i],
|
|
23
|
+
};
|
|
24
|
+
|
|
25
|
+
const matchMonthPatterns = {
|
|
26
|
+
narrow: /^(一|二|三|四|五|六|七|八|九|十[二一])/i,
|
|
27
|
+
abbreviated: /^(一|二|三|四|五|六|七|八|九|十[二一]|\d|1[12])月/i,
|
|
28
|
+
wide: /^(一|二|三|四|五|六|七|八|九|十[二一])月/i,
|
|
29
|
+
};
|
|
30
|
+
const parseMonthPatterns = {
|
|
31
|
+
narrow: [
|
|
32
|
+
/^一/i,
|
|
33
|
+
/^二/i,
|
|
34
|
+
/^三/i,
|
|
35
|
+
/^四/i,
|
|
36
|
+
/^五/i,
|
|
37
|
+
/^六/i,
|
|
38
|
+
/^七/i,
|
|
39
|
+
/^八/i,
|
|
40
|
+
/^九/i,
|
|
41
|
+
/^十(?!(一|二))/i,
|
|
42
|
+
/^十一/i,
|
|
43
|
+
/^十二/i,
|
|
44
|
+
],
|
|
45
|
+
|
|
46
|
+
any: [
|
|
47
|
+
/^一|1/i,
|
|
48
|
+
/^二|2/i,
|
|
49
|
+
/^三|3/i,
|
|
50
|
+
/^四|4/i,
|
|
51
|
+
/^五|5/i,
|
|
52
|
+
/^六|6/i,
|
|
53
|
+
/^七|7/i,
|
|
54
|
+
/^八|8/i,
|
|
55
|
+
/^九|9/i,
|
|
56
|
+
/^十(?!(一|二))|10/i,
|
|
57
|
+
/^十一|11/i,
|
|
58
|
+
/^十二|12/i,
|
|
59
|
+
],
|
|
60
|
+
};
|
|
61
|
+
|
|
62
|
+
const matchDayPatterns = {
|
|
63
|
+
narrow: /^[一二三四五六日]/i,
|
|
64
|
+
short: /^[一二三四五六日]/i,
|
|
65
|
+
abbreviated: /^周[一二三四五六日]/i,
|
|
66
|
+
wide: /^星期[一二三四五六日]/i,
|
|
67
|
+
};
|
|
68
|
+
const parseDayPatterns = {
|
|
69
|
+
any: [/日/i, /一/i, /二/i, /三/i, /四/i, /五/i, /六/i],
|
|
70
|
+
};
|
|
71
|
+
|
|
72
|
+
const matchDayPeriodPatterns = {
|
|
73
|
+
any: /^(上午?|下午?|午夜|[中正]午|早上?|下午|晚上?|凌晨|)/i,
|
|
74
|
+
};
|
|
75
|
+
const parseDayPeriodPatterns = {
|
|
76
|
+
any: {
|
|
77
|
+
am: /^上午?/i,
|
|
78
|
+
pm: /^下午?/i,
|
|
79
|
+
midnight: /^午夜/i,
|
|
80
|
+
noon: /^[中正]午/i,
|
|
81
|
+
morning: /^早上/i,
|
|
82
|
+
afternoon: /^下午/i,
|
|
83
|
+
evening: /^晚上?/i,
|
|
84
|
+
night: /^凌晨/i,
|
|
85
|
+
},
|
|
86
|
+
};
|
|
87
|
+
|
|
88
|
+
const match = {
|
|
89
|
+
ordinalNumber: buildMatchPatternFn({
|
|
90
|
+
matchPattern: matchOrdinalNumberPattern,
|
|
91
|
+
parsePattern: parseOrdinalNumberPattern,
|
|
92
|
+
valueCallback: (value) => parseInt(value, 10),
|
|
93
|
+
}),
|
|
94
|
+
|
|
95
|
+
era: buildMatchFn({
|
|
96
|
+
matchPatterns: matchEraPatterns,
|
|
97
|
+
defaultMatchWidth: "wide",
|
|
98
|
+
parsePatterns: parseEraPatterns,
|
|
99
|
+
defaultParseWidth: "any",
|
|
100
|
+
}),
|
|
101
|
+
|
|
102
|
+
quarter: buildMatchFn({
|
|
103
|
+
matchPatterns: matchQuarterPatterns,
|
|
104
|
+
defaultMatchWidth: "wide",
|
|
105
|
+
parsePatterns: parseQuarterPatterns,
|
|
106
|
+
defaultParseWidth: "any",
|
|
107
|
+
valueCallback: (index) => index + 1,
|
|
108
|
+
}),
|
|
109
|
+
|
|
110
|
+
month: buildMatchFn({
|
|
111
|
+
matchPatterns: matchMonthPatterns,
|
|
112
|
+
defaultMatchWidth: "wide",
|
|
113
|
+
parsePatterns: parseMonthPatterns,
|
|
114
|
+
defaultParseWidth: "any",
|
|
115
|
+
}),
|
|
116
|
+
|
|
117
|
+
day: buildMatchFn({
|
|
118
|
+
matchPatterns: matchDayPatterns,
|
|
119
|
+
defaultMatchWidth: "wide",
|
|
120
|
+
parsePatterns: parseDayPatterns,
|
|
121
|
+
defaultParseWidth: "any",
|
|
122
|
+
}),
|
|
123
|
+
|
|
124
|
+
dayPeriod: buildMatchFn({
|
|
125
|
+
matchPatterns: matchDayPeriodPatterns,
|
|
126
|
+
defaultMatchWidth: "any",
|
|
127
|
+
parsePatterns: parseDayPeriodPatterns,
|
|
128
|
+
defaultParseWidth: "any",
|
|
129
|
+
}),
|
|
130
|
+
};
|
|
131
|
+
|
|
132
|
+
export { match };
|
|
133
|
+
//# sourceMappingURL=match.js.map
|
package/dist/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/locale/zh-CN/_lib/match.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"match.js","sources":["../../../../../../../../../../../node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/locale/zh-CN/_lib/match.js"],"sourcesContent":["import { buildMatchFn } from \"../../_lib/buildMatchFn.js\";\nimport { buildMatchPatternFn } from \"../../_lib/buildMatchPatternFn.js\";\n\nconst matchOrdinalNumberPattern = /^(第\\s*)?\\d+(日|时|分|秒)?/i;\nconst parseOrdinalNumberPattern = /\\d+/i;\n\nconst matchEraPatterns = {\n narrow: /^(前)/i,\n abbreviated: /^(前)/i,\n wide: /^(公元前|公元)/i,\n};\nconst parseEraPatterns = {\n any: [/^(前)/i, /^(公元)/i],\n};\n\nconst matchQuarterPatterns = {\n narrow: /^[1234]/i,\n abbreviated: /^第[一二三四]刻/i,\n wide: /^第[一二三四]刻钟/i,\n};\nconst parseQuarterPatterns = {\n any: [/(1|一)/i, /(2|二)/i, /(3|三)/i, /(4|四)/i],\n};\n\nconst matchMonthPatterns = {\n narrow: /^(一|二|三|四|五|六|七|八|九|十[二一])/i,\n abbreviated: /^(一|二|三|四|五|六|七|八|九|十[二一]|\\d|1[12])月/i,\n wide: /^(一|二|三|四|五|六|七|八|九|十[二一])月/i,\n};\nconst parseMonthPatterns = {\n narrow: [\n /^一/i,\n /^二/i,\n /^三/i,\n /^四/i,\n /^五/i,\n /^六/i,\n /^七/i,\n /^八/i,\n /^九/i,\n /^十(?!(一|二))/i,\n /^十一/i,\n /^十二/i,\n ],\n\n any: [\n /^一|1/i,\n /^二|2/i,\n /^三|3/i,\n /^四|4/i,\n /^五|5/i,\n /^六|6/i,\n /^七|7/i,\n /^八|8/i,\n /^九|9/i,\n /^十(?!(一|二))|10/i,\n /^十一|11/i,\n /^十二|12/i,\n ],\n};\n\nconst matchDayPatterns = {\n narrow: /^[一二三四五六日]/i,\n short: /^[一二三四五六日]/i,\n abbreviated: /^周[一二三四五六日]/i,\n wide: /^星期[一二三四五六日]/i,\n};\nconst parseDayPatterns = {\n any: [/日/i, /一/i, /二/i, /三/i, /四/i, /五/i, /六/i],\n};\n\nconst matchDayPeriodPatterns = {\n any: /^(上午?|下午?|午夜|[中正]午|早上?|下午|晚上?|凌晨|)/i,\n};\nconst parseDayPeriodPatterns = {\n any: {\n am: /^上午?/i,\n pm: /^下午?/i,\n midnight: /^午夜/i,\n noon: /^[中正]午/i,\n morning: /^早上/i,\n afternoon: /^下午/i,\n evening: /^晚上?/i,\n night: /^凌晨/i,\n },\n};\n\nexport const match = {\n ordinalNumber: buildMatchPatternFn({\n matchPattern: matchOrdinalNumberPattern,\n parsePattern: parseOrdinalNumberPattern,\n valueCallback: (value) => parseInt(value, 10),\n }),\n\n era: buildMatchFn({\n matchPatterns: matchEraPatterns,\n defaultMatchWidth: \"wide\",\n parsePatterns: parseEraPatterns,\n defaultParseWidth: \"any\",\n }),\n\n quarter: buildMatchFn({\n matchPatterns: matchQuarterPatterns,\n defaultMatchWidth: \"wide\",\n parsePatterns: parseQuarterPatterns,\n defaultParseWidth: \"any\",\n valueCallback: (index) => index + 1,\n }),\n\n month: buildMatchFn({\n matchPatterns: matchMonthPatterns,\n defaultMatchWidth: \"wide\",\n parsePatterns: parseMonthPatterns,\n defaultParseWidth: \"any\",\n }),\n\n day: buildMatchFn({\n matchPatterns: matchDayPatterns,\n defaultMatchWidth: \"wide\",\n parsePatterns: parseDayPatterns,\n defaultParseWidth: \"any\",\n }),\n\n dayPeriod: buildMatchFn({\n matchPatterns: matchDayPeriodPatterns,\n defaultMatchWidth: \"any\",\n parsePatterns: parseDayPeriodPatterns,\n defaultParseWidth: \"any\",\n }),\n};\n"],"names":[],"mappings":";;;AAGA,MAAM,yBAAyB,GAAG,wBAAwB;AAC1D,MAAM,yBAAyB,GAAG,MAAM;;AAExC,MAAM,gBAAgB,GAAG;AACzB,EAAE,MAAM,EAAE,OAAO;AACjB,EAAE,WAAW,EAAE,OAAO;AACtB,EAAE,IAAI,EAAE,YAAY;AACpB,CAAC;AACD,MAAM,gBAAgB,GAAG;AACzB,EAAE,GAAG,EAAE,CAAC,OAAO,EAAE,QAAQ,CAAC;AAC1B,CAAC;;AAED,MAAM,oBAAoB,GAAG;AAC7B,EAAE,MAAM,EAAE,UAAU;AACpB,EAAE,WAAW,EAAE,YAAY;AAC3B,EAAE,IAAI,EAAE,aAAa;AACrB,CAAC;AACD,MAAM,oBAAoB,GAAG;AAC7B,EAAE,GAAG,EAAE,CAAC,QAAQ,EAAE,QAAQ,EAAE,QAAQ,EAAE,QAAQ,CAAC;AAC/C,CAAC;;AAED,MAAM,kBAAkB,GAAG;AAC3B,EAAE,MAAM,EAAE,6BAA6B;AACvC,EAAE,WAAW,EAAE,uCAAuC;AACtD,EAAE,IAAI,EAAE,8BAA8B;AACtC,CAAC;AACD,MAAM,kBAAkB,GAAG;AAC3B,EAAE,MAAM,EAAE;AACV,IAAI,KAAK;AACT,IAAI,KAAK;AACT,IAAI,KAAK;AACT,IAAI,KAAK;AACT,IAAI,KAAK;AACT,IAAI,KAAK;AACT,IAAI,KAAK;AACT,IAAI,KAAK;AACT,IAAI,KAAK;AACT,IAAI,cAAc;AAClB,IAAI,MAAM;AACV,IAAI,MAAM;AACV,GAAG;;AAEH,EAAE,GAAG,EAAE;AACP,IAAI,OAAO;AACX,IAAI,OAAO;AACX,IAAI,OAAO;AACX,IAAI,OAAO;AACX,IAAI,OAAO;AACX,IAAI,OAAO;AACX,IAAI,OAAO;AACX,IAAI,OAAO;AACX,IAAI,OAAO;AACX,IAAI,iBAAiB;AACrB,IAAI,SAAS;AACb,IAAI,SAAS;AACb,GAAG;AACH,CAAC;;AAED,MAAM,gBAAgB,GAAG;AACzB,EAAE,MAAM,EAAE,aAAa;AACvB,EAAE,KAAK,EAAE,aAAa;AACtB,EAAE,WAAW,EAAE,cAAc;AAC7B,EAAE,IAAI,EAAE,eAAe;AACvB,CAAC;AACD,MAAM,gBAAgB,GAAG;AACzB,EAAE,GAAG,EAAE,CAAC,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,CAAC;AACjD,CAAC;;AAED,MAAM,sBAAsB,GAAG;AAC/B,EAAE,GAAG,EAAE,qCAAqC;AAC5C,CAAC;AACD,MAAM,sBAAsB,GAAG;AAC/B,EAAE,GAAG,EAAE;AACP,IAAI,EAAE,EAAE,OAAO;AACf,IAAI,EAAE,EAAE,OAAO;AACf,IAAI,QAAQ,EAAE,MAAM;AACpB,IAAI,IAAI,EAAE,SAAS;AACnB,IAAI,OAAO,EAAE,MAAM;AACnB,IAAI,SAAS,EAAE,MAAM;AACrB,IAAI,OAAO,EAAE,OAAO;AACpB,IAAI,KAAK,EAAE,MAAM;AACjB,GAAG;AACH,CAAC;;AAEW,MAAC,KAAK,GAAG;AACrB,EAAE,aAAa,EAAE,mBAAmB,CAAC;AACrC,IAAI,YAAY,EAAE,yBAAyB;AAC3C,IAAI,YAAY,EAAE,yBAAyB;AAC3C,IAAI,aAAa,EAAE,CAAC,KAAK,KAAK,QAAQ,CAAC,KAAK,EAAE,EAAE,CAAC;AACjD,GAAG,CAAC;;AAEJ,EAAE,GAAG,EAAE,YAAY,CAAC;AACpB,IAAI,aAAa,EAAE,gBAAgB;AACnC,IAAI,iBAAiB,EAAE,MAAM;AAC7B,IAAI,aAAa,EAAE,gBAAgB;AACnC,IAAI,iBAAiB,EAAE,KAAK;AAC5B,GAAG,CAAC;;AAEJ,EAAE,OAAO,EAAE,YAAY,CAAC;AACxB,IAAI,aAAa,EAAE,oBAAoB;AACvC,IAAI,iBAAiB,EAAE,MAAM;AAC7B,IAAI,aAAa,EAAE,oBAAoB;AACvC,IAAI,iBAAiB,EAAE,KAAK;AAC5B,IAAI,aAAa,EAAE,CAAC,KAAK,KAAK,KAAK,GAAG,CAAC;AACvC,GAAG,CAAC;;AAEJ,EAAE,KAAK,EAAE,YAAY,CAAC;AACtB,IAAI,aAAa,EAAE,kBAAkB;AACrC,IAAI,iBAAiB,EAAE,MAAM;AAC7B,IAAI,aAAa,EAAE,kBAAkB;AACrC,IAAI,iBAAiB,EAAE,KAAK;AAC5B,GAAG,CAAC;;AAEJ,EAAE,GAAG,EAAE,YAAY,CAAC;AACpB,IAAI,aAAa,EAAE,gBAAgB;AACnC,IAAI,iBAAiB,EAAE,MAAM;AAC7B,IAAI,aAAa,EAAE,gBAAgB;AACnC,IAAI,iBAAiB,EAAE,KAAK;AAC5B,GAAG,CAAC;;AAEJ,EAAE,SAAS,EAAE,YAAY,CAAC;AAC1B,IAAI,aAAa,EAAE,sBAAsB;AACzC,IAAI,iBAAiB,EAAE,KAAK;AAC5B,IAAI,aAAa,EAAE,sBAAsB;AACzC,IAAI,iBAAiB,EAAE,KAAK;AAC5B,GAAG,CAAC;AACJ;;;;","x_google_ignoreList":[0]}
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
5
|
+
var formatDistance = require('./zh-CN/_lib/formatDistance.cjs');
|
|
6
|
+
var formatLong = require('./zh-CN/_lib/formatLong.cjs');
|
|
7
|
+
var formatRelative = require('./zh-CN/_lib/formatRelative.cjs');
|
|
8
|
+
var localize = require('./zh-CN/_lib/localize.cjs');
|
|
9
|
+
var match = require('./zh-CN/_lib/match.cjs');
|
|
10
|
+
|
|
11
|
+
/**
|
|
12
|
+
* @category Locales
|
|
13
|
+
* @summary Chinese Simplified locale.
|
|
14
|
+
* @language Chinese Simplified
|
|
15
|
+
* @iso-639-2 zho
|
|
16
|
+
* @author Changyu Geng [@KingMario](https://github.com/KingMario)
|
|
17
|
+
* @author Song Shuoyun [@fnlctrl](https://github.com/fnlctrl)
|
|
18
|
+
* @author sabrinaM [@sabrinamiao](https://github.com/sabrinamiao)
|
|
19
|
+
* @author Carney Wu [@cubicwork](https://github.com/cubicwork)
|
|
20
|
+
* @author Terrence Lam [@skyuplam](https://github.com/skyuplam)
|
|
21
|
+
*/
|
|
22
|
+
const zhCN = {
|
|
23
|
+
code: "zh-CN",
|
|
24
|
+
formatDistance: formatDistance.formatDistance,
|
|
25
|
+
formatLong: formatLong.formatLong,
|
|
26
|
+
formatRelative: formatRelative.formatRelative,
|
|
27
|
+
localize: localize.localize,
|
|
28
|
+
match: match.match,
|
|
29
|
+
options: {
|
|
30
|
+
weekStartsOn: 1 /* Monday */,
|
|
31
|
+
firstWeekContainsDate: 4,
|
|
32
|
+
},
|
|
33
|
+
};
|
|
34
|
+
|
|
35
|
+
exports.default = zhCN;
|
|
36
|
+
exports.zhCN = zhCN;
|
|
37
|
+
//# sourceMappingURL=zh-CN.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"zh-CN.cjs","sources":["../../../../../../../../../node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/locale/zh-CN.js"],"sourcesContent":["import { formatDistance } from \"./zh-CN/_lib/formatDistance.js\";\nimport { formatLong } from \"./zh-CN/_lib/formatLong.js\";\nimport { formatRelative } from \"./zh-CN/_lib/formatRelative.js\";\nimport { localize } from \"./zh-CN/_lib/localize.js\";\nimport { match } from \"./zh-CN/_lib/match.js\";\n\n/**\n * @category Locales\n * @summary Chinese Simplified locale.\n * @language Chinese Simplified\n * @iso-639-2 zho\n * @author Changyu Geng [@KingMario](https://github.com/KingMario)\n * @author Song Shuoyun [@fnlctrl](https://github.com/fnlctrl)\n * @author sabrinaM [@sabrinamiao](https://github.com/sabrinamiao)\n * @author Carney Wu [@cubicwork](https://github.com/cubicwork)\n * @author Terrence Lam [@skyuplam](https://github.com/skyuplam)\n */\nexport const zhCN = {\n code: \"zh-CN\",\n formatDistance: formatDistance,\n formatLong: formatLong,\n formatRelative: formatRelative,\n localize: localize,\n match: match,\n options: {\n weekStartsOn: 1 /* Monday */,\n firstWeekContainsDate: 4,\n },\n};\n\n// Fallback for modularized imports:\nexport default zhCN;\n"],"names":["formatDistance","formatLong","formatRelative","localize","match"],"mappings":";;;;;;;;;;AAMA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACY,MAAC,IAAI,GAAG;AACpB,EAAE,IAAI,EAAE,OAAO;AACf,EAAE,cAAc,EAAEA,6BAAc;AAChC,EAAE,UAAU,EAAEC,qBAAU;AACxB,EAAE,cAAc,EAAEC,6BAAc;AAChC,EAAE,QAAQ,EAAEC,iBAAQ;AACpB,EAAE,KAAK,EAAEC,WAAK;AACd,EAAE,OAAO,EAAE;AACX,IAAI,YAAY,EAAE,CAAC;AACnB,IAAI,qBAAqB,EAAE,CAAC;AAC5B,GAAG;AACH;;;;;","x_google_ignoreList":[0]}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { formatDistance } from './zh-CN/_lib/formatDistance.js';
|
|
2
|
+
import { formatLong } from './zh-CN/_lib/formatLong.js';
|
|
3
|
+
import { formatRelative } from './zh-CN/_lib/formatRelative.js';
|
|
4
|
+
import { localize } from './zh-CN/_lib/localize.js';
|
|
5
|
+
import { match } from './zh-CN/_lib/match.js';
|
|
6
|
+
|
|
7
|
+
/**
|
|
8
|
+
* @category Locales
|
|
9
|
+
* @summary Chinese Simplified locale.
|
|
10
|
+
* @language Chinese Simplified
|
|
11
|
+
* @iso-639-2 zho
|
|
12
|
+
* @author Changyu Geng [@KingMario](https://github.com/KingMario)
|
|
13
|
+
* @author Song Shuoyun [@fnlctrl](https://github.com/fnlctrl)
|
|
14
|
+
* @author sabrinaM [@sabrinamiao](https://github.com/sabrinamiao)
|
|
15
|
+
* @author Carney Wu [@cubicwork](https://github.com/cubicwork)
|
|
16
|
+
* @author Terrence Lam [@skyuplam](https://github.com/skyuplam)
|
|
17
|
+
*/
|
|
18
|
+
const zhCN = {
|
|
19
|
+
code: "zh-CN",
|
|
20
|
+
formatDistance: formatDistance,
|
|
21
|
+
formatLong: formatLong,
|
|
22
|
+
formatRelative: formatRelative,
|
|
23
|
+
localize: localize,
|
|
24
|
+
match: match,
|
|
25
|
+
options: {
|
|
26
|
+
weekStartsOn: 1 /* Monday */,
|
|
27
|
+
firstWeekContainsDate: 4,
|
|
28
|
+
},
|
|
29
|
+
};
|
|
30
|
+
|
|
31
|
+
export { zhCN as default, zhCN };
|
|
32
|
+
//# sourceMappingURL=zh-CN.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"zh-CN.js","sources":["../../../../../../../../../node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/locale/zh-CN.js"],"sourcesContent":["import { formatDistance } from \"./zh-CN/_lib/formatDistance.js\";\nimport { formatLong } from \"./zh-CN/_lib/formatLong.js\";\nimport { formatRelative } from \"./zh-CN/_lib/formatRelative.js\";\nimport { localize } from \"./zh-CN/_lib/localize.js\";\nimport { match } from \"./zh-CN/_lib/match.js\";\n\n/**\n * @category Locales\n * @summary Chinese Simplified locale.\n * @language Chinese Simplified\n * @iso-639-2 zho\n * @author Changyu Geng [@KingMario](https://github.com/KingMario)\n * @author Song Shuoyun [@fnlctrl](https://github.com/fnlctrl)\n * @author sabrinaM [@sabrinamiao](https://github.com/sabrinamiao)\n * @author Carney Wu [@cubicwork](https://github.com/cubicwork)\n * @author Terrence Lam [@skyuplam](https://github.com/skyuplam)\n */\nexport const zhCN = {\n code: \"zh-CN\",\n formatDistance: formatDistance,\n formatLong: formatLong,\n formatRelative: formatRelative,\n localize: localize,\n match: match,\n options: {\n weekStartsOn: 1 /* Monday */,\n firstWeekContainsDate: 4,\n },\n};\n\n// Fallback for modularized imports:\nexport default zhCN;\n"],"names":[],"mappings":";;;;;;AAMA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACY,MAAC,IAAI,GAAG;AACpB,EAAE,IAAI,EAAE,OAAO;AACf,EAAE,cAAc,EAAE,cAAc;AAChC,EAAE,UAAU,EAAE,UAAU;AACxB,EAAE,cAAc,EAAE,cAAc;AAChC,EAAE,QAAQ,EAAE,QAAQ;AACpB,EAAE,KAAK,EAAE,KAAK;AACd,EAAE,OAAO,EAAE;AACX,IAAI,YAAY,EAAE,CAAC;AACnB,IAAI,qBAAqB,EAAE,CAAC;AAC5B,GAAG;AACH;;;;","x_google_ignoreList":[0]}
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
5
|
+
var defaultOptions = require('./_lib/defaultOptions.cjs');
|
|
6
|
+
var toDate = require('./toDate.cjs');
|
|
7
|
+
|
|
8
|
+
/**
|
|
9
|
+
* The {@link startOfWeek} function options.
|
|
10
|
+
*/
|
|
11
|
+
|
|
12
|
+
/**
|
|
13
|
+
* @name startOfWeek
|
|
14
|
+
* @category Week Helpers
|
|
15
|
+
* @summary Return the start of a week for the given date.
|
|
16
|
+
*
|
|
17
|
+
* @description
|
|
18
|
+
* Return the start of a week for the given date.
|
|
19
|
+
* The result will be in the local timezone.
|
|
20
|
+
*
|
|
21
|
+
* @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc).
|
|
22
|
+
* @typeParam ResultDate - The result `Date` type, it is the type returned from the context function if it is passed, or inferred from the arguments.
|
|
23
|
+
*
|
|
24
|
+
* @param date - The original date
|
|
25
|
+
* @param options - An object with options
|
|
26
|
+
*
|
|
27
|
+
* @returns The start of a week
|
|
28
|
+
*
|
|
29
|
+
* @example
|
|
30
|
+
* // The start of a week for 2 September 2014 11:55:00:
|
|
31
|
+
* const result = startOfWeek(new Date(2014, 8, 2, 11, 55, 0))
|
|
32
|
+
* //=> Sun Aug 31 2014 00:00:00
|
|
33
|
+
*
|
|
34
|
+
* @example
|
|
35
|
+
* // If the week starts on Monday, the start of the week for 2 September 2014 11:55:00:
|
|
36
|
+
* const result = startOfWeek(new Date(2014, 8, 2, 11, 55, 0), { weekStartsOn: 1 })
|
|
37
|
+
* //=> Mon Sep 01 2014 00:00:00
|
|
38
|
+
*/
|
|
39
|
+
function startOfWeek(date, options) {
|
|
40
|
+
const defaultOptions$1 = defaultOptions.getDefaultOptions();
|
|
41
|
+
const weekStartsOn =
|
|
42
|
+
options?.weekStartsOn ??
|
|
43
|
+
options?.locale?.options?.weekStartsOn ??
|
|
44
|
+
defaultOptions$1.weekStartsOn ??
|
|
45
|
+
defaultOptions$1.locale?.options?.weekStartsOn ??
|
|
46
|
+
0;
|
|
47
|
+
|
|
48
|
+
const _date = toDate.toDate(date, options?.in);
|
|
49
|
+
const day = _date.getDay();
|
|
50
|
+
const diff = (day < weekStartsOn ? 7 : 0) + day - weekStartsOn;
|
|
51
|
+
|
|
52
|
+
_date.setDate(_date.getDate() - diff);
|
|
53
|
+
_date.setHours(0, 0, 0, 0);
|
|
54
|
+
return _date;
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
exports.default = startOfWeek;
|
|
58
|
+
exports.startOfWeek = startOfWeek;
|
|
59
|
+
//# sourceMappingURL=startOfWeek.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"startOfWeek.cjs","sources":["../../../../../../../../node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/startOfWeek.js"],"sourcesContent":["import { getDefaultOptions } from \"./_lib/defaultOptions.js\";\nimport { toDate } from \"./toDate.js\";\n\n/**\n * The {@link startOfWeek} function options.\n */\n\n/**\n * @name startOfWeek\n * @category Week Helpers\n * @summary Return the start of a week for the given date.\n *\n * @description\n * Return the start of a week for the given date.\n * The result will be in the local timezone.\n *\n * @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc).\n * @typeParam ResultDate - The result `Date` type, it is the type returned from the context function if it is passed, or inferred from the arguments.\n *\n * @param date - The original date\n * @param options - An object with options\n *\n * @returns The start of a week\n *\n * @example\n * // The start of a week for 2 September 2014 11:55:00:\n * const result = startOfWeek(new Date(2014, 8, 2, 11, 55, 0))\n * //=> Sun Aug 31 2014 00:00:00\n *\n * @example\n * // If the week starts on Monday, the start of the week for 2 September 2014 11:55:00:\n * const result = startOfWeek(new Date(2014, 8, 2, 11, 55, 0), { weekStartsOn: 1 })\n * //=> Mon Sep 01 2014 00:00:00\n */\nexport function startOfWeek(date, options) {\n const defaultOptions = getDefaultOptions();\n const weekStartsOn =\n options?.weekStartsOn ??\n options?.locale?.options?.weekStartsOn ??\n defaultOptions.weekStartsOn ??\n defaultOptions.locale?.options?.weekStartsOn ??\n 0;\n\n const _date = toDate(date, options?.in);\n const day = _date.getDay();\n const diff = (day < weekStartsOn ? 7 : 0) + day - weekStartsOn;\n\n _date.setDate(_date.getDate() - diff);\n _date.setHours(0, 0, 0, 0);\n return _date;\n}\n\n// Fallback for modularized imports:\nexport default startOfWeek;\n"],"names":["defaultOptions","getDefaultOptions","toDate"],"mappings":";;;;;;;AAGA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACO,SAAS,WAAW,CAAC,IAAI,EAAE,OAAO,EAAE;AAC3C,EAAE,MAAMA,gBAAc,GAAGC,gCAAiB,EAAE;AAC5C,EAAE,MAAM,YAAY;AACpB,IAAI,OAAO,EAAE,YAAY;AACzB,IAAI,OAAO,EAAE,MAAM,EAAE,OAAO,EAAE,YAAY;AAC1C,IAAID,gBAAc,CAAC,YAAY;AAC/B,IAAIA,gBAAc,CAAC,MAAM,EAAE,OAAO,EAAE,YAAY;AAChD,IAAI,CAAC;;AAEL,EAAE,MAAM,KAAK,GAAGE,aAAM,CAAC,IAAI,EAAE,OAAO,EAAE,EAAE,CAAC;AACzC,EAAE,MAAM,GAAG,GAAG,KAAK,CAAC,MAAM,EAAE;AAC5B,EAAE,MAAM,IAAI,GAAG,CAAC,GAAG,GAAG,YAAY,GAAG,CAAC,GAAG,CAAC,IAAI,GAAG,GAAG,YAAY;;AAEhE,EAAE,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,OAAO,EAAE,GAAG,IAAI,CAAC;AACvC,EAAE,KAAK,CAAC,QAAQ,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,CAAC;AAC5B,EAAE,OAAO,KAAK;AACd;;;;;","x_google_ignoreList":[0]}
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
import { getDefaultOptions } from './_lib/defaultOptions.js';
|
|
2
|
+
import { toDate } from './toDate.js';
|
|
3
|
+
|
|
4
|
+
/**
|
|
5
|
+
* The {@link startOfWeek} function options.
|
|
6
|
+
*/
|
|
7
|
+
|
|
8
|
+
/**
|
|
9
|
+
* @name startOfWeek
|
|
10
|
+
* @category Week Helpers
|
|
11
|
+
* @summary Return the start of a week for the given date.
|
|
12
|
+
*
|
|
13
|
+
* @description
|
|
14
|
+
* Return the start of a week for the given date.
|
|
15
|
+
* The result will be in the local timezone.
|
|
16
|
+
*
|
|
17
|
+
* @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc).
|
|
18
|
+
* @typeParam ResultDate - The result `Date` type, it is the type returned from the context function if it is passed, or inferred from the arguments.
|
|
19
|
+
*
|
|
20
|
+
* @param date - The original date
|
|
21
|
+
* @param options - An object with options
|
|
22
|
+
*
|
|
23
|
+
* @returns The start of a week
|
|
24
|
+
*
|
|
25
|
+
* @example
|
|
26
|
+
* // The start of a week for 2 September 2014 11:55:00:
|
|
27
|
+
* const result = startOfWeek(new Date(2014, 8, 2, 11, 55, 0))
|
|
28
|
+
* //=> Sun Aug 31 2014 00:00:00
|
|
29
|
+
*
|
|
30
|
+
* @example
|
|
31
|
+
* // If the week starts on Monday, the start of the week for 2 September 2014 11:55:00:
|
|
32
|
+
* const result = startOfWeek(new Date(2014, 8, 2, 11, 55, 0), { weekStartsOn: 1 })
|
|
33
|
+
* //=> Mon Sep 01 2014 00:00:00
|
|
34
|
+
*/
|
|
35
|
+
function startOfWeek(date, options) {
|
|
36
|
+
const defaultOptions = getDefaultOptions();
|
|
37
|
+
const weekStartsOn =
|
|
38
|
+
options?.weekStartsOn ??
|
|
39
|
+
options?.locale?.options?.weekStartsOn ??
|
|
40
|
+
defaultOptions.weekStartsOn ??
|
|
41
|
+
defaultOptions.locale?.options?.weekStartsOn ??
|
|
42
|
+
0;
|
|
43
|
+
|
|
44
|
+
const _date = toDate(date, options?.in);
|
|
45
|
+
const day = _date.getDay();
|
|
46
|
+
const diff = (day < weekStartsOn ? 7 : 0) + day - weekStartsOn;
|
|
47
|
+
|
|
48
|
+
_date.setDate(_date.getDate() - diff);
|
|
49
|
+
_date.setHours(0, 0, 0, 0);
|
|
50
|
+
return _date;
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
export { startOfWeek as default, startOfWeek };
|
|
54
|
+
//# sourceMappingURL=startOfWeek.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"startOfWeek.js","sources":["../../../../../../../../node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/startOfWeek.js"],"sourcesContent":["import { getDefaultOptions } from \"./_lib/defaultOptions.js\";\nimport { toDate } from \"./toDate.js\";\n\n/**\n * The {@link startOfWeek} function options.\n */\n\n/**\n * @name startOfWeek\n * @category Week Helpers\n * @summary Return the start of a week for the given date.\n *\n * @description\n * Return the start of a week for the given date.\n * The result will be in the local timezone.\n *\n * @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc).\n * @typeParam ResultDate - The result `Date` type, it is the type returned from the context function if it is passed, or inferred from the arguments.\n *\n * @param date - The original date\n * @param options - An object with options\n *\n * @returns The start of a week\n *\n * @example\n * // The start of a week for 2 September 2014 11:55:00:\n * const result = startOfWeek(new Date(2014, 8, 2, 11, 55, 0))\n * //=> Sun Aug 31 2014 00:00:00\n *\n * @example\n * // If the week starts on Monday, the start of the week for 2 September 2014 11:55:00:\n * const result = startOfWeek(new Date(2014, 8, 2, 11, 55, 0), { weekStartsOn: 1 })\n * //=> Mon Sep 01 2014 00:00:00\n */\nexport function startOfWeek(date, options) {\n const defaultOptions = getDefaultOptions();\n const weekStartsOn =\n options?.weekStartsOn ??\n options?.locale?.options?.weekStartsOn ??\n defaultOptions.weekStartsOn ??\n defaultOptions.locale?.options?.weekStartsOn ??\n 0;\n\n const _date = toDate(date, options?.in);\n const day = _date.getDay();\n const diff = (day < weekStartsOn ? 7 : 0) + day - weekStartsOn;\n\n _date.setDate(_date.getDate() - diff);\n _date.setHours(0, 0, 0, 0);\n return _date;\n}\n\n// Fallback for modularized imports:\nexport default startOfWeek;\n"],"names":[],"mappings":";;;AAGA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACO,SAAS,WAAW,CAAC,IAAI,EAAE,OAAO,EAAE;AAC3C,EAAE,MAAM,cAAc,GAAG,iBAAiB,EAAE;AAC5C,EAAE,MAAM,YAAY;AACpB,IAAI,OAAO,EAAE,YAAY;AACzB,IAAI,OAAO,EAAE,MAAM,EAAE,OAAO,EAAE,YAAY;AAC1C,IAAI,cAAc,CAAC,YAAY;AAC/B,IAAI,cAAc,CAAC,MAAM,EAAE,OAAO,EAAE,YAAY;AAChD,IAAI,CAAC;;AAEL,EAAE,MAAM,KAAK,GAAG,MAAM,CAAC,IAAI,EAAE,OAAO,EAAE,EAAE,CAAC;AACzC,EAAE,MAAM,GAAG,GAAG,KAAK,CAAC,MAAM,EAAE;AAC5B,EAAE,MAAM,IAAI,GAAG,CAAC,GAAG,GAAG,YAAY,GAAG,CAAC,GAAG,CAAC,IAAI,GAAG,GAAG,YAAY;;AAEhE,EAAE,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,OAAO,EAAE,GAAG,IAAI,CAAC;AACvC,EAAE,KAAK,CAAC,QAAQ,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,CAAC;AAC5B,EAAE,OAAO,KAAK;AACd;;;;","x_google_ignoreList":[0]}
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
5
|
+
var constructFrom = require('./constructFrom.cjs');
|
|
6
|
+
|
|
7
|
+
/**
|
|
8
|
+
* @name toDate
|
|
9
|
+
* @category Common Helpers
|
|
10
|
+
* @summary Convert the given argument to an instance of Date.
|
|
11
|
+
*
|
|
12
|
+
* @description
|
|
13
|
+
* Convert the given argument to an instance of Date.
|
|
14
|
+
*
|
|
15
|
+
* If the argument is an instance of Date, the function returns its clone.
|
|
16
|
+
*
|
|
17
|
+
* If the argument is a number, it is treated as a timestamp.
|
|
18
|
+
*
|
|
19
|
+
* If the argument is none of the above, the function returns Invalid Date.
|
|
20
|
+
*
|
|
21
|
+
* Starting from v3.7.0, it clones a date using `[Symbol.for("constructDateFrom")]`
|
|
22
|
+
* enabling to transfer extra properties from the reference date to the new date.
|
|
23
|
+
* It's useful for extensions like [`TZDate`](https://github.com/date-fns/tz)
|
|
24
|
+
* that accept a time zone as a constructor argument.
|
|
25
|
+
*
|
|
26
|
+
* **Note**: *all* Date arguments passed to any *date-fns* function is processed by `toDate`.
|
|
27
|
+
*
|
|
28
|
+
* @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc).
|
|
29
|
+
* @typeParam ResultDate - The result `Date` type, it is the type returned from the context function if it is passed, or inferred from the arguments.
|
|
30
|
+
*
|
|
31
|
+
* @param argument - The value to convert
|
|
32
|
+
*
|
|
33
|
+
* @returns The parsed date in the local time zone
|
|
34
|
+
*
|
|
35
|
+
* @example
|
|
36
|
+
* // Clone the date:
|
|
37
|
+
* const result = toDate(new Date(2014, 1, 11, 11, 30, 30))
|
|
38
|
+
* //=> Tue Feb 11 2014 11:30:30
|
|
39
|
+
*
|
|
40
|
+
* @example
|
|
41
|
+
* // Convert the timestamp to date:
|
|
42
|
+
* const result = toDate(1392098430000)
|
|
43
|
+
* //=> Tue Feb 11 2014 11:30:30
|
|
44
|
+
*/
|
|
45
|
+
function toDate(argument, context) {
|
|
46
|
+
// [TODO] Get rid of `toDate` or `constructFrom`?
|
|
47
|
+
return constructFrom.constructFrom(context || argument, argument);
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
exports.default = toDate;
|
|
51
|
+
exports.toDate = toDate;
|
|
52
|
+
//# sourceMappingURL=toDate.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"toDate.cjs","sources":["../../../../../../../../node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/toDate.js"],"sourcesContent":["import { constructFrom } from \"./constructFrom.js\";\n\n/**\n * @name toDate\n * @category Common Helpers\n * @summary Convert the given argument to an instance of Date.\n *\n * @description\n * Convert the given argument to an instance of Date.\n *\n * If the argument is an instance of Date, the function returns its clone.\n *\n * If the argument is a number, it is treated as a timestamp.\n *\n * If the argument is none of the above, the function returns Invalid Date.\n *\n * Starting from v3.7.0, it clones a date using `[Symbol.for(\"constructDateFrom\")]`\n * enabling to transfer extra properties from the reference date to the new date.\n * It's useful for extensions like [`TZDate`](https://github.com/date-fns/tz)\n * that accept a time zone as a constructor argument.\n *\n * **Note**: *all* Date arguments passed to any *date-fns* function is processed by `toDate`.\n *\n * @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc).\n * @typeParam ResultDate - The result `Date` type, it is the type returned from the context function if it is passed, or inferred from the arguments.\n *\n * @param argument - The value to convert\n *\n * @returns The parsed date in the local time zone\n *\n * @example\n * // Clone the date:\n * const result = toDate(new Date(2014, 1, 11, 11, 30, 30))\n * //=> Tue Feb 11 2014 11:30:30\n *\n * @example\n * // Convert the timestamp to date:\n * const result = toDate(1392098430000)\n * //=> Tue Feb 11 2014 11:30:30\n */\nexport function toDate(argument, context) {\n // [TODO] Get rid of `toDate` or `constructFrom`?\n return constructFrom(context || argument, argument);\n}\n\n// Fallback for modularized imports:\nexport default toDate;\n"],"names":["constructFrom"],"mappings":";;;;;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACO,SAAS,MAAM,CAAC,QAAQ,EAAE,OAAO,EAAE;AAC1C;AACA,EAAE,OAAOA,2BAAa,CAAC,OAAO,IAAI,QAAQ,EAAE,QAAQ,CAAC;AACrD;;;;;","x_google_ignoreList":[0]}
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
import { constructFrom } from './constructFrom.js';
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* @name toDate
|
|
5
|
+
* @category Common Helpers
|
|
6
|
+
* @summary Convert the given argument to an instance of Date.
|
|
7
|
+
*
|
|
8
|
+
* @description
|
|
9
|
+
* Convert the given argument to an instance of Date.
|
|
10
|
+
*
|
|
11
|
+
* If the argument is an instance of Date, the function returns its clone.
|
|
12
|
+
*
|
|
13
|
+
* If the argument is a number, it is treated as a timestamp.
|
|
14
|
+
*
|
|
15
|
+
* If the argument is none of the above, the function returns Invalid Date.
|
|
16
|
+
*
|
|
17
|
+
* Starting from v3.7.0, it clones a date using `[Symbol.for("constructDateFrom")]`
|
|
18
|
+
* enabling to transfer extra properties from the reference date to the new date.
|
|
19
|
+
* It's useful for extensions like [`TZDate`](https://github.com/date-fns/tz)
|
|
20
|
+
* that accept a time zone as a constructor argument.
|
|
21
|
+
*
|
|
22
|
+
* **Note**: *all* Date arguments passed to any *date-fns* function is processed by `toDate`.
|
|
23
|
+
*
|
|
24
|
+
* @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc).
|
|
25
|
+
* @typeParam ResultDate - The result `Date` type, it is the type returned from the context function if it is passed, or inferred from the arguments.
|
|
26
|
+
*
|
|
27
|
+
* @param argument - The value to convert
|
|
28
|
+
*
|
|
29
|
+
* @returns The parsed date in the local time zone
|
|
30
|
+
*
|
|
31
|
+
* @example
|
|
32
|
+
* // Clone the date:
|
|
33
|
+
* const result = toDate(new Date(2014, 1, 11, 11, 30, 30))
|
|
34
|
+
* //=> Tue Feb 11 2014 11:30:30
|
|
35
|
+
*
|
|
36
|
+
* @example
|
|
37
|
+
* // Convert the timestamp to date:
|
|
38
|
+
* const result = toDate(1392098430000)
|
|
39
|
+
* //=> Tue Feb 11 2014 11:30:30
|
|
40
|
+
*/
|
|
41
|
+
function toDate(argument, context) {
|
|
42
|
+
// [TODO] Get rid of `toDate` or `constructFrom`?
|
|
43
|
+
return constructFrom(context || argument, argument);
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
export { toDate as default, toDate };
|
|
47
|
+
//# sourceMappingURL=toDate.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"toDate.js","sources":["../../../../../../../../node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/toDate.js"],"sourcesContent":["import { constructFrom } from \"./constructFrom.js\";\n\n/**\n * @name toDate\n * @category Common Helpers\n * @summary Convert the given argument to an instance of Date.\n *\n * @description\n * Convert the given argument to an instance of Date.\n *\n * If the argument is an instance of Date, the function returns its clone.\n *\n * If the argument is a number, it is treated as a timestamp.\n *\n * If the argument is none of the above, the function returns Invalid Date.\n *\n * Starting from v3.7.0, it clones a date using `[Symbol.for(\"constructDateFrom\")]`\n * enabling to transfer extra properties from the reference date to the new date.\n * It's useful for extensions like [`TZDate`](https://github.com/date-fns/tz)\n * that accept a time zone as a constructor argument.\n *\n * **Note**: *all* Date arguments passed to any *date-fns* function is processed by `toDate`.\n *\n * @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc).\n * @typeParam ResultDate - The result `Date` type, it is the type returned from the context function if it is passed, or inferred from the arguments.\n *\n * @param argument - The value to convert\n *\n * @returns The parsed date in the local time zone\n *\n * @example\n * // Clone the date:\n * const result = toDate(new Date(2014, 1, 11, 11, 30, 30))\n * //=> Tue Feb 11 2014 11:30:30\n *\n * @example\n * // Convert the timestamp to date:\n * const result = toDate(1392098430000)\n * //=> Tue Feb 11 2014 11:30:30\n */\nexport function toDate(argument, context) {\n // [TODO] Get rid of `toDate` or `constructFrom`?\n return constructFrom(context || argument, argument);\n}\n\n// Fallback for modularized imports:\nexport default toDate;\n"],"names":[],"mappings":";;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACO,SAAS,MAAM,CAAC,QAAQ,EAAE,OAAO,EAAE;AAC1C;AACA,EAAE,OAAO,aAAa,CAAC,OAAO,IAAI,QAAQ,EAAE,QAAQ,CAAC;AACrD;;;;","x_google_ignoreList":[0]}
|
package/dist/utils/date.cjs
CHANGED
|
@@ -1,7 +1,14 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
3
|
var dateFns = require('date-fns');
|
|
4
|
-
var
|
|
4
|
+
var de = require('../node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/locale/de.cjs');
|
|
5
|
+
var ru = require('../node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/locale/ru.cjs');
|
|
6
|
+
var ko = require('../node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/locale/ko.cjs');
|
|
7
|
+
var ja = require('../node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/locale/ja.cjs');
|
|
8
|
+
var fr = require('../node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/locale/fr.cjs');
|
|
9
|
+
var es = require('../node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/locale/es.cjs');
|
|
10
|
+
var enUS = require('../node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/locale/en-US.cjs');
|
|
11
|
+
var zhCN = require('../node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/locale/zh-CN.cjs');
|
|
5
12
|
|
|
6
13
|
/**
|
|
7
14
|
* @Author : TanRui
|
|
@@ -11,14 +18,14 @@ var locale = require('date-fns/locale');
|
|
|
11
18
|
* @Desc. : 日期格式化
|
|
12
19
|
*/
|
|
13
20
|
const localeMap = {
|
|
14
|
-
'zh-CN':
|
|
15
|
-
'en-US':
|
|
16
|
-
'es-ES':
|
|
17
|
-
'fr-FR':
|
|
18
|
-
'ja-JP':
|
|
19
|
-
'ko-KR':
|
|
20
|
-
'ru-RU':
|
|
21
|
-
'de-DE':
|
|
21
|
+
'zh-CN': zhCN.zhCN,
|
|
22
|
+
'en-US': enUS.enUS,
|
|
23
|
+
'es-ES': es.es,
|
|
24
|
+
'fr-FR': fr.fr,
|
|
25
|
+
'ja-JP': ja.ja,
|
|
26
|
+
'ko-KR': ko.ko,
|
|
27
|
+
'ru-RU': ru.ru,
|
|
28
|
+
'de-DE': de.de
|
|
22
29
|
};
|
|
23
30
|
let defaultLocale = getLocale('zh-CN');
|
|
24
31
|
/**
|
package/dist/utils/date.cjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"date.cjs","sources":["../../src/utils/date.ts"],"sourcesContent":[null],"names":["zhCN","enUS","es","fr","ja","ko","ru","de","format"],"mappings":"
|
|
1
|
+
{"version":3,"file":"date.cjs","sources":["../../src/utils/date.ts"],"sourcesContent":[null],"names":["zhCN","enUS","es","fr","ja","ko","ru","de","format"],"mappings":";;;;;;;;;;;;AAAA;;;;;;AAMG;AAKH,MAAM,SAAS,GAAG;AAChB,IAAA,OAAO,EAAEA,SAAI;AACb,IAAA,OAAO,EAAEC,SAAI;AACb,IAAA,OAAO,EAAEC,KAAE;AACX,IAAA,OAAO,EAAEC,KAAE;AACX,IAAA,OAAO,EAAEC,KAAE;AACX,IAAA,OAAO,EAAEC,KAAE;AACX,IAAA,OAAO,EAAEC,KAAE;AACX,IAAA,OAAO,EAAEC;CACD;AAIV,IAAI,aAAa,GAAG,SAAS,CAAC,OAAO,CAAC;AAEtC;;;AAGG;AACH,SAAS,gBAAgB,CAAC,MAAuB,EAAA;AAC/C,IAAA,IAAI,CAAC,SAAS,CAAC,MAAM,CAAC,EAAE;AACtB,QAAA,MAAM,IAAI,KAAK,CACb,2BAA2B,MAAM,CAAA,WAAA,EAAc,MAAM,CAAC,IAAI,CAAC,SAAS,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,CAAA,CAAE,CACnF;IACH;AACA,IAAA,aAAa,GAAG,SAAS,CAAC,MAAM,CAAC;AACnC;AAEA,SAAS,SAAS,CAAC,MAAuB,EAAA;AACxC,IAAA,OAAO,SAAS,CAAC,MAAM,CAAC;AAC1B;AAEA;;;;;AAKG;AACH,SAAS,cAAc,CAAC,IAAoB,EAAE,MAAwB,EAAA;AACpE,IAAA,MAAM,UAAU,GAAG,IAAI,GAAG,IAAI,IAAI,CAAC,IAAI,CAAC,GAAG,IAAI,IAAI,EAAE;AACrD,IAAA,OAAOC,cAAM,CAAC,UAAU,EAAE,qBAAqB,EAAE;AAC/C,QAAA,MAAM,EAAE,MAAM,GAAG,SAAS,CAAC,MAAM,CAAC,GAAG;AACtC,KAAA,CAAC;AACJ;AAEA;;;;;;AAMG;AACH,SAAS,aAAa,CAAC,IAAA,GAAsB,IAAI,IAAI,EAAE,EAAE,MAAwB,EAAA;IAC/E,OAAOA,cAAM,CAAC,IAAI,EAAE,MAAM,EAAE,EAAE,MAAM,EAAE,MAAM,GAAG,SAAS,CAAC,MAAM,CAAC,GAAG,aAAa,EAAE,CAAC;AACrF;;;;;;"}
|
package/dist/utils/date.d.ts
CHANGED
|
@@ -1,5 +1,3 @@
|
|
|
1
|
-
import * as date_fns from 'date-fns';
|
|
2
|
-
|
|
3
1
|
/**
|
|
4
2
|
* @Author : TanRui
|
|
5
3
|
* @WeChat : Tan578853789
|
|
@@ -8,14 +6,14 @@ import * as date_fns from 'date-fns';
|
|
|
8
6
|
* @Desc. : 日期格式化
|
|
9
7
|
*/
|
|
10
8
|
declare const localeMap: {
|
|
11
|
-
readonly 'zh-CN':
|
|
12
|
-
readonly 'en-US':
|
|
13
|
-
readonly 'es-ES':
|
|
14
|
-
readonly 'fr-FR':
|
|
15
|
-
readonly 'ja-JP':
|
|
16
|
-
readonly 'ko-KR':
|
|
17
|
-
readonly 'ru-RU':
|
|
18
|
-
readonly 'de-DE':
|
|
9
|
+
readonly 'zh-CN': import("date-fns").Locale;
|
|
10
|
+
readonly 'en-US': import("date-fns").Locale;
|
|
11
|
+
readonly 'es-ES': import("date-fns").Locale;
|
|
12
|
+
readonly 'fr-FR': import("date-fns").Locale;
|
|
13
|
+
readonly 'ja-JP': import("date-fns").Locale;
|
|
14
|
+
readonly 'ko-KR': import("date-fns").Locale;
|
|
15
|
+
readonly 'ru-RU': import("date-fns").Locale;
|
|
16
|
+
readonly 'de-DE': import("date-fns").Locale;
|
|
19
17
|
};
|
|
20
18
|
type SupportedLocale = keyof typeof localeMap;
|
|
21
19
|
/**
|
|
@@ -38,5 +36,5 @@ declare function formatDateTime(date?: Date | number, locale?: SupportedLocale):
|
|
|
38
36
|
*
|
|
39
37
|
*/
|
|
40
38
|
declare function formatWeekday(date?: Date | number, locale?: SupportedLocale): string;
|
|
41
|
-
|
|
42
|
-
|
|
39
|
+
export { setDefaultLocale, formatDateTime, formatWeekday };
|
|
40
|
+
//# sourceMappingURL=date.d.ts.map
|
package/dist/utils/date.js
CHANGED
|
@@ -1,5 +1,12 @@
|
|
|
1
1
|
import { format } from 'date-fns';
|
|
2
|
-
import { de
|
|
2
|
+
import { de } from '../node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/locale/de.js';
|
|
3
|
+
import { ru } from '../node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/locale/ru.js';
|
|
4
|
+
import { ko } from '../node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/locale/ko.js';
|
|
5
|
+
import { ja } from '../node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/locale/ja.js';
|
|
6
|
+
import { fr } from '../node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/locale/fr.js';
|
|
7
|
+
import { es } from '../node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/locale/es.js';
|
|
8
|
+
import { enUS } from '../node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/locale/en-US.js';
|
|
9
|
+
import { zhCN } from '../node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/locale/zh-CN.js';
|
|
3
10
|
|
|
4
11
|
/**
|
|
5
12
|
* @Author : TanRui
|
package/dist/utils/date.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"date.js","sources":["../../src/utils/date.ts"],"sourcesContent":[null],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"date.js","sources":["../../src/utils/date.ts"],"sourcesContent":[null],"names":[],"mappings":";;;;;;;;;;AAAA;;;;;;AAMG;AAKH,MAAM,SAAS,GAAG;AAChB,IAAA,OAAO,EAAE,IAAI;AACb,IAAA,OAAO,EAAE,IAAI;AACb,IAAA,OAAO,EAAE,EAAE;AACX,IAAA,OAAO,EAAE,EAAE;AACX,IAAA,OAAO,EAAE,EAAE;AACX,IAAA,OAAO,EAAE,EAAE;AACX,IAAA,OAAO,EAAE,EAAE;AACX,IAAA,OAAO,EAAE;CACD;AAIV,IAAI,aAAa,GAAG,SAAS,CAAC,OAAO,CAAC;AAEtC;;;AAGG;AACH,SAAS,gBAAgB,CAAC,MAAuB,EAAA;AAC/C,IAAA,IAAI,CAAC,SAAS,CAAC,MAAM,CAAC,EAAE;AACtB,QAAA,MAAM,IAAI,KAAK,CACb,2BAA2B,MAAM,CAAA,WAAA,EAAc,MAAM,CAAC,IAAI,CAAC,SAAS,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,CAAA,CAAE,CACnF;IACH;AACA,IAAA,aAAa,GAAG,SAAS,CAAC,MAAM,CAAC;AACnC;AAEA,SAAS,SAAS,CAAC,MAAuB,EAAA;AACxC,IAAA,OAAO,SAAS,CAAC,MAAM,CAAC;AAC1B;AAEA;;;;;AAKG;AACH,SAAS,cAAc,CAAC,IAAoB,EAAE,MAAwB,EAAA;AACpE,IAAA,MAAM,UAAU,GAAG,IAAI,GAAG,IAAI,IAAI,CAAC,IAAI,CAAC,GAAG,IAAI,IAAI,EAAE;AACrD,IAAA,OAAO,MAAM,CAAC,UAAU,EAAE,qBAAqB,EAAE;AAC/C,QAAA,MAAM,EAAE,MAAM,GAAG,SAAS,CAAC,MAAM,CAAC,GAAG;AACtC,KAAA,CAAC;AACJ;AAEA;;;;;;AAMG;AACH,SAAS,aAAa,CAAC,IAAA,GAAsB,IAAI,IAAI,EAAE,EAAE,MAAwB,EAAA;IAC/E,OAAO,MAAM,CAAC,IAAI,EAAE,MAAM,EAAE,EAAE,MAAM,EAAE,MAAM,GAAG,SAAS,CAAC,MAAM,CAAC,GAAG,aAAa,EAAE,CAAC;AACrF;;;;"}
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
* @Date : 2025/10/09
|
|
6
6
|
* @Desc. : 全屏功能类封装(支持默认全屏整个页面)
|
|
7
7
|
*/
|
|
8
|
-
declare class Fullscreen {
|
|
8
|
+
export declare class Fullscreen {
|
|
9
9
|
private defaultElement;
|
|
10
10
|
constructor(defaultElement?: HTMLElement);
|
|
11
11
|
/**
|
|
@@ -38,5 +38,4 @@ declare class Fullscreen {
|
|
|
38
38
|
*/
|
|
39
39
|
getFullscreenElement(): HTMLElement | null;
|
|
40
40
|
}
|
|
41
|
-
|
|
42
|
-
export { Fullscreen };
|
|
41
|
+
//# sourceMappingURL=fullscreen.d.ts.map
|
package/dist/uuid.d.ts
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@jnrs/shared",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.18",
|
|
4
4
|
"description": "As the name suggests.",
|
|
5
5
|
"author": "Talia-Tan",
|
|
6
6
|
"license": "UNLICENSED",
|
|
@@ -27,6 +27,11 @@
|
|
|
27
27
|
"require": "./dist/index.cjs",
|
|
28
28
|
"types": "./dist/index.d.ts"
|
|
29
29
|
},
|
|
30
|
+
"./date-fns": {
|
|
31
|
+
"import": "./dist/date-fns.js",
|
|
32
|
+
"require": "./dist/date-fns.cjs",
|
|
33
|
+
"types": "./dist/date-fns.d.ts"
|
|
34
|
+
},
|
|
30
35
|
"./lodash": {
|
|
31
36
|
"import": "./dist/lodash.js",
|
|
32
37
|
"require": "./dist/lodash.cjs",
|
|
@@ -46,6 +51,7 @@
|
|
|
46
51
|
"devDependencies": {
|
|
47
52
|
"@rollup/plugin-node-resolve": "^16.0.3",
|
|
48
53
|
"@rollup/plugin-typescript": "^12.3.0",
|
|
54
|
+
"rollup-plugin-visualizer": "^6.0.5",
|
|
49
55
|
"@types/lodash-es": "^4.17.12",
|
|
50
56
|
"@vitest/coverage-v8": "^3.2.4",
|
|
51
57
|
"@vitest/ui": "3.2.4",
|