File

projects/m2-core/src/lib/shared/ui-components/value/card-rows/component/item-card-row.component.ts

Implements

OnChanges AfterViewInit

Metadata

Index

Properties
Methods
Inputs
Accessors

Constructor

constructor(elementRef: ElementRef, injector: Injector, ngZone: NgZone, logger: Logger, uiConfigService: UIConfigService, clientConfigService: ClientConfigService, dataReadService: DataReadService, dataEditService: DataEditService, searchService: SearchService, attributeClassifierService: AttributeClassifierService, taxonomyReadService: TaxonomyReadService, propositionsService: PropositionsService, aggregationRowService: AggregationRowService, itemValuesService: ItemValuesService, propertyValueEditService: PropertyValueEditService, subscriptionService: SubscriptionService, globalModalsService: GlobalModalsService, contentCtx?: ContentContext)
Parameters :
Name Type Optional
elementRef ElementRef No
injector Injector No
ngZone NgZone No
logger Logger No
uiConfigService UIConfigService No
clientConfigService ClientConfigService No
dataReadService DataReadService No
dataEditService DataEditService No
searchService SearchService No
attributeClassifierService AttributeClassifierService No
taxonomyReadService TaxonomyReadService No
propositionsService PropositionsService No
aggregationRowService AggregationRowService No
itemValuesService ItemValuesService No
propertyValueEditService PropertyValueEditService No
subscriptionService SubscriptionService No
globalModalsService GlobalModalsService No
contentCtx ContentContext Yes

Inputs

applicationAttributes
Type : Pair<number | Map<number, ApplicationAttribute[]>>
cardRow
Type : ItemCardRow | any
cardRowInitIndent
Type : any
Default value : CONSTANTS.CARD_ROW_INIT_INDENT
colWidthRatioInPercent
Type : number
editModeON
Type : boolean
selectedUnit
Type : MeasurementUnit
showEmptyInReadMode
Type : boolean
version
Type : number

Methods

activateRelation
activateRelation(event: MouseEvent)
Parameters :
Name Type Optional
event MouseEvent No
Returns : void
checkValues
checkValues()

Fake values for empty cells in edit mode

Returns : void
enrichPropertyValue
enrichPropertyValue(newValue: string)
Parameters :
Name Type Optional
newValue string No
Returns : void
ngAfterViewInit
ngAfterViewInit()
Returns : void
ngOnChanges
ngOnChanges(changes: ComponentChanges<ItemCardRowComponent>)
Parameters :
Name Type Optional
changes ComponentChanges<ItemCardRowComponent> No
Returns : void
onAddMultipleAggregationClick
onAddMultipleAggregationClick(event: MouseEvent, createNewPart)

Aggregations

Parameters :
Name Type Optional Default value
event MouseEvent No
createNewPart No false
Returns : void
onAggregationsGroupRowRightClick
onAggregationsGroupRowRightClick(event: MouseEvent)
Parameters :
Name Type Optional
event MouseEvent No
Returns : void
onAnyValueClick
onAnyValueClick(event: MouseEvent)

Constraint cell aggregations

Parameters :
Name Type Optional
event MouseEvent No
Returns : void
onMultipleValueCreated
onMultipleValueCreated(parentRow?: CardRow)
Parameters :
Name Type Optional
parentRow CardRow Yes
Returns : void
onMultipleValueDeleted
onMultipleValueDeleted(value: PropertyValue | ConstraintTableCell, parentRow?: CardRow)
Parameters :
Name Type Optional
value PropertyValue | ConstraintTableCell No
parentRow CardRow Yes
Returns : void
onNamedValueNameCreated
onNamedValueNameCreated(attrValueComponent: AttributeValueComponent)

Named values

Parameters :
Name Type Optional
attrValueComponent AttributeValueComponent No
Returns : void
onNotNullClick
onNotNullClick(event: MouseEvent)
Parameters :
Name Type Optional
event MouseEvent No
Returns : void
onOpenConstraintTablesClick
onOpenConstraintTablesClick(event: MouseEvent)
Parameters :
Name Type Optional
event MouseEvent No
Returns : void
onPropertyRowClick
onPropertyRowClick(event: MouseEvent)
Parameters :
Name Type Optional
event MouseEvent No
Returns : void
onPropositionInputKeyDown
onPropositionInputKeyDown(event: KeyboardEvent)
Parameters :
Name Type Optional
event KeyboardEvent No
Returns : void
onPropositionSelected
onPropositionSelected(proposition: Proposition)

