awing-library 2.1.133-beta → 2.1.134-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.
|
@@ -56,8 +56,11 @@ var ImportTemplate = function () {
|
|
|
56
56
|
fileName: tempFile === null || tempFile === void 0 ? void 0 : tempFile.name,
|
|
57
57
|
});
|
|
58
58
|
};
|
|
59
|
-
var handleChangeFormData = (0, react_1.useCallback)(function (obj) {
|
|
60
|
-
setBussinessData(function (prev) {
|
|
59
|
+
var handleChangeFormData = (0, react_1.useCallback)(function (obj, valid, key) {
|
|
60
|
+
setBussinessData(function (prev) {
|
|
61
|
+
var _a;
|
|
62
|
+
return (__assign(__assign({}, prev), (_a = {}, _a[key] = obj[key], _a.id = prev.id || (obj === null || obj === void 0 ? void 0 : obj.id) || '0', _a.directoryId = (obj === null || obj === void 0 ? void 0 : obj.directoryId) || rootDirectoryId, _a)));
|
|
63
|
+
});
|
|
61
64
|
}, [rootDirectoryId]);
|
|
62
65
|
return ((0, jsx_runtime_1.jsxs)(ClassicDrawer_1.default, { title: t('TemplateManagement.ImportTemplate'), onSubmit: handleSubmit, disableButtonSubmit: !(tempFile === null || tempFile === void 0 ? void 0 : tempFile.name), confirmExit: true, childrenWrapperStyle: { padding: 0 }, children: [(0, jsx_runtime_1.jsx)(AWING_1.DataForm, { fields: [
|
|
63
66
|
{
|
|
@@ -16,6 +16,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
17
|
var jsx_runtime_1 = require("react/jsx-runtime");
|
|
18
18
|
var material_1 = require("@mui/material");
|
|
19
|
+
var styles_1 = require("@mui/styles");
|
|
19
20
|
var Helpers_1 = require("../../Utils/Helpers");
|
|
20
21
|
require("chartjs-adapter-moment");
|
|
21
22
|
var moment_1 = __importDefault(require("moment"));
|
|
@@ -23,7 +24,28 @@ var react_i18next_1 = require("react-i18next");
|
|
|
23
24
|
var i18n_1 = __importDefault(require("../../i18n"));
|
|
24
25
|
var Enums_1 = require("./Enums");
|
|
25
26
|
var Styles_1 = require("./Styles");
|
|
27
|
+
var useStyles = (0, styles_1.makeStyles)({
|
|
28
|
+
point: {
|
|
29
|
+
position: "relative",
|
|
30
|
+
width: "10px",
|
|
31
|
+
height: "10px",
|
|
32
|
+
backgroundColor: "red",
|
|
33
|
+
borderRadius: "50%",
|
|
34
|
+
margin: "50px", /* for demonstration */
|
|
35
|
+
'&::after': {
|
|
36
|
+
content: '',
|
|
37
|
+
position: 'absolute',
|
|
38
|
+
top: '50%',
|
|
39
|
+
left: '-10px', /* Adjust as needed */
|
|
40
|
+
right: '-10px', /* Adjust as needed */
|
|
41
|
+
height: '2px', /* Thickness of the line */
|
|
42
|
+
backgroundColor: 'black',
|
|
43
|
+
transform: 'translateY(-50%)'
|
|
44
|
+
}
|
|
45
|
+
},
|
|
46
|
+
});
|
|
26
47
|
var BarLineComponent = function (props) {
|
|
48
|
+
var classes = useStyles();
|
|
27
49
|
var t = (0, react_i18next_1.useTranslation)(undefined, { i18n: i18n_1.default }).t;
|
|
28
50
|
var optionsDefault = props.optionsDefault;
|
|
29
51
|
var chart = props.chart, _a = props.width, width = _a === void 0 ? 'auto' : _a, _b = props.height, height = _b === void 0 ? 350 : _b, _c = props.timeline, timeline = _c === void 0 ? Enums_1.TYPE_TIMELINE.DAY : _c, _d = props.optionCustom, optionCustom = _d === void 0 ? {} : _d, dataChart = props.dataChart, type = props.type, _e = props.options, options = _e === void 0 ? {
|
|
@@ -82,7 +104,7 @@ var BarLineComponent = function (props) {
|
|
|
82
104
|
position: 'bottom',
|
|
83
105
|
labels: {
|
|
84
106
|
usePointStyle: true,
|
|
85
|
-
pointStyle: 'circle',
|
|
107
|
+
// pointStyle: 'circle',
|
|
86
108
|
boxHeight: 12,
|
|
87
109
|
boxWidth: 12,
|
|
88
110
|
padding: 30,
|
|
@@ -238,7 +260,11 @@ var BarLineComponent = function (props) {
|
|
|
238
260
|
boxSpan.style.height = '20px';
|
|
239
261
|
boxSpan.style.marginRight = '10px';
|
|
240
262
|
boxSpan.style.width = '20px';
|
|
241
|
-
|
|
263
|
+
if ((item === null || item === void 0 ? void 0 : item.pointStyle) === 'circle') {
|
|
264
|
+
console.log('classes.point', classes.point);
|
|
265
|
+
// boxSpan.setAttribute("class", classes.point )
|
|
266
|
+
boxSpan.style.borderRadius = '20px';
|
|
267
|
+
}
|
|
242
268
|
// Text
|
|
243
269
|
var textContainer = document.createElement('p');
|
|
244
270
|
textContainer.style.color = item.fontColor;
|