@tibco-tcstk/component-template
Advanced tools
Comparing version 1.1.4 to 1.2.0
{ | ||
"name": "@tibco-tcstk/component-template", | ||
"version": "1.1.4", | ||
"version": "1.2.0", | ||
"description": "TCSTK Component to create Schematics in your TIBCO Cloud Starter", | ||
@@ -5,0 +5,0 @@ "scripts": { |
@@ -1,4 +0,4 @@ | ||
import { Component, OnInit, EventEmitter, Input, Output } from '@angular/core'; | ||
import {Component, EventEmitter, Input, Output, SimpleChanges, OnChanges} from '@angular/core'; | ||
import {RouteAction} from '@tibco-tcstk/tc-core-lib'; | ||
import {LiveAppsCaseCockpitComponent,Roles,RouteAccessControlConfigurationElement} from '@tibco-tcstk/tc-liveapps-lib'; | ||
import {LiveAppsCaseCockpitComponent,Roles,RouteAccessControlConfigurationElement, FormConfig} from '@tibco-tcstk/tc-liveapps-lib'; | ||
import {CustomFormDefs} from '@tibco-tcstk/tc-forms-lib'; | ||
@@ -12,3 +12,3 @@ | ||
export class <%= classify(name) %>Component extends LiveAppsCaseCockpitComponent implements OnInit { | ||
export class <%= classify(name) %>Component extends LiveAppsCaseCockpitComponent implements OnChanges { | ||
/** | ||
@@ -40,2 +40,7 @@ * The Application ID of the UI (should ideally be unique as it is shared state key) | ||
/** | ||
* The workitem Id | ||
*/ | ||
@Input() workitemId: number; | ||
/** | ||
* The ID of the logged user | ||
@@ -61,2 +66,7 @@ */ | ||
/** | ||
* Custom Form Layout Configuration | ||
*/ | ||
@Input() formConfig: FormConfig; | ||
/** | ||
* Custom Form configuration file | ||
@@ -82,2 +92,8 @@ */ | ||
/** | ||
* Allow override of forms framework | ||
* Options: bootstrap-4 or material-design | ||
*/ | ||
@Input() formsFramework: string = this.formsFramework ? this.formsFramework : 'material-design'; | ||
/** | ||
* Whether to show workitems in context panel (default true) | ||
@@ -107,2 +123,3 @@ */ | ||
/** | ||
@@ -114,5 +131,5 @@ * ~event routeAction : Component requests route to another page | ||
ngOnInit(){ | ||
super.ngOnInit(); | ||
ngOnChanges(changes: SimpleChanges): void { | ||
super.ngOnChanges(changes); | ||
} | ||
} |
import {Component, EventEmitter, Input, Output, SimpleChanges, OnChanges} from '@angular/core'; | ||
import {RouteAction} from '@tibco-tcstk/tc-core-lib'; | ||
import {LiveAppsHomeCockpitComponent,Roles,RouteAccessControlConfigurationElement} from '@tibco-tcstk/tc-liveapps-lib'; | ||
import {LiveAppsHomeCockpitComponent,Roles,RouteAccessControlConfigurationElement, FormConfig} from '@tibco-tcstk/tc-liveapps-lib'; | ||
import {CustomFormDefs} from '@tibco-tcstk/tc-forms-lib'; | ||
@@ -40,3 +40,3 @@ | ||
/** | ||
* * NOT USED but is the email address of the user (comes from resolver) | ||
* * Email address of the user (comes from resolver) | ||
*/ | ||
@@ -61,2 +61,7 @@ @Input() email: string; | ||
/** | ||
* Custom Form Layout Configuration | ||
*/ | ||
@Input() formConfig: FormConfig; | ||
/** | ||
* Custom Form configuration file | ||
@@ -74,5 +79,11 @@ */ | ||
*/ | ||
@Input() legacyCreators: boolean = this.legacyCreators ? this.legacyCreators : false; | ||
@Input() legacyCreators: boolean = this.legacyCreators ? this.legacyCreators : false; | ||
/** | ||
* Allow override of forms framework | ||
* Options: bootstrap-4 or material-design | ||
*/ | ||
@Input() formsFramework: string = this.formsFramework ? this.formsFramework : 'material-design'; | ||
/** | ||
* ~event routeAction : Component requests route to another page | ||
@@ -79,0 +90,0 @@ * ~payload RouteAction : RouteAction object to tell caller to navigate somewhere |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
183595
2495