From cb17eaaaff02cd2ea301a94b315e4991c588cc78 Mon Sep 17 00:00:00 2001 From: Markus Waelchli Date: Mon, 8 Apr 2024 13:22:15 +0200 Subject: [PATCH 1/3] Change to MS Search Data Source to support query template --- .../dataSources/MicrosoftSearchDataSource.ts | 18 ++++++++---------- 1 file changed, 8 insertions(+), 10 deletions(-) diff --git a/search-parts/src/dataSources/MicrosoftSearchDataSource.ts b/search-parts/src/dataSources/MicrosoftSearchDataSource.ts index 782a134a..56bc8d58 100644 --- a/search-parts/src/dataSources/MicrosoftSearchDataSource.ts +++ b/search-parts/src/dataSources/MicrosoftSearchDataSource.ts @@ -2,7 +2,7 @@ import { BaseDataSource, FilterSortType, FilterSortDirection, ITemplateSlot, Bui import { IPropertyPaneGroup, PropertyPaneLabel, IPropertyPaneField, PropertyPaneToggle, PropertyPaneHorizontalRule } from "@microsoft/sp-property-pane"; import { cloneDeep, isEmpty, find } from '@microsoft/sp-lodash-subset'; import { MSGraphClientFactory } from "@microsoft/sp-http"; -import { TokenService } from "../services/tokenService/TokenService"; +import { BuiltinTokenNames, TokenService } from "../services/tokenService/TokenService"; import { ServiceScope } from '@microsoft/sp-core-library'; import { Dropdown, IComboBoxOption, IDropdownProps, ITextFieldProps, TextField } from '@fluentui/react'; import { PropertyPaneAsyncCombo } from "../controls/PropertyPaneAsyncCombo/PropertyPaneAsyncCombo"; @@ -378,7 +378,7 @@ export class MicrosoftSearchDataSource extends BaseDataSource 1) { @@ -778,8 +776,8 @@ export class MicrosoftSearchDataSource extends BaseDataSource Date: Thu, 11 Apr 2024 11:25:36 +0200 Subject: [PATCH 2/3] make change generic --- search-parts/src/dataSources/MicrosoftSearchDataSource.ts | 7 +------ .../src/webparts/searchResults/SearchResultsWebPart.ts | 5 ----- 2 files changed, 1 insertion(+), 11 deletions(-) diff --git a/search-parts/src/dataSources/MicrosoftSearchDataSource.ts b/search-parts/src/dataSources/MicrosoftSearchDataSource.ts index 56bc8d58..b46b755d 100644 --- a/search-parts/src/dataSources/MicrosoftSearchDataSource.ts +++ b/search-parts/src/dataSources/MicrosoftSearchDataSource.ts @@ -2,7 +2,7 @@ import { BaseDataSource, FilterSortType, FilterSortDirection, ITemplateSlot, Bui import { IPropertyPaneGroup, PropertyPaneLabel, IPropertyPaneField, PropertyPaneToggle, PropertyPaneHorizontalRule } from "@microsoft/sp-property-pane"; import { cloneDeep, isEmpty, find } from '@microsoft/sp-lodash-subset'; import { MSGraphClientFactory } from "@microsoft/sp-http"; -import { BuiltinTokenNames, TokenService } from "../services/tokenService/TokenService"; +import { TokenService } from "../services/tokenService/TokenService"; import { ServiceScope } from '@microsoft/sp-core-library'; import { Dropdown, IComboBoxOption, IDropdownProps, ITextFieldProps, TextField } from '@fluentui/react'; import { PropertyPaneAsyncCombo } from "../controls/PropertyPaneAsyncCombo/PropertyPaneAsyncCombo"; @@ -686,11 +686,6 @@ export class MicrosoftSearchDataSource extends BaseDataSource Date: Thu, 11 Apr 2024 11:26:51 +0200 Subject: [PATCH 3/3] comment readded --- search-parts/src/dataSources/MicrosoftSearchDataSource.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/search-parts/src/dataSources/MicrosoftSearchDataSource.ts b/search-parts/src/dataSources/MicrosoftSearchDataSource.ts index b46b755d..148f8db4 100644 --- a/search-parts/src/dataSources/MicrosoftSearchDataSource.ts +++ b/search-parts/src/dataSources/MicrosoftSearchDataSource.ts @@ -686,6 +686,7 @@ export class MicrosoftSearchDataSource extends BaseDataSource