naive-ui 2.21.4 → 2.21.5

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.
Files changed (72) hide show
  1. package/es/calendar/src/Calendar.d.ts +4 -0
  2. package/es/config-provider/src/ConfigProvider.d.ts +12 -0
  3. package/es/date-picker/src/DatePicker.d.ts +5 -4
  4. package/es/date-picker/src/DatePicker.js +16 -2
  5. package/es/date-picker/src/config.d.ts +1 -9
  6. package/es/date-picker/src/config.js +0 -8
  7. package/es/date-picker/src/panel/date.d.ts +4 -0
  8. package/es/date-picker/src/panel/daterange.d.ts +4 -0
  9. package/es/date-picker/src/panel/datetime.d.ts +4 -0
  10. package/es/date-picker/src/panel/datetimerange.d.ts +4 -0
  11. package/es/date-picker/src/panel/month.d.ts +4 -0
  12. package/es/date-picker/src/panel/use-calendar.d.ts +4 -0
  13. package/es/date-picker/src/panel/use-dual-calendar.d.ts +4 -0
  14. package/es/date-picker/src/panel/use-panel-common.d.ts +4 -0
  15. package/es/input/src/Input.js +2 -0
  16. package/es/input-number/src/InputNumber.js +2 -0
  17. package/es/locales/common/deDE.js +4 -0
  18. package/es/locales/common/enUS.d.ts +4 -0
  19. package/es/locales/common/enUS.js +5 -1
  20. package/es/locales/common/frFR.d.ts +3 -0
  21. package/es/locales/common/frFR.js +98 -0
  22. package/es/locales/common/idID.d.ts +2 -94
  23. package/es/locales/common/idID.js +4 -0
  24. package/es/locales/common/jaJP.js +4 -0
  25. package/es/locales/common/nbNO.js +4 -0
  26. package/es/locales/common/ruRU.js +4 -0
  27. package/es/locales/common/ukUA.js +4 -0
  28. package/es/locales/common/zhCN.js +4 -0
  29. package/es/locales/date/frFR.d.ts +3 -0
  30. package/es/locales/date/frFR.js +6 -0
  31. package/es/locales/date/idID.d.ts +1 -6
  32. package/es/locales/index.d.ts +2 -0
  33. package/es/locales/index.js +2 -0
  34. package/es/version.d.ts +1 -1
  35. package/es/version.js +1 -1
  36. package/lib/calendar/src/Calendar.d.ts +4 -0
  37. package/lib/config-provider/src/ConfigProvider.d.ts +12 -0
  38. package/lib/date-picker/src/DatePicker.d.ts +5 -4
  39. package/lib/date-picker/src/DatePicker.js +15 -1
  40. package/lib/date-picker/src/config.d.ts +1 -9
  41. package/lib/date-picker/src/config.js +1 -9
  42. package/lib/date-picker/src/panel/date.d.ts +4 -0
  43. package/lib/date-picker/src/panel/daterange.d.ts +4 -0
  44. package/lib/date-picker/src/panel/datetime.d.ts +4 -0
  45. package/lib/date-picker/src/panel/datetimerange.d.ts +4 -0
  46. package/lib/date-picker/src/panel/month.d.ts +4 -0
  47. package/lib/date-picker/src/panel/use-calendar.d.ts +4 -0
  48. package/lib/date-picker/src/panel/use-dual-calendar.d.ts +4 -0
  49. package/lib/date-picker/src/panel/use-panel-common.d.ts +4 -0
  50. package/lib/input/src/Input.js +2 -0
  51. package/lib/input-number/src/InputNumber.js +2 -0
  52. package/lib/locales/common/deDE.js +4 -0
  53. package/lib/locales/common/enUS.d.ts +4 -0
  54. package/lib/locales/common/enUS.js +5 -1
  55. package/lib/locales/common/frFR.d.ts +3 -0
  56. package/lib/locales/common/frFR.js +100 -0
  57. package/lib/locales/common/idID.d.ts +2 -94
  58. package/lib/locales/common/idID.js +4 -0
  59. package/lib/locales/common/jaJP.js +4 -0
  60. package/lib/locales/common/nbNO.js +4 -0
  61. package/lib/locales/common/ruRU.js +4 -0
  62. package/lib/locales/common/ukUA.js +4 -0
  63. package/lib/locales/common/zhCN.js +4 -0
  64. package/lib/locales/date/frFR.d.ts +3 -0
  65. package/lib/locales/date/frFR.js +11 -0
  66. package/lib/locales/date/idID.d.ts +1 -6
  67. package/lib/locales/index.d.ts +2 -0
  68. package/lib/locales/index.js +5 -1
  69. package/lib/version.d.ts +1 -1
  70. package/lib/version.js +1 -1
  71. package/package.json +1 -1
  72. package/web-types.json +1 -1
