mirror of
https://github.com/Alfresco/alfresco-content-app.git
synced 2025-05-12 17:04:46 +00:00
[ACS-6489] Use resizable option to disable resize on thumbnail column (#3590)
This commit is contained in:
parent
3f04f05da5
commit
baeffc9416
@ -582,6 +582,10 @@
|
|||||||
"description": "Toggles sortable state of the column",
|
"description": "Toggles sortable state of the column",
|
||||||
"type": "boolean"
|
"type": "boolean"
|
||||||
},
|
},
|
||||||
|
"resizable": {
|
||||||
|
"description": "Toggles resizable state of the column",
|
||||||
|
"type": "boolean"
|
||||||
|
},
|
||||||
"template": {
|
"template": {
|
||||||
"description": "Column template id",
|
"description": "Column template id",
|
||||||
"type": "string"
|
"type": "string"
|
||||||
|
@ -2132,7 +2132,8 @@
|
|||||||
"type": "image",
|
"type": "image",
|
||||||
"sortable": false,
|
"sortable": false,
|
||||||
"desktopOnly": false,
|
"desktopOnly": false,
|
||||||
"order": 10
|
"order": 10,
|
||||||
|
"resizable": false
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"id": "app.files.name",
|
"id": "app.files.name",
|
||||||
@ -2205,7 +2206,8 @@
|
|||||||
"type": "image",
|
"type": "image",
|
||||||
"sortable": false,
|
"sortable": false,
|
||||||
"desktopOnly": false,
|
"desktopOnly": false,
|
||||||
"order": 10
|
"order": 10,
|
||||||
|
"resizable": false
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"id": "app.libraries.name",
|
"id": "app.libraries.name",
|
||||||
@ -2263,7 +2265,8 @@
|
|||||||
"type": "image",
|
"type": "image",
|
||||||
"sortable": false,
|
"sortable": false,
|
||||||
"desktopOnly": false,
|
"desktopOnly": false,
|
||||||
"order": 10
|
"order": 10,
|
||||||
|
"resizable": false
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"id": "app.favorite.libraries.name",
|
"id": "app.favorite.libraries.name",
|
||||||
@ -2321,7 +2324,8 @@
|
|||||||
"type": "image",
|
"type": "image",
|
||||||
"sortable": false,
|
"sortable": false,
|
||||||
"desktopOnly": false,
|
"desktopOnly": false,
|
||||||
"order": 10
|
"order": 10,
|
||||||
|
"resizable": false
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"id": "app.shared.name",
|
"id": "app.shared.name",
|
||||||
@ -2420,7 +2424,8 @@
|
|||||||
"type": "image",
|
"type": "image",
|
||||||
"sortable": false,
|
"sortable": false,
|
||||||
"desktopOnly": false,
|
"desktopOnly": false,
|
||||||
"order": 10
|
"order": 10,
|
||||||
|
"resizable": false
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"id": "app.recent.name",
|
"id": "app.recent.name",
|
||||||
@ -2493,7 +2498,8 @@
|
|||||||
"type": "image",
|
"type": "image",
|
||||||
"sortable": false,
|
"sortable": false,
|
||||||
"desktopOnly": false,
|
"desktopOnly": false,
|
||||||
"order": 10
|
"order": 10,
|
||||||
|
"resizable": false
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"id": "app.favorites.name",
|
"id": "app.favorites.name",
|
||||||
@ -2577,7 +2583,8 @@
|
|||||||
"type": "image",
|
"type": "image",
|
||||||
"sortable": false,
|
"sortable": false,
|
||||||
"desktopOnly": false,
|
"desktopOnly": false,
|
||||||
"order": 10
|
"order": 10,
|
||||||
|
"resizable": false
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"id": "app.trashcan.name",
|
"id": "app.trashcan.name",
|
||||||
@ -2635,7 +2642,8 @@
|
|||||||
"type": "image",
|
"type": "image",
|
||||||
"sortable": false,
|
"sortable": false,
|
||||||
"desktopOnly": false,
|
"desktopOnly": false,
|
||||||
"order": 10
|
"order": 10,
|
||||||
|
"resizable": false
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"id": "app.libraries.name",
|
"id": "app.libraries.name",
|
||||||
|
@ -37,6 +37,7 @@
|
|||||||
<data-column
|
<data-column
|
||||||
[id]="column.id"
|
[id]="column.id"
|
||||||
[draggable]="column.draggable"
|
[draggable]="column.draggable"
|
||||||
|
[resizable]="column.resizable"
|
||||||
[key]="column.key"
|
[key]="column.key"
|
||||||
[title]="column.title"
|
[title]="column.title"
|
||||||
[type]="column.type"
|
[type]="column.type"
|
||||||
@ -56,6 +57,7 @@
|
|||||||
[id]="column.id"
|
[id]="column.id"
|
||||||
[key]="column.key"
|
[key]="column.key"
|
||||||
[draggable]="column.draggable"
|
[draggable]="column.draggable"
|
||||||
|
[resizable]="column.resizable"
|
||||||
[title]="column.title"
|
[title]="column.title"
|
||||||
[type]="column.type"
|
[type]="column.type"
|
||||||
[format]="column.format"
|
[format]="column.format"
|
||||||
|
@ -34,6 +34,7 @@
|
|||||||
[key]="column.key"
|
[key]="column.key"
|
||||||
[title]="column.title"
|
[title]="column.title"
|
||||||
[draggable]="column.draggable"
|
[draggable]="column.draggable"
|
||||||
|
[resizable]="column.resizable"
|
||||||
[type]="column.type"
|
[type]="column.type"
|
||||||
[format]="column.format"
|
[format]="column.format"
|
||||||
[class]="column.class"
|
[class]="column.class"
|
||||||
@ -53,6 +54,7 @@
|
|||||||
[title]="column.title"
|
[title]="column.title"
|
||||||
[type]="column.type"
|
[type]="column.type"
|
||||||
[draggable]="column.draggable"
|
[draggable]="column.draggable"
|
||||||
|
[resizable]="column.resizable"
|
||||||
[format]="column.format"
|
[format]="column.format"
|
||||||
[class]="column.class"
|
[class]="column.class"
|
||||||
[sortable]="column.sortable"
|
[sortable]="column.sortable"
|
||||||
|
@ -49,6 +49,7 @@
|
|||||||
[sortingKey]="column.sortingKey || column.key"
|
[sortingKey]="column.sortingKey || column.key"
|
||||||
[isHidden]="column.isHidden"
|
[isHidden]="column.isHidden"
|
||||||
[draggable]="column.draggable"
|
[draggable]="column.draggable"
|
||||||
|
[resizable]="column.resizable"
|
||||||
>
|
>
|
||||||
<ng-template let-context>
|
<ng-template let-context>
|
||||||
<adf-dynamic-column [id]="column.template" [context]="context"> </adf-dynamic-column>
|
<adf-dynamic-column [id]="column.template" [context]="context"> </adf-dynamic-column>
|
||||||
@ -68,6 +69,7 @@
|
|||||||
[sortingKey]="column.sortingKey || column.key"
|
[sortingKey]="column.sortingKey || column.key"
|
||||||
[isHidden]="column.isHidden"
|
[isHidden]="column.isHidden"
|
||||||
[draggable]="column.draggable"
|
[draggable]="column.draggable"
|
||||||
|
[resizable]="column.resizable"
|
||||||
>
|
>
|
||||||
</data-column>
|
</data-column>
|
||||||
</ng-container>
|
</ng-container>
|
||||||
|
@ -40,6 +40,7 @@
|
|||||||
[type]="column.type"
|
[type]="column.type"
|
||||||
[format]="column.format"
|
[format]="column.format"
|
||||||
[draggable]="column.draggable"
|
[draggable]="column.draggable"
|
||||||
|
[resizable]="column.resizable"
|
||||||
[class]="column.class"
|
[class]="column.class"
|
||||||
[sortable]="column.sortable"
|
[sortable]="column.sortable"
|
||||||
[isHidden]="column.isHidden"
|
[isHidden]="column.isHidden"
|
||||||
@ -59,6 +60,7 @@
|
|||||||
[format]="column.format"
|
[format]="column.format"
|
||||||
[class]="column.class"
|
[class]="column.class"
|
||||||
[draggable]="column.draggable"
|
[draggable]="column.draggable"
|
||||||
|
[resizable]="column.resizable"
|
||||||
[sortable]="column.sortable"
|
[sortable]="column.sortable"
|
||||||
[isHidden]="column.isHidden"
|
[isHidden]="column.isHidden"
|
||||||
>
|
>
|
||||||
|
@ -38,6 +38,7 @@
|
|||||||
[class]="column.class"
|
[class]="column.class"
|
||||||
[sortable]="column.sortable"
|
[sortable]="column.sortable"
|
||||||
[draggable]="column.draggable"
|
[draggable]="column.draggable"
|
||||||
|
[resizable]="column.resizable"
|
||||||
[isHidden]="column.isHidden"
|
[isHidden]="column.isHidden"
|
||||||
>
|
>
|
||||||
<ng-template let-context>
|
<ng-template let-context>
|
||||||
@ -57,6 +58,7 @@
|
|||||||
[sortable]="column.sortable"
|
[sortable]="column.sortable"
|
||||||
[isHidden]="column.isHidden"
|
[isHidden]="column.isHidden"
|
||||||
[draggable]="column.draggable"
|
[draggable]="column.draggable"
|
||||||
|
[resizable]="column.resizable"
|
||||||
>
|
>
|
||||||
</data-column>
|
</data-column>
|
||||||
</ng-container>
|
</ng-container>
|
||||||
|
@ -47,6 +47,7 @@
|
|||||||
[class]="column.class"
|
[class]="column.class"
|
||||||
[sortable]="column.sortable"
|
[sortable]="column.sortable"
|
||||||
[draggable]="column.draggable"
|
[draggable]="column.draggable"
|
||||||
|
[resizable]="column.resizable"
|
||||||
>
|
>
|
||||||
<ng-template let-context>
|
<ng-template let-context>
|
||||||
<adf-dynamic-column [id]="column.template" [context]="context"> </adf-dynamic-column>
|
<adf-dynamic-column [id]="column.template" [context]="context"> </adf-dynamic-column>
|
||||||
@ -64,6 +65,7 @@
|
|||||||
[class]="column.class"
|
[class]="column.class"
|
||||||
[sortable]="column.sortable"
|
[sortable]="column.sortable"
|
||||||
[draggable]="column.draggable"
|
[draggable]="column.draggable"
|
||||||
|
[resizable]="column.resizable"
|
||||||
>
|
>
|
||||||
</data-column>
|
</data-column>
|
||||||
</ng-container>
|
</ng-container>
|
||||||
|
@ -38,6 +38,7 @@
|
|||||||
[sortable]="column.sortable"
|
[sortable]="column.sortable"
|
||||||
[isHidden]="column.isHidden"
|
[isHidden]="column.isHidden"
|
||||||
[draggable]="column.draggable"
|
[draggable]="column.draggable"
|
||||||
|
[resizable]="column.resizable"
|
||||||
>
|
>
|
||||||
<ng-template let-context>
|
<ng-template let-context>
|
||||||
<adf-dynamic-column [id]="column.template" [context]="context"> </adf-dynamic-column>
|
<adf-dynamic-column [id]="column.template" [context]="context"> </adf-dynamic-column>
|
||||||
@ -49,6 +50,7 @@
|
|||||||
<data-column
|
<data-column
|
||||||
[id]="column.id"
|
[id]="column.id"
|
||||||
[draggable]="column.draggable"
|
[draggable]="column.draggable"
|
||||||
|
[resizable]="column.resizable"
|
||||||
[key]="column.key"
|
[key]="column.key"
|
||||||
[title]="column.title"
|
[title]="column.title"
|
||||||
[type]="column.type"
|
[type]="column.type"
|
||||||
|
@ -38,6 +38,7 @@
|
|||||||
[id]="column.id"
|
[id]="column.id"
|
||||||
[key]="column.key"
|
[key]="column.key"
|
||||||
[draggable]="column.draggable"
|
[draggable]="column.draggable"
|
||||||
|
[resizable]="column.resizable"
|
||||||
[title]="column.title"
|
[title]="column.title"
|
||||||
[type]="column.type"
|
[type]="column.type"
|
||||||
[format]="column.format"
|
[format]="column.format"
|
||||||
@ -61,6 +62,7 @@
|
|||||||
[class]="column.class"
|
[class]="column.class"
|
||||||
[sortable]="column.sortable"
|
[sortable]="column.sortable"
|
||||||
[draggable]="column.draggable"
|
[draggable]="column.draggable"
|
||||||
|
[resizable]="column.resizable"
|
||||||
[isHidden]="column.isHidden"
|
[isHidden]="column.isHidden"
|
||||||
>
|
>
|
||||||
</data-column>
|
</data-column>
|
||||||
|
@ -220,6 +220,10 @@ export class AppExtensionService implements RuleContext {
|
|||||||
.getElements<DocumentListPresetRef>(config, `features.documentList.${key}`)
|
.getElements<DocumentListPresetRef>(config, `features.documentList.${key}`)
|
||||||
.filter((group) => this.filterVisible(group))
|
.filter((group) => this.filterVisible(group))
|
||||||
.filter((entry) => !entry.disabled)
|
.filter((entry) => !entry.disabled)
|
||||||
|
.map((entry) => {
|
||||||
|
entry.resizable = entry.resizable ?? true;
|
||||||
|
return entry;
|
||||||
|
})
|
||||||
.sort(sortByOrder);
|
.sort(sortByOrder);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user