import type { Guid } from '@microsoft/sp-core-library'; /** * Property pane dynamic data source filters. * * @public */ export interface IDynamicDataSharedSourceFilters { /** * Component Id. * * Usage: Use this filter when the author should only be able to connect to a * specific type of source. * * @remarks * This is to filter what type of source needs to be shown in the data sources * dropdown (first level) on the dynamic data widget. * * When provided, the dynamic data sources dropdown in the dynamic data widget * is filtered to only show the sources matching the given component id. * * Example - If the document library web part component id is supplied, then * the dynamic data sources dropdown only shows document library web parts on * the page which are registered dynamic sources. */ componentId?: Guid; /** * Source Id * * Usage: Use this filter, when the author can only to connect to a specific * data source. * * @remarks * This is to filter which specific source is to be pre-selected in the data * sources dropdown (first level) on the dynamic data widget. * * When provided, the dynamic data sources dropdown is pre-selected to show the * source with the provided id, if available. Otherwise the dropdown will * fall back to show all the existing data sources on the page. If a source * is pre-selected, the control will be disabled to ensure that authors can not * change it. * * The source id for a web part will be of the form * WebPart.. */ sourceId?: string; } /** * Property pane dynamic data property filters. * * @public */ export interface IDynamicDataSharedPropertyFilters { /** * Property Id * * Usage: Use this filter when the author can only to connect to a specific * property from the selected source. * * @remarks * This is to filter which specific property is to be pre-selected in the * properties dropdown(second level) on the dynamic data widget. * * When provided, the dynamic data properties dropdown is pre-selected to show * the specific property, if avaialble. Otherwise the dropdown will fall back * to show all the exposed properties from the source. If a property is * pre-selected, the control will be disabled to ensure that authors can not * change it. */ propertyId?: string; } //# sourceMappingURL=IPropertyPaneDynamicDataFilters.d.ts.map