@m4l/gclick 0.4.7 → 0.4.8-beta-feature-671-shared-reports-viewer-mf.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.
- package/components/ReportsViewer/ReportsViewer.d.ts.map +1 -1
- package/components/ReportsViewer/ReportsViewer.js +19 -8
- package/components/ReportsViewer/contexts/ReportsViewerContext/index.js +14 -14
- package/components/ReportsViewer/contexts/ReportsViewerContext/types.d.ts +5 -1
- package/components/ReportsViewer/contexts/ReportsViewerContext/types.d.ts.map +1 -1
- package/components/ReportsViewer/helpers/flattenAndTransformRows/index.js +9 -9
- package/components/ReportsViewer/helpers/parseDataGridSection/index.d.ts.map +1 -1
- package/components/ReportsViewer/helpers/parseDataGridSection/index.js +70 -42
- package/components/ReportsViewer/helpers/parseTreeDataGridSection/index.d.ts.map +1 -1
- package/components/ReportsViewer/helpers/parseTreeDataGridSection/index.js +54 -51
- package/components/ReportsViewer/helpers/transformRow/index.d.ts +6 -1
- package/components/ReportsViewer/helpers/transformRow/index.d.ts.map +1 -1
- package/components/ReportsViewer/helpers/transformRow/index.js +37 -9
- package/components/ReportsViewer/hooks/useReportSheetContentFetch/useReportSheetContentFetch.d.ts.map +1 -1
- package/components/ReportsViewer/hooks/useReportSheetContentFetch/useReportSheetContentFetch.js +33 -32
- package/components/ReportsViewer/hooks/useReportStructureFetch/useReportStructureFetch.d.ts.map +1 -1
- package/components/ReportsViewer/hooks/useReportStructureFetch/useReportStructureFetch.js +26 -26
- package/components/ReportsViewer/index.d.ts +1 -0
- package/components/ReportsViewer/index.d.ts.map +1 -1
- package/components/ReportsViewer/subcomponents/SectionRenderer/DataGridSectionRenderer/DataGridSectionRenderer.js +5 -5
- package/components/ReportsViewer/subcomponents/SectionRenderer/PropertyValuesSectionRenderer/PropertyValuesSectionRenderer.d.ts.map +1 -1
- package/components/ReportsViewer/subcomponents/SectionRenderer/PropertyValuesSectionRenderer/PropertyValuesSectionRenderer.js +16 -16
- package/components/ReportsViewer/types.d.ts +69 -6
- package/components/ReportsViewer/types.d.ts.map +1 -1
- package/package.json +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ReportsViewer.d.ts","sourceRoot":"","sources":["../../../../../../packages/gclick/src/components/ReportsViewer/ReportsViewer.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,kBAAkB,EAAE,MAAM,SAAS,CAAC;AAO7C;;;;;;;;;;GAUG;AACH,eAAO,MAAM,aAAa,+
|
|
1
|
+
{"version":3,"file":"ReportsViewer.d.ts","sourceRoot":"","sources":["../../../../../../packages/gclick/src/components/ReportsViewer/ReportsViewer.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,kBAAkB,EAAE,MAAM,SAAS,CAAC;AAO7C;;;;;;;;;;GAUG;AACH,eAAO,MAAM,aAAa,+GAexB,CAAC"}
|
|
@@ -1,12 +1,23 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import { forwardRef as
|
|
3
|
-
import { ReportsViewerProvider as
|
|
1
|
+
import { jsx as e } from "@emotion/react/jsx-runtime";
|
|
2
|
+
import { forwardRef as f } from "react";
|
|
3
|
+
import { ReportsViewerProvider as c } from "./contexts/ReportsViewerContext/index.js";
|
|
4
4
|
import { ReportsViewerInner as d } from "./subcomponents/ReportsViewerInner/ReportsViewerInner.js";
|
|
5
|
-
const
|
|
6
|
-
const { endpoint: r, onLoad:
|
|
7
|
-
return /* @__PURE__ */
|
|
5
|
+
const w = f((o, t) => {
|
|
6
|
+
const { endpoint: r, onLoad: n, onError: i, fetchStructure: p, fetchSheetContent: s, ...m } = o;
|
|
7
|
+
return /* @__PURE__ */ e(
|
|
8
|
+
c,
|
|
9
|
+
{
|
|
10
|
+
endpoint: r,
|
|
11
|
+
onLoad: n,
|
|
12
|
+
onError: i,
|
|
13
|
+
fetchStructure: p,
|
|
14
|
+
fetchSheetContent: s,
|
|
15
|
+
children: /* @__PURE__ */ e(d, { ...m, ref: t })
|
|
16
|
+
},
|
|
17
|
+
r
|
|
18
|
+
);
|
|
8
19
|
});
|
|
9
|
-
|
|
20
|
+
w.displayName = "ReportsViewer";
|
|
10
21
|
export {
|
|
11
|
-
|
|
22
|
+
w as ReportsViewer
|
|
12
23
|
};
|
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import { useRef as
|
|
3
|
-
import { createReportsViewerStore as
|
|
4
|
-
import { ReportStructureDataProvider as
|
|
5
|
-
const
|
|
6
|
-
function
|
|
7
|
-
const { endpoint: r, onLoad:
|
|
8
|
-
e.current || (e.current =
|
|
9
|
-
const
|
|
10
|
-
() => ({ store:
|
|
11
|
-
[
|
|
1
|
+
import { jsx as u } from "@emotion/react/jsx-runtime";
|
|
2
|
+
import { useRef as m, useMemo as d, createContext as l } from "react";
|
|
3
|
+
import { createReportsViewerStore as a } from "./store.js";
|
|
4
|
+
import { ReportStructureDataProvider as R } from "../ReportStructureDataContext/ReportStructureDataContext.js";
|
|
5
|
+
const h = l(null);
|
|
6
|
+
function C(s) {
|
|
7
|
+
const { endpoint: r, onLoad: t, onError: o, fetchStructure: n, fetchSheetContent: c, children: f } = s, e = m(null);
|
|
8
|
+
e.current || (e.current = a({ endpoint: r }));
|
|
9
|
+
const i = e.current, p = d(
|
|
10
|
+
() => ({ store: i, endpoint: r, onLoad: t, onError: o, fetchStructure: n, fetchSheetContent: c }),
|
|
11
|
+
[i, r, t, o, n, c]
|
|
12
12
|
);
|
|
13
|
-
return /* @__PURE__ */
|
|
13
|
+
return /* @__PURE__ */ u(h.Provider, { value: p, children: /* @__PURE__ */ u(R, { children: f }) });
|
|
14
14
|
}
|
|
15
15
|
export {
|
|
16
|
-
|
|
17
|
-
|
|
16
|
+
h as ReportsViewerContext,
|
|
17
|
+
C as ReportsViewerProvider
|
|
18
18
|
};
|
|
@@ -1,10 +1,12 @@
|
|
|
1
1
|
import { ReactNode } from 'react';
|
|
2
2
|
import { StoreApi } from 'zustand';
|
|
3
|
-
import { ReportStructureResponse, ReportSheetStoreValue } from '../../types';
|
|
3
|
+
import { ReportStructureResponse, ReportSheetStoreValue, ReportsViewerStructureFetcher, ReportsViewerSheetContentFetcher } from '../../types';
|
|
4
4
|
export interface ReportsViewerProviderProps {
|
|
5
5
|
endpoint: string;
|
|
6
6
|
onLoad?: (structure: ReportStructureResponse['data']) => void;
|
|
7
7
|
onError?: (error: Error) => void;
|
|
8
|
+
fetchStructure?: ReportsViewerStructureFetcher;
|
|
9
|
+
fetchSheetContent?: ReportsViewerSheetContentFetcher;
|
|
8
10
|
children: ReactNode;
|
|
9
11
|
}
|
|
10
12
|
/** Payload for creating the ReportsViewer store (data only; no network). */
|
|
@@ -37,5 +39,7 @@ export interface ReportsViewerContextValue {
|
|
|
37
39
|
endpoint: string;
|
|
38
40
|
onLoad?: (structure: ReportStructureResponse['data']) => void;
|
|
39
41
|
onError?: (error: Error) => void;
|
|
42
|
+
fetchStructure?: ReportsViewerStructureFetcher;
|
|
43
|
+
fetchSheetContent?: ReportsViewerSheetContentFetcher;
|
|
40
44
|
}
|
|
41
45
|
//# sourceMappingURL=types.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../../../../packages/gclick/src/components/ReportsViewer/contexts/ReportsViewerContext/types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAClC,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,SAAS,CAAC;AACxC,OAAO,KAAK,
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../../../../packages/gclick/src/components/ReportsViewer/contexts/ReportsViewerContext/types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAClC,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,SAAS,CAAC;AACxC,OAAO,KAAK,EACV,uBAAuB,EACvB,qBAAqB,EACrB,6BAA6B,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AAC,KAAK,IAAI,CAAC;IAC9D,OAAO,CAAC,EAAE,CAAC,KAAK,EAAE,KAAK,KAAK,IAAI,CAAC;IACjC,cAAc,CAAC,EAAE,6BAA6B,CAAC;IAC/C,iBAAiB,CAAC,EAAE,gCAAgC,CAAC;CACtD"}
|
|
@@ -1,20 +1,20 @@
|
|
|
1
1
|
import { transformRow as s } from "../transformRow/index.js";
|
|
2
2
|
import { sortRowsByGroupColumns as e } from "../sortRowsByGroupColumns/index.js";
|
|
3
|
-
function t(o,
|
|
3
|
+
function t(o, r) {
|
|
4
4
|
if (o.rows)
|
|
5
|
-
for (const
|
|
6
|
-
|
|
5
|
+
for (const f of o.rows)
|
|
6
|
+
r.push(s(f, r.length));
|
|
7
7
|
if (o.group?.children)
|
|
8
|
-
for (const
|
|
9
|
-
t(
|
|
8
|
+
for (const f of o.group.children)
|
|
9
|
+
t(f, r);
|
|
10
10
|
}
|
|
11
|
-
function c(o,
|
|
11
|
+
function c(o, r) {
|
|
12
12
|
if (!o)
|
|
13
13
|
return [];
|
|
14
|
-
const
|
|
14
|
+
const f = [];
|
|
15
15
|
for (const n of o)
|
|
16
|
-
t(n,
|
|
17
|
-
return
|
|
16
|
+
t(n, f);
|
|
17
|
+
return r && r.length > 0 && e(f, r), f;
|
|
18
18
|
}
|
|
19
19
|
export {
|
|
20
20
|
c as flattenAndTransformRows
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../../packages/gclick/src/components/ReportsViewer/helpers/parseDataGridSection/index.ts"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../../packages/gclick/src/components/ReportsViewer/helpers/parseDataGridSection/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,eAAe,EAEf,qBAAqB,EAItB,MAAM,aAAa,CAAC;AACrB,OAAO,EAAE,MAAM,EAAE,MAAM,EAA0C,MAAM,iBAAiB,CAAC;AAoFzF;;;;GAIG;AACH,wBAAgB,oBAAoB,CAClC,OAAO,EAAE,eAAe,EACxB,eAAe,CAAC,EAAE,CAAC,OAAO,EAAE,qBAAqB,KAAK,IAAI,GACzD;IACD,OAAO,EAAE,MAAM,CAAC,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC,EAAE,CAAC;IAC3C,IAAI,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,EAAE,CAAC;IAChC,YAAY,EAAE,CAAC,GAAG,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,KAAK,MAAM,CAAC;CACxD,CA8EA"}
|
|
@@ -1,58 +1,86 @@
|
|
|
1
|
-
import { useColumnBoolean as
|
|
2
|
-
import { parseTypeToColumnType as
|
|
3
|
-
import { transformRow as
|
|
4
|
-
import { wrapFormatterWithMapPointLink as
|
|
5
|
-
function
|
|
6
|
-
return
|
|
7
|
-
}
|
|
8
|
-
function
|
|
9
|
-
const
|
|
10
|
-
for (const
|
|
11
|
-
const
|
|
12
|
-
if (
|
|
13
|
-
for (const
|
|
14
|
-
|
|
1
|
+
import { useColumnBoolean as P, useColumnNestedValue as _ } from "@m4l/components";
|
|
2
|
+
import { parseTypeToColumnType as T } from "../parseTypeToColumnType/index.js";
|
|
3
|
+
import { transformRow as C, MAP_POINTS_KEY as w, INTERNAL_ROW_KEY as K } from "../transformRow/index.js";
|
|
4
|
+
import { wrapFormatterWithMapPointLink as R } from "../wrapFormatterWithMapPointLink/index.js";
|
|
5
|
+
function u(t) {
|
|
6
|
+
return t.replace(/\.v$/, "");
|
|
7
|
+
}
|
|
8
|
+
function h(t) {
|
|
9
|
+
const e = /* @__PURE__ */ new Set();
|
|
10
|
+
for (const r of t) {
|
|
11
|
+
const a = r[w];
|
|
12
|
+
if (a)
|
|
13
|
+
for (const s of Object.keys(a))
|
|
14
|
+
e.add(s);
|
|
15
15
|
}
|
|
16
|
-
return
|
|
16
|
+
return e;
|
|
17
|
+
}
|
|
18
|
+
function z(t) {
|
|
19
|
+
return u(t).replace(/[._-]+([a-zA-Z0-9])/g, (e, r) => r.toUpperCase());
|
|
20
|
+
}
|
|
21
|
+
function b(t) {
|
|
22
|
+
return t.rows.map((e) => {
|
|
23
|
+
const r = { ...e };
|
|
24
|
+
for (const a of t.columns) {
|
|
25
|
+
const s = u(a.name);
|
|
26
|
+
if (r[s] !== void 0)
|
|
27
|
+
continue;
|
|
28
|
+
const f = z(s), n = e[f];
|
|
29
|
+
n !== void 0 && (r[s] = n);
|
|
30
|
+
}
|
|
31
|
+
return r;
|
|
32
|
+
});
|
|
33
|
+
}
|
|
34
|
+
function v(t) {
|
|
35
|
+
return t.dataType ?? t.data_type;
|
|
36
|
+
}
|
|
37
|
+
function N(t) {
|
|
38
|
+
return t.formatterProps ?? t.formatter_props;
|
|
39
|
+
}
|
|
40
|
+
function V(t, e) {
|
|
41
|
+
return t.fieldValue ?? t.field_value ?? e;
|
|
17
42
|
}
|
|
18
|
-
function
|
|
19
|
-
const
|
|
43
|
+
function E(t, e) {
|
|
44
|
+
const r = b(t).map(C), a = e ? h(r) : /* @__PURE__ */ new Set();
|
|
20
45
|
return {
|
|
21
|
-
columns:
|
|
22
|
-
const
|
|
23
|
-
presentationType:
|
|
24
|
-
fieldValue:
|
|
25
|
-
}) :
|
|
26
|
-
formatter:
|
|
27
|
-
|
|
28
|
-
(
|
|
29
|
-
const
|
|
30
|
-
if (
|
|
31
|
-
return { mapPoint:
|
|
46
|
+
columns: t.columns.map((n) => {
|
|
47
|
+
const o = u(n.name), i = a.has(o), m = N(n), c = m?.presentationType ?? m?.presentation_type, l = m ? u(V(m, o)) : o, p = m && c ? P({
|
|
48
|
+
presentationType: c,
|
|
49
|
+
fieldValue: l
|
|
50
|
+
}) : _({ fieldValue: l }), g = i && e && "formatter" in p ? {
|
|
51
|
+
formatter: R(
|
|
52
|
+
p.formatter,
|
|
53
|
+
(d) => {
|
|
54
|
+
const y = d[w]?.[o];
|
|
55
|
+
if (y)
|
|
56
|
+
return { mapPoint: y, displayValue: d[o] };
|
|
32
57
|
},
|
|
33
|
-
|
|
34
|
-
|
|
58
|
+
o,
|
|
59
|
+
e
|
|
35
60
|
)
|
|
36
61
|
} : {};
|
|
37
62
|
return {
|
|
38
|
-
key:
|
|
39
|
-
name:
|
|
40
|
-
width:
|
|
41
|
-
type:
|
|
42
|
-
align:
|
|
63
|
+
key: o,
|
|
64
|
+
name: n.title,
|
|
65
|
+
width: n.width,
|
|
66
|
+
type: T(v(n)),
|
|
67
|
+
align: n.align,
|
|
43
68
|
resizable: !0,
|
|
44
69
|
sortable: !0,
|
|
45
|
-
...
|
|
46
|
-
...
|
|
70
|
+
...p,
|
|
71
|
+
...g
|
|
47
72
|
};
|
|
48
73
|
}),
|
|
49
|
-
rows:
|
|
50
|
-
rowKeyGetter: (
|
|
51
|
-
const
|
|
52
|
-
|
|
74
|
+
rows: r,
|
|
75
|
+
rowKeyGetter: (n) => {
|
|
76
|
+
const o = n[K];
|
|
77
|
+
if (typeof o == "number" || typeof o == "string")
|
|
78
|
+
return o;
|
|
79
|
+
const i = n.id;
|
|
80
|
+
return typeof i == "number" || typeof i == "string" ? i : 0;
|
|
53
81
|
}
|
|
54
82
|
};
|
|
55
83
|
}
|
|
56
84
|
export {
|
|
57
|
-
|
|
85
|
+
E as parseDataGridSection
|
|
58
86
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../../packages/gclick/src/components/ReportsViewer/helpers/parseTreeDataGridSection/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,mBAAmB,EAAwB,qBAAqB,EAAE,MAAM,aAAa,CAAC;AAC/F,OAAO,EAAE,MAAM,EAAE,MAAM,EAA0C,MAAM,iBAAiB,CAAC;AAiCzF;;;;GAIG;AACH,wBAAgB,wBAAwB,CACtC,OAAO,EAAE,mBAAmB,EAC5B,eAAe,CAAC,EAAE,CAAC,OAAO,EAAE,qBAAqB,KAAK,IAAI,GACzD;IACD,OAAO,EAAE,MAAM,CAAC,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC,EAAE,CAAC;IAC3C,IAAI,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,EAAE,CAAC;IAChC,YAAY,EAAE,CAAC,GAAG,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,KAAK,MAAM,CAAC;IACvD,gBAAgB,EAAE,GAAG,CAAC,OAAO,CAAC,CAAC;CAChC,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../../packages/gclick/src/components/ReportsViewer/helpers/parseTreeDataGridSection/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,mBAAmB,EAAwB,qBAAqB,EAAE,MAAM,aAAa,CAAC;AAC/F,OAAO,EAAE,MAAM,EAAE,MAAM,EAA0C,MAAM,iBAAiB,CAAC;AAiCzF;;;;GAIG;AACH,wBAAgB,wBAAwB,CACtC,OAAO,EAAE,mBAAmB,EAC5B,eAAe,CAAC,EAAE,CAAC,OAAO,EAAE,qBAAqB,KAAK,IAAI,GACzD;IACD,OAAO,EAAE,MAAM,CAAC,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC,EAAE,CAAC;IAC3C,IAAI,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,EAAE,CAAC;IAChC,YAAY,EAAE,CAAC,GAAG,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,KAAK,MAAM,CAAC;IACvD,gBAAgB,EAAE,GAAG,CAAC,OAAO,CAAC,CAAC;CAChC,CAgHA"}
|
|
@@ -1,75 +1,78 @@
|
|
|
1
|
-
import { useColumnBoolean as
|
|
2
|
-
import { calculateExpandedGroupIds as
|
|
1
|
+
import { useColumnBoolean as _, useColumnNestedValue as C } from "@m4l/components";
|
|
2
|
+
import { calculateExpandedGroupIds as v } from "../calculateExpandedGroupIds/index.js";
|
|
3
3
|
import { parseTypeToColumnType as M } from "../parseTypeToColumnType/index.js";
|
|
4
|
-
import { flattenAndTransformRows as
|
|
5
|
-
import { processAllGroupTotals as
|
|
6
|
-
import { MAP_POINTS_KEY as
|
|
7
|
-
import { wrapFormatterWithMapPointLink as
|
|
8
|
-
import { GroupCellWithTotal as
|
|
9
|
-
function
|
|
10
|
-
return
|
|
4
|
+
import { flattenAndTransformRows as N } from "../flattenAndTransformRows/index.js";
|
|
5
|
+
import { processAllGroupTotals as W } from "../processGroupTotals/index.js";
|
|
6
|
+
import { MAP_POINTS_KEY as y, INTERNAL_ROW_KEY as I } from "../transformRow/index.js";
|
|
7
|
+
import { wrapFormatterWithMapPointLink as K } from "../wrapFormatterWithMapPointLink/index.js";
|
|
8
|
+
import { GroupCellWithTotal as R } from "../../subcomponents/GroupCellWithTotal/GroupCellWithTotal.js";
|
|
9
|
+
function c(o) {
|
|
10
|
+
return o.replace(/\.v$/, "");
|
|
11
11
|
}
|
|
12
|
-
function
|
|
13
|
-
const
|
|
14
|
-
for (const
|
|
15
|
-
const a =
|
|
12
|
+
function S(o) {
|
|
13
|
+
const n = /* @__PURE__ */ new Set();
|
|
14
|
+
for (const s of o) {
|
|
15
|
+
const a = s[y];
|
|
16
16
|
if (a)
|
|
17
|
-
for (const
|
|
18
|
-
|
|
17
|
+
for (const p of Object.keys(a))
|
|
18
|
+
n.add(p);
|
|
19
19
|
}
|
|
20
|
-
return
|
|
20
|
+
return n;
|
|
21
21
|
}
|
|
22
|
-
function
|
|
23
|
-
const
|
|
24
|
-
|
|
25
|
-
const
|
|
26
|
-
const
|
|
27
|
-
presentationType:
|
|
28
|
-
fieldValue:
|
|
29
|
-
}) :
|
|
30
|
-
formatter:
|
|
31
|
-
|
|
32
|
-
(
|
|
33
|
-
const
|
|
34
|
-
if (
|
|
35
|
-
return { mapPoint:
|
|
22
|
+
function j(o, n) {
|
|
23
|
+
const s = /* @__PURE__ */ new Set(), a = /* @__PURE__ */ new Map();
|
|
24
|
+
W(o, s, a);
|
|
25
|
+
const p = N(o.group?.children, o.columnsGroup), T = n ? S(p) : /* @__PURE__ */ new Set(), l = o.columns.map((e) => {
|
|
26
|
+
const t = c(e.name), r = e.formatterProps ?? e.formatter_props, i = r?.presentationType ?? r?.presentation_type, f = r?.fieldValue ?? r?.field_value ? c(r.fieldValue ?? r.field_value ?? t) : t, w = (o.columnsGroup?.includes(t) ?? !1) || (o.columnsGroup?.includes(e.name) ?? !1) || e.grouped, G = s.has(t) || s.has(e.name), P = T.has(t), u = r && i ? _({
|
|
27
|
+
presentationType: i,
|
|
28
|
+
fieldValue: f
|
|
29
|
+
}) : C({ fieldValue: f }), b = P && n && "formatter" in u ? {
|
|
30
|
+
formatter: K(
|
|
31
|
+
u.formatter,
|
|
32
|
+
(m) => {
|
|
33
|
+
const d = m[y]?.[t];
|
|
34
|
+
if (d)
|
|
35
|
+
return { mapPoint: d, displayValue: m[t] };
|
|
36
36
|
},
|
|
37
|
-
|
|
38
|
-
|
|
37
|
+
t,
|
|
38
|
+
n
|
|
39
39
|
)
|
|
40
40
|
} : {};
|
|
41
41
|
return {
|
|
42
|
-
key:
|
|
43
|
-
name:
|
|
44
|
-
width:
|
|
45
|
-
type: M(
|
|
46
|
-
align:
|
|
42
|
+
key: t,
|
|
43
|
+
name: e.title,
|
|
44
|
+
width: e.width,
|
|
45
|
+
type: M(e.dataType),
|
|
46
|
+
align: e.align,
|
|
47
47
|
resizable: !0,
|
|
48
48
|
sortable: !0,
|
|
49
49
|
// Spread nestedColumn (formatter, renderGroupCell, customFilter, customSort)
|
|
50
|
-
...
|
|
50
|
+
...u,
|
|
51
51
|
// renderGroupCell priority:
|
|
52
52
|
// 1. Columns with totals → GroupCellWithTotal
|
|
53
53
|
// 2. Boolean columns (formatterProps) → keep ColumnBooleanGroupFormatter from nestedColumn
|
|
54
54
|
// 3. Plain columns → undefined (default grid behavior, no representative value in group rows)
|
|
55
|
-
renderGroupCell:
|
|
55
|
+
renderGroupCell: G ? (m) => R({ ...m, groupTotalsMap: a }) : r && i ? u.renderGroupCell : void 0,
|
|
56
56
|
// Override formatter for columns with mapPoints (per-cell conditional link)
|
|
57
|
-
...
|
|
57
|
+
...b,
|
|
58
58
|
// Mark grouping columns
|
|
59
|
-
groupable:
|
|
60
|
-
grouped:
|
|
59
|
+
groupable: e.groupable ?? !1,
|
|
60
|
+
grouped: w
|
|
61
61
|
};
|
|
62
|
-
}),
|
|
63
|
-
const
|
|
64
|
-
|
|
65
|
-
|
|
62
|
+
}), h = (e) => {
|
|
63
|
+
const t = e[I];
|
|
64
|
+
if (typeof t == "number" || typeof t == "string")
|
|
65
|
+
return t;
|
|
66
|
+
const r = e.id;
|
|
67
|
+
return typeof r == "number" || typeof r == "string" ? r : Math.random();
|
|
68
|
+
}, g = v(l, p);
|
|
66
69
|
return {
|
|
67
|
-
columns:
|
|
68
|
-
rows:
|
|
69
|
-
rowKeyGetter:
|
|
70
|
-
expandedGroupIds:
|
|
70
|
+
columns: l,
|
|
71
|
+
rows: p,
|
|
72
|
+
rowKeyGetter: h,
|
|
73
|
+
expandedGroupIds: g
|
|
71
74
|
};
|
|
72
75
|
}
|
|
73
76
|
export {
|
|
74
|
-
|
|
77
|
+
j as parseTreeDataGridSection
|
|
75
78
|
};
|
|
@@ -4,12 +4,17 @@ import { DataGridRow } from '../../types';
|
|
|
4
4
|
* Maps column name → DataGridCellMapPoint for columns that carry map positions.
|
|
5
5
|
*/
|
|
6
6
|
export declare const MAP_POINTS_KEY = "__mapPoints";
|
|
7
|
+
/**
|
|
8
|
+
* Key used to store a stable internal row identifier for DataGrid consumers.
|
|
9
|
+
*/
|
|
10
|
+
export declare const INTERNAL_ROW_KEY = "__rowKey";
|
|
7
11
|
/**
|
|
8
12
|
* Transforms a row by extracting the 'v' (formatted) value from {r, v} cell objects.
|
|
9
13
|
* If a value is not {r, v}, the original value is kept.
|
|
10
14
|
* When a cell contains a mapPoint, it is preserved under __mapPoints[columnName].
|
|
11
15
|
* @param row - Data row to transform
|
|
16
|
+
* @param rowIndex - Zero-based row index used as the stable fallback key
|
|
12
17
|
* @returns Row with formatted values and optional __mapPoints metadata
|
|
13
18
|
*/
|
|
14
|
-
export declare function transformRow(row: DataGridRow): Record<string, unknown>;
|
|
19
|
+
export declare function transformRow(row: DataGridRow, rowIndex?: number): Record<string, unknown>;
|
|
15
20
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../../packages/gclick/src/components/ReportsViewer/helpers/transformRow/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAwB,WAAW,EAAE,MAAM,aAAa,CAAC;AAEhE;;;GAGG;AACH,eAAO,MAAM,cAAc,gBAAgB,CAAC;AAE5C
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../../packages/gclick/src/components/ReportsViewer/helpers/transformRow/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAwB,WAAW,EAAE,MAAM,aAAa,CAAC;AAEhE;;;GAGG;AACH,eAAO,MAAM,cAAc,gBAAgB,CAAC;AAE5C;;GAEG;AACH,eAAO,MAAM,gBAAgB,aAAa,CAAC;AA8D3C;;;;;;;GAOG;AACH,wBAAgB,YAAY,CAAC,GAAG,EAAE,WAAW,EAAE,QAAQ,SAAI,GAAG,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAkCpF"}
|
|
@@ -1,14 +1,42 @@
|
|
|
1
|
-
const
|
|
2
|
-
function
|
|
3
|
-
const
|
|
4
|
-
|
|
1
|
+
const c = "__mapPoints", l = "__rowKey";
|
|
2
|
+
function u(i, f) {
|
|
3
|
+
const t = i.id;
|
|
4
|
+
if (t && typeof t == "object") {
|
|
5
|
+
if ("r" in t && (typeof t.r == "string" || typeof t.r == "number"))
|
|
6
|
+
return t.r;
|
|
7
|
+
if ("v" in t && (typeof t.v == "string" || typeof t.v == "number"))
|
|
8
|
+
return t.v;
|
|
9
|
+
}
|
|
10
|
+
return typeof t == "string" || typeof t == "number" ? t : f;
|
|
11
|
+
}
|
|
12
|
+
function p(i, f, t) {
|
|
13
|
+
if (!f.includes("."))
|
|
14
|
+
return;
|
|
15
|
+
const o = f.split(".");
|
|
16
|
+
let e = i;
|
|
17
|
+
for (const r of o.slice(0, -1)) {
|
|
18
|
+
const s = e[r];
|
|
19
|
+
if (s === void 0)
|
|
20
|
+
e[r] = {};
|
|
21
|
+
else if (typeof s != "object" || s === null || Array.isArray(s))
|
|
22
|
+
return;
|
|
23
|
+
e = e[r];
|
|
24
|
+
}
|
|
25
|
+
const n = o[o.length - 1];
|
|
26
|
+
e[n] === void 0 && (e[n] = t);
|
|
27
|
+
}
|
|
28
|
+
function a(i, f = 0) {
|
|
29
|
+
const t = {};
|
|
30
|
+
let o;
|
|
5
31
|
for (const e of Object.keys(i)) {
|
|
6
|
-
const
|
|
7
|
-
|
|
32
|
+
const n = i[e];
|
|
33
|
+
let r;
|
|
34
|
+
n && typeof n == "object" && "v" in n ? (r = n.v, "mapPoint" in n && n.mapPoint && (o || (o = {}), o[e] = n.mapPoint)) : r = n, t[e] = r, p(t, e, r);
|
|
8
35
|
}
|
|
9
|
-
return
|
|
36
|
+
return o && (t[c] = o), t[l] = u(i, f), t;
|
|
10
37
|
}
|
|
11
38
|
export {
|
|
12
|
-
|
|
13
|
-
|
|
39
|
+
l as INTERNAL_ROW_KEY,
|
|
40
|
+
c as MAP_POINTS_KEY,
|
|
41
|
+
a as transformRow
|
|
14
42
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useReportSheetContentFetch.d.ts","sourceRoot":"","sources":["../../../../../../../../packages/gclick/src/components/ReportsViewer/hooks/useReportSheetContentFetch/useReportSheetContentFetch.ts"],"names":[],"mappings":"AASA,OAAO,KAAK,EAAE,gCAAgC,EAAE,MAAM,SAAS,CAAC;AAEhE;;;;;GAKG;AACH,wBAAgB,0BAA0B,CAAC,UAAU,EAAE,MAAM,GAAG,gCAAgC,
|
|
1
|
+
{"version":3,"file":"useReportSheetContentFetch.d.ts","sourceRoot":"","sources":["../../../../../../../../packages/gclick/src/components/ReportsViewer/hooks/useReportSheetContentFetch/useReportSheetContentFetch.ts"],"names":[],"mappings":"AASA,OAAO,KAAK,EAAE,gCAAgC,EAAE,MAAM,SAAS,CAAC;AAEhE;;;;;GAKG;AACH,wBAAgB,0BAA0B,CAAC,UAAU,EAAE,MAAM,GAAG,gCAAgC,CAqG/F"}
|
package/components/ReportsViewer/hooks/useReportSheetContentFetch/useReportSheetContentFetch.js
CHANGED
|
@@ -1,50 +1,51 @@
|
|
|
1
|
-
import { useState as
|
|
2
|
-
import { useNetwork as
|
|
3
|
-
import { useReportsViewerContext as
|
|
4
|
-
import { useReportStructureData as
|
|
5
|
-
import { REPORT_SHEET_CONTENT_FETCH_ERROR_MESSAGE as
|
|
6
|
-
function
|
|
7
|
-
const { endpoint:
|
|
8
|
-
|
|
9
|
-
e || (E(null),
|
|
1
|
+
import { useState as m, useRef as T, useEffect as b, useCallback as D } from "react";
|
|
2
|
+
import { useNetwork as N } from "@m4l/core";
|
|
3
|
+
import { useReportsViewerContext as O, useReportsViewerStore as _ } from "../useReportsViewerStore/useReportsViewerStore.js";
|
|
4
|
+
import { useReportStructureData as k } from "../useReportStructureData/useReportStructureData.js";
|
|
5
|
+
import { REPORT_SHEET_CONTENT_FETCH_ERROR_MESSAGE as F } from "../../constants.js";
|
|
6
|
+
function V(t) {
|
|
7
|
+
const { endpoint: c, fetchSheetContent: i } = O(), { networkOperation: p } = N(), { structureData: R } = k(), d = _((r) => r.sheetQueue), [o, E] = m(null), [h, s] = m(!1), [C, u] = m(null), a = T(null), e = (d ?? []).includes(t), l = R && t >= 0 && t < R.sheets.length;
|
|
8
|
+
b(() => {
|
|
9
|
+
e || (E(null), s(!1), u(null));
|
|
10
10
|
}, [e]);
|
|
11
|
-
const
|
|
12
|
-
if (!
|
|
11
|
+
const w = D(async () => {
|
|
12
|
+
if (!l)
|
|
13
13
|
return;
|
|
14
|
-
|
|
15
|
-
const r =
|
|
16
|
-
|
|
14
|
+
a.current?.abort(), a.current = new AbortController();
|
|
15
|
+
const r = a.current.signal;
|
|
16
|
+
s(!0), u(null);
|
|
17
17
|
try {
|
|
18
|
-
const
|
|
18
|
+
const n = t + 1, f = {
|
|
19
19
|
method: "GET",
|
|
20
|
-
endPoint: `${
|
|
20
|
+
endPoint: `${c}/sheet/${n}`,
|
|
21
21
|
timeout: 6e4,
|
|
22
22
|
isRemote: !0,
|
|
23
|
+
withCredentials: !1,
|
|
23
24
|
responseToCamelCase: !0,
|
|
24
25
|
signal: r
|
|
25
|
-
});
|
|
26
|
+
}, g = i ? await i({ endpoint: c, sheetIndex: t, sheetNumber: n }) : await p(f);
|
|
26
27
|
if (r.aborted)
|
|
27
28
|
return;
|
|
28
|
-
const
|
|
29
|
-
E(
|
|
30
|
-
} catch (
|
|
29
|
+
const S = g.data;
|
|
30
|
+
E(S), s(!1), u(null);
|
|
31
|
+
} catch (n) {
|
|
31
32
|
if (r.aborted)
|
|
32
33
|
return;
|
|
33
|
-
const
|
|
34
|
-
|
|
34
|
+
const f = n instanceof Error ? n : new Error(F);
|
|
35
|
+
s(!1), u(f);
|
|
35
36
|
}
|
|
36
|
-
}, [
|
|
37
|
-
return
|
|
38
|
-
if (!(!e || !
|
|
39
|
-
return
|
|
40
|
-
|
|
37
|
+
}, [c, p, t, l, i]);
|
|
38
|
+
return b(() => {
|
|
39
|
+
if (!(!e || !l) && o === null)
|
|
40
|
+
return w(), () => {
|
|
41
|
+
a.current?.abort();
|
|
41
42
|
};
|
|
42
|
-
}, [e,
|
|
43
|
-
status:
|
|
44
|
-
contentData:
|
|
45
|
-
error:
|
|
43
|
+
}, [e, l, t, o, w]), e ? {
|
|
44
|
+
status: h ? "loading" : C ? "error" : o ? "loaded" : "loading",
|
|
45
|
+
contentData: o ?? null,
|
|
46
|
+
error: C
|
|
46
47
|
} : { status: null, contentData: null, error: null };
|
|
47
48
|
}
|
|
48
49
|
export {
|
|
49
|
-
|
|
50
|
+
V as useReportSheetContentFetch
|
|
50
51
|
};
|
package/components/ReportsViewer/hooks/useReportStructureFetch/useReportStructureFetch.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useReportStructureFetch.d.ts","sourceRoot":"","sources":["../../../../../../../../packages/gclick/src/components/ReportsViewer/hooks/useReportStructureFetch/useReportStructureFetch.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,6BAA6B,EAAE,MAAM,SAAS,CAAC;AAE7D;;;;GAIG;AACH,wBAAgB,uBAAuB,IAAI,6BAA6B,
|
|
1
|
+
{"version":3,"file":"useReportStructureFetch.d.ts","sourceRoot":"","sources":["../../../../../../../../packages/gclick/src/components/ReportsViewer/hooks/useReportStructureFetch/useReportStructureFetch.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,6BAA6B,EAAE,MAAM,SAAS,CAAC;AAE7D;;;;GAIG;AACH,wBAAgB,uBAAuB,IAAI,6BAA6B,CA+DvE"}
|
|
@@ -1,40 +1,40 @@
|
|
|
1
|
-
import { useState as
|
|
2
|
-
import { useNetwork as
|
|
3
|
-
import { useReportsViewerContext as
|
|
1
|
+
import { useState as c, useRef as w, useCallback as d, useEffect as C } from "react";
|
|
2
|
+
import { useNetwork as T } from "@m4l/core";
|
|
3
|
+
import { useReportsViewerContext as h } from "../useReportsViewerStore/useReportsViewerStore.js";
|
|
4
4
|
import { REPORT_STRUCTURE_FETCH_ERROR_MESSAGE as g } from "../../constants.js";
|
|
5
|
-
function
|
|
6
|
-
const { endpoint:
|
|
7
|
-
|
|
8
|
-
const
|
|
9
|
-
s("loading"),
|
|
5
|
+
function D() {
|
|
6
|
+
const { endpoint: r, onLoad: l, onError: i, fetchStructure: a } = h(), { networkOperation: f } = T(), [p, s] = c("loading"), [E, e] = c(null), [R, S] = c(null), o = w(null), n = d(async () => {
|
|
7
|
+
o.current?.abort(), o.current = new AbortController();
|
|
8
|
+
const u = o.current.signal;
|
|
9
|
+
s("loading"), e(null);
|
|
10
10
|
try {
|
|
11
|
-
const
|
|
11
|
+
const t = a ? await a({ endpoint: r }) : await f({
|
|
12
12
|
method: "GET",
|
|
13
|
-
endPoint:
|
|
13
|
+
endPoint: r,
|
|
14
14
|
parms: { format: "rpd" },
|
|
15
15
|
timeout: 6e4,
|
|
16
16
|
isRemote: !0,
|
|
17
17
|
responseToCamelCase: !0,
|
|
18
|
-
signal:
|
|
18
|
+
signal: u
|
|
19
19
|
});
|
|
20
|
-
if (
|
|
20
|
+
if (u.aborted)
|
|
21
21
|
return;
|
|
22
|
-
|
|
23
|
-
} catch (
|
|
24
|
-
if (
|
|
22
|
+
S(t.data), s("loaded"), e(null), l?.(t.data);
|
|
23
|
+
} catch (t) {
|
|
24
|
+
if (u.aborted)
|
|
25
25
|
return;
|
|
26
|
-
const
|
|
27
|
-
s("error"),
|
|
26
|
+
const m = t instanceof Error ? t : new Error(g);
|
|
27
|
+
s("error"), e(m), i?.(m);
|
|
28
28
|
}
|
|
29
|
-
}, [
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
}), [
|
|
33
|
-
const b =
|
|
34
|
-
|
|
35
|
-
}, [
|
|
36
|
-
return { status:
|
|
29
|
+
}, [r, l, i, f, a]);
|
|
30
|
+
C(() => (n(), () => {
|
|
31
|
+
o.current?.abort();
|
|
32
|
+
}), [r, n]);
|
|
33
|
+
const b = d(async () => {
|
|
34
|
+
e(null), await n();
|
|
35
|
+
}, [n]);
|
|
36
|
+
return { status: p, error: E, retry: b, structureData: R };
|
|
37
37
|
}
|
|
38
38
|
export {
|
|
39
|
-
|
|
39
|
+
D as useReportStructureFetch
|
|
40
40
|
};
|
|
@@ -1,3 +1,4 @@
|
|
|
1
1
|
export { ReportsViewer } from './ReportsViewer';
|
|
2
2
|
export type { ReportsViewerProviderProps } from './contexts/ReportsViewerContext/types';
|
|
3
|
+
export type { ReportsViewerProps, ReportStructureResponse, SheetContentResponse, ReportsViewerStructureFetcher, ReportsViewerSheetContentFetcher, } from './types';
|
|
3
4
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../packages/gclick/src/components/ReportsViewer/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAChD,YAAY,EAAE,0BAA0B,EAAE,MAAM,uCAAuC,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../packages/gclick/src/components/ReportsViewer/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAChD,YAAY,EAAE,0BAA0B,EAAE,MAAM,uCAAuC,CAAC;AACxF,YAAY,EACV,kBAAkB,EAClB,uBAAuB,EACvB,oBAAoB,EACpB,6BAA6B,EAC7B,gCAAgC,GACjC,MAAM,SAAS,CAAC"}
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
import { jsx as c } from "@emotion/react/jsx-runtime";
|
|
2
|
-
import { useCallback as
|
|
3
|
-
import { DataGrid as
|
|
2
|
+
import { useCallback as d } from "react";
|
|
3
|
+
import { DataGrid as l } from "@m4l/components";
|
|
4
4
|
import { parseDataGridSection as m } from "../../../helpers/parseDataGridSection/index.js";
|
|
5
5
|
import { useReportSheetMap as f } from "../../../hooks/useReportSheetMap/useReportSheetMap.js";
|
|
6
6
|
function S(r) {
|
|
7
|
-
const { section: t, sheetIndex: o } = r, { visualizeFeatureOnMap: e } = f(o), i =
|
|
7
|
+
const { section: t, sheetIndex: o } = r, { visualizeFeatureOnMap: e } = f(o), i = d(
|
|
8
8
|
(p) => {
|
|
9
9
|
e(p);
|
|
10
10
|
},
|
|
11
11
|
[e]
|
|
12
12
|
), { columns: a, rows: s, rowKeyGetter: n } = m(t, i);
|
|
13
13
|
return /* @__PURE__ */ c(
|
|
14
|
-
|
|
14
|
+
l,
|
|
15
15
|
{
|
|
16
16
|
id: `reports-viewer-datagrid-${t.title}`,
|
|
17
17
|
columns: a,
|
|
@@ -20,7 +20,7 @@ function S(r) {
|
|
|
20
20
|
actionsProps: {
|
|
21
21
|
withPager: !1,
|
|
22
22
|
withRowsCount: !1,
|
|
23
|
-
withSettings: !
|
|
23
|
+
withSettings: !0,
|
|
24
24
|
withLocalFilters: !1
|
|
25
25
|
},
|
|
26
26
|
dataTestId: `reports-viewer-datagrid-${t.title}`
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PropertyValuesSectionRenderer.d.ts","sourceRoot":"","sources":["../../../../../../../../../packages/gclick/src/components/ReportsViewer/subcomponents/SectionRenderer/PropertyValuesSectionRenderer/PropertyValuesSectionRenderer.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,kCAAkC,EAAE,MAAM,SAAS,CAAC;AAE7D;;;;GAIG;AACH,wBAAgB,6BAA6B,CAAC,KAAK,EAAE,kCAAkC,
|
|
1
|
+
{"version":3,"file":"PropertyValuesSectionRenderer.d.ts","sourceRoot":"","sources":["../../../../../../../../../packages/gclick/src/components/ReportsViewer/subcomponents/SectionRenderer/PropertyValuesSectionRenderer/PropertyValuesSectionRenderer.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,kCAAkC,EAAE,MAAM,SAAS,CAAC;AAE7D;;;;GAIG;AACH,wBAAgB,6BAA6B,CAAC,KAAK,EAAE,kCAAkC,2DAgCtF"}
|
|
@@ -1,26 +1,26 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import { ContainerFlow as
|
|
3
|
-
import { Icon as
|
|
4
|
-
function
|
|
5
|
-
const { section: t } =
|
|
6
|
-
return t ? /* @__PURE__ */
|
|
7
|
-
const
|
|
8
|
-
return /* @__PURE__ */
|
|
9
|
-
|
|
1
|
+
import { jsx as r } from "@emotion/react/jsx-runtime";
|
|
2
|
+
import { ContainerFlow as a, PropertyValue as l } from "@m4l/components";
|
|
3
|
+
import { Icon as s } from "@m4l/base";
|
|
4
|
+
function y(i) {
|
|
5
|
+
const { section: t } = i;
|
|
6
|
+
return t ? /* @__PURE__ */ r(a, { variant: "column-flex", gap: 16, children: t.rows.map((o, n) => {
|
|
7
|
+
const e = o.iconId ?? o.icon_id, c = o.iconColor ?? o.icon_color ?? "primary", p = e ? /* @__PURE__ */ r(s, { src: e, color: "text.secondary" }) : void 0;
|
|
8
|
+
return /* @__PURE__ */ r(
|
|
9
|
+
l,
|
|
10
10
|
{
|
|
11
|
-
property:
|
|
12
|
-
value:
|
|
13
|
-
startAdornment:
|
|
11
|
+
property: o.property,
|
|
12
|
+
value: o.v,
|
|
13
|
+
startAdornment: p,
|
|
14
14
|
direction: "column",
|
|
15
15
|
isForm: !1,
|
|
16
|
-
dataTestId: `reports-viewer-property-${
|
|
16
|
+
dataTestId: `reports-viewer-property-${n}`,
|
|
17
17
|
iconVariant: "containedOpacity",
|
|
18
|
-
iconColor:
|
|
18
|
+
iconColor: c
|
|
19
19
|
},
|
|
20
|
-
`property-${
|
|
20
|
+
`property-${n}`
|
|
21
21
|
);
|
|
22
22
|
}) }) : null;
|
|
23
23
|
}
|
|
24
24
|
export {
|
|
25
|
-
|
|
25
|
+
y as PropertyValuesSectionRenderer
|
|
26
26
|
};
|
|
@@ -49,6 +49,24 @@ export interface DataGridCell {
|
|
|
49
49
|
*/
|
|
50
50
|
mapPoint?: DataGridCellMapPoint;
|
|
51
51
|
}
|
|
52
|
+
/**
|
|
53
|
+
* Column data types supported by ReportsViewer DataGrid sections.
|
|
54
|
+
*/
|
|
55
|
+
export type DataGridColumnDataType = 'decimal' | 'integer' | 'string' | 'date' | 'time' | 'date_time' | 'boolean';
|
|
56
|
+
/**
|
|
57
|
+
* Additional formatter configuration accepted by DataGrid columns.
|
|
58
|
+
* Supports both camelCase and raw backend snake_case keys.
|
|
59
|
+
*/
|
|
60
|
+
export interface DataGridColumnFormatterProps {
|
|
61
|
+
/** Formatter presentation kind used by boolean-like column helpers. */
|
|
62
|
+
presentationType?: PresentationType;
|
|
63
|
+
/** Raw backend alias for presentationType. */
|
|
64
|
+
presentation_type?: PresentationType;
|
|
65
|
+
/** Row field path used by the formatter helper. */
|
|
66
|
+
fieldValue?: string;
|
|
67
|
+
/** Raw backend alias for fieldValue. */
|
|
68
|
+
field_value?: string;
|
|
69
|
+
}
|
|
52
70
|
/**
|
|
53
71
|
* Column configuration for DataGrid.
|
|
54
72
|
*/
|
|
@@ -56,6 +74,7 @@ export interface DataGridColumn {
|
|
|
56
74
|
/**
|
|
57
75
|
* Base property key in the row object.
|
|
58
76
|
* Legacy `.v` suffix paths are still accepted for backward compatibility.
|
|
77
|
+
* Flat dotted backend keys such as `location.name` are also supported.
|
|
59
78
|
*/
|
|
60
79
|
name: string;
|
|
61
80
|
/**
|
|
@@ -76,16 +95,22 @@ export interface DataGridColumn {
|
|
|
76
95
|
align?: 'left' | 'right' | 'center';
|
|
77
96
|
/**
|
|
78
97
|
* Column data type.
|
|
98
|
+
* API may send camelCase `dataType` or raw backend `data_type`.
|
|
99
|
+
*/
|
|
100
|
+
dataType?: DataGridColumnDataType;
|
|
101
|
+
/**
|
|
102
|
+
* Raw backend alias for dataType.
|
|
79
103
|
*/
|
|
80
|
-
|
|
104
|
+
data_type?: DataGridColumnDataType;
|
|
81
105
|
/**
|
|
82
106
|
* Additional formatter configuration.
|
|
83
|
-
*
|
|
107
|
+
* Accepts camelCase `formatterProps` or raw backend `formatter_props`.
|
|
84
108
|
*/
|
|
85
|
-
formatterProps?:
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
109
|
+
formatterProps?: DataGridColumnFormatterProps;
|
|
110
|
+
/**
|
|
111
|
+
* Raw backend alias for formatterProps.
|
|
112
|
+
*/
|
|
113
|
+
formatter_props?: DataGridColumnFormatterProps;
|
|
89
114
|
/**
|
|
90
115
|
* Whether the column is grouped.
|
|
91
116
|
*/
|
|
@@ -147,14 +172,26 @@ export interface PropertyValueRow {
|
|
|
147
172
|
* Optional icon ID.
|
|
148
173
|
*/
|
|
149
174
|
iconId?: string;
|
|
175
|
+
/**
|
|
176
|
+
* Raw backend alias for iconId.
|
|
177
|
+
*/
|
|
178
|
+
icon_id?: string;
|
|
150
179
|
/**
|
|
151
180
|
* Optional icon color for PropertyValue when icon is present.
|
|
152
181
|
*/
|
|
153
182
|
iconColor?: ChipColorOptions;
|
|
183
|
+
/**
|
|
184
|
+
* Raw backend alias for iconColor.
|
|
185
|
+
*/
|
|
186
|
+
icon_color?: ChipColorOptions;
|
|
154
187
|
/**
|
|
155
188
|
* Optional palette color.
|
|
156
189
|
*/
|
|
157
190
|
palletColor?: string;
|
|
191
|
+
/**
|
|
192
|
+
* Raw backend alias for palletColor.
|
|
193
|
+
*/
|
|
194
|
+
pallet_color?: string;
|
|
158
195
|
/**
|
|
159
196
|
* Optional location.
|
|
160
197
|
*/
|
|
@@ -377,6 +414,22 @@ export interface SheetContentResponse {
|
|
|
377
414
|
sections: ReportSection[];
|
|
378
415
|
};
|
|
379
416
|
}
|
|
417
|
+
/**
|
|
418
|
+
* Custom structure fetcher for ReportsViewer.
|
|
419
|
+
* Useful for local/mock data sources without network calls.
|
|
420
|
+
*/
|
|
421
|
+
export type ReportsViewerStructureFetcher = (props: {
|
|
422
|
+
endpoint: string;
|
|
423
|
+
}) => Promise<ReportStructureResponse>;
|
|
424
|
+
/**
|
|
425
|
+
* Custom sheet-content fetcher for ReportsViewer.
|
|
426
|
+
* Useful for local/mock data sources without network calls.
|
|
427
|
+
*/
|
|
428
|
+
export type ReportsViewerSheetContentFetcher = (props: {
|
|
429
|
+
endpoint: string;
|
|
430
|
+
sheetIndex: number;
|
|
431
|
+
sheetNumber: number;
|
|
432
|
+
}) => Promise<SheetContentResponse>;
|
|
380
433
|
/**
|
|
381
434
|
* Props for the `ReportsViewer` component.
|
|
382
435
|
*/
|
|
@@ -412,6 +465,16 @@ export interface ReportsViewerProps {
|
|
|
412
465
|
* Callback when report structure loads successfully.
|
|
413
466
|
*/
|
|
414
467
|
onLoad?: (structure: ReportStructureResponse['data']) => void;
|
|
468
|
+
/**
|
|
469
|
+
* Optional custom fetcher for report structure.
|
|
470
|
+
* If provided, networkOperation is not used for structure.
|
|
471
|
+
*/
|
|
472
|
+
fetchStructure?: ReportsViewerStructureFetcher;
|
|
473
|
+
/**
|
|
474
|
+
* Optional custom fetcher for sheet content.
|
|
475
|
+
* If provided, networkOperation is not used for sheet content.
|
|
476
|
+
*/
|
|
477
|
+
fetchSheetContent?: ReportsViewerSheetContentFetcher;
|
|
415
478
|
}
|
|
416
479
|
/**
|
|
417
480
|
* Owner state for the component, used to define internal style and behavior props.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../../packages/gclick/src/components/ReportsViewer/types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,sBAAsB,CAAC;AAC7C,OAAO,EAAE,gBAAgB,EAAE,KAAK,EAAE,MAAM,aAAa,CAAC;AACtD,OAAO,EAAE,4BAA4B,EAAE,MAAM,aAAa,CAAC;AAC3D,OAAO,EAAE,kBAAkB,EAAE,MAAM,2BAA2B,CAAC;AAC/D,OAAO,EAAE,gBAAgB,EAAE,MAAM,iBAAiB,CAAC;AACnD,OAAO,EAAE,sBAAsB,EAAE,MAAM,iBAAiB,CAAC;AAEzD;;;GAGG;AACH,MAAM,MAAM,WAAW,GACnB,UAAU,GACV,gBAAgB,GAChB,cAAc,GACd,UAAU,GACV,aAAa,GACb,WAAW,GACX,KAAK,CAAC;AAEV;;;;GAIG;AACH,MAAM,WAAW,oBAAoB;IACnC;;OAEG;IACH,WAAW,EAAE,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IAC9B;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IACf;;OAEG;IACH,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB;AAED;;GAEG;AACH,MAAM,WAAW,YAAY;IAC3B;;OAEG;IACH,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC;IACpB;;OAEG;IACH,CAAC,EAAE,MAAM,GAAG,MAAM,GAAG,OAAO,GAAG,IAAI,CAAC;IACpC;;;OAGG;IACH,QAAQ,CAAC,EAAE,oBAAoB,CAAC;CACjC;AAED;;GAEG;AACH,MAAM,WAAW,cAAc;IAC7B
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../../packages/gclick/src/components/ReportsViewer/types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,sBAAsB,CAAC;AAC7C,OAAO,EAAE,gBAAgB,EAAE,KAAK,EAAE,MAAM,aAAa,CAAC;AACtD,OAAO,EAAE,4BAA4B,EAAE,MAAM,aAAa,CAAC;AAC3D,OAAO,EAAE,kBAAkB,EAAE,MAAM,2BAA2B,CAAC;AAC/D,OAAO,EAAE,gBAAgB,EAAE,MAAM,iBAAiB,CAAC;AACnD,OAAO,EAAE,sBAAsB,EAAE,MAAM,iBAAiB,CAAC;AAEzD;;;GAGG;AACH,MAAM,MAAM,WAAW,GACnB,UAAU,GACV,gBAAgB,GAChB,cAAc,GACd,UAAU,GACV,aAAa,GACb,WAAW,GACX,KAAK,CAAC;AAEV;;;;GAIG;AACH,MAAM,WAAW,oBAAoB;IACnC;;OAEG;IACH,WAAW,EAAE,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IAC9B;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IACf;;OAEG;IACH,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB;AAED;;GAEG;AACH,MAAM,WAAW,YAAY;IAC3B;;OAEG;IACH,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC;IACpB;;OAEG;IACH,CAAC,EAAE,MAAM,GAAG,MAAM,GAAG,OAAO,GAAG,IAAI,CAAC;IACpC;;;OAG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