Skip to content

Commit

Permalink
Merge branch 'master' into GH-65
Browse files Browse the repository at this point in the history
  • Loading branch information
Deepika516 authored Feb 28, 2024
2 parents fdffeb2 + 408534a commit 6818433
Show file tree
Hide file tree
Showing 4 changed files with 29 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -459,7 +459,8 @@ export class BuilderComponent<E> implements OnInit, OnChanges {
case EventTypes.OnValueEvent:
case ActionTypes.ChangeColumnValueAction:
const columnExists = !!node.node.state.get('column');
const valueExists = !!node.node.state.get('value');
const valueExists =
typeof node.node.state.get('value') !== 'undefined';
const valueTypeIsAnyValue =
node.node.state.get('valueType') === ValueTypes.AnyValue;
isValid = columnExists && (valueExists || valueTypeIsAnyValue);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -278,6 +278,17 @@
type="date"
[(ngModel)]="date"
(click)="$event.stopPropagation()"
min="0000-01-01"
max="9999-12-31"
(keydown)="
handleEnterEvent(
callback,
nodeWithInput.node,
{target: {value: date}},
inputType.Date,
$event
)
"
/>
</div>
<div>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -589,6 +589,21 @@ export class GroupComponent<E> implements OnInit, AfterViewInit {
this.hidePopper();
}
}

handleEnterEvent(
callback: any,
node: BpmnNode,
$event: any,
type: string,
event: any,
) {
const response = this.getLibraryValue(node, $event, type, {});

//check whether the entered key is "ENTER" key
if (event.keyCode === 13) {
callback(response);
}
}
/**
* It removes all the inputs that come after the current input
* @param element - NodeWithInput<E>
Expand Down
1 change: 1 addition & 0 deletions projects/workflows-element/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,4 +18,5 @@
"directory": "dist"
},
"hash": "9988584e9ffd1d689dd06b27f41fd5e70ef726e0510b1ba55b78437c3be6f14c"

}

0 comments on commit 6818433

Please sign in to comment.