akeyless-client-commons 1.0.144 → 1.0.145
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/components/index.js
CHANGED
|
@@ -4902,13 +4902,18 @@ var import_exceljs = __toESM(require("exceljs"));
|
|
|
4902
4902
|
var import_file_saver = require("file-saver");
|
|
4903
4903
|
var exportToExcel = /*#__PURE__*/ function() {
|
|
4904
4904
|
var _ref = _async_to_generator(function(param) {
|
|
4905
|
-
var columns, data, headline, fileName, cellStyle, workbook, worksheet, titleRow, buffer, blob;
|
|
4905
|
+
var columns, data, headline, fileName, cellStyle, direction, workbook, worksheet, titleRow, buffer, blob;
|
|
4906
4906
|
return _ts_generator(this, function(_state) {
|
|
4907
4907
|
switch(_state.label){
|
|
4908
4908
|
case 0:
|
|
4909
|
-
columns = param.columns, data = param.data, headline = param.headline, fileName = param.fileName, cellStyle = param.cellStyle;
|
|
4909
|
+
columns = param.columns, data = param.data, headline = param.headline, fileName = param.fileName, cellStyle = param.cellStyle, direction = param.direction;
|
|
4910
4910
|
workbook = new import_exceljs.default.Workbook();
|
|
4911
4911
|
worksheet = workbook.addWorksheet("Report");
|
|
4912
|
+
worksheet.views = [
|
|
4913
|
+
{
|
|
4914
|
+
rightToLeft: direction === "rtl"
|
|
4915
|
+
}
|
|
4916
|
+
];
|
|
4912
4917
|
worksheet.columns = columns.map(function(col) {
|
|
4913
4918
|
return {
|
|
4914
4919
|
header: col.header,
|
|
@@ -5145,7 +5150,8 @@ var ExportToExcel = (0, import_react11.memo)(function() {
|
|
|
5145
5150
|
cellStyle: {
|
|
5146
5151
|
horizontal: direction === "ltr" ? "left" : "right",
|
|
5147
5152
|
readingOrder: direction
|
|
5148
|
-
}
|
|
5153
|
+
},
|
|
5154
|
+
direction: direction
|
|
5149
5155
|
})
|
|
5150
5156
|
];
|
|
5151
5157
|
case 1:
|
|
@@ -4689,13 +4689,18 @@ import ExcelJS from "exceljs";
|
|
|
4689
4689
|
import { saveAs } from "file-saver";
|
|
4690
4690
|
var exportToExcel = /*#__PURE__*/ function() {
|
|
4691
4691
|
var _ref = _async_to_generator(function(param) {
|
|
4692
|
-
var columns, data, headline, fileName, cellStyle, workbook, worksheet, titleRow, buffer, blob;
|
|
4692
|
+
var columns, data, headline, fileName, cellStyle, direction, workbook, worksheet, titleRow, buffer, blob;
|
|
4693
4693
|
return _ts_generator(this, function(_state) {
|
|
4694
4694
|
switch(_state.label){
|
|
4695
4695
|
case 0:
|
|
4696
|
-
columns = param.columns, data = param.data, headline = param.headline, fileName = param.fileName, cellStyle = param.cellStyle;
|
|
4696
|
+
columns = param.columns, data = param.data, headline = param.headline, fileName = param.fileName, cellStyle = param.cellStyle, direction = param.direction;
|
|
4697
4697
|
workbook = new ExcelJS.Workbook();
|
|
4698
4698
|
worksheet = workbook.addWorksheet("Report");
|
|
4699
|
+
worksheet.views = [
|
|
4700
|
+
{
|
|
4701
|
+
rightToLeft: direction === "rtl"
|
|
4702
|
+
}
|
|
4703
|
+
];
|
|
4699
4704
|
worksheet.columns = columns.map(function(col) {
|
|
4700
4705
|
return {
|
|
4701
4706
|
header: col.header,
|
|
@@ -4932,7 +4937,8 @@ var ExportToExcel = memo(function() {
|
|
|
4932
4937
|
cellStyle: {
|
|
4933
4938
|
horizontal: direction === "ltr" ? "left" : "right",
|
|
4934
4939
|
readingOrder: direction
|
|
4935
|
-
}
|
|
4940
|
+
},
|
|
4941
|
+
direction: direction
|
|
4936
4942
|
})
|
|
4937
4943
|
];
|
|
4938
4944
|
case 1:
|