projects/m2-core/src/lib/shared/ui-components/value/property-value/attribute-value.component.ts
| changeDetection | ChangeDetectionStrategy.OnPush |
| selector | attribute-value |
| templateUrl | ./attribute-value.component.html |
constructor(cd: ChangeDetectorRef, actionsService: ActionsService, logger: Logger, dataService: DataService, dataReadService: DataReadService, dataEditService: DataEditService, resourceReadService: ResourceReadService, propertyValueService: PropertyValueService, propositionsService: PropositionsService, doubleParserService: DoubleParserService, tabService: TabService, globalModalsService: GlobalModalsService, backgroundService: BackgroundService)
|
||||||||||||||||||||||||||||||||||||||||||
|
Parameters :
|
| appendNameValue |
Type : boolean
|
| appendUnit |
Type : boolean
|
| applicationAttributes |
Type : Pair<number | Map<number, ApplicationAttribute[]>>
|
| autoPostProcessing |
Type : boolean
|
| checkIncompliantConstraints |
Type : boolean
|
| customPropositions |
Type : Proposition[]
|
| customUpdatePropertyValueFn |
Type : function
|
| deprecated |
Type : boolean
|
| doublePrecision |
Type : number
|
| editModeON |
Type : boolean
|
| hasPostProcessing |
Type : boolean
|
| hasPropositions |
Type : boolean
|
| inputMask |
Type : string
|
| isCalculated |
Type : boolean
|
| isHistorical |
Type : boolean
|
| isPostProcessingInProgress |
Type : boolean
|
| natureId |
Type : number
|
| ownerItemId |
Type : number
|
| postProcessingTip |
Type : string
|
| propertyValue |
| restrictiveConditions |
Type : string[]
|
| showPropositionsOnInput |
Type : boolean
|
| showUseImageIcon |
Type : boolean
|
Default value : true
|
| statusInCompliance |
Type : StatusInCompliance
|
| unit |
Type : MeasurementUnit
|
| useParsedDoubleParams |
Type : boolean
|
| valueIdentifier |
Type : number
|
| created |
Type : EventEmitter
|
| deleted |
Type : EventEmitter
|
| enrichmentStarted |
Type : EventEmitter
|
| valueInput |
Type : EventEmitter
|
| Async enrichPropertyValue | ||||||
enrichPropertyValue(newValue: string)
|
||||||
|
Post processing
Parameters :
Returns :
Promise<any>
|
| Public focusValueInput |
focusValueInput()
|
|
ValueComponent API
Returns :
void
|
| ngOnInit |
ngOnInit()
|
|
Returns :
void
|
| onChangeValue | ||||||
onChangeValue(newValue: string)
|
||||||
|
Parameters :
Returns :
void
|
| onChangeValueUnit | ||||||
onChangeValueUnit(newValue: string)
|
||||||
|
Parameters :
Returns :
void
|
| onDeleteValueClick | ||||||
onDeleteValueClick(event: MouseEvent)
|
||||||
|
Parameters :
Returns :
void
|
| onFileSelected | ||||||
onFileSelected(file: File)
|
||||||
|
Parameters :
Returns :
void
|
| onFormulaEdited | ||||||
onFormulaEdited(rule: FormulaRule)
|
||||||
|
Parameters :
Returns :
Promise<number>
|
| onOpenFormulaEditorClick |
onOpenFormulaEditorClick()
|
|
Returns :
void
|
| onPropositionSelected | ||||||
onPropositionSelected(proposition: Proposition)
|
||||||
|
Parameters :
Returns :
void
|
| onUseImage | ||||||
onUseImage(base64Image: string)
|
||||||
|
Parameters :
Returns :
void
|
| onValueInput | ||||||
onValueInput(input: string)
|
||||||
|
Parameters :
Returns :
void
|
| onValueInputKeyDown | ||||||
onValueInputKeyDown(params: literal type)
|
||||||
|
Parameters :
Returns :
void
|
| showValuePropositions |
showValuePropositions(input: string, immediately?: boolean)
|
|
Returns :
void
|
| Public _isFocused |
Type : boolean
|
| _propertyValue |
Type : PropertyValue
|
| Public cd |
Type : ChangeDetectorRef
|
| getFileBodyUrlFn |
Type : function
|
Default value : ((valueId, isHistorical, valueIdentifier) => isHistorical ?
this.resourceReadService.getAttributeValueFileBodyFromHistoryURL(valueIdentifier) :
this.resourceReadService.getAttributeValueFileBodyURL(valueId))
|
| Optional getPropositionsFn |
Type : function
|
| Optional maskValidation |
Type : MaskValidation
|
| progress |
Default value : -1
|
| propositionsDebounceTime |
Default value : APP_SETTINGS.PROPOSITIONS_DEBOUNCE_IN_MS
|
| propositionsHighlightOnly |
Default value : true
|
| propositionsReloadOnShow |
Default value : true
|
| updatePropertyValueFn |
Type : function
|
| valueComponent |
Type : ValueComponent
|
Decorators :
@ViewChild(ValueComponent)
|
| valueData |
Type : AttributeValueData
|
| valueId |
Type : number
|
|
Value params |
| Optional valuePropositionsComponent |
Type : ValuePropositionsComponent
|
Decorators :
@ViewChild(ValuePropositionsComponent)
|
| valueType |
Type : AttributeType
|
| propertyValue | ||||||
getpropertyValue()
|
||||||
setpropertyValue(value: PropertyValue)
|
||||||
|
Parameters :
Returns :
void
|
| propertyId |
getpropertyId()
|
| isFocused | ||||||
getisFocused()
|
||||||
setisFocused(value: boolean)
|
||||||
|
Parameters :
Returns :
void
|
| isIncompliant |
getisIncompliant()
|