import { StateManager } from "../../CommonUI/StateManagement/StateManager";
import { RuleBuilderPage } from "../DesignUI/RuleBuilderPage";
export class IntersectionRuleEditContext {
    constructor(def) {
        this.mode = RuleBuilderPage.Rule;
        this._openLinkingDialog = false;
        this._linkData = {
            period: "every_day",
            periodData: {
                period: "day",
                times: 0,
                onWeekDays: [],
                at: "1",
                value: 1,
            },
            storeData: true,
            serviceSetting: false,
            format: "csv",
        };
        this.definition = def;
    }
    onCopy(id) { }
    onCut(id) { }
    onDelete(id) { }
    onPaste(id) { }
    set notification(notification) {
        this._notification = notification;
        StateManager.propertyChanged(this, "notification");
    }
    get notification() {
        return this._notification;
    }
    set openLinkDialog(open) {
        this._openLinkingDialog = open;
        StateManager.propertyChanged(this, "openLinkDialog");
    }
    get openLinkDialog() {
        return this._openLinkingDialog;
    }
    set linkData(data) {
        this._linkData = data;
        StateManager.propertyChanged(this, "linkData");
    }
    get linkData() {
        return this._linkData;
    }
}
//# sourceMappingURL=IntersectionRuleEditContext.js.map