![]() 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-card/js/dom/VTimeTableItem.js ***/ "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.default = void 0; require("../../css/vtimetableitem.css"); var _Core = _interopRequireDefault(require("./Core")); var _status2Icon = _interopRequireDefault(require("./status2Icon")); var _ = _Core.default._; var $ = _Core.default.$; function VTimeTableItem() { /** * @type {VTimeTableItem} */ this.$left = null; /** * @type { VTimeTableItem } */ this.$right = null; this._status = []; this.$flagRow = $('.cd-month-table-item-flag-row', this); this.$flages = []; this._name = ''; this.$name = $('.cd-v-time-table-item-name', this); } VTimeTableItem.tag = 'VTimeTableItem'.toLowerCase(); VTimeTableItem.render = function () { return _({ tag: 'hanger', class: 'cd-v-time-table-item', child: [{ class: 'cd-v-time-table-item-name-ctn', child: { tag: 'span', class: 'cd-v-time-table-item-name', child: { text: "" } } }, '.cd-v-time-table-item-top-drag-line', '.cd-v-time-table-item-bottom-drag-line'] }); }; VTimeTableItem.prototype.findStart = function () { var res = this; while (res.$left) { res = res.$left; } return res; }; VTimeTableItem.prototype.findRight = function () { var res = this; while (res.$right) { res = res.$right; } return res; }; //độ chia nhỏ nhất là 5 phút, làm tròn VTimeTableItem.property = {}; /** * @type {VTimeTableItem} */ VTimeTableItem.property.isOverDue = { set: function (value) { if (value) { this.addClass('cd-status-over-due'); } else { this.removeClass('cd-status-over-due'); } }, get: function () { return this.containsClass('cd-status-over-due'); } }; /** * @type {VTimeTableItem} */ VTimeTableItem.property.name = { set: function (value) { this._name = (value || '') + ''; this.$name.firstChild.data = this._name; }, get: function () { return this._name; } }; _Core.default.install(VTimeTableItem); var _default = VTimeTableItem; exports.default = _default;