/* Compiled from: rsx/theme/components/_archived/unfinished/kanban_board.jqhtml */ (function() { 'use strict'; const template_Kanban_Board = { _jqhtml_version: '2.2.185', name: 'Kanban_Board', tag: 'div', defaultAttributes: {"class": "d-flex gap-3", "style": "overflow-x: auto;"}, render: function render(data, args, content, jqhtml) { let _output = []; const _cid = this._cid; const that = this; _output.push(" "); if (Object.keys(this.data).length === 0) { _output.push(" ");_output.push({tag: ["div", {"class": "w-100 text-center py-5"}, false]}); _output.push(" "); _output.push({comp: ["Spinner", {}]}); _output.push(" "); _output.push(""); } else { _output.push(" "); for (let column of this.data.columns || []) { _output.push(" ");_output.push({tag: ["div", {"class": "card", "style": "min-width: 300px; max-width: 300px;", "data-column-id": (column.id)}, false]}); _output.push(" ");_output.push({tag: ["div", {"class": "card-header bg-light"}, false]}); _output.push(" ");_output.push({tag: ["div", {"class": "d-flex justify-content-between align-items-center"}, false]}); _output.push(" ");_output.push({tag: ["h6", {"class": "mb-0"}, false]}); (() => { const result = column.title ; 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({tag: ["span", {"class": "badge bg-secondary"}, false]}); (() => { const result = column.cards.length ; 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({tag: ["div", {"class": "card-body p-2", "style": "min-height: 400px; max-height: 600px; overflow-y: auto;", "data-column-cards": (column.id)}, false]}); _output.push(" "); for (let card of column.cards) { _output.push(" ");_output.push({tag: ["div", {"class": "card mb-2", "draggable": "true", "data-card-id": (card.id)}, false]}); _output.push(" ");_output.push({tag: ["div", {"class": "card-body p-3"}, false]}); _output.push(" ");_output.push({tag: ["div", {"class": "fw-bold mb-2"}, false]}); (() => { const result = card.title ; 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 (card.description) { _output.push(" ");_output.push({tag: ["div", {"class": "text-muted small mb-2"}, false]}); (() => { const result = card.description ; 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(" "); if (card.tags && card.tags.length > 0) { _output.push(" ");_output.push({tag: ["div", {"class": "mb-2"}, false]}); _output.push(" "); for (let tag of card.tags) { _output.push(" ");_output.push({tag: ["span", {"class": "badge bg-light text-dark me-1"}, false]}); (() => { const result = tag ; 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(" "); if (card.assignee) { _output.push(" ");_output.push({tag: ["div", {"class": "d-flex align-items-center gap-2"}, false]}); _output.push(" "); _output.push({comp: ["Avatar", {"data-name": card.assignee, "data-size": "xs"}]}); _output.push(" ");_output.push({tag: ["small", {"class": "text-muted"}, false]}); (() => { const result = card.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(" "); _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_Kanban_Board); })(); //# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2Z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