File

platform-components-ng/projects/platform-components-lib/src/lib/components/meta/qpp-meta-pane/qpp-meta-attribute/qpp-meta-attribute.component.ts

Description

Qpp meta attribue

Implements

OnInit OnDestroy

Metadata

encapsulation ViewEncapsulation.None
selector qpp-meta-attribute
styleUrls qpp-meta-attribute.component.scss
templateUrl qpp-meta-attribute.component.html

Index

Properties
Methods
Inputs
Outputs
Accessors

Constructor

constructor(dialogService: QppDialogService, qppErrorMessageService: QppErrorMessageService, cdr: ChangeDetectorRef, ele: ElementRef)
Parameters :
Name Type Optional
dialogService QppDialogService No
qppErrorMessageService QppErrorMessageService No
cdr ChangeDetectorRef No
ele ElementRef No

Inputs

disableLockAction
Type : boolean
hasEditPrivilege
Type : boolean
metaInfo
Type : QppMetaInfo
metaMoreActions
Type : []
newDocument
Type : boolean
primaryMetaForCollection
Type : string

Outputs

addContentVariable
Type : EventEmitter
metaMoreActionEmit
Type : EventEmitter
showAssetPicker
Type : EventEmitter
showBlockPicker
Type : EventEmitter
updated
Type : EventEmitter

Methods

addContentVariableAction
addContentVariableAction(_metaInfo: QppMetaInfo)

Add Content Variable Action

Parameters :
Name Type Optional Description
_metaInfo QppMetaInfo No

meta info

Returns : void

void

attributeValueChanged
attributeValueChanged(data: any[])

Attribute value changed

Parameters :
Name Type Optional Description
data any[] No

Array which contains id and name

Returns : void

void

clearDateValue
clearDateValue()

Clear date value

Returns : void

void

datePickerHandler
datePickerHandler(value: Date)

Date picker handler

Parameters :
Name Type Optional Description
value Date No

Value

Returns : void

void

deleteTagField
deleteTagField(tag: string, event?: any)

Delete tag field

Parameters :
Name Type Optional Description
tag string No

Tag

event any Yes
Returns : void

void

editField
editField(inputFieldContainerEl)

Edit field

Parameters :
Name Optional Description
inputFieldContainerEl No

Input Field container

Returns : void

void

generateSerializeKeyMetaMapping
generateSerializeKeyMetaMapping(data: Array, valueField: string)
Parameters :
Name Type Optional
data Array<Object> No
valueField string No
Returns : any
initializeDropdown
initializeDropdown()

Initializes a dropdown menu with specific configurations.

This method sets a timeout to delay the initialization of the dropdown. Once the timeout completes, it checks if the necessary elements are present. If the elements are present, it creates a new instance of the M.Dropdown component with the specified options.

Options:

  • coverTrigger: Set to false to prevent the dropdown from covering the trigger element.
  • onOpenEnd: A callback function that is executed when the dropdown is fully opened. This function retrieves the dropdown instance and sets focus on the first item in the list using the FocusUtility.setFocusOnFirstItemInList method.
Returns : void
isChecked
isChecked(value)

Is checked

Parameters :
Name Optional Description
value No

Value

Returns : boolean

boolean

isComplexType
isComplexType(__option)

Is complex type

Parameters :
Name Optional
__option No
Returns : boolean

boolean

isValueChanged
isValueChanged(obj1, obj2)
Parameters :
Name Optional
obj1 No
obj2 No
Returns : boolean
ngOnDestroy
ngOnDestroy()

Component life cycle hook

Returns : void

void

Async ngOnInit
ngOnInit()

Component life cycle hook

Returns : any

void

onActionClick
onActionClick(action: QppMetaMoreAction)

Handles the click event for a given action. Emits an event with the action and associated meta information.

Parameters :
Name Type Optional Description
action QppMetaMoreAction No
  • The action to be performed, represented by a QppMetaMoreAction object.
Returns : void

void

onAssetPickerAttach
onAssetPickerAttach()
Returns : void
onAttributeKeywordsContainerFocus
onAttributeKeywordsContainerFocus(elem: any, friendlyText: string, metaValue: any)

On Attribute Keywords Container Focus

Parameters :
Name Type Optional Description
elem any No

any

friendlyText string No

string

metaValue any No

any

Returns : void

void

onAttributeKeywordsContainerFocusOut
onAttributeKeywordsContainerFocusOut()

On Attribute Keywords Container Focus Out

Returns : void

void

