File

platform-components-ng/projects/platform-components-lib/src/lib/components/authoring/content-automation-rules/content-automation-rules-component/qpp-content-automation-rules.component.ts

Implements

OnChanges

Metadata

changeDetection ChangeDetectionStrategy.OnPush
encapsulation ViewEncapsulation.None
selector qpp-content-automation-rules
templateUrl ./qpp-content-automation-rules.component.html

Index

Properties
Methods
Inputs
Outputs

Constructor

constructor(contentAutomationRulesService: QppContentAutomationRulesService)
Parameters :
Name Type Optional
contentAutomationRulesService QppContentAutomationRulesService No

Inputs

activeRuleId
Type : string | null
Default value : null
disableSearch
Default value : true
documentMetaInfo
Type : QppMetaInfo
documentView
Default value : false
rules
Type : ContentAutomationRule[]
Default value : []

Outputs

documentViewChange
Type : EventEmitter
executingRulesState
Type : EventEmitter
rulesChange
Type : EventEmitter
searchResults
Type : EventEmitter

Methods

evaluateRunRulesBtn
evaluateRunRulesBtn()

Evaluates the state of the run rules button and updates the search disable flag.

Returns : void

void

Async executeSearch
executeSearch()

Executes search queries for content automation rules and emits the results.

Returns : Promise<void>

A Promise that resolves when all search operations are complete

ngOnChanges
ngOnChanges(changes: SimpleChanges)

Handles changes to input properties.

Parameters :
Name Type Optional Description
changes SimpleChanges No
  • The changes object containing the changed properties
Returns : void

void

onMetaUpdate
onMetaUpdate(rule: ContentAutomationRule)

Handle meta update event

Parameters :
Name Type Optional Description
rule ContentAutomationRule No

The rule for which the meta was updated

Returns : void

void

tabChangeHandler
tabChangeHandler(event: any)

Handles tab change events and updates the active tab index.

Parameters :
Name Type Optional Description
event any No
  • Tab change event containing the new index
Returns : void

void

toggleDocumentView
toggleDocumentView(value: boolean)

Toggles the document view state and emits the change.

Parameters :
Name Type Optional Description
value boolean No
  • New state for document view
Returns : void

void

Properties

activeTabIndex
Type : number
Default value : 1
entities
Type : Entity[]
Default value : []
flatRulesArray
Type : ContentAutomationRule[]
Default value : []
isSearchExpanded
Default value : true

result-matching ""

    No results matching ""