awing-library 2.1.75-beta → 2.1.76-beta
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.
|
@@ -33,8 +33,10 @@ var jsx_runtime_1 = require("react/jsx-runtime");
|
|
|
33
33
|
var BasicDataForm_1 = __importDefault(require("./BasicDataForm"));
|
|
34
34
|
var i18n_1 = __importDefault(require("../../i18n"));
|
|
35
35
|
var react_i18next_1 = require("react-i18next");
|
|
36
|
+
var x_date_pickers_1 = require("@mui/x-date-pickers");
|
|
37
|
+
var AdapterMoment_1 = require("@mui/x-date-pickers/AdapterMoment");
|
|
36
38
|
function BasicDataForm(props) {
|
|
37
|
-
return ((0, jsx_runtime_1.jsx)(react_i18next_1.I18nextProvider, { i18n: i18n_1.default, children: (0, jsx_runtime_1.jsx)(BasicDataForm_1.default, __assign({}, props)) }));
|
|
39
|
+
return ((0, jsx_runtime_1.jsx)(react_i18next_1.I18nextProvider, { i18n: i18n_1.default, children: (0, jsx_runtime_1.jsx)(x_date_pickers_1.LocalizationProvider, { dateAdapter: AdapterMoment_1.AdapterMoment, children: (0, jsx_runtime_1.jsx)(BasicDataForm_1.default, __assign({}, props)) }) }));
|
|
38
40
|
}
|
|
39
41
|
exports.BasicDataForm = BasicDataForm;
|
|
40
42
|
__exportStar(require("./interface"), exports);
|
|
@@ -41,8 +41,8 @@ var BarLineComponent = function (props) {
|
|
|
41
41
|
bodySpacing: 8,
|
|
42
42
|
callbacks: {
|
|
43
43
|
title: function (tooltipItems) {
|
|
44
|
-
//Sửa lại với thời gian theo giờ
|
|
45
44
|
var _a;
|
|
45
|
+
//Sửa lại với thời gian theo giờ
|
|
46
46
|
var timeFormat = (_a = tooltipItems[0].raw) === null || _a === void 0 ? void 0 : _a.x;
|
|
47
47
|
var isTimelineHour = (timeFormat === null || timeFormat === void 0 ? void 0 : timeFormat.length) > 8;
|
|
48
48
|
if (isTimelineHour) {
|
|
@@ -93,16 +93,7 @@ var BarLineComponent = function (props) {
|
|
|
93
93
|
},
|
|
94
94
|
scales: {
|
|
95
95
|
x: optionsDefault
|
|
96
|
-
? {
|
|
97
|
-
type: 'timeseries',
|
|
98
|
-
time: {
|
|
99
|
-
parser: 'YYYYMMDD',
|
|
100
|
-
},
|
|
101
|
-
unit: 'month',
|
|
102
|
-
displayFormats: {
|
|
103
|
-
month: 'DD/MM'
|
|
104
|
-
},
|
|
105
|
-
}
|
|
96
|
+
? {}
|
|
106
97
|
: {
|
|
107
98
|
type: 'time',
|
|
108
99
|
display: true,
|