Constructor Summary
Public Constructor | ||
public |
constructor(fieldData: object, bid: Bid) Creates an instance of Field. |
Member Summary
Public Members | ||
public get |
Returns the actual value of the field after the project has been completed and reviewed for reconciliation. |
|
public set |
Sets the actual value for reconciliation. |
|
public get |
Returns the anchor identifier of the field. |
|
public |
Reference to the bid that the field belongs to. |
|
public get |
Gets the configuration information for the bid entity. |
|
public get |
this get was deprecated. Definition ids will become obsolete in planned data structure upgrade.
Gets the field's definition id. |
|
public get |
Gets the field type. |
|
public get |
Determines if the current value is the result of being auto populated due to the field's ruleset. |
|
public get |
Gets value of the field. |
|
public set |
Sets the field value. |
Method Summary
Public Methods | ||
public |
Assess the field, determining if it should be auto populated. |
|
public |
bind() Binds the "updated" event for all dependant bid entities. |
|
public |
dependants(): BidEntity[] Gets all the bid entities that relay on the field instance. |
|
public |
dependencies(): BidEntity[] Returns all the dependencies that the field relies on. |
|
public |
dirty() Flags the field and corresponding bid as dirty and to be saved. |
|
public |
exportData(alwaysIncludeConfig: boolean): object Exports internal data. |
|
public |
getAssembly(): Assembly | undefined Get the field's assembly if it has one |
|
public |
If the field has a fieldType of "list", getDatatable will return the datatable instance that it relies on, otherwise will return null. |
|
public |
getListOptions(): object[] Gets a list of options bound to a datatable. |
|
public |
Gets the selected list option. |
|
public |
getSelectedOptionValue(datatableColumnId: string): string | number | boolean Gets the value of the selected field list based on the datatable column id. |
|
public |
hasNullDependency(): * Determines if the field has any null or undefined dependencies |
|
public |
Determines if instance is dirty. |
|
public |
Determines if a field has a dependency reference. |
|
public |
setAssembly(assembly: Assembly | string): Assembly Adds the field to an assembly. |
|
public |
unsetAssembly(): void Removes any assembly reference from the field. |
Inherited Summary
From class AdvanceEventEmitter | ||
public |
Maximum number of events fired for the requester before events stop. |
|
public |
|
|
public |
|
|
public |
removeListenerByRequester(eventName: string, requesterId: string) Removes event listeners by event and requesterId. |
From class BidEntity | ||
public get |
Determine if the entity is in an assembly |
|
public get |
Gets the id of the bid entity. |
|
public get |
Gets the bid entity title. |
|
public set |
Sets the bid entity title. |
|
public get |
Gets the bid entity type. |
|
public abstract |
Assesses bid entity. |
|
public |
dependants(): BidEntity[] Gets an array of depndants that rely on the bid entity. |
|
public |
dependencies(): BidEntity[] Gets all the dependencies that the bid entity relies on. |
|
public |
dirty() Flags the bid entity as dirty and to be saved. |
|
public |
exportData(): object Exports the internal data for the bid entity. |
|
public |
hasNullDependency(field: string): boolean Determines if bid entity relies on a null or undefined dependency value |
|
public |
async initSaveChangeLog(originalValue: *, newValue: *, valueType: *, entityProperty: *, metaData: *): * |
|
public |
Determines of bid entity is dirty. |
|
public |
pristine() Marks the bid entity as clean. |
Public Constructors
Public Members
public get actualValue: string source
Returns the actual value of the field after the project has been completed and reviewed for reconciliation.
public set actualValue: string source
Sets the actual value for reconciliation. Marks field as dirty.
public get anchor: string | null source
Returns the anchor identifier of the field. Anchors are a common global identifier that help identify similar fields across different assemblies. They should be unique to their assembly. Using anchors allow for greater automation potential.
public get definitionId: number source
Gets the field's definition id.
public get isAutoSelected: boolean source
Determines if the current value is the result of being auto populated due to the field's ruleset.
Public Methods
public assess(dependency: BidEntity) source
Assess the field, determining if it should be auto populated.
Override:
BidEntity#assessParams:
Name | Type | Attribute | Description |
dependency | BidEntity |
|
The calling dependency. |
Emit:
assessing |
Fires event before assessment. |
assessed |
Fires event after assessment. |
updated |
Fires event if the field has been changed during assessment. |
public dependants(): BidEntity[] source
Gets all the bid entities that relay on the field instance.
Override:
BidEntity#dependantspublic dependencies(): BidEntity[] source
Returns all the dependencies that the field relies on.
Override:
BidEntity#dependenciespublic dirty() source
Flags the field and corresponding bid as dirty and to be saved.
Override:
BidEntity#dirtypublic exportData(alwaysIncludeConfig: boolean): object source
Exports internal data.
Override:
BidEntity#exportDataParams:
Name | Type | Attribute | Description |
alwaysIncludeConfig | boolean |
|
Will include config object in export regardless of changed status. |
public getDatatable(): Datatable source
If the field has a fieldType of "list", getDatatable will return the datatable instance that it relies on, otherwise will return null.
public getListOptions(): object[] source
Gets a list of options bound to a datatable.
Return:
object[] |
Return Properties:
Name | Type | Attribute | Description |
title | string | ||
row_id | string | The id of a datatable row. This value should to be applied to the Field.value to selelect specific row. |
public getSelectedOptionValue(datatableColumnId: string): string | number | boolean source
Gets the value of the selected field list based on the datatable column id.
Params:
Name | Type | Attribute | Description |
datatableColumnId | string |
public hasNullDependency(): * source
Determines if the field has any null or undefined dependencies
Override:
BidEntity#hasNullDependencyReturn:
* |