Selecting proposition

Parameters :
Name Type Optional
proposition Proposition No
Returns : void
onPropositionsInputBlur
onPropositionsInputBlur(input: string)
Parameters :
Name Type Optional
input string No
Returns : void
onPropositionsToggleClick
onPropositionsToggleClick(event: MouseEvent)
Parameters :
Name Type Optional
event MouseEvent No
Returns : void
onRelatedItemNameClick
onRelatedItemNameClick(event: MouseEvent)
Parameters :
Name Type Optional
event MouseEvent No
Returns : void
onRowTipIconEnter
onRowTipIconEnter(event: MouseEvent)

Tip icon

Parameters :
Name Type Optional
event MouseEvent No
Returns : void
onSetSingleAggregationClick
onSetSingleAggregationClick(event: MouseEvent, createNewPart)
Parameters :
Name Type Optional Default value
event MouseEvent No
createNewPart No false
Returns : void
onSingleAggregationRowRightClick
onSingleAggregationRowRightClick(event: MouseEvent)

Context menu

Parameters :
Name Type Optional
event MouseEvent No
Returns : void
onUnitSelected
onUnitSelected(unit: MeasurementUnit)
Parameters :
Name Type Optional
unit MeasurementUnit No
Returns : void
openItemInGenerator
openItemInGenerator(itemId: number, propertyId: number)

Content related stuff

Parameters :
Name Type Optional
itemId number No
propertyId number No
Returns : void
Public scrollIntoView
scrollIntoView(expand: boolean, scrollOptions?: boolean | ScrollIntoViewOptions)

public API

Parameters :
Name Type Optional
expand boolean No
scrollOptions boolean | ScrollIntoViewOptions Yes
Returns : void
showPropositions
showPropositions(input: string)
Parameters :
Name Type Optional
input string No
Returns : void
showPropositionsImmediately
showPropositionsImmediately(input: string)
Parameters :
Name Type Optional
input string No
Returns : void
toggle
toggle(event: Event | null)
Parameters :
Name Type Optional
event Event | null No
Returns : void

Properties

attributeValueComponents
Type : QueryList<AttributeValueComponent>
Decorators :
@ViewChildren(AttributeValueComponent)
createSingleCompositionBtn
Default value : new SdiButton($localize`:@@createTitle:Создать`, null, event => this.aggregationRowService.onSetSingleAggregationClick(this.cardRow, true, event), () => !this.calculatedEditModeON || (<CardRow> this.cardRow).hasValue || (<AggregationRow> this.cardRow).classifierId > 0, 'fa fa-plus' )

Buttons

deleteAggregationBtn
Default value : new SdiButton($localize`:@@deleteTitle:Удалить`, null, event => this.aggregationRowService.onDeleteAggregationClick(this.cardRow, event), () => !(this.calculatedEditModeON && ((<AggregationRow> this.cardRow).partId > 0 || (<SingleAggregationRow> this.cardRow).customPartId > 0)), 'fa fa-times' )
Optional desirableUnitId
Type : number
Public elementRef
Type : ElementRef
Optional getPropositionsFn
Type : function
openRelationsEditorTitle
Default value : $localize`:@@openRelationsEditorTitle:Открыть взаимосвязи`
Optional postProcessingTitle
Type : string
propositionsDebounceTime
Default value : APP_SETTINGS.PROPOSITIONS_DEBOUNCE_IN_MS
propositionsHighlightOnly
Default value : true
propositionsInput
Type : HighlightedInputComponent
Decorators :
@ViewChild('propositionsInput')
propositionsReloadOnShow
Default value : true
trackByFn
Default value : ((index, row: CardRow) => row.id)
Optional valuePropositionsComponent
Type : ValuePropositionsComponent
Decorators :
@ViewChild(ValuePropositionsComponent)

Accessors

isRelationsEditorAvailable
getisRelationsEditorAvailable()
areAggregationPropositionsReadonly
getareAggregationPropositionsReadonly()
showRow
getshowRow()
showChildren
getshowChildren()
calculatedEditModeON
getcalculatedEditModeON()
relatedItemRouterLink
getrelatedItemRouterLink()
relatedItemQueryParams
getrelatedItemQueryParams()
rowParentNodeId
getrowParentNodeId()
rowItemId
getrowItemId()
rowClassifierId
getrowClassifierId()
canPostProcess
getcanPostProcess()
isPostProcessingDisabled
getisPostProcessingDisabled()
Legend
Html element
Component
Html element with directive

results matching ""

    No results matching ""