2024-02-21 10:48:13 +00:00
|
|
|
export default {
|
2024-03-12 08:19:23 +00:00
|
|
|
css: ({ dt }) => `
|
2024-02-21 10:48:13 +00:00
|
|
|
.p-treeselect {
|
|
|
|
display: inline-flex;
|
|
|
|
cursor: pointer;
|
|
|
|
position: relative;
|
|
|
|
user-select: none;
|
2024-03-13 18:50:24 +00:00
|
|
|
background: ${dt('treeselect.background')};
|
|
|
|
border: 1px solid ${dt('treeselect.border.color')};
|
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')};
|
|
|
|
border-radius: ${dt('rounded.base')};
|
2024-02-21 10:48:13 +00:00
|
|
|
outline-color: transparent;
|
2024-03-13 18:50:24 +00:00
|
|
|
box-shadow: ${dt('treeselect.box.shadow')};
|
2024-02-21 10:48:13 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
.p-treeselect:not(.p-disabled):hover {
|
2024-03-13 18:50:24 +00:00
|
|
|
border-color: ${dt('treeselect.hover.border.color')};
|
2024-02-21 10:48:13 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
.p-treeselect:not(.p-disabled).p-focus {
|
2024-03-13 18:50:24 +00:00
|
|
|
border-color: ${dt('treeselect.focus.border.color')};
|
2024-02-21 10:48:13 +00:00
|
|
|
outline: 0 none;
|
|
|
|
}
|
|
|
|
|
|
|
|
.p-treeselect.p-variant-filled {
|
2024-03-13 18:50:24 +00:00
|
|
|
background: ${dt('treeselect.filled.background')};
|
2024-02-21 10:48:13 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
.p-treeselect.p-variant-filled.p-focus {
|
2024-03-13 18:50:24 +00:00
|
|
|
background: ${dt('treeselect.filled.focus.background')};
|
2024-02-21 10:48:13 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
.p-treeselect.p-invalid {
|
2024-03-13 18:50:24 +00:00
|
|
|
border-color: ${dt('treeselect.invalid.border.color')};
|
2024-02-21 10:48:13 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
.p-treeselect.p-disabled {
|
|
|
|
opacity: 1;
|
2024-03-13 18:50:24 +00:00
|
|
|
background: ${dt('treeselect.disabled.background')};
|
2024-02-21 10:48:13 +00:00
|
|
|
}
|
|
|
|
|
2024-04-07 11:02:54 +00:00
|
|
|
.p-treeselect-dropdown {
|
2024-02-21 10:48:13 +00:00
|
|
|
display: flex;
|
|
|
|
align-items: center;
|
|
|
|
justify-content: center;
|
|
|
|
flex-shrink: 0;
|
|
|
|
background: transparent;
|
2024-03-13 18:50:24 +00:00
|
|
|
color: ${dt('treeselect.toggle.color')};
|
2024-02-21 10:48:13 +00:00
|
|
|
width: 2.5rem;
|
2024-03-12 08:19:23 +00:00
|
|
|
border-top-right-radius: ${dt('rounded.base')};
|
|
|
|
border-bottom-right-radius: ${dt('rounded.base')};
|
2024-02-21 10:48:13 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
.p-treeselect-label-container {
|
|
|
|
overflow: hidden;
|
|
|
|
flex: 1 1 auto;
|
|
|
|
cursor: pointer;
|
|
|
|
}
|
|
|
|
|
|
|
|
.p-treeselect-label {
|
|
|
|
display: block;
|
|
|
|
white-space: nowrap;
|
|
|
|
cursor: pointer;
|
|
|
|
overflow: hidden;
|
|
|
|
text-overflow: ellipsis;
|
|
|
|
padding: 0.5rem 0.75rem;
|
2024-03-13 18:50:24 +00:00
|
|
|
color: ${dt('treeselect.color')};
|
2024-02-21 10:48:13 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
.p-treeselect-label.p-placeholder {
|
2024-03-13 18:50:24 +00:00
|
|
|
color: ${dt('treeselect.placeholder.color')};
|
2024-02-21 10:48:13 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
.p-treeselect.p-disabled .p-treeselect-label {
|
2024-03-13 18:50:24 +00:00
|
|
|
color: ${dt('treeselect.disabled.color')};
|
2024-02-21 10:48:13 +00:00
|
|
|
}
|
|
|
|
|
2024-04-07 11:02:54 +00:00
|
|
|
.p-inputwrapper-filled.p-treeselect.p-treeselect-display-chip .p-treeselect-label {
|
2024-02-21 10:48:13 +00:00
|
|
|
padding: 0.25rem 0.25rem;
|
|
|
|
}
|
|
|
|
|
|
|
|
.p-treeselect-label-empty {
|
|
|
|
overflow: hidden;
|
|
|
|
visibility: hidden;
|
|
|
|
}
|
|
|
|
|
2024-04-07 11:02:54 +00:00
|
|
|
.p-treeselect .p-treeselect-overlay {
|
2024-02-21 10:48:13 +00:00
|
|
|
min-width: 100%;
|
|
|
|
}
|
|
|
|
|
2024-04-07 11:02:54 +00:00
|
|
|
.p-treeselect-overlay {
|
2024-02-21 10:48:13 +00:00
|
|
|
position: absolute;
|
|
|
|
top: 0;
|
|
|
|
left: 0;
|
2024-03-13 18:50:24 +00:00
|
|
|
background: ${dt('treeselect.overlay.background')};
|
|
|
|
color: ${dt('treeselect.overlay.color')};
|
|
|
|
border: 1px solid ${dt('treeselect.overlay.border.color')};
|
2024-03-12 08:19:23 +00:00
|
|
|
border-radius: ${dt('rounded.base')};
|
2024-02-21 10:48:13 +00:00
|
|
|
box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
|
|
|
|
}
|
|
|
|
|
|
|
|
.p-treeselect-empty-message {
|
|
|
|
padding: 0.5rem 0.75rem;
|
|
|
|
background: transparent;
|
|
|
|
}
|
|
|
|
|
|
|
|
.p-fluid .p-treeselect {
|
|
|
|
display: flex;
|
|
|
|
}
|
|
|
|
|
2024-04-07 11:02:54 +00:00
|
|
|
.p-treeselect-overlay .p-tree {
|
2024-02-21 10:48:13 +00:00
|
|
|
padding: 0.25rem 0.25rem;
|
|
|
|
}
|
|
|
|
`
|
|
|
|
};
|