@lemon-fe/kits 1.4.14-alpha.2 → 1.4.14
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/es/app-provider/index.d.ts +1 -12
- package/es/app-provider/index.js +15 -51
- package/es/hooks/use-batch-operator/index.d.ts +0 -4
- package/es/hooks/use-batch-operator/index.js +28 -51
- package/es/hooks/use-batch-operator/locale/en_US.js +1 -2
- package/es/hooks/use-batch-operator/locale/locale.d.ts +0 -1
- package/es/hooks/use-batch-operator/locale/vi.js +1 -2
- package/es/hooks/use-batch-operator/locale/zh_CN.js +1 -2
- package/es/hooks/use-batch-operator/locale/zh_Hant_HK.js +1 -2
- package/es/locale/en_US.js +1 -2
- package/es/locale/locale.d.ts +0 -1
- package/es/locale/vi.d.ts +2 -2
- package/es/locale/vi.js +3 -4
- package/es/locale/zh_CN.js +1 -2
- package/es/locale/zh_Hant_HK.js +1 -2
- package/package.json +5 -5
|
@@ -1,20 +1,9 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { type ReactNode } from 'react';
|
|
2
2
|
import type { Locale } from '../locale/locale';
|
|
3
|
-
import { message, Modal } from '@lemon-fe/components';
|
|
4
|
-
import { type HooksOpts } from '@lemon-fe/hooks';
|
|
5
3
|
declare type AppConfigProps = {
|
|
6
4
|
children?: ReactNode | null;
|
|
7
5
|
locale?: Locale;
|
|
8
|
-
hooksConfig?: Partial<HooksOpts>;
|
|
9
6
|
};
|
|
10
|
-
declare type BatchOperatorConfig = {
|
|
11
|
-
openError?: (err: Error) => void;
|
|
12
|
-
};
|
|
13
|
-
export declare const AppContext: React.Context<{
|
|
14
|
-
message: ReturnType<typeof message.useMessage>[0];
|
|
15
|
-
modal: ReturnType<typeof Modal.useModal>[0];
|
|
16
|
-
batchOperatorConfig?: BatchOperatorConfig | undefined;
|
|
17
|
-
}>;
|
|
18
7
|
declare function AppProvider(props: AppConfigProps): JSX.Element;
|
|
19
8
|
declare namespace AppProvider {
|
|
20
9
|
var useApp;
|
package/es/app-provider/index.js
CHANGED
|
@@ -1,22 +1,15 @@
|
|
|
1
|
-
function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
|
|
2
|
-
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
3
|
-
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
4
|
-
function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
5
|
-
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : String(i); }
|
|
6
|
-
function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
7
1
|
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
|
|
8
2
|
function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
|
9
3
|
function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
|
|
10
4
|
function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }
|
|
11
5
|
function _iterableToArrayLimit(r, l) { var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t.return && (u = t.return(), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }
|
|
12
6
|
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
13
|
-
import React, { createContext, useMemo, useContext
|
|
14
|
-
import { PageLoading, message, Modal, ConfigProvider, Result, Button
|
|
7
|
+
import React, { createContext, useMemo, useContext } from 'react';
|
|
8
|
+
import { PageLoading, message, Modal, ConfigProvider, Result, Button } from '@lemon-fe/components';
|
|
15
9
|
import { HooksConfigProvider } from '@lemon-fe/hooks';
|
|
16
|
-
import { isRequestError } from '@lemon-fe/utils';
|
|
17
10
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
18
11
|
import { jsxs as _jsxs } from "react/jsx-runtime";
|
|
19
|
-
|
|
12
|
+
var AppContext = /*#__PURE__*/createContext({
|
|
20
13
|
message: message,
|
|
21
14
|
modal: Modal
|
|
22
15
|
});
|
|
@@ -32,44 +25,15 @@ export default function AppProvider(props) {
|
|
|
32
25
|
_Modal$useModal2 = _slicedToArray(_Modal$useModal, 2),
|
|
33
26
|
modalApi = _Modal$useModal2[0],
|
|
34
27
|
modalContextHolder = _Modal$useModal2[1];
|
|
35
|
-
var
|
|
36
|
-
var locale = props.locale || localeCtx;
|
|
37
|
-
var _showError = useCallback(function (err) {
|
|
38
|
-
if (isRequestError(err)) {
|
|
39
|
-
if (err.message.length > 30) {
|
|
40
|
-
modalApi.error({
|
|
41
|
-
title: locale === null || locale === void 0 ? void 0 : locale.Common.requestErrorTitle,
|
|
42
|
-
width: 420,
|
|
43
|
-
content: /*#__PURE__*/_jsx(RequestErrorMessage, {
|
|
44
|
-
error: err
|
|
45
|
-
})
|
|
46
|
-
});
|
|
47
|
-
} else {
|
|
48
|
-
messageApi.error( /*#__PURE__*/_jsx(RequestErrorMessage, {
|
|
49
|
-
error: err
|
|
50
|
-
}));
|
|
51
|
-
}
|
|
52
|
-
} else {
|
|
53
|
-
messageApi.warning( /*#__PURE__*/_jsx(RequestErrorMessage, {
|
|
54
|
-
error: err
|
|
55
|
-
}));
|
|
56
|
-
}
|
|
57
|
-
}, []);
|
|
58
|
-
var batchOperatorConfig = useMemo(function () {
|
|
59
|
-
var result = {
|
|
60
|
-
openError: _showError
|
|
61
|
-
};
|
|
62
|
-
return result;
|
|
63
|
-
}, []);
|
|
28
|
+
var locale = useContext(ConfigProvider.ConfigContext).locale;
|
|
64
29
|
var appContext = useMemo(function () {
|
|
65
30
|
return {
|
|
66
31
|
message: messageApi,
|
|
67
|
-
modal: modalApi
|
|
68
|
-
batchOperatorConfig: batchOperatorConfig
|
|
32
|
+
modal: modalApi
|
|
69
33
|
};
|
|
70
|
-
}, [
|
|
34
|
+
}, []);
|
|
71
35
|
var hooksConfig = useMemo(function () {
|
|
72
|
-
var result =
|
|
36
|
+
var result = {
|
|
73
37
|
showToast: function showToast() {
|
|
74
38
|
var _locale$Common;
|
|
75
39
|
return messageApi.loading(locale === null || locale === void 0 || (_locale$Common = locale.Common) === null || _locale$Common === void 0 ? void 0 : _locale$Common.waitingText, 0);
|
|
@@ -82,7 +46,9 @@ export default function AppProvider(props) {
|
|
|
82
46
|
},
|
|
83
47
|
showError: function showError(err) {
|
|
84
48
|
console.error(err);
|
|
85
|
-
|
|
49
|
+
if (err && typeof err.message === 'string') {
|
|
50
|
+
messageApi.error(err.message);
|
|
51
|
+
}
|
|
86
52
|
},
|
|
87
53
|
setPrimaryColor: function setPrimaryColor(color) {
|
|
88
54
|
ConfigProvider.config({
|
|
@@ -92,23 +58,21 @@ export default function AppProvider(props) {
|
|
|
92
58
|
});
|
|
93
59
|
},
|
|
94
60
|
errorResult: function errorResult(err, refresh) {
|
|
95
|
-
var
|
|
61
|
+
var _props$locale;
|
|
96
62
|
return /*#__PURE__*/_jsx(Result, {
|
|
97
63
|
status: "500",
|
|
98
64
|
title: "500",
|
|
99
|
-
subTitle:
|
|
100
|
-
error: err
|
|
101
|
-
}),
|
|
65
|
+
subTitle: err.message,
|
|
102
66
|
extra: /*#__PURE__*/_jsx(Button, {
|
|
103
67
|
type: "primary",
|
|
104
68
|
onClick: refresh,
|
|
105
|
-
children: locale === null || locale === void 0 || (
|
|
69
|
+
children: (_props$locale = props.locale) === null || _props$locale === void 0 || (_props$locale = _props$locale.Common) === null || _props$locale === void 0 ? void 0 : _props$locale.reloadPageText
|
|
106
70
|
})
|
|
107
71
|
});
|
|
108
72
|
}
|
|
109
|
-
}
|
|
73
|
+
};
|
|
110
74
|
return result;
|
|
111
|
-
}, [props.
|
|
75
|
+
}, [props.locale, messageApi]);
|
|
112
76
|
return /*#__PURE__*/_jsxs(AppContext.Provider, {
|
|
113
77
|
value: appContext,
|
|
114
78
|
children: [messageContextHolder, modalContextHolder, /*#__PURE__*/_jsx(HooksConfigProvider, {
|
|
@@ -85,10 +85,6 @@ interface Props<RecordType extends Record<string, any> = Record<string, any>, Re
|
|
|
85
85
|
* @description 打开立即执行
|
|
86
86
|
*/
|
|
87
87
|
executeWhenOpen?: boolean;
|
|
88
|
-
/**
|
|
89
|
-
* @description 显示完整信息,可点击
|
|
90
|
-
*/
|
|
91
|
-
openError?: (err: Error) => void;
|
|
92
88
|
}
|
|
93
89
|
export default function useBatchOperate<RecordType extends Record<string, any> = Record<string, any>, ResultType = any, ParamsType = any>(options: Props<RecordType, ResultType, ParamsType>): {
|
|
94
90
|
run: (rows: RecordType[], otherOpts?: Partial<Props<RecordType, ResultType, ParamsType>>) => void;
|
|
@@ -27,10 +27,8 @@ function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.g
|
|
|
27
27
|
function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
28
28
|
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : String(i); }
|
|
29
29
|
function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
30
|
-
import { Tooltip } from 'antd';
|
|
31
30
|
import React, { useContext, Component, createRef } from 'react';
|
|
32
31
|
import { unmountComponentAtNode, render } from 'react-dom';
|
|
33
|
-
import { AppContext } from "../../app-provider";
|
|
34
32
|
import defaultLocale from "./locale/zh_CN";
|
|
35
33
|
import { ConfigProvider, Modal, Row, Spin, Typography } from '@lemon-fe/components';
|
|
36
34
|
import { Actions, ComponentConfigureContext, DataGrid, Icons, Layout, Section } from '@lemon-fe/components';
|
|
@@ -51,39 +49,6 @@ var BatchOperate = /*#__PURE__*/function (_Component) {
|
|
|
51
49
|
_defineProperty(_assertThisInitialized(_this), "resultsSubject", new Subject());
|
|
52
50
|
_defineProperty(_assertThisInitialized(_this), "mounted", true);
|
|
53
51
|
_defineProperty(_assertThisInitialized(_this), "locale", defaultLocale);
|
|
54
|
-
_defineProperty(_assertThisInitialized(_this), "renderIconTip", function (type, err) {
|
|
55
|
-
if (!(err instanceof Error)) {
|
|
56
|
-
return /*#__PURE__*/_jsx(Icons.Tip, {
|
|
57
|
-
type: type,
|
|
58
|
-
style: {
|
|
59
|
-
marginRight: 2
|
|
60
|
-
}
|
|
61
|
-
});
|
|
62
|
-
}
|
|
63
|
-
var openError = _this.props.openError;
|
|
64
|
-
var clickToShowMore = _this.locale.clickToShowMore;
|
|
65
|
-
if (openError && type === 'error') {
|
|
66
|
-
return /*#__PURE__*/_jsx(Tooltip, {
|
|
67
|
-
title: clickToShowMore,
|
|
68
|
-
children: /*#__PURE__*/_jsx(Icons.Tip, {
|
|
69
|
-
type: type,
|
|
70
|
-
style: {
|
|
71
|
-
marginRight: 2
|
|
72
|
-
},
|
|
73
|
-
onClick: function onClick() {
|
|
74
|
-
return openError(err);
|
|
75
|
-
}
|
|
76
|
-
})
|
|
77
|
-
});
|
|
78
|
-
} else {
|
|
79
|
-
return /*#__PURE__*/_jsx(Icons.Tip, {
|
|
80
|
-
type: type,
|
|
81
|
-
style: {
|
|
82
|
-
marginRight: 2
|
|
83
|
-
}
|
|
84
|
-
});
|
|
85
|
-
}
|
|
86
|
-
});
|
|
87
52
|
_defineProperty(_assertThisInitialized(_this), "getRowKey", function (record) {
|
|
88
53
|
var rowKey = _this.props.rowKey;
|
|
89
54
|
var result = typeof rowKey === 'function' ? rowKey(record) : get(record, rowKey);
|
|
@@ -266,7 +231,12 @@ var BatchOperate = /*#__PURE__*/function (_Component) {
|
|
|
266
231
|
style: {
|
|
267
232
|
flex: 1
|
|
268
233
|
},
|
|
269
|
-
children: [
|
|
234
|
+
children: [/*#__PURE__*/_jsx(Icons.Tip, {
|
|
235
|
+
type: "warning",
|
|
236
|
+
style: {
|
|
237
|
+
marginRight: 2
|
|
238
|
+
}
|
|
239
|
+
}), /*#__PURE__*/_jsxs("span", {
|
|
270
240
|
children: [error.message, " "]
|
|
271
241
|
})]
|
|
272
242
|
}), /*#__PURE__*/_jsx("a", {
|
|
@@ -287,7 +257,12 @@ var BatchOperate = /*#__PURE__*/function (_Component) {
|
|
|
287
257
|
ellipsis: {
|
|
288
258
|
tooltip: error.message
|
|
289
259
|
},
|
|
290
|
-
children: [
|
|
260
|
+
children: [/*#__PURE__*/_jsx(Icons.Tip, {
|
|
261
|
+
type: "error",
|
|
262
|
+
style: {
|
|
263
|
+
marginRight: 2
|
|
264
|
+
}
|
|
265
|
+
}), /*#__PURE__*/_jsx("span", {
|
|
291
266
|
children: error.message
|
|
292
267
|
})]
|
|
293
268
|
}), /*#__PURE__*/_jsx(Icons.Reload, {
|
|
@@ -413,7 +388,6 @@ var BatchOperate = /*#__PURE__*/function (_Component) {
|
|
|
413
388
|
}, {
|
|
414
389
|
key: "getProcess",
|
|
415
390
|
value: function getProcess() {
|
|
416
|
-
var _this4 = this;
|
|
417
391
|
var _this$props2 = this.props,
|
|
418
392
|
process = _this$props2.process,
|
|
419
393
|
_handler = _this$props2.handler,
|
|
@@ -450,7 +424,12 @@ var BatchOperate = /*#__PURE__*/function (_Component) {
|
|
|
450
424
|
ellipsis: {
|
|
451
425
|
tooltip: error.message
|
|
452
426
|
},
|
|
453
|
-
children: [
|
|
427
|
+
children: [/*#__PURE__*/_jsx(Icons.Tip, {
|
|
428
|
+
type: "error",
|
|
429
|
+
style: {
|
|
430
|
+
marginRight: 2
|
|
431
|
+
}
|
|
432
|
+
}), /*#__PURE__*/_jsx("span", {
|
|
454
433
|
children: error.message
|
|
455
434
|
})]
|
|
456
435
|
}), /*#__PURE__*/_jsx(Icons.Reload, {
|
|
@@ -508,7 +487,7 @@ var BatchOperate = /*#__PURE__*/function (_Component) {
|
|
|
508
487
|
}, {
|
|
509
488
|
key: "getCols",
|
|
510
489
|
value: function getCols() {
|
|
511
|
-
var
|
|
490
|
+
var _this4 = this;
|
|
512
491
|
var _this$props3 = this.props,
|
|
513
492
|
columns = _this$props3.columns,
|
|
514
493
|
rowKey = _this$props3.rowKey;
|
|
@@ -551,13 +530,13 @@ var BatchOperate = /*#__PURE__*/function (_Component) {
|
|
|
551
530
|
api.applyTransaction({
|
|
552
531
|
remove: [node.data]
|
|
553
532
|
});
|
|
554
|
-
|
|
533
|
+
_this4.setState(function (prev) {
|
|
555
534
|
var results = prev.results,
|
|
556
535
|
data = prev.data;
|
|
557
536
|
var newData = _toConsumableArray(data);
|
|
558
537
|
var newResults = results;
|
|
559
538
|
newData.splice(data.findIndex(function (item) {
|
|
560
|
-
return
|
|
539
|
+
return _this4.getRowKey(item) === node.id;
|
|
561
540
|
}), 1);
|
|
562
541
|
if (results.has(key)) {
|
|
563
542
|
newResults = new Map(results);
|
|
@@ -632,7 +611,7 @@ var BatchOperate = /*#__PURE__*/function (_Component) {
|
|
|
632
611
|
}, {
|
|
633
612
|
key: "render",
|
|
634
613
|
value: function render() {
|
|
635
|
-
var
|
|
614
|
+
var _this5 = this,
|
|
636
615
|
_results$get;
|
|
637
616
|
var _this$props4 = this.props,
|
|
638
617
|
modalTitle = _this$props4.modalTitle,
|
|
@@ -661,10 +640,10 @@ var BatchOperate = /*#__PURE__*/function (_Component) {
|
|
|
661
640
|
centered: true,
|
|
662
641
|
open: open,
|
|
663
642
|
onCancel: function onCancel() {
|
|
664
|
-
|
|
643
|
+
_this5.setState({
|
|
665
644
|
paused: true
|
|
666
645
|
}, function () {
|
|
667
|
-
|
|
646
|
+
_this5.handleClose();
|
|
668
647
|
});
|
|
669
648
|
},
|
|
670
649
|
footer: typeof footer === 'function' ? footer(data, {
|
|
@@ -672,7 +651,7 @@ var BatchOperate = /*#__PURE__*/function (_Component) {
|
|
|
672
651
|
}) : footer,
|
|
673
652
|
maskClosable: false,
|
|
674
653
|
afterClose: function afterClose() {
|
|
675
|
-
|
|
654
|
+
_this5.setState({
|
|
676
655
|
results: new Map(),
|
|
677
656
|
paused: true,
|
|
678
657
|
active: undefined,
|
|
@@ -696,7 +675,7 @@ var BatchOperate = /*#__PURE__*/function (_Component) {
|
|
|
696
675
|
disabled: data.length <= 0,
|
|
697
676
|
text: suspendExecText,
|
|
698
677
|
onClick: function onClick() {
|
|
699
|
-
|
|
678
|
+
_this5.setState({
|
|
700
679
|
paused: true
|
|
701
680
|
});
|
|
702
681
|
}
|
|
@@ -728,8 +707,6 @@ var BatchOperate = /*#__PURE__*/function (_Component) {
|
|
|
728
707
|
export default function useBatchOperate(options) {
|
|
729
708
|
var ctx = useContext(ConfigProvider.ConfigContext);
|
|
730
709
|
var componentCtx = useContext(ComponentConfigureContext);
|
|
731
|
-
var _useContext = useContext(AppContext),
|
|
732
|
-
batchOperatorConfig = _useContext.batchOperatorConfig;
|
|
733
710
|
var run = function run(rows) {
|
|
734
711
|
var otherOpts = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
|
|
735
712
|
var root = document.createDocumentFragment();
|
|
@@ -741,9 +718,9 @@ export default function useBatchOperate(options) {
|
|
|
741
718
|
iconPrefixCls: iconPrefixCls,
|
|
742
719
|
children: /*#__PURE__*/_jsx(ComponentConfigureContext.Provider, {
|
|
743
720
|
value: componentCtx,
|
|
744
|
-
children: /*#__PURE__*/_jsx(BatchOperate, _objectSpread(_objectSpread(_objectSpread(
|
|
721
|
+
children: /*#__PURE__*/_jsx(BatchOperate, _objectSpread(_objectSpread(_objectSpread({
|
|
745
722
|
rows: rows
|
|
746
|
-
}, options), otherOpts),
|
|
723
|
+
}, options), otherOpts), {}, {
|
|
747
724
|
locale: locale,
|
|
748
725
|
afterClose: function afterClose() {
|
|
749
726
|
unmountComponentAtNode(root);
|
|
@@ -8,7 +8,6 @@ var locale = {
|
|
|
8
8
|
suspendExecText: 'Tạm dừng thực thi',
|
|
9
9
|
resultStateText: 'Trạng thái xử lý',
|
|
10
10
|
pendingStateText: 'Chờ xử lý',
|
|
11
|
-
progressStateText: 'Đang trong quá trình thực hiện'
|
|
12
|
-
clickToShowMore: 'Nhấn để hiển thị thêm'
|
|
11
|
+
progressStateText: 'Đang trong quá trình thực hiện'
|
|
13
12
|
};
|
|
14
13
|
export default locale;
|
package/es/locale/en_US.js
CHANGED
|
@@ -16,8 +16,7 @@ var enUS = _objectSpread(_objectSpread({}, componentsEnUS), {}, {
|
|
|
16
16
|
modalDefaultTitle: 'Tip',
|
|
17
17
|
backText: 'Back',
|
|
18
18
|
waitingText: 'Loading',
|
|
19
|
-
reloadPageText: 'Reload'
|
|
20
|
-
requestErrorTitle: 'Request Error'
|
|
19
|
+
reloadPageText: 'Reload'
|
|
21
20
|
}
|
|
22
21
|
});
|
|
23
22
|
export default enUS;
|
package/es/locale/locale.d.ts
CHANGED
package/es/locale/vi.d.ts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import type { Locale } from './locale';
|
|
2
|
-
declare const
|
|
3
|
-
export default
|
|
2
|
+
declare const enUS: Locale;
|
|
3
|
+
export default enUS;
|
package/es/locale/vi.js
CHANGED
|
@@ -8,7 +8,7 @@ import { default as UseBacthOperatorLocale } from "../hooks/use-batch-operator/l
|
|
|
8
8
|
import { default as BasicLayoutLocale } from "../layouts/basic-layout/locale/vi";
|
|
9
9
|
import { default as MicroLayoutLocale } from "../layouts/micro-layout/locale/vi";
|
|
10
10
|
import componentsVi from '@lemon-fe/components/es/locale/vi';
|
|
11
|
-
var
|
|
11
|
+
var enUS = _objectSpread(_objectSpread({}, componentsVi), {}, {
|
|
12
12
|
UseBatchOperator: UseBacthOperatorLocale,
|
|
13
13
|
BasicLayout: BasicLayoutLocale,
|
|
14
14
|
MicroLayout: MicroLayoutLocale,
|
|
@@ -16,8 +16,7 @@ var vi = _objectSpread(_objectSpread({}, componentsVi), {}, {
|
|
|
16
16
|
backText: 'Quay lại',
|
|
17
17
|
waitingText: 'Đang tải',
|
|
18
18
|
reloadPageText: 'Tải lại trang',
|
|
19
|
-
modalDefaultTitle: 'Thông báo'
|
|
20
|
-
requestErrorTitle: 'Lỗi Yêu Cầu'
|
|
19
|
+
modalDefaultTitle: 'Thông báo'
|
|
21
20
|
}
|
|
22
21
|
});
|
|
23
|
-
export default
|
|
22
|
+
export default enUS;
|
package/es/locale/zh_CN.js
CHANGED
package/es/locale/zh_Hant_HK.js
CHANGED
|
@@ -16,8 +16,7 @@ var enUS = _objectSpread(_objectSpread({}, componentsZhHantHk), {}, {
|
|
|
16
16
|
backText: '返回',
|
|
17
17
|
waitingText: '加載中',
|
|
18
18
|
reloadPageText: '重新加載',
|
|
19
|
-
modalDefaultTitle: '提示'
|
|
20
|
-
requestErrorTitle: '請求錯誤'
|
|
19
|
+
modalDefaultTitle: '提示'
|
|
21
20
|
}
|
|
22
21
|
});
|
|
23
22
|
export default enUS;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lemon-fe/kits",
|
|
3
|
-
"version": "1.4.14
|
|
3
|
+
"version": "1.4.14",
|
|
4
4
|
"description": "> TODO: description",
|
|
5
5
|
"homepage": "",
|
|
6
6
|
"license": "ISC",
|
|
@@ -24,9 +24,9 @@
|
|
|
24
24
|
},
|
|
25
25
|
"dependencies": {
|
|
26
26
|
"@ant-design/icons": "^4.7.0",
|
|
27
|
-
"@lemon-fe/components": "^1.4.14
|
|
28
|
-
"@lemon-fe/hooks": "^1.4.
|
|
29
|
-
"@lemon-fe/utils": "^1.
|
|
27
|
+
"@lemon-fe/components": "^1.4.14",
|
|
28
|
+
"@lemon-fe/hooks": "^1.4.0",
|
|
29
|
+
"@lemon-fe/utils": "^1.3.0",
|
|
30
30
|
"ag-grid-community": "29.2.0",
|
|
31
31
|
"antd": "4.24.8",
|
|
32
32
|
"classnames": "^2.2.6",
|
|
@@ -46,5 +46,5 @@
|
|
|
46
46
|
"publishConfig": {
|
|
47
47
|
"registry": "https://registry.npmjs.org"
|
|
48
48
|
},
|
|
49
|
-
"gitHead": "
|
|
49
|
+
"gitHead": "b2acd15b9728c17e93306c9f6c6ade2933b51dc7"
|
|
50
50
|
}
|