@react-fabric/lexical 1.0.0-beta.61 → 1.0.0-beta.62
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/css/_lexical.css +61 -0
- package/dist/cjs/node_modules/date-fns/_lib/addLeadingZeros.js +9 -0
- package/dist/cjs/node_modules/date-fns/_lib/defaultOptions.js +9 -0
- package/dist/cjs/node_modules/date-fns/_lib/format/formatters.js +779 -0
- package/dist/cjs/node_modules/date-fns/_lib/format/lightFormatters.js +96 -0
- package/dist/cjs/node_modules/date-fns/_lib/format/longFormatters.js +68 -0
- package/dist/cjs/node_modules/date-fns/_lib/getRoundingMethod.js +12 -0
- package/dist/cjs/node_modules/date-fns/_lib/getTimezoneOffsetInMilliseconds.js +33 -0
- package/dist/cjs/node_modules/date-fns/_lib/normalizeDates.js +13 -0
- package/dist/cjs/node_modules/date-fns/_lib/normalizeInterval.js +10 -0
- package/dist/cjs/node_modules/date-fns/_lib/protectedTokens.js +29 -0
- package/dist/cjs/node_modules/date-fns/add.js +73 -0
- package/dist/cjs/node_modules/date-fns/addDays.js +46 -0
- package/dist/cjs/node_modules/date-fns/addHours.js +39 -0
- package/dist/cjs/node_modules/date-fns/addMilliseconds.js +39 -0
- package/dist/cjs/node_modules/date-fns/addMinutes.js +41 -0
- package/dist/cjs/node_modules/date-fns/addMonths.js +80 -0
- package/dist/cjs/node_modules/date-fns/addQuarters.js +38 -0
- package/dist/cjs/node_modules/date-fns/addWeeks.js +38 -0
- package/dist/cjs/node_modules/date-fns/addYears.js +38 -0
- package/dist/cjs/node_modules/date-fns/compareAsc.js +50 -0
- package/dist/cjs/node_modules/date-fns/constants.js +66 -0
- package/dist/cjs/node_modules/date-fns/constructFrom.js +54 -0
- package/dist/cjs/node_modules/date-fns/differenceInCalendarDays.js +67 -0
- package/dist/cjs/node_modules/date-fns/differenceInCalendarMonths.js +47 -0
- package/dist/cjs/node_modules/date-fns/differenceInCalendarYears.js +43 -0
- package/dist/cjs/node_modules/date-fns/differenceInDays.js +112 -0
- package/dist/cjs/node_modules/date-fns/differenceInHours.js +46 -0
- package/dist/cjs/node_modules/date-fns/differenceInMilliseconds.js +34 -0
- package/dist/cjs/node_modules/date-fns/differenceInMinutes.js +50 -0
- package/dist/cjs/node_modules/date-fns/differenceInMonths.js +65 -0
- package/dist/cjs/node_modules/date-fns/differenceInSeconds.js +41 -0
- package/dist/cjs/node_modules/date-fns/differenceInYears.js +67 -0
- package/dist/cjs/node_modules/date-fns/endOfDay.js +40 -0
- package/dist/cjs/node_modules/date-fns/endOfDecade.js +45 -0
- package/dist/cjs/node_modules/date-fns/endOfHour.js +40 -0
- package/dist/cjs/node_modules/date-fns/endOfMinute.js +40 -0
- package/dist/cjs/node_modules/date-fns/endOfMonth.js +42 -0
- package/dist/cjs/node_modules/date-fns/endOfQuarter.js +43 -0
- package/dist/cjs/node_modules/date-fns/endOfWeek.js +58 -0
- package/dist/cjs/node_modules/date-fns/endOfYear.js +42 -0
- package/dist/cjs/node_modules/date-fns/format.js +431 -0
- package/dist/cjs/node_modules/date-fns/getDayOfYear.js +39 -0
- package/dist/cjs/node_modules/date-fns/getISOWeek.js +45 -0
- package/dist/cjs/node_modules/date-fns/getISOWeekYear.js +57 -0
- package/dist/cjs/node_modules/date-fns/getWeek.js +59 -0
- package/dist/cjs/node_modules/date-fns/getWeekYear.js +80 -0
- package/dist/cjs/node_modules/date-fns/intervalToDuration.js +70 -0
- package/dist/cjs/node_modules/date-fns/isAfter.js +30 -0
- package/dist/cjs/node_modules/date-fns/isBefore.js +30 -0
- package/dist/cjs/node_modules/date-fns/isDate.js +46 -0
- package/dist/cjs/node_modules/date-fns/isLastDayOfMonth.js +33 -0
- package/dist/cjs/node_modules/date-fns/isSameMonth.js +48 -0
- package/dist/cjs/node_modules/date-fns/isSameWeek.js +56 -0
- package/dist/cjs/node_modules/date-fns/isSameYear.js +40 -0
- package/dist/cjs/node_modules/date-fns/isValid.js +44 -0
- package/dist/cjs/node_modules/date-fns/locale/_lib/buildFormatLongFn.js +12 -0
- package/dist/cjs/node_modules/date-fns/locale/_lib/buildLocalizeFn.js +66 -0
- package/dist/cjs/node_modules/date-fns/locale/_lib/buildMatchFn.js +61 -0
- package/dist/cjs/node_modules/date-fns/locale/_lib/buildMatchPatternFn.js +24 -0
- package/dist/cjs/node_modules/date-fns/locale/ar-SA/_lib/formatDistance.js +139 -0
- package/dist/cjs/node_modules/date-fns/locale/ar-SA/_lib/formatLong.js +43 -0
- package/dist/cjs/node_modules/date-fns/locale/ar-SA/_lib/formatRelative.js +15 -0
- package/dist/cjs/node_modules/date-fns/locale/ar-SA/_lib/localize.js +166 -0
- package/dist/cjs/node_modules/date-fns/locale/ar-SA/_lib/match.js +146 -0
- package/dist/cjs/node_modules/date-fns/locale/ar-SA.js +32 -0
- package/dist/cjs/node_modules/date-fns/locale/de/_lib/formatDistance.js +200 -0
- package/dist/cjs/node_modules/date-fns/locale/de/_lib/formatLong.js +44 -0
- package/dist/cjs/node_modules/date-fns/locale/de/_lib/formatRelative.js +15 -0
- package/dist/cjs/node_modules/date-fns/locale/de/_lib/localize.js +195 -0
- package/dist/cjs/node_modules/date-fns/locale/de/_lib/match.js +138 -0
- package/dist/cjs/node_modules/date-fns/locale/de.js +36 -0
- package/dist/cjs/node_modules/date-fns/locale/en-US/_lib/formatDistance.js +105 -0
- package/dist/cjs/node_modules/date-fns/locale/en-US/_lib/formatLong.js +43 -0
- package/dist/cjs/node_modules/date-fns/locale/en-US/_lib/formatRelative.js +15 -0
- package/dist/cjs/node_modules/date-fns/locale/en-US/_lib/localize.js +191 -0
- package/dist/cjs/node_modules/date-fns/locale/en-US/_lib/match.js +136 -0
- package/dist/cjs/node_modules/date-fns/locale/en-US.js +33 -0
- package/dist/cjs/node_modules/date-fns/locale/es/_lib/formatDistance.js +105 -0
- package/dist/cjs/node_modules/date-fns/locale/es/_lib/formatLong.js +43 -0
- package/dist/cjs/node_modules/date-fns/locale/es/_lib/formatRelative.js +29 -0
- package/dist/cjs/node_modules/date-fns/locale/es/_lib/localize.js +168 -0
- package/dist/cjs/node_modules/date-fns/locale/es/_lib/match.js +142 -0
- package/dist/cjs/node_modules/date-fns/locale/es.js +36 -0
- package/dist/cjs/node_modules/date-fns/locale/fr/_lib/formatDistance.js +104 -0
- package/dist/cjs/node_modules/date-fns/locale/fr/_lib/formatLong.js +43 -0
- package/dist/cjs/node_modules/date-fns/locale/fr/_lib/formatRelative.js +15 -0
- package/dist/cjs/node_modules/date-fns/locale/fr/_lib/localize.js +169 -0
- package/dist/cjs/node_modules/date-fns/locale/fr/_lib/match.js +137 -0
- package/dist/cjs/node_modules/date-fns/locale/fr.js +33 -0
- package/dist/cjs/node_modules/date-fns/locale/hi/_lib/formatDistance.js +109 -0
- package/dist/cjs/node_modules/date-fns/locale/hi/_lib/formatLong.js +43 -0
- package/dist/cjs/node_modules/date-fns/locale/hi/_lib/formatRelative.js +15 -0
- package/dist/cjs/node_modules/date-fns/locale/hi/_lib/localize.js +233 -0
- package/dist/cjs/node_modules/date-fns/locale/hi/_lib/match.js +141 -0
- package/dist/cjs/node_modules/date-fns/locale/hi.js +32 -0
- package/dist/cjs/node_modules/date-fns/locale/it/_lib/formatDistance.js +105 -0
- package/dist/cjs/node_modules/date-fns/locale/it/_lib/formatLong.js +43 -0
- package/dist/cjs/node_modules/date-fns/locale/it/_lib/formatRelative.js +70 -0
- package/dist/cjs/node_modules/date-fns/locale/it/_lib/localize.js +168 -0
- package/dist/cjs/node_modules/date-fns/locale/it/_lib/match.js +137 -0
- package/dist/cjs/node_modules/date-fns/locale/it.js +34 -0
- package/dist/cjs/node_modules/date-fns/locale/ja/_lib/formatDistance.js +119 -0
- package/dist/cjs/node_modules/date-fns/locale/ja/_lib/formatLong.js +43 -0
- package/dist/cjs/node_modules/date-fns/locale/ja/_lib/formatRelative.js +16 -0
- package/dist/cjs/node_modules/date-fns/locale/ja/_lib/localize.js +181 -0
- package/dist/cjs/node_modules/date-fns/locale/ja/_lib/match.js +122 -0
- package/dist/cjs/node_modules/date-fns/locale/ja.js +36 -0
- package/dist/cjs/node_modules/date-fns/locale/ko/_lib/formatDistance.js +105 -0
- package/dist/cjs/node_modules/date-fns/locale/ko/_lib/formatLong.js +43 -0
- package/dist/cjs/node_modules/date-fns/locale/ko/_lib/formatRelative.js +15 -0
- package/dist/cjs/node_modules/date-fns/locale/ko/_lib/localize.js +171 -0
- package/dist/cjs/node_modules/date-fns/locale/ko/_lib/match.js +119 -0
- package/dist/cjs/node_modules/date-fns/locale/ko.js +34 -0
- package/dist/cjs/node_modules/date-fns/locale/pt/_lib/formatDistance.js +105 -0
- package/dist/cjs/node_modules/date-fns/locale/pt/_lib/formatLong.js +43 -0
- package/dist/cjs/node_modules/date-fns/locale/pt/_lib/formatRelative.js +26 -0
- package/dist/cjs/node_modules/date-fns/locale/pt/_lib/localize.js +168 -0
- package/dist/cjs/node_modules/date-fns/locale/pt/_lib/match.js +141 -0
- package/dist/cjs/node_modules/date-fns/locale/pt.js +33 -0
- package/dist/cjs/node_modules/date-fns/locale/ru/_lib/formatDistance.js +250 -0
- package/dist/cjs/node_modules/date-fns/locale/ru/_lib/formatLong.js +40 -0
- package/dist/cjs/node_modules/date-fns/locale/ru/_lib/formatRelative.js +92 -0
- package/dist/cjs/node_modules/date-fns/locale/ru/_lib/localize.js +214 -0
- package/dist/cjs/node_modules/date-fns/locale/ru/_lib/match.js +142 -0
- package/dist/cjs/node_modules/date-fns/locale/ru.js +33 -0
- package/dist/cjs/node_modules/date-fns/locale/zh-CN/_lib/formatDistance.js +105 -0
- package/dist/cjs/node_modules/date-fns/locale/zh-CN/_lib/formatLong.js +43 -0
- package/dist/cjs/node_modules/date-fns/locale/zh-CN/_lib/formatRelative.js +35 -0
- package/dist/cjs/node_modules/date-fns/locale/zh-CN/_lib/localize.js +187 -0
- package/dist/cjs/node_modules/date-fns/locale/zh-CN/_lib/match.js +134 -0
- package/dist/cjs/node_modules/date-fns/locale/zh-CN.js +36 -0
- package/dist/cjs/node_modules/date-fns/startOfDay.js +40 -0
- package/dist/cjs/node_modules/date-fns/startOfDecade.js +45 -0
- package/dist/cjs/node_modules/date-fns/startOfHour.js +40 -0
- package/dist/cjs/node_modules/date-fns/startOfISOWeek.js +40 -0
- package/dist/cjs/node_modules/date-fns/startOfISOWeekYear.js +47 -0
- package/dist/cjs/node_modules/date-fns/startOfMinute.js +40 -0
- package/dist/cjs/node_modules/date-fns/startOfMonth.js +42 -0
- package/dist/cjs/node_modules/date-fns/startOfQuarter.js +43 -0
- package/dist/cjs/node_modules/date-fns/startOfWeek.js +58 -0
- package/dist/cjs/node_modules/date-fns/startOfWeekYear.js +69 -0
- package/dist/cjs/node_modules/date-fns/startOfYear.js +41 -0
- package/dist/cjs/node_modules/date-fns/toDate.js +51 -0
- package/dist/cjs/packages/date/dist/esm/display/DateDuration.js +178 -0
- package/dist/cjs/packages/date/dist/esm/hijri/DateConverter.js +154 -0
- package/dist/cjs/packages/date/dist/esm/hijri/FormatDate.js +116 -0
- package/dist/cjs/packages/date/dist/esm/hijri/HijriDate.js +531 -0
- package/dist/cjs/packages/date/dist/esm/hijri/StringDateParser.js +74 -0
- package/dist/cjs/packages/date/dist/esm/hijri/index.js +21 -0
- package/dist/cjs/packages/date/dist/esm/hijri/initializer.js +113 -0
- package/dist/cjs/packages/date/dist/esm/hijri/locales.js +19 -0
- package/dist/cjs/packages/date/dist/esm/hijri/safe.js +17 -0
- package/dist/cjs/packages/date/dist/esm/i18n/ar/date.json.js +213 -0
- package/dist/cjs/packages/date/dist/esm/i18n/en/date.json.js +83 -0
- package/{src/plugins/StickyPlugin.ts → dist/cjs/packages/date/dist/esm/i18n/index.js} +10 -15
- package/dist/cjs/packages/date/dist/esm/types/index.js +46 -0
- package/dist/cjs/packages/date/dist/esm/utils/dateUtil.js +472 -0
- package/dist/cjs/{editor → packages/lexical/src/editor}/LexicalEditor.js +32 -9
- package/dist/cjs/{i18n/ar.json.js → packages/lexical/src/i18n/ar/lexical.json.js} +10 -4
- package/dist/cjs/{i18n/en.json.js → packages/lexical/src/i18n/en/lexical.json.js} +7 -1
- package/dist/cjs/{i18n → packages/lexical/src/i18n}/index.js +4 -4
- package/dist/cjs/packages/lexical/src/plugins/CommentPlugin.js +477 -0
- package/dist/cjs/{plugins → packages/lexical/src/plugins}/DraggableBlockPlugin.js +8 -11
- package/dist/esm/node_modules/date-fns/_lib/addLeadingZeros.js +9 -0
- package/dist/esm/node_modules/date-fns/_lib/defaultOptions.js +9 -0
- package/dist/esm/node_modules/date-fns/_lib/format/formatters.js +779 -0
- package/dist/esm/node_modules/date-fns/_lib/format/lightFormatters.js +96 -0
- package/dist/esm/node_modules/date-fns/_lib/format/longFormatters.js +68 -0
- package/dist/esm/node_modules/date-fns/_lib/getRoundingMethod.js +12 -0
- package/dist/esm/node_modules/date-fns/_lib/getTimezoneOffsetInMilliseconds.js +33 -0
- package/dist/esm/node_modules/date-fns/_lib/normalizeDates.js +13 -0
- package/dist/esm/node_modules/date-fns/_lib/normalizeInterval.js +10 -0
- package/dist/esm/node_modules/date-fns/_lib/protectedTokens.js +27 -0
- package/dist/esm/node_modules/date-fns/add.js +70 -0
- package/dist/esm/node_modules/date-fns/addDays.js +43 -0
- package/dist/esm/node_modules/date-fns/addHours.js +36 -0
- package/dist/esm/node_modules/date-fns/addMilliseconds.js +36 -0
- package/dist/esm/node_modules/date-fns/addMinutes.js +38 -0
- package/dist/esm/node_modules/date-fns/addMonths.js +77 -0
- package/dist/esm/node_modules/date-fns/addQuarters.js +35 -0
- package/dist/esm/node_modules/date-fns/addWeeks.js +35 -0
- package/dist/esm/node_modules/date-fns/addYears.js +35 -0
- package/dist/esm/node_modules/date-fns/compareAsc.js +47 -0
- package/dist/esm/node_modules/date-fns/constants.js +62 -0
- package/dist/esm/node_modules/date-fns/constructFrom.js +51 -0
- package/dist/esm/node_modules/date-fns/differenceInCalendarDays.js +64 -0
- package/dist/esm/node_modules/date-fns/differenceInCalendarMonths.js +44 -0
- package/dist/esm/node_modules/date-fns/differenceInCalendarYears.js +40 -0
- package/dist/esm/node_modules/date-fns/differenceInDays.js +109 -0
- package/dist/esm/node_modules/date-fns/differenceInHours.js +43 -0
- package/dist/esm/node_modules/date-fns/differenceInMilliseconds.js +31 -0
- package/dist/esm/node_modules/date-fns/differenceInMinutes.js +47 -0
- package/dist/esm/node_modules/date-fns/differenceInMonths.js +62 -0
- package/dist/esm/node_modules/date-fns/differenceInSeconds.js +38 -0
- package/dist/esm/node_modules/date-fns/differenceInYears.js +64 -0
- package/dist/esm/node_modules/date-fns/endOfDay.js +37 -0
- package/dist/esm/node_modules/date-fns/endOfDecade.js +42 -0
- package/dist/esm/node_modules/date-fns/endOfHour.js +37 -0
- package/dist/esm/node_modules/date-fns/endOfMinute.js +37 -0
- package/dist/esm/node_modules/date-fns/endOfMonth.js +39 -0
- package/dist/esm/node_modules/date-fns/endOfQuarter.js +40 -0
- package/dist/esm/node_modules/date-fns/endOfWeek.js +55 -0
- package/dist/esm/node_modules/date-fns/endOfYear.js +39 -0
- package/dist/esm/node_modules/date-fns/format.js +425 -0
- package/dist/esm/node_modules/date-fns/getDayOfYear.js +36 -0
- package/dist/esm/node_modules/date-fns/getISOWeek.js +42 -0
- package/dist/esm/node_modules/date-fns/getISOWeekYear.js +54 -0
- package/dist/esm/node_modules/date-fns/getWeek.js +56 -0
- package/dist/esm/node_modules/date-fns/getWeekYear.js +77 -0
- package/dist/esm/node_modules/date-fns/intervalToDuration.js +67 -0
- package/dist/esm/node_modules/date-fns/isAfter.js +27 -0
- package/dist/esm/node_modules/date-fns/isBefore.js +27 -0
- package/dist/esm/node_modules/date-fns/isDate.js +43 -0
- package/dist/esm/node_modules/date-fns/isLastDayOfMonth.js +30 -0
- package/dist/esm/node_modules/date-fns/isSameMonth.js +45 -0
- package/dist/esm/node_modules/date-fns/isSameWeek.js +53 -0
- package/dist/esm/node_modules/date-fns/isSameYear.js +37 -0
- package/dist/esm/node_modules/date-fns/isValid.js +41 -0
- package/dist/esm/node_modules/date-fns/locale/_lib/buildFormatLongFn.js +12 -0
- package/dist/esm/node_modules/date-fns/locale/_lib/buildLocalizeFn.js +66 -0
- package/dist/esm/node_modules/date-fns/locale/_lib/buildMatchFn.js +61 -0
- package/dist/esm/node_modules/date-fns/locale/_lib/buildMatchPatternFn.js +24 -0
- package/dist/esm/node_modules/date-fns/locale/ar-SA/_lib/formatDistance.js +139 -0
- package/dist/esm/node_modules/date-fns/locale/ar-SA/_lib/formatLong.js +43 -0
- package/dist/esm/node_modules/date-fns/locale/ar-SA/_lib/formatRelative.js +15 -0
- package/dist/esm/node_modules/date-fns/locale/ar-SA/_lib/localize.js +166 -0
- package/dist/esm/node_modules/date-fns/locale/ar-SA/_lib/match.js +146 -0
- package/dist/esm/node_modules/date-fns/locale/ar-SA.js +29 -0
- package/dist/esm/node_modules/date-fns/locale/de/_lib/formatDistance.js +200 -0
- package/dist/esm/node_modules/date-fns/locale/de/_lib/formatLong.js +44 -0
- package/dist/esm/node_modules/date-fns/locale/de/_lib/formatRelative.js +15 -0
- package/dist/esm/node_modules/date-fns/locale/de/_lib/localize.js +195 -0
- package/dist/esm/node_modules/date-fns/locale/de/_lib/match.js +138 -0
- package/dist/esm/node_modules/date-fns/locale/de.js +33 -0
- package/dist/esm/node_modules/date-fns/locale/en-US/_lib/formatDistance.js +105 -0
- package/dist/esm/node_modules/date-fns/locale/en-US/_lib/formatLong.js +43 -0
- package/dist/esm/node_modules/date-fns/locale/en-US/_lib/formatRelative.js +15 -0
- package/dist/esm/node_modules/date-fns/locale/en-US/_lib/localize.js +191 -0
- package/dist/esm/node_modules/date-fns/locale/en-US/_lib/match.js +136 -0
- package/dist/esm/node_modules/date-fns/locale/en-US.js +30 -0
- package/dist/esm/node_modules/date-fns/locale/es/_lib/formatDistance.js +105 -0
- package/dist/esm/node_modules/date-fns/locale/es/_lib/formatLong.js +43 -0
- package/dist/esm/node_modules/date-fns/locale/es/_lib/formatRelative.js +29 -0
- package/dist/esm/node_modules/date-fns/locale/es/_lib/localize.js +168 -0
- package/dist/esm/node_modules/date-fns/locale/es/_lib/match.js +142 -0
- package/dist/esm/node_modules/date-fns/locale/es.js +33 -0
- package/dist/esm/node_modules/date-fns/locale/fr/_lib/formatDistance.js +104 -0
- package/dist/esm/node_modules/date-fns/locale/fr/_lib/formatLong.js +43 -0
- package/dist/esm/node_modules/date-fns/locale/fr/_lib/formatRelative.js +15 -0
- package/dist/esm/node_modules/date-fns/locale/fr/_lib/localize.js +169 -0
- package/dist/esm/node_modules/date-fns/locale/fr/_lib/match.js +137 -0
- package/dist/esm/node_modules/date-fns/locale/fr.js +30 -0
- package/dist/esm/node_modules/date-fns/locale/hi/_lib/formatDistance.js +109 -0
- package/dist/esm/node_modules/date-fns/locale/hi/_lib/formatLong.js +43 -0
- package/dist/esm/node_modules/date-fns/locale/hi/_lib/formatRelative.js +15 -0
- package/dist/esm/node_modules/date-fns/locale/hi/_lib/localize.js +231 -0
- package/dist/esm/node_modules/date-fns/locale/hi/_lib/match.js +141 -0
- package/dist/esm/node_modules/date-fns/locale/hi.js +29 -0
- package/dist/esm/node_modules/date-fns/locale/it/_lib/formatDistance.js +105 -0
- package/dist/esm/node_modules/date-fns/locale/it/_lib/formatLong.js +43 -0
- package/dist/esm/node_modules/date-fns/locale/it/_lib/formatRelative.js +70 -0
- package/dist/esm/node_modules/date-fns/locale/it/_lib/localize.js +168 -0
- package/dist/esm/node_modules/date-fns/locale/it/_lib/match.js +137 -0
- package/dist/esm/node_modules/date-fns/locale/it.js +31 -0
- package/dist/esm/node_modules/date-fns/locale/ja/_lib/formatDistance.js +119 -0
- package/dist/esm/node_modules/date-fns/locale/ja/_lib/formatLong.js +43 -0
- package/dist/esm/node_modules/date-fns/locale/ja/_lib/formatRelative.js +16 -0
- package/dist/esm/node_modules/date-fns/locale/ja/_lib/localize.js +181 -0
- package/dist/esm/node_modules/date-fns/locale/ja/_lib/match.js +122 -0
- package/dist/esm/node_modules/date-fns/locale/ja.js +33 -0
- package/dist/esm/node_modules/date-fns/locale/ko/_lib/formatDistance.js +105 -0
- package/dist/esm/node_modules/date-fns/locale/ko/_lib/formatLong.js +43 -0
- package/dist/esm/node_modules/date-fns/locale/ko/_lib/formatRelative.js +15 -0
- package/dist/esm/node_modules/date-fns/locale/ko/_lib/localize.js +171 -0
- package/dist/esm/node_modules/date-fns/locale/ko/_lib/match.js +119 -0
- package/dist/esm/node_modules/date-fns/locale/ko.js +31 -0
- package/dist/esm/node_modules/date-fns/locale/pt/_lib/formatDistance.js +105 -0
- package/dist/esm/node_modules/date-fns/locale/pt/_lib/formatLong.js +43 -0
- package/dist/esm/node_modules/date-fns/locale/pt/_lib/formatRelative.js +26 -0
- package/dist/esm/node_modules/date-fns/locale/pt/_lib/localize.js +168 -0
- package/dist/esm/node_modules/date-fns/locale/pt/_lib/match.js +141 -0
- package/dist/esm/node_modules/date-fns/locale/pt.js +30 -0
- package/dist/esm/node_modules/date-fns/locale/ru/_lib/formatDistance.js +250 -0
- package/dist/esm/node_modules/date-fns/locale/ru/_lib/formatLong.js +40 -0
- package/dist/esm/node_modules/date-fns/locale/ru/_lib/formatRelative.js +92 -0
- package/dist/esm/node_modules/date-fns/locale/ru/_lib/localize.js +214 -0
- package/dist/esm/node_modules/date-fns/locale/ru/_lib/match.js +142 -0
- package/dist/esm/node_modules/date-fns/locale/ru.js +30 -0
- package/dist/esm/node_modules/date-fns/locale/zh-CN/_lib/formatDistance.js +105 -0
- package/dist/esm/node_modules/date-fns/locale/zh-CN/_lib/formatLong.js +43 -0
- package/dist/esm/node_modules/date-fns/locale/zh-CN/_lib/formatRelative.js +35 -0
- package/dist/esm/node_modules/date-fns/locale/zh-CN/_lib/localize.js +187 -0
- package/dist/esm/node_modules/date-fns/locale/zh-CN/_lib/match.js +134 -0
- package/dist/esm/node_modules/date-fns/locale/zh-CN.js +33 -0
- package/dist/esm/node_modules/date-fns/startOfDay.js +37 -0
- package/dist/esm/node_modules/date-fns/startOfDecade.js +42 -0
- package/dist/esm/node_modules/date-fns/startOfHour.js +37 -0
- package/dist/esm/node_modules/date-fns/startOfISOWeek.js +37 -0
- package/dist/esm/node_modules/date-fns/startOfISOWeekYear.js +44 -0
- package/dist/esm/node_modules/date-fns/startOfMinute.js +37 -0
- package/dist/esm/node_modules/date-fns/startOfMonth.js +39 -0
- package/dist/esm/node_modules/date-fns/startOfQuarter.js +40 -0
- package/dist/esm/node_modules/date-fns/startOfWeek.js +55 -0
- package/dist/esm/node_modules/date-fns/startOfWeekYear.js +66 -0
- package/dist/esm/node_modules/date-fns/startOfYear.js +38 -0
- package/dist/esm/node_modules/date-fns/toDate.js +48 -0
- package/dist/esm/packages/date/dist/esm/display/DateDuration.js +178 -0
- package/dist/esm/packages/date/dist/esm/hijri/DateConverter.js +152 -0
- package/dist/esm/packages/date/dist/esm/hijri/FormatDate.js +113 -0
- package/dist/esm/packages/date/dist/esm/hijri/HijriDate.js +528 -0
- package/dist/esm/packages/date/dist/esm/hijri/StringDateParser.js +74 -0
- package/dist/esm/packages/date/dist/esm/hijri/index.js +21 -0
- package/dist/esm/packages/date/dist/esm/hijri/initializer.js +113 -0
- package/dist/esm/packages/date/dist/esm/hijri/locales.js +18 -0
- package/dist/esm/packages/date/dist/esm/hijri/safe.js +14 -0
- package/dist/esm/packages/date/dist/esm/i18n/ar/date.json.js +209 -0
- package/dist/esm/packages/date/dist/esm/i18n/en/date.json.js +79 -0
- package/dist/esm/packages/date/dist/esm/i18n/index.js +33 -0
- package/dist/esm/packages/date/dist/esm/types/index.js +45 -0
- package/dist/esm/packages/date/dist/esm/utils/dateUtil.js +474 -0
- package/dist/esm/{editor → packages/lexical/src/editor}/LexicalEditor.js +33 -10
- package/dist/esm/{i18n/ar.json.js → packages/lexical/src/i18n/ar/lexical.json.js} +9 -5
- package/dist/esm/{i18n/en.json.js → packages/lexical/src/i18n/en/lexical.json.js} +6 -2
- package/dist/esm/{i18n → packages/lexical/src/i18n}/index.js +2 -2
- package/dist/esm/packages/lexical/src/plugins/CommentPlugin.js +477 -0
- package/dist/esm/{plugins → packages/lexical/src/plugins}/DraggableBlockPlugin.js +9 -12
- package/dist/types/editor/LexicalEditor.d.ts +12 -3
- package/dist/types/hooks/useFormatWatcher.d.ts +1 -1
- package/dist/types/plugins/CommentPlugin.d.ts +5 -0
- package/dist/types/plugins/DraggableBlockPlugin.d.ts +2 -1
- package/package.json +5 -5
- package/src/editor/LexicalEditor.tsx +65 -18
- package/src/i18n/{ar.json → ar/lexical.json} +6 -4
- package/src/i18n/{en.json → en/lexical.json} +3 -1
- package/src/i18n/index.ts +2 -2
- package/src/plugins/CommentPlugin.tsx +554 -0
- package/src/plugins/DraggableBlockPlugin.tsx +5 -10
- package/dist/cjs/components/StickyComponent.js +0 -220
- package/dist/cjs/nodes/StickyNode.js +0 -218
- package/dist/cjs/plugins/StickyPlugin.js +0 -20
- package/dist/esm/components/StickyComponent.js +0 -220
- package/dist/esm/nodes/StickyNode.js +0 -216
- package/dist/esm/plugins/StickyPlugin.js +0 -20
- package/dist/types/components/StickyComponent.d.ts +0 -9
- package/dist/types/nodes/StickyNode.d.ts +0 -34
- package/dist/types/plugins/StickyPlugin.d.ts +0 -1
- package/src/components/StickyComponent.tsx +0 -270
- package/src/nodes/StickyNode.tsx +0 -249
- /package/dist/cjs/{editor → packages/lexical/src/editor}/theme.js +0 -0
- /package/dist/cjs/{hooks → packages/lexical/src/hooks}/useFormatWatcher.js +0 -0
- /package/dist/cjs/{index.js → packages/lexical/src/index.js} +0 -0
- /package/dist/cjs/{plugins → packages/lexical/src/plugins}/ToolbarPlugin.js +0 -0
- /package/dist/cjs/{utils → packages/lexical/src/utils}/index.js +0 -0
- /package/dist/esm/{editor → packages/lexical/src/editor}/theme.js +0 -0
- /package/dist/esm/{hooks → packages/lexical/src/hooks}/useFormatWatcher.js +0 -0
- /package/dist/esm/{index.js → packages/lexical/src/index.js} +0 -0
- /package/dist/esm/{plugins → packages/lexical/src/plugins}/ToolbarPlugin.js +0 -0
- /package/dist/esm/{utils → packages/lexical/src/utils}/index.js +0 -0
|
@@ -0,0 +1,200 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
const formatDistanceLocale = {
|
|
4
|
+
lessThanXSeconds: {
|
|
5
|
+
standalone: {
|
|
6
|
+
one: "weniger als 1 Sekunde",
|
|
7
|
+
other: "weniger als {{count}} Sekunden",
|
|
8
|
+
},
|
|
9
|
+
withPreposition: {
|
|
10
|
+
one: "weniger als 1 Sekunde",
|
|
11
|
+
other: "weniger als {{count}} Sekunden",
|
|
12
|
+
},
|
|
13
|
+
},
|
|
14
|
+
|
|
15
|
+
xSeconds: {
|
|
16
|
+
standalone: {
|
|
17
|
+
one: "1 Sekunde",
|
|
18
|
+
other: "{{count}} Sekunden",
|
|
19
|
+
},
|
|
20
|
+
withPreposition: {
|
|
21
|
+
one: "1 Sekunde",
|
|
22
|
+
other: "{{count}} Sekunden",
|
|
23
|
+
},
|
|
24
|
+
},
|
|
25
|
+
|
|
26
|
+
halfAMinute: {
|
|
27
|
+
standalone: "eine halbe Minute",
|
|
28
|
+
withPreposition: "einer halben Minute",
|
|
29
|
+
},
|
|
30
|
+
|
|
31
|
+
lessThanXMinutes: {
|
|
32
|
+
standalone: {
|
|
33
|
+
one: "weniger als 1 Minute",
|
|
34
|
+
other: "weniger als {{count}} Minuten",
|
|
35
|
+
},
|
|
36
|
+
withPreposition: {
|
|
37
|
+
one: "weniger als 1 Minute",
|
|
38
|
+
other: "weniger als {{count}} Minuten",
|
|
39
|
+
},
|
|
40
|
+
},
|
|
41
|
+
|
|
42
|
+
xMinutes: {
|
|
43
|
+
standalone: {
|
|
44
|
+
one: "1 Minute",
|
|
45
|
+
other: "{{count}} Minuten",
|
|
46
|
+
},
|
|
47
|
+
withPreposition: {
|
|
48
|
+
one: "1 Minute",
|
|
49
|
+
other: "{{count}} Minuten",
|
|
50
|
+
},
|
|
51
|
+
},
|
|
52
|
+
|
|
53
|
+
aboutXHours: {
|
|
54
|
+
standalone: {
|
|
55
|
+
one: "etwa 1 Stunde",
|
|
56
|
+
other: "etwa {{count}} Stunden",
|
|
57
|
+
},
|
|
58
|
+
withPreposition: {
|
|
59
|
+
one: "etwa 1 Stunde",
|
|
60
|
+
other: "etwa {{count}} Stunden",
|
|
61
|
+
},
|
|
62
|
+
},
|
|
63
|
+
|
|
64
|
+
xHours: {
|
|
65
|
+
standalone: {
|
|
66
|
+
one: "1 Stunde",
|
|
67
|
+
other: "{{count}} Stunden",
|
|
68
|
+
},
|
|
69
|
+
withPreposition: {
|
|
70
|
+
one: "1 Stunde",
|
|
71
|
+
other: "{{count}} Stunden",
|
|
72
|
+
},
|
|
73
|
+
},
|
|
74
|
+
|
|
75
|
+
xDays: {
|
|
76
|
+
standalone: {
|
|
77
|
+
one: "1 Tag",
|
|
78
|
+
other: "{{count}} Tage",
|
|
79
|
+
},
|
|
80
|
+
withPreposition: {
|
|
81
|
+
one: "1 Tag",
|
|
82
|
+
other: "{{count}} Tagen",
|
|
83
|
+
},
|
|
84
|
+
},
|
|
85
|
+
|
|
86
|
+
aboutXWeeks: {
|
|
87
|
+
standalone: {
|
|
88
|
+
one: "etwa 1 Woche",
|
|
89
|
+
other: "etwa {{count}} Wochen",
|
|
90
|
+
},
|
|
91
|
+
withPreposition: {
|
|
92
|
+
one: "etwa 1 Woche",
|
|
93
|
+
other: "etwa {{count}} Wochen",
|
|
94
|
+
},
|
|
95
|
+
},
|
|
96
|
+
|
|
97
|
+
xWeeks: {
|
|
98
|
+
standalone: {
|
|
99
|
+
one: "1 Woche",
|
|
100
|
+
other: "{{count}} Wochen",
|
|
101
|
+
},
|
|
102
|
+
withPreposition: {
|
|
103
|
+
one: "1 Woche",
|
|
104
|
+
other: "{{count}} Wochen",
|
|
105
|
+
},
|
|
106
|
+
},
|
|
107
|
+
|
|
108
|
+
aboutXMonths: {
|
|
109
|
+
standalone: {
|
|
110
|
+
one: "etwa 1 Monat",
|
|
111
|
+
other: "etwa {{count}} Monate",
|
|
112
|
+
},
|
|
113
|
+
withPreposition: {
|
|
114
|
+
one: "etwa 1 Monat",
|
|
115
|
+
other: "etwa {{count}} Monaten",
|
|
116
|
+
},
|
|
117
|
+
},
|
|
118
|
+
|
|
119
|
+
xMonths: {
|
|
120
|
+
standalone: {
|
|
121
|
+
one: "1 Monat",
|
|
122
|
+
other: "{{count}} Monate",
|
|
123
|
+
},
|
|
124
|
+
withPreposition: {
|
|
125
|
+
one: "1 Monat",
|
|
126
|
+
other: "{{count}} Monaten",
|
|
127
|
+
},
|
|
128
|
+
},
|
|
129
|
+
|
|
130
|
+
aboutXYears: {
|
|
131
|
+
standalone: {
|
|
132
|
+
one: "etwa 1 Jahr",
|
|
133
|
+
other: "etwa {{count}} Jahre",
|
|
134
|
+
},
|
|
135
|
+
withPreposition: {
|
|
136
|
+
one: "etwa 1 Jahr",
|
|
137
|
+
other: "etwa {{count}} Jahren",
|
|
138
|
+
},
|
|
139
|
+
},
|
|
140
|
+
|
|
141
|
+
xYears: {
|
|
142
|
+
standalone: {
|
|
143
|
+
one: "1 Jahr",
|
|
144
|
+
other: "{{count}} Jahre",
|
|
145
|
+
},
|
|
146
|
+
withPreposition: {
|
|
147
|
+
one: "1 Jahr",
|
|
148
|
+
other: "{{count}} Jahren",
|
|
149
|
+
},
|
|
150
|
+
},
|
|
151
|
+
|
|
152
|
+
overXYears: {
|
|
153
|
+
standalone: {
|
|
154
|
+
one: "mehr als 1 Jahr",
|
|
155
|
+
other: "mehr als {{count}} Jahre",
|
|
156
|
+
},
|
|
157
|
+
withPreposition: {
|
|
158
|
+
one: "mehr als 1 Jahr",
|
|
159
|
+
other: "mehr als {{count}} Jahren",
|
|
160
|
+
},
|
|
161
|
+
},
|
|
162
|
+
|
|
163
|
+
almostXYears: {
|
|
164
|
+
standalone: {
|
|
165
|
+
one: "fast 1 Jahr",
|
|
166
|
+
other: "fast {{count}} Jahre",
|
|
167
|
+
},
|
|
168
|
+
withPreposition: {
|
|
169
|
+
one: "fast 1 Jahr",
|
|
170
|
+
other: "fast {{count}} Jahren",
|
|
171
|
+
},
|
|
172
|
+
},
|
|
173
|
+
};
|
|
174
|
+
|
|
175
|
+
const formatDistance = (token, count, options) => {
|
|
176
|
+
let result;
|
|
177
|
+
|
|
178
|
+
const tokenValue = options?.addSuffix
|
|
179
|
+
? formatDistanceLocale[token].withPreposition
|
|
180
|
+
: formatDistanceLocale[token].standalone;
|
|
181
|
+
if (typeof tokenValue === "string") {
|
|
182
|
+
result = tokenValue;
|
|
183
|
+
} else if (count === 1) {
|
|
184
|
+
result = tokenValue.one;
|
|
185
|
+
} else {
|
|
186
|
+
result = tokenValue.other.replace("{{count}}", String(count));
|
|
187
|
+
}
|
|
188
|
+
|
|
189
|
+
if (options?.addSuffix) {
|
|
190
|
+
if (options.comparison && options.comparison > 0) {
|
|
191
|
+
return "in " + result;
|
|
192
|
+
} else {
|
|
193
|
+
return "vor " + result;
|
|
194
|
+
}
|
|
195
|
+
}
|
|
196
|
+
|
|
197
|
+
return result;
|
|
198
|
+
};
|
|
199
|
+
|
|
200
|
+
exports.formatDistance = formatDistance;
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var buildFormatLongFn = require('../../_lib/buildFormatLongFn.js');
|
|
4
|
+
|
|
5
|
+
// DIN 5008: https://de.wikipedia.org/wiki/Datumsformat#DIN_5008
|
|
6
|
+
const dateFormats = {
|
|
7
|
+
full: "EEEE, do MMMM y", // Montag, 7. Januar 2018
|
|
8
|
+
long: "do MMMM y", // 7. Januar 2018
|
|
9
|
+
medium: "do MMM y", // 7. Jan. 2018
|
|
10
|
+
short: "dd.MM.y", // 07.01.2018
|
|
11
|
+
};
|
|
12
|
+
|
|
13
|
+
const timeFormats = {
|
|
14
|
+
full: "HH:mm:ss zzzz",
|
|
15
|
+
long: "HH:mm:ss z",
|
|
16
|
+
medium: "HH:mm:ss",
|
|
17
|
+
short: "HH:mm",
|
|
18
|
+
};
|
|
19
|
+
|
|
20
|
+
const dateTimeFormats = {
|
|
21
|
+
full: "{{date}} 'um' {{time}}",
|
|
22
|
+
long: "{{date}} 'um' {{time}}",
|
|
23
|
+
medium: "{{date}} {{time}}",
|
|
24
|
+
short: "{{date}} {{time}}",
|
|
25
|
+
};
|
|
26
|
+
|
|
27
|
+
const formatLong = {
|
|
28
|
+
date: buildFormatLongFn.buildFormatLongFn({
|
|
29
|
+
formats: dateFormats,
|
|
30
|
+
defaultWidth: "full",
|
|
31
|
+
}),
|
|
32
|
+
|
|
33
|
+
time: buildFormatLongFn.buildFormatLongFn({
|
|
34
|
+
formats: timeFormats,
|
|
35
|
+
defaultWidth: "full",
|
|
36
|
+
}),
|
|
37
|
+
|
|
38
|
+
dateTime: buildFormatLongFn.buildFormatLongFn({
|
|
39
|
+
formats: dateTimeFormats,
|
|
40
|
+
defaultWidth: "full",
|
|
41
|
+
}),
|
|
42
|
+
};
|
|
43
|
+
|
|
44
|
+
exports.formatLong = formatLong;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
const formatRelativeLocale = {
|
|
4
|
+
lastWeek: "'letzten' eeee 'um' p",
|
|
5
|
+
yesterday: "'gestern um' p",
|
|
6
|
+
today: "'heute um' p",
|
|
7
|
+
tomorrow: "'morgen um' p",
|
|
8
|
+
nextWeek: "eeee 'um' p",
|
|
9
|
+
other: "P",
|
|
10
|
+
};
|
|
11
|
+
|
|
12
|
+
const formatRelative = (token, _date, _baseDate, _options) =>
|
|
13
|
+
formatRelativeLocale[token];
|
|
14
|
+
|
|
15
|
+
exports.formatRelative = formatRelative;
|
|
@@ -0,0 +1,195 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var buildLocalizeFn = require('../../_lib/buildLocalizeFn.js');
|
|
4
|
+
|
|
5
|
+
const eraValues = {
|
|
6
|
+
narrow: ["v.Chr.", "n.Chr."],
|
|
7
|
+
abbreviated: ["v.Chr.", "n.Chr."],
|
|
8
|
+
wide: ["vor Christus", "nach Christus"],
|
|
9
|
+
};
|
|
10
|
+
|
|
11
|
+
const quarterValues = {
|
|
12
|
+
narrow: ["1", "2", "3", "4"],
|
|
13
|
+
abbreviated: ["Q1", "Q2", "Q3", "Q4"],
|
|
14
|
+
wide: ["1. Quartal", "2. Quartal", "3. Quartal", "4. Quartal"],
|
|
15
|
+
};
|
|
16
|
+
|
|
17
|
+
// Note: in German, the names of days of the week and months are capitalized.
|
|
18
|
+
// If you are making a new locale based on this one, check if the same is true for the language you're working on.
|
|
19
|
+
// Generally, formatted dates should look like they are in the middle of a sentence,
|
|
20
|
+
// e.g. in Spanish language the weekdays and months should be in the lowercase.
|
|
21
|
+
const monthValues = {
|
|
22
|
+
narrow: ["J", "F", "M", "A", "M", "J", "J", "A", "S", "O", "N", "D"],
|
|
23
|
+
abbreviated: [
|
|
24
|
+
"Jan",
|
|
25
|
+
"Feb",
|
|
26
|
+
"Mär",
|
|
27
|
+
"Apr",
|
|
28
|
+
"Mai",
|
|
29
|
+
"Jun",
|
|
30
|
+
"Jul",
|
|
31
|
+
"Aug",
|
|
32
|
+
"Sep",
|
|
33
|
+
"Okt",
|
|
34
|
+
"Nov",
|
|
35
|
+
"Dez",
|
|
36
|
+
],
|
|
37
|
+
|
|
38
|
+
wide: [
|
|
39
|
+
"Januar",
|
|
40
|
+
"Februar",
|
|
41
|
+
"März",
|
|
42
|
+
"April",
|
|
43
|
+
"Mai",
|
|
44
|
+
"Juni",
|
|
45
|
+
"Juli",
|
|
46
|
+
"August",
|
|
47
|
+
"September",
|
|
48
|
+
"Oktober",
|
|
49
|
+
"November",
|
|
50
|
+
"Dezember",
|
|
51
|
+
],
|
|
52
|
+
};
|
|
53
|
+
|
|
54
|
+
// https://st.unicode.org/cldr-apps/v#/de/Gregorian/
|
|
55
|
+
const formattingMonthValues = {
|
|
56
|
+
narrow: monthValues.narrow,
|
|
57
|
+
abbreviated: [
|
|
58
|
+
"Jan.",
|
|
59
|
+
"Feb.",
|
|
60
|
+
"März",
|
|
61
|
+
"Apr.",
|
|
62
|
+
"Mai",
|
|
63
|
+
"Juni",
|
|
64
|
+
"Juli",
|
|
65
|
+
"Aug.",
|
|
66
|
+
"Sep.",
|
|
67
|
+
"Okt.",
|
|
68
|
+
"Nov.",
|
|
69
|
+
"Dez.",
|
|
70
|
+
],
|
|
71
|
+
|
|
72
|
+
wide: monthValues.wide,
|
|
73
|
+
};
|
|
74
|
+
|
|
75
|
+
const dayValues = {
|
|
76
|
+
narrow: ["S", "M", "D", "M", "D", "F", "S"],
|
|
77
|
+
short: ["So", "Mo", "Di", "Mi", "Do", "Fr", "Sa"],
|
|
78
|
+
abbreviated: ["So.", "Mo.", "Di.", "Mi.", "Do.", "Fr.", "Sa."],
|
|
79
|
+
wide: [
|
|
80
|
+
"Sonntag",
|
|
81
|
+
"Montag",
|
|
82
|
+
"Dienstag",
|
|
83
|
+
"Mittwoch",
|
|
84
|
+
"Donnerstag",
|
|
85
|
+
"Freitag",
|
|
86
|
+
"Samstag",
|
|
87
|
+
],
|
|
88
|
+
};
|
|
89
|
+
|
|
90
|
+
// https://www.unicode.org/cldr/charts/32/summary/de.html#1881
|
|
91
|
+
const dayPeriodValues = {
|
|
92
|
+
narrow: {
|
|
93
|
+
am: "vm.",
|
|
94
|
+
pm: "nm.",
|
|
95
|
+
midnight: "Mitternacht",
|
|
96
|
+
noon: "Mittag",
|
|
97
|
+
morning: "Morgen",
|
|
98
|
+
afternoon: "Nachm.",
|
|
99
|
+
evening: "Abend",
|
|
100
|
+
night: "Nacht",
|
|
101
|
+
},
|
|
102
|
+
abbreviated: {
|
|
103
|
+
am: "vorm.",
|
|
104
|
+
pm: "nachm.",
|
|
105
|
+
midnight: "Mitternacht",
|
|
106
|
+
noon: "Mittag",
|
|
107
|
+
morning: "Morgen",
|
|
108
|
+
afternoon: "Nachmittag",
|
|
109
|
+
evening: "Abend",
|
|
110
|
+
night: "Nacht",
|
|
111
|
+
},
|
|
112
|
+
wide: {
|
|
113
|
+
am: "vormittags",
|
|
114
|
+
pm: "nachmittags",
|
|
115
|
+
midnight: "Mitternacht",
|
|
116
|
+
noon: "Mittag",
|
|
117
|
+
morning: "Morgen",
|
|
118
|
+
afternoon: "Nachmittag",
|
|
119
|
+
evening: "Abend",
|
|
120
|
+
night: "Nacht",
|
|
121
|
+
},
|
|
122
|
+
};
|
|
123
|
+
const formattingDayPeriodValues = {
|
|
124
|
+
narrow: {
|
|
125
|
+
am: "vm.",
|
|
126
|
+
pm: "nm.",
|
|
127
|
+
midnight: "Mitternacht",
|
|
128
|
+
noon: "Mittag",
|
|
129
|
+
morning: "morgens",
|
|
130
|
+
afternoon: "nachm.",
|
|
131
|
+
evening: "abends",
|
|
132
|
+
night: "nachts",
|
|
133
|
+
},
|
|
134
|
+
abbreviated: {
|
|
135
|
+
am: "vorm.",
|
|
136
|
+
pm: "nachm.",
|
|
137
|
+
midnight: "Mitternacht",
|
|
138
|
+
noon: "Mittag",
|
|
139
|
+
morning: "morgens",
|
|
140
|
+
afternoon: "nachmittags",
|
|
141
|
+
evening: "abends",
|
|
142
|
+
night: "nachts",
|
|
143
|
+
},
|
|
144
|
+
wide: {
|
|
145
|
+
am: "vormittags",
|
|
146
|
+
pm: "nachmittags",
|
|
147
|
+
midnight: "Mitternacht",
|
|
148
|
+
noon: "Mittag",
|
|
149
|
+
morning: "morgens",
|
|
150
|
+
afternoon: "nachmittags",
|
|
151
|
+
evening: "abends",
|
|
152
|
+
night: "nachts",
|
|
153
|
+
},
|
|
154
|
+
};
|
|
155
|
+
|
|
156
|
+
const ordinalNumber = (dirtyNumber) => {
|
|
157
|
+
const number = Number(dirtyNumber);
|
|
158
|
+
|
|
159
|
+
return number + ".";
|
|
160
|
+
};
|
|
161
|
+
|
|
162
|
+
const localize = {
|
|
163
|
+
ordinalNumber,
|
|
164
|
+
|
|
165
|
+
era: buildLocalizeFn.buildLocalizeFn({
|
|
166
|
+
values: eraValues,
|
|
167
|
+
defaultWidth: "wide",
|
|
168
|
+
}),
|
|
169
|
+
|
|
170
|
+
quarter: buildLocalizeFn.buildLocalizeFn({
|
|
171
|
+
values: quarterValues,
|
|
172
|
+
defaultWidth: "wide",
|
|
173
|
+
argumentCallback: (quarter) => quarter - 1,
|
|
174
|
+
}),
|
|
175
|
+
|
|
176
|
+
month: buildLocalizeFn.buildLocalizeFn({
|
|
177
|
+
values: monthValues,
|
|
178
|
+
formattingValues: formattingMonthValues,
|
|
179
|
+
defaultWidth: "wide",
|
|
180
|
+
}),
|
|
181
|
+
|
|
182
|
+
day: buildLocalizeFn.buildLocalizeFn({
|
|
183
|
+
values: dayValues,
|
|
184
|
+
defaultWidth: "wide",
|
|
185
|
+
}),
|
|
186
|
+
|
|
187
|
+
dayPeriod: buildLocalizeFn.buildLocalizeFn({
|
|
188
|
+
values: dayPeriodValues,
|
|
189
|
+
defaultWidth: "wide",
|
|
190
|
+
formattingValues: formattingDayPeriodValues,
|
|
191
|
+
defaultFormattingWidth: "wide",
|
|
192
|
+
}),
|
|
193
|
+
};
|
|
194
|
+
|
|
195
|
+
exports.localize = localize;
|
|
@@ -0,0 +1,138 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var buildMatchFn = require('../../_lib/buildMatchFn.js');
|
|
4
|
+
var buildMatchPatternFn = require('../../_lib/buildMatchPatternFn.js');
|
|
5
|
+
|
|
6
|
+
const matchOrdinalNumberPattern = /^(\d+)(\.)?/i;
|
|
7
|
+
const parseOrdinalNumberPattern = /\d+/i;
|
|
8
|
+
|
|
9
|
+
const matchEraPatterns = {
|
|
10
|
+
narrow: /^(v\.? ?Chr\.?|n\.? ?Chr\.?)/i,
|
|
11
|
+
abbreviated: /^(v\.? ?Chr\.?|n\.? ?Chr\.?)/i,
|
|
12
|
+
wide: /^(vor Christus|vor unserer Zeitrechnung|nach Christus|unserer Zeitrechnung)/i,
|
|
13
|
+
};
|
|
14
|
+
const parseEraPatterns = {
|
|
15
|
+
any: [/^v/i, /^n/i],
|
|
16
|
+
};
|
|
17
|
+
|
|
18
|
+
const matchQuarterPatterns = {
|
|
19
|
+
narrow: /^[1234]/i,
|
|
20
|
+
abbreviated: /^q[1234]/i,
|
|
21
|
+
wide: /^[1234](\.)? Quartal/i,
|
|
22
|
+
};
|
|
23
|
+
const parseQuarterPatterns = {
|
|
24
|
+
any: [/1/i, /2/i, /3/i, /4/i],
|
|
25
|
+
};
|
|
26
|
+
|
|
27
|
+
const matchMonthPatterns = {
|
|
28
|
+
narrow: /^[jfmasond]/i,
|
|
29
|
+
abbreviated:
|
|
30
|
+
/^(j[aä]n|feb|mär[z]?|apr|mai|jun[i]?|jul[i]?|aug|sep|okt|nov|dez)\.?/i,
|
|
31
|
+
wide: /^(januar|februar|märz|april|mai|juni|juli|august|september|oktober|november|dezember)/i,
|
|
32
|
+
};
|
|
33
|
+
const parseMonthPatterns = {
|
|
34
|
+
narrow: [
|
|
35
|
+
/^j/i,
|
|
36
|
+
/^f/i,
|
|
37
|
+
/^m/i,
|
|
38
|
+
/^a/i,
|
|
39
|
+
/^m/i,
|
|
40
|
+
/^j/i,
|
|
41
|
+
/^j/i,
|
|
42
|
+
/^a/i,
|
|
43
|
+
/^s/i,
|
|
44
|
+
/^o/i,
|
|
45
|
+
/^n/i,
|
|
46
|
+
/^d/i,
|
|
47
|
+
],
|
|
48
|
+
|
|
49
|
+
any: [
|
|
50
|
+
/^j[aä]/i,
|
|
51
|
+
/^f/i,
|
|
52
|
+
/^mär/i,
|
|
53
|
+
/^ap/i,
|
|
54
|
+
/^mai/i,
|
|
55
|
+
/^jun/i,
|
|
56
|
+
/^jul/i,
|
|
57
|
+
/^au/i,
|
|
58
|
+
/^s/i,
|
|
59
|
+
/^o/i,
|
|
60
|
+
/^n/i,
|
|
61
|
+
/^d/i,
|
|
62
|
+
],
|
|
63
|
+
};
|
|
64
|
+
|
|
65
|
+
const matchDayPatterns = {
|
|
66
|
+
narrow: /^[smdmf]/i,
|
|
67
|
+
short: /^(so|mo|di|mi|do|fr|sa)/i,
|
|
68
|
+
abbreviated: /^(son?|mon?|die?|mit?|don?|fre?|sam?)\.?/i,
|
|
69
|
+
wide: /^(sonntag|montag|dienstag|mittwoch|donnerstag|freitag|samstag)/i,
|
|
70
|
+
};
|
|
71
|
+
const parseDayPatterns = {
|
|
72
|
+
any: [/^so/i, /^mo/i, /^di/i, /^mi/i, /^do/i, /^f/i, /^sa/i],
|
|
73
|
+
};
|
|
74
|
+
|
|
75
|
+
const matchDayPeriodPatterns = {
|
|
76
|
+
narrow: /^(vm\.?|nm\.?|Mitternacht|Mittag|morgens|nachm\.?|abends|nachts)/i,
|
|
77
|
+
abbreviated:
|
|
78
|
+
/^(vorm\.?|nachm\.?|Mitternacht|Mittag|morgens|nachm\.?|abends|nachts)/i,
|
|
79
|
+
wide: /^(vormittags|nachmittags|Mitternacht|Mittag|morgens|nachmittags|abends|nachts)/i,
|
|
80
|
+
};
|
|
81
|
+
const parseDayPeriodPatterns = {
|
|
82
|
+
any: {
|
|
83
|
+
am: /^v/i,
|
|
84
|
+
pm: /^n/i,
|
|
85
|
+
midnight: /^Mitte/i,
|
|
86
|
+
noon: /^Mitta/i,
|
|
87
|
+
morning: /morgens/i,
|
|
88
|
+
afternoon: /nachmittags/i, // will never be matched. Afternoon is matched by `pm`
|
|
89
|
+
evening: /abends/i,
|
|
90
|
+
night: /nachts/i, // will never be matched. Night is matched by `pm`
|
|
91
|
+
},
|
|
92
|
+
};
|
|
93
|
+
|
|
94
|
+
const match = {
|
|
95
|
+
ordinalNumber: buildMatchPatternFn.buildMatchPatternFn({
|
|
96
|
+
matchPattern: matchOrdinalNumberPattern,
|
|
97
|
+
parsePattern: parseOrdinalNumberPattern,
|
|
98
|
+
valueCallback: (value) => parseInt(value),
|
|
99
|
+
}),
|
|
100
|
+
|
|
101
|
+
era: buildMatchFn.buildMatchFn({
|
|
102
|
+
matchPatterns: matchEraPatterns,
|
|
103
|
+
defaultMatchWidth: "wide",
|
|
104
|
+
parsePatterns: parseEraPatterns,
|
|
105
|
+
defaultParseWidth: "any",
|
|
106
|
+
}),
|
|
107
|
+
|
|
108
|
+
quarter: buildMatchFn.buildMatchFn({
|
|
109
|
+
matchPatterns: matchQuarterPatterns,
|
|
110
|
+
defaultMatchWidth: "wide",
|
|
111
|
+
parsePatterns: parseQuarterPatterns,
|
|
112
|
+
defaultParseWidth: "any",
|
|
113
|
+
valueCallback: (index) => index + 1,
|
|
114
|
+
}),
|
|
115
|
+
|
|
116
|
+
month: buildMatchFn.buildMatchFn({
|
|
117
|
+
matchPatterns: matchMonthPatterns,
|
|
118
|
+
defaultMatchWidth: "wide",
|
|
119
|
+
parsePatterns: parseMonthPatterns,
|
|
120
|
+
defaultParseWidth: "any",
|
|
121
|
+
}),
|
|
122
|
+
|
|
123
|
+
day: buildMatchFn.buildMatchFn({
|
|
124
|
+
matchPatterns: matchDayPatterns,
|
|
125
|
+
defaultMatchWidth: "wide",
|
|
126
|
+
parsePatterns: parseDayPatterns,
|
|
127
|
+
defaultParseWidth: "any",
|
|
128
|
+
}),
|
|
129
|
+
|
|
130
|
+
dayPeriod: buildMatchFn.buildMatchFn({
|
|
131
|
+
matchPatterns: matchDayPeriodPatterns,
|
|
132
|
+
defaultMatchWidth: "wide",
|
|
133
|
+
parsePatterns: parseDayPeriodPatterns,
|
|
134
|
+
defaultParseWidth: "any",
|
|
135
|
+
}),
|
|
136
|
+
};
|
|
137
|
+
|
|
138
|
+
exports.match = match;
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
5
|
+
var formatDistance = require('./de/_lib/formatDistance.js');
|
|
6
|
+
var formatLong = require('./de/_lib/formatLong.js');
|
|
7
|
+
var formatRelative = require('./de/_lib/formatRelative.js');
|
|
8
|
+
var localize = require('./de/_lib/localize.js');
|
|
9
|
+
var match = require('./de/_lib/match.js');
|
|
10
|
+
|
|
11
|
+
/**
|
|
12
|
+
* @category Locales
|
|
13
|
+
* @summary German locale.
|
|
14
|
+
* @language German
|
|
15
|
+
* @iso-639-2 deu
|
|
16
|
+
* @author Thomas Eilmsteiner [@DeMuu](https://github.com/DeMuu)
|
|
17
|
+
* @author Asia [@asia-t](https://github.com/asia-t)
|
|
18
|
+
* @author Van Vuong Ngo [@vanvuongngo](https://github.com/vanvuongngo)
|
|
19
|
+
* @author RomanErnst [@pex](https://github.com/pex)
|
|
20
|
+
* @author Philipp Keck [@Philipp91](https://github.com/Philipp91)
|
|
21
|
+
*/
|
|
22
|
+
const de = {
|
|
23
|
+
code: "de",
|
|
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.de = de;
|
|
36
|
+
exports.default = de;
|