projects/m2-core/src/lib/shared/ui-components/value/value.component.ts
| changeDetection | ChangeDetectionStrategy.OnPush |
| selector | value |
| templateUrl | ./value.component.html |
constructor(cd: ChangeDetectorRef, logger: Logger, doubleParserService: DoubleParserService, propertyValueService: PropertyValueService, imageService: ImageService, globalModalsService: GlobalModalsService, notificationService: NotificationService, Help: any)
|
|||||||||||||||||||||||||||
|
Parameters :
|
| appendNameValue |
Type : boolean
|
| appendUnit |
Type : boolean
|
| changeValueFn |
Type : function
|
| deprecated |
Type : boolean
|
| doublePrecision |
Type : number
|
| editModeON |
Type : boolean
|
| fileAccept |
Type : any
|
Default value : CONSTANTS.INPUT_ACCEPT.any
|
| getFileBodyUrlFn |
Type : function
|
Default value : (() => '')
|
| hasPostProcessing |
Type : boolean
|
| inputMask |
Type : string
|
| isCalculated |
Type : boolean
|
| isConstraintCellValue |
Type : boolean
|
| isFocused |
Type : boolean
|
| isHistorical |
Type : boolean
|
| isPostProcessingInProgress |
Type : boolean
|
| isValueSet |
Type : boolean
|
| natureId |
Type : number
|
| placeholder |
Type : string
|
Default value : ''
|
| postProcessingTip |
Type : string
|
| progress |
Type : number
|
Default value : -1
|
| restrictiveCondition |
Type : RestrictiveCondition
|
| showPropositionsToggle |
Type : boolean
|
Default value : true
|
| showUseImageIcon |
Type : boolean
|
Default value : true
|
| unit |
| useParsedDoubleParams |
Type : boolean
|
| valueData |
Type : AttributeValueData
|
| valueId |
Type : number
|
| valueIdentifier |
Type : number
|
| valueType |
Type : AttributeType
|
| changeValue |
Type : EventEmitter
|
| changeValueUnit |
Type : EventEmitter
|
| deleteValueClick |
Type : EventEmitter
|
| fileSelected |
Type : EventEmitter
|
| isFocusedChange |
Type : EventEmitter
|
| maskValidated |
Type : EventEmitter
|
| openFormulaEditorClick |
Type : EventEmitter
|
| postProcessClick |
Type : EventEmitter
|
| propositionsToggleClick |
Type : EventEmitter
|
| useImage |
Type : EventEmitter
|
| valueInput |
Type : EventEmitter
|
| valueInputDblClick |
Type : EventEmitter
|
| valueInputKeyDown |
Type : EventEmitter
|
| class.value-wrapper |
Type : boolean
|
Default value : true
|
| blurred | ||||||
blurred(skipChangeCheck)
|
||||||
|
Parameters :
Returns :
void
|
| changeValueIfNeeded |
changeValueIfNeeded()
|
|
Returns :
void
|
| colorPickerToggled | ||||||
colorPickerToggled(expanded: boolean)
|
||||||
|
Parameters :
Returns :
void
|
| doPostProcessing |
doPostProcessing()
|
|
Returns :
void
|
| focused |
focused()
|
|
Returns :
void
|
| focusPasteComponent |
focusPasteComponent()
|
|
Returns :
void
|
| Public focusValueInput |
focusValueInput()
|
|
Returns :
void
|
| Public formatNewValue | |||||||||||||||
formatNewValue(valueId: number, valueType: AttributeType, valueData: AttributeValueData, isValueSet: boolean)
|
|||||||||||||||
|
Parameters :
Returns :
void
|
| Public formatValue |
formatValue()
|
|
Returns :
void
|
| ngOnChanges | ||||||
ngOnChanges(changes: ComponentChanges<ValueComponent>)
|
||||||
|
Parameters :
Returns :
void
|
| onCalculatedPreviewClick |
onCalculatedPreviewClick()
|
|
Post processing
Returns :
void
|
| onCalendarToggleClick | ||||||
onCalendarToggleClick(event: MouseEvent)
|
||||||
|
Parameters :
Returns :
void
|
| onCheckboxChanged |
onCheckboxChanged()
|
|
Returns :
void
|
| onColorPaletteClick |
onColorPaletteClick()
|
|
Returns :
void
|
| onColorPickerOpen | ||||||
onColorPickerOpen(colorValueElem: HTMLElement)
|
||||||
|
Parameters :
Returns :
void
|
| onDecoratedValueClick | ||||||
onDecoratedValueClick(event: MouseEvent)
|
||||||
|
Parameters :
Returns :
void
|
| onDeleteValueClick | ||||||
onDeleteValueClick(event: MouseEvent)
|
||||||
|
Parameters :
Returns :
void
|
| onEditableStringWrapperClick | ||||||
onEditableStringWrapperClick(event: MouseEvent)
|
||||||
|
Parameters :
Returns :
void
|
| onEnterKeyUp | ||||||
onEnterKeyUp(event: KeyboardEvent)
|
||||||
|
Parameters :
Returns :
void
|
| onEscapeKeyUp | ||||||
onEscapeKeyUp(event?: KeyboardEvent)
|
||||||
|
Parameters :
Returns :
void
|
| onF1KeyDown | ||||||
onF1KeyDown(event: KeyboardEvent)
|
||||||
|
Help
Parameters :
Returns :
void
|
| onImgThumbnailClick |
onImgThumbnailClick()
|
|
Returns :
void
|
| onImgThumbnailDoubleClick |
onImgThumbnailDoubleClick()
|
|
Returns :
void
|
| onInput |
onInput()
|
|
Returns :
void
|
| onInputDblClick |
onInputDblClick()
|
|
Returns :
void
|
| onInputKeyDown | ||||||
onInputKeyDown(event: KeyboardEvent)
|
||||||
|
Parameters :
Returns :
void
|
| onOpenFormulaEditorClick |
onOpenFormulaEditorClick()
|
|
Returns :
void
|
| onPasted | ||||||
onPasted(clipboardData: DataTransfer)
|
||||||
|
Parameters :
Returns :
void
|
| onPropositionsToggleClick |
onPropositionsToggleClick()
|
|
Returns :
void
|
| onSelectFileClick |
onSelectFileClick()
|
|
Returns :
void
|
| onSelectImageClick |
onSelectImageClick()
|
|
Returns :
void
|
| onUseImageClick |
onUseImageClick()
|
|
Returns :
void
|
| Public restoreCurrentValue |
restoreCurrentValue()
|
|
Returns :
void
|
| Public setNewValueAsCurrent |
setNewValueAsCurrent()
|
|
Returns :
void
|
| _currentValue |
Type : string | boolean | Date
|
| _decoratedValue |
Type : string
|
| _unit |
Type : MeasurementUnit
|
| calendarComponent |
Type : Calendar
|
Decorators :
@ViewChild(Calendar)
|
| Optional calLocale |
Type : any
|
| colorPickerDirective |
Type : ColorPickerDirective
|
Decorators :
@ViewChild(ColorPickerDirective)
|
| Optional containsHtml |
Type : boolean
|
| dateFormat |
Default value : APP_SETTINGS.SHORT_DATE_FORMAT
|
| Optional isCalculatedValuePostProcessingInputActive |
Type : boolean
|
| isFocusedValue |
Type : boolean
|
| isValueBeingEdited |
Default value : false
|
| Optional maskConfig |
Type : InputMaskConfigType | any
|
| newValue |
Type : string | boolean | Date
|
| openImageTitle |
Default value : $localize`:@@openImageTitle:Увеличить изображение`
|
| Optional postProcessingTitle |
Type : string
|
| Optional sdiPasteComponent |
Type : SdiPasteComponent
|
Decorators :
@ViewChild(SdiPasteComponent)
|
| Optional tip |
Type : string
|
| uploadImgByDblClickTitle |
Default value : $localize`:@@uploadImgByDblClickTitle:Щелкните дважды, чтобы загрузить изображение`
|
| valueInputField |
Type : ElementRef | HighlightedInputComponent
|
Decorators :
@ViewChild('valueInputField')
|
| valueLink |
Type : string
|
| valueWrapper |
Default value : true
|
Decorators :
@HostBinding('class.value-wrapper')
|
| Optional yearRange |
Type : string
|
| unit | ||||||
getunit()
|
||||||
setunit(value: MeasurementUnit)
|
||||||
|
Parameters :
Returns :
void
|
| isFocused | ||||||
getisFocused()
|
||||||
setisFocused(value: boolean)
|
||||||
|
Parameters :
Returns :
void
|
| currentValue | ||||||
getcurrentValue()
|
||||||
setcurrentValue(value: string | boolean | Date)
|
||||||
|
Parameters :
Returns :
void
|
| decoratedValue | ||||||
setdecoratedValue(value: string)
|
||||||
|
Parameters :
Returns :
void
|
| isPostProcessingDisabled |
getisPostProcessingDisabled()
|
| canDeleteValue |
getcanDeleteValue()
|
| canSelectImage |
getcanSelectImage()
|
|
Image
Returns :
boolean
|
| canSelectFile |
getcanSelectFile()
|
|
File
Returns :
boolean
|