Feature/reference set#4
Conversation
McDoyen
commented
Nov 26, 2018
- Dropdown type ahead
…pdown-type-ahead into tests/end-to-end
…pdown-type-ahead into tests/end-to-end
Codecov Report
@@ Coverage Diff @@
## master #4 +/- ##
========================================
Coverage ? 48.2%
========================================
Files ? 4
Lines ? 139
Branches ? 40
========================================
Hits ? 67
Misses ? 72
Partials ? 0
Continue to review full report at Codecov.
|
14a6ff9 to
55b9f0b
Compare
55b9f0b to
4e28a45
Compare
| "copyright": "Mendix BV", | ||
| "scripts": { | ||
| "start": "webpack-dev-server --hot --open", | ||
| "emit": "tsc", |
| "copyright": "Mendix BV", | ||
| "scripts": { | ||
| "start": "webpack-dev-server --hot --open", | ||
| "emit": "tsc", |
There was a problem hiding this comment.
| "emit": "tsc", | |
| "typeCheck": "tsc --noEmit", |
no need to create files, it just pre-commit
| "developmentPort": 3000 | ||
| }, | ||
| "pre-commit": [ | ||
| "emit", |
There was a problem hiding this comment.
| "emit", | |
| "typeCheck", |
|  | ||
|
|
||
| # Dropdown | ||
| An input widget used to display and edit associations |
There was a problem hiding this comment.
| An input widget used to display and edit associations | |
| An input widget used to display and edit associations for reference and reference sets |
|
|
||
| if (valueMap.selectType !== "asynchronous") { | ||
| visibilityMap.searchAttribute = false; | ||
| } |
There was a problem hiding this comment.
single line
visibilityMap.searchAttribute = valueMap.selectType !== "asynchronous" || valueMap.source === "xpath";|
|
||
| export const Alert: FunctionComponent<AlertProps> = ({ bootstrapStyle, className, children }) => | ||
| children | ||
| ? createElement("div", { className: classNames(`alert alert-${bootstrapStyle}`, className) }, children) |
There was a problem hiding this comment.
| ? createElement("div", { className: classNames(`alert alert-${bootstrapStyle}`, className) }, children) | |
| ? createElement("div", { className: classNames("alert", `alert-${bootstrapStyle}`, className) }, children) |
| orientation?: "horizontal" | "vertical"; | ||
| } | ||
|
|
||
| export const Label: FunctionComponent<LabelProps> = ({ children, className, label, style, weight, orientation }) => { |
There was a problem hiding this comment.
Can we change it a HOC? handling both labeled and not labeled?
| sortAttributes.map(optionObject => { | ||
| const { name, sort } = optionObject; | ||
| combined.push([ name, sort ]); | ||
| }); |
There was a problem hiding this comment.
can this be simplified to
return sortAttributes.map(optionObject => [ optionObject.name, optionObject.sort ]);| @@ -0,0 +1,2 @@ | |||
| import * as WebdriverIO from "webdriverio"; | |||
| `!/widgets/com/mendix/widget/custom/dropdown/DropdownReferenceSet.js` | ||
| ], | ||
| target: mxHost, | ||
| ws: true, |
There was a problem hiding this comment.
Remove ws: true,, is cause console error.
6af20b8 to
6cea6bd
Compare
6cea6bd to
79448b0
Compare
cabca2e to
7b487f0
Compare
b0eccb5 to
a38e3e2
Compare
a38e3e2 to
a8299ed
Compare
35e5747 to
61f3673
Compare
6f325a7 to
650c76f
Compare
650c76f to
7349ba7
Compare