mirror of
https://github.com/lingble/chatwoot.git
synced 2025-11-01 19:48:08 +00:00
* refactor: use grid instead of flex * refactor: let the parent layout decide the spacing * feat: add a separate date-range component * refactor: use new date-range component * fix: destructure all options * refactor: separate group by component * refactor: better handle group by data * fix: defaul group by * refactor: variable naming * refactor: use DATE_RANGE_OPTIONS directly * chore: update platform in gemfile.lock * refactor: trigger fetch on filter change * refactor: remove redundant method * refactor: simplify methods and emitting * refactor: simplify filter logic * refactor: simplify fetching * refactor: imports * refactor: prop name * refactor: CSAT response to use new APIs * refactor: use common filter event * refactor: use computed value for validGroupBy * refactor: better function names * refactor: rename prop * refactor: remove redundant props * refactor: separate agents filter component * feat: add labels filter * feat: add inboxes filter * fix: event * refactor: send label and inbox along with request payload * feat: add inbox filter * feat: add inbox to download * refactor: use request payload from computed property * refactor: params * feat: add team to csat filters * feat: add team to csat filters * feat: add filter for rating * feat: reverse options * feat: add labels for ratings and translations * feat: update translation * fix: margin and spacing * fix: trailing whitespace * feat: add tests for filters * chore: move files * feat: add try catch with alerts * feat: update import * fix: imports * Updates broken imports --------- Co-authored-by: Muhsin Keloth <muhsinkeramam@gmail.com> Co-authored-by: Nithin David Thomas <1277421+nithindavid@users.noreply.github.com>
270 lines
5.0 KiB
SCSS
270 lines
5.0 KiB
SCSS
@mixin label-multiselect-hover {
|
|
&::after {
|
|
color: $color-primary-dark;
|
|
}
|
|
|
|
&:hover {
|
|
background: $color-background;
|
|
|
|
&::after {
|
|
color: $color-woot;
|
|
}
|
|
}
|
|
}
|
|
|
|
.multiselect {
|
|
&:not(.no-margin) {
|
|
margin-bottom: var(--space-normal);
|
|
}
|
|
|
|
&.multiselect--disabled {
|
|
opacity: 0.8;
|
|
}
|
|
|
|
.multiselect--active {
|
|
>.multiselect__tags {
|
|
border-color: var(--w-500);
|
|
}
|
|
}
|
|
|
|
.multiselect__select {
|
|
min-height: 4.6rem;
|
|
padding: 0;
|
|
right: 0;
|
|
top: 0;
|
|
|
|
&::before {
|
|
right: 0;
|
|
}
|
|
}
|
|
|
|
.multiselect__content {
|
|
max-width: 100%;
|
|
|
|
.multiselect__option {
|
|
font-size: $font-size-small;
|
|
font-weight: $font-weight-normal;
|
|
|
|
span {
|
|
display: inline-block;
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
white-space: nowrap;
|
|
width: fit-content;
|
|
}
|
|
|
|
p {
|
|
margin-bottom: 0;
|
|
}
|
|
|
|
&.multiselect__option--highlight {
|
|
background: var(--white);
|
|
color: var(--color-body);
|
|
}
|
|
|
|
&.multiselect__option--highlight:hover {
|
|
background: var(--w-50);
|
|
color: var(--color-body);
|
|
|
|
&::after {
|
|
background: var(--w-50);
|
|
color: var(--s-600);
|
|
}
|
|
}
|
|
|
|
&.multiselect__option--highlight::after {
|
|
background: transparent;
|
|
}
|
|
|
|
&.multiselect__option--selected {
|
|
background: var(--w-75);
|
|
|
|
&.multiselect__option--highlight:hover {
|
|
background: var(--w-75);
|
|
|
|
&::after {
|
|
background: transparent;
|
|
}
|
|
|
|
&::after:hover {
|
|
color: var(--color-body);
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
.multiselect__tags {
|
|
border: 1px solid var(--s-200);
|
|
border-color: var(--s-200);
|
|
margin: 0;
|
|
min-height: 4.4rem;
|
|
padding-top: $zero;
|
|
}
|
|
|
|
.multiselect__tags-wrap {
|
|
display: inline-block;
|
|
line-height: 1;
|
|
margin-top: $space-smaller;
|
|
}
|
|
|
|
.multiselect__placeholder {
|
|
color: $color-gray;
|
|
font-weight: $font-weight-normal;
|
|
padding-top: var(--space-slab);
|
|
}
|
|
|
|
.multiselect__tag {
|
|
$vertical-space: $space-smaller + $space-micro;
|
|
background: $color-background;
|
|
color: $color-heading;
|
|
margin-top: $space-smaller;
|
|
padding: $vertical-space $space-medium $vertical-space $space-one;
|
|
}
|
|
|
|
.multiselect__tag-icon {
|
|
@include label-multiselect-hover;
|
|
line-height: $space-medium + $space-micro;
|
|
}
|
|
|
|
.multiselect__input {
|
|
@include ghost-input;
|
|
font-size: $font-size-small;
|
|
height: 4.4rem;
|
|
margin-bottom: $zero;
|
|
padding: 0;
|
|
}
|
|
|
|
.multiselect__single {
|
|
@include text-ellipsis;
|
|
display: inline-block;
|
|
margin-bottom: 0;
|
|
padding: var(--space-slab) var(--space-one);
|
|
}
|
|
}
|
|
|
|
.sidebar-labels-wrap {
|
|
|
|
&.has-edited,
|
|
&:hover {
|
|
.multiselect {
|
|
cursor: pointer;
|
|
}
|
|
}
|
|
|
|
.multiselect {
|
|
>.multiselect__select {
|
|
visibility: hidden;
|
|
}
|
|
|
|
>.multiselect__tags {
|
|
border-color: transparent;
|
|
}
|
|
|
|
&.multiselect--active>.multiselect__tags {
|
|
border-color: $color-woot;
|
|
}
|
|
}
|
|
}
|
|
|
|
.multiselect-wrap--small {
|
|
$multiselect-height: 4.0rem;
|
|
|
|
.multiselect__tags,
|
|
.multiselect__input {
|
|
align-items: center;
|
|
display: flex;
|
|
}
|
|
|
|
.multiselect__tags,
|
|
.multiselect__input,
|
|
.multiselect {
|
|
background: var(--white);
|
|
font-size: var(--font-size-small);
|
|
height: $multiselect-height;
|
|
min-height: $multiselect-height;
|
|
}
|
|
|
|
.multiselect__input {
|
|
height: $multiselect-height - $space-micro;
|
|
min-height: $multiselect-height - $space-micro;
|
|
}
|
|
|
|
.multiselect__single {
|
|
align-items: center;
|
|
display: flex;
|
|
font-size: var(--font-size-small);
|
|
margin: 0;
|
|
max-height: 3.8rem;
|
|
padding: var(--space-smaller) var(--space-micro);
|
|
}
|
|
|
|
.multiselect__placeholder {
|
|
margin: 0;
|
|
padding: var(--space-smaller) var(--space-micro);
|
|
}
|
|
|
|
.multiselect__select {
|
|
min-height: $multiselect-height;
|
|
}
|
|
|
|
.multiselect--disabled .multiselect__current,
|
|
.multiselect--disabled .multiselect__select {
|
|
background: transparent;
|
|
}
|
|
|
|
.multiselect__tags-wrap {
|
|
flex-shrink: 0;
|
|
}
|
|
}
|
|
|
|
.multiselect-wrap--medium {
|
|
$multiselect-height: 4.8rem;
|
|
|
|
.multiselect__tags,
|
|
.multiselect__input {
|
|
align-items: center;
|
|
display: flex;
|
|
}
|
|
|
|
.multiselect__tags,
|
|
.multiselect__input,
|
|
.multiselect {
|
|
background: var(--white);
|
|
font-size: var(--font-size-small);
|
|
height: $multiselect-height;
|
|
min-height: $multiselect-height;
|
|
}
|
|
|
|
.multiselect__input {
|
|
height: $multiselect-height - $space-micro;
|
|
min-height: $multiselect-height - $space-micro;
|
|
}
|
|
|
|
.multiselect__single {
|
|
align-items: center;
|
|
display: flex;
|
|
font-size: var(--font-size-small);
|
|
margin: 0;
|
|
padding: var(--space-smaller) var(--space-micro);
|
|
}
|
|
|
|
.multiselect__placeholder {
|
|
margin: 0;
|
|
padding: var(--space-smaller) var(--space-micro);
|
|
}
|
|
|
|
.multiselect__select {
|
|
min-height: $multiselect-height;
|
|
}
|
|
|
|
.multiselect--disabled .multiselect__current,
|
|
.multiselect--disabled .multiselect__select {
|
|
background: transparent;
|
|
}
|
|
|
|
.multiselect__tags-wrap {
|
|
flex-shrink: 0;
|
|
}
|
|
}
|