@redsift/dashboard 11.5.0-muiv5 → 11.6.0-alpha.0

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.
@@ -0,0 +1,2 @@
1
+ export { C as ChartEmptyState } from './ChartEmptyState2.js';
2
+ //# sourceMappingURL=ChartEmptyState.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ChartEmptyState.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
@@ -0,0 +1,154 @@
1
+ import React, { forwardRef } from 'react';
2
+ import { mdiRefresh } from '@redsift/icons';
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
+ `;
35
+
36
+ const COMPONENT_NAME = 'ChartEmptyState';
37
+ const CLASSNAME = 'redsift-chart-empty-state';
38
+ const ChartEmptyState = /*#__PURE__*/forwardRef((props, ref) => {
39
+ const {
40
+ onReset,
41
+ title = 'No Data Available',
42
+ subtitle = 'Please check the applied filters',
43
+ resetLabel = 'Reset all filters'
44
+ } = props;
45
+ return /*#__PURE__*/React.createElement(StyledChartEmptyState, {
46
+ ref: ref,
47
+ className: "redsift-chart-empty-state"
48
+ }, /*#__PURE__*/React.createElement("div", {
49
+ className: `${ChartEmptyState.className}__img`
50
+ }, /*#__PURE__*/React.createElement("svg", {
51
+ width: "86",
52
+ height: "86",
53
+ viewBox: "0 0 86 86",
54
+ fill: "none",
55
+ xmlns: "http://www.w3.org/2000/svg"
56
+ }, /*#__PURE__*/React.createElement("path", {
57
+ opacity: "0.2",
58
+ 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",
59
+ fill: "#4285F4"
60
+ }), /*#__PURE__*/React.createElement("path", {
61
+ opacity: "0.4",
62
+ 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",
63
+ fill: "#4285F4"
64
+ }), /*#__PURE__*/React.createElement("path", {
65
+ opacity: "0.4",
66
+ 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",
67
+ fill: "#4285F4"
68
+ }), /*#__PURE__*/React.createElement("path", {
69
+ opacity: "0.4",
70
+ 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",
71
+ fill: "#4285F4"
72
+ }), /*#__PURE__*/React.createElement("line", {
73
+ x1: "10.3618",
74
+ y1: "60.464",
75
+ x2: "75.705",
76
+ y2: "60.464",
77
+ stroke: "#305AA2",
78
+ strokeLinecap: "round"
79
+ }), /*#__PURE__*/React.createElement("path", {
80
+ d: "M48.7345 25.9993H46.9414L51.9987 28.9192V27.8839L48.7345 25.9993Z",
81
+ fill: "#4285F4"
82
+ }), /*#__PURE__*/React.createElement("path", {
83
+ d: "M41.5622 25.9993L51.9987 32.0249V30.9896L43.3553 25.9993H41.5622Z",
84
+ fill: "#4285F4"
85
+ }), /*#__PURE__*/React.createElement("path", {
86
+ d: "M36.183 25.9993L51.9987 35.1305V34.0953L37.9761 25.9993H36.183Z",
87
+ fill: "#4285F4"
88
+ }), /*#__PURE__*/React.createElement("path", {
89
+ 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",
90
+ fill: "#4285F4"
91
+ }), /*#__PURE__*/React.createElement("path", {
92
+ d: "M34.0681 30.9896L51.9987 41.3418V40.3066L34.0681 29.9544V30.9896Z",
93
+ fill: "#4285F4"
94
+ }), /*#__PURE__*/React.createElement("path", {
95
+ d: "M34.0681 34.0953L51.9987 44.4475V43.4123L34.0681 33.06V34.0953Z",
96
+ fill: "#4285F4"
97
+ }), /*#__PURE__*/React.createElement("path", {
98
+ d: "M34.0681 37.2009L51.9987 47.5531V46.518L34.0681 36.1657V37.2009Z",
99
+ fill: "#4285F4"
100
+ }), /*#__PURE__*/React.createElement("path", {
101
+ d: "M34.0681 40.3066L51.9987 50.6588V49.6236L34.0681 39.2714V40.3066Z",
102
+ fill: "#4285F4"
103
+ }), /*#__PURE__*/React.createElement("path", {
104
+ d: "M34.0681 43.4123L51.9987 53.7645V52.7293L34.0681 42.377V43.4123Z",
105
+ fill: "#4285F4"
106
+ }), /*#__PURE__*/React.createElement("path", {
107
+ d: "M34.0681 46.518L51.9987 56.8702V55.835L34.0681 45.4827V46.518Z",
108
+ fill: "#4285F4"
109
+ }), /*#__PURE__*/React.createElement("path", {
110
+ d: "M34.0681 49.6236L51.9987 59.9759V58.9407L34.0681 48.5884V49.6236Z",
111
+ fill: "#4285F4"
112
+ }), /*#__PURE__*/React.createElement("path", {
113
+ d: "M34.0681 52.7293L46.7782 60.0675H48.5712L34.0681 51.6941V52.7293Z",
114
+ fill: "#4285F4"
115
+ }), /*#__PURE__*/React.createElement("path", {
116
+ d: "M34.0681 55.835L41.399 60.0675H43.192L34.0681 54.7997V55.835Z",
117
+ fill: "#4285F4"
118
+ }), /*#__PURE__*/React.createElement("path", {
119
+ d: "M34.0681 58.9406L36.0198 60.0675H37.8129L34.0681 57.9054V58.9406Z",
120
+ fill: "#4285F4"
121
+ }), /*#__PURE__*/React.createElement("circle", {
122
+ opacity: "0.6",
123
+ cx: "50.5506",
124
+ cy: "29.9304",
125
+ r: "10.1549",
126
+ transform: "rotate(-45 50.5506 29.9304)",
127
+ fill: "white",
128
+ stroke: "#305AA2",
129
+ strokeWidth: "3"
130
+ }), /*#__PURE__*/React.createElement("circle", {
131
+ cx: "50.5506",
132
+ cy: "29.9304",
133
+ r: "10.1549",
134
+ transform: "rotate(-45 50.5506 29.9304)",
135
+ stroke: "#305AA2",
136
+ strokeWidth: "3"
137
+ }), /*#__PURE__*/React.createElement("path", {
138
+ 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",
139
+ fill: "#305AA2"
140
+ }))), /*#__PURE__*/React.createElement("div", {
141
+ className: `${ChartEmptyState.className}__title`
142
+ }, title), /*#__PURE__*/React.createElement("div", {
143
+ className: `${ChartEmptyState.className}__subtitle`
144
+ }, subtitle), onReset ? /*#__PURE__*/React.createElement(StyledResetButton, {
145
+ variant: "unstyled",
146
+ leftIcon: mdiRefresh,
147
+ onClick: onReset
148
+ }, resetLabel) : null);
149
+ });
150
+ ChartEmptyState.className = CLASSNAME;
151
+ ChartEmptyState.displayName = COMPONENT_NAME;
152
+
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,eAAAA,KAAA,CAAAC,aAAA,CAAA,KAAA,EAAA;AAAKE,IAAAA,KAAK,EAAC,IAAI;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AA,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,2 @@
1
+ export { C as CrossfilterRegistry } from './CrossfilterRegistry2.js';
2
+ //# sourceMappingURL=CrossfilterRegistry.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"CrossfilterRegistry.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
@@ -0,0 +1,23 @@
1
+ import crossfilter from 'crossfilter2';
2
+
3
+ const CrossfilterRegistry = (() => {
4
+ const instances = new WeakMap();
5
+ const get = data => {
6
+ let instance = instances.get(data);
7
+ if (!instance) {
8
+ instance = crossfilter(data);
9
+ instances.set(data, instance);
10
+ }
11
+ return instance;
12
+ };
13
+ const remove = data => {
14
+ instances.delete(data);
15
+ };
16
+ return {
17
+ get,
18
+ remove
19
+ };
20
+ })();
21
+
22
+ export { CrossfilterRegistry as C };
23
+ //# sourceMappingURL=CrossfilterRegistry2.js.map
@@ -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,4 @@
1
+ export { D as Dashboard, a as DashboardReducer } from './Dashboard2.js';
2
+ export { D as DashboardContext, i as initialState } from './context.js';
3
+ export { D as DashboardReducerActionType } from './types.js';
4
+ //# sourceMappingURL=Dashboard.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Dashboard.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;"}
@@ -0,0 +1,101 @@
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';
7
+
8
+ const areEquals = (tableFilter, actionFilter) => {
9
+ return tableFilter.field === actionFilter.field && tableFilter.operator === actionFilter.operator;
10
+ };
11
+ const addOrUpdateFilter = (oldFilters, newFilter) => {
12
+ if (oldFilters.find(f => areEquals(f, newFilter))) {
13
+ return oldFilters.map(f => {
14
+ if (areEquals(f, newFilter)) {
15
+ return newFilter;
16
+ }
17
+ return f;
18
+ });
19
+ } else {
20
+ return [...oldFilters, newFilter];
21
+ }
22
+ };
23
+ const addOrUpdateFilters = (oldFilters, newFilters) => {
24
+ let updatedFilters = oldFilters;
25
+ for (let i = 0; i < newFilters.length; i++) {
26
+ updatedFilters = addOrUpdateFilter(updatedFilters, newFilters[i]);
27
+ }
28
+ return updatedFilters;
29
+ };
30
+ const replaceFilters = newFilters => {
31
+ return Array.isArray(newFilters) ? newFilters : [newFilters];
32
+ };
33
+ const removeFilter = (oldFilters, newFilter) => {
34
+ return oldFilters.filter(f => !areEquals(f, newFilter));
35
+ };
36
+ const removeAllFilters = () => {
37
+ return [];
38
+ };
39
+ const DashboardReducer = (state, action) => {
40
+ switch (action.type) {
41
+ case DashboardReducerActionType.ResetFilter:
42
+ return _objectSpread2(_objectSpread2({}, state), {}, {
43
+ tableFilters: removeFilter(state.tableFilters, action.filter)
44
+ });
45
+ case DashboardReducerActionType.ResetFilters:
46
+ return _objectSpread2(_objectSpread2({}, state), {}, {
47
+ tableFilters: removeAllFilters()
48
+ });
49
+ case DashboardReducerActionType.FilterTable:
50
+ return _objectSpread2(_objectSpread2({}, state), {}, {
51
+ tableFilters: addOrUpdateFilter(state.tableFilters, action.filter)
52
+ });
53
+ case DashboardReducerActionType.FilterTableBatch:
54
+ return _objectSpread2(_objectSpread2({}, state), {}, {
55
+ tableFilters: replaceFilters(action.filter)
56
+ });
57
+ case DashboardReducerActionType.AppendFilterTableBatch:
58
+ return _objectSpread2(_objectSpread2({}, state), {}, {
59
+ tableFilters: addOrUpdateFilters(state.tableFilters, action.filter)
60
+ });
61
+ }
62
+ };
63
+
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 { DashboardReducerState, DashboardReducerAction, DashboardReducerActionType } from './types';\n\nconst areEquals = (tableFilter: GridFilterItem, actionFilter: GridFilterItem) => {\n return tableFilter.field === actionFilter.field && tableFilter.operator === actionFilter.operator;\n};\n\nconst addOrUpdateFilter = (oldFilters: GridFilterItem[], newFilter: GridFilterItem) => {\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 = (oldFilters: GridFilterItem[], newFilters: GridFilterItem[]) => {\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 = (oldFilters: GridFilterItem[], newFilter: GridFilterItem) => {\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(state.tableFilters, action.filter as GridFilterItem),\n };\n case DashboardReducerActionType.ResetFilters:\n return { ...state, tableFilters: removeAllFilters() };\n case DashboardReducerActionType.FilterTable:\n return {\n ...state,\n tableFilters: addOrUpdateFilter(state.tableFilters, action.filter as GridFilterItem),\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(state.tableFilters, action.filter as GridFilterItem[]),\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","field","operator","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","Dash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AACT,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;;;;"}
@@ -0,0 +1,2 @@
1
+ export { P as PdfExportButton } from './PdfExportButton2.js';
2
+ //# sourceMappingURL=PdfExportButton.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"PdfExportButton.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}