Skip to content

Commit 9cfe576

Browse files
committed
FEATURE/HCMPRE:0000 : Updated SheetName and Column Widths in Localization Bulk Upload
1 parent b186cfd commit 9cfe576

File tree

9 files changed

+13
-9
lines changed

9 files changed

+13
-9
lines changed

micro-ui/web/core/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
"dependencies": {
1818
"@egovernments/digit-ui-components":"0.2.0",
1919
"@egovernments/digit-ui-libraries": "1.8.11",
20-
"@egovernments/digit-ui-module-workbench": "1.0.21",
20+
"@egovernments/digit-ui-module-workbench": "1.0.22",
2121
"@egovernments/digit-ui-module-core": "1.8.32",
2222
"@egovernments/digit-ui-module-utilities": "1.0.15",
2323
"@egovernments/digit-ui-module-open-payment":"0.0.2",

micro-ui/web/micro-ui-internals/example/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
},
1111
"devDependencies": {
1212
"@egovernments/digit-ui-libraries": "1.8.13",
13-
"@egovernments/digit-ui-module-workbench": "1.0.21",
13+
"@egovernments/digit-ui-module-workbench": "1.0.22",
1414
"@egovernments/digit-ui-module-pgr": "1.8.12",
1515
"@egovernments/digit-ui-module-dss": "1.8.12",
1616
"@egovernments/digit-ui-module-core": "1.8.35",

micro-ui/web/micro-ui-internals/packages/modules/workbench/CHANGELOG.md

+3
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
## [1.0.22] [28-Apr-2025]
2+
- Localization Bulk Upload - Updated SheetName and Column Widths
3+
14
## [1.0.21] [8-Apr-2025]
25
- Manage Sidebars
36

micro-ui/web/micro-ui-internals/packages/modules/workbench/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@egovernments/digit-ui-module-workbench",
3-
"version": "1.0.21",
3+
"version": "1.0.22",
44
"description": "Workbench",
55
"main": "dist/index.js",
66
"module": "dist/index.modern.js",

micro-ui/web/micro-ui-internals/packages/modules/workbench/src/components/GenerateXlsxNew.js

+3-2
Original file line numberDiff line numberDiff line change
@@ -66,13 +66,14 @@ const GenerateXlsxNew = ({ inputRef, jsonData, skipHeader, sheetName, localeData
6666
worksheet.columns = columnOrder.map((col) => ({
6767
header: col,
6868
key: col,
69-
width: Math.max(col.length, ...updatedFormattedData.map((row) => (row[col] ? row[col].length : 0))) + 2,
69+
width: 40,
7070
}));
7171

7272
await worksheet.protect("editDefaultMessage");
7373

7474
// Unlock all columns first (Excel locks everything by default)**
7575
worksheet.columns.forEach((col) => {
76+
col.alignment = { wrapText: true, vertical: 'top' };
7677
col.protection = { locked: false }; // Unlock all columns
7778
});
7879

@@ -87,7 +88,7 @@ const GenerateXlsxNew = ({ inputRef, jsonData, skipHeader, sheetName, localeData
8788
const blob = new Blob([buffer], { type: "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet" });
8889
const link = document.createElement("a");
8990
link.href = URL.createObjectURL(blob);
90-
link.download = "template.xlsx";
91+
link.download = `${sheetName || "template"}.xlsx`;
9192
document.body.appendChild(link);
9293
link.click();
9394
document.body.removeChild(link);

micro-ui/web/micro-ui-internals/packages/modules/workbench/src/pages/employee/LocalisationAdd.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -785,7 +785,7 @@ const LocalisationAdd = () => {
785785
className={""}
786786
type={"button"}
787787
size={"large"}
788-
variation={"primary"}
788+
variation={"secondary"}
789789
label={t("WBH_DOWLOAD_TEMPLATE")}
790790
title={t("WBH_DOWLOAD_TEMPLATE")}
791791
onClick={callInputClick}

micro-ui/web/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
"homepage": "/digit-ui",
1616
"dependencies": {
1717
"@egovernments/digit-ui-libraries": "1.8.13",
18-
"@egovernments/digit-ui-module-workbench": "1.0.21",
18+
"@egovernments/digit-ui-module-workbench": "1.0.22",
1919
"@egovernments/digit-ui-module-pgr": "1.8.12",
2020
"@egovernments/digit-ui-module-dss": "1.8.12",
2121
"@egovernments/digit-ui-module-core": "1.8.35",

micro-ui/web/sandbox/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
"homepage": "/sandbox-ui",
2121
"dependencies": {
2222
"@egovernments/digit-ui-libraries": "1.8.13",
23-
"@egovernments/digit-ui-module-workbench": "1.0.21",
23+
"@egovernments/digit-ui-module-workbench": "1.0.22",
2424
"@egovernments/digit-ui-module-pgr": "1.8.12",
2525
"@egovernments/digit-ui-module-dss": "1.8.12",
2626
"@egovernments/digit-ui-module-core": "1.8.35",

micro-ui/web/workbench/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
"homepage": "/workbench-ui",
1616
"dependencies": {
1717
"@egovernments/digit-ui-libraries": "1.8.11",
18-
"@egovernments/digit-ui-module-workbench": "1.0.21",
18+
"@egovernments/digit-ui-module-workbench": "1.0.22",
1919
"@egovernments/digit-ui-components":"0.2.0",
2020
"@egovernments/digit-ui-module-core": "1.8.32",
2121
"@egovernments/digit-ui-module-utilities": "1.0.15",

0 commit comments

Comments
 (0)