@douyinfe/semi-ui 2.28.2 → 2.29.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.
- package/dist/css/semi.css +17 -11
- package/dist/css/semi.min.css +1 -1
- package/dist/umd/semi-ui.js +94 -39
- package/dist/umd/semi-ui.js.map +1 -1
- package/dist/umd/semi-ui.min.js +1 -1
- package/dist/umd/semi-ui.min.js.map +1 -1
- package/lib/cjs/datePicker/dateInput.d.ts +1 -1
- package/lib/cjs/datePicker/dateInput.js +15 -6
- package/lib/cjs/datePicker/datePicker.js +4 -4
- package/lib/cjs/datePicker/index.d.ts +1 -0
- package/lib/cjs/datePicker/quickControl.d.ts +3 -2
- package/lib/cjs/datePicker/quickControl.js +1 -1
- package/lib/cjs/form/group.d.ts +2 -0
- package/lib/cjs/form/group.js +16 -5
- package/lib/cjs/locale/interface.d.ts +1 -2
- package/lib/cjs/locale/source/ar.js +7 -8
- package/lib/cjs/locale/source/de.js +4 -5
- package/lib/cjs/locale/source/en_GB.js +4 -5
- package/lib/cjs/locale/source/en_US.js +4 -5
- package/lib/cjs/locale/source/es.js +4 -5
- package/lib/cjs/locale/source/fr.js +4 -5
- package/lib/cjs/locale/source/id_ID.js +4 -5
- package/lib/cjs/locale/source/it.js +4 -5
- package/lib/cjs/locale/source/ja_JP.js +4 -5
- package/lib/cjs/locale/source/ko_KR.js +4 -5
- package/lib/cjs/locale/source/ms_MY.js +4 -5
- package/lib/cjs/locale/source/nl_NL.d.ts +8 -0
- package/lib/cjs/locale/source/nl_NL.js +181 -0
- package/lib/cjs/locale/source/pl_PL.d.ts +8 -0
- package/lib/cjs/locale/source/pl_PL.js +181 -0
- package/lib/cjs/locale/source/pt_BR.js +4 -5
- package/lib/cjs/locale/source/ro.d.ts +1 -2
- package/lib/cjs/locale/source/ro.js +7 -8
- package/lib/cjs/locale/source/ru_RU.js +7 -8
- package/lib/cjs/locale/source/sv_SE.d.ts +7 -0
- package/lib/cjs/locale/source/sv_SE.js +180 -0
- package/lib/cjs/locale/source/th_TH.js +4 -5
- package/lib/cjs/locale/source/tr_TR.js +2 -3
- package/lib/cjs/locale/source/vi_VN.js +4 -5
- package/lib/cjs/locale/source/zh_CN.js +4 -5
- package/lib/cjs/locale/source/zh_TW.js +4 -5
- package/lib/cjs/pagination/index.js +7 -4
- package/lib/cjs/slider/index.js +3 -10
- package/lib/cjs/tooltip/index.js +5 -1
- package/lib/cjs/transfer/index.d.ts +16 -1
- package/lib/cjs/transfer/index.js +37 -3
- package/lib/es/datePicker/dateInput.d.ts +1 -1
- package/lib/es/datePicker/dateInput.js +17 -6
- package/lib/es/datePicker/datePicker.js +4 -4
- package/lib/es/datePicker/index.d.ts +1 -0
- package/lib/es/datePicker/quickControl.d.ts +3 -2
- package/lib/es/datePicker/quickControl.js +1 -1
- package/lib/es/form/group.d.ts +2 -0
- package/lib/es/form/group.js +16 -5
- package/lib/es/locale/interface.d.ts +1 -2
- package/lib/es/locale/source/ar.js +7 -8
- package/lib/es/locale/source/de.js +4 -5
- package/lib/es/locale/source/en_GB.js +4 -5
- package/lib/es/locale/source/en_US.js +4 -5
- package/lib/es/locale/source/es.js +4 -5
- package/lib/es/locale/source/fr.js +4 -5
- package/lib/es/locale/source/id_ID.js +4 -5
- package/lib/es/locale/source/it.js +4 -5
- package/lib/es/locale/source/ja_JP.js +4 -5
- package/lib/es/locale/source/ko_KR.js +4 -5
- package/lib/es/locale/source/ms_MY.js +4 -5
- package/lib/es/locale/source/nl_NL.d.ts +8 -0
- package/lib/es/locale/source/nl_NL.js +173 -0
- package/lib/es/locale/source/pl_PL.d.ts +8 -0
- package/lib/es/locale/source/pl_PL.js +173 -0
- package/lib/es/locale/source/pt_BR.js +4 -5
- package/lib/es/locale/source/ro.d.ts +1 -2
- package/lib/es/locale/source/ro.js +7 -8
- package/lib/es/locale/source/ru_RU.js +7 -8
- package/lib/es/locale/source/sv_SE.d.ts +7 -0
- package/lib/es/locale/source/sv_SE.js +172 -0
- package/lib/es/locale/source/th_TH.js +4 -5
- package/lib/es/locale/source/tr_TR.js +2 -3
- package/lib/es/locale/source/vi_VN.js +4 -5
- package/lib/es/locale/source/zh_CN.js +4 -5
- package/lib/es/locale/source/zh_TW.js +4 -5
- package/lib/es/pagination/index.js +7 -4
- package/lib/es/slider/index.js +3 -10
- package/lib/es/tooltip/index.js +5 -1
- package/lib/es/transfer/index.d.ts +16 -1
- package/lib/es/transfer/index.js +37 -3
- package/package.json +8 -8
|
@@ -75,7 +75,20 @@ interface HeaderConfig {
|
|
|
75
75
|
onAllClick: () => void;
|
|
76
76
|
type: string;
|
|
77
77
|
showButton: boolean;
|
|
78
|
+
num: number;
|
|
79
|
+
allChecked?: boolean;
|
|
78
80
|
}
|
|
81
|
+
declare type SourceHeaderProps = {
|
|
82
|
+
num: number;
|
|
83
|
+
showButton: boolean;
|
|
84
|
+
allChecked: boolean;
|
|
85
|
+
onAllClick: () => void;
|
|
86
|
+
};
|
|
87
|
+
declare type SelectedHeaderProps = {
|
|
88
|
+
num: number;
|
|
89
|
+
showButton: boolean;
|
|
90
|
+
onClear: () => void;
|
|
91
|
+
};
|
|
79
92
|
export interface TransferState {
|
|
80
93
|
data: Array<ResolvedDataItem>;
|
|
81
94
|
selectedItems: Map<number | string, ResolvedDataItem>;
|
|
@@ -105,6 +118,8 @@ export interface TransferProps {
|
|
|
105
118
|
renderSelectedItem?: (item: RenderSelectedItemProps) => React.ReactNode;
|
|
106
119
|
renderSourcePanel?: (sourcePanelProps: SourcePanelProps) => React.ReactNode;
|
|
107
120
|
renderSelectedPanel?: (selectedPanelProps: SelectedPanelProps) => React.ReactNode;
|
|
121
|
+
renderSourceHeader?: (headProps: SourceHeaderProps) => React.ReactNode;
|
|
122
|
+
renderSelectedHeader?: (headProps: SelectedHeaderProps) => React.ReactNode;
|
|
108
123
|
}
|
|
109
124
|
declare class Transfer extends BaseComponent<TransferProps, TransferState> {
|
|
110
125
|
static propTypes: {
|
|
@@ -156,7 +171,7 @@ declare class Transfer extends BaseComponent<TransferProps, TransferState> {
|
|
|
156
171
|
onSelectOrRemove(item: ResolvedDataItem): void;
|
|
157
172
|
onSortEnd(callbackProps: OnSortEndProps): void;
|
|
158
173
|
renderFilter(locale: Locale['Transfer']): JSX.Element;
|
|
159
|
-
renderHeader(headerConfig: HeaderConfig): JSX.Element;
|
|
174
|
+
renderHeader(headerConfig: HeaderConfig): string | number | boolean | React.ReactFragment | JSX.Element;
|
|
160
175
|
renderLeftItem(item: ResolvedDataItem, index: number): string | number | boolean | React.ReactFragment | JSX.Element;
|
|
161
176
|
renderLeft(locale: Locale['Transfer']): string | number | boolean | React.ReactFragment | JSX.Element;
|
|
162
177
|
renderGroupTitle(group: GroupItem, index: number): JSX.Element;
|
|
@@ -222,7 +222,9 @@ class Transfer extends _baseComponent.default {
|
|
|
222
222
|
|
|
223
223
|
renderHeader(headerConfig) {
|
|
224
224
|
const {
|
|
225
|
-
disabled
|
|
225
|
+
disabled,
|
|
226
|
+
renderSourceHeader,
|
|
227
|
+
renderSelectedHeader
|
|
226
228
|
} = this.props;
|
|
227
229
|
const {
|
|
228
230
|
totalContent,
|
|
@@ -236,6 +238,35 @@ class Transfer extends _baseComponent.default {
|
|
|
236
238
|
[`${prefixCls}-right-header`]: type === 'right',
|
|
237
239
|
[`${prefixCls}-left-header`]: type === 'left'
|
|
238
240
|
});
|
|
241
|
+
|
|
242
|
+
if (type === 'left' && typeof renderSourceHeader === 'function') {
|
|
243
|
+
const {
|
|
244
|
+
num,
|
|
245
|
+
showButton,
|
|
246
|
+
allChecked,
|
|
247
|
+
onAllClick
|
|
248
|
+
} = headerConfig;
|
|
249
|
+
return renderSourceHeader({
|
|
250
|
+
num,
|
|
251
|
+
showButton,
|
|
252
|
+
allChecked,
|
|
253
|
+
onAllClick
|
|
254
|
+
});
|
|
255
|
+
}
|
|
256
|
+
|
|
257
|
+
if (type === 'right' && typeof renderSelectedHeader === 'function') {
|
|
258
|
+
const {
|
|
259
|
+
num,
|
|
260
|
+
showButton,
|
|
261
|
+
onAllClick: onClear
|
|
262
|
+
} = headerConfig;
|
|
263
|
+
return renderSelectedHeader({
|
|
264
|
+
num,
|
|
265
|
+
showButton,
|
|
266
|
+
onClear
|
|
267
|
+
});
|
|
268
|
+
}
|
|
269
|
+
|
|
239
270
|
return /*#__PURE__*/_react.default.createElement("div", {
|
|
240
271
|
className: headerCls
|
|
241
272
|
}, /*#__PURE__*/_react.default.createElement("span", {
|
|
@@ -311,7 +342,9 @@ class Transfer extends _baseComponent.default {
|
|
|
311
342
|
allContent: leftContainesNotInSelected ? locale.selectAll : locale.clearSelectAll,
|
|
312
343
|
onAllClick: () => this.foundation.handleAll(leftContainesNotInSelected),
|
|
313
344
|
type: 'left',
|
|
314
|
-
showButton: type !== _constants.strings.TYPE_TREE_TO_LIST
|
|
345
|
+
showButton: type !== _constants.strings.TYPE_TREE_TO_LIST,
|
|
346
|
+
num: showNumber,
|
|
347
|
+
allChecked: !leftContainesNotInSelected
|
|
315
348
|
};
|
|
316
349
|
const inputCom = this.renderFilter(locale);
|
|
317
350
|
const headerCom = this.renderHeader(headerConfig);
|
|
@@ -561,7 +594,8 @@ class Transfer extends _baseComponent.default {
|
|
|
561
594
|
allContent: locale.clear,
|
|
562
595
|
onAllClick: () => this.foundation.handleClear(),
|
|
563
596
|
type: 'right',
|
|
564
|
-
showButton: Boolean(selectedData.length)
|
|
597
|
+
showButton: Boolean(selectedData.length),
|
|
598
|
+
num: selectedData.length
|
|
565
599
|
};
|
|
566
600
|
const headerCom = this.renderHeader(headerConfig);
|
|
567
601
|
const emptyCom = this.renderEmpty('right', emptyContent.right ? emptyContent.right : locale.emptyRight);
|
|
@@ -41,7 +41,7 @@ export default class DateInput extends BaseComponent<DateInputProps, {}> {
|
|
|
41
41
|
rangeInputStartRef: PropTypes.Requireable<object>;
|
|
42
42
|
rangeInputEndRef: PropTypes.Requireable<object>;
|
|
43
43
|
rangeSeparator: PropTypes.Requireable<string>;
|
|
44
|
-
insetInput: PropTypes.Requireable<boolean
|
|
44
|
+
insetInput: PropTypes.Requireable<NonNullable<boolean | object>>;
|
|
45
45
|
insetInputValue: PropTypes.Requireable<object>;
|
|
46
46
|
defaultPickerValue: PropTypes.Requireable<NonNullable<string | number | object>>;
|
|
47
47
|
};
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import _get from "lodash/get";
|
|
2
|
+
|
|
1
3
|
var __rest = this && this.__rest || function (s, e) {
|
|
2
4
|
var t = {};
|
|
3
5
|
|
|
@@ -272,7 +274,8 @@ export default class DateInput extends BaseComponent {
|
|
|
272
274
|
prefixCls,
|
|
273
275
|
rangeInputStartRef,
|
|
274
276
|
rangeInputEndRef,
|
|
275
|
-
density
|
|
277
|
+
density,
|
|
278
|
+
insetInput
|
|
276
279
|
} = this.props;
|
|
277
280
|
|
|
278
281
|
const _isRangeType = type.includes('Range');
|
|
@@ -281,6 +284,14 @@ export default class DateInput extends BaseComponent {
|
|
|
281
284
|
value,
|
|
282
285
|
insetInputValue
|
|
283
286
|
});
|
|
287
|
+
|
|
288
|
+
const {
|
|
289
|
+
dateStart,
|
|
290
|
+
dateEnd,
|
|
291
|
+
timeStart,
|
|
292
|
+
timeEnd
|
|
293
|
+
} = _get(insetInput, 'placeholder', {});
|
|
294
|
+
|
|
284
295
|
const {
|
|
285
296
|
datePlaceholder,
|
|
286
297
|
timePlaceholder
|
|
@@ -293,14 +304,14 @@ export default class DateInput extends BaseComponent {
|
|
|
293
304
|
}, /*#__PURE__*/React.createElement(InsetDateInput, {
|
|
294
305
|
forwardRef: rangeInputStartRef,
|
|
295
306
|
insetInputValue: newInsetInputValue,
|
|
296
|
-
placeholder: datePlaceholder,
|
|
307
|
+
placeholder: dateStart !== null && dateStart !== void 0 ? dateStart : datePlaceholder,
|
|
297
308
|
valuePath: 'monthLeft.dateInput',
|
|
298
309
|
onChange: this.handleInsetInputChange,
|
|
299
310
|
onFocus: e => handleInsetDateFocus(e, 'rangeStart')
|
|
300
311
|
}), /*#__PURE__*/React.createElement(InsetTimeInput, {
|
|
301
312
|
disabled: !newInsetInputValue.monthLeft.dateInput,
|
|
302
313
|
insetInputValue: newInsetInputValue,
|
|
303
|
-
placeholder: timePlaceholder,
|
|
314
|
+
placeholder: timeStart !== null && timeStart !== void 0 ? timeStart : timePlaceholder,
|
|
304
315
|
type: type,
|
|
305
316
|
valuePath: 'monthLeft.timeInput',
|
|
306
317
|
onChange: this.handleInsetInputChange,
|
|
@@ -310,14 +321,14 @@ export default class DateInput extends BaseComponent {
|
|
|
310
321
|
}, density === 'compact' ? null : '-'), /*#__PURE__*/React.createElement(InsetDateInput, {
|
|
311
322
|
forwardRef: rangeInputEndRef,
|
|
312
323
|
insetInputValue: newInsetInputValue,
|
|
313
|
-
placeholder: datePlaceholder,
|
|
324
|
+
placeholder: dateEnd !== null && dateEnd !== void 0 ? dateEnd : datePlaceholder,
|
|
314
325
|
valuePath: 'monthRight.dateInput',
|
|
315
326
|
onChange: this.handleInsetInputChange,
|
|
316
327
|
onFocus: e => handleInsetDateFocus(e, 'rangeEnd')
|
|
317
328
|
}), /*#__PURE__*/React.createElement(InsetTimeInput, {
|
|
318
329
|
disabled: !newInsetInputValue.monthRight.dateInput,
|
|
319
330
|
insetInputValue: newInsetInputValue,
|
|
320
|
-
placeholder: timePlaceholder,
|
|
331
|
+
placeholder: timeEnd !== null && timeEnd !== void 0 ? timeEnd : timePlaceholder,
|
|
321
332
|
type: type,
|
|
322
333
|
valuePath: 'monthRight.timeInput',
|
|
323
334
|
onChange: this.handleInsetInputChange,
|
|
@@ -443,7 +454,7 @@ DateInput.propTypes = {
|
|
|
443
454
|
rangeInputStartRef: PropTypes.object,
|
|
444
455
|
rangeInputEndRef: PropTypes.object,
|
|
445
456
|
rangeSeparator: PropTypes.string,
|
|
446
|
-
insetInput: PropTypes.bool,
|
|
457
|
+
insetInput: PropTypes.oneOfType([PropTypes.bool, PropTypes.object]),
|
|
447
458
|
insetInputValue: PropTypes.object,
|
|
448
459
|
defaultPickerValue: PropTypes.oneOfType([PropTypes.string, PropTypes.number, PropTypes.object, PropTypes.array])
|
|
449
460
|
};
|
|
@@ -603,7 +603,7 @@ export default class DatePicker extends BaseComponent {
|
|
|
603
603
|
insetInputValue,
|
|
604
604
|
value
|
|
605
605
|
} = this.state;
|
|
606
|
-
const
|
|
606
|
+
const props = {
|
|
607
607
|
dateFnsLocale,
|
|
608
608
|
format,
|
|
609
609
|
insetInputValue,
|
|
@@ -618,8 +618,8 @@ export default class DatePicker extends BaseComponent {
|
|
|
618
618
|
density,
|
|
619
619
|
defaultPickerValue
|
|
620
620
|
};
|
|
621
|
-
return insetInput ? /*#__PURE__*/React.createElement(DateInput, Object.assign({},
|
|
622
|
-
insetInput:
|
|
621
|
+
return insetInput ? /*#__PURE__*/React.createElement(DateInput, Object.assign({}, props, {
|
|
622
|
+
insetInput: insetInput
|
|
623
623
|
})) : null;
|
|
624
624
|
}
|
|
625
625
|
|
|
@@ -684,7 +684,7 @@ export default class DatePicker extends BaseComponent {
|
|
|
684
684
|
format,
|
|
685
685
|
multiple,
|
|
686
686
|
validateStatus,
|
|
687
|
-
inputReadOnly: inputReadOnly || insetInput,
|
|
687
|
+
inputReadOnly: inputReadOnly || Boolean(insetInput),
|
|
688
688
|
// onClick: this.handleOpenPanel,
|
|
689
689
|
onBlur: this.handleInputBlur,
|
|
690
690
|
onFocus: this.handleInputFocus,
|
|
@@ -7,5 +7,6 @@ export type { MonthProps } from './month';
|
|
|
7
7
|
export type { MonthsGridProps } from './monthsGrid';
|
|
8
8
|
export type { QuickControlProps } from './quickControl';
|
|
9
9
|
export type { YearAndMonthProps } from './yearAndMonth';
|
|
10
|
+
export type { InsetInputProps } from '@douyinfe/semi-foundation/lib/es/datePicker/inputFoundation';
|
|
10
11
|
declare const _default: React.ForwardRefExoticComponent<DatePickerProps & React.RefAttributes<DatePicker>>;
|
|
11
12
|
export default _default;
|
|
@@ -3,12 +3,13 @@ import PropTypes from 'prop-types';
|
|
|
3
3
|
import { strings } from '@douyinfe/semi-foundation/lib/es/datePicker/constants';
|
|
4
4
|
import { noop } from '@douyinfe/semi-foundation/lib/es/utils/function';
|
|
5
5
|
import { PresetsType, PresetType } from '@douyinfe/semi-foundation/lib/es/datePicker/foundation';
|
|
6
|
+
import { DateInputFoundationProps } from '@douyinfe/semi-foundation/lib/es/datePicker/inputFoundation';
|
|
6
7
|
export interface QuickControlProps {
|
|
7
8
|
presets: PresetsType;
|
|
8
9
|
presetPosition: typeof strings.PRESET_POSITION_SET[number];
|
|
9
10
|
onPresetClick: (preset: PresetType, e: React.MouseEvent) => void;
|
|
10
11
|
type: string;
|
|
11
|
-
insetInput:
|
|
12
|
+
insetInput: DateInputFoundationProps['insetInput'];
|
|
12
13
|
}
|
|
13
14
|
declare class QuickControl extends PureComponent<QuickControlProps> {
|
|
14
15
|
static propTypes: {
|
|
@@ -16,7 +17,7 @@ declare class QuickControl extends PureComponent<QuickControlProps> {
|
|
|
16
17
|
presetPosition: PropTypes.Requireable<"left" | "top" | "right" | "bottom">;
|
|
17
18
|
onPresetClick: PropTypes.Requireable<(...args: any[]) => any>;
|
|
18
19
|
type: PropTypes.Requireable<string>;
|
|
19
|
-
insetInput: PropTypes.Requireable<boolean
|
|
20
|
+
insetInput: PropTypes.Requireable<NonNullable<boolean | object>>;
|
|
20
21
|
};
|
|
21
22
|
static defaultProps: {
|
|
22
23
|
presets: PresetsType;
|
|
@@ -90,7 +90,7 @@ QuickControl.propTypes = {
|
|
|
90
90
|
presetPosition: PropTypes.oneOf(strings.PRESET_POSITION_SET),
|
|
91
91
|
onPresetClick: PropTypes.func,
|
|
92
92
|
type: PropTypes.string,
|
|
93
|
-
insetInput: PropTypes.bool
|
|
93
|
+
insetInput: PropTypes.oneOfType([PropTypes.bool, PropTypes.object])
|
|
94
94
|
};
|
|
95
95
|
QuickControl.defaultProps = {
|
|
96
96
|
presets: [],
|
package/lib/es/form/group.d.ts
CHANGED
|
@@ -6,6 +6,8 @@ import { FormUpdaterContextType } from '@douyinfe/semi-foundation/lib/es/form/in
|
|
|
6
6
|
export interface InputGroupProps extends BacisInputGroupProps {
|
|
7
7
|
label?: LabelProps;
|
|
8
8
|
labelPosition?: 'left' | 'top';
|
|
9
|
+
extraText?: React.ReactNode;
|
|
10
|
+
extraTextPosition?: 'bottom' | 'middle';
|
|
9
11
|
}
|
|
10
12
|
declare class FormInputGroup extends Component<InputGroupProps> {
|
|
11
13
|
static contextType: React.Context<FormUpdaterContextType>;
|
package/lib/es/form/group.js
CHANGED
|
@@ -68,9 +68,11 @@ class FormInputGroup extends Component {
|
|
|
68
68
|
const _a = this.props,
|
|
69
69
|
{
|
|
70
70
|
children,
|
|
71
|
-
label
|
|
71
|
+
label,
|
|
72
|
+
extraText,
|
|
73
|
+
extraTextPosition
|
|
72
74
|
} = _a,
|
|
73
|
-
rest = __rest(_a, ["children", "label"]);
|
|
75
|
+
rest = __rest(_a, ["children", "label", "extraText", "extraTextPosition"]);
|
|
74
76
|
|
|
75
77
|
const updater = this.context;
|
|
76
78
|
const formProps = updater.getFormProps(['labelPosition', 'labelWidth', 'labelAlign', 'showValidateIcon', 'wrapperCol', 'labelCol']);
|
|
@@ -103,11 +105,20 @@ class FormInputGroup extends Component {
|
|
|
103
105
|
showValidateIcon: formProps.showValidateIcon,
|
|
104
106
|
isInInputGroup: true
|
|
105
107
|
});
|
|
108
|
+
const extraCls = classNames(`${prefix}-field-extra`, {
|
|
109
|
+
[`${prefix}-field-extra-string`]: typeof extraText === 'string',
|
|
110
|
+
[`${prefix}-field-extra-middle`]: extraTextPosition === 'middle',
|
|
111
|
+
[`${prefix}-field-extra-bottom`]: extraTextPosition === 'bottom'
|
|
112
|
+
});
|
|
113
|
+
const extraContent = extraText ? /*#__PURE__*/React.createElement("div", {
|
|
114
|
+
className: extraCls,
|
|
115
|
+
"x-semi-prop": "extraText"
|
|
116
|
+
}, extraText) : null;
|
|
106
117
|
let content;
|
|
107
118
|
|
|
108
119
|
switch (true) {
|
|
109
120
|
case !appendCol:
|
|
110
|
-
content = /*#__PURE__*/React.createElement(React.Fragment, null, labelContent, /*#__PURE__*/React.createElement("div", null, inputGroupContent, groupErrorContent));
|
|
121
|
+
content = /*#__PURE__*/React.createElement(React.Fragment, null, labelContent, /*#__PURE__*/React.createElement("div", null, extraTextPosition === 'middle' ? extraContent : null, inputGroupContent, extraTextPosition === 'bottom' ? extraContent : null, groupErrorContent));
|
|
111
122
|
break;
|
|
112
123
|
|
|
113
124
|
case appendCol && labelPosition === 'top':
|
|
@@ -118,13 +129,13 @@ class FormInputGroup extends Component {
|
|
|
118
129
|
}
|
|
119
130
|
}, /*#__PURE__*/React.createElement(Col, Object.assign({}, labelCol, {
|
|
120
131
|
className: labelColCls
|
|
121
|
-
}), labelContent)), /*#__PURE__*/React.createElement(Col, Object.assign({}, wrapperCol), inputGroupContent, groupErrorContent));
|
|
132
|
+
}), labelContent)), /*#__PURE__*/React.createElement(Col, Object.assign({}, wrapperCol), extraTextPosition === 'middle' ? extraContent : null, inputGroupContent, extraTextPosition === 'bottom' ? extraContent : null, groupErrorContent));
|
|
122
133
|
break;
|
|
123
134
|
|
|
124
135
|
case appendCol && labelPosition !== 'top':
|
|
125
136
|
content = /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(Col, Object.assign({}, labelCol, {
|
|
126
137
|
className: labelColCls
|
|
127
|
-
}), labelContent), /*#__PURE__*/React.createElement(Col, Object.assign({}, wrapperCol), inputGroupContent, groupErrorContent));
|
|
138
|
+
}), labelContent), /*#__PURE__*/React.createElement(Col, Object.assign({}, wrapperCol), extraTextPosition === 'middle' ? extraContent : null, inputGroupContent, extraTextPosition === 'bottom' ? extraContent : null, groupErrorContent));
|
|
128
139
|
break;
|
|
129
140
|
|
|
130
141
|
default:
|
|
@@ -3,11 +3,10 @@ const local = {
|
|
|
3
3
|
code: 'ar',
|
|
4
4
|
dateFnsLocale: arSA,
|
|
5
5
|
Pagination: {
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
jumpTo: 'اقفز إلى'
|
|
6
|
+
pageSize: 'عدد العناصر في كل صفحة : ${pageSize} ',
|
|
7
|
+
total: 'مجموع الصفحات: ${total}',
|
|
8
|
+
jumpTo: 'اقفز إلى',
|
|
9
|
+
page: ' الصفحات'
|
|
11
10
|
},
|
|
12
11
|
Modal: {
|
|
13
12
|
confirm: 'تؤكد',
|
|
@@ -115,7 +114,7 @@ const local = {
|
|
|
115
114
|
AM: '${time} صباح',
|
|
116
115
|
PM: '${time} في الظهيرة',
|
|
117
116
|
datestring: '',
|
|
118
|
-
remaining: '${remained}
|
|
117
|
+
remaining: 'الكمية المتبقية: ${remained}'
|
|
119
118
|
},
|
|
120
119
|
Upload: {
|
|
121
120
|
mainText: 'انقر لتحميل الملف أو اسحب الملف إلى هنا',
|
|
@@ -145,8 +144,8 @@ const local = {
|
|
|
145
144
|
clear: 'واضح',
|
|
146
145
|
selectAll: 'اختر الكل',
|
|
147
146
|
clearSelectAll: 'إلغاء تحديد الكل',
|
|
148
|
-
total:
|
|
149
|
-
selected:
|
|
147
|
+
total: "الكمية الإجمالية: ${total}",
|
|
148
|
+
selected: "الكمية المحددة: ${total}"
|
|
150
149
|
},
|
|
151
150
|
Form: {
|
|
152
151
|
optional: '(اختياري)'
|
|
@@ -3,11 +3,10 @@ const local = {
|
|
|
3
3
|
code: 'de',
|
|
4
4
|
dateFnsLocale: de,
|
|
5
5
|
Pagination: {
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
jumpTo: 'Springen zu'
|
|
6
|
+
pageSize: '${pageSize} Artikel / Seite',
|
|
7
|
+
total: '${total} Seiten',
|
|
8
|
+
jumpTo: 'Springen zu',
|
|
9
|
+
page: ' Seiten'
|
|
11
10
|
},
|
|
12
11
|
Modal: {
|
|
13
12
|
confirm: 'Bestätigen',
|
|
@@ -3,11 +3,10 @@ const local = {
|
|
|
3
3
|
code: 'en-GB',
|
|
4
4
|
dateFnsLocale: enGB,
|
|
5
5
|
Pagination: {
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
jumpTo: 'Jump to'
|
|
6
|
+
pageSize: '${pageSize} items / page',
|
|
7
|
+
total: '${total} pages',
|
|
8
|
+
jumpTo: 'Jump to',
|
|
9
|
+
page: ' page'
|
|
11
10
|
},
|
|
12
11
|
Modal: {
|
|
13
12
|
confirm: 'Confirm',
|
|
@@ -3,11 +3,10 @@ const local = {
|
|
|
3
3
|
code: 'en-US',
|
|
4
4
|
dateFnsLocale: enUS,
|
|
5
5
|
Pagination: {
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
jumpTo: 'Jump to'
|
|
6
|
+
pageSize: '${pageSize} items / page',
|
|
7
|
+
total: '${total} pages',
|
|
8
|
+
jumpTo: 'Jump to',
|
|
9
|
+
page: ' page'
|
|
11
10
|
},
|
|
12
11
|
Modal: {
|
|
13
12
|
confirm: 'Confirm',
|
|
@@ -8,11 +8,10 @@ const locale = {
|
|
|
8
8
|
code: 'es',
|
|
9
9
|
dateFnsLocale: es,
|
|
10
10
|
Pagination: {
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
jumpTo: 'Ir a'
|
|
11
|
+
pageSize: '${pageSize} objetos / página',
|
|
12
|
+
total: '${total} páginas',
|
|
13
|
+
jumpTo: 'Ir a',
|
|
14
|
+
page: ' páginas'
|
|
16
15
|
},
|
|
17
16
|
Modal: {
|
|
18
17
|
confirm: 'Aceptar',
|
|
@@ -3,11 +3,10 @@ const local = {
|
|
|
3
3
|
code: 'fr',
|
|
4
4
|
dateFnsLocale: fr,
|
|
5
5
|
Pagination: {
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
jumpTo: 'Sauter à'
|
|
6
|
+
pageSize: '${pageSize} articles/page',
|
|
7
|
+
total: '${total} pages',
|
|
8
|
+
jumpTo: 'Sauter à',
|
|
9
|
+
page: ' pages'
|
|
11
10
|
},
|
|
12
11
|
Modal: {
|
|
13
12
|
confirm: 'Confirmer',
|
|
@@ -3,11 +3,10 @@ const local = {
|
|
|
3
3
|
code: 'id-ID',
|
|
4
4
|
dateFnsLocale: id,
|
|
5
5
|
Pagination: {
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
jumpTo: 'Langsung ke'
|
|
6
|
+
pageSize: '${pageSize} item / halaman',
|
|
7
|
+
total: '${total} halaman',
|
|
8
|
+
jumpTo: 'Langsung ke',
|
|
9
|
+
page: ' halaman'
|
|
11
10
|
},
|
|
12
11
|
Modal: {
|
|
13
12
|
confirm: 'Konfirmasi',
|
|
@@ -3,11 +3,10 @@ const local = {
|
|
|
3
3
|
code: 'it',
|
|
4
4
|
dateFnsLocale: it,
|
|
5
5
|
Pagination: {
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
jumpTo: 'Vai a'
|
|
6
|
+
pageSize: '${pageSize} elementi / pagine',
|
|
7
|
+
total: '${total} pagine',
|
|
8
|
+
jumpTo: 'Vai a',
|
|
9
|
+
page: ' pagine'
|
|
11
10
|
},
|
|
12
11
|
Modal: {
|
|
13
12
|
confirm: 'Conferma',
|
|
@@ -3,11 +3,10 @@ const local = {
|
|
|
3
3
|
code: 'ja-JP',
|
|
4
4
|
dateFnsLocale: ja,
|
|
5
5
|
Pagination: {
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
jumpTo: 'ページへ'
|
|
6
|
+
pageSize: '${pageSize} 個数 / ページ',
|
|
7
|
+
total: '合計 ${total} ページ',
|
|
8
|
+
jumpTo: 'ページへ',
|
|
9
|
+
page: 'ページ'
|
|
11
10
|
},
|
|
12
11
|
Modal: {
|
|
13
12
|
confirm: '確認する',
|
|
@@ -3,11 +3,10 @@ const local = {
|
|
|
3
3
|
code: 'ko-KR',
|
|
4
4
|
dateFnsLocale: ko,
|
|
5
5
|
Pagination: {
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
jumpTo: '이동'
|
|
6
|
+
pageSize: '${pageSize} 기사 / 페이지',
|
|
7
|
+
total: '${total} 페이지',
|
|
8
|
+
jumpTo: '이동',
|
|
9
|
+
page: '페이지'
|
|
11
10
|
},
|
|
12
11
|
Modal: {
|
|
13
12
|
confirm: '확인',
|
|
@@ -3,11 +3,10 @@ const local = {
|
|
|
3
3
|
code: 'ms-MY',
|
|
4
4
|
dateFnsLocale: ms,
|
|
5
5
|
Pagination: {
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
jumpTo: 'Lompat ke'
|
|
6
|
+
pageSize: ' ${pageSize} items / halaman',
|
|
7
|
+
total: '${total} halaman',
|
|
8
|
+
jumpTo: 'Lompat ke',
|
|
9
|
+
page: ' halaman'
|
|
11
10
|
},
|
|
12
11
|
Modal: {
|
|
13
12
|
confirm: 'Sahkan',
|