import type { InputSignal, Signal } from '@angular/core'; import type { Observable } from 'rxjs'; /** * Types available for configuration */ export type ConfigurationValueType = string | number | boolean; /** * Nested configuration allowing one level only * Object should only contain primitive types */ export interface NestedConfiguration { [key: string]: ConfigurationValueType; } /** * Interface of configuration that is supported by the cms */ export interface Configuration { [key: string]: ConfigurationValueType | (string | NestedConfiguration)[]; } /** Configuration model exported by the CMS */ export interface CustomConfig = Partial> { /** Component name */ name: string; /** Component's library name; No library name for global config */ library?: string; /** Component configuration as key value pairs */ config: T; } /** * Dynamically Configurable item */ export interface DynamicConfigurable { /** * Configuration override by Angular input mechanism */ config: Partial | undefined; /** * Configuration stream based on the input and the stored configuration */ config$: Observable; } /** * Dynamically Configurable item working with signal */ export interface DynamicConfigurableWithSignal { /** * Configuration override by Angular input mechanism */ config: InputSignal | undefined>; /** * Configuration signal based on the input and the stored configuration */ configSignal: Signal; } /** * Configurable item */ export interface Configurable { /** * Configuration */ config: T; } /** * Description of a configuration property extracted to the CMS */ export interface CategoryDescription { /** Category name */ name: string; /** Category description */ label: string; } /** Types of components config */ export type ConfigType = 'Block' | 'Page' | 'AppRuntimeConfiguration' | 'AppBuildConfiguration' | 'ExposedComponent'; /** * Interface to define widget parameter to be used on CMS side */ export interface ConfigPropertyWidgetParameters { [parameterName: string]: string | boolean | number | string[] | boolean[] | number[]; } /** * Interface to define the widget to be used on CMS side */ export interface ConfigPropertyWidget { /** Type of the CMS widget */ type: string; /** Parameters provided to the CMS widget */ parameters?: ConfigPropertyWidgetParameters; } //# sourceMappingURL=configuration.d.ts.map