Skip to content

Commit 6cea6bd

Browse files
committed
Process feedback
1 parent baafc94 commit 6cea6bd

20 files changed

Lines changed: 847 additions & 182 deletions

.travis.yml

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,7 @@
11
sudo: required
22
language: node_js
33
node_js:
4-
- "8"
5-
addons:
6-
apt:
7-
sources:
8-
- google-chrome
9-
packages:
10-
- google-chrome-stable
4+
- "8.10.0"
115
before_install:
126
- npm i -g npm
137
- npm install grunt-cli -g

README.md

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
![badge](https://img.shields.io/badge/mendix-7.14.1-green.svg)
66

77
# Dropdown
8-
An input widget used to display and edit associations
8+
An input widget used to display and edit associations for reference and reference sets
99

1010
## Features
1111
* Search for matching options
@@ -25,32 +25,32 @@ An input widget used to display and edit associations
2525
Mendix 7.13.1
2626

2727
## Demo project
28-
[https://dropdowntypeahead.mxapps.io]( https://dropdowntypeahead.mxapps.io)
28+
[https://dropdowntypeahead.mxapps.io](https://dropdowntypeahead.mxapps.io)
2929

3030
## Usage
3131
![dropdown-type-ahead](/assets/dropdown-typeahead-normal-loading.gif)
3232

33-
* Place the widget in data form within the context of an entity
33+
* Place the widget in data form within the context of an entity
3434
* Select entity path and attribute over reference for selectable objects
3535
* Select the data source
3636

3737
## Basic configuration
3838
For a basic configuration, set up the widget as indicated below:-
3939
### Data source
4040
![dropdown-typeahead-data-source](/assets/dropdown-typeahead-data-source.png)
41-
### Appearance
42-
![dropdown-typeahead-appearance](/assets/dropdown-typeahead-appearance.png)
41+
### Appearance
42+
![dropdown-typeahead-appearance](/assets/dropdown-typeahead-appearance.png)
4343
### Label
44-
![dropdown-typeahead-label](/assets/dropdown-typeahead-label.png)
44+
![dropdown-typeahead-label](/assets/dropdown-typeahead-label.png)
4545
### Selectable objects
46-
![dropdown-typeahead-selectable-objects](/assets/dropdown-typeahead-selectable.png)
46+
![dropdown-typeahead-selectable-objects](/assets/dropdown-typeahead-selectable.png)
4747
### Search
48-
![dropdown-typeahead-search](/assets/dropdown-typeahead-search.png)
48+
![dropdown-typeahead-search](/assets/dropdown-typeahead-search.png)
4949
### Events
5050
![dropdown-typeahead-events](/assets/dropdown-typeahead-events.png)
5151

5252
## Issues, suggestions and feature requests
53-
We are actively maintaining this widget, please report any issues or suggestion for improvement at
53+
We are actively maintaining this widget, please report any issues or suggestion for improvement at
5454
https://github.com/mendixlabs/dropdown-type-ahead/issues
5555

5656
## Development and contribution

package-lock.json

Lines changed: 35 additions & 35 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
"copyright": "Mendix BV",
77
"scripts": {
88
"start": "webpack-dev-server --hot --open",
9-
"emit": "tsc",
9+
"typeCheck": "tsc --noEmit",
1010
"pretest": "tsc && npm run lint && npm run build",
1111
"test": "npm run test:unit && npm run test:conditional",
1212
"test:conditional": "node ./node_modules/mendix-widget-build-script/dist/CheckPullRequestFromFork.js && echo 'Skip tests on forked pull request' || npm run deployAndTest",
@@ -27,7 +27,7 @@
2727
"developmentPort": 3000
2828
},
2929
"pre-commit": [
30-
"emit",
30+
"typeCheck",
3131
"lint"
3232
],
3333
"repository": {
@@ -43,16 +43,16 @@
4343
"@types/core-js": "^2.5.0",
4444
"@types/enzyme": "^3.1.15",
4545
"@types/enzyme-adapter-react-16": "^1.0.2",
46-
"@types/jasmine": "^3.3.0",
46+
"@types/jasmine": "^3.3.1",
4747
"@types/karma": "^3.0.1",
48-
"@types/node": "^10.12.11",
49-
"@types/react": "^16.7.10",
48+
"@types/node": "^10.12.12",
49+
"@types/react": "^16.7.13",
5050
"@types/react-dom": "^16.0.11",
5151
"@types/react-select": "^1.3.0",
5252
"@types/webdriverio": "^4.13.0",
5353
"check-dependencies": "^1.0.1",
5454
"copy-webpack-plugin": "^4.6.0",
55-
"core-js": "^2.5.7",
55+
"core-js": "^2.6.0",
5656
"css-loader": "^1.0.1",
5757
"enzyme": "^3.7.0",
5858
"enzyme-adapter-react-16": "^1.7.0",
@@ -69,7 +69,7 @@
6969
"grunt-webpack": "^3.1.3",
7070
"istanbul": "^0.4.3",
7171
"istanbul-instrumenter-loader": "^3.0.1",
72-
"jasmine": "^3.3.0",
72+
"jasmine": "^3.3.1",
7373
"karma": "^3.1.3",
7474
"karma-chrome-launcher": "^2.1.1",
7575
"karma-coverage": "^1.1.2",
@@ -102,7 +102,7 @@
102102
"wdio-selenium-standalone-service": "0.0.11",
103103
"wdio-spec-reporter": "^0.1.3",
104104
"webdriverio": "^4.14.1",
105-
"webpack": "^4.26.1",
105+
"webpack": "^4.27.1",
106106
"webpack-bundle-analyzer": "^3.0.3",
107107
"webpack-cli": "^3.1.2",
108108
"webpack-dev-server": "^3.1.10",

src/DropdownReference/DropdownReference.webmodeler.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,9 +34,9 @@ export class preview extends Component<ContainerProps, {}> {
3434
readOnlyStyle: this.props.readOnlyStyle,
3535
lazyFilter: this.props.lazyFilter,
3636
selectedValue,
37-
searchText: this.props.searchText,
3837
loadingText: this.props.loadingText,
3938
minimumCharacter: this.props.minimumCharacter,
39+
searchPromptText: this.props.searchPromptText,
4040
showLabel: this.props.showLabel,
4141
styleObject: parseStyle(this.props.style)
4242
});

src/DropdownReference/DropdownReference.xml

Lines changed: 15 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<?xml version="1.0" encoding="utf-8"?>
22
<widget id="com.mendix.widget.custom.dropdown.DropdownReference" needsEntityContext="true" offlineCapable="true" xmlns="http://www.mendix.com/widget/1.0/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.mendix.com/widget/1.0/ ../../../../../xsd/widget.xsd">
33
<name>Dropdown reference</name>
4-
<description/>
4+
<description>An input widget used to display and edit associations for reference</description>
55
<icon></icon>
66
<properties>
77
<property key="entityPath" type="entity" isPath="yes" pathType="reference">
@@ -36,6 +36,10 @@
3636
<caption>Empty caption</caption>
3737
<category>Appearance</category>
3838
<description>Text displayed when no selection is made</description>
39+
<translations>
40+
<translation lang="en_US">(no option selected)</translation>
41+
<translation lang="nl_NL">(geen option selecteerd)</translation>
42+
</translations>
3943
</property>
4044
<property key="readOnlyStyle" type="enumeration" defaultValue="control">
4145
<caption>Read-only style</caption>
@@ -115,7 +119,7 @@
115119
<property key="sortAttributes" type="object" isList="true" required="false">
116120
<caption>Sort order</caption>
117121
<category>Selectable objects</category>
118-
<description></description>
122+
<description>Sorting only applies to source 'Database'</description>
119123
<properties>
120124
<property key="name" type="attribute" required="false" isPath="optional" pathType="reference" entityProperty="../entityPath">
121125
<caption>Attribute</caption>
@@ -158,11 +162,6 @@
158162
<category>Selectable objects</category>
159163
<description>Attribute set with search text of the user, this could be used for filter results in microflow or nanoflow</description>
160164
<attributeTypes>
161-
<attributeType name="AutoNumber"/>
162-
<attributeType name="Enum"/>
163-
<attributeType name="Decimal"/>
164-
<attributeType name="Integer"/>
165-
<attributeType name="Long"/>
166165
<attributeType name="String"/>
167166
</attributeTypes>
168167
</property>
@@ -189,6 +188,15 @@
189188
<category>Selectable objects</category>
190189
<description>Number of characters typed before an initial search is triggered</description>
191190
</property>
191+
<property key="searchPromptText" type="translatableString" required="false">
192+
<caption>Search prompt text</caption>
193+
<category>Selectable objects</category>
194+
<description>Text to display on dropdown before typing</description>
195+
<translations>
196+
<translation lang="en_US">Type to search</translation>
197+
<translation lang="nl_NL">Type om te zoeken</translation>
198+
</translations>
199+
</property>
192200
<property key="onChangeEvent" type="enumeration" defaultValue="doNothing">
193201
<caption>On change</caption>
194202
<category>Events</category>

0 commit comments

Comments
 (0)