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-multiselect {
|
|
|
|
display: inline-flex;
|
|
|
|
cursor: pointer;
|
|
|
|
position: relative;
|
|
|
|
user-select: none;
|
2024-03-13 18:50:24 +00:00
|
|
|
background: ${dt('multiselect.background')};
|
|
|
|
border: 1px solid ${dt('multiselect.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('multiselect.box.shadow')};
|
2024-02-21 10:48:13 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
.p-multiselect:not(.p-disabled):hover {
|
2024-03-13 18:50:24 +00:00
|
|
|
border-color: ${dt('multiselect.hover.border.color')};
|
2024-02-21 10:48:13 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
.p-multiselect:not(.p-disabled).p-focus {
|
2024-03-13 18:50:24 +00:00
|
|
|
border-color: ${dt('multiselect.focus.border.color')};
|
2024-02-21 10:48:13 +00:00
|
|
|
outline: 0 none;
|
|
|
|
}
|
|
|
|
|
|
|
|
.p-multiselect.p-variant-filled {
|
2024-03-13 18:50:24 +00:00
|
|
|
background: ${dt('multiselect.filled.background')};
|
2024-02-21 10:48:13 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
.p-multiselect.p-variant-filled.p-focus {
|
2024-03-13 18:50:24 +00:00
|
|
|
background: ${dt('multiselect.filled.focus.background')};
|
2024-02-21 10:48:13 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
.p-multiselect.p-invalid {
|
2024-03-13 18:50:24 +00:00
|
|
|
border-color: ${dt('multiselect.invalid.border.color')};
|
2024-02-21 10:48:13 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
.p-multiselect.p-disabled {
|
|
|
|
opacity: 1;
|
2024-03-13 18:50:24 +00:00
|
|
|
background: ${dt('multiselect.disabled.background')};
|
2024-02-21 10:48:13 +00:00
|
|
|
}
|
|
|
|
|
2024-04-07 10:35:07 +00:00
|
|
|
.p-multiselect-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('multiselect.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-multiselect-label-container {
|
|
|
|
overflow: hidden;
|
|
|
|
flex: 1 1 auto;
|
|
|
|
cursor: pointer;
|
|
|
|
}
|
|
|
|
|
|
|
|
.p-multiselect-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('multiselect.color')};
|
2024-02-21 10:48:13 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
.p-multiselect-label.p-placeholder {
|
2024-03-13 18:50:24 +00:00
|
|
|
color: ${dt('multiselect.placeholder.color')};
|
2024-02-21 10:48:13 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
.p-multiselect.p-disabled .p-multiselect-label {
|
2024-03-13 18:50:24 +00:00
|
|
|
color: ${dt('multiselect.disabled.color')};
|
2024-02-21 10:48:13 +00:00
|
|
|
}
|
|
|
|
|
2024-04-07 10:35:07 +00:00
|
|
|
.p-inputwrapper-filled.p-multiselect.p-multiselect-display-chip .p-multiselect-label {
|
2024-02-21 10:48:13 +00:00
|
|
|
padding: 0.25rem 0.25rem;
|
|
|
|
}
|
|
|
|
|
|
|
|
.p-multiselect-label-empty {
|
|
|
|
overflow: hidden;
|
|
|
|
visibility: hidden;
|
|
|
|
}
|
|
|
|
|
2024-04-07 10:35:07 +00:00
|
|
|
.p-multiselect .p-multiselect-overlay {
|
2024-02-21 10:48:13 +00:00
|
|
|
min-width: 100%;
|
|
|
|
}
|
|
|
|
|
2024-04-07 10:35:07 +00:00
|
|
|
.p-multiselect-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('multiselect.overlay.background')};
|
|
|
|
color: ${dt('multiselect.overlay.color')};
|
|
|
|
border: 1px solid ${dt('multiselect.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-multiselect-header {
|
|
|
|
display: flex;
|
|
|
|
align-items: center;
|
|
|
|
justify-content: space-between;
|
|
|
|
padding: 0.5rem 1rem 0 1rem;
|
|
|
|
}
|
|
|
|
|
|
|
|
.p-multiselect-header .p-checkbox {
|
|
|
|
margin-right: 0.5rem;
|
|
|
|
}
|
|
|
|
|
|
|
|
.p-multiselect-filter-container {
|
|
|
|
position: relative;
|
|
|
|
flex: 1 1 auto;
|
|
|
|
}
|
|
|
|
|
|
|
|
.p-multiselect-filter-icon {
|
|
|
|
position: absolute;
|
|
|
|
top: 50%;
|
|
|
|
margin-top: -0.5rem;
|
|
|
|
right: 0.75rem;
|
2024-03-13 18:50:24 +00:00
|
|
|
color: ${dt('multiselect.filter.icon.color')};
|
2024-02-21 10:48:13 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
.p-multiselect-filter-container .p-inputtext {
|
|
|
|
width: 100%;
|
|
|
|
padding-right: 1.75rem;
|
|
|
|
}
|
|
|
|
|
2024-04-07 10:35:07 +00:00
|
|
|
.p-multiselect-list-container {
|
2024-02-21 10:48:13 +00:00
|
|
|
overflow: auto;
|
|
|
|
}
|
|
|
|
|
2024-04-07 10:35:07 +00:00
|
|
|
.p-multiselect-list {
|
2024-02-21 10:48:13 +00:00
|
|
|
margin: 0;
|
|
|
|
padding: 0;
|
|
|
|
list-style-type: none;
|
|
|
|
padding: 0.25rem 0.25rem;
|
|
|
|
}
|
|
|
|
|
2024-04-07 10:35:07 +00:00
|
|
|
.p-multiselect-option {
|
2024-02-21 10:48:13 +00:00
|
|
|
cursor: pointer;
|
|
|
|
font-weight: normal;
|
|
|
|
white-space: nowrap;
|
|
|
|
position: relative;
|
|
|
|
overflow: hidden;
|
|
|
|
display: flex;
|
|
|
|
align-items: center;
|
|
|
|
margin: 2px 0;
|
|
|
|
padding: 0.5rem 0.75rem;
|
|
|
|
border: 0 none;
|
2024-03-13 18:50:24 +00:00
|
|
|
color: ${dt('multiselect.item.color')};
|
2024-02-21 10:48:13 +00:00
|
|
|
background: transparent;
|
2024-03-12 08:19:23 +00:00
|
|
|
transition: background-color ${dt('transition.duration')}, color ${dt('transition.duration')}, border-color ${dt('transition.duration')}, box-shadow ${dt('transition.duration')}, outline-color ${dt('transition.duration')};
|
2024-03-13 18:50:24 +00:00
|
|
|
border-radius: ${dt('rounded.sm')};
|
2024-02-21 10:48:13 +00:00
|
|
|
}
|
|
|
|
|
2024-04-07 10:35:07 +00:00
|
|
|
.p-multiselect-option:first-child {
|
2024-02-21 10:48:13 +00:00
|
|
|
margin-top: 0;
|
|
|
|
}
|
|
|
|
|
2024-04-07 10:35:07 +00:00
|
|
|
.p-multiselect-option:last-child {
|
2024-02-21 10:48:13 +00:00
|
|
|
margin-bottom: 0;
|
|
|
|
}
|
|
|
|
|
2024-04-07 10:35:07 +00:00
|
|
|
.p-multiselect-option:not(.p-multiselect-option-selected):not(.p-disabled).p-focus {
|
2024-03-13 18:50:24 +00:00
|
|
|
background: ${dt('multiselect.item.focus.background')};
|
|
|
|
color: ${dt('multiselect.item.focus.color')};
|
2024-02-21 10:48:13 +00:00
|
|
|
}
|
|
|
|
|
2024-04-07 10:35:07 +00:00
|
|
|
.p-multiselect-option.p-multiselect-option-selected {
|
2024-03-13 18:50:24 +00:00
|
|
|
background: ${dt('multiselect.item.selected.background')};
|
|
|
|
color: ${dt('multiselect.item.selected.color')};
|
2024-02-21 10:48:13 +00:00
|
|
|
}
|
|
|
|
|
2024-04-07 10:35:07 +00:00
|
|
|
.p-multiselect-option.p-multiselect-option-selected.p-focus {
|
2024-03-13 18:50:24 +00:00
|
|
|
background: ${dt('multiselect.item.selected.focus.background')};
|
|
|
|
color: ${dt('multiselect.item.selected.focus.color')};
|
2024-02-21 10:48:13 +00:00
|
|
|
}
|
|
|
|
|
2024-04-07 10:35:07 +00:00
|
|
|
.p-multiselect-option .p-checkbox {
|
2024-02-21 10:48:13 +00:00
|
|
|
margin-right: 0.5rem;
|
|
|
|
}
|
|
|
|
|
2024-04-07 10:35:07 +00:00
|
|
|
.p-multiselect-option-group {
|
2024-02-21 10:48:13 +00:00
|
|
|
cursor: auto;
|
|
|
|
margin: 0;
|
|
|
|
padding: 0.5rem 0.75rem;
|
2024-03-13 18:50:24 +00:00
|
|
|
color: ${dt('multiselect.item.group.color')};
|
|
|
|
background: ${dt('multiselect.item.group.background')};
|
2024-02-21 10:48:13 +00:00
|
|
|
font-weight: 600;
|
|
|
|
}
|
|
|
|
|
|
|
|
.p-multiselect-empty-message {
|
|
|
|
padding: 0.5rem 0.75rem;
|
|
|
|
background: transparent;
|
|
|
|
}
|
|
|
|
|
|
|
|
.p-fluid .p-multiselect {
|
|
|
|
display: flex;
|
|
|
|
}
|
|
|
|
`
|
|
|
|
};
|