Skip to content
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

feat(autocomplete): add custom sort option #116

Closed
wants to merge 47 commits into from

Conversation

ChildishGiant
Copy link
Member

@ChildishGiant ChildishGiant commented Apr 27, 2021

Also renamed sortFunction to compareFunction (Closes #115)

Proposed changes

Currently you can specify a custom "sortFunction" but this only controls which element wins in a 1v1 matchup, not how the matchups are made (Currently just uses array.sort). Adding this would allow end users to use libraries such as fuse.js to do more complex sorting and make results more accurate.

Types of changes

  • Bug fix (non-breaking change which fixes an issue).
  • New feature (non-breaking change which adds functionality).
  • Breaking change (fix or feature that would cause existing functionality to change).

Checklist:

  • I have read the CONTRIBUTING document.
  • My change requires a change to the documentation.
  • I have updated the documentation accordingly.
  • I have added tests to cover my changes.
  • All new and existing tests passed.

Allow the datepicker to also use the document selector like the timepicker
Allow Timepicker to be used with an element instead of a selector string
@ChildishGiant ChildishGiant added this to the 2.0.0 milestone Apr 27, 2021
@Smankusors Smankusors marked this pull request as draft April 28, 2021 07:40
@ChildishGiant
Copy link
Member Author

ChildishGiant commented May 2, 2021

I've added docs for this:
image
image

At this point the PR is ready for review but I might just keep it in draft mode until we're actively working on 2.0. That or we could merge it to a 2.0 branch.

@ChildishGiant ChildishGiant changed the title WIP: feat(autocomplete): add custom sort option feat(autocomplete): add custom sort option May 2, 2021
@ChildishGiant ChildishGiant changed the base branch from v1-dev to v2-dev May 4, 2021 16:33
@ChildishGiant ChildishGiant marked this pull request as ready for review May 4, 2021 16:33
ChildishGiant and others added 19 commits May 8, 2021 23:24
Update documentation to reflect the way picker containers
Update datepicker & timepicker "container" option to allow being specified the same way
build(deps): 🔒 fix many security issues,
…-tests

Fix ERR_FILE_NOT_FOUND when running npm test
build(deps): update deps and fix deprecation warning in sass files
warrenrodrigues and others added 2 commits July 25, 2021 01:18
…n-message

Copy text without creating textarea and use single container for copy success message
@ChildishGiant
Copy link
Member Author

Rebased onto master

cvoudouris and others added 20 commits July 31, 2021 13:00
feat(datepicker): add possibility for a format function to Datepicker
* improving ToC
* updating labels section
* mention convention commit format in PR guide
* removed translations section
…uting-docs

Improving CONTRIBUTING document
…grade-grunt-contrib-jasmine

test: upgrade grunt-contrib-jasmine to upgrade puppeteer and set version of jasmine
@DanielRuf
Copy link

DanielRuf commented Sep 18, 2021

It seems there is a commitlint violation.
Does someone want to resolve this? That would be great =)

BREAKING CHANGE: renamed sortFunction to compareFunction
@ChildishGiant
Copy link
Member Author

Not sure what's going on here, I'm gonna just close this and remake the commit.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Option for custom sort in autocomplete
8 participants