mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-07-31 17:38:48 +00:00
[ADF-868] Use new ADF prefix in all tags (#2035)
* use new ADF prefix in all thr tag * fix failing test * fix datatable test
This commit is contained in:
@@ -71,17 +71,17 @@ npm install ng2-activiti-form
|
||||
The component shows a Form from Activiti
|
||||
|
||||
```html
|
||||
<activiti-form
|
||||
<adf-form
|
||||
[taskId]="taskId">
|
||||
</activiti-form>
|
||||
</adf-form>
|
||||
```
|
||||
|
||||
**Display form instance by task id:**
|
||||
|
||||
```html
|
||||
<activiti-form
|
||||
<adf-form
|
||||
[taskId]="selectedTask?.id">
|
||||
</activiti-form>
|
||||
</adf-form>
|
||||
```
|
||||
|
||||
For an existing Task both form and values will be fetched and displayed.
|
||||
@@ -89,10 +89,10 @@ For an existing Task both form and values will be fetched and displayed.
|
||||
**Display form definition by form id:**
|
||||
|
||||
```html
|
||||
<activiti-form
|
||||
<adf-form
|
||||
[formId]="selectedFormDefinition?.id"
|
||||
[data]="customData">
|
||||
</activiti-form>
|
||||
</adf-form>
|
||||
```
|
||||
|
||||
Only form definition will be fetched.
|
||||
@@ -100,10 +100,10 @@ Only form definition will be fetched.
|
||||
**Display form definition by form name:**
|
||||
|
||||
```html
|
||||
<activiti-form
|
||||
<adf-form
|
||||
[formName]="selectedFormDefinition?.name"
|
||||
[data]="customData">
|
||||
</activiti-form>
|
||||
</adf-form>
|
||||
```
|
||||
|
||||
**Display form definition by ECM nodeId:**
|
||||
@@ -113,9 +113,9 @@ If there is no form definied in activiti for the type of the node,
|
||||
a new form will be automaticaly created in Activiti.
|
||||
|
||||
```html
|
||||
<activiti-form
|
||||
<adf-form
|
||||
[nodeId]="'e280be3a-6584-45a1-8bb5-89bfe070262e'">
|
||||
</activiti-form>
|
||||
</adf-form>
|
||||
```
|
||||
|
||||
**Display form definition by form name, and store the form field as metadata:**
|
||||
@@ -123,12 +123,12 @@ a new form will be automaticaly created in Activiti.
|
||||
The param nameNode is optional.
|
||||
|
||||
```html
|
||||
<activiti-form
|
||||
<adf-form
|
||||
[formName]="'activitiForms:patientFolder'"
|
||||
[saveMetadata]="true"
|
||||
[path]="'/Sites/swsdp/documentLibrary'"
|
||||
[nameNode]="'test'">
|
||||
</activiti-form>
|
||||
</adf-form>
|
||||
```
|
||||
|
||||
**Display form definition by ECM nodeId:**
|
||||
@@ -137,12 +137,12 @@ In this case the metadata of the node are showed in an activiti Form,
|
||||
and store the form field as metadata. The param nameNode is optional.
|
||||
|
||||
```html
|
||||
<activiti-form
|
||||
<adf-form
|
||||
[nodeId]="'e280be3a-6584-45a1-8bb5-89bfe070262e'"
|
||||
[saveMetadata]="true"
|
||||
[path]="'/Sites/swsdp/documentLibrary'"
|
||||
[nameNode]="'test'">
|
||||
</activiti-form>
|
||||
</adf-form>
|
||||
```
|
||||
|
||||
### Properties
|
||||
@@ -191,10 +191,10 @@ All `form*` events receive an instance of the `FormModel` as event argument for
|
||||
**MyView.component.html**
|
||||
|
||||
```html
|
||||
<activiti-form
|
||||
<adf-form
|
||||
[taskId]="selectedTask?.id"
|
||||
(formSaved)="onFormSaved($event)">
|
||||
</activiti-form>
|
||||
</adf-form>
|
||||
```
|
||||
|
||||
**MyView.component.ts**
|
||||
@@ -218,10 +218,10 @@ Alternatively you may want just running additional code on outcome execution wit
|
||||
**MyView.component.html**
|
||||
|
||||
```html
|
||||
<activiti-form
|
||||
<adf-form
|
||||
[taskId]="selectedTask?.id"
|
||||
executeOutcome="validateForm($event)">
|
||||
</activiti-form>
|
||||
</adf-form>
|
||||
```
|
||||
|
||||
**MyView.component.ts**
|
||||
@@ -262,9 +262,9 @@ will also be executed after your custom code.**
|
||||
The component shows the content preview.
|
||||
|
||||
```html
|
||||
<activiti-content
|
||||
<adf-content
|
||||
[contentId]="'1001'">
|
||||
</activiti-content>
|
||||
</adf-content>
|
||||
```
|
||||
|
||||
### Properties
|
||||
|
@@ -22,7 +22,7 @@ import { ContentLinkModel } from './widgets/core/content-link.model';
|
||||
import { Observable } from 'rxjs/Rx';
|
||||
|
||||
@Component({
|
||||
selector: 'activiti-content',
|
||||
selector: 'adf-content, activiti-content',
|
||||
templateUrl: './activiti-content.component.html',
|
||||
styleUrls: ['./activiti-content.component.css']
|
||||
})
|
||||
|
@@ -29,7 +29,7 @@ import { WidgetVisibilityService } from './../services/widget-visibility.servic
|
||||
declare var componentHandler: any;
|
||||
|
||||
@Component({
|
||||
selector: 'activiti-form',
|
||||
selector: 'adf-form, activiti-form',
|
||||
templateUrl: './activiti-form.component.html',
|
||||
styleUrls: ['./activiti-form.component.css']
|
||||
})
|
||||
|
@@ -51,7 +51,7 @@ import { ContentLinkModel } from './widgets/core/content-link.model';
|
||||
* @returns {ActivitiForm} .
|
||||
*/
|
||||
@Component({
|
||||
selector: 'activiti-start-form',
|
||||
selector: 'adf-start-form, activiti-start-form',
|
||||
templateUrl: './activiti-start-form.component.html',
|
||||
styleUrls: ['./activiti-form.component.css']
|
||||
})
|
||||
|
@@ -47,13 +47,13 @@
|
||||
<div *ngSwitchCase="'upload'">
|
||||
<div *ngIf="hasFile" class="mdl-grid">
|
||||
<div *ngFor="let file of field.value" class="mdl-cell mdl-cell--6-col">
|
||||
<activiti-content [id]="file.id" [showDocumentContent]="showDocumentContent"></activiti-content>
|
||||
<adf-content [id]="file.id" [showDocumentContent]="showDocumentContent"></adf-content>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div *ngSwitchCase="'document'">
|
||||
<div *ngIf="hasFile">
|
||||
<activiti-content [id]="id" [showDocumentContent]="true"></activiti-content>
|
||||
<adf-content [id]="id" [showDocumentContent]="true"></adf-content>
|
||||
</div>
|
||||
</div>
|
||||
<div *ngSwitchDefault
|
||||
|
Reference in New Issue
Block a user