@@ -1389,6 +1389,10 @@ declare const _default: import("vue").DefineComponent<{
1389
1389
  yearFormat: string;
1390
1390
  monthFormat: string;
1391
1391
  dayFormat: string;
1392
+ yearTypeFormat: string;
1393
+ monthTypeFormat: string;
1394
+ dateFormat: string;
1395
+ dateTimeFormat: string;
1392
1396
  clear: string;
1393
1397
  now: string;
1394
1398
  confirm: string;
@@ -36,6 +36,10 @@ export declare const configProviderProps: {
36
36
  yearFormat: string;
37
37
  monthFormat: string;
38
38
  dayFormat: string;
39
+ yearTypeFormat: string;
40
+ monthTypeFormat: string;
41
+ dateFormat: string;
42
+ dateTimeFormat: string;
39
43
  clear: string;
40
44
  now: string;
41
45
  confirm: string;
@@ -156,6 +160,10 @@ declare const _default: import("vue").DefineComponent<{
156
160
  yearFormat: string;
157
161
  monthFormat: string;
158
162
  dayFormat: string;
163
+ yearTypeFormat: string;
164
+ monthTypeFormat: string;
165
+ dateFormat: string;
166
+ dateTimeFormat: string;
159
167
  clear: string;
160
168
  now: string;
161
169
  confirm: string;
@@ -300,6 +308,10 @@ declare const _default: import("vue").DefineComponent<{
300
308
  yearFormat: string;
301
309
  monthFormat: string;
302
310
  dayFormat: string;
311
+ yearTypeFormat: string;
312
+ monthTypeFormat: string;
313
+ dateFormat: string;
314
+ dateTimeFormat: string;
303
315
  clear: string;
304
316
  now: string;
305
317
  confirm: string;
@@ -1,6 +1,7 @@
1
1
  import { PropType, ExtractPropTypes, Ref } from 'vue';
2
2
  import { FollowerPlacement } from 'vueuc';
3
3
  import type { MaybeArray, ExtractPublicPropTypes } from '../../_utils';
4
+ import { DatePickerType } from './config';
4
5
  import type { OnUpdateValue, Value, IsDateDisabled, IsTimeDisabled, Shortcuts, FirstDayOfWeek } from './interface';
5
6
  declare const datePickerProps: {
6
7
  readonly to: {
@@ -28,7 +29,7 @@ declare const datePickerProps: {
28
29
  readonly value: PropType<Value | null>;
29
30
  readonly size: PropType<"small" | "medium" | "large">;
30
31
  readonly type: {
31
- readonly type: PropType<"date" | "datetime" | "month" | "year" | "daterange" | "datetimerange">;
32
+ readonly type: PropType<DatePickerType>;
32
33
  readonly default: "date";
33
34
  };
34
35
  readonly separator: StringConstructor;
@@ -1917,7 +1918,7 @@ declare const _default: import("vue").DefineComponent<{
1917
1918
  readonly value: PropType<Value | null>;
1918
1919
  readonly size: PropType<"small" | "medium" | "large">;
1919
1920
  readonly type: {
1920
- readonly type: PropType<"date" | "datetime" | "month" | "year" | "daterange" | "datetimerange">;
1921
+ readonly type: PropType<DatePickerType>;
1921
1922
  readonly default: "date";
1922
1923
  };
1923
1924
  readonly separator: StringConstructor;
@@ -4931,7 +4932,7 @@ declare const _default: import("vue").DefineComponent<{
4931
4932
  readonly themeOverrides?: unknown;
4932
4933
  readonly builtinThemeOverrides?: unknown;
4933
4934
  } & {
4934
- type: "date" | "datetime" | "month" | "year" | "daterange" | "datetimerange";
4935
+ type: DatePickerType;
4935
4936
  placement: FollowerPlacement;
4936
4937
  clearable: boolean;
4937
4938
  defaultValue: Value | null;
@@ -6793,7 +6794,7 @@ declare const _default: import("vue").DefineComponent<{
6793
6794
  isTimeDisabled?: IsTimeDisabled | undefined;
6794
6795
  ranges?: Record<string, [number, number]> | undefined;
6795
6796
  }>, {
6796
- type: "date" | "datetime" | "month" | "year" | "daterange" | "datetimerange";
6797
+ type: DatePickerType;
6797
6798
  show: boolean | undefined;
6798
6799
  disabled: boolean | undefined;
6799
6800
  onChange: MaybeArray<OnUpdateValue>;
@@ -12,7 +12,7 @@ import { warn, call, useAdjustedTo, createKey } from '../../_utils';
12
12
  import { datePickerLight } from '../styles';
13
13
  import { strictParse } from './utils';
14
14
  import { uniCalendarValidation, dualCalendarValidation } from './validation-utils';
15
- import { MONTH_ITEM_HEIGHT, START_YEAR, DATE_FORMAT } from './config';
15
+ import { MONTH_ITEM_HEIGHT, START_YEAR } from './config';
16
16
  import { datePickerInjectionKey } from './interface';
17
17
  import DatetimePanel from './panel/datetime';
18
18
  import DatetimerangePanel from './panel/datetimerange';
@@ -138,7 +138,21 @@ export default defineComponent({
138
138
  }
139
139
  });
140
140
  const mergedFormatRef = computed(() => {
141
- return props.format || DATE_FORMAT[props.type];
141
+ const { format } = props;
142
+ if (format)
143
+ return format;
144
+ switch (props.type) {
145
+ case 'date':
146
+ case 'daterange':
147
+ return localeRef.value.dateFormat;
148
+ case 'datetime':
149
+ case 'datetimerange':
150
+ return localeRef.value.dateTimeFormat;
151
+ case 'year':
152
+ return localeRef.value.yearTypeFormat;
153
+ case 'month':
154
+ return localeRef.value.monthTypeFormat;
155
+ }
142
156
  });
143
157
  const mergedActionsRef = computed(() => {
144
158
  const { actions, type } = props;
@@ -1,11 +1,3 @@
1
1
  export declare const START_YEAR = 1901;
2
2
  export declare const MONTH_ITEM_HEIGHT = 40;
3
- export declare const DATE_FORMAT: {
4
- date: string;
5
- datetime: string;
6
- daterange: string;
7
- datetimerange: string;
8
- month: string;
9
- year: string;
10
- };
11
- export declare type DatePickerType = keyof typeof DATE_FORMAT;
3
+ export declare type DatePickerType = 'date' | 'datetime' | 'daterange' | 'datetimerange' | 'month' | 'year';
@@ -1,11 +1,3 @@
1
1
  export const START_YEAR = 1901;
2
2
  // TODO: we need to remove it to make height customizable
3
3
  export const MONTH_ITEM_HEIGHT = 40;
4
- export const DATE_FORMAT = {
5
- date: 'yyyy-MM-dd',
6
- datetime: 'yyyy-MM-dd HH:mm:ss',
7
- daterange: 'yyyy-MM-dd',
8
- datetimerange: 'yyyy-MM-dd HH:mm:ss',
9
- month: 'yyyy-MM',
10
- year: 'yyyy'
11
- };
@@ -1070,6 +1070,10 @@ declare const _default: import("vue").DefineComponent<{
1070
1070
  yearFormat: string;
1071
1071
  monthFormat: string;
1072
1072
  dayFormat: string;
1073
+ yearTypeFormat: string;
1074
+ monthTypeFormat: string;
1075
+ dateFormat: string;
1076
+ dateTimeFormat: string;
1073
1077
  clear: string;
1074
1078
  now: string;
1075
1079
  confirm: string;
@@ -1068,6 +1068,10 @@ declare const _default: import("vue").DefineComponent<{
1068
1068
  yearFormat: string;
1069
1069
  monthFormat: string;
1070
1070
  dayFormat: string;
1071
+ yearTypeFormat: string;
1072
+ monthTypeFormat: string;
1073
+ dateFormat: string;
1074
+ dateTimeFormat: string;
1071
1075
  clear: string;
1072
1076
  now: string;
1073
1077
  confirm: string;
@@ -1076,6 +1076,10 @@ declare const _default: import("vue").DefineComponent<{
1076
1076
  yearFormat: string;
1077
1077
  monthFormat: string;
1078
1078
  dayFormat: string;
1079
+ yearTypeFormat: string;
1080
+ monthTypeFormat: string;
1081
+ dateFormat: string;
1082
+ dateTimeFormat: string;
1079
1083
  clear: string;
1080
1084
  now: string;
1081
1085
  confirm: string;
@@ -1068,6 +1068,10 @@ declare const _default: import("vue").DefineComponent<{
1068
1068
  yearFormat: string;
1069
1069
  monthFormat: string;
1070
1070
  dayFormat: string;
1071
+ yearTypeFormat: string;
1072
+ monthTypeFormat: string;
1073
+ dateFormat: string;
1074
+ dateTimeFormat: string;
1071
1075
  clear: string;
1072
1076
  now: string;
1073
1077
  confirm: string;
@@ -1083,6 +1083,10 @@ declare const _default: import("vue").DefineComponent<{
1083
1083
  yearFormat: string;
1084
1084
  monthFormat: string;
1085
1085
  dayFormat: string;
1086
+ yearTypeFormat: string;
1087
+ monthTypeFormat: string;
1088
+ dateFormat: string;
1089
+ dateTimeFormat: string;
1086
1090
  clear: string;
1087
1091
  now: string;
1088
1092
  confirm: string;
@@ -1074,6 +1074,10 @@ declare function useCalendar(props: ExtractPropTypes<typeof useCalendarProps>, t
1074
1074
  yearFormat: string;
1075
1075
  monthFormat: string;
1076
1076
  dayFormat: string;
1077
+ yearTypeFormat: string;
1078
+ monthTypeFormat: string;
1079
+ dateFormat: string;
1080
+ dateTimeFormat: string;
1077
1081
  clear: string;
1078
1082
  now: string;
1079
1083
  confirm: string;
@@ -1072,6 +1072,10 @@ declare function useDualCalendar(props: ExtractPropTypes<typeof useDualCalendarP
1072
1072
  yearFormat: string;
1073
1073
  monthFormat: string;
1074
1074
  dayFormat: string;
1075
+ yearTypeFormat: string;
1076
+ monthTypeFormat: string;
1077
+ dateFormat: string;
1078
+ dateTimeFormat: string;
1075
1079
  clear: string;
1076
1080
  now: string;
1077
1081
  confirm: string;
@@ -1039,6 +1039,10 @@ declare function usePanelCommon(props: UsePanelCommonProps): {
1039
1039
  yearFormat: string;
1040
1040
  monthFormat: string;
1041
1041
  dayFormat: string;
1042
+ yearTypeFormat: string;
1043
+ monthTypeFormat: string;
1044
+ dateFormat: string;
1045
+ dateTimeFormat: string;
1042
1046
  clear: string;
1043
1047
  now: string;
1044
1048
  confirm: string;
@@ -390,9 +390,11 @@ export default defineComponent({
390
390
  doClear(e);
391
391
  if (props.pair) {
392
392
  doUpdateValue(['', '']);
393
+ doChange(['', '']);
393
394
  }
394
395
  else {
395
396
  doUpdateValue('');
397
+ doChange('');
396
398
  }
397
399
  }
398
400
  function handleMouseDown(e) {
@@ -309,6 +309,7 @@ export default defineComponent({
309
309
  else if (e.code === 'ArrowUp') {
310
310
  if (props.keyboard.ArrowUp === false)
311
311
  return;
312
+ e.preventDefault();
312
313
  const value = deriveValueFromDisplayedValue();
313
314
  if (value !== false) {
314
315
  doAdd();
@@ -317,6 +318,7 @@ export default defineComponent({
317
318
  else if (e.code === 'ArrowDown') {
318
319
  if (props.keyboard.ArrowDown === false)
319
320
  return;
321
+ e.preventDefault();
320
322
  const value = deriveValueFromDisplayedValue();
321
323
  if (value !== false) {
322
324
  doMinus();
@@ -22,6 +22,10 @@ const deDE = {
22
22
  yearFormat: 'yyyy',
23
23
  monthFormat: 'MMM',
24
24
  dayFormat: 'eeeeee',
25
+ yearTypeFormat: 'yyyy',
26
+ monthTypeFormat: 'MM-yyyy',
27
+ dateFormat: 'dd-MM-yyyy',
28
+ dateTimeFormat: 'dd-MM-yyyy HH:mm:ss',
25
29
  clear: 'Löschen',
26
30
  now: 'Jetzt',
27
31
  confirm: 'Bestätigen',
@@ -22,6 +22,10 @@ declare const enUS: {
22
22
  yearFormat: string;
23
23
  monthFormat: string;
24
24
  dayFormat: string;
25
+ yearTypeFormat: string;
26
+ monthTypeFormat: string;
27
+ dateFormat: string;
28
+ dateTimeFormat: string;
25
29
  clear: string;
26
30
  now: string;
27
31
  confirm: string;
@@ -12,7 +12,7 @@ const enUS = {
12
12
  Cascader: {
13
13
  placeholder: 'Please Select',
14
14
  loading: 'Loading',
15
- loadingRequiredMessage: (label) => `Please load all ${label}'s descedants before checking it.`
15
+ loadingRequiredMessage: (label) => `Please load all ${label}'s descendants before checking it.`
16
16
  },
17
17
  Time: {
18
18
  dateFormat: 'yyyy-MM-dd',
@@ -22,6 +22,10 @@ const enUS = {
22
22
  yearFormat: 'yyyy',
23
23
  monthFormat: 'MMM',
24
24
  dayFormat: 'eeeeee',
25
+ yearTypeFormat: 'yyyy',
26
+ monthTypeFormat: 'yyyy-MM',
27
+ dateFormat: 'yyyy-MM-dd',
28
+ dateTimeFormat: 'yyyy-MM-dd HH:mm:ss',
25
29
  clear: 'Clear',
26
30
  now: 'Now',
27
31
  confirm: 'Confirm',
@@ -0,0 +1,3 @@
1
+ import type { NLocale } from './enUS';
2
+ declare const frFR: NLocale;
3
+ export default frFR;
@@ -0,0 +1,98 @@
1
+ const frFR = {
2
+ name: 'fr-FR',
3
+ global: {
4
+ undo: 'Défaire',
5
+ redo: 'Refaire',
6
+ confirm: 'Confirmer'
7
+ },
8
+ Popconfirm: {
9
+ positiveText: 'Confirmer',
10
+ negativeText: 'Annuler'
11
+ },
12
+ Cascader: {
13
+ placeholder: 'Sélectionner',
14
+ loading: 'Chargement',
15
+ loadingRequiredMessage: (label) => `Charger tous les enfants de ${label} avant de le sélectionner`
16
+ },
17
+ Time: {
18
+ dateFormat: 'dd-MM-yyyy',
19
+ dateTimeFormat: 'dd-MM-yyyy HH:mm:ss'
20
+ },
21
+ DatePicker: {
22
+ yearFormat: 'yyyy',
23
+ monthFormat: 'MMM',
24
+ dayFormat: 'eeeeee',
25
+ yearTypeFormat: 'yyyy',
26
+ monthTypeFormat: 'MM-yyyy',
27
+ dateFormat: 'dd-MM-yyyy',
28
+ dateTimeFormat: 'dd-MM-yyyy HH:mm:ss',
29
+ clear: 'Effacer',
30
+ now: 'Maintenant',
31
+ confirm: 'Confirmer',
32
+ selectTime: "Sélectionner l'heure",
33
+ selectDate: 'Sélectionner la date',
34
+ datePlaceholder: 'Sélectionner la date',
35
+ datetimePlaceholder: "Sélectionner la date et l'heure",
36
+ monthPlaceholder: 'Sélectionner le mois',
37
+ yearPlaceholder: "Sélectionner l'année",
38
+ startDatePlaceholder: 'Date de début',
39
+ endDatePlaceholder: 'Date de fin',
40
+ startDatetimePlaceholder: 'Date et heure de début',
41
+ endDatetimePlaceholder: 'Date et heure de fin',
42
+ monthBeforeYear: true,
43
+ firstDayOfWeek: 1,
44
+ today: "Aujourd'hui"
45
+ },
46
+ DataTable: {
47
+ checkTableAll: 'Sélectionner tout',
48
+ uncheckTableAll: 'Désélectionner tout',
49
+ confirm: 'Confirmer',
50
+ clear: 'Effacer'
51
+ },
52
+ Transfer: {
53
+ sourceTitle: 'Source',
54
+ targetTitle: 'Cible'
55
+ },
56
+ Empty: {
57
+ description: 'Aucune donnée'
58
+ },
59
+ Select: {
60
+ placeholder: 'Sélectionner'
61
+ },
62
+ TimePicker: {
63
+ placeholder: "Sélectionner l'heure",
64
+ positiveText: 'OK',
65
+ negativeText: 'Annuler',
66
+ now: 'Maintenant'
67
+ },
68
+ Pagination: {
69
+ goto: 'Aller à',
70
+ selectionSuffix: 'page'
71
+ },
72
+ DynamicTags: {
73
+ add: 'Ajouter'
74
+ },
75
+ Log: {
76
+ loading: 'Chargement'
77
+ },
78
+ Input: {
79
+ placeholder: 'Saisir'
80
+ },
81
+ InputNumber: {
82
+ placeholder: 'Saisir'
83
+ },
84
+ DynamicInput: {
85
+ create: 'Créer'
86
+ },
87
+ ThemeEditor: {
88
+ title: 'Editeur de thème',
89
+ clearAllVars: 'Effacer toutes les variables',
90
+ clearSearch: 'Effacer la recherche',
91
+ filterCompName: 'Filtrer par nom de composant',
92
+ filterVarName: 'Filtrer par nom de variable',
93
+ import: 'Importer',
94
+ export: 'Exporter',
95
+ restore: 'Réinitialiser'
96
+ }
97
+ };
98
+ export default frFR;
@@ -1,95 +1,3 @@
1
- declare const idID: {
2
- name: string;
3
- global: {
4
- undo: string;
5
- redo: string;
6
- confirm: string;
7
- };
8
- Popconfirm: {
9
- positiveText: string;
10
- negativeText: string;
11
- };
12
- Cascader: {
13
- placeholder: string;
14
- loading: string;
15
- loadingRequiredMessage: (label: string) => string;
16
- };
17
- Time: {
18
- dateFormat: string;
19
- dateTimeFormat: string;
20
- };
21
- DatePicker: {
22
- yearFormat: string;
23
- monthFormat: string;
24
- dayFormat: string;
25
- clear: string;
26
- now: string;
27
- confirm: string;
28
- selectTime: string;
29
- selectDate: string;
30
- datePlaceholder: string;
31
- datetimePlaceholder: string;
32
- monthPlaceholder: string;
33
- yearPlaceholder: string;
34
- startDatePlaceholder: string;
35
- endDatePlaceholder: string;
36
- startDatetimePlaceholder: string;
37
- endDatetimePlaceholder: string;
38
- monthBeforeYear: boolean;
39
- firstDayOfWeek: 0 | 2 | 1 | 3 | 4 | 5 | 6;
40
- today: string;
41
- };
42
- DataTable: {
43
- checkTableAll: string;
44
- uncheckTableAll: string;
45
- confirm: string;
46
- clear: string;
47
- };
48
- Transfer: {
49
- sourceTitle: string;
50
- targetTitle: string;
51
- };
52
- Empty: {
53
- description: string;
54
- };
55
- Select: {
56
- placeholder: string;
57
- };
58
- TimePicker: {
59
- placeholder: string;
60
- positiveText: string;
61
- negativeText: string;
62
- now: string;
63
- };
64
- Pagination: {
65
- goto: string;
66
- selectionSuffix: string;
67
- };
68
- DynamicTags: {
69
- add: string;
70
- };
71
- Log: {
72
- loading: string;
73
- };
74
- Input: {
75
- placeholder: string;
76
- };
77
- InputNumber: {
78
- placeholder: string;
79
- };
80
- DynamicInput: {
81
- create: string;
82
- };
83
- ThemeEditor: {
84
- title: string;
85
- clearAllVars: string;
86
- clearSearch: string;
87
- filterCompName: string;
88
- filterVarName: string;
89
- import: string;
90
- export: string;
91
- restore: string;
92
- };
93
- };
94
- export declare type NLocale = typeof idID;
1
+ import type { NLocale } from './enUS';
2
+ declare const idID: NLocale;
95
3
  export default idID;
@@ -22,6 +22,10 @@ const idID = {
22
22
  yearFormat: 'yyyy',
23
23
  monthFormat: 'MMM',
24
24
  dayFormat: 'eeeeee',
25
+ yearTypeFormat: 'yyyy',
26
+ monthTypeFormat: 'MM-yyyy',
27
+ dateFormat: 'dd-MM-yyyy',
28
+ dateTimeFormat: 'dd-MM-yyyy HH:mm:ss',
25
29
  clear: 'Bersihkan',
26
30
  now: 'Sekarang',
27
31
  confirm: 'Setuju',
@@ -22,6 +22,10 @@ const jaJP = {
22
22
  yearFormat: 'yyyy年',
23
23
  monthFormat: 'MMM',
24
24
  dayFormat: 'eeeeee',
25
+ yearTypeFormat: 'yyyy',
26
+ monthTypeFormat: 'yyyy-MM',
27
+ dateFormat: 'yyyy-MM-dd',
28
+ dateTimeFormat: 'yyyy-MM-dd HH:mm:ss',
25
29
  clear: 'クリア',
26
30
  now: '現在',
27
31
  confirm: 'OK',
@@ -22,6 +22,10 @@ const nbNO = {
22
22
  yearFormat: 'yyyy',
23
23
  monthFormat: 'MMM',
24
24
  dayFormat: 'eeeeee',
25
+ yearTypeFormat: 'yyyy',
26
+ monthTypeFormat: 'MM.yyyy',
27
+ dateFormat: 'dd.MM.yyyy',
28
+ dateTimeFormat: 'dd.MM.yyyy HH:mm:ss',
25
29
  clear: 'Tøm',
26
30
  now: 'Nå',
27
31
  confirm: 'Bekreft',
@@ -22,6 +22,10 @@ const ruRu = {
22
22
  yearFormat: 'yyyy',
23
23
  monthFormat: 'MMM',
24
24
  dayFormat: 'eeeeee',
25
+ yearTypeFormat: 'yyyy',
26
+ monthTypeFormat: 'yyyy-MM',
27
+ dateFormat: 'yyyy-MM-dd',
28
+ dateTimeFormat: 'yyyy-MM-dd HH:mm:ss',
25
29
  clear: 'Очистить',
26
30
  now: 'Сейчас',
27
31
  confirm: 'Подтвердить',
@@ -22,6 +22,10 @@ const ukUA = {
22
22
  yearFormat: 'yyyy',
23
23
  monthFormat: 'MMM',
24
24
  dayFormat: 'eeeeee',
25
+ yearTypeFormat: 'yyyy',
26
+ monthTypeFormat: 'yyyy-MM',
27
+ dateFormat: 'yyyy-MM-dd',
28
+ dateTimeFormat: 'yyyy-MM-dd HH:mm:ss',
25
29
  clear: 'Стерти',
26
30
  now: 'Зараз',
27
31
  confirm: 'Підтвердити',
@@ -22,6 +22,10 @@ const zhCN = {
22
22
  yearFormat: 'yyyy年',
23
23
  monthFormat: 'MMM',
24
24
  dayFormat: 'eeeeee',
25
+ yearTypeFormat: 'yyyy',
26
+ monthTypeFormat: 'yyyy-MM',
27
+ dateFormat: 'yyyy-MM-dd',
28
+ dateTimeFormat: 'yyyy-MM-dd HH:mm:ss',
25
29
  clear: '清除',
26
30
  now: '此刻',
27
31
  confirm: '确认',
@@ -0,0 +1,3 @@
1
+ import { NDateLocale } from './enUS';
2
+ declare const dateFrFR: NDateLocale;
3
+ export default dateFrFR;
@@ -0,0 +1,6 @@
1
+ import frFR from 'date-fns/locale/fr';
2
+ const dateFrFR = {
3
+ name: 'fr-FR',
4
+ locale: frFR
5
+ };
6
+ export default dateFrFR;
@@ -1,8 +1,3 @@
1
- import type { Locale } from 'date-fns';
2
- interface NDateLocale {
3
- name: string;
4
- locale: Locale;
5
- }
1
+ import { NDateLocale } from './enUS';
6
2
  declare const dateIdID: NDateLocale;
7
- export { NDateLocale };
8
3
  export default dateIdID;
@@ -6,6 +6,7 @@ export { default as jaJP } from './common/jaJP';
6
6
  export { default as idID } from './common/idID';
7
7
  export { default as deDE } from './common/deDE';
8
8
  export { default as nbNO } from './common/nbNO';
9
+ export { default as frFR } from './common/frFR';
9
10
  export { default as dateZhCN } from './date/zhCN';
10
11
  export { default as dateEnUS } from './date/enUS';
11
12
  export { default as dateRuRU } from './date/ruRU';
@@ -14,6 +15,7 @@ export { default as dateJaJP } from './date/jaJP';
14
15
  export { default as dateIdID } from './date/idID';
15
16
  export { default as dateDeDE } from './date/deDE';
16
17
  export { default as dateNbNO } from './date/nbNO';
18
+ export { default as dateFrFR } from './date/frFR';
17
19
  export type { NLocale } from './common/enUS';
18
20
  export type { NDateLocale } from './date/enUS';
19
21
  export type { NPartialLocale } from './utils/index';
@@ -6,6 +6,7 @@ export { default as jaJP } from './common/jaJP';
6
6
  export { default as idID } from './common/idID';
7
7
  export { default as deDE } from './common/deDE';
8
8
  export { default as nbNO } from './common/nbNO';
9
+ export { default as frFR } from './common/frFR';
9
10
  export { default as dateZhCN } from './date/zhCN';
10
11
  export { default as dateEnUS } from './date/enUS';
11
12
  export { default as dateRuRU } from './date/ruRU';
@@ -14,4 +15,5 @@ export { default as dateJaJP } from './date/jaJP';
14
15
  export { default as dateIdID } from './date/idID';
15
16
  export { default as dateDeDE } from './date/deDE';
16
17
  export { default as dateNbNO } from './date/nbNO';
18
+ export { default as dateFrFR } from './date/frFR';
17
19
  export { createLocale } from './utils/index';
package/es/version.d.ts CHANGED
@@ -1,2 +1,2 @@
1
- declare const _default: "2.21.4";
1
+ declare const _default: "2.21.5";
2
2
  export default _default;
package/es/version.js CHANGED
@@ -1 +1 @@
1
- export default '2.21.4';
1
+ export default '2.21.5';