@rc-component/picker 1.1.0 → 1.2.1

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 (159) hide show
  1. package/es/PickerInput/RangePicker.js +4 -2
  2. package/es/PickerInput/SinglePicker.js +4 -2
  3. package/es/PickerInput/context.d.ts +3 -1
  4. package/es/PickerInput/hooks/useRangeValue.js +2 -1
  5. package/es/PickerPanel/PanelBody.js +7 -3
  6. package/es/PickerPanel/context.d.ts +3 -1
  7. package/es/PickerPanel/index.d.ts +5 -0
  8. package/es/PickerPanel/index.js +18 -5
  9. package/es/interface.d.ts +1 -1
  10. package/es/locale/am_ET.js +0 -2
  11. package/es/locale/ar_EG.js +0 -2
  12. package/es/locale/az_AZ.js +0 -2
  13. package/es/locale/bg_BG.js +0 -2
  14. package/es/locale/bn_BD.js +0 -2
  15. package/es/locale/by_BY.js +0 -2
  16. package/es/locale/ca_ES.js +0 -2
  17. package/es/locale/cs_CZ.js +0 -2
  18. package/es/locale/da_DK.js +0 -2
  19. package/es/locale/de_DE.js +0 -2
  20. package/es/locale/el_GR.js +0 -2
  21. package/es/locale/en_GB.js +0 -2
  22. package/es/locale/en_US.js +0 -2
  23. package/es/locale/es_ES.js +0 -2
  24. package/es/locale/es_MX.js +0 -2
  25. package/es/locale/et_EE.js +0 -2
  26. package/es/locale/eu_ES.js +0 -2
  27. package/es/locale/fa_IR.js +0 -2
  28. package/es/locale/fi_FI.js +0 -2
  29. package/es/locale/fr_BE.js +0 -2
  30. package/es/locale/fr_CA.js +0 -2
  31. package/es/locale/fr_FR.js +0 -2
  32. package/es/locale/ga_IE.js +0 -2
  33. package/es/locale/gl_ES.js +0 -2
  34. package/es/locale/he_IL.js +0 -2
  35. package/es/locale/hi_IN.js +0 -2
  36. package/es/locale/hr_HR.js +0 -2
  37. package/es/locale/hu_HU.js +0 -4
  38. package/es/locale/id_ID.js +0 -2
  39. package/es/locale/is_IS.js +0 -2
  40. package/es/locale/it_IT.js +3 -3
  41. package/es/locale/ja_JP.js +0 -2
  42. package/es/locale/ka_GE.js +0 -2
  43. package/es/locale/kk_KZ.js +0 -2
  44. package/es/locale/km_KH.js +0 -2
  45. package/es/locale/kmr_IQ.js +0 -2
  46. package/es/locale/kn_IN.js +0 -2
  47. package/es/locale/ko_KR.js +0 -2
  48. package/es/locale/lt_LT.js +0 -2
  49. package/es/locale/lv_LV.js +0 -2
  50. package/es/locale/mk_MK.js +0 -2
  51. package/es/locale/ml_IN.js +0 -2
  52. package/es/locale/mn_MN.js +0 -2
  53. package/es/locale/ms_MY.js +0 -2
  54. package/es/locale/my_MM.js +0 -2
  55. package/es/locale/nb_NO.js +0 -2
  56. package/es/locale/ne_NP.js +0 -2
  57. package/es/locale/nl_BE.js +0 -2
  58. package/es/locale/nl_NL.js +0 -2
  59. package/es/locale/pl_PL.js +0 -2
  60. package/es/locale/pt_BR.js +0 -2
  61. package/es/locale/pt_PT.js +0 -2
  62. package/es/locale/ro_RO.js +0 -2
  63. package/es/locale/ru_RU.js +0 -2
  64. package/es/locale/si_LK.js +0 -2
  65. package/es/locale/sk_SK.js +0 -2
  66. package/es/locale/sl_SI.js +0 -2
  67. package/es/locale/sr_Cyrl_RS.js +0 -2
  68. package/es/locale/sr_RS.js +0 -2
  69. package/es/locale/sv_SE.js +0 -2
  70. package/es/locale/ta_IN.js +0 -2
  71. package/es/locale/th_TH.js +0 -2
  72. package/es/locale/tk_TK.js +0 -2
  73. package/es/locale/tr_TR.js +0 -2
  74. package/es/locale/ug_CN.js +0 -2
  75. package/es/locale/uk_UA.js +0 -2
  76. package/es/locale/ur_PK.js +0 -2
  77. package/es/locale/uz_UZ.js +0 -2
  78. package/es/locale/vi_VN.js +0 -2
  79. package/es/locale/zh_TW.js +0 -2
  80. package/lib/PickerInput/RangePicker.js +4 -2
  81. package/lib/PickerInput/SinglePicker.js +4 -2
  82. package/lib/PickerInput/context.d.ts +3 -1
  83. package/lib/PickerInput/hooks/useRangeValue.js +2 -1
  84. package/lib/PickerPanel/PanelBody.js +7 -3
  85. package/lib/PickerPanel/context.d.ts +3 -1
  86. package/lib/PickerPanel/index.d.ts +5 -0
  87. package/lib/PickerPanel/index.js +18 -5
  88. package/lib/interface.d.ts +1 -1
  89. package/lib/locale/am_ET.js +0 -2
  90. package/lib/locale/ar_EG.js +0 -2
  91. package/lib/locale/az_AZ.js +0 -2
  92. package/lib/locale/bg_BG.js +0 -2
  93. package/lib/locale/bn_BD.js +0 -2
  94. package/lib/locale/by_BY.js +0 -2
  95. package/lib/locale/ca_ES.js +0 -2
  96. package/lib/locale/cs_CZ.js +0 -2
  97. package/lib/locale/da_DK.js +0 -2
  98. package/lib/locale/de_DE.js +0 -2
  99. package/lib/locale/el_GR.js +0 -2
  100. package/lib/locale/en_GB.js +0 -2
  101. package/lib/locale/en_US.js +0 -2
  102. package/lib/locale/es_ES.js +0 -2
  103. package/lib/locale/es_MX.js +0 -2
  104. package/lib/locale/et_EE.js +0 -2
  105. package/lib/locale/eu_ES.js +0 -2
  106. package/lib/locale/fa_IR.js +0 -2
  107. package/lib/locale/fi_FI.js +0 -2
  108. package/lib/locale/fr_BE.js +0 -2
  109. package/lib/locale/fr_CA.js +0 -2
  110. package/lib/locale/fr_FR.js +0 -2
  111. package/lib/locale/ga_IE.js +0 -2
  112. package/lib/locale/gl_ES.js +0 -2
  113. package/lib/locale/he_IL.js +0 -2
  114. package/lib/locale/hi_IN.js +0 -2
  115. package/lib/locale/hr_HR.js +0 -2
  116. package/lib/locale/hu_HU.js +0 -4
  117. package/lib/locale/id_ID.js +0 -2
  118. package/lib/locale/is_IS.js +0 -2
  119. package/lib/locale/it_IT.js +3 -3
  120. package/lib/locale/ja_JP.js +0 -2
  121. package/lib/locale/ka_GE.js +0 -2
  122. package/lib/locale/kk_KZ.js +0 -2
  123. package/lib/locale/km_KH.js +0 -2
  124. package/lib/locale/kmr_IQ.js +0 -2
  125. package/lib/locale/kn_IN.js +0 -2
  126. package/lib/locale/ko_KR.js +0 -2
  127. package/lib/locale/lt_LT.js +0 -2
  128. package/lib/locale/lv_LV.js +0 -2
  129. package/lib/locale/mk_MK.js +0 -2
  130. package/lib/locale/ml_IN.js +0 -2
  131. package/lib/locale/mn_MN.js +0 -2
  132. package/lib/locale/ms_MY.js +0 -2
  133. package/lib/locale/my_MM.js +0 -2
  134. package/lib/locale/nb_NO.js +0 -2
  135. package/lib/locale/ne_NP.js +0 -2
  136. package/lib/locale/nl_BE.js +0 -2
  137. package/lib/locale/nl_NL.js +0 -2
  138. package/lib/locale/pl_PL.js +0 -2
  139. package/lib/locale/pt_BR.js +0 -2
  140. package/lib/locale/pt_PT.js +0 -2
  141. package/lib/locale/ro_RO.js +0 -2
  142. package/lib/locale/ru_RU.js +0 -2
  143. package/lib/locale/si_LK.js +0 -2
  144. package/lib/locale/sk_SK.js +0 -2
  145. package/lib/locale/sl_SI.js +0 -2
  146. package/lib/locale/sr_Cyrl_RS.js +0 -2
  147. package/lib/locale/sr_RS.js +0 -2
  148. package/lib/locale/sv_SE.js +0 -2
  149. package/lib/locale/ta_IN.js +0 -2
  150. package/lib/locale/th_TH.js +0 -2
  151. package/lib/locale/tk_TK.js +0 -2
  152. package/lib/locale/tr_TR.js +0 -2
  153. package/lib/locale/ug_CN.js +0 -2
  154. package/lib/locale/uk_UA.js +0 -2
  155. package/lib/locale/ur_PK.js +0 -2
  156. package/lib/locale/uz_UZ.js +0 -2
  157. package/lib/locale/vi_VN.js +0 -2
  158. package/lib/locale/zh_TW.js +0 -2
  159. package/package.json +1 -1
