feat(org-chart): finalize chart features and AI generation rules
This commit is contained in:
1 parent
7614507583
commit
d0828a7ff4
80 files changed
+8152
-221
No files matched your search
@@ -27,8 +27,20 @@ export function createEmployeeInfoDialog(
|
||||
const closeButton = document.createElement('button');
|
||||
closeButton.type = 'button';
|
||||
closeButton.className = 'hm-orgchart-employee-dialog-close';
|
||||
closeButton.textContent = '닫기';
|
||||
closeButton.setAttribute('aria-label', '직원 정보 닫기');
|
||||
// HM Dialog's Lucide XIcon, kept as native SVG for the shared Vanilla Core.
|
||||
const closeIcon = document.createElementNS('http://www.w3.org/2000/svg', 'svg');
|
||||
for (const [name, value] of Object.entries({
|
||||
width: '24', height: '24', viewBox: '0 0 24 24', fill: 'none',
|
||||
stroke: 'currentColor', 'stroke-width': '2', 'stroke-linecap': 'round',
|
||||
'stroke-linejoin': 'round', 'aria-hidden': 'true', focusable: 'false',
|
||||
})) closeIcon.setAttribute(name, value);
|
||||
for (const d of ['M18 6 6 18', 'm6 6 12 12']) {
|
||||
const path = document.createElementNS('http://www.w3.org/2000/svg', 'path');
|
||||
path.setAttribute('d', d);
|
||||
closeIcon.append(path);
|
||||
}
|
||||
closeButton.append(closeIcon);
|
||||
const fields = document.createElement('dl');
|
||||
fields.className = 'hm-orgchart-employee-dialog-fields';
|
||||
header.append(title, closeButton);
|
||||
|
||||
Reference in new issue
Block a user