mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2026-09-09 18:03:21 +00:00
@@ -125,6 +125,7 @@ The recommended set of properties can be found in the following table:
|
||||
| showTitle | boolean | true | Toggle rendering of the form title. |
|
||||
| showCompleteButton | boolean | true | Toggle rendering of the `Complete` outcome button. |
|
||||
| showSaveButton | boolean | true | Toggle rendering of the `Save` outcome button. |
|
||||
| showDebugButton | boolean | false | Toggle debug options. |
|
||||
| readOnly | boolean | false | Toggle readonly state of the form. Enforces all form widgets render readonly if enabled. |
|
||||
| showRefreshButton | boolean | true | Toggle rendering of the `Refresh` button. |
|
||||
| saveMetadata | boolean | false | Store the value of the form as metadata. |
|
||||
|
||||
@@ -39,7 +39,7 @@
|
||||
For debugging and data visualisation purposes,
|
||||
will be removed during future revisions
|
||||
-->
|
||||
<div class="activiti-form-debug-container">
|
||||
<div *ngIf="showDebugButton" class="activiti-form-debug-container">
|
||||
|
||||
<div style="float: right">
|
||||
<label class="mdl-switch mdl-js-switch mdl-js-ripple-effect" for="switch-1" [class.is-checked]="debugMode">
|
||||
|
||||
@@ -60,6 +60,8 @@ import { WidgetVisibilityService } from './../services/widget-visibility.servic
|
||||
*
|
||||
* {showRefreshButton} boolean - to hide the refresh button of the form pass false, default true;
|
||||
*
|
||||
* {showDebugButton} boolean - to show the debug options, default false;
|
||||
*
|
||||
* {showCompleteButton} boolean - to hide the complete button of the form pass false, default true;
|
||||
*
|
||||
* {showSaveButton} boolean - to hide the save button of the form pass false, default true;
|
||||
@@ -124,6 +126,9 @@ export class ActivitiForm implements OnInit, AfterViewChecked, OnChanges {
|
||||
@Input()
|
||||
showSaveButton: boolean = true;
|
||||
|
||||
@Input()
|
||||
showDebugButton: boolean = false;
|
||||
|
||||
@Input()
|
||||
readOnly: boolean = false;
|
||||
|
||||
|
||||
@@ -20,5 +20,6 @@ import { ActivitiTaskDetails } from './src/components/activiti-task-details.comp
|
||||
import { ActivitiFilters } from './src/components/activiti-filters.component';
|
||||
|
||||
export * from './src/components/activiti-tasklist.component';
|
||||
export * from './src/services/activiti-tasklist.service';
|
||||
|
||||
export const ALFRESCO_TASKLIST_DIRECTIVES: [any] = [ActivitiFilters, ActivitiTaskList, ActivitiTaskDetails];
|
||||
|
||||
@@ -135,6 +135,7 @@ export class MyView {
|
||||
| data | DataTableAdapter | instance of **ObjectDataTableAdapter** | data source |
|
||||
| multiselect | boolean | false | Toggles multiple row selection, renders checkboxes at the beginning of each row |
|
||||
| actions | boolean | false | Toggles data actions column |
|
||||
| fallbackThubnail | string | | Fallback image for row ehre thubnail is missing|
|
||||
|
||||
### Events
|
||||
|
||||
|
||||
@@ -98,6 +98,7 @@ Also make sure you include these dependencies in your `index.html` file:
|
||||
| navigate | boolean | true | Toggles navigation to folder content or file preview |
|
||||
| navigationMode | string (click\|dblclick) | dblclick | User interaction for folder navigation or file preview |
|
||||
| thumbnails | boolean | false | Show document thumbnails rather than icons |
|
||||
| fallbackThubnail | string | | Fallback image for row ehre thubnail is missing|
|
||||
| multiselect | boolean | false | Toggles multiselect mode |
|
||||
| contentActions | boolean | false | Toggles content actions for each row |
|
||||
| contextMenuActions | boolean | false | Toggles context menus for each row |
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
[data]="data"
|
||||
[actions]="contentActions"
|
||||
[multiselect]="multiselect"
|
||||
[fallbackThumbnail]="baseComponentPath + '/img/ft_ic_miscellaneous.svg'"
|
||||
[fallbackThumbnail]="fallbackThubnail"
|
||||
(showRowContextMenu)="onShowRowContextMenu($event)"
|
||||
(showRowActionsMenu)="onShowRowActionsMenu($event)"
|
||||
(executeRowAction)="onExecuteRowAction($event)"
|
||||
|
||||
@@ -73,6 +73,9 @@ export class DocumentList implements OnInit, AfterViewInit, AfterViewChecked, Af
|
||||
|
||||
baseComponentPath = __moduleName.replace('/components/document-list.js', '');
|
||||
|
||||
@Input()
|
||||
fallbackThubnail: string = this.baseComponentPath + '/img/ft_ic_miscellaneous.svg';
|
||||
|
||||
@Input()
|
||||
navigate: boolean = true;
|
||||
|
||||
|
||||
@@ -325,7 +325,7 @@ export class ShareDataRow implements DataRow {
|
||||
}
|
||||
|
||||
export interface RowFilter {
|
||||
(value: ShareDataRow, index: number, array: ShareDataRow[]): boolean;
|
||||
(value: ShareDataRow, index: number, array: ShareDataRow[]): any;
|
||||
}
|
||||
|
||||
export interface ImageResolver {
|
||||
|
||||
@@ -101,7 +101,7 @@ describe('DocumentListService', () => {
|
||||
service.getFolder('fake-node-id').subscribe(e => {
|
||||
expect(jasmine.Ajax.requests.mostRecent().url)
|
||||
.toBe('http://localhost:8080/alfresco/api/-default-/public/alfresco/versions/1/nodes/-root-/' +
|
||||
'children?include=path&relativePath=fake-node-id');
|
||||
'children?include=path%2Cproperties&relativePath=fake-node-id');
|
||||
expect(jasmine.Ajax.requests.mostRecent().method)
|
||||
.toBe('GET');
|
||||
done();
|
||||
@@ -116,7 +116,7 @@ describe('DocumentListService', () => {
|
||||
service.getFolder('fake-node-id', {maxItems: 10}).subscribe(e => {
|
||||
expect(jasmine.Ajax.requests.mostRecent().url)
|
||||
.toBe('http://localhost:8080/alfresco/api/-default-/public/alfresco/versions/1/nodes/-root-/' +
|
||||
'children?maxItems=10&include=path&relativePath=fake-node-id');
|
||||
'children?maxItems=10&include=path%2Cproperties&relativePath=fake-node-id');
|
||||
expect(jasmine.Ajax.requests.mostRecent().method)
|
||||
.toBe('GET');
|
||||
done();
|
||||
|
||||
@@ -69,7 +69,7 @@ export class DocumentListService {
|
||||
let nodeId = '-root-';
|
||||
let params: any = {
|
||||
relativePath: folder,
|
||||
include: ['path']
|
||||
include: ['path', 'properties']
|
||||
};
|
||||
|
||||
if (opts) {
|
||||
|
||||
@@ -353,7 +353,7 @@ describe('AlfrescoLogin', () => {
|
||||
expect(component.success).toBe(true);
|
||||
expect(compiled.querySelector('#login-success')).toBeDefined();
|
||||
expect(compiled.querySelector('#login-success').innerHTML).toEqual('LOGIN.MESSAGES.LOGIN-SUCCESS');
|
||||
expect(component.onSuccess.emit).toHaveBeenCalledWith(true);
|
||||
expect(component.onSuccess.emit).toHaveBeenCalledWith({ token: true, username: 'fake-username', password: 'fake-password' });
|
||||
});
|
||||
|
||||
it('should emit onError event after the login has failed', () => {
|
||||
|
||||
@@ -150,7 +150,7 @@ export class AlfrescoLoginComponent implements OnInit {
|
||||
.subscribe(
|
||||
(token: any) => {
|
||||
this.success = true;
|
||||
this.onSuccess.emit(token);
|
||||
this.onSuccess.emit({token: token, username: values.username, password: values.password});
|
||||
},
|
||||
(err: any) => {
|
||||
this.enableError();
|
||||
|
||||
Reference in New Issue
Block a user