mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-07-24 17:32:15 +00:00
[ci:force] cleanup the toolbar and tooltips
This commit is contained in:
5
.prettierrc
Normal file
5
.prettierrc
Normal file
@@ -0,0 +1,5 @@
|
|||||||
|
{
|
||||||
|
"singleQuote": true,
|
||||||
|
"trailingComma": "none",
|
||||||
|
"printWidth": 150
|
||||||
|
}
|
@@ -173,6 +173,8 @@
|
|||||||
"DELETED_BY": "Deleted by"
|
"DELETED_BY": "Deleted by"
|
||||||
},
|
},
|
||||||
"TOOLBAR": {
|
"TOOLBAR": {
|
||||||
|
"TOGGLE_DISPLAY_MODE": "Toggle display mode",
|
||||||
|
"TOGGLE_METADATA": "Toggle metadata",
|
||||||
"CARDVIEW": "Card view mode",
|
"CARDVIEW": "Card view mode",
|
||||||
"SHARE_EDIT": "Edit settings",
|
"SHARE_EDIT": "Edit settings",
|
||||||
"NEW_FOLDER": "New folder",
|
"NEW_FOLDER": "New folder",
|
||||||
@@ -181,10 +183,6 @@
|
|||||||
"DELETE": "Delete",
|
"DELETE": "Delete",
|
||||||
"FAVORITES": "Add to favorites",
|
"FAVORITES": "Add to favorites",
|
||||||
"SHARE": "Share",
|
"SHARE": "Share",
|
||||||
"THEME": "Select a theme",
|
|
||||||
"SHOW_VERSION": "Show version",
|
|
||||||
"HIDE_VERSION": "Hide version",
|
|
||||||
"LISTVIEW": "List view mode",
|
|
||||||
"CREATE_LIBRARY": "Create Library"
|
"CREATE_LIBRARY": "Create Library"
|
||||||
},
|
},
|
||||||
"ACTIONS": {
|
"ACTIONS": {
|
||||||
|
@@ -22,7 +22,7 @@
|
|||||||
</button>
|
</button>
|
||||||
<span class="app-error-message--text">{{errorMessage}}</span>
|
<span class="app-error-message--text">{{errorMessage}}</span>
|
||||||
</div>
|
</div>
|
||||||
<adf-toolbar *ngIf="!disableDragArea" [color]="toolbarColor" class="app-files-toolbar">
|
<adf-toolbar *ngIf="!disableDragArea" class="app-files-toolbar">
|
||||||
<adf-toolbar-title>
|
<adf-toolbar-title>
|
||||||
<adf-breadcrumb
|
<adf-breadcrumb
|
||||||
class="app-files-breadcrumb"
|
class="app-files-breadcrumb"
|
||||||
@@ -41,14 +41,9 @@
|
|||||||
<button
|
<button
|
||||||
mat-icon-button
|
mat-icon-button
|
||||||
data-automation-id="document-list-grid-view"
|
data-automation-id="document-list-grid-view"
|
||||||
title="{{ 'DOCUMENT_LIST.TOOLBAR.CARDVIEW' | translate }}"
|
title="{{ 'DOCUMENT_LIST.TOOLBAR.TOGGLE_DISPLAY_MODE' | translate }}"
|
||||||
(click)="toggleGalleryView()">
|
(click)="toggleGalleryView()">
|
||||||
<mat-icon *ngIf="displayMode === 'list'"
|
<mat-icon>list</mat-icon>
|
||||||
matTooltip="{{ 'DOCUMENT_LIST.TOOLBAR.CARDVIEW' | translate }}">view_comfy
|
|
||||||
</mat-icon>
|
|
||||||
<mat-icon *ngIf="displayMode === 'gallery'"
|
|
||||||
matTooltip="{{ 'DOCUMENT_LIST.TOOLBAR.LISTVIEW' | translate }}">list
|
|
||||||
</mat-icon>
|
|
||||||
</button>
|
</button>
|
||||||
<button
|
<button
|
||||||
data-automation-id="create-new-folder"
|
data-automation-id="create-new-folder"
|
||||||
@@ -57,13 +52,12 @@
|
|||||||
title="{{ 'DOCUMENT_LIST.TOOLBAR.NEW_FOLDER' | translate }}"
|
title="{{ 'DOCUMENT_LIST.TOOLBAR.NEW_FOLDER' | translate }}"
|
||||||
(error)="openSnackMessageError($event)"
|
(error)="openSnackMessageError($event)"
|
||||||
(success)="documentList.reload()"
|
(success)="documentList.reload()"
|
||||||
[adf-create-folder]="currentFolderId"
|
[adf-create-folder]="currentFolderId">
|
||||||
matTooltip="{{ 'DOCUMENT_LIST.TOOLBAR.NEW_FOLDER' | translate }}">
|
|
||||||
<mat-icon>create_new_folder</mat-icon>
|
<mat-icon>create_new_folder</mat-icon>
|
||||||
</button>
|
</button>
|
||||||
<button
|
<button
|
||||||
mat-icon-button
|
mat-icon-button
|
||||||
matTooltip="{{ 'DOCUMENT_LIST.TOOLBAR.CREATE_LIBRARY' | translate }}"
|
title="{{ 'DOCUMENT_LIST.TOOLBAR.CREATE_LIBRARY' | translate }}"
|
||||||
data-automation-id="create-new-library"
|
data-automation-id="create-new-library"
|
||||||
(click)="createLibrary()">
|
(click)="createLibrary()">
|
||||||
<mat-icon>library_add</mat-icon>
|
<mat-icon>library_add</mat-icon>
|
||||||
@@ -75,15 +69,13 @@
|
|||||||
title="{{ 'DOCUMENT_LIST.TOOLBAR.EDIT_FOLDER' | translate }}"
|
title="{{ 'DOCUMENT_LIST.TOOLBAR.EDIT_FOLDER' | translate }}"
|
||||||
(error)="openSnackMessageError($event)"
|
(error)="openSnackMessageError($event)"
|
||||||
[adf-edit-folder]="documentList.selection[0]?.entry"
|
[adf-edit-folder]="documentList.selection[0]?.entry"
|
||||||
(success)="documentList.reload()"
|
(success)="documentList.reload()">
|
||||||
matTooltip="{{ 'DOCUMENT_LIST.TOOLBAR.EDIT_FOLDER' | translate }}">
|
|
||||||
<mat-icon>create</mat-icon>
|
<mat-icon>create</mat-icon>
|
||||||
</button>
|
</button>
|
||||||
<button mat-icon-button
|
<button mat-icon-button
|
||||||
[disabled]="!hasSelection(documentList.selection)"
|
[disabled]="!hasSelection(documentList.selection)"
|
||||||
title="{{ 'DOCUMENT_LIST.TOOLBAR.DOWNLOAD' | translate }}"
|
title="{{ 'DOCUMENT_LIST.TOOLBAR.DOWNLOAD' | translate }}"
|
||||||
[adfNodeDownload]="documentList.selection"
|
[adfNodeDownload]="documentList.selection">
|
||||||
matTooltip="{{ 'DOCUMENT_LIST.TOOLBAR.DOWNLOAD' | translate }}">
|
|
||||||
<mat-icon>get_app</mat-icon>
|
<mat-icon>get_app</mat-icon>
|
||||||
</button>
|
</button>
|
||||||
<button mat-icon-button
|
<button mat-icon-button
|
||||||
@@ -93,8 +85,7 @@
|
|||||||
[adf-nodes]="documentList.selection"
|
[adf-nodes]="documentList.selection"
|
||||||
title="{{ 'DOCUMENT_LIST.TOOLBAR.DELETE' | translate }}"
|
title="{{ 'DOCUMENT_LIST.TOOLBAR.DELETE' | translate }}"
|
||||||
(delete)="onDeleteActionSuccess($event)"
|
(delete)="onDeleteActionSuccess($event)"
|
||||||
[adf-delete]="documentList.selection"
|
[adf-delete]="documentList.selection">
|
||||||
matTooltip="{{ 'DOCUMENT_LIST.TOOLBAR.DELETE' | translate }}">
|
|
||||||
<mat-icon>delete</mat-icon>
|
<mat-icon>delete</mat-icon>
|
||||||
</button>
|
</button>
|
||||||
<button
|
<button
|
||||||
@@ -103,17 +94,15 @@
|
|||||||
[disabled]="!documentList.selection.length"
|
[disabled]="!documentList.selection.length"
|
||||||
#favorite="adfFavorite"
|
#favorite="adfFavorite"
|
||||||
[adf-node-favorite]="documentList.selection"
|
[adf-node-favorite]="documentList.selection"
|
||||||
matTooltip="{{ 'DOCUMENT_LIST.TOOLBAR.FAVORITES' | translate }}">
|
title="{{ 'DOCUMENT_LIST.TOOLBAR.FAVORITES' | translate }}">
|
||||||
<mat-icon>
|
<mat-icon>{{ favorite.hasFavorites() ? 'star' :'star_border' }}</mat-icon>
|
||||||
{{ favorite.hasFavorites() ? 'star' :'star_border' }}
|
|
||||||
</mat-icon>
|
|
||||||
</button>
|
</button>
|
||||||
<button mat-icon-button
|
<button mat-icon-button
|
||||||
[disabled]="documentList.selection.length && !shareRef.isFile"
|
[disabled]="documentList.selection.length && !shareRef.isFile"
|
||||||
[baseShareUrl]="baseShareUrl"
|
[baseShareUrl]="baseShareUrl"
|
||||||
#shareRef="adfShare"
|
#shareRef="adfShare"
|
||||||
[adf-share]="documentList.selection[0]"
|
[adf-share]="documentList.selection[0]"
|
||||||
[matTooltip]="(shareRef.isShared
|
[title]="(shareRef.isShared
|
||||||
? 'DOCUMENT_LIST.TOOLBAR.SHARE_EDIT'
|
? 'DOCUMENT_LIST.TOOLBAR.SHARE_EDIT'
|
||||||
: 'DOCUMENT_LIST.TOOLBAR.SHARE') | translate">
|
: 'DOCUMENT_LIST.TOOLBAR.SHARE') | translate">
|
||||||
<mat-icon>
|
<mat-icon>
|
||||||
@@ -122,25 +111,9 @@
|
|||||||
</button>
|
</button>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<button mat-icon-button [matMenuTriggerFor]="themePicker"
|
<button mat-icon-button (click)="showVersions = !showVersions" class="app-show-versions-button"
|
||||||
matTooltip="{{ 'DOCUMENT_LIST.TOOLBAR.THEME' | translate }}">
|
title="{{ 'DOCUMENT_LIST.TOOLBAR.TOGGLE_METADATA' | translate }}">
|
||||||
<mat-icon>format_color_fill</mat-icon>
|
<mat-icon>{{ showVersions ? 'chevron_right' : 'chevron_left' }}</mat-icon>
|
||||||
</button>
|
|
||||||
|
|
||||||
<mat-menu #themePicker="matMenu">
|
|
||||||
<button mat-menu-item (click)="toolbarColor = null">Default</button>
|
|
||||||
<button mat-menu-item (click)="toolbarColor = 'primary'">Primary</button>
|
|
||||||
<button mat-menu-item (click)="toolbarColor = 'accent'">Accent</button>
|
|
||||||
<button mat-menu-item (click)="toolbarColor = 'warn'">Warn</button>
|
|
||||||
</mat-menu>
|
|
||||||
|
|
||||||
<button mat-icon-button (click)="showVersions = !showVersions" class="app-show-versions-button">
|
|
||||||
<mat-icon *ngIf="!showVersions" matTooltip="{{ 'DOCUMENT_LIST.TOOLBAR.SHOW_VERSION' | translate }}">
|
|
||||||
chevron_left
|
|
||||||
</mat-icon>
|
|
||||||
<mat-icon *ngIf="showVersions" matTooltip="{{ 'DOCUMENT_LIST.TOOLBAR.HIDE_VERSION' | translate }}">
|
|
||||||
chevron_right
|
|
||||||
</mat-icon>
|
|
||||||
</button>
|
</button>
|
||||||
|
|
||||||
<adf-toolbar-divider class="app-toolbar-divider-before-more-menu"></adf-toolbar-divider>
|
<adf-toolbar-divider class="app-toolbar-divider-before-more-menu"></adf-toolbar-divider>
|
||||||
@@ -149,8 +122,7 @@
|
|||||||
<mat-icon>more_vert</mat-icon>
|
<mat-icon>more_vert</mat-icon>
|
||||||
</button>
|
</button>
|
||||||
<mat-menu #menu="matMenu">
|
<mat-menu #menu="matMenu">
|
||||||
<button mat-menu-item
|
<button mat-menu-item (click)="toggleGalleryView()">
|
||||||
(click)="toggleGalleryView()">
|
|
||||||
<mat-icon *ngIf="displayMode === 'list'">view_comfy</mat-icon>
|
<mat-icon *ngIf="displayMode === 'list'">view_comfy</mat-icon>
|
||||||
<mat-icon *ngIf="displayMode === 'gallery'">list</mat-icon>
|
<mat-icon *ngIf="displayMode === 'gallery'">list</mat-icon>
|
||||||
<span>{{ 'DOCUMENT_LIST.TOOLBAR.CARDVIEW' | translate }}</span>
|
<span>{{ 'DOCUMENT_LIST.TOOLBAR.CARDVIEW' | translate }}</span>
|
||||||
@@ -249,15 +221,6 @@
|
|||||||
[formatTooltip]="getNodeNameTooltip"
|
[formatTooltip]="getNodeNameTooltip"
|
||||||
class="app-ellipsis-cell adf-expand-cell-5">
|
class="app-ellipsis-cell adf-expand-cell-5">
|
||||||
</data-column>
|
</data-column>
|
||||||
<!-- Location column demo -->
|
|
||||||
<!--
|
|
||||||
<data-column
|
|
||||||
key="path"
|
|
||||||
type="location"
|
|
||||||
format="/files"
|
|
||||||
title="Location">
|
|
||||||
</data-column>
|
|
||||||
-->
|
|
||||||
<data-column
|
<data-column
|
||||||
key="content.sizeInBytes"
|
key="content.sizeInBytes"
|
||||||
title="{{'DOCUMENT_LIST.COLUMNS.SIZE' | translate}}"
|
title="{{'DOCUMENT_LIST.COLUMNS.SIZE' | translate}}"
|
||||||
|
@@ -80,7 +80,6 @@ import { MetadataDialogAdapterComponent } from './metadata-dialog-adapter.compon
|
|||||||
import { Subject } from 'rxjs';
|
import { Subject } from 'rxjs';
|
||||||
import { PreviewService } from '../../services/preview.service';
|
import { PreviewService } from '../../services/preview.service';
|
||||||
import { takeUntil, debounceTime, scan } from 'rxjs/operators';
|
import { takeUntil, debounceTime, scan } from 'rxjs/operators';
|
||||||
import { ThemePalette } from '@angular/material/core';
|
|
||||||
|
|
||||||
const DEFAULT_FOLDER_TO_SHOW = '-my-';
|
const DEFAULT_FOLDER_TO_SHOW = '-my-';
|
||||||
|
|
||||||
@@ -109,8 +108,6 @@ export class FilesComponent implements OnInit, OnChanges, OnDestroy {
|
|||||||
this.appConfig.get<string>(AppConfigValues.BASESHAREURL) ||
|
this.appConfig.get<string>(AppConfigValues.BASESHAREURL) ||
|
||||||
this.appConfig.get<string>(AppConfigValues.ECMHOST)) + '/preview/s/';
|
this.appConfig.get<string>(AppConfigValues.ECMHOST)) + '/preview/s/';
|
||||||
|
|
||||||
toolbarColor: ThemePalette;
|
|
||||||
|
|
||||||
selectionModes = [
|
selectionModes = [
|
||||||
{value: 'none', viewValue: 'None'},
|
{value: 'none', viewValue: 'None'},
|
||||||
{value: 'single', viewValue: 'Single'},
|
{value: 'single', viewValue: 'Single'},
|
||||||
|
Reference in New Issue
Block a user