iguazio.dashboard-react-controls 3.1.7 → 3.1.8

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.
@@ -57,4 +57,10 @@ export function useTable({ ref, selectedItem, skipTableWrapper, tableClassName }
57
57
  tableStore: any;
58
58
  tableWrapperClass: string;
59
59
  };
60
+ export function useTableScroll({ content, selectedItem, isAllVersions, tableId }: {
61
+ content: any;
62
+ selectedItem: any;
63
+ isAllVersions: any;
64
+ tableId?: string;
65
+ }): void;
60
66
  //# sourceMappingURL=useTable.hook.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"useTable.hook.d.ts","sourceRoot":"","sources":["../../src/lib/hooks/useTable.hook.jsx"],"names":[],"mappings":"AAoHO;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EA4EN"}
1
+ {"version":3,"file":"useTable.hook.d.ts","sourceRoot":"","sources":["../../src/lib/hooks/useTable.hook.jsx"],"names":[],"mappings":"AAoHO;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EA4EN;AAEM;;;;;SA8EN"}
@@ -1,81 +1,81 @@
1
- import { jsx as b, jsxs as v } from "react/jsx-runtime";
2
- import { useRef as u, useEffect as w, useCallback as I } from "react";
1
+ import { jsx as w, jsxs as C } from "react/jsx-runtime";
2
+ import { useRef as T, useEffect as _, useCallback as v, useMemo as I } from "react";
3
3
  import e from "prop-types";
