From 656a580553f05109c8051f4359fc07fa09803f23 Mon Sep 17 00:00:00 2001 From: Viet Ho Date: Tue, 23 Jul 2024 11:41:56 -0500 Subject: [PATCH 1/3] fixed missing types declaration --- types/fomantic-ui-search.d.ts | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/types/fomantic-ui-search.d.ts b/types/fomantic-ui-search.d.ts index 4d844603b7..6ea4a313fb 100644 --- a/types/fomantic-ui-search.d.ts +++ b/types/fomantic-ui-search.d.ts @@ -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'. From 2ab79556b7b4b7c73b1762ba036a9dda9bf7a66b Mon Sep 17 00:00:00 2001 From: Viet Ho Date: Tue, 23 Jul 2024 12:07:45 -0500 Subject: [PATCH 2/3] round 2 --- types/fomantic-ui-calendar.d.ts | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/types/fomantic-ui-calendar.d.ts b/types/fomantic-ui-calendar.d.ts index e486026c36..d321fac50c 100644 --- a/types/fomantic-ui-calendar.d.ts +++ b/types/fomantic-ui-calendar.d.ts @@ -327,6 +327,22 @@ declare namespace FomanticUI { formatter: Calendar.FormatterSettings; + /** + * 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 popoup + * is attached as direct child of the triggering element. + * + * @default false + */ + context: string | JQuery | false + // endregion // region Callbacks From 49e64a8ac8008b8c6638bd4055abbd9d70441f68 Mon Sep 17 00:00:00 2001 From: Viet Ho Date: Wed, 24 Jul 2024 06:24:46 -0500 Subject: [PATCH 3/3] fix some linting errors --- types/fomantic-ui-calendar.d.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/types/fomantic-ui-calendar.d.ts b/types/fomantic-ui-calendar.d.ts index d321fac50c..594c97572f 100644 --- a/types/fomantic-ui-calendar.d.ts +++ b/types/fomantic-ui-calendar.d.ts @@ -336,14 +336,14 @@ declare namespace FomanticUI { } /** - * DOM selector where the calendar popup should be attached to. By default (false) the calendar popoup + * 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 - // endregion + // end region // region Callbacks