change needed for health care app

This commit is contained in:
Mario Romano
2016-09-06 15:21:55 +01:00
parent a9a2a9d9ae
commit f9210ba048
10 changed files with 16 additions and 4 deletions

View File

@@ -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. |

View File

@@ -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">

View File

@@ -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;

View File

@@ -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];

View File

@@ -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

View File

@@ -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 |

View File

@@ -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)"

View File

@@ -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;

View File

@@ -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 {

View File

@@ -69,7 +69,7 @@ export class DocumentListService {
let nodeId = '-root-';
let params: any = {
relativePath: folder,
include: ['path']
include: ['path','properties']
};
if (opts) {