/* Compiled from: rsx/theme/components/_archived/unfinished/gantt_chart.jqhtml */ (function() { 'use strict'; const template_Gantt_Chart = { _jqhtml_version: '2.2.185', name: 'Gantt_Chart', tag: 'div', defaultAttributes: {"class": "card"}, render: function render(data, args, content, jqhtml) { let _output = []; const _cid = this._cid; const that = this; _output.push(" ");_output.push({tag: ["div", {"class": "card-header"}, false]}); _output.push(" ");_output.push({tag: ["h5", {"class": "mb-0"}, false]}); (() => { const result = this.args.title || 'Project Timeline' ; if (Array.isArray(result)) { if (result.length === 2 && Array.isArray(result[0])) { _output.push(...result[0]); } else { _output.push(...result); } } else { _output.push(jqhtml.escape_html(result)); } })(); _output.push(""); _output.push(" "); _output.push(""); _output.push({tag: ["div", {"class": "card-body p-0"}, false]}); _output.push(" ");_output.push({tag: ["div", {"class": "table-responsive"}, false]}); _output.push(" ");_output.push({tag: ["table", {"class": "table table-bordered mb-0", "style": "table-layout: fixed;"}, false]}); _output.push(" ");_output.push({tag: ["thead", {"class": "table-light"}, false]}); _output.push(" ");_output.push({tag: ["tr", {}, false]}); _output.push(" ");_output.push({tag: ["th", {"style": "width: 200px;"}, false]}); _output.push("Task"); _output.push(""); _output.push(" "); for (let month of this.data.months || []) { _output.push(" ");_output.push({tag: ["th", {"class": "text-center small"}, false]}); (() => { const result = month ; if (Array.isArray(result)) { if (result.length === 2 && Array.isArray(result[0])) { _output.push(...result[0]); } else { _output.push(...result); } } else { _output.push(jqhtml.escape_html(result)); } })(); _output.push(""); _output.push(" "); } _output.push(" "); _output.push(""); _output.push(""); _output.push({tag: ["tbody", {}, false]}); _output.push(" "); if (Object.keys(this.data).length === 0) { _output.push(" ");_output.push({tag: ["tr", {}, false]}); _output.push(" ");_output.push({tag: ["td", {"colspan": "100", "class": "text-center py-5"}, false]}); _output.push(" "); _output.push({comp: ["Spinner", {}]}); _output.push(" "); _output.push(""); _output.push(""); } else { _output.push(" "); for (let task of this.data.tasks || []) { _output.push(" ");_output.push({tag: ["tr", {}, false]}); _output.push(" ");_output.push({tag: ["td", {"class": "align-middle"}, false]}); _output.push(" ");_output.push({tag: ["div", {"class": "fw-bold"}, false]}); (() => { const result = task.name ; if (Array.isArray(result)) { if (result.length === 2 && Array.isArray(result[0])) { _output.push(...result[0]); } else { _output.push(...result); } } else { _output.push(jqhtml.escape_html(result)); } })(); _output.push(""); _output.push(" "); if (task.assignee) { _output.push(" ");_output.push({tag: ["small", {"class": "text-muted"}, false]}); (() => { const result = task.assignee ; if (Array.isArray(result)) { if (result.length === 2 && Array.isArray(result[0])) { _output.push(...result[0]); } else { _output.push(...result); } } else { _output.push(jqhtml.escape_html(result)); } })(); _output.push(""); _output.push(" "); } _output.push(" "); _output.push(""); for (let i = 0; i < (this.data.months || []).length; i++) { _output.push(" ");_output.push({tag: ["td", {"class": "p-1 align-middle"}, false]}); _output.push(" "); if (task.start_month <= i && task.end_month >= i) { _output.push(" ");_output.push({tag: ["div", {"class": "bg-" + (task.color || 'primary') + "rounded p-2 text-white small text-center"}, false]}); _output.push(" "); (() => { const result = task.start_month === i ? task.name : '' ; if (Array.isArray(result)) { if (result.length === 2 && Array.isArray(result[0])) { _output.push(...result[0]); } else { _output.push(...result); } } else { _output.push(jqhtml.escape_html(result)); } })(); _output.push(" "); _output.push(""); } _output.push(" "); _output.push(""); } _output.push(" "); _output.push(""); } _output.push(" "); } _output.push(" "); _output.push(""); _output.push(""); _output.push(""); _output.push(""); return [_output, this]; }, dependencies: [] }; // Self-register with jqhtml runtime // Must use window.jqhtml since we're in bundle scope if (!window.jqhtml) { throw new Error('FATAL: window.jqhtml is not defined. The jqhtml runtime must be loaded before registering templates.'); } // Auto-register following standard jqhtml pattern window.jqhtml.register_template(template_Gantt_Chart); })(); //# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImdhbnR0X2NoYXJ0LmpxaHRtbCJdLCJzb3VyY2VzQ29udGVudCI6WyI8RGVmaW5lOkdhbnR0X0NoYXJ0IGNsYXNzPV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vciAobGV0IHRhc2sgb2YgdGhpcy5kYXRhLnRhc2tzIHx8IFtdKSB7ICU+XG4gICAgICAgICAgICAgIDx0cj5cbiAgICAgICAgICAgICAgICA8dGQgY2xhc3M9XCJhbGlnbi1taWRkbGVcIj5cbiAgICAgICAgICAgICAgICAgIDxkaXYgY2xhc3M9XCJmdy1ib2xkXCI+PCU9IHRhc2submFtZSAlPjwvZGl2PlxuICAgICAgICAgICAgICAgICAgPCUgaWYgKHRhc2suYXNzaWduZWUpIHsgJT5cbiAgICAgICAgICAgICAgICAgICAgPHNtYWxsIGNsYXNzPVwidGV4dC1tdXRlZFwiPjwlPSB0YXNrLmFzc2lnbmVlICU+PC9zbWFsbD5cbiAgICAgICAgICAgICAgICAgIDwlIH0gJT5cbiAgICAgICAgICAgICAgICA8L3RkPlxuICAgICAgICAgICAgICAgIDwlIGZvciAobGV0IGkgPSAwOyBpIDwgKHRoaXMuZGF0YS5tb250aHMgfHwgW10pLmxlbmd0aDsgaSsrKSB7ICU+XG4gICAgICAgICAgICAgICAgICA8dGQgY2xhc3M9XCJwLTEgYWxpZ24tbWlkZGxlXCI+XG4gICAgICAgICAgICAgICAgICAgIDwlIGlmICh0YXNrLnN0YXJ0X21vbnRoIDw9IGkgJiYgdGFzay5lbmRfbW9udGggPj0gaSkgeyAlPlxuICAgICAgICAgICAgICAgICAgICAgIDxkaXYgY2xhc3M9XCJiZy08JT0gdGFzay5jb2xvciB8fCAncHJpbWFyeScgJT4gcm91bmRlZCBwLTIgdGV4dC13aGl0ZSBzbWFsbCB0ZXh0LWNlbnRlclwiPlxuICAgICAgICAgICAgICAgICAgICAgICAgPCU9IHRhc2suc3RhcnRfbW9udGggPT09IGkgPyB0YXNrLm5hbWUgOiAnJyAlPlxuICAgICAgICAgICAgICAgICAgICAgIDwvZGl2PlxuICAgICAgICAgICAgICAgICAgICA8JSB9ICU+XG4gICAgICAgICAgICAgICAgICA8L3RkPlxuICAgICAgICAgICAgICAgIDwlIH0gJT5cbiAgIC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