2024-02-19 22:53:42 +00:00
|
|
|
export default {
|
2024-03-12 08:19:23 +00:00
|
|
|
css: ({ dt }) => `
|
2024-02-19 22:53:42 +00:00
|
|
|
.p-organizationchart-table {
|
|
|
|
border-spacing: 0;
|
|
|
|
border-collapse: separate;
|
|
|
|
margin: 0 auto;
|
|
|
|
}
|
|
|
|
|
|
|
|
.p-organizationchart-table > tbody > tr > td {
|
|
|
|
text-align: center;
|
|
|
|
vertical-align: top;
|
|
|
|
padding: 0 0.75rem;
|
|
|
|
}
|
|
|
|
|
|
|
|
.p-organizationchart-node-content {
|
|
|
|
display: inline-block;
|
|
|
|
position: relative;
|
2024-03-13 11:13:29 +00:00
|
|
|
border: 1px solid ${dt('organizationchart.node.border.color')};
|
|
|
|
background: ${dt('organizationchart.node.background')};
|
|
|
|
color: ${dt('organizationchart.node.color')};
|
2024-02-19 22:53:42 +00:00
|
|
|
padding: 0.75rem 1rem;
|
2024-03-12 08:19:23 +00:00
|
|
|
border-radius: ${dt('rounded.base')};
|
|
|
|
transition: background-color ${dt('transition.duration')}, color ${dt('transition.duration')};
|
2024-02-19 22:53:42 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
.p-organizationchart-node-content:has(.p-node-toggler) {
|
|
|
|
padding: 0.75rem 1rem 1.25rem 1rem;
|
|
|
|
}
|
|
|
|
|
|
|
|
.p-organizationchart-node-content.p-organizationchart-selectable-node:not(.p-highlight):hover {
|
2024-03-13 11:13:29 +00:00
|
|
|
background: ${dt('organizationchart.node.hover.background')};
|
|
|
|
color: ${dt('organizationchart.node.hover.color')};
|
2024-02-19 22:53:42 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
.p-organizationchart-node-content.p-highlight {
|
2024-03-13 11:13:29 +00:00
|
|
|
background: ${dt('highlight.background')};
|
|
|
|
color: ${dt('highlight.color')};
|
2024-02-19 22:53:42 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
.p-organizationchart-node-content .p-node-toggler {
|
|
|
|
position: absolute;
|
|
|
|
bottom: -0.75rem;
|
|
|
|
margin-left: -0.75rem;
|
|
|
|
z-index: 2;
|
|
|
|
left: 50%;
|
|
|
|
user-select: none;
|
|
|
|
cursor: pointer;
|
|
|
|
width: 1.5rem;
|
|
|
|
height: 1.5rem;
|
|
|
|
text-decoration: none;
|
2024-03-13 11:13:29 +00:00
|
|
|
background: ${dt('organizationchart.toggle.icon.background')};
|
|
|
|
color: ${dt('organizationchart.toggle.icon.color')};
|
2024-02-19 22:53:42 +00:00
|
|
|
border-radius: 50%;
|
2024-03-13 11:13:29 +00:00
|
|
|
border: 1px solid ${dt('organizationchart.toggle.icon.border.color')};
|
2024-02-19 22:53:42 +00:00
|
|
|
display: inline-flex;
|
|
|
|
justify-content: center;
|
|
|
|
align-items: center;
|
|
|
|
outline-color: transparent;
|
2024-03-12 08:19:23 +00:00
|
|
|
transition: background-color ${dt('transition.duration')}, color ${dt('transition.duration')}, border-color ${dt('transition.duration')}, outline-color ${dt('transition.duration')};
|
2024-02-19 22:53:42 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
.p-organizationchart-node-content .p-node-toggler:focus-visible {
|
2024-03-12 08:19:23 +00:00
|
|
|
outline: ${dt('focus.ring.width')} ${dt('focus.ring.style')} ${dt('focus.ring.color')};
|
|
|
|
outline-offset: ${dt('focus.ring.offset')};
|
2024-02-19 22:53:42 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
.p-organizationchart-node-content .p-node-toggler .p-node-toggler-icon {
|
|
|
|
position: relative;
|
|
|
|
top: 1px;
|
|
|
|
}
|
|
|
|
|
|
|
|
.p-organizationchart-line-down {
|
|
|
|
margin: 0 auto;
|
|
|
|
height: 20px;
|
|
|
|
width: 1px;
|
2024-03-13 11:13:29 +00:00
|
|
|
background: ${dt('organizationchart.connector.color')};
|
2024-02-19 22:53:42 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
.p-organizationchart-line-right {
|
|
|
|
border-radius: 0;
|
2024-03-13 11:13:29 +00:00
|
|
|
border-left: 1px solid ${dt('organizationchart.connector.color')};
|
2024-03-12 08:19:23 +00:00
|
|
|
border-top-left-radius: ${dt('rounded.base')};
|
2024-02-19 22:53:42 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
.p-organizationchart-line-left {
|
|
|
|
border-radius: 0;
|
2024-03-13 11:13:29 +00:00
|
|
|
border-right: 1px solid ${dt('organizationchart.connector.color')};
|
2024-02-19 22:53:42 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
.p-organizationchart-line-top {
|
2024-03-13 11:13:29 +00:00
|
|
|
border-top: 1px solid ${dt('organizationchart.connector.color')};
|
2024-02-19 22:53:42 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
.p-organizationchart-selectable-node {
|
|
|
|
cursor: pointer;
|
|
|
|
}
|
|
|
|
|
|
|
|
.p-organizationchart-lines :nth-child(1 of .p-organizationchart-line-left) {
|
|
|
|
border-right: 0 none;
|
|
|
|
}
|
|
|
|
|
|
|
|
.p-organizationchart-lines :nth-last-child(1 of .p-organizationchart-line-left) {
|
2024-03-12 08:19:23 +00:00
|
|
|
border-top-right-radius: ${dt('rounded.base')};
|
2024-02-19 22:53:42 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
.p-organizationchart-lines :nth-child(1 of .p-organizationchart-line-right) {
|
2024-03-13 11:13:29 +00:00
|
|
|
border-left: 1px solid ${dt('organizationchart.connector.color')};
|
2024-03-12 08:19:23 +00:00
|
|
|
border-top-left-radius: ${dt('rounded.base')};
|
2024-02-19 22:53:42 +00:00
|
|
|
}
|
|
|
|
`
|
|
|
|
};
|