armisa-models
Version:
models of armisa!
34 lines (33 loc) • 1.61 kB
JavaScript
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.ModelLogin = void 0;
const Eventing_1 = require("../Eventing");
class ModelLogin {
constructor(mainStateManager) {
this.mainStateManager = mainStateManager;
this.eventing = new Eventing_1.Eventing();
this.on = this.eventing.on;
this.removeOn = this.eventing.removeOn;
this.trigger = this.eventing.trigger;
this.onControl = this.eventing.onControl;
this.removeOnControl = this.eventing.removeOnControl;
this.triggerControl = this.eventing.triggerControl;
this.triggerChangeFilterOfPage = this.eventing.triggerChangeFilterOfPage;
this.onCodeSimulateKeyDown = this.eventing.onCodeSimulateKeyDown;
this.codeSimulateKeyDown = this.eventing.codeSimulateKeyDown;
this.removeOnCodeSimulateKeyDown = this.eventing.removeOnCodeSimulateKeyDown;
this.onControlWillUnmount = this.eventing.onControlWillUnmount;
this.removeOnControlWillUnmount = this.eventing.removeOnControlWillUnmount;
this.controlWillUnmount = this.eventing.controlWillUnmount;
this.allControlsWillUnmount = this.eventing.allControlsWillUnmount;
this.onFactoryClassWillUnmount = (callBack) => {
this.on('factory.class.will.unmount', callBack);
};
this.factoryClassWillUnmount = () => {
this.trigger('factory.class.will.unmount');
};
this.acceptButton = () => { };
this.cancelButton = () => { };
}
}
exports.ModelLogin = ModelLogin;