onBlockPickerAttach
onBlockPickerAttach()
Returns : void
onDateClose
onDateClose()

Emit date/date-time/time change on date dialog close.

Returns : void

void

onDropDownChange
onDropDownChange(value)

On drop down change

Parameters :
Name Optional Description
value No

Value

Returns : void

void

onDropDownClose
onDropDownClose()

Emit or Revert changes on dropdown close

Returns : void

void

onDropDownOpen
onDropDownOpen()

On drop down open

Returns : void

void

onInputFieldBlur
onInputFieldBlur()

On input field blur

Returns : void

void

onMetaUpdated
onMetaUpdated(metaInfo: QppMetaInfo)

On meta updated

Parameters :
Name Type Optional Description
metaInfo QppMetaInfo No

Meta info

Returns : void

void

onTagFieldBlur
onTagFieldBlur()

On tag field blur

Returns : void

void

onTagFocus
onTagFocus(elem)

Method to handle focus on tag

Parameters :
Name Optional Description
elem No

any

Returns : void

void

registerEventForEscape
registerEventForEscape(elem: any, dataType: string)

Method to register event for escape

Parameters :
Name Type Optional Description
elem any No

any

dataType string No
Returns : void

void

registerValueChange
registerValueChange()

Register value change

Returns : void

void

resetTabIndexes
resetTabIndexes(event?: any, elem?: any)

Reset Tabindexes Handler

Parameters :
Name Type Optional
event any Yes
elem any Yes
Returns : void

void

selectBooleanValue
selectBooleanValue(value)

Select boolean value

Parameters :
Name Optional Description
value No

Value

Returns : void

void

showAlert
showAlert()

Shows alert for value change of readonly field.

Returns : any

Promise

switchToInput
switchToInput(event: any)

Switch to calendar input class handler

Parameters :
Name Type Optional Description
event any No

any

Returns : void

void

tagRemoveHandler
tagRemoveHandler(tag: literal type)

Tag remove handler

Parameters :
Name Type Optional Description
tag literal type No

Tag

Returns : void

void

toggleLockAction
toggleLockAction()

Toggles the read-only state of the meta information. If the disableLockAction flag is not set, this method will toggle the disabled properties of metaInfo.

Returns : void

Properties

_metaMoreActions
Type : QppMetaMoreAction[]
Default value : []
ASSET_PICKER
Default value : QppMetaAttributeComponentTypes.ASSET_PICKER
assetPickerComponent
Type : QppMetaAssetPickerComponent
Decorators :
@ViewChild('assetPicker')
BLOCK_PICKER
Default value : QppMetaAttributeComponentTypes.BLOCK_PICKER
blockPickerComponent
Type : QppMetaBlockPickerComponent
Decorators :
@ViewChild('blockPicker')
dateFieldValue
Type : any
dateFormat
Type : string
DOMAIN_VALUE_PICKER
Default value : QppMetaAttributeComponentTypes.DOMAIN_VALUE_PICKER
domainPickerComponent
Type : QppMetaDomainPickerComponent
Decorators :
@ViewChild('domainPicker')
dropDownConfig
Type : any
guid
Default value : uuid.v4()
hoveredItem
hoveredKeyword
inputFieldId
Type : string
inputFieldValue
Type : any
isEditable
Default value : false
isSameSourceValue
Type : boolean
isTagFocused
Default value : false
META_CATEGORY
Default value : META_CATEGORY
Readonly META_CHANNEL_NAME_ID
Default value : QppMetaConstants.META_CHANNEL_NAME_ID
metaKeywordEl
Type : ElementRef
Decorators :
@ViewChild('metaKeywordEl')
moreMetaActions
Type : ElementRef
Decorators :
@ViewChild('moreMetaActions')
multipleInputContainer
Type : ElementRef
Decorators :
@ViewChild('multipleInputContainer')
oldRawValue
Type : any
oldSerializeValue
Type : any
oldValue
Type : any
pCalenderElement
Type : any
primeNgDateFormat
Type : string
qmaMoreActionsList
Type : ElementRef
Decorators :
@ViewChild('qmaMoreActionsList')
selectedNames
Type : Array<string>
Default value : []
serializeKeyMapping
Type : literal type
Default value : {}
showLoader
Default value : false
tagData
Type : TagModel[]

Accessors

metaMoreActions
getmetaMoreActions()
setmetaMoreActions(actions: [])
Parameters :
Name Type Optional
actions [] No
Returns : void

result-matching ""

    No results matching ""