@react-fabric/lexical 1.0.0-beta.62 → 1.0.0-beta.63
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 +10 -13
- package/dist/cjs/{packages/lexical/src/editor → editor}/LexicalEditor.js +2 -2
- package/dist/cjs/{packages/lexical/src/hooks → hooks}/useFormatWatcher.js +54 -56
- package/dist/cjs/{packages/lexical/src/plugins → plugins}/CommentPlugin.js +12 -18
- package/dist/cjs/{packages/lexical/src/plugins → plugins}/DraggableBlockPlugin.js +2 -2
- package/dist/esm/{packages/lexical/src/editor → editor}/LexicalEditor.js +2 -2
- package/dist/esm/{packages/lexical/src/hooks → hooks}/useFormatWatcher.js +54 -56
- package/dist/esm/{packages/lexical/src/plugins → plugins}/CommentPlugin.js +10 -16
- package/dist/esm/{packages/lexical/src/plugins → plugins}/DraggableBlockPlugin.js +2 -2
- package/dist/types/editor/LexicalEditor.d.ts +1 -1
- package/dist/types/plugins/CommentPlugin.d.ts +1 -1
- package/dist/types/plugins/DraggableBlockPlugin.d.ts +1 -1
- package/package.json +14 -13
- package/src/editor/LexicalEditor.tsx +2 -2
- package/src/hooks/useFormatWatcher.ts +0 -2
- package/src/plugins/CommentPlugin.tsx +3 -3
- package/src/plugins/DraggableBlockPlugin.tsx +3 -3
- package/dist/cjs/node_modules/date-fns/_lib/addLeadingZeros.js +0 -9
- package/dist/cjs/node_modules/date-fns/_lib/defaultOptions.js +0 -9
- package/dist/cjs/node_modules/date-fns/_lib/format/formatters.js +0 -779
- package/dist/cjs/node_modules/date-fns/_lib/format/lightFormatters.js +0 -96
- package/dist/cjs/node_modules/date-fns/_lib/format/longFormatters.js +0 -68
- package/dist/cjs/node_modules/date-fns/_lib/getRoundingMethod.js +0 -12
- package/dist/cjs/node_modules/date-fns/_lib/getTimezoneOffsetInMilliseconds.js +0 -33
- package/dist/cjs/node_modules/date-fns/_lib/normalizeDates.js +0 -13
- package/dist/cjs/node_modules/date-fns/_lib/normalizeInterval.js +0 -10
- package/dist/cjs/node_modules/date-fns/_lib/protectedTokens.js +0 -29
- package/dist/cjs/node_modules/date-fns/add.js +0 -73
- package/dist/cjs/node_modules/date-fns/addDays.js +0 -46
- package/dist/cjs/node_modules/date-fns/addHours.js +0 -39
- package/dist/cjs/node_modules/date-fns/addMilliseconds.js +0 -39
- package/dist/cjs/node_modules/date-fns/addMinutes.js +0 -41
- package/dist/cjs/node_modules/date-fns/addMonths.js +0 -80
- package/dist/cjs/node_modules/date-fns/addQuarters.js +0 -38
- package/dist/cjs/node_modules/date-fns/addWeeks.js +0 -38
- package/dist/cjs/node_modules/date-fns/addYears.js +0 -38
- package/dist/cjs/node_modules/date-fns/compareAsc.js +0 -50
- package/dist/cjs/node_modules/date-fns/constants.js +0 -66
- package/dist/cjs/node_modules/date-fns/constructFrom.js +0 -54
- package/dist/cjs/node_modules/date-fns/differenceInCalendarDays.js +0 -67
- package/dist/cjs/node_modules/date-fns/differenceInCalendarMonths.js +0 -47
- package/dist/cjs/node_modules/date-fns/differenceInCalendarYears.js +0 -43
- package/dist/cjs/node_modules/date-fns/differenceInDays.js +0 -112
- package/dist/cjs/node_modules/date-fns/differenceInHours.js +0 -46
- package/dist/cjs/node_modules/date-fns/differenceInMilliseconds.js +0 -34
- package/dist/cjs/node_modules/date-fns/differenceInMinutes.js +0 -50
- package/dist/cjs/node_modules/date-fns/differenceInMonths.js +0 -65
- package/dist/cjs/node_modules/date-fns/differenceInSeconds.js +0 -41
- package/dist/cjs/node_modules/date-fns/differenceInYears.js +0 -67
- package/dist/cjs/node_modules/date-fns/endOfDay.js +0 -40
- package/dist/cjs/node_modules/date-fns/endOfDecade.js +0 -45
- package/dist/cjs/node_modules/date-fns/endOfHour.js +0 -40
- package/dist/cjs/node_modules/date-fns/endOfMinute.js +0 -40
- package/dist/cjs/node_modules/date-fns/endOfMonth.js +0 -42
- package/dist/cjs/node_modules/date-fns/endOfQuarter.js +0 -43
- package/dist/cjs/node_modules/date-fns/endOfWeek.js +0 -58
- package/dist/cjs/node_modules/date-fns/endOfYear.js +0 -42
- package/dist/cjs/node_modules/date-fns/format.js +0 -431
- package/dist/cjs/node_modules/date-fns/getDayOfYear.js +0 -39
- package/dist/cjs/node_modules/date-fns/getISOWeek.js +0 -45
- package/dist/cjs/node_modules/date-fns/getISOWeekYear.js +0 -57
- package/dist/cjs/node_modules/date-fns/getWeek.js +0 -59
- package/dist/cjs/node_modules/date-fns/getWeekYear.js +0 -80
- package/dist/cjs/node_modules/date-fns/intervalToDuration.js +0 -70
- package/dist/cjs/node_modules/date-fns/isAfter.js +0 -30
- package/dist/cjs/node_modules/date-fns/isBefore.js +0 -30
- package/dist/cjs/node_modules/date-fns/isDate.js +0 -46
- package/dist/cjs/node_modules/date-fns/isLastDayOfMonth.js +0 -33
- package/dist/cjs/node_modules/date-fns/isSameMonth.js +0 -48
- package/dist/cjs/node_modules/date-fns/isSameWeek.js +0 -56
- package/dist/cjs/node_modules/date-fns/isSameYear.js +0 -40
- package/dist/cjs/node_modules/date-fns/isValid.js +0 -44
- package/dist/cjs/node_modules/date-fns/locale/_lib/buildFormatLongFn.js +0 -12
- package/dist/cjs/node_modules/date-fns/locale/_lib/buildLocalizeFn.js +0 -66
- package/dist/cjs/node_modules/date-fns/locale/_lib/buildMatchFn.js +0 -61
- package/dist/cjs/node_modules/date-fns/locale/_lib/buildMatchPatternFn.js +0 -24
- package/dist/cjs/node_modules/date-fns/locale/ar-SA/_lib/formatDistance.js +0 -139
- package/dist/cjs/node_modules/date-fns/locale/ar-SA/_lib/formatLong.js +0 -43
- package/dist/cjs/node_modules/date-fns/locale/ar-SA/_lib/formatRelative.js +0 -15
- package/dist/cjs/node_modules/date-fns/locale/ar-SA/_lib/localize.js +0 -166
- package/dist/cjs/node_modules/date-fns/locale/ar-SA/_lib/match.js +0 -146
- package/dist/cjs/node_modules/date-fns/locale/ar-SA.js +0 -32
- package/dist/cjs/node_modules/date-fns/locale/de/_lib/formatDistance.js +0 -200
- package/dist/cjs/node_modules/date-fns/locale/de/_lib/formatLong.js +0 -44
- package/dist/cjs/node_modules/date-fns/locale/de/_lib/formatRelative.js +0 -15
- package/dist/cjs/node_modules/date-fns/locale/de/_lib/localize.js +0 -195
- package/dist/cjs/node_modules/date-fns/locale/de/_lib/match.js +0 -138
- package/dist/cjs/node_modules/date-fns/locale/de.js +0 -36
- package/dist/cjs/node_modules/date-fns/locale/en-US/_lib/formatDistance.js +0 -105
- package/dist/cjs/node_modules/date-fns/locale/en-US/_lib/formatLong.js +0 -43
- package/dist/cjs/node_modules/date-fns/locale/en-US/_lib/formatRelative.js +0 -15
- package/dist/cjs/node_modules/date-fns/locale/en-US/_lib/localize.js +0 -191
- package/dist/cjs/node_modules/date-fns/locale/en-US/_lib/match.js +0 -136
- package/dist/cjs/node_modules/date-fns/locale/en-US.js +0 -33
- package/dist/cjs/node_modules/date-fns/locale/es/_lib/formatDistance.js +0 -105
- package/dist/cjs/node_modules/date-fns/locale/es/_lib/formatLong.js +0 -43
- package/dist/cjs/node_modules/date-fns/locale/es/_lib/formatRelative.js +0 -29
- package/dist/cjs/node_modules/date-fns/locale/es/_lib/localize.js +0 -168
- package/dist/cjs/node_modules/date-fns/locale/es/_lib/match.js +0 -142
- package/dist/cjs/node_modules/date-fns/locale/es.js +0 -36
- package/dist/cjs/node_modules/date-fns/locale/fr/_lib/formatDistance.js +0 -104
- package/dist/cjs/node_modules/date-fns/locale/fr/_lib/formatLong.js +0 -43
- package/dist/cjs/node_modules/date-fns/locale/fr/_lib/formatRelative.js +0 -15
- package/dist/cjs/node_modules/date-fns/locale/fr/_lib/localize.js +0 -169
- package/dist/cjs/node_modules/date-fns/locale/fr/_lib/match.js +0 -137
- package/dist/cjs/node_modules/date-fns/locale/fr.js +0 -33
- package/dist/cjs/node_modules/date-fns/locale/hi/_lib/formatDistance.js +0 -109
- package/dist/cjs/node_modules/date-fns/locale/hi/_lib/formatLong.js +0 -43
- package/dist/cjs/node_modules/date-fns/locale/hi/_lib/formatRelative.js +0 -15
- package/dist/cjs/node_modules/date-fns/locale/hi/_lib/localize.js +0 -233
- package/dist/cjs/node_modules/date-fns/locale/hi/_lib/match.js +0 -141
- package/dist/cjs/node_modules/date-fns/locale/hi.js +0 -32
- package/dist/cjs/node_modules/date-fns/locale/it/_lib/formatDistance.js +0 -105
- package/dist/cjs/node_modules/date-fns/locale/it/_lib/formatLong.js +0 -43
- package/dist/cjs/node_modules/date-fns/locale/it/_lib/formatRelative.js +0 -70
- package/dist/cjs/node_modules/date-fns/locale/it/_lib/localize.js +0 -168
- package/dist/cjs/node_modules/date-fns/locale/it/_lib/match.js +0 -137
- package/dist/cjs/node_modules/date-fns/locale/it.js +0 -34
- package/dist/cjs/node_modules/date-fns/locale/ja/_lib/formatDistance.js +0 -119
- package/dist/cjs/node_modules/date-fns/locale/ja/_lib/formatLong.js +0 -43
- package/dist/cjs/node_modules/date-fns/locale/ja/_lib/formatRelative.js +0 -16
- package/dist/cjs/node_modules/date-fns/locale/ja/_lib/localize.js +0 -181
- package/dist/cjs/node_modules/date-fns/locale/ja/_lib/match.js +0 -122
- package/dist/cjs/node_modules/date-fns/locale/ja.js +0 -36
- package/dist/cjs/node_modules/date-fns/locale/ko/_lib/formatDistance.js +0 -105
- package/dist/cjs/node_modules/date-fns/locale/ko/_lib/formatLong.js +0 -43
- package/dist/cjs/node_modules/date-fns/locale/ko/_lib/formatRelative.js +0 -15
- package/dist/cjs/node_modules/date-fns/locale/ko/_lib/localize.js +0 -171
- package/dist/cjs/node_modules/date-fns/locale/ko/_lib/match.js +0 -119
- package/dist/cjs/node_modules/date-fns/locale/ko.js +0 -34
- package/dist/cjs/node_modules/date-fns/locale/pt/_lib/formatDistance.js +0 -105
- package/dist/cjs/node_modules/date-fns/locale/pt/_lib/formatLong.js +0 -43
- package/dist/cjs/node_modules/date-fns/locale/pt/_lib/formatRelative.js +0 -26
- package/dist/cjs/node_modules/date-fns/locale/pt/_lib/localize.js +0 -168
- package/dist/cjs/node_modules/date-fns/locale/pt/_lib/match.js +0 -141
- package/dist/cjs/node_modules/date-fns/locale/pt.js +0 -33
- package/dist/cjs/node_modules/date-fns/locale/ru/_lib/formatDistance.js +0 -250
- package/dist/cjs/node_modules/date-fns/locale/ru/_lib/formatLong.js +0 -40
- package/dist/cjs/node_modules/date-fns/locale/ru/_lib/formatRelative.js +0 -92
- package/dist/cjs/node_modules/date-fns/locale/ru/_lib/localize.js +0 -214
- package/dist/cjs/node_modules/date-fns/locale/ru/_lib/match.js +0 -142
- package/dist/cjs/node_modules/date-fns/locale/ru.js +0 -33
- package/dist/cjs/node_modules/date-fns/locale/zh-CN/_lib/formatDistance.js +0 -105
- package/dist/cjs/node_modules/date-fns/locale/zh-CN/_lib/formatLong.js +0 -43
- package/dist/cjs/node_modules/date-fns/locale/zh-CN/_lib/formatRelative.js +0 -35
- package/dist/cjs/node_modules/date-fns/locale/zh-CN/_lib/localize.js +0 -187
- package/dist/cjs/node_modules/date-fns/locale/zh-CN/_lib/match.js +0 -134
- package/dist/cjs/node_modules/date-fns/locale/zh-CN.js +0 -36
- package/dist/cjs/node_modules/date-fns/startOfDay.js +0 -40
- package/dist/cjs/node_modules/date-fns/startOfDecade.js +0 -45
- package/dist/cjs/node_modules/date-fns/startOfHour.js +0 -40
- package/dist/cjs/node_modules/date-fns/startOfISOWeek.js +0 -40
- package/dist/cjs/node_modules/date-fns/startOfISOWeekYear.js +0 -47
- package/dist/cjs/node_modules/date-fns/startOfMinute.js +0 -40
- package/dist/cjs/node_modules/date-fns/startOfMonth.js +0 -42
- package/dist/cjs/node_modules/date-fns/startOfQuarter.js +0 -43
- package/dist/cjs/node_modules/date-fns/startOfWeek.js +0 -58
- package/dist/cjs/node_modules/date-fns/startOfWeekYear.js +0 -69
- package/dist/cjs/node_modules/date-fns/startOfYear.js +0 -41
- package/dist/cjs/node_modules/date-fns/toDate.js +0 -51
- package/dist/cjs/packages/date/dist/esm/display/DateDuration.js +0 -178
- package/dist/cjs/packages/date/dist/esm/hijri/DateConverter.js +0 -154
- package/dist/cjs/packages/date/dist/esm/hijri/FormatDate.js +0 -116
- package/dist/cjs/packages/date/dist/esm/hijri/HijriDate.js +0 -531
- package/dist/cjs/packages/date/dist/esm/hijri/StringDateParser.js +0 -74
- package/dist/cjs/packages/date/dist/esm/hijri/index.js +0 -21
- package/dist/cjs/packages/date/dist/esm/hijri/initializer.js +0 -113
- package/dist/cjs/packages/date/dist/esm/hijri/locales.js +0 -19
- package/dist/cjs/packages/date/dist/esm/hijri/safe.js +0 -17
- package/dist/cjs/packages/date/dist/esm/i18n/ar/date.json.js +0 -213
- package/dist/cjs/packages/date/dist/esm/i18n/en/date.json.js +0 -83
- package/dist/cjs/packages/date/dist/esm/i18n/index.js +0 -33
- package/dist/cjs/packages/date/dist/esm/types/index.js +0 -46
- package/dist/cjs/packages/date/dist/esm/utils/dateUtil.js +0 -472
- package/dist/esm/node_modules/date-fns/_lib/addLeadingZeros.js +0 -9
- package/dist/esm/node_modules/date-fns/_lib/defaultOptions.js +0 -9
- package/dist/esm/node_modules/date-fns/_lib/format/formatters.js +0 -779
- package/dist/esm/node_modules/date-fns/_lib/format/lightFormatters.js +0 -96
- package/dist/esm/node_modules/date-fns/_lib/format/longFormatters.js +0 -68
- package/dist/esm/node_modules/date-fns/_lib/getRoundingMethod.js +0 -12
- package/dist/esm/node_modules/date-fns/_lib/getTimezoneOffsetInMilliseconds.js +0 -33
- package/dist/esm/node_modules/date-fns/_lib/normalizeDates.js +0 -13
- package/dist/esm/node_modules/date-fns/_lib/normalizeInterval.js +0 -10
- package/dist/esm/node_modules/date-fns/_lib/protectedTokens.js +0 -27
- package/dist/esm/node_modules/date-fns/add.js +0 -70
- package/dist/esm/node_modules/date-fns/addDays.js +0 -43
- package/dist/esm/node_modules/date-fns/addHours.js +0 -36
- package/dist/esm/node_modules/date-fns/addMilliseconds.js +0 -36
- package/dist/esm/node_modules/date-fns/addMinutes.js +0 -38
- package/dist/esm/node_modules/date-fns/addMonths.js +0 -77
- package/dist/esm/node_modules/date-fns/addQuarters.js +0 -35
- package/dist/esm/node_modules/date-fns/addWeeks.js +0 -35
- package/dist/esm/node_modules/date-fns/addYears.js +0 -35
- package/dist/esm/node_modules/date-fns/compareAsc.js +0 -47
- package/dist/esm/node_modules/date-fns/constants.js +0 -62
- package/dist/esm/node_modules/date-fns/constructFrom.js +0 -51
- package/dist/esm/node_modules/date-fns/differenceInCalendarDays.js +0 -64
- package/dist/esm/node_modules/date-fns/differenceInCalendarMonths.js +0 -44
- package/dist/esm/node_modules/date-fns/differenceInCalendarYears.js +0 -40
- package/dist/esm/node_modules/date-fns/differenceInDays.js +0 -109
- package/dist/esm/node_modules/date-fns/differenceInHours.js +0 -43
- package/dist/esm/node_modules/date-fns/differenceInMilliseconds.js +0 -31
- package/dist/esm/node_modules/date-fns/differenceInMinutes.js +0 -47
- package/dist/esm/node_modules/date-fns/differenceInMonths.js +0 -62
- package/dist/esm/node_modules/date-fns/differenceInSeconds.js +0 -38
- package/dist/esm/node_modules/date-fns/differenceInYears.js +0 -64
- package/dist/esm/node_modules/date-fns/endOfDay.js +0 -37
- package/dist/esm/node_modules/date-fns/endOfDecade.js +0 -42
- package/dist/esm/node_modules/date-fns/endOfHour.js +0 -37
- package/dist/esm/node_modules/date-fns/endOfMinute.js +0 -37
- package/dist/esm/node_modules/date-fns/endOfMonth.js +0 -39
- package/dist/esm/node_modules/date-fns/endOfQuarter.js +0 -40
- package/dist/esm/node_modules/date-fns/endOfWeek.js +0 -55
- package/dist/esm/node_modules/date-fns/endOfYear.js +0 -39
- package/dist/esm/node_modules/date-fns/format.js +0 -425
- package/dist/esm/node_modules/date-fns/getDayOfYear.js +0 -36
- package/dist/esm/node_modules/date-fns/getISOWeek.js +0 -42
- package/dist/esm/node_modules/date-fns/getISOWeekYear.js +0 -54
- package/dist/esm/node_modules/date-fns/getWeek.js +0 -56
- package/dist/esm/node_modules/date-fns/getWeekYear.js +0 -77
- package/dist/esm/node_modules/date-fns/intervalToDuration.js +0 -67
- package/dist/esm/node_modules/date-fns/isAfter.js +0 -27
- package/dist/esm/node_modules/date-fns/isBefore.js +0 -27
- package/dist/esm/node_modules/date-fns/isDate.js +0 -43
- package/dist/esm/node_modules/date-fns/isLastDayOfMonth.js +0 -30
- package/dist/esm/node_modules/date-fns/isSameMonth.js +0 -45
- package/dist/esm/node_modules/date-fns/isSameWeek.js +0 -53
- package/dist/esm/node_modules/date-fns/isSameYear.js +0 -37
- package/dist/esm/node_modules/date-fns/isValid.js +0 -41
- package/dist/esm/node_modules/date-fns/locale/_lib/buildFormatLongFn.js +0 -12
- package/dist/esm/node_modules/date-fns/locale/_lib/buildLocalizeFn.js +0 -66
- package/dist/esm/node_modules/date-fns/locale/_lib/buildMatchFn.js +0 -61
- package/dist/esm/node_modules/date-fns/locale/_lib/buildMatchPatternFn.js +0 -24
- package/dist/esm/node_modules/date-fns/locale/ar-SA/_lib/formatDistance.js +0 -139
- package/dist/esm/node_modules/date-fns/locale/ar-SA/_lib/formatLong.js +0 -43
- package/dist/esm/node_modules/date-fns/locale/ar-SA/_lib/formatRelative.js +0 -15
- package/dist/esm/node_modules/date-fns/locale/ar-SA/_lib/localize.js +0 -166
- package/dist/esm/node_modules/date-fns/locale/ar-SA/_lib/match.js +0 -146
- package/dist/esm/node_modules/date-fns/locale/ar-SA.js +0 -29
- package/dist/esm/node_modules/date-fns/locale/de/_lib/formatDistance.js +0 -200
- package/dist/esm/node_modules/date-fns/locale/de/_lib/formatLong.js +0 -44
- package/dist/esm/node_modules/date-fns/locale/de/_lib/formatRelative.js +0 -15
- package/dist/esm/node_modules/date-fns/locale/de/_lib/localize.js +0 -195
- package/dist/esm/node_modules/date-fns/locale/de/_lib/match.js +0 -138
- package/dist/esm/node_modules/date-fns/locale/de.js +0 -33
- package/dist/esm/node_modules/date-fns/locale/en-US/_lib/formatDistance.js +0 -105
- package/dist/esm/node_modules/date-fns/locale/en-US/_lib/formatLong.js +0 -43
- package/dist/esm/node_modules/date-fns/locale/en-US/_lib/formatRelative.js +0 -15
- package/dist/esm/node_modules/date-fns/locale/en-US/_lib/localize.js +0 -191
- package/dist/esm/node_modules/date-fns/locale/en-US/_lib/match.js +0 -136
- package/dist/esm/node_modules/date-fns/locale/en-US.js +0 -30
- package/dist/esm/node_modules/date-fns/locale/es/_lib/formatDistance.js +0 -105
- package/dist/esm/node_modules/date-fns/locale/es/_lib/formatLong.js +0 -43
- package/dist/esm/node_modules/date-fns/locale/es/_lib/formatRelative.js +0 -29
- package/dist/esm/node_modules/date-fns/locale/es/_lib/localize.js +0 -168
- package/dist/esm/node_modules/date-fns/locale/es/_lib/match.js +0 -142
- package/dist/esm/node_modules/date-fns/locale/es.js +0 -33
- package/dist/esm/node_modules/date-fns/locale/fr/_lib/formatDistance.js +0 -104
- package/dist/esm/node_modules/date-fns/locale/fr/_lib/formatLong.js +0 -43
- package/dist/esm/node_modules/date-fns/locale/fr/_lib/formatRelative.js +0 -15
- package/dist/esm/node_modules/date-fns/locale/fr/_lib/localize.js +0 -169
- package/dist/esm/node_modules/date-fns/locale/fr/_lib/match.js +0 -137
- package/dist/esm/node_modules/date-fns/locale/fr.js +0 -30
- package/dist/esm/node_modules/date-fns/locale/hi/_lib/formatDistance.js +0 -109
- package/dist/esm/node_modules/date-fns/locale/hi/_lib/formatLong.js +0 -43
- package/dist/esm/node_modules/date-fns/locale/hi/_lib/formatRelative.js +0 -15
- package/dist/esm/node_modules/date-fns/locale/hi/_lib/localize.js +0 -231
- package/dist/esm/node_modules/date-fns/locale/hi/_lib/match.js +0 -141
- package/dist/esm/node_modules/date-fns/locale/hi.js +0 -29
- package/dist/esm/node_modules/date-fns/locale/it/_lib/formatDistance.js +0 -105
- package/dist/esm/node_modules/date-fns/locale/it/_lib/formatLong.js +0 -43
- package/dist/esm/node_modules/date-fns/locale/it/_lib/formatRelative.js +0 -70
- package/dist/esm/node_modules/date-fns/locale/it/_lib/localize.js +0 -168
- package/dist/esm/node_modules/date-fns/locale/it/_lib/match.js +0 -137
- package/dist/esm/node_modules/date-fns/locale/it.js +0 -31
- package/dist/esm/node_modules/date-fns/locale/ja/_lib/formatDistance.js +0 -119
- package/dist/esm/node_modules/date-fns/locale/ja/_lib/formatLong.js +0 -43
- package/dist/esm/node_modules/date-fns/locale/ja/_lib/formatRelative.js +0 -16
- package/dist/esm/node_modules/date-fns/locale/ja/_lib/localize.js +0 -181
- package/dist/esm/node_modules/date-fns/locale/ja/_lib/match.js +0 -122
- package/dist/esm/node_modules/date-fns/locale/ja.js +0 -33
- package/dist/esm/node_modules/date-fns/locale/ko/_lib/formatDistance.js +0 -105
- package/dist/esm/node_modules/date-fns/locale/ko/_lib/formatLong.js +0 -43
- package/dist/esm/node_modules/date-fns/locale/ko/_lib/formatRelative.js +0 -15
- package/dist/esm/node_modules/date-fns/locale/ko/_lib/localize.js +0 -171
- package/dist/esm/node_modules/date-fns/locale/ko/_lib/match.js +0 -119
- package/dist/esm/node_modules/date-fns/locale/ko.js +0 -31
- package/dist/esm/node_modules/date-fns/locale/pt/_lib/formatDistance.js +0 -105
- package/dist/esm/node_modules/date-fns/locale/pt/_lib/formatLong.js +0 -43
- package/dist/esm/node_modules/date-fns/locale/pt/_lib/formatRelative.js +0 -26
- package/dist/esm/node_modules/date-fns/locale/pt/_lib/localize.js +0 -168
- package/dist/esm/node_modules/date-fns/locale/pt/_lib/match.js +0 -141
- package/dist/esm/node_modules/date-fns/locale/pt.js +0 -30
- package/dist/esm/node_modules/date-fns/locale/ru/_lib/formatDistance.js +0 -250
- package/dist/esm/node_modules/date-fns/locale/ru/_lib/formatLong.js +0 -40
- package/dist/esm/node_modules/date-fns/locale/ru/_lib/formatRelative.js +0 -92
- package/dist/esm/node_modules/date-fns/locale/ru/_lib/localize.js +0 -214
- package/dist/esm/node_modules/date-fns/locale/ru/_lib/match.js +0 -142
- package/dist/esm/node_modules/date-fns/locale/ru.js +0 -30
- package/dist/esm/node_modules/date-fns/locale/zh-CN/_lib/formatDistance.js +0 -105
- package/dist/esm/node_modules/date-fns/locale/zh-CN/_lib/formatLong.js +0 -43
- package/dist/esm/node_modules/date-fns/locale/zh-CN/_lib/formatRelative.js +0 -35
- package/dist/esm/node_modules/date-fns/locale/zh-CN/_lib/localize.js +0 -187
- package/dist/esm/node_modules/date-fns/locale/zh-CN/_lib/match.js +0 -134
- package/dist/esm/node_modules/date-fns/locale/zh-CN.js +0 -33
- package/dist/esm/node_modules/date-fns/startOfDay.js +0 -37
- package/dist/esm/node_modules/date-fns/startOfDecade.js +0 -42
- package/dist/esm/node_modules/date-fns/startOfHour.js +0 -37
- package/dist/esm/node_modules/date-fns/startOfISOWeek.js +0 -37
- package/dist/esm/node_modules/date-fns/startOfISOWeekYear.js +0 -44
- package/dist/esm/node_modules/date-fns/startOfMinute.js +0 -37
- package/dist/esm/node_modules/date-fns/startOfMonth.js +0 -39
- package/dist/esm/node_modules/date-fns/startOfQuarter.js +0 -40
- package/dist/esm/node_modules/date-fns/startOfWeek.js +0 -55
- package/dist/esm/node_modules/date-fns/startOfWeekYear.js +0 -66
- package/dist/esm/node_modules/date-fns/startOfYear.js +0 -38
- package/dist/esm/node_modules/date-fns/toDate.js +0 -48
- package/dist/esm/packages/date/dist/esm/display/DateDuration.js +0 -178
- package/dist/esm/packages/date/dist/esm/hijri/DateConverter.js +0 -152
- package/dist/esm/packages/date/dist/esm/hijri/FormatDate.js +0 -113
- package/dist/esm/packages/date/dist/esm/hijri/HijriDate.js +0 -528
- package/dist/esm/packages/date/dist/esm/hijri/StringDateParser.js +0 -74
- package/dist/esm/packages/date/dist/esm/hijri/index.js +0 -21
- package/dist/esm/packages/date/dist/esm/hijri/initializer.js +0 -113
- package/dist/esm/packages/date/dist/esm/hijri/locales.js +0 -18
- package/dist/esm/packages/date/dist/esm/hijri/safe.js +0 -14
- package/dist/esm/packages/date/dist/esm/i18n/ar/date.json.js +0 -209
- package/dist/esm/packages/date/dist/esm/i18n/en/date.json.js +0 -79
- package/dist/esm/packages/date/dist/esm/i18n/index.js +0 -33
- package/dist/esm/packages/date/dist/esm/types/index.js +0 -45
- package/dist/esm/packages/date/dist/esm/utils/dateUtil.js +0 -474
- /package/dist/cjs/{packages/lexical/src/editor → editor}/theme.js +0 -0
- /package/dist/cjs/{packages/lexical/src/i18n → i18n}/ar/lexical.json.js +0 -0
- /package/dist/cjs/{packages/lexical/src/i18n → i18n}/en/lexical.json.js +0 -0
- /package/dist/cjs/{packages/lexical/src/i18n → i18n}/index.js +0 -0
- /package/dist/cjs/{packages/lexical/src/index.js → index.js} +0 -0
- /package/dist/cjs/{packages/lexical/src/plugins → plugins}/ToolbarPlugin.js +0 -0
- /package/dist/cjs/{packages/lexical/src/utils → utils}/index.js +0 -0
- /package/dist/esm/{packages/lexical/src/editor → editor}/theme.js +0 -0
- /package/dist/esm/{packages/lexical/src/i18n → i18n}/ar/lexical.json.js +0 -0
- /package/dist/esm/{packages/lexical/src/i18n → i18n}/en/lexical.json.js +0 -0
- /package/dist/esm/{packages/lexical/src/i18n → i18n}/index.js +0 -0
- /package/dist/esm/{packages/lexical/src/index.js → index.js} +0 -0
- /package/dist/esm/{packages/lexical/src/plugins → plugins}/ToolbarPlugin.js +0 -0
- /package/dist/esm/{packages/lexical/src/utils → utils}/index.js +0 -0
|
@@ -1,200 +0,0 @@
|
|
|
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;
|
|
@@ -1,44 +0,0 @@
|
|
|
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;
|
|
@@ -1,15 +0,0 @@
|
|
|
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;
|
|
@@ -1,195 +0,0 @@
|
|
|
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;
|
|
@@ -1,138 +0,0 @@
|
|
|
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;
|
|
@@ -1,36 +0,0 @@
|
|
|
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;
|