mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-07-24 17:32:15 +00:00
[ADF-5178] - add translation for filters (#5843)
This commit is contained in:
@@ -451,7 +451,7 @@
|
|||||||
"categories": [
|
"categories": [
|
||||||
{
|
{
|
||||||
"id": "queryName",
|
"id": "queryName",
|
||||||
"name": "Name",
|
"name": "SEARCH.SEARCH_HEADER.FILTERS.NAME.TITLE",
|
||||||
"columnKey": "name",
|
"columnKey": "name",
|
||||||
"enabled": true,
|
"enabled": true,
|
||||||
"component": {
|
"component": {
|
||||||
@@ -459,14 +459,14 @@
|
|||||||
"settings": {
|
"settings": {
|
||||||
"pattern": "cm:name:'(.*?)'",
|
"pattern": "cm:name:'(.*?)'",
|
||||||
"field": "cm:name",
|
"field": "cm:name",
|
||||||
"placeholder": "Enter the name",
|
"placeholder": "SEARCH.SEARCH_HEADER.FILTERS.NAME.PLACEHOLDER",
|
||||||
"searchSuffix" : "*"
|
"searchSuffix" : "*"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"id": "checkList",
|
"id": "checkList",
|
||||||
"name": "Check List",
|
"name": "SEARCH.SEARCH_HEADER.FILTERS.TYPE.TITLE",
|
||||||
"columnKey":"$thumbnail",
|
"columnKey":"$thumbnail",
|
||||||
"enabled": true,
|
"enabled": true,
|
||||||
"component": {
|
"component": {
|
||||||
@@ -476,32 +476,20 @@
|
|||||||
"operator": "OR",
|
"operator": "OR",
|
||||||
"options": [
|
"options": [
|
||||||
{
|
{
|
||||||
"name": "Folder",
|
"name": "SEARCH.SEARCH_HEADER.FILTERS.TYPE.FOLDER",
|
||||||
"value": "TYPE:'cm:folder'"
|
"value": "TYPE:'cm:folder'"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "Document",
|
"name": "SEARCH.SEARCH_HEADER.FILTERS.TYPE.DOCUMENT",
|
||||||
"value": "TYPE:'cm:content'"
|
"value": "TYPE:'cm:content'"
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
|
||||||
"id": "contentSizeRange",
|
|
||||||
"name": "Content Size (range)",
|
|
||||||
"enabled": true,
|
|
||||||
"component": {
|
|
||||||
"selector": "number-range",
|
|
||||||
"settings": {
|
|
||||||
"field": "cm:content.size",
|
|
||||||
"format": "[{FROM} TO {TO}]"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
{
|
||||||
"id": "contentSize",
|
"id": "contentSize",
|
||||||
"name": "SEARCH.CATEGORIES.SIZE",
|
"name": "SEARCH.SEARCH_HEADER.FILTERS.SIZE.TITLE",
|
||||||
"columnKey":"content.sizeInBytes",
|
"columnKey":"content.sizeInBytes",
|
||||||
"enabled": true,
|
"enabled": true,
|
||||||
"component": {
|
"component": {
|
||||||
@@ -509,19 +497,19 @@
|
|||||||
"settings": {
|
"settings": {
|
||||||
"options": [
|
"options": [
|
||||||
{
|
{
|
||||||
"name": "Small",
|
"name": "SEARCH.SEARCH_HEADER.FILTERS.SIZE.SMALL",
|
||||||
"value": "content.size:[0 TO 1048576>"
|
"value": "content.size:[0 TO 1048576>"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "Medium",
|
"name": "SEARCH.SEARCH_HEADER.FILTERS.SIZE.MEDIUM",
|
||||||
"value": "content.size:[1048576 TO 52428800]"
|
"value": "content.size:[1048576 TO 52428800]"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "Large",
|
"name": "SEARCH.SEARCH_HEADER.FILTERS.SIZE.LARGE",
|
||||||
"value": "content.size:<52428800 TO 524288000]"
|
"value": "content.size:<52428800 TO 524288000]"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "Huge",
|
"name": "SEARCH.SEARCH_HEADER.FILTERS.SIZE.HUGE",
|
||||||
"value": "content.size:<524288000 TO MAX]"
|
"value": "content.size:<524288000 TO MAX]"
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
@@ -530,7 +518,7 @@
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
"id": "createdDateRange",
|
"id": "createdDateRange",
|
||||||
"name": "Created Date (range)",
|
"name": "SEARCH.SEARCH_HEADER.FILTERS.DATE.TITLE",
|
||||||
"columnKey": "createdAt",
|
"columnKey": "createdAt",
|
||||||
"enabled": true,
|
"enabled": true,
|
||||||
"component": {
|
"component": {
|
||||||
|
@@ -290,7 +290,28 @@
|
|||||||
"TYPE": "Type",
|
"TYPE": "Type",
|
||||||
"FILTER_BY": "Filter by {{ category }}",
|
"FILTER_BY": "Filter by {{ category }}",
|
||||||
"CLEAR": "Clear",
|
"CLEAR": "Clear",
|
||||||
"APPLY": "Apply"
|
"APPLY": "Apply",
|
||||||
|
"FILTERS" : {
|
||||||
|
"NAME" : {
|
||||||
|
"TITLE": "Name",
|
||||||
|
"PLACEHOLDER": "Enter the name"
|
||||||
|
},
|
||||||
|
"TYPE": {
|
||||||
|
"TITLE": "Check type",
|
||||||
|
"FOLDER": "Folder",
|
||||||
|
"DOCUMENT": "Document"
|
||||||
|
},
|
||||||
|
"SIZE": {
|
||||||
|
"TITLE" : "Content Size (range)",
|
||||||
|
"SMALL": "Small",
|
||||||
|
"MEDIUM": "Medium",
|
||||||
|
"LARGE": "Large",
|
||||||
|
"HUGE": "Huge"
|
||||||
|
},
|
||||||
|
"DATE" :{
|
||||||
|
"TITLE" : "Created Date (range)"
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"PERMISSION": {
|
"PERMISSION": {
|
||||||
|
@@ -15,7 +15,7 @@
|
|||||||
|
|
||||||
<mat-menu #filter="matMenu" class="adf-filter-menu">
|
<mat-menu #filter="matMenu" class="adf-filter-menu">
|
||||||
<div (click)="onMenuClick($event)" class="adf-filter-container">
|
<div (click)="onMenuClick($event)" class="adf-filter-container">
|
||||||
<div class="adf-filter-title">{{ 'SEARCH.SEARCH_HEADER.TITLE' | translate }}</div>
|
<div class="adf-filter-title">{{ category?.name | translate }}</div>
|
||||||
<adf-search-widget-container
|
<adf-search-widget-container
|
||||||
(keydown.enter)="onApply()"
|
(keydown.enter)="onApply()"
|
||||||
[id]="category?.id"
|
[id]="category?.id"
|
||||||
|
@@ -1,7 +1,7 @@
|
|||||||
<mat-form-field>
|
<mat-form-field>
|
||||||
<input
|
<input
|
||||||
matInput
|
matInput
|
||||||
[placeholder]="settings?.placeholder"
|
placeholder="{{ settings?.placeholder | translate }}"
|
||||||
[(ngModel)]="value"
|
[(ngModel)]="value"
|
||||||
(change)="onChangedHandler($event)">
|
(change)="onChangedHandler($event)">
|
||||||
<button mat-button *ngIf="value" matSuffix mat-icon-button (click)="reset()">
|
<button mat-button *ngIf="value" matSuffix mat-icon-button (click)="reset()">
|
||||||
|
Reference in New Issue
Block a user