@redsift/dashboard 11.6.0-muiv5-alpha.4 → 11.6.0-muiv5-alpha.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/_internal/ChartEmptyState.d.ts +3 -0
- package/{components/ChartEmptyState/types.d.ts → _internal/ChartEmptyState.d2.ts} +4 -1
- package/_internal/ChartEmptyState.js +2 -0
- package/_internal/ChartEmptyState.js.map +1 -0
- package/{components/ChartEmptyState/ChartEmptyState.js → _internal/ChartEmptyState2.js} +34 -3
- package/_internal/ChartEmptyState2.js.map +1 -0
- package/_internal/CrossfilterRegistry.d.ts +9 -0
- package/_internal/CrossfilterRegistry.js +2 -0
- package/_internal/CrossfilterRegistry.js.map +1 -0
- package/{components/CrossfilterRegistry/CrossfilterRegistry.js → _internal/CrossfilterRegistry2.js} +2 -2
- package/_internal/CrossfilterRegistry2.js.map +1 -0
- package/_internal/Dashboard.d.ts +7 -0
- package/_internal/Dashboard.js +4 -0
- package/_internal/Dashboard.js.map +1 -0
- package/{components/Dashboard/reducer.js → _internal/Dashboard2.js} +44 -4
- package/_internal/Dashboard2.js.map +1 -0
- package/_internal/PdfExportButton.d.ts +3 -0
- package/{components/PdfExportButton/types.d.ts → _internal/PdfExportButton.d2.ts} +4 -2
- package/_internal/PdfExportButton.js +2 -0
- package/_internal/PdfExportButton.js.map +1 -0
- package/_internal/PdfExportButton2.js +417 -0
- package/_internal/PdfExportButton2.js.map +1 -0
- package/_internal/TimeSeriesBarChart.d.ts +5 -0
- package/{components/TimeSeriesBarChart/types.d.ts → _internal/TimeSeriesBarChart.d2.ts} +5 -3
- package/_internal/TimeSeriesBarChart.js +2 -0
- package/_internal/TimeSeriesBarChart.js.map +1 -0
- package/{components/TimeSeriesBarChart/TimeSeriesBarChart.js → _internal/TimeSeriesBarChart2.js} +120 -11
- package/_internal/TimeSeriesBarChart2.js.map +1 -0
- package/_internal/WithFilters.d.ts +4 -0
- package/{components/WithFilters/types.d.ts → _internal/WithFilters.d2.ts} +5 -3
- package/_internal/WithFilters.js +2 -0
- package/_internal/WithFilters.js.map +1 -0
- package/_internal/WithFilters2.js +701 -0
- package/_internal/WithFilters2.js.map +1 -0
- package/{_virtual/_rollupPluginBabelHelpers.js → _internal/context.js} +11 -2
- package/_internal/context.js.map +1 -0
- package/{components/Dashboard/types.d.ts → _internal/reducer.d.ts} +11 -3
- package/{types.d.ts → _internal/types.d.ts} +1 -1
- package/{components/Dashboard → _internal}/types.js +1 -1
- package/_internal/types.js.map +1 -0
- package/index.d.ts +19 -14
- package/index.js +15 -11
- package/index.js.map +1 -1
- package/package.json +2 -2
- package/_virtual/_rollupPluginBabelHelpers.js.map +0 -1
- package/components/ChartEmptyState/ChartEmptyState.d.ts +0 -6
- package/components/ChartEmptyState/ChartEmptyState.js.map +0 -1
- package/components/ChartEmptyState/styles.js +0 -35
- package/components/ChartEmptyState/styles.js.map +0 -1
- package/components/CrossfilterRegistry/CrossfilterRegistry.js.map +0 -1
- package/components/Dashboard/Dashboard.d.ts +0 -6
- package/components/Dashboard/Dashboard.js +0 -46
- package/components/Dashboard/Dashboard.js.map +0 -1
- package/components/Dashboard/context.d.ts +0 -7
- package/components/Dashboard/context.js +0 -11
- package/components/Dashboard/context.js.map +0 -1
- package/components/Dashboard/reducer.d.ts +0 -5
- package/components/Dashboard/reducer.js.map +0 -1
- package/components/Dashboard/types.js.map +0 -1
- package/components/PdfExportButton/PdfDocument.js +0 -173
- package/components/PdfExportButton/PdfDocument.js.map +0 -1
- package/components/PdfExportButton/PdfExportButton.d.ts +0 -6
- package/components/PdfExportButton/PdfExportButton.js +0 -110
- package/components/PdfExportButton/PdfExportButton.js.map +0 -1
- package/components/PdfExportButton/styles.js +0 -146
- package/components/PdfExportButton/styles.js.map +0 -1
- package/components/TimeSeriesBarChart/TimeSeriesBarChart.d.ts +0 -6
- package/components/TimeSeriesBarChart/TimeSeriesBarChart.js.map +0 -1
- package/components/TimeSeriesBarChart/styles.js +0 -98
- package/components/TimeSeriesBarChart/styles.js.map +0 -1
- package/components/TimeSeriesBarChart/types.js +0 -22
- package/components/TimeSeriesBarChart/types.js.map +0 -1
- package/components/WithFilters/FilterableBarChart.js +0 -152
- package/components/WithFilters/FilterableBarChart.js.map +0 -1
- package/components/WithFilters/FilterableDataGrid.js +0 -51
- package/components/WithFilters/FilterableDataGrid.js.map +0 -1
- package/components/WithFilters/FilterablePieChart.js +0 -160
- package/components/WithFilters/FilterablePieChart.js.map +0 -1
- package/components/WithFilters/FilterableScatterPlot.js +0 -252
- package/components/WithFilters/FilterableScatterPlot.js.map +0 -1
- package/components/WithFilters/WithFilters.d.ts +0 -6
- package/components/WithFilters/WithFilters.js +0 -36
- package/components/WithFilters/WithFilters.js.map +0 -1
- package/hooks/useCategoricalChartAsListbox.js +0 -94
- package/hooks/useCategoricalChartAsListbox.js.map +0 -1
- package/utils/groupReducers/groupReduceCount.d.ts +0 -6
- package/utils/groupReducers/groupReduceCount.js +0 -5
- package/utils/groupReducers/groupReduceCount.js.map +0 -1
- package/utils/groupReducers/groupReduceSum.d.ts +0 -7
- package/utils/groupReducers/groupReduceSum.js +0 -5
- package/utils/groupReducers/groupReduceSum.js.map +0 -1
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { Comp } from '@redsift/design-system';
|
|
1
2
|
import { ComponentProps } from 'react';
|
|
2
3
|
|
|
3
4
|
/**
|
|
@@ -14,4 +15,6 @@ interface ChartEmptyStateProps extends ComponentProps<'div'> {
|
|
|
14
15
|
title?: string;
|
|
15
16
|
}
|
|
16
17
|
|
|
17
|
-
|
|
18
|
+
declare const ChartEmptyState: Comp<ChartEmptyStateProps, HTMLDivElement>;
|
|
19
|
+
|
|
20
|
+
export { ChartEmptyState as C, ChartEmptyStateProps as a };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ChartEmptyState.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
|
@@ -1,6 +1,37 @@
|
|
|
1
1
|
import React, { forwardRef } from 'react';
|
|
2
2
|
import { mdiRefresh } from '@redsift/icons';
|
|
3
|
-
import
|
|
3
|
+
import styled from 'styled-components';
|
|
4
|
+
import { Button } from '@redsift/design-system';
|
|
5
|
+
|
|
6
|
+
/**
|
|
7
|
+
* Component style.
|
|
8
|
+
*/
|
|
9
|
+
const StyledChartEmptyState = styled.div`
|
|
10
|
+
display: flex;
|
|
11
|
+
flex-direction: column;
|
|
12
|
+
justify-content: center;
|
|
13
|
+
align-items: center;
|
|
14
|
+
margin-top: 16px;
|
|
15
|
+
|
|
16
|
+
.redsift-chart-empty-state__title {
|
|
17
|
+
font-family: var(--redsift-typography-h4-font-family);
|
|
18
|
+
font-size: var(--redsift-typography-h4-font-size);
|
|
19
|
+
font-weight: var(--redsift-typography-h4-font-weight);
|
|
20
|
+
line-height: var(--redsift-typography-h4-line-height);
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
.redsift-chart-empty-state__subtitle {
|
|
24
|
+
font-family: var(--redsift-typography-body-font-family);
|
|
25
|
+
font-size: var(--redsift-typography-body-font-size);
|
|
26
|
+
font-weight: var(--redsift-typography-body-font-weight);
|
|
27
|
+
line-height: var(--redsift-typography-body-line-height);
|
|
28
|
+
margin-top: 8px;
|
|
29
|
+
text-align: center;
|
|
30
|
+
}
|
|
31
|
+
`;
|
|
32
|
+
const StyledResetButton = styled(Button)`
|
|
33
|
+
margin-top: 8px;
|
|
34
|
+
`;
|
|
4
35
|
|
|
5
36
|
const COMPONENT_NAME = 'ChartEmptyState';
|
|
6
37
|
const CLASSNAME = 'redsift-chart-empty-state';
|
|
@@ -119,5 +150,5 @@ const ChartEmptyState = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
119
150
|
ChartEmptyState.className = CLASSNAME;
|
|
120
151
|
ChartEmptyState.displayName = COMPONENT_NAME;
|
|
121
152
|
|
|
122
|
-
export { ChartEmptyState };
|
|
123
|
-
//# sourceMappingURL=
|
|
153
|
+
export { ChartEmptyState as C };
|
|
154
|
+
//# sourceMappingURL=ChartEmptyState2.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ChartEmptyState2.js","sources":["../../src/components/ChartEmptyState/styles.ts","../../src/components/ChartEmptyState/ChartEmptyState.tsx"],"sourcesContent":["import styled from 'styled-components';\nimport { Button } from '@redsift/design-system';\n\n/**\n * Component style.\n */\nexport const StyledChartEmptyState = styled.div`\n display: flex;\n flex-direction: column;\n justify-content: center;\n align-items: center;\n margin-top: 16px;\n\n .redsift-chart-empty-state__title {\n font-family: var(--redsift-typography-h4-font-family);\n font-size: var(--redsift-typography-h4-font-size);\n font-weight: var(--redsift-typography-h4-font-weight);\n line-height: var(--redsift-typography-h4-line-height);\n }\n\n .redsift-chart-empty-state__subtitle {\n font-family: var(--redsift-typography-body-font-family);\n font-size: var(--redsift-typography-body-font-size);\n font-weight: var(--redsift-typography-body-font-weight);\n line-height: var(--redsift-typography-body-line-height);\n margin-top: 8px;\n text-align: center;\n }\n`;\n\nexport const StyledResetButton = styled(Button)`\n margin-top: 8px;\n`;\n","import React, { forwardRef, RefObject } from 'react';\nimport { mdiRefresh } from '@redsift/icons';\nimport { Comp } from '@redsift/design-system';\n\nimport { ChartEmptyStateProps } from './types';\nimport { StyledChartEmptyState, StyledResetButton } from './styles';\n\nconst COMPONENT_NAME = 'ChartEmptyState';\nconst CLASSNAME = 'redsift-chart-empty-state';\n\nexport const ChartEmptyState: Comp<ChartEmptyStateProps, HTMLDivElement> = forwardRef((props, ref) => {\n const {\n onReset,\n title = 'No Data Available',\n subtitle = 'Please check the applied filters',\n resetLabel = 'Reset all filters',\n } = props;\n\n return (\n <StyledChartEmptyState ref={ref as RefObject<HTMLDivElement>} className=\"redsift-chart-empty-state\">\n <div className={`${ChartEmptyState.className}__img`}>\n <svg width=\"86\" height=\"86\" viewBox=\"0 0 86 86\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\n <path\n opacity=\"0.2\"\n d=\"M43 86C66.7482 86 86 66.7482 86 43C86 19.2518 66.7482 0 43 0C19.2518 0 0 19.2518 0 43C0 66.7482 19.2518 86 43 86Z\"\n fill=\"#4285F4\"\n />\n <path\n opacity=\"0.4\"\n d=\"M13.4479 45.9299C13.4479 44.8254 14.3434 43.9299 15.4479 43.9299H29.3785C30.4831 43.9299 31.3785 44.8254 31.3785 45.9299V60.0675H13.4479V45.9299Z\"\n fill=\"#4285F4\"\n />\n <path\n opacity=\"0.4\"\n d=\"M34.0681 27.9993C34.0681 26.8948 34.9636 25.9993 36.0681 25.9993H49.9987C51.1033 25.9993 51.9987 26.8948 51.9987 27.9993V60.0675H34.0681V27.9993Z\"\n fill=\"#4285F4\"\n />\n <path\n opacity=\"0.4\"\n d=\"M54.6883 53.1022C54.6883 51.9976 55.5837 51.1022 56.6883 51.1022H70.6189C71.7235 51.1022 72.6189 51.9976 72.6189 53.1022V60.0675H54.6883V53.1022Z\"\n fill=\"#4285F4\"\n />\n <line x1=\"10.3618\" y1=\"60.464\" x2=\"75.705\" y2=\"60.464\" stroke=\"#305AA2\" strokeLinecap=\"round\" />\n <path d=\"M48.7345 25.9993H46.9414L51.9987 28.9192V27.8839L48.7345 25.9993Z\" fill=\"#4285F4\" />\n <path d=\"M41.5622 25.9993L51.9987 32.0249V30.9896L43.3553 25.9993H41.5622Z\" fill=\"#4285F4\" />\n <path d=\"M36.183 25.9993L51.9987 35.1305V34.0953L37.9761 25.9993H36.183Z\" fill=\"#4285F4\" />\n <path\n d=\"M34.0771 27.622C34.0681 27.6758 34.0681 27.7296 34.0681 27.7924V27.8839L51.9987 38.2362V37.201L34.281 26.9716C34.1776 27.171 34.097 27.3834 34.0771 27.622Z\"\n fill=\"#4285F4\"\n />\n <path d=\"M34.0681 30.9896L51.9987 41.3418V40.3066L34.0681 29.9544V30.9896Z\" fill=\"#4285F4\" />\n <path d=\"M34.0681 34.0953L51.9987 44.4475V43.4123L34.0681 33.06V34.0953Z\" fill=\"#4285F4\" />\n <path d=\"M34.0681 37.2009L51.9987 47.5531V46.518L34.0681 36.1657V37.2009Z\" fill=\"#4285F4\" />\n <path d=\"M34.0681 40.3066L51.9987 50.6588V49.6236L34.0681 39.2714V40.3066Z\" fill=\"#4285F4\" />\n <path d=\"M34.0681 43.4123L51.9987 53.7645V52.7293L34.0681 42.377V43.4123Z\" fill=\"#4285F4\" />\n <path d=\"M34.0681 46.518L51.9987 56.8702V55.835L34.0681 45.4827V46.518Z\" fill=\"#4285F4\" />\n <path d=\"M34.0681 49.6236L51.9987 59.9759V58.9407L34.0681 48.5884V49.6236Z\" fill=\"#4285F4\" />\n <path d=\"M34.0681 52.7293L46.7782 60.0675H48.5712L34.0681 51.6941V52.7293Z\" fill=\"#4285F4\" />\n <path d=\"M34.0681 55.835L41.399 60.0675H43.192L34.0681 54.7997V55.835Z\" fill=\"#4285F4\" />\n <path d=\"M34.0681 58.9406L36.0198 60.0675H37.8129L34.0681 57.9054V58.9406Z\" fill=\"#4285F4\" />\n <circle\n opacity=\"0.6\"\n cx=\"50.5506\"\n cy=\"29.9304\"\n r=\"10.1549\"\n transform=\"rotate(-45 50.5506 29.9304)\"\n fill=\"white\"\n stroke=\"#305AA2\"\n strokeWidth=\"3\"\n />\n <circle\n cx=\"50.5506\"\n cy=\"29.9304\"\n r=\"10.1549\"\n transform=\"rotate(-45 50.5506 29.9304)\"\n stroke=\"#305AA2\"\n strokeWidth=\"3\"\n />\n <path\n d=\"M59.2186 36.4771L58.1579 35.4164L56.0366 37.5377L57.0973 38.5984L59.2186 36.4771ZM65.9725 47.4736C66.5582 48.0594 67.508 48.0594 68.0938 47.4736C68.6796 46.8878 68.6796 45.938 68.0938 45.3522L65.9725 47.4736ZM57.0973 38.5984L65.9725 47.4736L68.0938 45.3522L59.2186 36.4771L57.0973 38.5984Z\"\n fill=\"#305AA2\"\n />\n </svg>\n </div>\n <div className={`${ChartEmptyState.className}__title`}>{title}</div>\n <div className={`${ChartEmptyState.className}__subtitle`}>{subtitle}</div>\n {onReset ? (\n <StyledResetButton variant=\"unstyled\" leftIcon={mdiRefresh} onClick={onReset}>\n {resetLabel}\n </StyledResetButton>\n ) : null}\n </StyledChartEmptyState>\n );\n});\n\nChartEmptyState.className = CLASSNAME;\nChartEmptyState.displayName = COMPONENT_NAME;\n"],"names":["StyledChartEmptyState","styled","div","StyledResetButton","Button","COMPONENT_NAME","CLASSNAME","ChartEmptyState","forwardRef","props","ref","onReset","title","subtitle","resetLabel","React","createElement","className","width","height","viewBox","fill","xmlns","opacity","d","x1","y1","x2","y2","stroke","strokeLinecap","cx","cy","r","transform","strokeWidth","variant","leftIcon","mdiRefresh","onClick","displayName"],"mappings":";;;;;AAGA;AACA;AACA;AACO,MAAMA,qBAAqB,GAAGC,MAAM,CAACC,GAAI,CAAA;AAChD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC,CAAA;AAEM,MAAMC,iBAAiB,GAAGF,MAAM,CAACG,MAAM,CAAE,CAAA;AAChD;AACA,CAAC;;ACzBD,MAAMC,cAAc,GAAG,iBAAiB,CAAA;AACxC,MAAMC,SAAS,GAAG,2BAA2B,CAAA;AAEtC,MAAMC,eAA2D,gBAAGC,UAAU,CAAC,CAACC,KAAK,EAAEC,GAAG,KAAK;EACpG,MAAM;IACJC,OAAO;AACPC,IAAAA,KAAK,GAAG,mBAAmB;AAC3BC,IAAAA,QAAQ,GAAG,kCAAkC;AAC7CC,IAAAA,UAAU,GAAG,mBAAA;AACf,GAAC,GAAGL,KAAK,CAAA;AAET,EAAA,oBACEM,KAAA,CAAAC,aAAA,CAAChB,qBAAqB,EAAA;AAACU,IAAAA,GAAG,EAAEA,GAAiC;AAACO,IAAAA,SAAS,EAAC,2BAAA;GACtEF,eAAAA,KAAA,CAAAC,aAAA,CAAA,KAAA,EAAA;AAAKC,IAAAA,SAAS,EAAG,CAAA,EAAEV,eAAe,CAACU,SAAU,CAAA,KAAA,CAAA;GAC3CF,eA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AAA,SAAS,EAAG,CAAA,EAAEV,eAAe,CAACU,SAAU,CAAA,OAAA,CAAA;AAAS,GAAA,EAAEL,KAAW,CAAC,eACpEG,KAAA,CAAAC,aAAA,CAAA,KAAA,EAAA;AAAKC,IAAAA,SAAS,EAAG,CAAA,EAAEV,eAAe,CAACU,SAAU,CAAA,UAAA,CAAA;GAAcJ,EAAAA,QAAc,CAAC,EACzEF,OAAO,gBACNI,KAAA,CAAAC,aAAA,CAACb,iBAAiB,EAAA;AAACiC,IAAAA,OAAO,EAAC,UAAU;AAACC,IAAAA,QAAQ,EAAEC,UAAW;AAACC,IAAAA,OAAO,EAAE5B,OAAAA;AAAQ,GAAA,EAC1EG,UACgB,CAAC,GAClB,IACiB,CAAC,CAAA;AAE5B,CAAC,EAAC;AAEFP,eAAe,CAACU,SAAS,GAAGX,SAAS,CAAA;AACrCC,eAAe,CAACiC,WAAW,GAAGnC,cAAc;;;;"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CrossfilterRegistry.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CrossfilterRegistry2.js","sources":["../../src/components/CrossfilterRegistry/CrossfilterRegistry.ts"],"sourcesContent":["import { JSONArray, TNdx } from '../../types';\nimport crossfilter from 'crossfilter2';\n\nexport const CrossfilterRegistry = (() => {\n const instances = new WeakMap<JSONArray, TNdx>();\n\n const get = (data: JSONArray): TNdx => {\n let instance = instances.get(data);\n\n if (!instance) {\n instance = crossfilter(data);\n instances.set(data, instance);\n }\n\n return instance;\n };\n\n const remove = (data: JSONArray): void => {\n instances.delete(data);\n };\n\n return {\n get,\n remove,\n };\n})();\n"],"names":["CrossfilterRegistry","instances","WeakMap","get","data","instance","crossfilter","set","remove","delete"],"mappings":";;AAGaA,MAAAA,mBAAmB,GAAG,CAAC,MAAM;AACxC,EAAA,MAAMC,SAAS,GAAG,IAAIC,OAAO,EAAmB,CAAA;EAEhD,MAAMC,GAAG,GAAIC,IAAe,IAAW;AACrC,IAAA,IAAIC,QAAQ,GAAGJ,SAAS,CAACE,GAAG,CAACC,IAAI,CAAC,CAAA;IAElC,IAAI,CAACC,QAAQ,EAAE;AACbA,MAAAA,QAAQ,GAAGC,WAAW,CAACF,IAAI,CAAC,CAAA;AAC5BH,MAAAA,SAAS,CAACM,GAAG,CAACH,IAAI,EAAEC,QAAQ,CAAC,CAAA;AAC/B,KAAA;AAEA,IAAA,OAAOA,QAAQ,CAAA;GAChB,CAAA;EAED,MAAMG,MAAM,GAAIJ,IAAe,IAAW;AACxCH,IAAAA,SAAS,CAACQ,MAAM,CAACL,IAAI,CAAC,CAAA;GACvB,CAAA;EAED,OAAO;IACLD,GAAG;AACHK,IAAAA,MAAAA;GACD,CAAA;AACH,CAAC;;;;"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
export { D as Dashboard, a as DashboardContext, c as DashboardContextProps, g as DashboardProps, b as DashboardReducer, f as DashboardReducerAction, e as DashboardReducerActionType, d as DashboardReducerState, i as initialState } from './reducer.js';
|
|
2
|
+
import '@redsift/design-system';
|
|
3
|
+
import 'react';
|
|
4
|
+
import '@redsift/table';
|
|
5
|
+
import '@mui/x-data-grid-pro';
|
|
6
|
+
import './types.js';
|
|
7
|
+
import 'crossfilter2';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Dashboard.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;"}
|
|
@@ -1,5 +1,9 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import { _ as _objectSpread2, a as _objectWithoutProperties, b as _extends, D as DashboardContext } from './context.js';
|
|
2
|
+
import React, { forwardRef, useRef, useState, useReducer, useMemo } from 'react';
|
|
3
|
+
import classNames from 'classnames';
|
|
4
|
+
import { useGridApiRef } from '@mui/x-data-grid-pro';
|
|
5
|
+
import { D as DashboardReducerActionType } from './types.js';
|
|
6
|
+
import { C as CrossfilterRegistry } from './CrossfilterRegistry2.js';
|
|
3
7
|
|
|
4
8
|
const areEquals = (tableFilter, actionFilter) => {
|
|
5
9
|
return tableFilter.columnField === actionFilter.columnField && tableFilter.operatorValue === actionFilter.operatorValue;
|
|
@@ -57,5 +61,41 @@ const DashboardReducer = (state, action) => {
|
|
|
57
61
|
}
|
|
58
62
|
};
|
|
59
63
|
|
|
60
|
-
|
|
61
|
-
|
|
64
|
+
const _excluded = ["children", "className", "data", "dataGridApiRef"];
|
|
65
|
+
const COMPONENT_NAME = 'Dashboard';
|
|
66
|
+
const CLASSNAME = 'redsift-dashboard-container';
|
|
67
|
+
const Dashboard = /*#__PURE__*/forwardRef((props, ref) => {
|
|
68
|
+
const {
|
|
69
|
+
children,
|
|
70
|
+
className,
|
|
71
|
+
data,
|
|
72
|
+
dataGridApiRef: propsDataGridApiRef
|
|
73
|
+
} = props,
|
|
74
|
+
forwardedProps = _objectWithoutProperties(props, _excluded);
|
|
75
|
+
const providerRef = ref || useRef();
|
|
76
|
+
const dataGridApiRef = propsDataGridApiRef || useGridApiRef();
|
|
77
|
+
const [updateContext, setUpdateContext] = useState(false);
|
|
78
|
+
const [state, dispatch] = useReducer(DashboardReducer, {
|
|
79
|
+
tableFilters: []
|
|
80
|
+
});
|
|
81
|
+
const value = useMemo(() => ({
|
|
82
|
+
dashboardRef: providerRef,
|
|
83
|
+
data,
|
|
84
|
+
dataGridApiRef,
|
|
85
|
+
dispatch,
|
|
86
|
+
ndx: CrossfilterRegistry.get(data),
|
|
87
|
+
state,
|
|
88
|
+
toggleUpdateContext: () => setUpdateContext(!updateContext)
|
|
89
|
+
}), [data, state, updateContext]);
|
|
90
|
+
return /*#__PURE__*/React.createElement("div", _extends({}, forwardedProps, {
|
|
91
|
+
className: classNames(Dashboard.className, className),
|
|
92
|
+
ref: providerRef
|
|
93
|
+
}), /*#__PURE__*/React.createElement(DashboardContext.Provider, {
|
|
94
|
+
value: value
|
|
95
|
+
}, children));
|
|
96
|
+
});
|
|
97
|
+
Dashboard.className = CLASSNAME;
|
|
98
|
+
Dashboard.displayName = COMPONENT_NAME;
|
|
99
|
+
|
|
100
|
+
export { Dashboard as D, DashboardReducer as a };
|
|
101
|
+
//# sourceMappingURL=Dashboard2.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Dashboard2.js","sources":["../../src/components/Dashboard/reducer.ts","../../src/components/Dashboard/Dashboard.tsx"],"sourcesContent":["import { GridFilterItem } from '@redsift/table';\nimport {\n DashboardReducerState,\n DashboardReducerAction,\n DashboardReducerActionType,\n} from './types';\n\nconst areEquals = (\n tableFilter: GridFilterItem,\n actionFilter: GridFilterItem\n) => {\n return (\n tableFilter.columnField === actionFilter.columnField &&\n tableFilter.operatorValue === actionFilter.operatorValue\n );\n};\n\nconst addOrUpdateFilter = (\n oldFilters: GridFilterItem[],\n newFilter: GridFilterItem\n) => {\n if (oldFilters.find((f) => areEquals(f, newFilter))) {\n return oldFilters.map((f) => {\n if (areEquals(f, newFilter)) {\n return newFilter;\n }\n return f;\n });\n } else {\n return [...oldFilters, newFilter];\n }\n};\n\nconst addOrUpdateFilters = (\n oldFilters: GridFilterItem[],\n newFilters: GridFilterItem[]\n) => {\n let updatedFilters = oldFilters;\n for (let i = 0; i < newFilters.length; i++) {\n updatedFilters = addOrUpdateFilter(updatedFilters, newFilters[i]);\n }\n return updatedFilters;\n};\n\nconst replaceFilters = (newFilters: GridFilterItem | GridFilterItem[]) => {\n return Array.isArray(newFilters) ? newFilters : [newFilters];\n};\n\nconst removeFilter = (\n oldFilters: GridFilterItem[],\n newFilter: GridFilterItem\n) => {\n return oldFilters.filter((f) => !areEquals(f, newFilter));\n};\n\nconst removeAllFilters = () => {\n return [] as GridFilterItem[];\n};\n\nexport const DashboardReducer = (\n state: DashboardReducerState,\n action: DashboardReducerAction\n): DashboardReducerState => {\n switch (action.type) {\n case DashboardReducerActionType.ResetFilter:\n return {\n ...state,\n tableFilters: removeFilter(\n state.tableFilters,\n action.filter as GridFilterItem\n ),\n };\n case DashboardReducerActionType.ResetFilters:\n return { ...state, tableFilters: removeAllFilters() };\n case DashboardReducerActionType.FilterTable:\n return {\n ...state,\n tableFilters: addOrUpdateFilter(\n state.tableFilters,\n action.filter as GridFilterItem\n ),\n };\n\n case DashboardReducerActionType.FilterTableBatch:\n return {\n ...state,\n tableFilters: replaceFilters(action.filter!),\n };\n\n case DashboardReducerActionType.AppendFilterTableBatch:\n return {\n ...state,\n tableFilters: addOrUpdateFilters(\n state.tableFilters,\n action.filter as GridFilterItem[]\n ),\n };\n }\n};\n","import React, { forwardRef, RefObject, useMemo, useReducer, useRef, useState } from 'react';\nimport classNames from 'classnames';\nimport { useGridApiRef } from '@mui/x-data-grid-pro';\n\nimport { Comp } from '@redsift/design-system';\nimport { DashboardContext } from './context';\nimport { DashboardContextProps, DashboardProps } from './types';\nimport { DashboardReducer } from './reducer';\nimport { CrossfilterRegistry } from '../CrossfilterRegistry';\n\nconst COMPONENT_NAME = 'Dashboard';\nconst CLASSNAME = 'redsift-dashboard-container';\n\nexport const Dashboard: Comp<DashboardProps, HTMLDivElement> = forwardRef((props, ref) => {\n const { children, className, data, dataGridApiRef: propsDataGridApiRef, ...forwardedProps } = props;\n\n const providerRef = ref || useRef<HTMLDivElement>();\n const dataGridApiRef = propsDataGridApiRef || useGridApiRef();\n const [updateContext, setUpdateContext] = useState(false);\n\n const [state, dispatch] = useReducer(DashboardReducer, {\n tableFilters: [],\n });\n\n const value = useMemo<DashboardContextProps>(\n () => ({\n dashboardRef: providerRef as RefObject<HTMLDivElement>,\n data,\n dataGridApiRef,\n dispatch,\n ndx: CrossfilterRegistry.get(data),\n state,\n toggleUpdateContext: () => setUpdateContext(!updateContext),\n }),\n [data, state, updateContext]\n );\n\n return (\n <div\n {...forwardedProps}\n className={classNames(Dashboard.className, className)}\n ref={providerRef as RefObject<HTMLDivElement>}\n >\n <DashboardContext.Provider value={value as DashboardContextProps}>{children}</DashboardContext.Provider>\n </div>\n );\n});\nDashboard.className = CLASSNAME;\nDashboard.displayName = COMPONENT_NAME;\n"],"names":["areEquals","tableFilter","actionFilter","columnField","operatorValue","addOrUpdateFilter","oldFilters","newFilter","find","f","map","addOrUpdateFilters","newFilters","updatedFilters","i","length","replaceFilters","Array","isArray","removeFilter","filter","removeAllFilters","DashboardReducer","state","action","type","DashboardReducerActionType","ResetFilter","_objectSpread","tableFilters","ResetFilters","FilterTable","FilterTableBatch","AppendFilterTableBatch","COMPONENT_NAME","CLASSNAME","Dashboard","forwardRef","props","ref","children","className","data","dataGridApiRef","propsDataGridApiRef","forwardedProps","_objectWithoutProperties","_excluded","providerRef","useRef","useGridApiRef","updateContext","setUpdateContext","useState","dispatch","useReducer","value","useMemo","dashboardRef","ndx","CrossfilterRegistry","get","toggleUpdateContext","React","createElement","_extends","classNames","DashboardContext","Provider","displayName"],"mappings":";;;;;;;AAOA,MAAMA,SAAS,GAAGA,CAChBC,WAA2B,EAC3BC,YAA4B,KACzB;AACH,EAAA,OACED,WAAW,CAACE,WAAW,KAAKD,YAAY,CAACC,WAAW,IACpDF,WAAW,CAACG,aAAa,KAAKF,YAAY,CAACE,aAAa,CAAA;AAE5D,CAAC,CAAA;AAED,MAAMC,iBAAiB,GAAGA,CACxBC,UAA4B,EAC5BC,SAAyB,KACtB;AACH,EAAA,IAAID,UAAU,CAACE,IAAI,CAAEC,CAAC,IAAKT,SAAS,CAACS,CAAC,EAAEF,SAAS,CAAC,CAAC,EAAE;AACnD,IAAA,OAAOD,UAAU,CAACI,GAAG,CAAED,CAAC,IAAK;AAC3B,MAAA,IAAIT,SAAS,CAACS,CAAC,EAAEF,SAAS,CAAC,EAAE;AAC3B,QAAA,OAAOA,SAAS,CAAA;AAClB,OAAA;AACA,MAAA,OAAOE,CAAC,CAAA;AACV,KAAC,CAAC,CAAA;AACJ,GAAC,MAAM;AACL,IAAA,OAAO,CAAC,GAAGH,UAAU,EAAEC,SAAS,CAAC,CAAA;AACnC,GAAA;AACF,CAAC,CAAA;AAED,M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AAa,EAAEC,gBAAgB,CAAC,GAAGC,QAAQ,CAAC,KAAK,CAAC,CAAA;EAEzD,MAAM,CAAC9B,KAAK,EAAE+B,QAAQ,CAAC,GAAGC,UAAU,CAACjC,gBAAgB,EAAE;AACrDO,IAAAA,YAAY,EAAE,EAAA;AAChB,GAAC,CAAC,CAAA;AAEF,EAAA,MAAM2B,KAAK,GAAGC,OAAO,CACnB,OAAO;AACLC,IAAAA,YAAY,EAAEV,WAAwC;IACtDN,IAAI;IACJC,cAAc;IACdW,QAAQ;AACRK,IAAAA,GAAG,EAAEC,mBAAmB,CAACC,GAAG,CAACnB,IAAI,CAAC;IAClCnB,KAAK;AACLuC,IAAAA,mBAAmB,EAAEA,MAAMV,gBAAgB,CAAC,CAACD,aAAa,CAAA;GAC3D,CAAC,EACF,CAACT,IAAI,EAAEnB,KAAK,EAAE4B,aAAa,CAC7B,CAAC,CAAA;AAED,EAAA,oBACEY,KAAA,CAAAC,aAAA,CAAAC,KAAAA,EAAAA,QAAA,KACMpB,cAAc,EAAA;IAClBJ,SAAS,EAAEyB,UAAU,CAAC9B,SAAS,CAACK,SAAS,EAAEA,SAAS,CAAE;AACtDF,IAAAA,GAAG,EAAES,WAAAA;AAAyC,GAAA,CAAA,eAE9Ce,KAAA,CAAAC,aAAA,CAACG,gBAAgB,CAACC,QAAQ,EAAA;AAACZ,IAAAA,KAAK,EAAEA,KAAAA;GAAiChB,EAAAA,QAAoC,CACpG,CAAC,CAAA;AAEV,CAAC,EAAC;AACFJ,SAAS,CAACK,SAAS,GAAGN,SAAS,CAAA;AAC/BC,SAAS,CAACiC,WAAW,GAAGnC,cAAc;;;;"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ButtonProps } from '@redsift/design-system';
|
|
1
|
+
import { ButtonProps, Comp } from '@redsift/design-system';
|
|
2
2
|
import { RefObject } from 'react';
|
|
3
3
|
|
|
4
4
|
interface LocaleText {
|
|
@@ -21,4 +21,6 @@ interface PdfExportButtonProps extends ButtonProps {
|
|
|
21
21
|
primaryColor?: string;
|
|
22
22
|
}
|
|
23
23
|
|
|
24
|
-
|
|
24
|
+
declare const PdfExportButton: Comp<PdfExportButtonProps, HTMLButtonElement>;
|
|
25
|
+
|
|
26
|
+
export { PdfExportButton as P };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"PdfExportButton.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|