rsuite 5.35.1 → 5.37.0

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 (45) hide show
  1. package/CHANGELOG.md +22 -0
  2. package/RadioGroup/styles/index.less +25 -14
  3. package/cjs/Cascader/Cascader.js +2 -1
  4. package/cjs/InputPicker/InputPicker.d.ts +9 -0
  5. package/cjs/InputPicker/InputPicker.js +9 -3
  6. package/cjs/MultiCascader/MultiCascader.js +0 -1
  7. package/cjs/Picker/PickerToggle.d.ts +1 -0
  8. package/cjs/Picker/PickerToggle.js +4 -2
  9. package/cjs/Picker/utils.js +3 -2
  10. package/cjs/Uploader/Uploader.d.ts +3 -2
  11. package/cjs/locales/index.d.ts +1 -0
  12. package/cjs/locales/index.js +6 -2
  13. package/cjs/locales/ja_JP.d.ts +117 -0
  14. package/cjs/locales/ja_JP.js +89 -0
  15. package/cjs/utils/ajaxUpload.d.ts +1 -1
  16. package/dist/rsuite-no-reset-rtl.css +15 -200
  17. package/dist/rsuite-no-reset-rtl.min.css +1 -1
  18. package/dist/rsuite-no-reset-rtl.min.css.map +1 -1
  19. package/dist/rsuite-no-reset.css +15 -200
  20. package/dist/rsuite-no-reset.min.css +1 -1
  21. package/dist/rsuite-no-reset.min.css.map +1 -1
  22. package/dist/rsuite-rtl.css +15 -200
  23. package/dist/rsuite-rtl.min.css +1 -1
  24. package/dist/rsuite-rtl.min.css.map +1 -1
  25. package/dist/rsuite.css +15 -200
  26. package/dist/rsuite.js +7 -7
  27. package/dist/rsuite.min.css +1 -1
  28. package/dist/rsuite.min.css.map +1 -1
  29. package/dist/rsuite.min.js +1 -1
  30. package/dist/rsuite.min.js.map +1 -1
  31. package/esm/Cascader/Cascader.js +2 -1
  32. package/esm/InputPicker/InputPicker.d.ts +9 -0
  33. package/esm/InputPicker/InputPicker.js +9 -3
  34. package/esm/MultiCascader/MultiCascader.js +0 -1
  35. package/esm/Picker/PickerToggle.d.ts +1 -0
  36. package/esm/Picker/PickerToggle.js +4 -2
  37. package/esm/Picker/utils.js +3 -2
  38. package/esm/Uploader/Uploader.d.ts +3 -2
  39. package/esm/locales/index.d.ts +1 -0
  40. package/esm/locales/index.js +2 -1
  41. package/esm/locales/ja_JP.d.ts +117 -0
  42. package/esm/locales/ja_JP.js +79 -0
  43. package/esm/utils/ajaxUpload.d.ts +1 -1
  44. package/locales/ja_JP/package.json +7 -0
  45. package/package.json +5 -2
