platform-components-ng/projects/platform-components-lib/src/lib/components/authoring/qpp-bulk-actions/qpp-bulk-actions.component.ts
QPP Bulk Action Component Purpose: Workflow status change across multiple selected assets.
| changeDetection | ChangeDetectionStrategy.OnPush |
| providers |
QppBulkActionsService
|
| selector | qpp-bulk-actions |
| templateUrl | qpp-bulk-actions.component.html |
constructor(assetService: AssetService, callbackService: CallbackService, dialogService: QppDialogService, qppErrorMessageService: QppErrorMessageService, applicationConfigService: ApplicationConfigService, cdr: ChangeDetectorRef, elementRef: ElementRef)
|
||||||||||||||||||||||||
|
Parameters :
|
| assets |
Type : QppBulkActionAssets[]
|
Default value : []
|
| closeBtnInTitleBar |
Default value : true
|
| title |
Default value : "Bulk Workflow Status Change"
|
| afterSubmit |
Type : EventEmitter
|
| close |
Type : EventEmitter
|
| submit |
Type : EventEmitter
|
| clearAllContentTypeFilters |
clearAllContentTypeFilters()
|
|
Clears all selected content type filters and resets option selection state.
Returns :
void
void |
| clearFilters |
clearFilters()
|
|
Clear all filter inputs (status, content type, search term) and rebuild groups.
Returns :
void
void |
| emitCloseEvent |
emitCloseEvent()
|
|
Emit close output event for parent consumers.
Returns :
void
void |
| fetchAssetDetails |
fetchAssetDetails()
|
|
Fetches detailed information for the currently selected assets.
Returns :
void
|
| getConfirmationMessage |
getConfirmationMessage()
|
|
Build confirmation message shown before executing bulk operation.
Returns :
string
string message text |
| isAssetSelected | ||||||||
isAssetSelected(asset: EnrichedAsset)
|
||||||||
|
Is asset selected
Parameters :
Returns :
boolean
boolean |
| isTypeSelected | ||||||||
isTypeSelected(option: FilterOption)
|
||||||||
|
Determines whether a given content type option is currently selected.
Parameters :
Returns :
boolean
boolean True if selected, false otherwise. |
| ngOnChanges | ||||||||
ngOnChanges(changes: SimpleChanges)
|
||||||||
|
Lifecycle changes hook. Re-fetches asset details when input list of assets changes.
Parameters :
Returns :
void
void |
| ngOnDestroy |
ngOnDestroy()
|
|
Lifecycle destroy hook. Clears pending debounce timer to avoid post-destroy execution.
Returns :
void
void |
| Async ngOnInit |
ngOnInit()
|
|
Lifecycle init hook. Loads asset details and determines if property changes should create a revision.
Returns :
Promise<void>
Promise |
| onAssigneeChange | ||||||||||||||||
onAssigneeChange(assignees: any[], row?: EnrichedAsset, group?: any)
|
||||||||||||||||
|
Updates the target assignees for a specific asset row when the assignee selection changes.
Parameters :
Returns :
void
void |
| onCTDropdownClose |
onCTDropdownClose()
|
|
On dropdown close event on content type filter
Returns :
void
void |
| onCTDropdownOpen |
onCTDropdownOpen()
|
|
On dropdown open event on content type filter
Returns :
void
void |
| onFilterLevelWorkflowStatusChange | ||||||||
onFilterLevelWorkflowStatusChange(selectedItems: CollectionWorkflow[])
|
||||||||
|
Handles changes to the filter level workflow status selection.
Parameters :
Returns :
void
|
| onItemWorkflowStatusChange | ||||||||||||
onItemWorkflowStatusChange(selectedWorkflow: CollectionWorkflow, asset: EnrichedAsset)
|
||||||||||||
|
Handles changes to the workflow status selection for a given asset. This method processes the selected workflow(s) and status(es) from a dropdown,
determines the target workflow and status to apply to the asset, and updates
the asset's
Parameters :
Returns :
void
|
| onRowSelectionChange | ||||||||||||||||
onRowSelectionChange(rows: EnrichedAsset[], groupAssets: EnrichedAsset[], group: any)
|
||||||||||||||||
|
Handles changes to the selection of rows within a specific group.
Parameters :
Returns :
void
|
| onSearchChange | ||||||
onSearchChange(value: string)
|
||||||
|
Handles changes to the search input by debouncing the execution of search-related logic.
Parameters :
Returns :
void
|
| onTypeFilterApply |
onTypeFilterApply()
|
|
Applies the selected content type filters. Closes the dropdown UI then rebuilds workflow groups. (Separate from onTypeFilterChange to allow explicit user apply action.)
Returns :
void
void |
| onTypeFilterChange | ||||||||
onTypeFilterChange(contentTypes: FilterOption[])
|
||||||||
|
Handler for content type multi-select changes. Stores a shallow copy of the selected options so change detection triggers and subsequent filtering logic can operate on a stable reference.
Parameters :
Returns :
void
|
| setWorkflowDropdownData | ||||||||
setWorkflowDropdownData(group: any)
|
||||||||
|
Set collection workflow data for group
Parameters :
Returns :
void
void |
| sortTableData | ||||||||||||
sortTableData(event: any, group: any)
|
||||||||||||
|
Sorts the assets within a given group based on the specified event parameters.
Parameters :
Returns :
void
|
| statusStyle | ||||||
statusStyle(statusInfo: Status | null)
|
||||||
|
Status style
Parameters :
Returns :
literal type
void |
| submitSelected |
submitSelected()
|
|
Displays a confirmation dialog with a warning message before submitting the selected items. Handles user actions for confirmation or cancellation:
The confirmation message is generated using
Returns :
void
|
| assetDisplayColumns |
Type : DisplayColumn[]
|
Default value : ASSET_DISPLAY_COLUMNS
|
| collapsibleElem |
Type : ElementRef
|
Decorators :
@ViewChild('collapsible')
|
| confirmationMessage |
Type : string
|
Default value : ""
|
| contentTypeDropdown |
Type : ElementRef
|
Decorators :
@ViewChild('qwcTypeDropdown', {read: ElementRef})
|
| contentTypeFilterDropDownConfig |
Type : QwcSelectConfig
|
Default value : {
idKey: "name",
searchable: false,
popoverClass: "qba-content-type-filter-dropdown",
multiSelect: true,
closeOnSelect: false,
showSelectedItem: false,
dropdownAlignCenter: true,
placeHolder: "Select Type",
}
|
| DROPDOWN_MAX_WIDTH |
Type : number
|
Default value : 200
|
| enrichedAssets |
Type : EnrichedAsset[]
|
Default value : []
|
| errorInfo |
Type : Array<literal type>
|
Default value : []
|
| filterContentType |
Type : string | null
|
Default value : null
|
| filterSearch |
Type : string
|
Default value : ""
|
| filterTypeOptions |
Type : FilterOption[]
|
Default value : []
|
| initialized |
Default value : false
|
| initialSelectedTypeOptions |
Type : FilterOption[]
|
Default value : []
|
| isCTDropdownOpen |
Default value : false
|
| loadError |
Type : string | null
|
Default value : null
|
| loadingDetails |
Default value : false
|
| qwcTypeDropdown |
Type : QWCSimpleSelect
|
Decorators :
@ViewChild('qwcTypeDropdown')
|
| selectedAssets |
Type : EnrichedAsset[]
|
Default value : []
|
| selectedTypeOptions |
Type : FilterOption[]
|
Default value : []
|
| selectedWorkflowOptions |
Type : CollectionWorkflow[]
|
Default value : []
|
| showErrorView |
Default value : false
|
| showFilterIcon |
Default value : false
|
| statusOptions |
Type : Status[]
|
Default value : []
|
| workflowGroups |
Type : literal type[]
|
Default value : []
|
| workflowsList |
Type : CollectionWorkflow[]
|
Default value : []
|