Josh Johnson
c6b8822199
Update logic to affect both select inputs
2019-11-19 21:25:07 +00:00
Josh Johnson
2a7ef09407
Lowercase character before updating value
2019-11-19 21:18:04 +00:00
Josh Johnson
53a56f769c
Remove .only
2019-11-19 21:03:03 +00:00
Josh Johnson
bc890ed0f7
Update value with character value
2019-11-19 21:01:48 +00:00
Josh Johnson
d04031e02f
Fix id types ( #743 )
...
* Set ids to be numbers
* Split out _setLoading into start/stop methods
* Build
2019-11-08 09:19:18 +00:00
Josh Johnson
f30b976424
Resolve bug 533 ( #736 )
...
* Add placeholder options to demo page
* Use constant types in components
* Refactor adding predefined groups/items/choices
* Add 'highlighted' flag to Item type
* Fix dispatch param type
* Build
* Add jsdoc comments to utils
* Remove unused file
* Add default values to js doc comments
* Use Redux Action type
* Housekeeping
* Increase utils coverage
* Apply suggestions from code review
* Add _getTemplate unit tests
* Resolve #533
* Add tests
2019-11-03 18:12:47 +00:00
Josh Johnson
ab22347d7b
Code refactoring ( #735 )
...
* Add placeholder options to demo page
* Use constant types in components
* Refactor adding predefined groups/items/choices
* Add 'highlighted' flag to Item type
* Fix dispatch param type
* Build
* Add jsdoc comments to utils
* Remove unused file
* Add default values to js doc comments
* Use Redux Action type
* Housekeeping
* Increase utils coverage
* Apply suggestions from code review
* Add _getTemplate unit tests
2019-11-03 17:45:16 +00:00
Josh Johnson
e6882f3e4b
Add missing type definitions + rename sortFn ( #734 )
...
* Add wrapped element getters + fix some types
* Remove comment
* Add missing config options to types
* Add types to constants
* Rename sortFn to sorter
* Update PR template
* Add refactor to PR template
* Add passed element types to constants
* Add js doc comments to actions
* Add "returns" to js doc comments
* Add missing choice prop to type
* Add types to store.js
* Add jsdoc comments to components
* Ignore strict null checks
* Move loading action into misc.js
* Further type def additions
* Rename itemCompare to valueCompare
* Update badges
* Rename scrollToChoice to scrollToChildElement
2019-11-03 13:18:16 +00:00
Josh Johnson
a0fe05f926
Fix #727 ( #731 )
...
* Housekeeping
* Resolve placeholder bug + hide from choice list
* Restructure test folder
* Update cypress test to assert one placeholder
* Fix breaking e2e test
* Remove ability to pass placeholder via config for select boxes
* Add further e2e tests covering placeholders
* Add unit tests for _generatePlaceholderValue
* Display placeholder choice for select one
* Add further e2e test to assert on placeholder ordering
* Add labels to exclude from draft releases
* Add failure case to e2e test workflow
* Resolve broken e2e test
* Update puppeteer snapshot baseline
2019-11-02 13:49:33 +00:00
Konstantin Vyatkin
939a73b762
fix setChoices flow ( #730 )
...
* fix setChoices flow
* ignore Promise as it gate checked
* re-run cypress
2019-11-02 12:58:18 +00:00
Josh Johnson
0e44a916e3
Fix constructor ( #693 )
...
* breaking test
* Remove ablity to pass multiple elements + tests
* Update readme
* Update README.md
* 🔖 Version 8.0.0
* Remove type definition hack
* Update coverage command
* Add some missing list tests
* Remove .only
* Update demo page to loop over elements
* Update constructor to set initialised flag if already active
* Make templates private
* Throw type error once if element is invalid
* Fix list children bug
* Re-add generic examples to index.html
* Housekeeping
* Use typeof instead of isType where applicable
* Remove isElement
* Add test for isIE11
2019-10-29 21:19:56 +00:00
Josh Johnson
88f63faa0b
Update code styling rules ( #713 )
...
* Enforce curly braces around conditionals
* Install sort class members + update rules
* Satisfy linting changes
* Add todo
* Add tests for clearChoices
* Update eslint-plugin-prettier to latest
* Resolve conflicts
* Fix linting errors
2019-10-29 18:26:11 +00:00
Konstantin Vyatkin
e3cc6eaf1b
[MAJOR] Remove .ajax
and allow async function for .setChoices
( #701 )
...
* WIP: remove ajax
* copy #700
* remove ajax, add fetchChoices
* extend setChoices
* update README
2019-10-29 18:12:32 +00:00
Konstantin Vyatkin
1c751472b2
[Tooling] Transpile tests targeting Node, not browser ( #700 )
...
* transplite tests for higher target
* fix test
* add to lint-stagged too
2019-10-29 14:05:37 +00:00
Josh Johnson
1285602b2f
Publish version after npm publish ( #672 )
...
* Add publish to github step
* Include file with release
* Supress logs if silent mode = true
* 🔖 Version 7.1.1
* Rejig console logs
* Update error log conditional
2019-10-22 12:50:40 +01:00
Hans Lemuet
5c17250e20
Allow passing an empty array to setChoices
2019-03-13 10:34:06 +01:00
Hans Lemuet
fc9bca2ece
Rename _clearChoices to clearChoices
2019-03-13 10:05:38 +01:00
Josh Johnson
8540d5aabd
Api changes ( #515 )
...
* Combine regexFilter and addItemFilter + minor tweaks
* Update tests to accomodate fixed dropdown notice
* Remove broken `toggleDropdown` method
* Unskip dropdown interaction tests
* Remove reference to removed method
2019-02-12 18:35:46 +00:00
Josh Johnson
de71fb7ef4
Resolve issue with disable/enable methods
2018-10-27 20:16:46 +01:00
Josh Johnson
4193422cf6
Resolve an issue with disabling/enabling instances
2018-10-21 19:26:08 +01:00
Josh Johnson
4824958e4d
Make render method private
2018-10-09 12:26:47 +01:00
Josh Johnson
38cc568341
Use objects for args where necessary
2018-05-29 19:55:33 +01:00
Josh Johnson
f9455b1a25
Install prettier + resolve linting issues
2018-05-28 13:55:44 +01:00
Josh Johnson
257a038262
Use express for development + folder restructuring
2018-05-27 11:57:21 +01:00