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

chore(types): fix missing types on some module #3075

Merged
merged 3 commits into from
Jul 28, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 17 additions & 1 deletion types/fomantic-ui-calendar.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -327,7 +327,23 @@ declare namespace FomanticUI {

formatter: Calendar.FormatterSettings;

// endregion
/**
* Customizable methods to parse a given date
* Has to return a date object
*/
parser: {
date: (text: string, settings: CalendarSettings) => Date;
}

/**
* DOM selector where the calendar popup should be attached to. By default (false) the calendar popup
* is attached as direct child of the triggering element.
*
* @default false
*/
context: string | JQuery | false

// end region

// region Callbacks

Expand Down
9 changes: 7 additions & 2 deletions types/fomantic-ui-search.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -183,10 +183,15 @@ declare namespace FomanticUI {
showNoResults: boolean;

/**
* Specifying to "true" will use a fuzzy full text search, setting to "exact" will force the exact search to be matched somewhere in the string, setting to false will only match to start of string.
* Possible values
* * `exact` will force the exact search to be matched somewhere in the string.
* * `some` Will do the same as exact but supports multiple search values separated by whitespace. At least one word must match. (New in v2.9.1)
* * `all` is same as some but all words have to match in all given search fields of each record altogether. (New in v2.9.1)
* * `true` will use a fuzzy full text search.
* * `false` will only match to start of string.
* @default 'exact'
*/
fullTextSearch: 'exact' | boolean;
fullTextSearch: 'exact' | 'some' | 'all' | boolean;

/**
* List mapping display content to JSON property, either with API or 'source'.
Expand Down