ods-component-lib 1.18.260 → 1.18.261
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/index.js +36 -70
- package/dist/index.js.map +1 -1
- package/dist/index.modern.js +37 -71
- package/dist/index.modern.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -56940,7 +56940,7 @@ var callAddFont = function callAddFont() {
|
|
|
56940
56940
|
jsPDF.jsPDF.API.events.push(['addFonts', callAddFont]);
|
|
56941
56941
|
|
|
56942
56942
|
var OdsTimelineTable = React.forwardRef(function (props, ref) {
|
|
56943
|
-
var _toolbarSettings$sear, _toolbarSettings$sear5, _toolbarSettings$expo12, _toolbarSettings$expo13, _toolbarSettings$expo14, _toolbarSettings$expo15, _toolbarSettings$expo19, _toolbarSettings$expo20, _toolbarSettings$expo21, _toolbarSettings$colu
|
|
56943
|
+
var _toolbarSettings$sear, _toolbarSettings$sear5, _toolbarSettings$expo12, _toolbarSettings$expo13, _toolbarSettings$expo14, _toolbarSettings$expo15, _toolbarSettings$expo19, _toolbarSettings$expo20, _toolbarSettings$expo21, _toolbarSettings$colu;
|
|
56944
56944
|
var customColumns = props.customColumns,
|
|
56945
56945
|
customTasks = props.customTasks,
|
|
56946
56946
|
customTaskKey = props.customTaskKey,
|
|
@@ -56993,14 +56993,8 @@ var OdsTimelineTable = React.forwardRef(function (props, ref) {
|
|
|
56993
56993
|
})),
|
|
56994
56994
|
unvisibleColumnNames = _useState9[0];
|
|
56995
56995
|
var _useState10 = React.useState(false),
|
|
56996
|
-
|
|
56997
|
-
|
|
56998
|
-
var _useState11 = React.useState(false),
|
|
56999
|
-
exporting = _useState11[0],
|
|
57000
|
-
setExporting = _useState11[1];
|
|
57001
|
-
var _useState12 = React.useState(false),
|
|
57002
|
-
columnChooserOpen = _useState12[0],
|
|
57003
|
-
setColumnChooserOpen = _useState12[1];
|
|
56996
|
+
columnChooserOpen = _useState10[0],
|
|
56997
|
+
setColumnChooserOpen = _useState10[1];
|
|
57004
56998
|
var originalSortingMode = sorting.mode === undefined || sorting.mode === "" ? "none" : sorting.mode;
|
|
57005
56999
|
var sortingMode = sortingProcess == "ServerSideSorting" ? "none" : originalSortingMode;
|
|
57006
57000
|
var showSortIndexes = sortingProcess == "ServerSideSorting" ? false : sorting.showSortIndexes;
|
|
@@ -57029,7 +57023,7 @@ var OdsTimelineTable = React.forwardRef(function (props, ref) {
|
|
|
57029
57023
|
};
|
|
57030
57024
|
var getTimelineEndDate = function getTimelineEndDate() {
|
|
57031
57025
|
var newED = endDate;
|
|
57032
|
-
newED = moment__default(newED).add(1, "months").set("date",
|
|
57026
|
+
newED = moment__default(newED).add(1, "months").set("date", 28).toDate();
|
|
57033
57027
|
return newED;
|
|
57034
57028
|
};
|
|
57035
57029
|
var actionButtons = React.useMemo(function () {
|
|
@@ -57056,8 +57050,7 @@ var OdsTimelineTable = React.forwardRef(function (props, ref) {
|
|
|
57056
57050
|
setExportableTasks(result);
|
|
57057
57051
|
};
|
|
57058
57052
|
var prepareTimelineTasks = function prepareTimelineTasks(tasks, selectedKeys) {
|
|
57059
|
-
|
|
57060
|
-
setTimelineTasks(_tasks);
|
|
57053
|
+
setTimelineTasks(mapSelectedKeys(tasks.map(mapCustomTask), customTaskKey, multiSelectionEnabled ? selectedKeys : selectedKeys.length > 0 ? selectedKeys[0] : []));
|
|
57061
57054
|
};
|
|
57062
57055
|
var getSelectedRowsData = function getSelectedRowsData() {
|
|
57063
57056
|
return timelineTasks.filter(function (item) {
|
|
@@ -57297,8 +57290,7 @@ var OdsTimelineTable = React.forwardRef(function (props, ref) {
|
|
|
57297
57290
|
}).then(function (doc) {
|
|
57298
57291
|
return doc.save(getExportFileName());
|
|
57299
57292
|
})["finally"](function () {
|
|
57300
|
-
|
|
57301
|
-
setExportPdfModalOpen(false);
|
|
57293
|
+
return exportableTimelineTable.repaint();
|
|
57302
57294
|
});
|
|
57303
57295
|
};
|
|
57304
57296
|
var getExportFileName = function getExportFileName() {
|
|
@@ -57333,41 +57325,6 @@ var OdsTimelineTable = React.forwardRef(function (props, ref) {
|
|
|
57333
57325
|
});
|
|
57334
57326
|
return newExportedColumns;
|
|
57335
57327
|
}, [exportableTasks, columnList]);
|
|
57336
|
-
var exportableTimelineTable = React__default.createElement(React__default.Fragment, null, React__default.createElement(antd.Spin, {
|
|
57337
|
-
size: "large",
|
|
57338
|
-
spinning: exporting
|
|
57339
|
-
}, React__default.createElement("div", {
|
|
57340
|
-
style: {
|
|
57341
|
-
overflowX: "auto",
|
|
57342
|
-
overflowY: "auto",
|
|
57343
|
-
paddingTop: 20
|
|
57344
|
-
}
|
|
57345
|
-
}, React__default.createElement(gantt.Gantt, Object.assign({
|
|
57346
|
-
key: "OdsTimelineTableExportable",
|
|
57347
|
-
width: "100%",
|
|
57348
|
-
height: 500,
|
|
57349
|
-
startDateRange: getTimelineStartDate(),
|
|
57350
|
-
endDateRange: getTimelineEndDate(),
|
|
57351
|
-
taskContentRender: function taskContentRender(params) {
|
|
57352
|
-
return React__default.createElement(OdsTimelineTableTaskTemplate, Object.assign({}, params));
|
|
57353
|
-
}
|
|
57354
|
-
}, props, {
|
|
57355
|
-
ref: refGanttExportable,
|
|
57356
|
-
sorting: {
|
|
57357
|
-
mode: "none",
|
|
57358
|
-
showSortIndexes: false
|
|
57359
|
-
}
|
|
57360
|
-
}), React__default.createElement(gantt.ContextMenu, {
|
|
57361
|
-
enabled: false
|
|
57362
|
-
}), exportedColumns.map(function (columnProps, index) {
|
|
57363
|
-
return React__default.createElement(gantt.Column, Object.assign({}, columnProps, {
|
|
57364
|
-
key: "TimelineTable_ExportPdfColumn_" + index
|
|
57365
|
-
}));
|
|
57366
|
-
}), React__default.createElement(gantt.Tasks, {
|
|
57367
|
-
dataSource: exportableTasks
|
|
57368
|
-
}), children, React__default.createElement(gantt.Sorting, {
|
|
57369
|
-
mode: "none"
|
|
57370
|
-
})))));
|
|
57371
57328
|
React.useImperativeHandle(ref, function () {
|
|
57372
57329
|
return {
|
|
57373
57330
|
getSelectedRowsData: getSelectedRowsData,
|
|
@@ -57435,8 +57392,7 @@ var OdsTimelineTable = React.forwardRef(function (props, ref) {
|
|
|
57435
57392
|
icon: "exportpdf",
|
|
57436
57393
|
onClick: function onClick() {
|
|
57437
57394
|
if (exportableTasks.length > 0) {
|
|
57438
|
-
|
|
57439
|
-
setExporting(true);
|
|
57395
|
+
exportPdf();
|
|
57440
57396
|
} else {
|
|
57441
57397
|
var _toolbarSettings$expo16, _toolbarSettings$expo17, _toolbarSettings$expo18;
|
|
57442
57398
|
OdsNotification({
|
|
@@ -57450,7 +57406,19 @@ var OdsTimelineTable = React.forwardRef(function (props, ref) {
|
|
|
57450
57406
|
}, {
|
|
57451
57407
|
text: (_toolbarSettings$expo19 = toolbarSettings === null || toolbarSettings === void 0 ? void 0 : (_toolbarSettings$expo20 = toolbarSettings["export"]) === null || _toolbarSettings$expo20 === void 0 ? void 0 : (_toolbarSettings$expo21 = _toolbarSettings$expo20.excel) === null || _toolbarSettings$expo21 === void 0 ? void 0 : _toolbarSettings$expo21.title) != null ? _toolbarSettings$expo19 : "Export to Excel",
|
|
57452
57408
|
icon: "exportxlsx",
|
|
57453
|
-
onClick:
|
|
57409
|
+
onClick: function onClick() {
|
|
57410
|
+
if (exportableTasks.length > 0) {
|
|
57411
|
+
exportExcel();
|
|
57412
|
+
} else {
|
|
57413
|
+
var _toolbarSettings$expo22, _toolbarSettings$expo23, _toolbarSettings$expo24;
|
|
57414
|
+
OdsNotification({
|
|
57415
|
+
title: "",
|
|
57416
|
+
content: (_toolbarSettings$expo22 = toolbarSettings === null || toolbarSettings === void 0 ? void 0 : (_toolbarSettings$expo23 = toolbarSettings["export"]) === null || _toolbarSettings$expo23 === void 0 ? void 0 : (_toolbarSettings$expo24 = _toolbarSettings$expo23.messages) === null || _toolbarSettings$expo24 === void 0 ? void 0 : _toolbarSettings$expo24.noRecord) != null ? _toolbarSettings$expo22 : "No record",
|
|
57417
|
+
type: "warning",
|
|
57418
|
+
placement: "bottom"
|
|
57419
|
+
});
|
|
57420
|
+
}
|
|
57421
|
+
}
|
|
57454
57422
|
}]
|
|
57455
57423
|
}]
|
|
57456
57424
|
}
|
|
@@ -57510,7 +57478,8 @@ var OdsTimelineTable = React.forwardRef(function (props, ref) {
|
|
|
57510
57478
|
}, columnProps));
|
|
57511
57479
|
}
|
|
57512
57480
|
}), actionColumnSettings.actionColumnEnable != false ? React__default.createElement(gantt.Column, Object.assign({
|
|
57513
|
-
key: "OdsTimelineColumn_Actions"
|
|
57481
|
+
key: "OdsTimelineColumn_Actions",
|
|
57482
|
+
width: 100
|
|
57514
57483
|
}, actionColumnProps, {
|
|
57515
57484
|
caption: actionColumnSettings.actionButtonGroupCaption,
|
|
57516
57485
|
cssClass: "actionButtonGroupCell",
|
|
@@ -57522,23 +57491,20 @@ var OdsTimelineTable = React.forwardRef(function (props, ref) {
|
|
|
57522
57491
|
}), children, React__default.createElement(gantt.Sorting, {
|
|
57523
57492
|
mode: sortingMode,
|
|
57524
57493
|
showSortIndexes: showSortIndexes
|
|
57525
|
-
})), React__default.createElement(
|
|
57526
|
-
|
|
57527
|
-
|
|
57528
|
-
|
|
57529
|
-
|
|
57530
|
-
|
|
57531
|
-
|
|
57532
|
-
|
|
57533
|
-
|
|
57534
|
-
|
|
57535
|
-
|
|
57536
|
-
|
|
57537
|
-
|
|
57538
|
-
|
|
57539
|
-
}
|
|
57540
|
-
}
|
|
57541
|
-
}, exportableTimelineTable), React__default.createElement(DataGrid__default, {
|
|
57494
|
+
})), React__default.createElement(gantt.Gantt, Object.assign({}, props, {
|
|
57495
|
+
startDateRange: getTimelineStartDate(),
|
|
57496
|
+
endDateRange: getTimelineEndDate(),
|
|
57497
|
+
width: 0,
|
|
57498
|
+
height: 0,
|
|
57499
|
+
ref: refGanttExportable,
|
|
57500
|
+
key: "OdsTimelineTable_Export"
|
|
57501
|
+
}), exportedColumns.map(function (columnProps, index) {
|
|
57502
|
+
return React__default.createElement(gantt.Column, Object.assign({}, columnProps, {
|
|
57503
|
+
key: "TimelineTable_ExportPdfColumn_" + index
|
|
57504
|
+
}));
|
|
57505
|
+
}), React__default.createElement(gantt.Tasks, {
|
|
57506
|
+
dataSource: exportableTasks
|
|
57507
|
+
}), children), React__default.createElement(DataGrid__default, {
|
|
57542
57508
|
key: "DataGrid_Export",
|
|
57543
57509
|
ref: refDataGridExportable,
|
|
57544
57510
|
className: "odsTimelineTable-ExportDataGrid",
|