@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.
36 lines • 1.6 kB
TypeScript
import { OnChanges, SimpleChanges } from '@angular/core';
import * as i0 from "@angular/core";
export declare class RuleKeyValuePresComponent implements OnChanges {
/**
* Key of the object (name of the fact for example)
*/
key?: string;
/**
* Current value of the object
*/
value: string;
/**
* Previous value of the object
*/
oldValue?: string;
/**
* Type of display:
* - 'state': `key: value`, `key: oldValue -> value` or `oldValue -> value`
* - 'assignment': `key = value`
*/
type: 'state' | 'assignment';
shouldLimitCharactersForValue: boolean;
isClipBoardFeatureAvailableForValue: boolean;
isValuePrimitiveType: boolean;
shouldLimitCharactersForOldValue: boolean;
isClipBoardFeatureAvailableForOldValue: boolean;
isOldValuePrimitiveType: boolean;
private readonly triggerNotification;
showNotification$: import("rxjs").Observable<boolean>;
private isClipBoardFeatureAvailable;
ngOnChanges({ value, oldValue }: SimpleChanges): void;
copyToClipBoard(content: string): Promise<void>;
static ɵfac: i0.ɵɵFactoryDeclaration<RuleKeyValuePresComponent, never>;
static ɵcmp: i0.ɵɵComponentDeclaration<RuleKeyValuePresComponent, "o3r-rule-key-value-pres", never, { "key": { "alias": "key"; "required": false; }; "value": { "alias": "value"; "required": false; }; "oldValue": { "alias": "oldValue"; "required": false; }; "type": { "alias": "type"; "required": false; }; }, {}, never, never, true, never>;
}
//# sourceMappingURL=rule-key-value-pres.component.d.ts.map