mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-07-31 17:38:48 +00:00
* Add tests for text widget * Propose refactor search filters component * Fix lint errors * [ADF-3715]Refactor searchFiltersPage * Change describe * Replaced use of searchDialog with browser.get * Added a test case * Modifications to enterConfiguration method * Create a new method enterBigConfigurationText * Fix lint issues * no message
136 lines
4.1 KiB
JSON
136 lines
4.1 KiB
JSON
{
|
|
"include": ["path", "allowableOperations"],
|
|
"sorting": {
|
|
"options": [
|
|
{ "key": "name", "label": "Name", "type": "FIELD", "field": "cm:name", "ascending": true },
|
|
{ "key": "content.sizeInBytes", "label": "Size", "type": "FIELD", "field": "content.size", "ascending": true },
|
|
{ "key": "description", "label": "Description", "type": "FIELD", "field": "cm:description", "ascending": true },
|
|
{ "key": "createdByUser", "label": "Author", "type": "FIELD", "field": "cm:creator", "ascending": true },
|
|
{ "key": "createdAt", "label": "Created", "type": "FIELD", "field": "cm:created", "ascending": true }
|
|
],
|
|
"defaults": [
|
|
{ "key": "name", "type": "FIELD", "field": "cm:name", "ascending": true }
|
|
]
|
|
},
|
|
"filterQueries": [
|
|
{ "query": "TYPE:'cm:folder' OR TYPE:'cm:content'" },
|
|
{ "query": "NOT cm:creator:System" }
|
|
],
|
|
"facetFields": {
|
|
"expanded": true,
|
|
"fields": [
|
|
{ "field": "content.mimetype", "mincount": 1, "label": "1:Type" },
|
|
{ "field": "content.size", "mincount": 1, "label": "2:Size" },
|
|
{ "field": "creator", "mincount": 1, "label": "3:Creator" },
|
|
{ "field": "modifier", "mincount": 1, "label": "4:Modifier" },
|
|
{ "field": "created", "mincount": 1, "label": "5:Created" }
|
|
]
|
|
},
|
|
"facetQueries": {
|
|
"label": "My facet queries",
|
|
"pageSize": 5,
|
|
"queries": [
|
|
{ "query": "created:2018", "label": "1.Created This Year" },
|
|
{ "query": "content.mimetype", "label": "2.Type" },
|
|
{ "query": "content.size:[0 TO 10240]", "label": "3.Size: xtra small"},
|
|
{ "query": "content.size:[10240 TO 102400]", "label": "4.Size: small"},
|
|
{ "query": "content.size:[102400 TO 1048576]", "label": "5.Size: medium" },
|
|
{ "query": "content.size:[1048576 TO 16777216]", "label": "6.Size: large" },
|
|
{ "query": "content.size:[16777216 TO 134217728]", "label": "7.Size: xtra large" },
|
|
{ "query": "content.size:[134217728 TO MAX]", "label": "8.Size: XX large" }
|
|
]
|
|
},
|
|
"categories": [
|
|
{
|
|
"id": "queryName",
|
|
"name": "Name",
|
|
"enabled": true,
|
|
"expanded": true,
|
|
"component": {
|
|
"selector": "text",
|
|
"settings": {
|
|
"pattern": "cm:name:'(.*?)'",
|
|
"field": "cm:name",
|
|
"placeholder": "Enter the name"
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"id": "checkList",
|
|
"name": "Check List",
|
|
"enabled": true,
|
|
"component": {
|
|
"selector": "check-list",
|
|
"settings": {
|
|
"pageSize": 5,
|
|
"operator": "OR",
|
|
"options": [
|
|
{ "name": "Folder", "value": "TYPE:'cm:folder'" },
|
|
{ "name": "Document", "value": "TYPE:'cm:content'" }
|
|
]
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"id": "contentSize",
|
|
"name": "Content Size",
|
|
"enabled": true,
|
|
"component": {
|
|
"selector": "slider",
|
|
"settings": {
|
|
"field": "cm:content.size",
|
|
"min": 0,
|
|
"max": 18,
|
|
"step": 1,
|
|
"thumbLabel": true
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"id": "contentSizeRange",
|
|
"name": "Content Size (range)",
|
|
"enabled": true,
|
|
"component": {
|
|
"selector": "number-range",
|
|
"settings": {
|
|
"field": "cm:content.size",
|
|
"format": "[{FROM} TO {TO}]"
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"id": "createdDateRange",
|
|
"name": "Created Date (range)",
|
|
"enabled": true,
|
|
"component": {
|
|
"selector": "date-range",
|
|
"settings": {
|
|
"field": "cm:created",
|
|
"dateFormat": "DD-MMM-YY"
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"id": "queryType",
|
|
"name": "Type",
|
|
"enabled": true,
|
|
"component": {
|
|
"selector": "radio",
|
|
"settings": {
|
|
"field": null,
|
|
"pageSize": 5,
|
|
"options": [
|
|
{ "name": "APP.SEARCH.RADIO.NONE", "value": "", "default": true },
|
|
{ "name": "APP.SEARCH.RADIO.ALL", "value": "TYPE:'cm:folder' OR TYPE:'cm:content'" },
|
|
{ "name": "APP.SEARCH.RADIO.FOLDER", "value": "TYPE:'cm:folder'" },
|
|
{ "name": "APP.SEARCH.RADIO.DOCUMENT", "value": "TYPE:'cm:content'" }
|
|
]
|
|
}
|
|
}
|
|
}
|
|
]
|
|
}
|
|
|
|
|
|
|