4
- import y from "classnames";
5
- import { useSelector as B } from "react-redux";
6
- import { isEmpty as C } from "lodash";
7
- import j from "../elements/TableHead/TableHead.mjs";
8
- import { MAIN_TABLE_BODY_ID as E, MAIN_TABLE_ID as N } from "../constants.mjs";
9
- import { VIRTUALIZATION_CONFIG as q, SORT_PROPS as O } from "../types.mjs";
10
- const P = ({
11
- children: l,
12
- hideActionsMenu: f = !1,
13
- mainRowItemsCount: R = 1,
14
- pageData: r = null,
15
- renderDetails: m = null,
16
- selectedItem: _ = {},
17
- sortProps: i = null,
18
- tableBodyRef: h,
19
- tableClass: s,
20
- tableContentRef: n,
21
- tableHeadRef: c,
22
- tableHeaders: o,
23
- tablePanelRef: g,
24
- tableRef: T,
25
- tableStore: a = null,
26
- tableWrapperClass: t,
27
- virtualizationConfig: d = {
4
+ import B from "classnames";
5
+ import { useSelector as N } from "react-redux";
6
+ import { isEmpty as P } from "lodash";
7
+ import S from "../elements/TableHead/TableHead.mjs";
8
+ import { MAIN_TABLE_BODY_ID as x, MAIN_TABLE_ID as E } from "../constants.mjs";
9
+ import { VIRTUALIZATION_CONFIG as O, SORT_PROPS as A } from "../types.mjs";
10
+ const L = ({
11
+ children: n,
12
+ hideActionsMenu: s = !1,
13
+ mainRowItemsCount: p = 1,
14
+ pageData: u = null,
15
+ renderDetails: l = null,
16
+ selectedItem: f = {},
17
+ sortProps: c = null,
18
+ tableBodyRef: m,
19
+ tableClass: t,
20
+ tableContentRef: d,
21
+ tableHeadRef: r,
22
+ tableHeaders: a,
23
+ tablePanelRef: i,
24
+ tableRef: h,
25
+ tableStore: b = null,
26
+ tableWrapperClass: o,
27
+ virtualizationConfig: g = {
28
28
  tableBodyPaddingTop: 0,
29
29
  startIndex: -1,
30
30
  endIndex: -1
31
31
  }
32
- }) => /* @__PURE__ */ b("div", { className: "table__flex", children: /* @__PURE__ */ v("div", { className: "table__content", id: "table-content", ref: n, children: [
33
- /* @__PURE__ */ v("div", { className: t, children: [
34
- /* @__PURE__ */ v(
32
+ }) => /* @__PURE__ */ w("div", { className: "table__flex", children: /* @__PURE__ */ C("div", { className: "table__content", id: "table-content", ref: d, children: [
33
+ /* @__PURE__ */ C("div", { className: o, children: [
34
+ /* @__PURE__ */ C(
35
35
  "table",
36
36
  {
37
- id: N,
38
- className: s,
37
+ id: E,
38
+ className: t,
39
39
  cellPadding: "0",
40
40
  cellSpacing: "0",
41
- ref: T,
41
+ ref: h,
42
42
  children: [
43
- (o == null ? void 0 : o.length) > 0 && /* @__PURE__ */ b(
44
- j,
43
+ (a == null ? void 0 : a.length) > 0 && /* @__PURE__ */ w(
44
+ S,
45
45
  {
46
- content: o,
47
- hideActionsMenu: f,
48
- mainRowItemsCount: R,
49
- ref: c,
50
- selectedItem: _,
51
- sortProps: i
46
+ content: a,
47
+ hideActionsMenu: s,
48
+ mainRowItemsCount: p,
49
+ ref: r,
50
+ selectedItem: f,
51
+ sortProps: c
52
52
  }
53
53
  ),
54
- /* @__PURE__ */ b(
54
+ /* @__PURE__ */ w(
55
55
  "tbody",
56
56
  {
57
57
  className: "table-body",
58
- id: E,
59
- style: { paddingTop: d.tableBodyPaddingTop },
60
- ref: h,
61
- children: l
58
+ id: x,
59
+ style: { paddingTop: g.tableBodyPaddingTop },
60
+ ref: m,
61
+ children: n
62
62
  }
63
63
  )
64
64
  ]
65
65
  }
66
66
  ),
67
- (a == null ? void 0 : a.isTablePanelOpen) && (r == null ? void 0 : r.tablePanel) && /* @__PURE__ */ b("div", { className: "table__panel-container", ref: g, children: /* @__PURE__ */ b("div", { className: "table__panel", children: r.tablePanel }) })
67
+ (b == null ? void 0 : b.isTablePanelOpen) && (u == null ? void 0 : u.tablePanel) && /* @__PURE__ */ w("div", { className: "table__panel-container", ref: i, children: /* @__PURE__ */ w("div", { className: "table__panel", children: u.tablePanel }) })
68
68
  ] }),
69
- m && m()
69
+ l && l()
70
70
  ] }) });
71
- P.propTypes = {
71
+ L.propTypes = {
72
72
  children: e.node.isRequired,
73
73
  hideActionsMenu: e.bool,
74
74
  mainRowItemsCount: e.number,
75
75
  pageData: e.object,
76
76
  renderDetails: e.func,
77
77
  selectedItem: e.object,
78
- sortProps: O,
78
+ sortProps: A,
79
79
  tableBodyRef: e.object.isRequired,
80
80
  tableClass: e.string.isRequired,
81
81
  tableContentRef: e.object.isRequired,
@@ -85,45 +85,91 @@ P.propTypes = {
85
85
  tableRef: e.object.isRequired,
86
86
  tableStore: e.object,
87
87
  tableWrapperClass: e.string.isRequired,
88
- virtualizationConfig: q
88
+ virtualizationConfig: O
89
89
  };
90
- const F = ({ ref: l, selectedItem: f, skipTableWrapper: R = !1, tableClassName: r = "" }) => {
91
- const m = u(null), _ = u(null), i = (l == null ? void 0 : l.tableRef) ?? m, h = (l == null ? void 0 : l.tableBodyRef) ?? _, s = u(null), n = u(null), c = u(null), o = B((t) => t.tableStore) ?? {}, g = y(
90
+ const K = ({ ref: n, selectedItem: s, skipTableWrapper: p = !1, tableClassName: u = "" }) => {
91
+ const l = T(null), f = T(null), c = (n == null ? void 0 : n.tableRef) ?? l, m = (n == null ? void 0 : n.tableBodyRef) ?? f, t = T(null), d = T(null), r = T(null), a = N((o) => o.tableStore) ?? {}, i = B(
92
92
  "table",
93
93
  "table-main",
94
- !C(f) && "table-with-details",
95
- r && r
96
- ), T = y(!R && "table__wrapper");
97
- w(() => {
98
- const t = () => {
99
- if (c != null && c.current && (s != null && s.current) && (n != null && n.current)) {
100
- const d = s.current.getBoundingClientRect().height, L = c.current.getBoundingClientRect(), p = window.innerHeight - L.top;
101
- n.current.style.height = d > p ? `${p}px` : `${p - (p - d)}px`;
94
+ !P(s) && "table-with-details",
95
+ u && u
96
+ ), h = B(!p && "table__wrapper");
97
+ _(() => {
98
+ const o = () => {
99
+ if (r != null && r.current && (t != null && t.current) && (d != null && d.current)) {
100
+ const g = t.current.getBoundingClientRect().height, y = r.current.getBoundingClientRect(), R = window.innerHeight - y.top;
101
+ d.current.style.height = g > R ? `${R}px` : `${R - (R - g)}px`;
102
102
  }
103
103
  };
104
- return o.isTablePanelOpen && n.current && (t(), document.getElementById("main-wrapper").addEventListener("scroll", t), window.addEventListener("resize", t)), () => {
105
- window.removeEventListener("scroll", t), window.removeEventListener("resize", t);
104
+ return a.isTablePanelOpen && d.current && (o(), document.getElementById("main-wrapper").addEventListener("scroll", o), window.addEventListener("resize", o)), () => {
105
+ window.removeEventListener("scroll", o), window.removeEventListener("resize", o);
106
106
  };
107
- }, [o.isTablePanelOpen]);
108
- const a = I(
109
- (t) => {
110
- i.current && (t.target.scrollLeft > 0 ? i.current.classList.add("table__scrolled") : i.current.classList.remove("table__scrolled"));
107
+ }, [a.isTablePanelOpen]);
108
+ const b = v(
109
+ (o) => {
110
+ c.current && (o.target.scrollLeft > 0 ? c.current.classList.add("table__scrolled") : c.current.classList.remove("table__scrolled"));
111
111
  },
112
- [i]
112
+ [c]
113
113
  );
114
- return w(() => (window.addEventListener("scroll", a, !0), () => window.removeEventListener("scroll", a, !0)), [a]), {
115
- TableContainer: P,
116
- tableBodyRef: h,
117
- tableClass: g,
118
- tableContentRef: s,
119
- tableHeadRef: c,
120
- tablePanelRef: n,
121
- tableRef: i,
122
- tableStore: o,
123
- tableWrapperClass: T
114
+ return _(() => (window.addEventListener("scroll", b, !0), () => window.removeEventListener("scroll", b, !0)), [b]), {
115
+ TableContainer: L,
116
+ tableBodyRef: m,
117
+ tableClass: i,
118
+ tableContentRef: t,
119
+ tableHeadRef: r,
120
+ tablePanelRef: d,
121
+ tableRef: c,
122
+ tableStore: a,
123
+ tableWrapperClass: h
124
124
  };
125
+ }, Z = ({
126
+ content: n,
127
+ selectedItem: s,
128
+ isAllVersions: p,
129
+ tableId: u = E
130
+ }) => {
131
+ const l = T(null), f = I(
132
+ () => p ? "identifierUnique" : "identifier",
133
+ [p]
134
+ ), c = v(
135
+ (m, t, d = !1) => {
136
+ const r = t == null ? void 0 : t.findIndex(
137
+ (i) => {
138
+ var h;
139
+ return ((h = i == null ? void 0 : i.ui) == null ? void 0 : h[f]) === m;
140
+ }
141
+ ), a = () => {
142
+ var h;
143
+ const i = document.getElementById(u);
144
+ if (r && i) {
145
+ const b = i.getElementsByTagName("tr");
146
+ if (r <= b.length) {
147
+ const o = ((h = i.querySelector("thead")) == null ? void 0 : h.getBoundingClientRect().height) ?? 0, g = b[r].getBoundingClientRect(), y = i.getBoundingClientRect(), R = g.height / 2, q = (y.height - o) / 2, j = g.height * (r + 1) - R - q;
148
+ i.scrollTo({
149
+ top: j
150
+ });
151
+ }
152
+ }
153
+ };
154
+ r >= 0 && (d ? requestAnimationFrame(() => {
155
+ a();
156
+ }) : a());
157
+ },
158
+ [f, u]
159
+ );
160
+ _(() => {
161
+ var m, t;
162
+ try {
163
+ P(s) ? l.current && (c((t = l.current) == null ? void 0 : t[f], n), l.current = null) : l.current ? l.current = s.ui : (l.current = s.ui, c((m = s == null ? void 0 : s.ui) == null ? void 0 : m[f], n, !0));
164
+ } catch {
165
+ l.current = null;
166
+ }
167
+ }, [s, n, c, f]), _(() => () => {
168
+ l.current = null;
169
+ }, [n]);
125
170
  };
126
171
  export {
127
- F as useTable
172
+ K as useTable,
173
+ Z as useTableScroll
128
174
  };
129
175
  //# sourceMappingURL=useTable.hook.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"useTable.hook.mjs","sources":["../../src/lib/hooks/useTable.hook.jsx"],"sourcesContent":["/*\nCopyright 2019 Iguazio Systems Ltd.\n\nLicensed under the Apache License, Version 2.0 (the \"License\") with\nan addition restriction as set forth herein. You may not use this\nfile except in compliance with the License. You may obtain a copy of\nthe License at http://www.apache.org/licenses/LICENSE-2.0.\n\nUnless required by applicable law or agreed to in writing, software\ndistributed under the License is distributed on an \"AS IS\" BASIS,\nWITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or\nimplied. See the License for the specific language governing\npermissions and limitations under the License.\n\nIn addition, you may not use the software for any purposes that are\nillegal under applicable law, and the grant of the foregoing license\nunder the Apache 2.0 license is conditioned upon your compliance with\nsuch restriction.\n*/\nimport React, { useCallback, useEffect, useRef } from 'react'\nimport PropTypes from 'prop-types'\nimport classnames from 'classnames'\nimport { useSelector } from 'react-redux'\nimport { isEmpty } from 'lodash'\n\nimport TableHead from '../elements/TableHead/TableHead'\n\nimport { MAIN_TABLE_BODY_ID, MAIN_TABLE_ID } from '../constants'\nimport { SORT_PROPS } from '../types'\nimport { VIRTUALIZATION_CONFIG } from '../types'\n\nconst TableContainer = ({\n children,\n hideActionsMenu = false,\n mainRowItemsCount = 1,\n pageData = null,\n renderDetails = null,\n selectedItem = {},\n sortProps = null,\n tableBodyRef,\n tableClass,\n tableContentRef,\n tableHeadRef,\n tableHeaders,\n tablePanelRef,\n tableRef,\n tableStore = null,\n tableWrapperClass,\n virtualizationConfig = {\n tableBodyPaddingTop: 0,\n startIndex: -1,\n endIndex: -1\n }\n}) => {\n return (\n <div className=\"table__flex\">\n <div className=\"table__content\" id=\"table-content\" ref={tableContentRef}>\n <div className={tableWrapperClass}>\n <table\n id={MAIN_TABLE_ID}\n className={tableClass}\n cellPadding=\"0\"\n cellSpacing=\"0\"\n ref={tableRef}\n >\n {tableHeaders?.length > 0 && (\n <TableHead\n content={tableHeaders}\n hideActionsMenu={hideActionsMenu}\n mainRowItemsCount={mainRowItemsCount}\n ref={tableHeadRef}\n selectedItem={selectedItem}\n sortProps={sortProps}\n />\n )}\n <tbody\n className=\"table-body\"\n id={MAIN_TABLE_BODY_ID}\n style={{ paddingTop: virtualizationConfig.tableBodyPaddingTop }}\n ref={tableBodyRef}\n >\n {children}\n </tbody>\n </table>\n {tableStore?.isTablePanelOpen && pageData?.tablePanel && (\n <div className=\"table__panel-container\" ref={tablePanelRef}>\n <div className=\"table__panel\">{pageData.tablePanel}</div>\n </div>\n )}\n </div>\n {renderDetails && renderDetails()}\n </div>\n </div>\n )\n}\n\nTableContainer.propTypes = {\n children: PropTypes.node.isRequired,\n hideActionsMenu: PropTypes.bool,\n mainRowItemsCount: PropTypes.number,\n pageData: PropTypes.object,\n renderDetails: PropTypes.func,\n selectedItem: PropTypes.object,\n sortProps: SORT_PROPS,\n tableBodyRef: PropTypes.object.isRequired,\n tableClass: PropTypes.string.isRequired,\n tableContentRef: PropTypes.object.isRequired,\n tableHeadRef: PropTypes.object.isRequired,\n tableHeaders: PropTypes.arrayOf(PropTypes.object).isRequired,\n tablePanelRef: PropTypes.object.isRequired,\n tableRef: PropTypes.object.isRequired,\n tableStore: PropTypes.object,\n tableWrapperClass: PropTypes.string.isRequired,\n virtualizationConfig: VIRTUALIZATION_CONFIG\n}\n\nexport const useTable = ({ ref, selectedItem, skipTableWrapper = false, tableClassName = '' }) => {\n const tableRefLocal = useRef(null)\n const tableBodyRefLocal = useRef(null)\n const tableRef = ref?.tableRef ?? tableRefLocal\n const tableBodyRef = ref?.tableBodyRef ?? tableBodyRefLocal\n const tableContentRef = useRef(null)\n const tablePanelRef = useRef(null)\n const tableHeadRef = useRef(null)\n const tableStore = useSelector(store => store.tableStore) ?? {}\n\n const tableClass = classnames(\n 'table',\n 'table-main',\n !isEmpty(selectedItem) && 'table-with-details',\n tableClassName && tableClassName\n )\n const tableWrapperClass = classnames(!skipTableWrapper && 'table__wrapper')\n\n useEffect(() => {\n const calculatePanelHeight = () => {\n if (tableHeadRef?.current && tableContentRef?.current && tablePanelRef?.current) {\n const tableContentHeight = tableContentRef.current.getBoundingClientRect().height\n const tableHeadCords = tableHeadRef.current.getBoundingClientRect()\n const panelHeight = window.innerHeight - tableHeadCords.top\n\n tablePanelRef.current.style.height =\n tableContentHeight > panelHeight\n ? `${panelHeight}px`\n : `${panelHeight - (panelHeight - tableContentHeight)}px`\n }\n }\n\n if (tableStore.isTablePanelOpen && tablePanelRef.current) {\n calculatePanelHeight()\n\n document.getElementById('main-wrapper').addEventListener('scroll', calculatePanelHeight)\n window.addEventListener('resize', calculatePanelHeight)\n }\n return () => {\n window.removeEventListener('scroll', calculatePanelHeight)\n window.removeEventListener('resize', calculatePanelHeight)\n }\n }, [tableStore.isTablePanelOpen])\n\n const handleTableHScroll = useCallback(\n e => {\n if (tableRef.current) {\n const tableScrollPosition = e.target.scrollLeft\n\n if (tableScrollPosition > 0) {\n tableRef.current.classList.add('table__scrolled')\n } else {\n tableRef.current.classList.remove('table__scrolled')\n }\n }\n },\n [tableRef]\n )\n\n useEffect(() => {\n window.addEventListener('scroll', handleTableHScroll, true)\n\n return () => window.removeEventListener('scroll', handleTableHScroll, true)\n }, [handleTableHScroll])\n\n return {\n TableContainer,\n tableBodyRef,\n tableClass,\n tableContentRef,\n tableHeadRef,\n tablePanelRef,\n tableRef,\n tableStore,\n tableWrapperClass\n }\n}\n"],"names":["TableContainer","children","hideActionsMenu","mainRowItemsCount","pageData","renderDetails","selectedItem","sortProps","tableBodyRef","tableClass","tableContentRef","tableHeadRef","tableHeaders","tablePanelRef","tableRef","tableStore","tableWrapperClass","virtualizationConfig","jsx","jsxs","MAIN_TABLE_ID","TableHead","MAIN_TABLE_BODY_ID","PropTypes","SORT_PROPS","VIRTUALIZATION_CONFIG","useTable","ref","skipTableWrapper","tableClassName","tableRefLocal","useRef","tableBodyRefLocal","useSelector","store","classnames","isEmpty","useEffect","calculatePanelHeight","tableContentHeight","tableHeadCords","panelHeight","handleTableHScroll","useCallback","e"],"mappings":";;;;;;;;;AA+BA,MAAMA,IAAiB,CAAC;AAAA,EACtB,UAAAC;AAAA,EACA,iBAAAC,IAAkB;AAAA,EAClB,mBAAAC,IAAoB;AAAA,EACpB,UAAAC,IAAW;AAAA,EACX,eAAAC,IAAgB;AAAA,EAChB,cAAAC,IAAe,CAAC;AAAA,EAChB,WAAAC,IAAY;AAAA,EACZ,cAAAC;AAAA,EACA,YAAAC;AAAA,EACA,iBAAAC;AAAA,EACA,cAAAC;AAAA,EACA,cAAAC;AAAA,EACA,eAAAC;AAAA,EACA,UAAAC;AAAA,EACA,YAAAC,IAAa;AAAA,EACb,mBAAAC;AAAA,EACA,sBAAAC,IAAuB;AAAA,IACrB,qBAAqB;AAAA,IACrB,YAAY;AAAA,IACZ,UAAU;AAAA,EAAA;AAEd,MAEI,gBAAAC,EAAC,OAAI,EAAA,WAAU,eACb,UAAA,gBAAAC,EAAC,OAAI,EAAA,WAAU,kBAAiB,IAAG,iBAAgB,KAAKT,GACtD,UAAA;AAAA,EAAC,gBAAAS,EAAA,OAAA,EAAI,WAAWH,GACd,UAAA;AAAA,IAAA,gBAAAG;AAAA,MAAC;AAAA,MAAA;AAAA,QACC,IAAIC;AAAA,QACJ,WAAWX;AAAA,QACX,aA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AoB,UAAUA,CAAoB;AAAA,IAC3D;AAAA,EAAA,GACC,CAACvB,EAAW,gBAAgB,CAAC;AAEhC,QAAM2B,IAAqBC;AAAA,IACzB,CAAKC,MAAA;AACH,MAAI9B,EAAS,YACiB8B,EAAE,OAAO,aAEX,IACf9B,EAAA,QAAQ,UAAU,IAAI,iBAAiB,IAEvCA,EAAA,QAAQ,UAAU,OAAO,iBAAiB;AAAA,IAGzD;AAAA,IACA,CAACA,CAAQ;AAAA,EACX;AAEA,SAAAuB,EAAU,OACD,OAAA,iBAAiB,UAAUK,GAAoB,EAAI,GAEnD,MAAM,OAAO,oBAAoB,UAAUA,GAAoB,EAAI,IACzE,CAACA,CAAkB,CAAC,GAEhB;AAAA,IACL,gBAAA1C;AAAA,IACA,cAAAQ;AAAA,IACA,YAAAC;AAAA,IACA,iBAAAC;AAAA,IACA,cAAAC;AAAA,IACA,eAAAE;AAAA,IACA,UAAAC;AAAA,IACA,YAAAC;AAAA,IACA,mBAAAC;AAAA,EACF;AACF;"}
1
+ {"version":3,"file":"useTable.hook.mjs","sources":["../../src/lib/hooks/useTable.hook.jsx"],"sourcesContent":["/*\nCopyright 2019 Iguazio Systems Ltd.\n\nLicensed under the Apache License, Version 2.0 (the \"License\") with\nan addition restriction as set forth herein. You may not use this\nfile except in compliance with the License. You may obtain a copy of\nthe License at http://www.apache.org/licenses/LICENSE-2.0.\n\nUnless required by applicable law or agreed to in writing, software\ndistributed under the License is distributed on an \"AS IS\" BASIS,\nWITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or\nimplied. See the License for the specific language governing\npermissions and limitations under the License.\n\nIn addition, you may not use the software for any purposes that are\nillegal under applicable law, and the grant of the foregoing license\nunder the Apache 2.0 license is conditioned upon your compliance with\nsuch restriction.\n*/\nimport React, { useCallback, useEffect, useMemo, useRef } from 'react'\nimport PropTypes from 'prop-types'\nimport classnames from 'classnames'\nimport { useSelector } from 'react-redux'\nimport { isEmpty } from 'lodash'\n\nimport TableHead from '../elements/TableHead/TableHead'\n\nimport { MAIN_TABLE_BODY_ID, MAIN_TABLE_ID } from '../constants'\nimport { SORT_PROPS } from '../types'\nimport { VIRTUALIZATION_CONFIG } from '../types'\n\nconst TableContainer = ({\n children,\n hideActionsMenu = false,\n mainRowItemsCount = 1,\n pageData = null,\n renderDetails = null,\n selectedItem = {},\n sortProps = null,\n tableBodyRef,\n tableClass,\n tableContentRef,\n tableHeadRef,\n tableHeaders,\n tablePanelRef,\n tableRef,\n tableStore = null,\n tableWrapperClass,\n virtualizationConfig = {\n tableBodyPaddingTop: 0,\n startIndex: -1,\n endIndex: -1\n }\n}) => {\n return (\n <div className=\"table__flex\">\n <div className=\"table__content\" id=\"table-content\" ref={tableContentRef}>\n <div className={tableWrapperClass}>\n <table\n id={MAIN_TABLE_ID}\n className={tableClass}\n cellPadding=\"0\"\n cellSpacing=\"0\"\n ref={tableRef}\n >\n {tableHeaders?.length > 0 && (\n <TableHead\n content={tableHeaders}\n hideActionsMenu={hideActionsMenu}\n mainRowItemsCount={mainRowItemsCount}\n ref={tableHeadRef}\n selectedItem={selectedItem}\n sortProps={sortProps}\n />\n )}\n <tbody\n className=\"table-body\"\n id={MAIN_TABLE_BODY_ID}\n style={{ paddingTop: virtualizationConfig.tableBodyPaddingTop }}\n ref={tableBodyRef}\n >\n {children}\n </tbody>\n </table>\n {tableStore?.isTablePanelOpen && pageData?.tablePanel && (\n <div className=\"table__panel-container\" ref={tablePanelRef}>\n <div className=\"table__panel\">{pageData.tablePanel}</div>\n </div>\n )}\n </div>\n {renderDetails && renderDetails()}\n </div>\n </div>\n )\n}\n\nTableContainer.propTypes = {\n children: PropTypes.node.isRequired,\n hideActionsMenu: PropTypes.bool,\n mainRowItemsCount: PropTypes.number,\n pageData: PropTypes.object,\n renderDetails: PropTypes.func,\n selectedItem: PropTypes.object,\n sortProps: SORT_PROPS,\n tableBodyRef: PropTypes.object.isRequired,\n tableClass: PropTypes.string.isRequired,\n tableContentRef: PropTypes.object.isRequired,\n tableHeadRef: PropTypes.object.isRequired,\n tableHeaders: PropTypes.arrayOf(PropTypes.object).isRequired,\n tablePanelRef: PropTypes.object.isRequired,\n tableRef: PropTypes.object.isRequired,\n tableStore: PropTypes.object,\n tableWrapperClass: PropTypes.string.isRequired,\n virtualizationConfig: VIRTUALIZATION_CONFIG\n}\n\nexport const useTable = ({ ref, selectedItem, skipTableWrapper = false, tableClassName = '' }) => {\n const tableRefLocal = useRef(null)\n const tableBodyRefLocal = useRef(null)\n const tableRef = ref?.tableRef ?? tableRefLocal\n const tableBodyRef = ref?.tableBodyRef ?? tableBodyRefLocal\n const tableContentRef = useRef(null)\n const tablePanelRef = useRef(null)\n const tableHeadRef = useRef(null)\n const tableStore = useSelector(store => store.tableStore) ?? {}\n\n const tableClass = classnames(\n 'table',\n 'table-main',\n !isEmpty(selectedItem) && 'table-with-details',\n tableClassName && tableClassName\n )\n const tableWrapperClass = classnames(!skipTableWrapper && 'table__wrapper')\n\n useEffect(() => {\n const calculatePanelHeight = () => {\n if (tableHeadRef?.current && tableContentRef?.current && tablePanelRef?.current) {\n const tableContentHeight = tableContentRef.current.getBoundingClientRect().height\n const tableHeadCords = tableHeadRef.current.getBoundingClientRect()\n const panelHeight = window.innerHeight - tableHeadCords.top\n\n tablePanelRef.current.style.height =\n tableContentHeight > panelHeight\n ? `${panelHeight}px`\n : `${panelHeight - (panelHeight - tableContentHeight)}px`\n }\n }\n\n if (tableStore.isTablePanelOpen && tablePanelRef.current) {\n calculatePanelHeight()\n\n document.getElementById('main-wrapper').addEventListener('scroll', calculatePanelHeight)\n window.addEventListener('resize', calculatePanelHeight)\n }\n return () => {\n window.removeEventListener('scroll', calculatePanelHeight)\n window.removeEventListener('resize', calculatePanelHeight)\n }\n }, [tableStore.isTablePanelOpen])\n\n const handleTableHScroll = useCallback(\n e => {\n if (tableRef.current) {\n const tableScrollPosition = e.target.scrollLeft\n\n if (tableScrollPosition > 0) {\n tableRef.current.classList.add('table__scrolled')\n } else {\n tableRef.current.classList.remove('table__scrolled')\n }\n }\n },\n [tableRef]\n )\n\n useEffect(() => {\n window.addEventListener('scroll', handleTableHScroll, true)\n\n return () => window.removeEventListener('scroll', handleTableHScroll, true)\n }, [handleTableHScroll])\n\n return {\n TableContainer,\n tableBodyRef,\n tableClass,\n tableContentRef,\n tableHeadRef,\n tablePanelRef,\n tableRef,\n tableStore,\n tableWrapperClass\n }\n}\n\nexport const useTableScroll = ({\n content,\n selectedItem,\n isAllVersions,\n tableId = MAIN_TABLE_ID\n}) => {\n const lastSelectedItemDataRef = useRef(null)\n const itemIdentifierKey = useMemo(\n () => (isAllVersions ? 'identifierUnique' : 'identifier'),\n [isAllVersions]\n )\n\n const handleSelectItemChanges = useCallback(\n (identifier, content, async = false) => {\n const selectedItemIndex = content?.findIndex(\n item => item?.ui?.[itemIdentifierKey] === identifier\n )\n\n const triggerScroll = () => {\n const tableElement = document.getElementById(tableId)\n\n if (selectedItemIndex && tableElement) {\n const rows = tableElement.getElementsByTagName('tr')\n\n if (selectedItemIndex <= rows.length) {\n const theadHeight =\n tableElement.querySelector('thead')?.getBoundingClientRect().height ?? 0\n const rowRect = rows[selectedItemIndex].getBoundingClientRect()\n const tableRect = tableElement.getBoundingClientRect()\n const rowCenterY = rowRect.height / 2\n const tableCenterY = (tableRect.height - theadHeight) / 2\n const heightToRow = rowRect.height * (selectedItemIndex + 1)\n const scrollY = heightToRow - rowCenterY - tableCenterY\n\n tableElement.scrollTo({\n top: scrollY\n })\n }\n }\n }\n\n if (selectedItemIndex >= 0) {\n if (async) {\n requestAnimationFrame(() => {\n triggerScroll()\n })\n } else {\n triggerScroll()\n }\n }\n },\n [itemIdentifierKey, tableId]\n )\n\n useEffect(() => {\n try {\n if (!isEmpty(selectedItem)) {\n if (!lastSelectedItemDataRef.current) {\n lastSelectedItemDataRef.current = selectedItem.ui\n handleSelectItemChanges(selectedItem?.ui?.[itemIdentifierKey], content, true)\n } else {\n lastSelectedItemDataRef.current = selectedItem.ui\n }\n } else if (lastSelectedItemDataRef.current) {\n handleSelectItemChanges(lastSelectedItemDataRef.current?.[itemIdentifierKey], content)\n\n lastSelectedItemDataRef.current = null\n }\n } catch {\n lastSelectedItemDataRef.current = null\n }\n }, [selectedItem, content, handleSelectItemChanges, itemIdentifierKey])\n\n useEffect(() => {\n return () => {\n lastSelectedItemDataRef.current = null\n }\n }, [content])\n}\n"],"names":["TableContainer","children","hideActionsMenu","mainRowItemsCount","pageData","renderDetails","selectedItem","sortProps","tableBodyRef","tableClass","tableContentRef","tableHeadRef","tableHeaders","tablePanelRef","tableRef","tableStore","tableWrapperClass","virtualizationConfig","jsx","jsxs","MAIN_TABLE_ID","TableHead","MAIN_TABLE_BODY_ID","PropTypes","SORT_PROPS","VIRTUALIZATION_CONFIG","useTable","ref","skipTableWrapper","tableClassName","tableRefLocal","useRef","tableBodyRefLocal","useSelector","store","classnames","isEmpty","useEffect","calculatePanelHeight","tableContentHeight","tableHeadCords","panelHeight","handleTableHScroll","useCallback","e","useTableScroll","content","isAllVersions","tableId","lastSelectedItemDataRef","itemIdentifierKey","useMemo","handleSelectItemChanges","identifier","async","selectedItemIndex","item","_a","triggerScroll","tableElement","rows","theadHeight","rowRect","tableRect","rowCenterY","tableCenterY","scrollY","_b"],"mappings":";;;;;;;;;AA+BA,MAAMA,IAAiB,CAAC;AAAA,EACtB,UAAAC;AAAA,EACA,iBAAAC,IAAkB;AAAA,EAClB,mBAAAC,IAAoB;AAAA,EACpB,UAAAC,IAAW;AAAA,EACX,eAAAC,IAAgB;AAAA,EAChB,cAAAC,IAAe,CAAC;AAAA,EAChB,WAAAC,IAAY;AAAA,EACZ,cAAAC;AAAA,EACA,YAAAC;AAAA,EACA,iBAAAC;AAAA,EACA,cAAAC;AAAA,EACA,cAAAC;AAAA,EACA,eAAAC;AAAA,EACA,UAAAC;AAAA,EACA,YAAAC,IAAa;AAAA,EACb,mBAAAC;AAAA,EACA,sBAAAC,IAAuB;AAAA,IACrB,qBAAqB;AAAA,IACrB,YAAY;A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AAAG,EAAwB,UAAU;AAAA,IAAA;AAAA,KAEnC,CAAC3C,GAAcwC,GAASM,GAAyBF,CAAiB,CAAC,GAEtEb,EAAU,MACD,MAAM;AACX,IAAAY,EAAwB,UAAU;AAAA,EACpC,GACC,CAACH,CAAO,CAAC;AACd;"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "iguazio.dashboard-react-controls",
3
- "version": "3.1.7",
3
+ "version": "3.1.8",
4
4
  "description": "Collection of resources (such as CSS styles, fonts and images) and ReactJS 17.x components to share among different Iguazio React repos.",
5
5
  "module": "./dist/index.mjs",
6
6
  "main": "./dist/index.mjs",