![]() System : Linux absol.cf 5.4.0-198-generic #218-Ubuntu SMP Fri Sep 27 20:18:53 UTC 2024 x86_64 User : www-data ( 33) PHP Version : 7.4.33 Disable Function : pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_get_handler,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,pcntl_async_signals,pcntl_unshare, Directory : /var/www/html/libs/absol-full/dist/js/ |
Upload File : |
/*** module: node_modules/absol-acomp/js/Frame.js ***/ "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.default = void 0; require("../css/frame.css"); var _ACore = _interopRequireDefault(require("../ACore")); var _stringGenerate = require("absol/src/String/stringGenerate"); var _utils = require("./utils"); var _ = _ACore.default._; var $ = _ACore.default.$; /*** * @extends AElement * @constructor */ function Frame() { this.$parent = null; // FrameView or TabView //adapter (0, _utils.forwardEvent)(this, 'inactive', 'deactive'); } Frame.tag = 'frame'; Frame.render = function () { return _({ class: 'absol-frame', attr: { id: (0, _stringGenerate.randomIdent)(12) }, extendEvent: ['attached', 'detached', 'active', 'inactive'] // inactive and active event will be send by parent }); }; Frame.prototype.notifyAttached = function (parentElt) { this.$parent = parentElt; this.emit('attached', { type: 'attached', target: this, parentElt: parentElt }, this); }; Frame.prototype.notifyDetached = function () { this.emit('detached', { type: 'detached', target: this, parentElt: this.$parent }, this); this.$parent = undefined; }; Frame.prototype.selfRemove = function () { if (this.$parent) this.$parent.removeChild(this);else this.super(); // normal remove }; Frame.prototype.getParent = function () { return this.$parent; }; Frame.prototype.requestActive = function () { if (this.$parent) { this.$parent.activeFrame(this); } }; _ACore.default.install(Frame); var _default = Frame; exports.default = _default;