mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-07-24 17:32:15 +00:00
[ADF-1820] Replaced md- prefix in docs with mat- (#2573)
This commit is contained in:
committed by
Eugenio Romano
parent
a2df8876d5
commit
1fe71ed251
@@ -278,11 +278,11 @@ You can add a template that will be shown during the loading of your data:
|
|||||||
<loading-content-template>
|
<loading-content-template>
|
||||||
<ng-template>
|
<ng-template>
|
||||||
<!--Add your custom loading template here-->
|
<!--Add your custom loading template here-->
|
||||||
<md-progress-spinner
|
<mat-progress-spinner
|
||||||
class="adf-document-list-loading-margin"
|
class="adf-document-list-loading-margin"
|
||||||
[color]="'primary'"
|
[color]="'primary'"
|
||||||
[mode]="'indeterminate'">
|
[mode]="'indeterminate'">
|
||||||
</md-progress-spinner>
|
</mat-progress-spinner>
|
||||||
</ng-template>
|
</ng-template>
|
||||||
</loading-content-template>
|
</loading-content-template>
|
||||||
|
|
||||||
|
@@ -4,18 +4,6 @@ Displays a sidebar-style information panel.
|
|||||||
|
|
||||||

|

|
||||||
|
|
||||||
<!-- markdown-toc start - Don't edit this section. npm run toc to generate it-->
|
|
||||||
|
|
||||||
<!-- toc -->
|
|
||||||
|
|
||||||
- [Basic usage](#basic-usage)
|
|
||||||
- [Details](#details)
|
|
||||||
- [See also](#see-also)
|
|
||||||
|
|
||||||
<!-- tocstop -->
|
|
||||||
|
|
||||||
<!-- markdown-toc end -->
|
|
||||||
|
|
||||||
## Basic usage
|
## Basic usage
|
||||||
|
|
||||||
```html
|
```html
|
||||||
@@ -23,13 +11,13 @@ Displays a sidebar-style information panel.
|
|||||||
<div info-drawer-title>File info</div>
|
<div info-drawer-title>File info</div>
|
||||||
|
|
||||||
<div info-drawer-buttons>
|
<div info-drawer-buttons>
|
||||||
<md-icon>clear</md-icon>
|
<mat-icon>clear</mat-icon>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div info-drawer-content>
|
<div info-drawer-content>
|
||||||
<md-card>
|
<mat-card>
|
||||||
Lorem ipsum dolor sit amet...
|
Lorem ipsum dolor sit amet...
|
||||||
</md-card>
|
</mat-card>
|
||||||
</div>
|
</div>
|
||||||
</adf-info-drawer-layout>
|
</adf-info-drawer-layout>
|
||||||
```
|
```
|
||||||
|
@@ -22,7 +22,7 @@ Displays a sidebar-style information panel with tabs.
|
|||||||
```html
|
```html
|
||||||
<adf-info-drawer title="Activities" (currentTab)="getActiveTab($event)">
|
<adf-info-drawer title="Activities" (currentTab)="getActiveTab($event)">
|
||||||
<div info-drawer-buttons>
|
<div info-drawer-buttons>
|
||||||
<md-icon (click)="close()">clear</md-icon>
|
<mat-icon (click)="close()">clear</mat-icon>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<adf-info-drawer-tab label="Activity">
|
<adf-info-drawer-tab label="Activity">
|
||||||
|
@@ -1,21 +1,9 @@
|
|||||||
# Language Menu component
|
# Language Menu component
|
||||||
|
|
||||||
Displays all the languages that are present in the "app.config.json" or the defaul one (EN).
|
Displays all the languages that are present in the "app.config.json" or the default one (EN).
|
||||||
|
|
||||||

|

|
||||||
|
|
||||||
<!-- markdown-toc start - Don't edit this section. npm run toc to generate it-->
|
|
||||||
|
|
||||||
<!-- toc -->
|
|
||||||
|
|
||||||
- [Basic usage](#basic-usage)
|
|
||||||
- [Details](#details)
|
|
||||||
- [Nested menu language](#nested-menu-language)
|
|
||||||
- [Nested menu details](#nested-menu-details)
|
|
||||||
<!-- tocstop -->
|
|
||||||
|
|
||||||
<!-- markdown-toc end -->
|
|
||||||
|
|
||||||
## Basic usage
|
## Basic usage
|
||||||
|
|
||||||
How to attach an ADF Language Menu as main menu
|
How to attach an ADF Language Menu as main menu
|
||||||
@@ -53,29 +41,29 @@ This is how the configuration looks like in the the "app.config.json"
|
|||||||
```
|
```
|
||||||
In case no setting is provided, the component shows only the English language.
|
In case no setting is provided, the component shows only the English language.
|
||||||
|
|
||||||
<!-- Don't edit the See also section. Edit seeAlsoGraph.json and run config/generateSeeAlso.js -->
|
### Nested Menu language
|
||||||
<!-- seealso start -->
|
|
||||||
|
|
||||||
## Nested Menu language
|
|
||||||
|
|
||||||
How to attach an ADF Language Menu as nested menu
|
How to attach an ADF Language Menu as nested menu
|
||||||
|
|
||||||
```html
|
```html
|
||||||
<button md-icon-button class="dw-profile-menu" [mdMenuTriggerFor]="profileMenu">
|
<button mat-icon-button class="dw-profile-menu" [matMenuTriggerFor]="profileMenu">
|
||||||
<md-icon>more_vert</md-icon>
|
<mat-icon>more_vert</mat-icon>
|
||||||
</button>
|
</button>
|
||||||
<md-menu #profileMenu="mdMenu">
|
<mat-menu #profileMenu="matMenu">
|
||||||
<button md-menu-item>profile-settings</button>
|
<button mat-menu-item>profile-settings</button>
|
||||||
<button md-menu-item [matMenuTriggerFor]="langMenu">Languages</button>
|
<button mat-menu-item [matMenuTriggerFor]="langMenu">Languages</button>
|
||||||
<button md-menu-item>sign-out</button>
|
<button mat-menu-item>sign-out</button>
|
||||||
</md-menu>
|
</mat-menu>
|
||||||
<md-menu #langMenu="mdMenu">
|
<mat-menu #langMenu="matMenu">
|
||||||
<adf-language-menu></adf-language-menu>
|
<adf-language-menu></adf-language-menu>
|
||||||
</md-menu>
|
</mat-menu>
|
||||||
```
|
```
|
||||||

|

|
||||||
|
|
||||||
## Nested menu details
|
### Nested menu details
|
||||||
|
|
||||||
In the previous example we are using the ADF Language Menu as nested menu.
|
In the previous example we are using the ADF Language Menu as nested menu.
|
||||||
|
|
||||||
|
<!-- Don't edit the See also section. Edit seeAlsoGraph.json and run config/generateSeeAlso.js -->
|
||||||
|
<!-- seealso start -->
|
||||||
<!-- seealso end -->
|
<!-- seealso end -->
|
||||||
|
@@ -72,9 +72,9 @@ For demonstration purposes we are going to display several icons if underlying n
|
|||||||
```html
|
```html
|
||||||
<div *ngIf="metadata">
|
<div *ngIf="metadata">
|
||||||
<ng-container *ngIf="metadata['cm:versionLabel'] === '2.0'">
|
<ng-container *ngIf="metadata['cm:versionLabel'] === '2.0'">
|
||||||
<md-icon>portrait</md-icon>
|
<mat-icon>portrait</mat-icon>
|
||||||
<md-icon>photo_filter</md-icon>
|
<mat-icon>photo_filter</mat-icon>
|
||||||
<md-icon>rotate_90_degrees_ccw</md-icon>
|
<mat-icon>rotate_90_degrees_ccw</mat-icon>
|
||||||
</ng-container>
|
</ng-container>
|
||||||
<div *ngIf="metadata['cm:versionLabel'] !== '2.0'">
|
<div *ngIf="metadata['cm:versionLabel'] !== '2.0'">
|
||||||
{{metadata['cm:versionLabel']}}
|
{{metadata['cm:versionLabel']}}
|
||||||
@@ -82,7 +82,7 @@ For demonstration purposes we are going to display several icons if underlying n
|
|||||||
</div>
|
</div>
|
||||||
```
|
```
|
||||||
|
|
||||||
Note: For a list of the icons that can be used with `<md-icon>` component please refer to this resource: [material.io/icons](https://material.io/icons/)
|
Note: For a list of the icons that can be used with `<mat-icon>` component please refer to this resource: [material.io/icons](https://material.io/icons/)
|
||||||
|
|
||||||
## Testing component
|
## Testing component
|
||||||
|
|
||||||
@@ -111,9 +111,9 @@ import { Component, Input } from '@angular/core';
|
|||||||
template: `
|
template: `
|
||||||
<div *ngIf="metadata">
|
<div *ngIf="metadata">
|
||||||
<ng-container *ngIf="metadata['cm:versionLabel'] === '2.0'">
|
<ng-container *ngIf="metadata['cm:versionLabel'] === '2.0'">
|
||||||
<md-icon>portrait</md-icon>
|
<mat-icon>portrait</mat-icon>
|
||||||
<md-icon>photo_filter</md-icon>
|
<mat-icon>photo_filter</mat-icon>
|
||||||
<md-icon>rotate_90_degrees_ccw</md-icon>
|
<mat-icon>rotate_90_degrees_ccw</mat-icon>
|
||||||
</ng-container>
|
</ng-container>
|
||||||
<div *ngIf="metadata['cm:versionLabel'] !== '2.0'">
|
<div *ngIf="metadata['cm:versionLabel'] !== '2.0'">
|
||||||
{{metadata['cm:versionLabel']}}
|
{{metadata['cm:versionLabel']}}
|
||||||
|
@@ -1,25 +1,12 @@
|
|||||||
# Node Delete directive
|
# Node Delete directive
|
||||||
|
|
||||||
Delete multiple files and folders
|
Deletes multiple files and folders.
|
||||||
|
|
||||||
<!-- markdown-toc start - Don't edit this section. npm run toc to generate it-->
|
|
||||||
|
|
||||||
<!-- toc -->
|
|
||||||
|
|
||||||
- [Basic Usage](#basic-usage)
|
|
||||||
* [Properties](#properties)
|
|
||||||
* [Events](#events)
|
|
||||||
- [Details](#details)
|
|
||||||
|
|
||||||
<!-- tocstop -->
|
|
||||||
|
|
||||||
<!-- markdown-toc end -->
|
|
||||||
|
|
||||||
## Basic Usage
|
## Basic Usage
|
||||||
|
|
||||||
```html
|
```html
|
||||||
<adf-toolbar>
|
<adf-toolbar>
|
||||||
<button md-icon-button
|
<button mat-icon-button
|
||||||
(delete)="documentList.reload()"
|
(delete)="documentList.reload()"
|
||||||
[adf-delete]="documentList.selection">
|
[adf-delete]="documentList.selection">
|
||||||
</button>
|
</button>
|
||||||
|
@@ -1,25 +1,12 @@
|
|||||||
# Node Favorite directive
|
# Node Favorite directive
|
||||||
|
|
||||||
Selectively toggle nodes as favorite
|
Selectively toggles nodes as favorite
|
||||||
|
|
||||||
<!-- markdown-toc start - Don't edit this section. npm run toc to generate it-->
|
|
||||||
|
|
||||||
<!-- toc -->
|
|
||||||
|
|
||||||
- [Basic Usage](#basic-usage)
|
|
||||||
* [Properties](#properties)
|
|
||||||
* [Events](#events)
|
|
||||||
- [Details](#details)
|
|
||||||
|
|
||||||
<!-- tocstop -->
|
|
||||||
|
|
||||||
<!-- markdown-toc end -->
|
|
||||||
|
|
||||||
## Basic Usage
|
## Basic Usage
|
||||||
|
|
||||||
```html
|
```html
|
||||||
<adf-toolbar>
|
<adf-toolbar>
|
||||||
<button md-icon-button
|
<button mat-icon-button
|
||||||
(toggle)="done()"
|
(toggle)="done()"
|
||||||
[adf-node-favorite]="documentList.selection">
|
[adf-node-favorite]="documentList.selection">
|
||||||
</button>
|
</button>
|
||||||
@@ -62,13 +49,13 @@ wich provides a method to help further style the element.
|
|||||||
|
|
||||||
```html
|
```html
|
||||||
<button
|
<button
|
||||||
md-menu-item
|
mat-menu-item
|
||||||
#selection="adfFavorite"
|
#selection="adfFavorite"
|
||||||
[ngClass]="{ 'icon-highlight': selection.hasFavorites() }"
|
[ngClass]="{ 'icon-highlight': selection.hasFavorites() }"
|
||||||
[adf-node-favorite]="documentList.selection">
|
[adf-node-favorite]="documentList.selection">
|
||||||
<md-icon [ngClass]="{ 'icon-highlight': selection.hasFavorites() }">
|
<mat-icon [ngClass]="{ 'icon-highlight': selection.hasFavorites() }">
|
||||||
{{ selection.hasFavorites() ? 'star' : 'star_border' }}
|
{{ selection.hasFavorites() ? 'star' : 'star_border' }}
|
||||||
</md-icon>
|
</mat-icon>
|
||||||
</button>
|
</button>
|
||||||
```
|
```
|
||||||
|
|
||||||
|
@@ -45,10 +45,10 @@ For example the "Delete" button should be disabled if no selection is present or
|
|||||||
|
|
||||||
```html
|
```html
|
||||||
<adf-toolbar title="toolbar example">
|
<adf-toolbar title="toolbar example">
|
||||||
<button md-icon-button
|
<button mat-icon-button
|
||||||
adf-node-permission="delete"
|
adf-node-permission="delete"
|
||||||
[adf-nodes]="documentList.selection">
|
[adf-nodes]="documentList.selection">
|
||||||
<md-icon>delete</md-icon>
|
<mat-icon>delete</mat-icon>
|
||||||
</button>
|
</button>
|
||||||
</adf-toolbar>
|
</adf-toolbar>
|
||||||
|
|
||||||
|
@@ -1,27 +1,14 @@
|
|||||||
# Node Restore directive
|
# Node Restore directive
|
||||||
|
|
||||||
<!-- markdown-toc start - Don't edit this section. npm run toc to generate it-->
|
|
||||||
|
|
||||||
<!-- toc -->
|
|
||||||
|
|
||||||
- [Basic Usage](#basic-usage)
|
|
||||||
* [Properties](#properties)
|
|
||||||
* [Events](#events)
|
|
||||||
- [Details](#details)
|
|
||||||
|
|
||||||
<!-- tocstop -->
|
|
||||||
|
|
||||||
<!-- markdown-toc end -->
|
|
||||||
|
|
||||||
## Basic Usage
|
## Basic Usage
|
||||||
|
|
||||||
```html
|
```html
|
||||||
<adf-toolbar title="toolbar example">
|
<adf-toolbar title="toolbar example">
|
||||||
<button md-icon-button
|
<button mat-icon-button
|
||||||
location="/files"
|
location="/files"
|
||||||
[adf-restore]="documentList.selection"
|
[adf-restore]="documentList.selection"
|
||||||
(restore)="documentList.reload()">
|
(restore)="documentList.reload()">
|
||||||
<md-icon>restore</md-icon>
|
<mat-icon>restore</mat-icon>
|
||||||
</button>
|
</button>
|
||||||
</adf-toolbar>
|
</adf-toolbar>
|
||||||
|
|
||||||
|
@@ -1,21 +1,9 @@
|
|||||||
# Process Audit Directive
|
# Process Audit Directive
|
||||||
|
|
||||||
Provide a way to fetch the Process Audit information in the pdf or json format.
|
Fetches the Process Audit information in the pdf or json format.
|
||||||
|
|
||||||

|

|
||||||
|
|
||||||
<!-- markdown-toc start - Don't edit this section. npm run toc to generate it-->
|
|
||||||
|
|
||||||
<!-- toc -->
|
|
||||||
|
|
||||||
- [Basic Usage](#basic-usage)
|
|
||||||
* [Properties](#properties)
|
|
||||||
* [Events](#events)
|
|
||||||
|
|
||||||
<!-- tocstop -->
|
|
||||||
|
|
||||||
<!-- markdown-toc end -->
|
|
||||||
|
|
||||||
## Basic Usage
|
## Basic Usage
|
||||||
|
|
||||||
```html
|
```html
|
||||||
@@ -24,8 +12,8 @@ Provide a way to fetch the Process Audit information in the pdf or json format.
|
|||||||
[process-id]="processId"
|
[process-id]="processId"
|
||||||
[format]="'pdf'"
|
[format]="'pdf'"
|
||||||
[download]="true"
|
[download]="true"
|
||||||
md-icon-button (clicked)="onAuditClick($event)" (error)="onAuditError($event)" >
|
mat-icon-button (clicked)="onAuditClick($event)" (error)="onAuditError($event)" >
|
||||||
<md-icon>assignment_ind</md-icon>
|
<mat-icon>assignment_ind</mat-icon>
|
||||||
</button>
|
</button>
|
||||||
```
|
```
|
||||||
|
|
||||||
|
@@ -1,21 +1,9 @@
|
|||||||
# Task Audit Directive
|
# Task Audit Directive
|
||||||
|
|
||||||
Provides a way to fetch the Task Audit information in the pdf or json format.
|
Fetches the Task Audit information in the pdf or json format.
|
||||||
|
|
||||||

|

|
||||||
|
|
||||||
<!-- markdown-toc start - Don't edit this section. npm run toc to generate it-->
|
|
||||||
|
|
||||||
<!-- toc -->
|
|
||||||
|
|
||||||
- [Basic Usage](#basic-usage)
|
|
||||||
* [Properties](#properties)
|
|
||||||
* [Events](#events)
|
|
||||||
|
|
||||||
<!-- tocstop -->
|
|
||||||
|
|
||||||
<!-- markdown-toc end -->
|
|
||||||
|
|
||||||
## Basic Usage
|
## Basic Usage
|
||||||
|
|
||||||
```html
|
```html
|
||||||
@@ -23,8 +11,8 @@ Provides a way to fetch the Task Audit information in the pdf or json format.
|
|||||||
adf-task-audit
|
adf-task-audit
|
||||||
[task-id]="taskId"
|
[task-id]="taskId"
|
||||||
[download]="download"
|
[download]="download"
|
||||||
md-icon-button (clicked)="onAuditClick($event)" (error)="onAuditError($event)" >
|
mat-icon-button (clicked)="onAuditClick($event)" (error)="onAuditError($event)" >
|
||||||
<md-icon>assignment_ind</md-icon>
|
<mat-icon>assignment_ind</mat-icon>
|
||||||
</button>
|
</button>
|
||||||
```
|
```
|
||||||
|
|
||||||
|
@@ -24,11 +24,11 @@ Simple container for headers, titles, actions and breadcrumbs.
|
|||||||
|
|
||||||
```html
|
```html
|
||||||
<adf-toolbar title="Toolbar">
|
<adf-toolbar title="Toolbar">
|
||||||
<button md-icon-button>
|
<button mat-icon-button>
|
||||||
<md-icon>create_new_folder</md-icon>
|
<mat-icon>create_new_folder</mat-icon>
|
||||||
</button>
|
</button>
|
||||||
<button md-icon-button>
|
<button mat-icon-button>
|
||||||
<md-icon>delete</md-icon>
|
<mat-icon>delete</mat-icon>
|
||||||
</button>
|
</button>
|
||||||
</adf-toolbar>
|
</adf-toolbar>
|
||||||
```
|
```
|
||||||
@@ -80,27 +80,27 @@ You can use the following example to create a dropdown menu:
|
|||||||
<adf-toolbar title="Toolbar">
|
<adf-toolbar title="Toolbar">
|
||||||
...
|
...
|
||||||
|
|
||||||
<button md-icon-button [mdMenuTriggerFor]="menu">
|
<button mat-icon-button [matMenuTriggerFor]="menu">
|
||||||
<md-icon>more_vert</md-icon>
|
<mat-icon>more_vert</mat-icon>
|
||||||
</button>
|
</button>
|
||||||
<md-menu #menu="mdMenu">
|
<mat-menu #menu="matMenu">
|
||||||
<button md-menu-item>
|
<button mat-menu-item>
|
||||||
<md-icon>dialpad</md-icon>
|
<mat-icon>dialpad</mat-icon>
|
||||||
<span>Redial</span>
|
<span>Redial</span>
|
||||||
</button>
|
</button>
|
||||||
<button md-menu-item disabled>
|
<button mat-menu-item disabled>
|
||||||
<md-icon>voicemail</md-icon>
|
<mat-icon>voicemail</mat-icon>
|
||||||
<span>Check voicemail</span>
|
<span>Check voicemail</span>
|
||||||
</button>
|
</button>
|
||||||
<button md-menu-item>
|
<button mat-menu-item>
|
||||||
<md-icon>notifications_off</md-icon>
|
<mat-icon>notifications_off</mat-icon>
|
||||||
<span>Disable alerts</span>
|
<span>Disable alerts</span>
|
||||||
</button>
|
</button>
|
||||||
</md-menu>
|
</mat-menu>
|
||||||
</adf-toolbar>
|
</adf-toolbar>
|
||||||
```
|
```
|
||||||
|
|
||||||
The code above is based on the `<md-menu>` component from the `@angular/material` library. You can use any custom menu component as well.
|
The code above is based on the `<mat-menu>` component from the `@angular/material` library. You can use any custom menu component as well.
|
||||||
|
|
||||||

|

|
||||||
|
|
||||||
|
Reference in New Issue
Block a user