backend-plus 2.7.1 → 2.7.2
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/for-client/my-tables.js +2 -2
- package/lib/backend-plus.d.ts +2 -0
- package/package.json +1 -1
package/for-client/my-tables.js
CHANGED
|
@@ -1742,8 +1742,8 @@ myOwn.dialogDownload = function dialogDownload(grid){
|
|
|
1742
1742
|
var sheet2name=grid.def.name!=="metadata"?"metadata":"meta-data";
|
|
1743
1743
|
var dataSheet = {
|
|
1744
1744
|
name: sheet1name,
|
|
1745
|
-
freezeRows: 1,
|
|
1746
|
-
freezeColumns: grid.def.primaryKey?.length ?? 0,
|
|
1745
|
+
freezeRows: my.config.config?.['unfreeze-excel-rows'] ? 0 : 1,
|
|
1746
|
+
freezeColumns: my.config.config?.['unfreeze-excel-columns'] ? 0 : (grid.def.primaryKey?.length ?? 0),
|
|
1747
1747
|
autoWidthMax: 40,
|
|
1748
1748
|
rows: tableRowsXLS(grid.depotsToDisplay, fieldsDef2Export)
|
|
1749
1749
|
};
|
package/lib/backend-plus.d.ts
CHANGED
|
@@ -509,6 +509,8 @@ export interface AppConfigClientSetup // front-end config
|
|
|
509
509
|
"minimum-scale"?:string
|
|
510
510
|
"maximum-scale"?:string
|
|
511
511
|
"user-scalable"?:string
|
|
512
|
+
"unfreeze-excel-rows"?:boolean
|
|
513
|
+
"unfreeze-excel-columns"?:boolean
|
|
512
514
|
}
|
|
513
515
|
export interface AppConfig {
|
|
514
516
|
package: {
|
package/package.json
CHANGED