@@ -524,9 +524,11 @@ function RangePicker(props, ref) {
524
524
  locale: locale,
525
525
  generateConfig: generateConfig,
526
526
  button: components.button,
527
- input: components.input
527
+ input: components.input,
528
+ styles: styles,
529
+ classNames: classNames
528
530
  };
529
- }, [prefixCls, locale, generateConfig, components.button, components.input]);
531
+ }, [prefixCls, locale, generateConfig, components.button, components.input, classNames, styles]);
530
532
 
531
533
  // ======================== Effect ========================
532
534
  // >>> Mode
@@ -446,9 +446,11 @@ function Picker(props, ref) {
446
446
  locale: locale,
447
447
  generateConfig: generateConfig,
448
448
  button: components.button,
449
- input: components.input
449
+ input: components.input,
450
+ styles: styles,
451
+ classNames: classNames
450
452
  };
451
- }, [prefixCls, locale, generateConfig, components.button, components.input]);
453
+ }, [prefixCls, locale, generateConfig, components.button, components.input, styles, classNames]);
452
454
 
453
455
  // ======================== Effect ========================
454
456
  // >>> Mode
@@ -1,6 +1,6 @@
1
1
  import * as React from 'react';
2
2
  import type { GenerateConfig } from '../generate';
3
- import type { Components, Locale } from '../interface';
3
+ import type { Components, Locale, SemanticStructure } from '../interface';
4
4
  export interface PickerContextProps<DateType = any> {
5
5
  prefixCls: string;
6
6
  locale: Locale;
@@ -8,6 +8,8 @@ export interface PickerContextProps<DateType = any> {
8
8
  /** Customize button component */
9
9
  button?: Components['button'];
10
10
  input?: Components['input'];
11
+ styles?: Partial<Record<SemanticStructure, React.CSSProperties>>;
12
+ classNames?: Partial<Record<SemanticStructure, string>>;
11
13
  }
12
14
  declare const PickerContext: React.Context<PickerContextProps<any>>;
13
15
  export default PickerContext;
@@ -100,9 +100,10 @@ rangeValue,
100
100
  * So when `rangeValue` is `true`, order will be ignored.
101
101
  */
102
102
  order, defaultValue, value, onCalendarChange, onOk) {
103
+ var isNullValue = value === null;
103
104
  // This is the root value which will sync with controlled or uncontrolled value
104
105
  var _useMergedState = useMergedState(defaultValue, {
105
- value: value
106
+ value: isNullValue ? undefined : value
106
107
  }),
107
108
  _useMergedState2 = _slicedToArray(_useMergedState, 2),
108
109
  innerValue = _useMergedState2[0],
@@ -46,7 +46,9 @@ export default function PanelBody(props) {
46
46
 
47
47
  // ============================= Context ==============================
48
48
  var _React$useContext = React.useContext(PickerHackContext),
49
- onCellDblClick = _React$useContext.onCellDblClick;
49
+ onCellDblClick = _React$useContext.onCellDblClick,
50
+ pickerClassNames = _React$useContext.classNames,
51
+ styles = _React$useContext.styles;
50
52
 
51
53
  // ============================== Value ===============================
52
54
  var matchValues = function matchValues(date) {
@@ -146,8 +148,10 @@ export default function PanelBody(props) {
146
148
 
147
149
  // ============================== Render ==============================
148
150
  return /*#__PURE__*/React.createElement("div", {
149
- className: "".concat(prefixCls, "-body")
151
+ className: classNames("".concat(prefixCls, "-body"), pickerClassNames === null || pickerClassNames === void 0 ? void 0 : pickerClassNames.popupBody),
152
+ style: styles === null || styles === void 0 ? void 0 : styles.popupBody
150
153
  }, /*#__PURE__*/React.createElement("table", {
151
- className: "".concat(prefixCls, "-content")
154
+ className: classNames("".concat(prefixCls, "-content"), pickerClassNames === null || pickerClassNames === void 0 ? void 0 : pickerClassNames.popupContent),
155
+ style: styles === null || styles === void 0 ? void 0 : styles.popupContent
152
156
  }, headerCells && /*#__PURE__*/React.createElement("thead", null, /*#__PURE__*/React.createElement("tr", null, headerCells)), /*#__PURE__*/React.createElement("tbody", null, rows)));
153
157
  }
@@ -1,5 +1,5 @@
1
1
  import * as React from 'react';
2
- import type { PanelMode, SharedPanelProps } from '../interface';
2
+ import type { PanelMode, SemanticStructure, SharedPanelProps } from '../interface';
3
3
  export interface PanelContextProps<DateType extends object = any> extends Pick<SharedPanelProps<DateType>, 'prefixCls' | 'cellRender' | 'generateConfig' | 'locale' | 'onSelect' | 'hoverValue' | 'hoverRangeValue' | 'onHover' | 'values' | 'pickerValue' | 'disabledDate' | 'minDate' | 'maxDate' | 'prevIcon' | 'nextIcon' | 'superPrevIcon' | 'superNextIcon'> {
4
4
  /** Tell current panel type */
5
5
  panelType: PanelMode;
@@ -17,6 +17,8 @@ export interface PickerHackContextProps {
17
17
  hideNext?: boolean;
18
18
  hideHeader?: boolean;
19
19
  onCellDblClick?: () => void;
20
+ styles?: Partial<Record<SemanticStructure, React.CSSProperties>>;
21
+ classNames?: Partial<Record<SemanticStructure, string>>;
20
22
  }
21
23
  /**
22
24
  * Internal usage for RangePicker to not to show the operation arrow
@@ -43,12 +43,15 @@ export interface SinglePickerPanelProps<DateType extends object = any> extends B
43
43
  value?: DateType | null;
44
44
  onChange?: (date: DateType) => void;
45
45
  }
46
+ type PanelSemanticName = 'popupBody' | 'popupContent';
46
47
  export type PickerPanelProps<DateType extends object = any> = BasePickerPanelProps<DateType> & {
47
48
  /** multiple selection. Not support time or datetime picker */
48
49
  multiple?: boolean;
49
50
  defaultValue?: DateType | DateType[] | null;
50
51
  value?: DateType | DateType[] | null;
51
52
  onChange?: (date: DateType | DateType[]) => void;
53
+ styles?: Partial<Record<PanelSemanticName, React.CSSProperties>>;
54
+ classNames?: Partial<Record<PanelSemanticName, string>>;
52
55
  };
53
56
  declare const _default: <DateType extends object = any>(props: BasePickerPanelProps<DateType> & {
54
57
  /** multiple selection. Not support time or datetime picker */
@@ -56,5 +59,7 @@ declare const _default: <DateType extends object = any>(props: BasePickerPanelPr
56
59
  defaultValue?: DateType | DateType[];
57
60
  value?: DateType | DateType[];
58
61
  onChange?: (date: DateType | DateType[]) => void;
62
+ styles?: Partial<Record<PanelSemanticName, React.CSSProperties>>;
63
+ classNames?: Partial<Record<PanelSemanticName, string>>;
59
64
  } & React.RefAttributes<PickerPanelRef>) => React.ReactElement;
60
65
  export default _default;
@@ -45,8 +45,9 @@ var DefaultComponents = {
45
45
  time: TimePanel
46
46
  };
47
47
  function PickerPanel(props, ref) {
48
- var _React$useContext;
49
- var locale = props.locale,
48
+ var panelClassNames = props.classNames,
49
+ panelStyles = props.styles,
50
+ locale = props.locale,
50
51
  generateConfig = props.generateConfig,
51
52
  direction = props.direction,
52
53
  prefixCls = props.prefixCls,
@@ -73,7 +74,15 @@ function PickerPanel(props, ref) {
73
74
  _props$components = props.components,
74
75
  components = _props$components === void 0 ? {} : _props$components,
75
76
  hideHeader = props.hideHeader;
76
- var mergedPrefixCls = ((_React$useContext = React.useContext(PickerContext)) === null || _React$useContext === void 0 ? void 0 : _React$useContext.prefixCls) || prefixCls || 'rc-picker';
77
+
78
+ // ======================== Context ========================
79
+ var _ref = React.useContext(PickerContext) || {},
80
+ contextPrefixCls = _ref.prefixCls,
81
+ pickerClassNames = _ref.classNames,
82
+ pickerStyles = _ref.styles;
83
+
84
+ // ======================== prefixCls ========================
85
+ var mergedPrefixCls = contextPrefixCls || prefixCls || 'rc-picker';
77
86
 
78
87
  // ========================== Refs ==========================
79
88
  var rootRef = React.useRef();
@@ -246,12 +255,16 @@ function PickerPanel(props, ref) {
246
255
  var PanelComponent = components[internalMode] || DefaultComponents[internalMode] || DatePanel;
247
256
 
248
257
  // ======================== Context =========================
258
+ var mergedStyles = pickerStyles !== null && pickerStyles !== void 0 ? pickerStyles : panelStyles;
259
+ var mergedClassNames = pickerClassNames !== null && pickerClassNames !== void 0 ? pickerClassNames : panelClassNames;
249
260
  var parentHackContext = React.useContext(PickerHackContext);
250
261
  var pickerPanelContext = React.useMemo(function () {
251
262
  return _objectSpread(_objectSpread({}, parentHackContext), {}, {
252
- hideHeader: hideHeader
263
+ hideHeader: hideHeader,
264
+ classNames: mergedClassNames,
265
+ styles: mergedStyles
253
266
  });
254
- }, [parentHackContext, hideHeader]);
267
+ }, [parentHackContext, hideHeader, mergedClassNames, mergedStyles]);
255
268
 
256
269
  // ======================== Warnings ========================
257
270
  if (process.env.NODE_ENV !== 'production') {
package/es/interface.d.ts CHANGED
@@ -201,7 +201,7 @@ export type Components<DateType extends object = any> = Partial<Record<InternalM
201
201
  button?: React.ComponentType<any> | string;
202
202
  input?: React.ComponentType<any> | string;
203
203
  }>;
204
- export type SemanticStructure = 'popup';
204
+ export type SemanticStructure = 'popup' | 'popupBody' | 'popupContent';
205
205
  export type CustomFormat<DateType> = (value: DateType) => string;
206
206
  export type FormatType<DateType = any> = string | CustomFormat<DateType>;
207
207
  export type SharedHTMLAttrs = Omit<React.InputHTMLAttributes<HTMLDivElement>, 'value' | 'defaultValue' | 'onChange' | 'placeholder' | 'id' | 'onInvalid' | 'disabled' | 'onFocus' | 'onBlur' | 'onSelect' | 'min' | 'max' | 'onKeyDown' | 'size' | 'prefix'>;
@@ -15,9 +15,7 @@ var locale = {
15
15
  yearSelect: 'አመት ምረጥ',
16
16
  decadeSelect: 'አስርት አመታት ምረጥ',
17
17
  yearFormat: 'YYYY',
18
- dateFormat: 'D/M/YYYY',
19
18
  dayFormat: 'D',
20
- dateTimeFormat: 'D/M/YYYY HH:mm:ss',
21
19
  monthBeforeYear: true,
22
20
  previousMonth: 'ያለፈው ወር (PageUp)',
23
21
  nextMonth: 'ቀጣይ ወር (PageDown)',
@@ -20,8 +20,6 @@ var locale = _objectSpread(_objectSpread({}, commonLocale), {}, {
20
20
  monthSelect: 'اختيار الشهر',
21
21
  yearSelect: 'اختيار السنة',
22
22
  decadeSelect: 'اختيار العقد',
23
- dateFormat: 'M/D/YYYY',
24
- dateTimeFormat: 'M/D/YYYY HH:mm:ss',
25
23
  previousMonth: 'الشهر السابق (PageUp)',
26
24
  nextMonth: 'الشهر التالى(PageDown)',
27
25
  previousYear: 'العام السابق (Control + left)',
@@ -21,8 +21,6 @@ var locale = _objectSpread(_objectSpread({}, commonLocale), {}, {
21
21
  monthSelect: 'Ay seç',
22
22
  yearSelect: 'il seç',
23
23
  decadeSelect: 'Onillik seçin',
24
- dateFormat: 'D.M.YYYY',
25
- dateTimeFormat: 'D.M.YYYY HH:mm:ss',
26
24
  previousMonth: 'Əvvəlki ay (PageUp)',
27
25
  nextMonth: 'Növbəti ay (PageDown)',
28
26
  previousYear: 'Sonuncu il (Control + left)',
@@ -20,8 +20,6 @@ var locale = _objectSpread(_objectSpread({}, commonLocale), {}, {
20
20
  monthSelect: 'Избор на месец',
21
21
  yearSelect: 'Избор на година',
22
22
  decadeSelect: 'Десетилетие',
23
- dateFormat: 'D M YYYY',
24
- dateTimeFormat: 'D M YYYY HH:mm:ss',
25
23
  previousMonth: 'Предишен месец (PageUp)',
26
24
  nextMonth: 'Следващ месец (PageDown)',
27
25
  previousYear: 'Последна година (Control + left)',
@@ -21,8 +21,6 @@ var locale = _objectSpread(_objectSpread({}, commonLocale), {}, {
21
21
  monthSelect: 'মাস পছন্দ করুন',
22
22
  yearSelect: 'বছর পছন্দ করুন',
23
23
  decadeSelect: 'একটি দশক পছন্দ করুন',
24
- dateFormat: 'M/D/YYYY',
25
- dateTimeFormat: 'D/M/YYYY HH:mm:ss',
26
24
  previousMonth: 'গত মাস (PageUp)',
27
25
  nextMonth: 'আগামী মাস (PageDown)',
28
26
  previousYear: 'গত বছর (Control + left)',
@@ -21,8 +21,6 @@ var locale = _objectSpread(_objectSpread({}, commonLocale), {}, {
21
21
  monthSelect: 'Выбраць месяц',
22
22
  yearSelect: 'Выбраць год',
23
23
  decadeSelect: 'Выбраць дзесяцігоддзе',
24
- dateFormat: 'D-M-YYYY',
25
- dateTimeFormat: 'D-M-YYYY HH:mm:ss',
26
24
  previousMonth: 'Папярэдні месяц (PageUp)',
27
25
  nextMonth: 'Наступны месяц (PageDown)',
28
26
  previousYear: 'Папярэдні год (Control + left)',
@@ -20,8 +20,6 @@ var locale = _objectSpread(_objectSpread({}, commonLocale), {}, {
20
20
  monthSelect: 'Escollir un mes',
21
21
  yearSelect: 'Escollir un any',
22
22
  decadeSelect: 'Escollir una dècada',
23
- dateFormat: 'D/M/YYYY',
24
- dateTimeFormat: 'D/M/YYYY HH:mm:ss',
25
23
  previousMonth: 'Mes anterior (PageUp)',
26
24
  nextMonth: 'Mes següent (PageDown)',
27
25
  previousYear: 'Any anterior (Control + left)',
@@ -20,8 +20,6 @@ var locale = _objectSpread(_objectSpread({}, commonLocale), {}, {
20
20
  monthSelect: 'Vyberte měsíc',
21
21
  yearSelect: 'Vyberte rok',
22
22
  decadeSelect: 'Vyberte dekádu',
23
- dateFormat: 'D.M.YYYY',
24
- dateTimeFormat: 'D.M.YYYY HH:mm:ss',
25
23
  previousMonth: 'Předchozí měsíc (PageUp)',
26
24
  nextMonth: 'Následující (PageDown)',
27
25
  previousYear: 'Předchozí rok (Control + left)',
@@ -20,8 +20,6 @@ var locale = _objectSpread(_objectSpread({}, commonLocale), {}, {
20
20
  monthSelect: 'Vælg måned',
21
21
  yearSelect: 'Vælg år',
22
22
  decadeSelect: 'Vælg årti',
23
- dateFormat: 'D/M/YYYY',
24
- dateTimeFormat: 'D/M/YYYY HH:mm:ss',
25
23
  previousMonth: 'Forrige måned (Page Up)',
26
24
  nextMonth: 'Næste måned (Page Down)',
27
25
  previousYear: 'Forrige år (Ctrl-venstre pil)',
@@ -20,8 +20,6 @@ var locale = _objectSpread(_objectSpread({}, commonLocale), {}, {
20
20
  monthSelect: 'Wähle einen Monat',
21
21
  yearSelect: 'Wähle ein Jahr',
22
22
  decadeSelect: 'Wähle ein Jahrzehnt',
23
- dateFormat: 'D.M.YYYY',
24
- dateTimeFormat: 'D.M.YYYY HH:mm:ss',
25
23
  previousMonth: 'Vorheriger Monat (PageUp)',
26
24
  nextMonth: 'Nächster Monat (PageDown)',
27
25
  previousYear: 'Vorheriges Jahr (Ctrl + left)',
@@ -20,8 +20,6 @@ var locale = _objectSpread(_objectSpread({}, commonLocale), {}, {
20
20
  monthSelect: 'Επιλογή μήνα',
21
21
  yearSelect: 'Επιλογή έτους',
22
22
  decadeSelect: 'Επιλογή δεκαετίας',
23
- dateFormat: 'D/M/YYYY',
24
- dateTimeFormat: 'D/M/YYYY HH:mm:ss',
25
23
  previousMonth: 'Προηγούμενος μήνας (PageUp)',
26
24
  nextMonth: 'Επόμενος μήνας (PageDown)',
27
25
  previousYear: 'Προηγούμενο έτος (Control + αριστερά)',
@@ -20,8 +20,6 @@ var locale = _objectSpread(_objectSpread({}, commonLocale), {}, {
20
20
  monthSelect: 'Choose a month',
21
21
  yearSelect: 'Choose a year',
22
22
  decadeSelect: 'Choose a decade',
23
- dateFormat: 'D/M/YYYY',
24
- dateTimeFormat: 'D/M/YYYY HH:mm:ss',
25
23
  previousMonth: 'Previous month (PageUp)',
26
24
  nextMonth: 'Next month (PageDown)',
27
25
  previousYear: 'Last year (Control + left)',
@@ -21,8 +21,6 @@ var locale = _objectSpread(_objectSpread({}, commonLocale), {}, {
21
21
  monthSelect: 'Choose a month',
22
22
  yearSelect: 'Choose a year',
23
23
  decadeSelect: 'Choose a decade',
24
- dateFormat: 'M/D/YYYY',
25
- dateTimeFormat: 'M/D/YYYY HH:mm:ss',
26
24
  previousMonth: 'Previous month (PageUp)',
27
25
  nextMonth: 'Next month (PageDown)',
28
26
  previousYear: 'Last year (Control + left)',
@@ -20,8 +20,6 @@ var locale = _objectSpread(_objectSpread({}, commonLocale), {}, {
20
20
  monthSelect: 'Elegir un mes',
21
21
  yearSelect: 'Elegir un año',
22
22
  decadeSelect: 'Elegir una década',
23
- dateFormat: 'D/M/YYYY',
24
- dateTimeFormat: 'D/M/YYYY HH:mm:ss',
25
23
  previousMonth: 'Mes anterior (PageUp)',
26
24
  nextMonth: 'Mes siguiente (PageDown)',
27
25
  previousYear: 'Año anterior (Control + left)',
@@ -21,8 +21,6 @@ var locale = _objectSpread(_objectSpread({}, commonLocale), {}, {
21
21
  monthSelect: 'Seleccionar mes',
22
22
  yearSelect: 'Seleccionar año',
23
23
  decadeSelect: 'Seleccionar década',
24
- dateFormat: 'D/M/YYYY',
25
- dateTimeFormat: 'D/M/YYYY HH:mm:ss',
26
24
  previousMonth: 'Mes anterior (PageUp)',
27
25
  nextMonth: 'Mes siguiente (PageDown)',
28
26
  previousYear: 'Año anterior (Control + Left)',
@@ -20,8 +20,6 @@ var locale = _objectSpread(_objectSpread({}, commonLocale), {}, {
20
20
  monthSelect: 'Vali kuu',
21
21
  yearSelect: 'Vali aasta',
22
22
  decadeSelect: 'Vali dekaad',
23
- dateFormat: 'D.M.YYYY',
24
- dateTimeFormat: 'D.M.YYYY HH:mm:ss',
25
23
  previousMonth: 'Eelmine kuu (PageUp)',
26
24
  nextMonth: 'Järgmine kuu (PageDown)',
27
25
  previousYear: 'Eelmine aasta (Control + left)',
@@ -21,8 +21,6 @@ var locale = _objectSpread(_objectSpread({}, commonLocale), {}, {
21
21
  monthSelect: 'Hilabetea aukeratu',
22
22
  yearSelect: 'Urtea aukeratu',
23
23
  decadeSelect: 'Hamarkada aukeratu',
24
- dateFormat: 'YYYY/M/D',
25
- dateTimeFormat: 'YYYY/M/D HH:mm:ss',
26
24
  monthBeforeYear: false,
27
25
  previousMonth: 'Aurreko hilabetea (RePag)',
28
26
  nextMonth: 'Urrengo hilabetea (AvPag)',
@@ -20,8 +20,6 @@ var locale = _objectSpread(_objectSpread({}, commonLocale), {}, {
20
20
  monthSelect: 'یک ماه را انتخاب کنید',
21
21
  yearSelect: 'یک سال را انتخاب کنید',
22
22
  decadeSelect: 'یک دهه را انتخاب کنید',
23
- dateFormat: 'M/D/YYYY',
24
- dateTimeFormat: 'M/D/YYYY HH:mm:ss',
25
23
  previousMonth: 'ماه قبل (PageUp)',
26
24
  nextMonth: 'ماه بعد (PageDown)',
27
25
  previousYear: 'سال قبل (Control + left)',
@@ -20,8 +20,6 @@ var locale = _objectSpread(_objectSpread({}, commonLocale), {}, {
20
20
  monthSelect: 'Valitse kuukausi',
21
21
  yearSelect: 'Valitse vuosi',
22
22
  decadeSelect: 'Valitse vuosikymmen',
23
- dateFormat: 'D.M.YYYY',
24
- dateTimeFormat: 'D.M.YYYY HH:mm:ss',
25
23
  previousMonth: 'Edellinen kuukausi (PageUp)',
26
24
  nextMonth: 'Seuraava kuukausi (PageDown)',
27
25
  previousYear: 'Edellinen vuosi (Control + left)',
@@ -20,8 +20,6 @@ var locale = _objectSpread(_objectSpread({}, commonLocale), {}, {
20
20
  monthSelect: 'Choisissez un mois',
21
21
  yearSelect: 'Choisissez une année',
22
22
  decadeSelect: 'Choisissez une décennie',
23
- dateFormat: 'D/M/YYYY',
24
- dateTimeFormat: 'D/M/YYYY HH:mm:ss',
25
23
  previousMonth: 'Mois précédent (PageUp)',
26
24
  nextMonth: 'Mois suivant (PageDown)',
27
25
  previousYear: 'Année précédente (Ctrl + gauche)',
@@ -20,9 +20,7 @@ var locale = _objectSpread(_objectSpread({}, commonLocale), {}, {
20
20
  monthSelect: 'Choisissez un mois',
21
21
  yearSelect: 'Choisissez une année',
22
22
  decadeSelect: 'Choisissez une décennie',
23
- dateFormat: 'DD/MM/YYYY',
24
23
  dayFormat: 'DD',
25
- dateTimeFormat: 'DD/MM/YYYY HH:mm:ss',
26
24
  previousMonth: 'Mois précédent (PageUp)',
27
25
  nextMonth: 'Mois suivant (PageDown)',
28
26
  previousYear: 'Année précédente (Ctrl + gauche)',
@@ -20,9 +20,7 @@ var locale = _objectSpread(_objectSpread({}, commonLocale), {}, {
20
20
  monthSelect: 'Choisissez un mois',
21
21
  yearSelect: 'Choisissez une année',
22
22
  decadeSelect: 'Choisissez une décennie',
23
- dateFormat: 'DD/MM/YYYY',
24
23
  dayFormat: 'DD',
25
- dateTimeFormat: 'DD/MM/YYYY HH:mm:ss',
26
24
  previousMonth: 'Mois précédent (PageUp)',
27
25
  nextMonth: 'Mois suivant (PageDown)',
28
26
  previousYear: 'Année précédente (Ctrl + gauche)',
@@ -21,8 +21,6 @@ var locale = _objectSpread(_objectSpread({}, commonLocale), {}, {
21
21
  monthSelect: 'Roghnaigh mí',
22
22
  yearSelect: 'Roghnaigh bliain',
23
23
  decadeSelect: 'Roghnaigh deich mbliana',
24
- dateFormat: 'D/M/YYYY',
25
- dateTimeFormat: 'D/M/YYYY HH:mm:ss',
26
24
  previousMonth: 'An mhí roimhe seo (PageUp)',
27
25
  nextMonth: 'An mhí seo chugainn (PageDown)',
28
26
  previousYear: 'Anuraidh (Control + left)',
@@ -20,8 +20,6 @@ var locale = _objectSpread(_objectSpread({}, commonLocale), {}, {
20
20
  monthSelect: 'Elexir un mes',
21
21
  yearSelect: 'Elexir un año',
22
22
  decadeSelect: 'Elexir unha década',
23
- dateFormat: 'D/M/YYYY',
24
- dateTimeFormat: 'D/M/YYYY HH:mm:ss',
25
23
  previousMonth: 'Mes anterior (PageUp)',
26
24
  nextMonth: 'Mes seguinte (PageDown)',
27
25
  previousYear: 'Ano anterior (Control + left)',
@@ -21,8 +21,6 @@ var locale = _objectSpread(_objectSpread({}, commonLocale), {}, {
21
21
  monthSelect: 'בחר חודש',
22
22
  yearSelect: 'בחר שנה',
23
23
  decadeSelect: 'בחר עשור',
24
- dateFormat: 'M/D/YYYY',
25
- dateTimeFormat: 'M/D/YYYY HH:mm:ss',
26
24
  previousMonth: 'חודש קודם (PageUp)',
27
25
  nextMonth: 'חודש הבא (PageDown)',
28
26
  previousYear: 'שנה שעברה (Control + left)',
@@ -21,8 +21,6 @@ var locale = _objectSpread(_objectSpread({}, commonLocale), {}, {
21
21
  monthSelect: 'एक महीना चुनें',
22
22
  yearSelect: 'एक वर्ष चुनें',
23
23
  decadeSelect: 'एक दशक चुनें',
24
- dateFormat: 'M/D/YYYY',
25
- dateTimeFormat: 'M/D/YYYY HH:mm:ss',
26
24
  previousMonth: 'पिछला महीना (पेजअप)',
27
25
  nextMonth: 'अगले महीने (पेजडाउन)',
28
26
  previousYear: 'पिछले साल (Ctrl + बाएं)',
@@ -21,8 +21,6 @@ var locale = _objectSpread(_objectSpread({}, commonLocale), {}, {
21
21
  monthSelect: 'Odaberite mjesec',
22
22
  yearSelect: 'Odaberite godinu',
23
23
  decadeSelect: 'Odaberite desetljeće',
24
- dateFormat: 'D.M.YYYY',
25
- dateTimeFormat: 'D.M.YYYY HH:mm:ss',
26
24
  previousMonth: 'Prošli mjesec (PageUp)',
27
25
  nextMonth: 'Sljedeći mjesec (PageDown)',
28
26
  previousYear: 'Prošla godina (Control + left)',
@@ -32,12 +32,8 @@ var locale = _objectSpread(_objectSpread({}, commonLocale), {}, {
32
32
  decadeSelect: 'Évtized kiválasztása',
33
33
  // 'Choose a decade',
34
34
 
35
- dateFormat: 'YYYY/MM/DD',
36
- // 'M/D/YYYY',
37
35
  dayFormat: 'DD',
38
36
  // 'D',
39
- dateTimeFormat: 'YYYY/MM/DD HH:mm:ss',
40
- // 'M/D/YYYY HH:mm:ss',
41
37
 
42
38
  previousMonth: 'Előző hónap (PageUp)',
43
39
  // 'Previous month (PageUp)',
@@ -21,8 +21,6 @@ var locale = _objectSpread(_objectSpread({}, commonLocale), {}, {
21
21
  monthSelect: 'Pilih satu bulan',
22
22
  yearSelect: 'Pilih satu tahun',
23
23
  decadeSelect: 'Pilih satu dekade',
24
- dateFormat: 'D/M/YYYY',
25
- dateTimeFormat: 'D/M/YYYY HH:mm:ss',
26
24
  previousMonth: 'Bulan sebelumnya (PageUp)',
27
25
  nextMonth: 'Bulan selanjutnya (PageDown)',
28
26
  previousYear: 'Tahun lalu (Control + kiri)',
@@ -20,8 +20,6 @@ var locale = _objectSpread(_objectSpread({}, commonLocale), {}, {
20
20
  monthSelect: 'Velja mánuð',
21
21
  yearSelect: 'Velja ár',
22
22
  decadeSelect: 'Velja áratug',
23
- dateFormat: 'D/M/YYYY',
24
- dateTimeFormat: 'D/M/YYYY HH:mm:ss',
25
23
  previousMonth: 'Fyrri mánuður (PageUp)',
26
24
  nextMonth: 'Næsti mánuður (PageDown)',
27
25
  previousYear: 'Fyrra ár (Control + left)',
@@ -20,8 +20,6 @@ var locale = _objectSpread(_objectSpread({}, commonLocale), {}, {
20
20
  monthSelect: 'Seleziona il mese',
21
21
  yearSelect: "Seleziona l'anno",
22
22
  decadeSelect: 'Seleziona il decennio',
23
- dateFormat: 'D/M/YYYY',
24
- dateTimeFormat: 'D/M/YYYY HH:mm:ss',
25
23
  previousMonth: 'Il mese scorso (PageUp)',
26
24
  nextMonth: 'Il prossimo mese (PageDown)',
27
25
  previousYear: "L'anno scorso (Control + sinistra)",
@@ -29,6 +27,8 @@ var locale = _objectSpread(_objectSpread({}, commonLocale), {}, {
29
27
  previousDecade: 'Ultimo decennio',
30
28
  nextDecade: 'Prossimo decennio',
31
29
  previousCentury: 'Secolo precedente',
32
- nextCentury: 'Prossimo secolo'
30
+ nextCentury: 'Prossimo secolo',
31
+ shortWeekDays: ['Dom', 'Lun', 'Mar', 'Mer', 'Gio', 'Ven', 'Sab'],
32
+ shortMonths: ['Gen', 'Feb', 'Mar', 'Apr', 'Mag', 'Giu', 'Lug', 'Ago', 'Set', 'Ott', 'Nov', 'Dic']
33
33
  });
34
34
  export default locale;
@@ -24,8 +24,6 @@ var locale = _objectSpread(_objectSpread({}, commonLocale), {}, {
24
24
  yearSelect: '年を選択',
25
25
  decadeSelect: '年代を選択',
26
26
  yearFormat: 'YYYY年',
27
- dateFormat: 'YYYY年M月D日',
28
- dateTimeFormat: 'YYYY年M月D日 HH時mm分ss秒',
29
27
  previousYear: '前年 (Controlを押しながら左キー)',
30
28
  nextYear: '翌年 (Controlを押しながら右キー)',
31
29
  previousDecade: '前の年代',
@@ -21,8 +21,6 @@ var locale = _objectSpread(_objectSpread({}, commonLocale), {}, {
21
21
  monthSelect: 'თვის არჩევა',
22
22
  yearSelect: 'წლის არჩევა',
23
23
  decadeSelect: 'ათწლეულის არჩევა',
24
- dateFormat: 'M/D/YYYY',
25
- dateTimeFormat: 'M/D/YYYY HH:mm:ss',
26
24
  previousMonth: 'წინა თვე (PageUp)',
27
25
  nextMonth: 'მომდევნო თვე (PageDown)',
28
26
  previousYear: 'წინა წელი (Control + left)',
@@ -20,8 +20,6 @@ var locale = _objectSpread(_objectSpread({}, commonLocale), {}, {
20
20
  monthSelect: 'Айды таңдаңыз',
21
21
  yearSelect: 'Жылды таңдаңыз',
22
22
  decadeSelect: 'Онжылды таңдаңыз',
23
- dateFormat: 'D-M-YYYY',
24
- dateTimeFormat: 'D-M-YYYY HH:mm:ss',
25
23
  previousMonth: 'Алдыңғы ай (PageUp)',
26
24
  nextMonth: 'Келесі ай (PageDown)',
27
25
  previousYear: 'Алдыңғы жыл (Control + left)',
@@ -23,8 +23,6 @@ var locale = _objectSpread(_objectSpread({}, commonLocale), {}, {
23
23
  monthSelect: 'ជ្រើសរើសខែ',
24
24
  yearSelect: 'ជ្រើសរើសឆ្នាំ',
25
25
  decadeSelect: 'ជ្រើសរើសអាយុ',
26
- dateFormat: 'YYYY-M-D',
27
- dateTimeFormat: 'YYYY-M-D HH:mm:ss',
28
26
  previousYear: 'ឆ្នាំមុន (Controlគ្រាប់ចុចបូកព្រួញខាងឆ្វេង)',
29
27
  nextYear: 'ឆ្នាំក្រោយ (Control គ្រាប់ចុចបូកព្រួញស្ដាំ)',
30
28
  previousDecade: 'ជំនាន់ចុងក្រោយ',
@@ -20,8 +20,6 @@ var locale = _objectSpread(_objectSpread({}, commonLocale), {}, {
20
20
  monthSelect: 'Meh hilbijêre',
21
21
  yearSelect: 'Sal hilbijêre',
22
22
  decadeSelect: 'Dehsal hilbijêre',
23
- dateFormat: 'D/M/YYYY',
24
- dateTimeFormat: 'D/M/YYYY HH:mm:ss',
25
23
  previousMonth: 'Meha peş (PageUp))',
26
24
  nextMonth: 'Meha paş (PageDown)',
27
25
  previousYear: 'Sala peş (Control + şep)',
@@ -21,8 +21,6 @@ var locale = _objectSpread(_objectSpread({}, commonLocale), {}, {
21
21
  monthSelect: 'ಒಂದು ತಿಂಗಳು ಆಯ್ಕೆಮಾಡಿ',
22
22
  yearSelect: 'ಒಂದು ವರ್ಷ ಆರಿಸಿ',
23
23
  decadeSelect: 'ಒಂದು ದಶಕದ ಆಯ್ಕೆಮಾಡಿ',
24
- dateFormat: 'M/D/YYYY',
25
- dateTimeFormat: 'M/D/YYYY HH:mm:ss',
26
24
  previousMonth: 'ಹಿಂದಿನ ತಿಂಗಳು (ಪೇಜ್ಅಪ್)',
27
25
  nextMonth: 'ಮುಂದಿನ ತಿಂಗಳು (ಪೇಜ್ಡೌನ್)',
28
26
  previousYear: 'ಕಳೆದ ವರ್ಷ (Ctrl + ಎಡ)',
@@ -21,8 +21,6 @@ var locale = _objectSpread(_objectSpread({}, commonLocale), {}, {
21
21
  yearSelect: '연 선택',
22
22
  decadeSelect: '연대 선택',
23
23
  yearFormat: 'YYYY년',
24
- dateFormat: 'YYYY-MM-DD',
25
- dateTimeFormat: 'YYYY-MM-DD HH:mm:ss',
26
24
  monthBeforeYear: false,
27
25
  previousMonth: '이전 달 (PageUp)',
28
26
  nextMonth: '다음 달 (PageDown)',
@@ -21,9 +21,7 @@ var locale = _objectSpread(_objectSpread({}, commonLocale), {}, {
21
21
  monthSelect: 'Pasirinkti mėnesį',
22
22
  yearSelect: 'Pasirinkti metus',
23
23
  decadeSelect: 'Pasirinkti dešimtmetį',
24
- dateFormat: 'YYYY-MM-DD',
25
24
  dayFormat: 'DD',
26
- dateTimeFormat: 'YYYY-MM-DD HH:MM:SS',
27
25
  previousMonth: 'Buvęs mėnesis (PageUp)',
28
26
  nextMonth: 'Kitas mėnesis (PageDown)',
29
27
  previousYear: 'Buvę metai (Control + left)',
@@ -20,8 +20,6 @@ var locale = _objectSpread(_objectSpread({}, commonLocale), {}, {
20
20
  monthSelect: 'Izvēlieties mēnesi',
21
21
  yearSelect: 'Izvēlieties gadu',
22
22
  decadeSelect: 'Izvēlieties desmit gadus',
23
- dateFormat: 'D.M.YYYY',
24
- dateTimeFormat: 'D.M.YYYY HH:mm:ss',
25
23
  previousMonth: 'Iepriekšējais mēnesis (PageUp)',
26
24
  nextMonth: 'Nākammēnes (PageDown)',
27
25
  previousYear: 'Pagājušais gads (Control + left)',
@@ -20,8 +20,6 @@ var locale = _objectSpread(_objectSpread({}, commonLocale), {}, {
20
20
  monthSelect: 'Избери месец',
21
21
  yearSelect: 'Избери година',
22
22
  decadeSelect: 'Избери деценија',
23
- dateFormat: 'D.M.YYYY',
24
- dateTimeFormat: 'D.M.YYYY HH:mm:ss',
25
23
  previousMonth: 'Претходен месец (PageUp)',
26
24
  nextMonth: 'Нареден месец (PageDown)',
27
25
  previousYear: 'Претходна година (Control + left)',