diff --git a/packages/power-bi/package.json b/packages/power-bi/package.json index e210e6cda..b4357cee4 100644 --- a/packages/power-bi/package.json +++ b/packages/power-bi/package.json @@ -1,6 +1,6 @@ { "name": "@equinor/workspace-powerbi", - "version": "1.0.10", + "version": "1.0.11", "type": "module", "sideEffects": false, "license": "MIT", diff --git a/packages/power-bi/src/lib/components/Filter/Filter.tsx b/packages/power-bi/src/lib/components/Filter/Filter.tsx index 180a6a30f..be82adedd 100644 --- a/packages/power-bi/src/lib/components/Filter/Filter.tsx +++ b/packages/power-bi/src/lib/components/Filter/Filter.tsx @@ -11,6 +11,7 @@ import { search, playlist_add, drag_handle } from '@equinor/eds-icons'; import { tokens } from '@equinor/eds-tokens'; import { Skeleton } from '../skeleton/Skeleton'; import { getVisibleFiltersFromLocalStorage, useVisibleFilters } from '../../hooks/useVisibleFilterGroups'; +import styled from 'styled-components'; Icon.add({ search, playlist_add, drag_handle }); @@ -232,23 +233,22 @@ export const PowerBIFilter = ({ report, options }: PowerBIFilterProps): JSX.Elem function QuickFilterLoading() { return ( -
- - - - - - -
+ + {new Array(20).fill(null).map(() => ( + + ))} + ); } + +const StyledQuickFilterLoading = styled.div` + height: 48px; + width: 100%; + display: grid; + grid-template-columns: repeat(auto-fill, minmax(160px, min-content)); + grid-template-rows: 1fr; + background-color: ${tokens.colors.ui.background__light.hex}; + align-items: center; + gap: 1em; + padding-left: 1em; +`; diff --git a/packages/power-bi/src/lib/components/QuickFilter/QuickFilter.tsx b/packages/power-bi/src/lib/components/QuickFilter/QuickFilter.tsx index 140277b2e..42d048bd8 100644 --- a/packages/power-bi/src/lib/components/QuickFilter/QuickFilter.tsx +++ b/packages/power-bi/src/lib/components/QuickFilter/QuickFilter.tsx @@ -63,25 +63,25 @@ export const PowerBIQuickFilter = ({ controller }: PowerBIQuickFilterProps): JSX {!isFilterExpanded && ( - -
- {slicerFilters.map((s, i) => { - i < 9 && shownFilters.push(s.type); - return ( - i < 9 && ( - - handleOnChange(s, filter, singleClick) - } - group={s} - key={s.type + i} - /> - ) - ); - })} -
+ + {slicerFilters.map((s, i) => { + i < 9 && shownFilters.push(s.type); + return ( + i < 9 && ( + + handleOnChange(s, filter, singleClick) + } + group={s} + key={s.type + i} + /> + ) + ); + })} + + await resetFilter()} /> @@ -90,7 +90,7 @@ export const PowerBIQuickFilter = ({ controller }: PowerBIQuickFilterProps): JSX {isFilterExpanded ? : } -
+
)} {isFilterExpanded && } @@ -98,6 +98,19 @@ export const PowerBIQuickFilter = ({ controller }: PowerBIQuickFilterProps): JSX ); }; +const StyledFilterButtons = styled.div` + background: ${tokens.colors.ui.background__light.hex}; +`; + +const StyledQuickFilterWrapper = styled.div` + display: grid; + width: 100%; + justify-content: flex-end; + grid-template-columns: repeat(auto-fit, minmax(60px, max-content)); + gap: 2em; + grid-template-rows: 1fr; +`; + const FilterButtonContainer = styled.div` display: flex; align-items: center; diff --git a/packages/power-bi/src/lib/components/QuickFilter/quickFilter.styles.ts b/packages/power-bi/src/lib/components/QuickFilter/quickFilter.styles.ts index 80089a323..325a51aed 100644 --- a/packages/power-bi/src/lib/components/QuickFilter/quickFilter.styles.ts +++ b/packages/power-bi/src/lib/components/QuickFilter/quickFilter.styles.ts @@ -5,4 +5,7 @@ export const StyledCompactFilterWrapper = styled.div` height: 50px; width: 100%; background-color: ${tokens.colors.ui.background__light.hex}; + display: grid; + grid-template-columns: 1fr auto; + grid-template-rows: 1fr; `; diff --git a/packages/power-bi/src/lib/components/quickFilterGroup/QuickFilterGroup.tsx b/packages/power-bi/src/lib/components/quickFilterGroup/QuickFilterGroup.tsx index b04a26fe5..c293583e5 100644 --- a/packages/power-bi/src/lib/components/quickFilterGroup/QuickFilterGroup.tsx +++ b/packages/power-bi/src/lib/components/quickFilterGroup/QuickFilterGroup.tsx @@ -25,7 +25,7 @@ export const PowerBiFilterGroup = ({ if (!activeFilters) return null; const isAllChecked = activeFilters.length === 0 || activeFilters.length === group.filterVals.length; return ( -
+
setIsOpen((s) => !s)} ref={anchorEl}>
{getFilterHeaderText( diff --git a/packages/workspace-fusion/package.json b/packages/workspace-fusion/package.json index fdb829454..afa280bd3 100644 --- a/packages/workspace-fusion/package.json +++ b/packages/workspace-fusion/package.json @@ -1,6 +1,6 @@ { "name": "@equinor/workspace-fusion", - "version": "6.0.14", + "version": "6.0.15", "type": "module", "sideEffects": false, "license": "MIT",