mirror of https://github.com/ColorlibHQ/AdminLTE
1 line
138 KiB
Plaintext
1 line
138 KiB
Plaintext
|
{"version":3,"file":"main.js","sources":["../../../tmp/tsc-output/packages/daygrid/src/DayGridDateProfileGenerator.js","../../../tmp/tsc-output/packages/daygrid/src/Popover.js","../../../tmp/tsc-output/packages/daygrid/src/SimpleDayGridEventRenderer.js","../../../tmp/tsc-output/packages/daygrid/src/DayGridEventRenderer.js","../../../tmp/tsc-output/packages/daygrid/src/DayGridMirrorRenderer.js","../../../tmp/tsc-output/packages/daygrid/src/DayGridFillRenderer.js","../../../tmp/tsc-output/packages/daygrid/src/DayTile.js","../../../tmp/tsc-output/packages/daygrid/src/DayBgRow.js","../../../tmp/tsc-output/packages/daygrid/src/DayGrid.js","../../../tmp/tsc-output/packages/daygrid/src/AbstractDayGridView.js","../../../tmp/tsc-output/packages/daygrid/src/SimpleDayGrid.js","../../../tmp/tsc-output/packages/daygrid/src/DayGridView.js","../../../tmp/tsc-output/packages/daygrid/src/main.js"],"sourcesContent":["import * as tslib_1 from \"tslib\";\nimport { DateProfileGenerator, addWeeks, diffWeeks } from '@fullcalendar/core';\nvar DayGridDateProfileGenerator = /** @class */ (function (_super) {\n tslib_1.__extends(DayGridDateProfileGenerator, _super);\n function DayGridDateProfileGenerator() {\n return _super !== null && _super.apply(this, arguments) || this;\n }\n // Computes the date range that will be rendered.\n DayGridDateProfileGenerator.prototype.buildRenderRange = function (currentRange, currentRangeUnit, isRangeAllDay) {\n var dateEnv = this.dateEnv;\n var renderRange = _super.prototype.buildRenderRange.call(this, currentRange, currentRangeUnit, isRangeAllDay);\n var start = renderRange.start;\n var end = renderRange.end;\n var endOfWeek;\n // year and month views should be aligned with weeks. this is already done for week\n if (/^(year|month)$/.test(currentRangeUnit)) {\n start = dateEnv.startOfWeek(start);\n // make end-of-week if not already\n endOfWeek = dateEnv.startOfWeek(end);\n if (endOfWeek.valueOf() !== end.valueOf()) {\n end = addWeeks(endOfWeek, 1);\n }\n }\n // ensure 6 weeks\n if (this.options.monthMode &&\n this.options.fixedWeekCount) {\n var rowCnt = Math.ceil(// could be partial weeks due to hiddenDays\n diffWeeks(start, end));\n end = addWeeks(end, 6 - rowCnt);\n }\n return { start: start, end: end };\n };\n return DayGridDateProfileGenerator;\n}(DateProfileGenerator));\nexport default DayGridDateProfileGenerator;\n","/* A rectangular panel that is absolutely positioned over other content\n------------------------------------------------------------------------------------------------------------------------\nOptions:\n - className (string)\n - content (HTML string, element, or element array)\n - parentEl\n - top\n - left\n - right (the x coord of where the right edge should be. not a \"CSS\" right)\n - autoHide (boolean)\n - show (callback)\n - hide (callback)\n*/\nimport { removeElement, createElement, applyStyle, listenBySelector, computeClippingRect, computeRect } from '@fullcalendar/core';\nvar Popover = /** @class */ (function () {\n function Popover(options) {\n var _this = this;\n this.isHidden = true;\n this.margin = 10; // the space required between the popover and the edges of the scroll container\n // Triggered when the user clicks *anywhere* in the document, for the autoHide feature\n this.documentMousedown = function (ev) {\n // only hide the popover if the click happened outside the popover\n if (_this.el && !_this.el.contains(ev.target)) {\n _this.hide();\n }\n };\n this.options = options;\n }\n // Shows the popover on the specified position. Renders it if not already\n Popover.prototype.show = function () {\n if (this.isHidden) {\n if (!this.el) {\n this.render();\n }\n this.el.style.display = ''
|