@o3r/rules-engine
Version:
This module provides a rule engine that can be executed on your Otter application to customize your application (translations, placeholders and configs) based on a json file generated by your CMS.
37 lines • 1.55 kB
TypeScript
import type { AllBlock, TopLevelCondition } from '../../../engine';
import * as i0 from "@angular/core";
export declare class RuleTreePresComponent {
/**
* Rule name. Will only be defined at the root of the rule tree.
*/
name?: string;
/**
* Type of the block being resolved.
* A type "IF_ELSE" will display two branches and the success and failure outputs associated
* Else, only the successElements will be shown
*/
blockType: string;
/**
* The condition under which the success elements will be displayed.
*/
condition?: TopLevelCondition;
/**
* If case output
*/
successElements: AllBlock[];
/**
* Else case output
*/
failureElements: AllBlock[];
/**
* Should the "Else case scenario" actions be displayed
*/
failureActionsExpanded: boolean;
/**
* Should the "If case scenario" actions be displayed
*/
successActionsExpanded: boolean;
static ɵfac: i0.ɵɵFactoryDeclaration<RuleTreePresComponent, never>;
static ɵcmp: i0.ɵɵComponentDeclaration<RuleTreePresComponent, "o3r-rule-tree-pres", never, { "name": { "alias": "name"; "required": false; }; "blockType": { "alias": "blockType"; "required": false; }; "condition": { "alias": "condition"; "required": false; }; "successElements": { "alias": "successElements"; "required": false; }; "failureElements": { "alias": "failureElements"; "required": false; }; }, {}, never, never, true, never>;
}
//# sourceMappingURL=rule-tree-pres.component.d.ts.map