package/CHANGELOG.md CHANGED
@@ -1,3 +1,25 @@
1
+ # [5.37.0](https://github.com/rsuite/rsuite/compare/v5.36.0...v5.37.0) (2023-07-07)
2
+
3
+ ### Bug Fixes
4
+
5
+ - **Picker:** pass name prop to underlying input element ([#3275](https://github.com/rsuite/rsuite/issues/3275)) ([3b7cce5](https://github.com/rsuite/rsuite/commit/3b7cce56b90de2502b1f997ae0ff74918fcee718))
6
+ - **RadioGroup:** fix style in picker appearance ([#3274](https://github.com/rsuite/rsuite/issues/3274)) ([f673c85](https://github.com/rsuite/rsuite/commit/f673c85963973d2bbd9fc72c461d3a9718b3f25a))
7
+ - **Uploader:** correct type for status argument of onError callback ([#3273](https://github.com/rsuite/rsuite/issues/3273)) ([cdb3c74](https://github.com/rsuite/rsuite/commit/cdb3c7412e793c1d89958ea6fddabbf91d326575))
8
+
9
+ ### Features
10
+
11
+ - **InputPicker:** add shouldDisplayCreateOption prop ([#3270](https://github.com/rsuite/rsuite/issues/3270)) ([aa52b69](https://github.com/rsuite/rsuite/commit/aa52b690b4aa57918b12fc5a9684d7a59cef4f34))
12
+
13
+ # [5.36.0](https://github.com/rsuite/rsuite/compare/v5.35.1...v5.36.0) (2023-06-30)
14
+
15
+ ### Bug Fixes
16
+
17
+ - **TagInput:** fix tag create during text composing ([#3244](https://github.com/rsuite/rsuite/issues/3244)) ([86451d7](https://github.com/rsuite/rsuite/commit/86451d73e611c6fb1f21e2f57b9ad9757430f219))
18
+
19
+ ### Features
20
+
21
+ - added Japanese locale (ja_JP) ([#3254](https://github.com/rsuite/rsuite/issues/3254)) ([45ea93b](https://github.com/rsuite/rsuite/commit/45ea93bbd0014e88914ca1d2abf5edc2aec0586f))
22
+
1
23
  ## [5.35.1](https://github.com/rsuite/rsuite/compare/v5.35.0...v5.35.1) (2023-06-09)
2
24
 
3
25
  ### Bug Fixes
@@ -1,5 +1,3 @@
1
- @import (reference) '../../Button/styles/index';
2
-
3
1
  .rs-radio-group {
4
2
  display: flex;
5
3
  flex-direction: column;
@@ -15,21 +13,33 @@
15
13
 
16
14
  // Radio Group - picker appearance
17
15
  .rs-radio-group-picker {
16
+ @radio-group-padding-start: 12px;
17
+ @radio-group-padding-end: 12px;
18
+ @radio-group-border-width: 1px;
19
+ @radio-padding-x: 10px;
20
+ @radio-active-underline-width: 2px;
21
+
18
22
  display: inline-flex;
19
23
  color: var(--rs-text-primary);
20
- border: 1px solid var(--rs-border-primary);
24
+ border: @radio-group-border-width solid var(--rs-border-primary);
21
25
  border-radius: @border-radius;
22
- margin-left: 0;
23
26
 
24
27
  .rs-radio-inline {
25
- margin-left: 0;
28
+ padding: 0 @radio-padding-x;
29
+ margin: 0;
30
+
31
+ &:first-child {
32
+ padding-left: @radio-group-padding-start;
33
+ }
34
+
35
+ &:last-child {
36
+ padding-right: @radio-group-padding-end;
37
+ }
26
38
  }
27
39
 
28
40
  .rs-radio-checker {
29
41
  padding: 0;
30
42
  min-height: auto;
31
- border-bottom: 1px solid transparent;
32
- margin: 0 10px;
33
43
  }
34
44
 
35
45
  // Picker Radio group hidden radio.
@@ -38,14 +48,16 @@
38
48
  }
39
49
 
40
50
  .rs-radio-checker > label {
41
- // TODO: Should not inherit Button styles
42
- .rs-btn();
43
- .rs-btn-subtle();
44
-
51
+ display: inline-block;
52
+ font-size: @font-size-base;
53
+ line-height: @line-height-base;
54
+ border-radius: 0;
45
55
  color: var(--rs-text-secondary);
46
56
  background: none;
47
57
  transition: color 0.3s linear;
48
- padding: (@padding-y - 1px) 0;
58
+ padding: (@padding-y - @radio-group-border-width) 0
59
+ (@padding-y - @radio-group-border-width - @radio-active-underline-width);
60
+ border-bottom: @radio-active-underline-width solid transparent;
49
61
 
50
62
  .high-contrast-mode({
51
63
  transition: none;
@@ -59,10 +71,9 @@
59
71
  }
60
72
 
61
73
  .rs-radio-checked .rs-radio-checker {
62
- border-bottom: 2px solid var(--rs-text-active);
63
-
64
74
  > label {
65
75
  color: var(--rs-text-active);
76
+ border-color: var(--rs-text-active);
66
77
  }
67
78
  }
68
79
 
@@ -285,12 +285,13 @@ var Cascader = /*#__PURE__*/_react.default.forwardRef(function (props, ref) {
285
285
  }
286
286
 
287
287
  if (!(0, _shallowEqual.default)(value, focusItemValue)) {
288
+ onSelect === null || onSelect === void 0 ? void 0 : onSelect(focusItem, pathTowardsActiveItem, event);
288
289
  onChange === null || onChange === void 0 ? void 0 : onChange(focusItemValue !== null && focusItemValue !== void 0 ? focusItemValue : null, event);
289
290
  }
290
291
 
291
292
  handleClose();
292
293
  }
293
- }, [childrenKey, data, focusItemValue, handleClose, onChange, pathTowardsActiveItem, setLayer, setValue, value, valueKey]);
294
+ }, [childrenKey, data, focusItemValue, handleClose, onChange, pathTowardsActiveItem, setLayer, setValue, value, valueKey, onSelect]);
294
295
  var onPickerKeyDown = (0, _Picker.useToggleKeyDownEvent)((0, _extends3.default)({
295
296
  toggle: !focusItemValue || !active,
296
297
  triggerRef: triggerRef,
@@ -36,6 +36,15 @@ export interface InputPickerProps<T = ValueType> extends FormControlPickerProps<
36
36
  onFocus?: React.FocusEventHandler;
37
37
  /** Called when the option is created */
38
38
  onCreate?: (value: ValueType, item: ItemDataType, event: React.SyntheticEvent) => void;
39
+ /**
40
+ * Customize whether to display "Create option" action with given textbox value
41
+ *
42
+ * By default, InputPicker hides "Create option" action when textbox value matches any filtered item's [valueKey] property
43
+ *
44
+ * @param searchKeyword Value of the textbox
45
+ * @param filteredData The items filtered by the searchKeyword
46
+ */
47
+ shouldDisplayCreateOption?: (searchKeyword: string, filteredData: InputItemDataType[]) => boolean;
39
48
  }
40
49
  declare const InputPicker: PickerComponent<InputPickerProps>;
41
50
  export default InputPicker;
@@ -100,6 +100,7 @@ var InputPicker = /*#__PURE__*/_react.default.forwardRef(function (props, ref) {
100
100
  _props$menuMaxHeight = props.menuMaxHeight,
101
101
  menuMaxHeight = _props$menuMaxHeight === void 0 ? 320 : _props$menuMaxHeight,
102
102
  creatable = props.creatable,
103
+ shouldDisplayCreateOption = props.shouldDisplayCreateOption,
103
104
  valueProp = props.value,
104
105
  _props$valueKey = props.valueKey,
105
106
  valueKey = _props$valueKey === void 0 ? 'value' : _props$valueKey,
@@ -131,7 +132,7 @@ var InputPicker = /*#__PURE__*/_react.default.forwardRef(function (props, ref) {
131
132
  searchBy = props.searchBy,
132
133
  _props$placement = props.placement,
133
134
  placement = _props$placement === void 0 ? 'bottomStart' : _props$placement,
134
- rest = (0, _objectWithoutPropertiesLoose2.default)(props, ["as", "appearance", "cleanable", "cacheData", "classPrefix", "data", "disabled", "readOnly", "plaintext", "defaultValue", "defaultOpen", "disabledItemValues", "locale", "toggleAs", "style", "searchable", "open", "placeholder", "groupBy", "menuClassName", "menuStyle", "menuAutoWidth", "menuMaxHeight", "creatable", "value", "valueKey", "virtualized", "labelKey", "listProps", "id", "tabIndex", "sort", "renderMenu", "renderExtraFooter", "renderValue", "renderMenuItem", "renderMenuGroup", "onEnter", "onEntered", "onExit", "onExited", "onChange", "onClean", "onCreate", "onSearch", "onSelect", "onOpen", "onClose", "onBlur", "onFocus", "searchBy", "placement"]);
135
+ rest = (0, _objectWithoutPropertiesLoose2.default)(props, ["as", "appearance", "cleanable", "cacheData", "classPrefix", "data", "disabled", "readOnly", "plaintext", "defaultValue", "defaultOpen", "disabledItemValues", "locale", "toggleAs", "style", "searchable", "open", "placeholder", "groupBy", "menuClassName", "menuStyle", "menuAutoWidth", "menuMaxHeight", "creatable", "shouldDisplayCreateOption", "value", "valueKey", "virtualized", "labelKey", "listProps", "id", "tabIndex", "sort", "renderMenu", "renderExtraFooter", "renderValue", "renderMenuItem", "renderMenuGroup", "onEnter", "onEntered", "onExit", "onExited", "onChange", "onClean", "onCreate", "onSearch", "onSelect", "onOpen", "onClose", "onBlur", "onFocus", "searchBy", "placement"]);
135
136
 
136
137
  var _useContext = (0, _react.useContext)(InputPickerContext),
137
138
  multi = _useContext.multi,
@@ -367,6 +368,11 @@ var InputPicker = /*#__PURE__*/_react.default.forwardRef(function (props, ref) {
367
368
  };
368
369
 
369
370
  var handleTagKeyPress = (0, _react.useCallback)(function (event) {
371
+ // When composing, ignore the keypress event.
372
+ if (event.nativeEvent.isComposing) {
373
+ return;
374
+ }
375
+
370
376
  var val = cloneValue();
371
377
  var data = getAllData();
372
378
 
@@ -623,9 +629,9 @@ var InputPicker = /*#__PURE__*/_react.default.forwardRef(function (props, ref) {
623
629
  });
624
630
  var items = (0, _treeUtils.filterNodesOfTree)(getAllData(), checkShouldDisplay);
625
631
 
626
- if (creatable && searchKeyword && !items.find(function (item) {
632
+ if (creatable && (typeof shouldDisplayCreateOption === 'function' ? shouldDisplayCreateOption(searchKeyword, items) : searchKeyword && !items.find(function (item) {
627
633
  return item[valueKey] === searchKeyword;
628
- })) {
634
+ }))) {
629
635
  items = [].concat(items, [createOption(searchKeyword)]);
630
636
  } // Create a tree structure data when set `groupBy`
631
637
 
@@ -249,7 +249,6 @@ var MultiCascader = /*#__PURE__*/_react.default.forwardRef(function (props, ref)
249
249
  (_triggerRef$current = triggerRef.current) === null || _triggerRef$current === void 0 ? void 0 : (_triggerRef$current$u = _triggerRef$current.updatePosition) === null || _triggerRef$current$u === void 0 ? void 0 : _triggerRef$current$u.call(_triggerRef$current);
250
250
  }, [onSelect, getChildren, childrenKey, inline, addFlattenData, addColumn, removeColumnByIndex]);
251
251
  var handleCheck = (0, _react.useCallback)(function (node, event, checked) {
252
- console.log('handleCheck');
253
252
  var nodeValue = node[valueKey];
254
253
  var nextValue = [];
255
254
 
@@ -17,6 +17,7 @@ export interface PickerToggleProps extends ToggleButtonProps {
17
17
  tabIndex?: number;
18
18
  loading?: boolean;
19
19
  editable?: boolean;
20
+ name?: string;
20
21
  inputPlaceholder?: string;
21
22
  inputMask?: (string | RegExp)[];
22
23
  onInputChange?: (value: string, event: React.ChangeEvent) => void;
@@ -80,7 +80,8 @@ var PickerToggle = /*#__PURE__*/_react.default.forwardRef(function (props, ref)
80
80
  _props$caretAs = props.caretAs,
81
81
  caretAs = _props$caretAs === void 0 ? caretComponent : _props$caretAs,
82
82
  label = props.label,
83
- rest = (0, _objectWithoutPropertiesLoose2.default)(props, ["active", "as", "classPrefix", "children", "caret", "className", "disabled", "readOnly", "plaintext", "hasValue", "editable", "loading", "cleanable", "tabIndex", "id", "value", "inputPlaceholder", "inputValue", "inputMask", "onInputChange", "onInputPressEnter", "onInputBlur", "onInputFocus", "onClean", "onFocus", "onBlur", "placement", "caretComponent", "caretAs", "label"]);
83
+ name = props.name,
84
+ rest = (0, _objectWithoutPropertiesLoose2.default)(props, ["active", "as", "classPrefix", "children", "caret", "className", "disabled", "readOnly", "plaintext", "hasValue", "editable", "loading", "cleanable", "tabIndex", "id", "value", "inputPlaceholder", "inputValue", "inputMask", "onInputChange", "onInputPressEnter", "onInputBlur", "onInputFocus", "onClean", "onFocus", "onBlur", "placement", "caretComponent", "caretAs", "label", "name"]);
84
85
  var inputRef = (0, _react.useRef)(null);
85
86
  var comboboxRef = (0, _react.useRef)(null);
86
87
 
@@ -173,11 +174,12 @@ var PickerToggle = /*#__PURE__*/_react.default.forwardRef(function (props, ref)
173
174
  var renderInput = (0, _react.useCallback)(function (ref, props) {
174
175
  return /*#__PURE__*/_react.default.createElement("input", (0, _extends2.default)({
175
176
  ref: (0, _utils.mergeRefs)(inputRef, ref),
177
+ name: name,
176
178
  style: {
177
179
  pointerEvents: editable ? undefined : 'none'
178
180
  }
179
181
  }, props));
180
- }, [editable]);
182
+ }, [editable, name]);
181
183
  var ToggleCaret = (0, _useToggleCaret.default)(placement);
182
184
  var Caret = caretAs !== null && caretAs !== void 0 ? caretAs : ToggleCaret;
183
185
 
@@ -101,8 +101,9 @@ function usePickerClassName(props) {
101
101
  withClassPrefix = _useClassNames.withClassPrefix,
102
102
  merge = _useClassNames.merge;
103
103
 
104
- var classes = merge(className, withClassPrefix(name, appearance, 'toggle-wrapper', (_withClassPrefix = {}, _withClassPrefix["placement-" + (0, _kebabCase.default)((0, _utils.placementPolyfill)(placement))] = placement, _withClassPrefix['read-only'] = readOnly, _withClassPrefix['has-value'] = hasValue, _withClassPrefix.cleanable = cleanable, _withClassPrefix.block = block, _withClassPrefix.disabled = disabled, _withClassPrefix.countable = countable, _withClassPrefix.plaintext = plaintext, _withClassPrefix)));
105
- var usedClassNamePropKeys = Object.keys((0, _omit.default)(props, [].concat(Object.keys(rest || {}), ['disabled', 'readOnly', 'plaintext'])));
104
+ var classes = merge(className, withClassPrefix(name, appearance, 'toggle-wrapper', (_withClassPrefix = {}, _withClassPrefix["placement-" + (0, _kebabCase.default)((0, _utils.placementPolyfill)(placement))] = placement, _withClassPrefix['read-only'] = readOnly, _withClassPrefix['has-value'] = hasValue, _withClassPrefix.cleanable = cleanable, _withClassPrefix.block = block, _withClassPrefix.disabled = disabled, _withClassPrefix.countable = countable, _withClassPrefix.plaintext = plaintext, _withClassPrefix))); // Those props that're used for composing the className
105
+
106
+ var usedClassNamePropKeys = Object.keys((0, _omit.default)(props, [].concat(Object.keys(rest || {}), ['disabled', 'readOnly', 'plaintext', 'name'])));
106
107
  return [classes, usedClassNamePropKeys];
107
108
  }
108
109
 
@@ -2,6 +2,7 @@ import React from 'react';
2
2
  import { UploadTriggerProps } from './UploadTrigger';
3
3
  import { WithAsProps } from '../@types/common';
4
4
  import { UploaderLocale } from '../locales';
5
+ import type { ErrorStatus } from '../utils/ajaxUpload';
5
6
  export interface FileType {
6
7
  /** File Name */
7
8
  name?: string;
@@ -86,8 +87,8 @@ export interface UploaderProps extends WithAsProps, Omit<UploadTriggerProps, 'on
86
87
  onReupload?: (file: FileType) => void;
87
88
  /** In the file list, click the callback function for the uploaded file */
88
89
  onPreview?: (file: FileType, event: React.SyntheticEvent) => void;
89
- /** Upload callback function with erro */
90
- onError?: (status: any, file: FileType, event: ProgressEvent, xhr: XMLHttpRequest) => void;
90
+ /** Upload callback function with error */
91
+ onError?: (status: ErrorStatus, file: FileType, event: ProgressEvent, xhr: XMLHttpRequest) => void;
91
92
  /** callback function after successful upload */
92
93
  onSuccess?: (response: any, file: FileType, event: ProgressEvent, xhr: XMLHttpRequest) => void;
93
94
  /** Callback functions that upload progress change */
@@ -20,6 +20,7 @@ export { default as zhCN } from './zh_CN';
20
20
  export { default as zhTW } from './zh_TW';
21
21
  export { default as faIR } from './fa_IR';
22
22
  export { default as frFR } from './fr_FR';
23
+ export { default as jaJP } from './ja_JP';
23
24
  declare type PickKeys<T> = {
24
25
  [keys in keyof T]?: T[keys];
25
26
  };
@@ -3,7 +3,7 @@
3
3
  var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
4
4
 
5
5
  exports.__esModule = true;
6
- exports.frFR = exports.faIR = exports.zhTW = exports.zhCN = exports.trTR = exports.svSE = exports.ruRU = exports.ptBR = exports.nlNL = exports.koKR = exports.kkKZ = exports.itIT = exports.huHU = exports.fiFI = exports.esES = exports.esAR = exports.enUS = exports.enGB = exports.deDE = exports.daDK = exports.arEG = void 0;
6
+ exports.jaJP = exports.frFR = exports.faIR = exports.zhTW = exports.zhCN = exports.trTR = exports.svSE = exports.ruRU = exports.ptBR = exports.nlNL = exports.koKR = exports.kkKZ = exports.itIT = exports.huHU = exports.fiFI = exports.esES = exports.esAR = exports.enUS = exports.enGB = exports.deDE = exports.daDK = exports.arEG = void 0;
7
7
 
8
8
  var _ar_EG = _interopRequireDefault(require("./ar_EG"));
9
9
 
@@ -87,4 +87,8 @@ exports.faIR = _fa_IR.default;
87
87
 
88
88
  var _fr_FR = _interopRequireDefault(require("./fr_FR"));
89
89
 
90
- exports.frFR = _fr_FR.default;
90
+ exports.frFR = _fr_FR.default;
91
+
92
+ var _ja_JP = _interopRequireDefault(require("./ja_JP"));
93
+
94
+ exports.jaJP = _ja_JP.default;
@@ -0,0 +1,117 @@
1
+ declare const _default: {
2
+ common: {
3
+ loading: string;
4
+ emptyMessage: string;
5
+ };
6
+ Plaintext: {
7
+ unfilled: string;
8
+ notSelected: string;
9
+ notUploaded: string;
10
+ };
11
+ Pagination: {
12
+ more: string;
13
+ prev: string;
14
+ next: string;
15
+ first: string;
16
+ last: string;
17
+ limit: string;
18
+ total: string;
19
+ skip: string;
20
+ };
21
+ Calendar: {
22
+ sunday: string;
23
+ monday: string;
24
+ tuesday: string;
25
+ wednesday: string;
26
+ thursday: string;
27
+ friday: string;
28
+ saturday: string;
29
+ ok: string;
30
+ today: string;
31
+ yesterday: string;
32
+ hours: string;
33
+ minutes: string;
34
+ seconds: string;
35
+ /**
36
+ * Format of the string is based on Unicode Technical Standard #35:
37
+ * https://www.unicode.org/reports/tr35/tr35-dates.html#Date_Field_Symbol_Table
38
+ **/
39
+ formattedMonthPattern: string;
40
+ formattedDayPattern: string;
41
+ dateLocale: any;
42
+ };
43
+ DatePicker: {
44
+ sunday: string;
45
+ monday: string;
46
+ tuesday: string;
47
+ wednesday: string;
48
+ thursday: string;
49
+ friday: string;
50
+ saturday: string;
51
+ ok: string;
52
+ today: string;
53
+ yesterday: string;
54
+ hours: string;
55
+ minutes: string;
56
+ seconds: string;
57
+ /**
58
+ * Format of the string is based on Unicode Technical Standard #35:
59
+ * https://www.unicode.org/reports/tr35/tr35-dates.html#Date_Field_Symbol_Table
60
+ **/
61
+ formattedMonthPattern: string;
62
+ formattedDayPattern: string;
63
+ dateLocale: any;
64
+ };
65
+ DateRangePicker: {
66
+ last7Days: string;
67
+ sunday: string;
68
+ monday: string;
69
+ tuesday: string;
70
+ wednesday: string;
71
+ thursday: string;
72
+ friday: string;
73
+ saturday: string;
74
+ ok: string;
75
+ today: string;
76
+ yesterday: string;
77
+ hours: string;
78
+ minutes: string;
79
+ seconds: string;
80
+ /**
81
+ * Format of the string is based on Unicode Technical Standard #35:
82
+ * https://www.unicode.org/reports/tr35/tr35-dates.html#Date_Field_Symbol_Table
83
+ **/
84
+ formattedMonthPattern: string;
85
+ formattedDayPattern: string;
86
+ dateLocale: any;
87
+ };
88
+ Picker: {
89
+ noResultsText: string;
90
+ placeholder: string;
91
+ searchPlaceholder: string;
92
+ checkAll: string;
93
+ };
94
+ InputPicker: {
95
+ newItem: string;
96
+ createOption: string;
97
+ };
98
+ Uploader: {
99
+ inited: string;
100
+ progress: string;
101
+ error: string;
102
+ complete: string;
103
+ emptyFile: string;
104
+ upload: string;
105
+ };
106
+ CloseButton: {
107
+ closeLabel: string;
108
+ };
109
+ Breadcrumb: {
110
+ expandText: string;
111
+ };
112
+ Toggle: {
113
+ on: string;
114
+ off: string;
115
+ };
116
+ };
117
+ export default _default;
@@ -0,0 +1,89 @@
1
+ "use strict";
2
+
3
+ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
4
+
5
+ exports.__esModule = true;
6
+ exports.default = void 0;
7
+
8
+ var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
9
+
10
+ var _ja = _interopRequireDefault(require("date-fns/locale/ja"));
11
+
12
+ var Calendar = {
13
+ sunday: '日',
14
+ monday: '月',
15
+ tuesday: '火',
16
+ wednesday: '水',
17
+ thursday: '木',
18
+ friday: '金',
19
+ saturday: '土',
20
+ ok: '確認',
21
+ today: '今日',
22
+ yesterday: '昨日',
23
+ hours: '時',
24
+ minutes: '分',
25
+ seconds: '秒',
26
+
27
+ /**
28
+ * Format of the string is based on Unicode Technical Standard #35:
29
+ * https://www.unicode.org/reports/tr35/tr35-dates.html#Date_Field_Symbol_Table
30
+ **/
31
+ formattedMonthPattern: 'yyyy年 MMM',
32
+ formattedDayPattern: 'yyyy年 MMM dd',
33
+ dateLocale: _ja.default
34
+ };
35
+ var _default = {
36
+ common: {
37
+ loading: '読み込み中...',
38
+ emptyMessage: 'データはありません。'
39
+ },
40
+ Plaintext: {
41
+ unfilled: '未記入',
42
+ notSelected: '選択しない',
43
+ notUploaded: 'アップロードされない'
44
+ },
45
+ Pagination: {
46
+ more: 'もっと見る',
47
+ prev: '前へ',
48
+ next: '次へ',
49
+ first: '最初',
50
+ last: '最後',
51
+ limit: '{0} / ページ',
52
+ total: '合計: {0}',
53
+ skip: '{0}に逝く'
54
+ },
55
+ Calendar: Calendar,
56
+ DatePicker: (0, _extends2.default)({}, Calendar),
57
+ DateRangePicker: (0, _extends2.default)({}, Calendar, {
58
+ last7Days: '直近7日間'
59
+ }),
60
+ Picker: {
61
+ noResultsText: '結果は見つかりませんでした。',
62
+ placeholder: '選択',
63
+ searchPlaceholder: '検索',
64
+ checkAll: 'すべて'
65
+ },
66
+ InputPicker: {
67
+ newItem: '新要素',
68
+ createOption: 'オプション作成: "{0}"'
69
+ },
70
+ Uploader: {
71
+ inited: '始動',
72
+ progress: 'アップロード中',
73
+ error: 'エラー',
74
+ complete: '終了',
75
+ emptyFile: '空',
76
+ upload: 'アップロード'
77
+ },
78
+ CloseButton: {
79
+ closeLabel: '終了'
80
+ },
81
+ Breadcrumb: {
82
+ expandText: 'パス表示'
83
+ },
84
+ Toggle: {
85
+ on: '開く',
86
+ off: '閉じる'
87
+ }
88
+ };
89
+ exports.default = _default;
@@ -1,4 +1,4 @@
1
- interface ErrorStatus {
1
+ export interface ErrorStatus {
2
2
  type: 'timeout' | 'server_error' | 'xhr_error';
3
3
  response?: any;
4
4
  }