Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
export function createSignalScopeProperty({ element }: FactoryProps) {
return new CardViewSelectItemModel({
label: 'PROCESS_EDITOR.ELEMENT_PROPERTIES.SCOPE',
options$: of([
{ key: 'global', label: 'PROCESS_EDITOR.ELEMENT_PROPERTIES.SCOPE_VALUES.GLOBAL' },
{ key: 'processInstance', label: 'PROCESS_EDITOR.ELEMENT_PROPERTIES.SCOPE_VALUES.PROCESS_INSTANCE' }
]),
value: ElementHelper.getProperty(element, propertyName) || 'global',
key: propertyName,
editable: true,
data: { id: element.id }
});
}
export function createPriorityProperty({ element, appConfigService }: FactoryProps) {
return new CardViewSelectItemModel({
label: 'PROCESS_EDITOR.ELEMENT_PROPERTIES.PRIORITY',
options$: of(appConfigService.get('process-modeler.priorities')),
value: ElementHelper.getProperty(element, propertyName),
key: propertyName,
editable: true,
data: { id: element.id }
});
}
export function createCalledElementProperty({ element, store }: FactoryProps) {
return new CardViewSelectItemModel({
label: 'APP.PROCESS_EDITOR.ELEMENT_PROPERTIES.ACTIVITY_NAME',
options$: store.select(selectProcessesKeyLabelArray),
value: ElementHelper.getProperty(element, propertyName),
key: propertyName,
editable: true,
data: { id: element.id }
});
}
}),
new CardViewFloatItemModel({
label: 'CardView Float Item',
value: 9.9,
key: 'float',
default: 0.0,
editable: this.isEditable,
pipes: [{ pipe: this.decimalNumberPipe}]
}),
new CardViewKeyValuePairsItemModel({
label: 'CardView Key-Value Pairs Item',
value: [],
key: 'key-value-pairs',
editable: this.isEditable
}),
new CardViewSelectItemModel({
label: 'CardView Select Item',
value: 'one',
options$: of([{ key: 'one', label: 'One' }, { key: 'two', label: 'Two' }]),
key: 'select',
editable: this.isEditable
}),
new CardViewMapItemModel({
label: 'My map',
value: new Map([['999', 'My Value']]),
key: 'map',
default: 'default map value'
}),
new CardViewTextItemModel({
label: 'This is clickable ',
value: 'click here',
key: 'click',