Skip to content

Commit

Permalink
Merge pull request #89 from DripEmail/release-0.17.3
Browse files Browse the repository at this point in the history
Release 0.17.3
  • Loading branch information
Jachin Rupe committed Mar 10, 2023
2 parents 9e09ae4 + e93cc4e commit 1c69e0b
Show file tree
Hide file tree
Showing 11 changed files with 370 additions and 344 deletions.
15 changes: 8 additions & 7 deletions dist/much-select-elm-debug.js
Original file line number Diff line number Diff line change
Expand Up @@ -15260,11 +15260,11 @@ var $author$project$OptionsUtilities$sortOptionsByBestScore = function (options)
options);
};
var $author$project$MuchSelect$figureOutWhichOptionsToShowInTheDropdown = F2(
function (selectionMode, options) {
function (selectionConfig, options) {
var optionsThatCouldBeShown = $author$project$OptionsUtilities$sortOptionsByBestScore(
A2($author$project$OptionsUtilities$filterOptionsToShowInDropdown, selectionMode, options));
A2($author$project$OptionsUtilities$filterOptionsToShowInDropdown, selectionConfig, options));
var lastIndexOfOptions = $elm$core$List$length(optionsThatCouldBeShown) - 1;
var _v0 = $author$project$SelectionMode$getMaxDropdownItems(selectionMode);
var _v0 = $author$project$SelectionMode$getMaxDropdownItems(selectionConfig);
if (_v0.$ === 'FixedMaxDropdownItems') {
var maxDropdownItems = _v0.a;
var maxNumberOfDropdownItems = $author$project$PositiveInt$toInt(maxDropdownItems);
Expand Down Expand Up @@ -17054,9 +17054,9 @@ var $author$project$MuchSelect$update = F2(
}
} else {
var visibleOptions = A2($author$project$MuchSelect$figureOutWhichOptionsToShowInTheDropdown, model.selectionConfig, model.options);
var moveHighlightedOptionDownIfThereAreOptions = F2(
function (selectionConfig, options) {
return ($elm$core$List$length(visibleOptions) > 1) ? A2($author$project$OptionsUtilities$moveHighlightedOptionDown, selectionConfig, options) : $elm$core$Basics$identity;
var moveHighlightedOptionDownIfThereAreOptions = F3(
function (selectionConfig, allOptions, visibleOptions_) {
return ($elm$core$List$length(visibleOptions_) > 1) ? A3($author$project$OptionsUtilities$moveHighlightedOptionDown, selectionConfig, allOptions, visibleOptions_) : allOptions;
});
var updatedOptions = A2(
$author$project$OptionsUtilities$selectOptionInListByOptionValue,
Expand All @@ -17080,7 +17080,8 @@ var $author$project$MuchSelect$update = F2(
$author$project$SelectionMode$getSelectionMode(model.selectionConfig),
model.selectedValueEncoding,
$author$project$OptionsUtilities$selectedOptions(updatedOptions)),
$author$project$MuchSelect$FocusInput
$author$project$MuchSelect$FocusInput,
$author$project$MuchSelect$SearchStringTouched(model.searchStringDebounceLength)
])));
} else {
return _Utils_Tuple2(
Expand Down
15 changes: 8 additions & 7 deletions dist/much-select-elm.js
Original file line number Diff line number Diff line change
Expand Up @@ -9962,11 +9962,11 @@ var $author$project$OptionsUtilities$sortOptionsByBestScore = function (options)
options);
};
var $author$project$MuchSelect$figureOutWhichOptionsToShowInTheDropdown = F2(
function (selectionMode, options) {
function (selectionConfig, options) {
var optionsThatCouldBeShown = $author$project$OptionsUtilities$sortOptionsByBestScore(
A2($author$project$OptionsUtilities$filterOptionsToShowInDropdown, selectionMode, options));
A2($author$project$OptionsUtilities$filterOptionsToShowInDropdown, selectionConfig, options));
var lastIndexOfOptions = $elm$core$List$length(optionsThatCouldBeShown) - 1;
var _v0 = $author$project$SelectionMode$getMaxDropdownItems(selectionMode);
var _v0 = $author$project$SelectionMode$getMaxDropdownItems(selectionConfig);
if (!_v0.$) {
var maxDropdownItems = _v0.a;
var maxNumberOfDropdownItems = $author$project$PositiveInt$toInt(maxDropdownItems);
Expand Down Expand Up @@ -11757,9 +11757,9 @@ var $author$project$MuchSelect$update = F2(
}
} else {
var visibleOptions = A2($author$project$MuchSelect$figureOutWhichOptionsToShowInTheDropdown, model.a, model.b);
var moveHighlightedOptionDownIfThereAreOptions = F2(
function (selectionConfig, options) {
return ($elm$core$List$length(visibleOptions) > 1) ? A2($author$project$OptionsUtilities$moveHighlightedOptionDown, selectionConfig, options) : $elm$core$Basics$identity;
var moveHighlightedOptionDownIfThereAreOptions = F3(
function (selectionConfig, allOptions, visibleOptions_) {
return ($elm$core$List$length(visibleOptions_) > 1) ? A3($author$project$OptionsUtilities$moveHighlightedOptionDown, selectionConfig, allOptions, visibleOptions_) : allOptions;
});
var updatedOptions = A2(
$author$project$OptionsUtilities$selectOptionInListByOptionValue,
Expand All @@ -11783,7 +11783,8 @@ var $author$project$MuchSelect$update = F2(
$author$project$SelectionMode$getSelectionMode(model.a),
model.h,
$author$project$OptionsUtilities$selectedOptions(updatedOptions)),
$author$project$MuchSelect$FocusInput
$author$project$MuchSelect$FocusInput,
$author$project$MuchSelect$SearchStringTouched(model.p)
])));
} else {
return _Utils_Tuple2(
Expand Down
2 changes: 1 addition & 1 deletion dist/much-select-template.js

Large diffs are not rendered by default.

15 changes: 8 additions & 7 deletions dist/site/much-select-elm-debug.js
Original file line number Diff line number Diff line change
Expand Up @@ -15260,11 +15260,11 @@ var $author$project$OptionsUtilities$sortOptionsByBestScore = function (options)
options);
};
var $author$project$MuchSelect$figureOutWhichOptionsToShowInTheDropdown = F2(
function (selectionMode, options) {
function (selectionConfig, options) {
var optionsThatCouldBeShown = $author$project$OptionsUtilities$sortOptionsByBestScore(
A2($author$project$OptionsUtilities$filterOptionsToShowInDropdown, selectionMode, options));
A2($author$project$OptionsUtilities$filterOptionsToShowInDropdown, selectionConfig, options));
var lastIndexOfOptions = $elm$core$List$length(optionsThatCouldBeShown) - 1;
var _v0 = $author$project$SelectionMode$getMaxDropdownItems(selectionMode);
var _v0 = $author$project$SelectionMode$getMaxDropdownItems(selectionConfig);
if (_v0.$ === 'FixedMaxDropdownItems') {
var maxDropdownItems = _v0.a;
var maxNumberOfDropdownItems = $author$project$PositiveInt$toInt(maxDropdownItems);
Expand Down Expand Up @@ -17054,9 +17054,9 @@ var $author$project$MuchSelect$update = F2(
}
} else {
var visibleOptions = A2($author$project$MuchSelect$figureOutWhichOptionsToShowInTheDropdown, model.selectionConfig, model.options);
var moveHighlightedOptionDownIfThereAreOptions = F2(
function (selectionConfig, options) {
return ($elm$core$List$length(visibleOptions) > 1) ? A2($author$project$OptionsUtilities$moveHighlightedOptionDown, selectionConfig, options) : $elm$core$Basics$identity;
var moveHighlightedOptionDownIfThereAreOptions = F3(
function (selectionConfig, allOptions, visibleOptions_) {
return ($elm$core$List$length(visibleOptions_) > 1) ? A3($author$project$OptionsUtilities$moveHighlightedOptionDown, selectionConfig, allOptions, visibleOptions_) : allOptions;
});
var updatedOptions = A2(
$author$project$OptionsUtilities$selectOptionInListByOptionValue,
Expand All @@ -17080,7 +17080,8 @@ var $author$project$MuchSelect$update = F2(
$author$project$SelectionMode$getSelectionMode(model.selectionConfig),
model.selectedValueEncoding,
$author$project$OptionsUtilities$selectedOptions(updatedOptions)),
$author$project$MuchSelect$FocusInput
$author$project$MuchSelect$FocusInput,
$author$project$MuchSelect$SearchStringTouched(model.searchStringDebounceLength)
])));
} else {
return _Utils_Tuple2(
Expand Down
15 changes: 8 additions & 7 deletions dist/site/much-select-elm.js
Original file line number Diff line number Diff line change
Expand Up @@ -9962,11 +9962,11 @@ var $author$project$OptionsUtilities$sortOptionsByBestScore = function (options)
options);
};
var $author$project$MuchSelect$figureOutWhichOptionsToShowInTheDropdown = F2(
function (selectionMode, options) {
function (selectionConfig, options) {
var optionsThatCouldBeShown = $author$project$OptionsUtilities$sortOptionsByBestScore(
A2($author$project$OptionsUtilities$filterOptionsToShowInDropdown, selectionMode, options));
A2($author$project$OptionsUtilities$filterOptionsToShowInDropdown, selectionConfig, options));
var lastIndexOfOptions = $elm$core$List$length(optionsThatCouldBeShown) - 1;
var _v0 = $author$project$SelectionMode$getMaxDropdownItems(selectionMode);
var _v0 = $author$project$SelectionMode$getMaxDropdownItems(selectionConfig);
if (!_v0.$) {
var maxDropdownItems = _v0.a;
var maxNumberOfDropdownItems = $author$project$PositiveInt$toInt(maxDropdownItems);
Expand Down Expand Up @@ -11757,9 +11757,9 @@ var $author$project$MuchSelect$update = F2(
}
} else {
var visibleOptions = A2($author$project$MuchSelect$figureOutWhichOptionsToShowInTheDropdown, model.a, model.b);
var moveHighlightedOptionDownIfThereAreOptions = F2(
function (selectionConfig, options) {
return ($elm$core$List$length(visibleOptions) > 1) ? A2($author$project$OptionsUtilities$moveHighlightedOptionDown, selectionConfig, options) : $elm$core$Basics$identity;
var moveHighlightedOptionDownIfThereAreOptions = F3(
function (selectionConfig, allOptions, visibleOptions_) {
return ($elm$core$List$length(visibleOptions_) > 1) ? A3($author$project$OptionsUtilities$moveHighlightedOptionDown, selectionConfig, allOptions, visibleOptions_) : allOptions;
});
var updatedOptions = A2(
$author$project$OptionsUtilities$selectOptionInListByOptionValue,
Expand All @@ -11783,7 +11783,8 @@ var $author$project$MuchSelect$update = F2(
$author$project$SelectionMode$getSelectionMode(model.a),
model.h,
$author$project$OptionsUtilities$selectedOptions(updatedOptions)),
$author$project$MuchSelect$FocusInput
$author$project$MuchSelect$FocusInput,
$author$project$MuchSelect$SearchStringTouched(model.p)
])));
} else {
return _Utils_Tuple2(
Expand Down
2 changes: 1 addition & 1 deletion dist/site/much-select-template.js

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions elm.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,8 @@
},
"test-dependencies": {
"direct": {
"elm-explorations/test": "2.1.0",
"avh4/elm-program-test": "4.0.0"
"avh4/elm-program-test": "4.0.0",
"elm-explorations/test": "2.1.1"
},
"indirect": {
"avh4/elm-fifo": "1.0.4",
Expand Down
Loading

0 comments on commit 1c69e0b

Please sign in to comment.