-
Notifications
You must be signed in to change notification settings - Fork 2
feat(core): changes condition script for passed by and coming in clauses #93
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Conversation
139a718 to
92fbdf8
Compare
|
better description |
|
|
||
| @Output() | ||
| eventRemoved = new EventEmitter<unknown>(); | ||
| nodeRemoved = new EventEmitter<unknown>(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why?
| if (nodeWithInput.node.state.get('email')) { | ||
| (value as AllowedValuesMap).body = ( | ||
| (value as AllowedValuesMap).body as string | ||
| ).replace(/\\"/g, '"'); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
again, why?
| display: inline-block; | ||
| overflow: hidden; | ||
| max-width: 45%; | ||
| max-width: 15rem; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why a hard coded width? and why can't you override this in the target project
| [disabled]="!emailInput.subject || !emailInput.body" | ||
| > | ||
| {{ localizedStringKeys.SetLbl | localization }} | ||
| {{ setLbl }} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
translation?
| */ | ||
| element.node.elements.splice(-NUMBER.TWO, NUMBER.TWO); | ||
| // element.inputs[1].prefix = ''; | ||
| //this.enableActionIcon = false; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
??
| formatter: <S extends RecordOfAnyType>(state: State<S>) => { | ||
| if (typeof state.get('value') === 'object') { | ||
| return `'${JSON.stringify(state.get('value'))}'`; | ||
| switch (state.get('valueInputType')) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
looks like project specific implementation
| } | ||
|
|
||
| private intervalBodyPrepare(state: State<RecordOfAnyType>) { | ||
| if ( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
move this out to a separate parser service or utility
| const tmp = params[key]; | ||
| if (isFormattedParam(tmp)) { | ||
| return `${p}\njson.prop("${key}", ${tmp.formatter(state)});`; | ||
| return `${p}\njson["${key}"] = ${tmp.formatter(state)};`; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Undo this, should not return stringified json from for object type variable
| import {InputTypes} from '../../../enum'; | ||
| import {RecordOfAnyType} from '../../../types'; | ||
|
|
||
| export class CriteriaInput extends WorkflowPrompt { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
looks project specific?
| import {InputTypes} from '../../../enum'; | ||
| import {RecordOfAnyType} from '../../../types'; | ||
|
|
||
| export class StepperInput extends WorkflowPrompt { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
what is a stepper input? explain
Description
changes condition script for passed by and coming in clauses
Fixes # (PRJ-7375)
Type of change
Please delete options that are not relevant.
How Has This Been Tested?
Please describe the tests that you ran to verify your changes. Provide instructions so we can reproduce. Please also list any relevant details for your test configuration
Checklist: