aqua.root
Version:
El componente abstrae...
133 lines (130 loc) • 3.7 kB
JavaScript
/******/ (function(modules) { // webpackBootstrap
/******/ // The module cache
/******/ var installedModules = {};
/******/
/******/ // The require function
/******/ function __webpack_require__(moduleId) {
/******/
/******/ // Check if module is in cache
/******/ if(installedModules[moduleId])
/******/ return installedModules[moduleId].exports;
/******/
/******/ // Create a new module (and put it into the cache)
/******/ var module = installedModules[moduleId] = {
/******/ exports: {},
/******/ id: moduleId,
/******/ loaded: false
/******/ };
/******/
/******/ // Execute the module function
/******/ modules[moduleId].call(module.exports, module, module.exports, __webpack_require__);
/******/
/******/ // Flag the module as loaded
/******/ module.loaded = true;
/******/
/******/ // Return the exports of the module
/******/ return module.exports;
/******/ }
/******/
/******/
/******/ // expose the modules object (__webpack_modules__)
/******/ __webpack_require__.m = modules;
/******/
/******/ // expose the module cache
/******/ __webpack_require__.c = installedModules;
/******/
/******/ // __webpack_public_path__
/******/ __webpack_require__.p = "";
/******/
/******/ // Load entry module and return exports
/******/ return __webpack_require__(0);
/******/ })
/************************************************************************/
/******/ ([
/* 0 */
/***/ function(module, exports) {
"use strict";
var Root = (function () {
function Root() {
this.init();
}
Root.prototype.init = function () {
this.fireEvent(Root.COMPLETE);
};
Object.defineProperty(Root.prototype, "id", {
get: function () {
return this._id;
},
set: function (identifier) {
this._id = identifier;
},
enumerable: true,
configurable: true
});
Object.defineProperty(Root.prototype, "name", {
get: function () {
return this._name;
},
set: function (name) {
this._name = name;
},
enumerable: true,
configurable: true
});
Object.defineProperty(Root.prototype, "label", {
get: function () {
return this._label;
},
set: function (componentLabel) {
this._label = componentLabel;
},
enumerable: true,
configurable: true
});
Object.defineProperty(Root.prototype, "visible", {
get: function () {
return this._visible;
},
set: function (visibility) {
this._visible = visibility;
},
enumerable: true,
configurable: true
});
Object.defineProperty(Root.prototype, "isHidden", {
get: function () {
return !this.visible;
},
set: function (visibility) {
this.visible = !visibility;
},
enumerable: true,
configurable: true
});
Root.prototype.show = function () {
this.visible = true;
};
Root.prototype.hide = function () {
this.isHidden = true;
};
Root.prototype.toggle = function () {
this.visible = !this.visible;
};
Root.prototype.fireEvent = function (event) {
};
Root.COMPLETE = 'COMPLETE';
Root.FOCUS = 'FOCUS';
Root.CLICK = 'CLICK';
Root.HOVER = 'HOVER';
Root.EVENTS = {
COMPLETE: Root.COMPLETE,
FOCUS: Root.FOCUS,
CLICK: Root.CLICK,
HOVER: Root.HOVER
};
return Root;
}());
exports.Root = Root;
/***/ }
/******/ ]);
//# sourceMappingURL=index.js.map