import type { DynamicDataProvider } from '@microsoft/sp-component-base'; import type { IDynamicDataSharedSourceFilters, IDynamicDataSharedPropertyFilters } from './IPropertyPaneDynamicDataFilters'; /** * Dynamic data internal configuration. * * @remarks * This contract represents all the required dynamic data related configuration * for the component. This data is essential in creating the dynamic properties. * This is filled by the framework. For example in BaseWebPart class for web parts. * * @internal */ export interface IDynamicConfiguration { /** * The Dynamic Data provider for the component. * * @remarks * There is only one 'dynamicDataProvider' for a component */ dynamicDataProvider: DynamicDataProvider; /** * Default callback. * * @remarks * If 'callback' is not supplied for any of the dynamic properties, for both * field and property pane level, then this is used as the default. * * This is a function that wraps the render() function. * This maps with the behavior from the deserialization of DD objects. */ defaultCallback: () => void; } /** * Configuration related to a shared source. * * @public */ export interface IDynamicDataSharedSourceConfiguration { /** * User-friendly, localized label for the sources dropdown. * * default value - 'Connect to source' */ sourcesLabel?: string; /** * Filters for the shared source. */ filters?: IDynamicDataSharedSourceFilters; } /** * Configuration related to a shared property. * * @public */ export interface IDynamicDataSharedPropertyConfiguration { /** * Filters for the shared property. */ filters?: IDynamicDataSharedPropertyFilters; } /** * Enum for the possible values of shared depth of the dynamic data reference. * * @public */ export declare enum DynamicDataSharedDepth { /** * Indicates that nothing is shared. */ None = 0, /** * Indicates that the dynamic data source is shared. */ Source = 1, /** * Indicates that both the dynamic data source and the property are shared. */ Property = 2 } //# sourceMappingURL=IDynamicConfiguration.d.ts.map