@heliux-org/design-system-core 0.0.294-TableTestBuild → 0.0.294

Sign up to get free protection for your applications and to get access to all the features.
Files changed (34) hide show
  1. package/dist/Table.css +1 -1
  2. package/dist/Table.css.map +1 -1
  3. package/dist/Table.js +1 -1
  4. package/dist/Table.js.map +1 -1
  5. package/dist/components/NewTable/Table.js +1 -2
  6. package/dist/components/NewTable/Table.js.map +1 -1
  7. package/dist/components/NewTable/components/useLeafyGreenTable/useLeafyGreenTable.js +3 -0
  8. package/dist/components/NewTable/components/useLeafyGreenTable/useLeafyGreenTable.js.map +1 -1
  9. package/dist/esm/components/NewTable/Table.d.ts.map +1 -1
  10. package/dist/esm/components/NewTable/components/useLeafyGreenTable/useLeafyGreenTable.d.ts.map +1 -1
  11. package/dist/esm/src/components/NewTable/Table.js +1 -1
  12. package/dist/esm/src/components/NewTable/Table.js.map +1 -1
  13. package/dist/esm/src/components/NewTable/Table.module.scss.js +1 -1
  14. package/dist/esm/src/components/NewTable/components/useLeafyGreenTable/useLeafyGreenTable.js +1 -1
  15. package/dist/esm/src/components/NewTable/components/useLeafyGreenTable/useLeafyGreenTable.js.map +1 -1
  16. package/dist/main.css +1 -1
  17. package/dist/main.css.map +1 -1
  18. package/dist/main.js +2 -2
  19. package/dist/main.js.map +1 -1
  20. package/dist/mocked_classnames_esm/components/NewTable/Table.d.ts.map +1 -1
  21. package/dist/mocked_classnames_esm/components/NewTable/components/useLeafyGreenTable/useLeafyGreenTable.d.ts.map +1 -1
  22. package/dist/mocked_classnames_esm/src/components/NewTable/Table.js +1 -1
  23. package/dist/mocked_classnames_esm/src/components/NewTable/Table.js.map +1 -1
  24. package/dist/mocked_classnames_esm/src/components/NewTable/Table.module.scss.js +1 -1
  25. package/dist/mocked_classnames_esm/src/components/NewTable/components/useLeafyGreenTable/useLeafyGreenTable.js +1 -1
  26. package/dist/mocked_classnames_esm/src/components/NewTable/components/useLeafyGreenTable/useLeafyGreenTable.js.map +1 -1
  27. package/dist/types/components/NewTable/Table.d.ts.map +1 -1
  28. package/dist/types/components/NewTable/components/useLeafyGreenTable/useLeafyGreenTable.d.ts.map +1 -1
  29. package/package.json +2 -2
  30. package/src/components/NewTable/Table.module.scss +9 -0
  31. package/src/components/NewTable/Table.tsx +6 -22
  32. package/src/components/NewTable/__stories__/NewTable.stories.tsx +4 -2
  33. package/src/components/NewTable/__stories__/newTable.mdx +23 -0
  34. package/src/components/NewTable/components/useLeafyGreenTable/useLeafyGreenTable.tsx +4 -0
@@ -31,8 +31,7 @@ const Table = (0, react_1.forwardRef)((_a, containerRef) => {
31
31
  const numSelectedItems = table.getSelectedRowModel().rows.length;
32
32
  return ((0, jsx_runtime_1.jsxs)("div", Object.assign({ className: `${Table_module_scss_1.default.tableContainerStyles} ${Table_module_scss_1.default.tableWrapper}` }, { children: [header, (0, jsx_runtime_1.jsx)("div", Object.assign({ ref: containerRef, className: (0, classnames_1.default)(Table_module_scss_1.default.tableContainerStyles, Table_module_scss_1.default.tableContainer, className), tabIndex: 0 }, { children: (0, jsx_runtime_1.jsxs)(TableContext_1.TableContextProvider, Object.assign({ shouldAlternateRowColor: shouldAlternateRowColor, table: table, disableAnimations: disableAnimations }, { children: [(0, jsx_runtime_1.jsxs)("table", Object.assign({ className: (0, classnames_1.default)(Table_module_scss_1.default.baseStyles, // Base styles from SCSS module
33
33
  Table_module_scss_1.default.themeLight // Conditional theme styles
34
- ) }, rest, { children: [children, loadedData.length === 0 && ((0, jsx_runtime_1.jsx)("tbody", { children: (0, jsx_runtime_1.jsx)("tr", { children: (0, jsx_runtime_1.jsx)("td", Object.assign({ colSpan: table.getAllColumns().length, className: Table_module_scss_1.default.emptyTableContent }, { children: emptyTableContent })) }) }))] })), infiniteScrolling && ((0, jsx_runtime_1.jsx)("div", Object.assign({ ref: loadMoreTriggerRef, style: { height: '1px' } }, { children: (0, jsx_runtime_1.jsx)("div", Object.assign({ className: (0, classnames_1.default)(Table_module_scss_1.default.baseStyles, // Base styles from SCSS module
35
- Table_module_scss_1.default.loader) }, { children: (0, jsx_runtime_1.jsx)(Loader_1.default, { size: 20, color: Loader_1.default.colors.PRIMARY, className: Table_module_scss_1.default.loader }) })) })))] })) })), withPagination && ((0, jsx_runtime_1.jsx)(pagination_1.default, Object.assign({ itemsPerPage: getState().pagination.pageSize, onItemsPerPageOptionChange: (value) => setPageSize(Number(value)), numTotalItems: paginationProps === null || paginationProps === void 0 ? void 0 : paginationProps.numTotalItems, currentPage: getState().pagination.pageIndex + 1, onCurrentPageOptionChange: (value) => setPageIndex(Number(value) - 1), onBackArrowClick: () => previousPage(), onForwardArrowClick: () => nextPage(), numSelectedItems: numSelectedItems }, paginationProps)))] })));
34
+ ) }, rest, { children: [children, loadedData.length === 0 && ((0, jsx_runtime_1.jsx)("tbody", { children: (0, jsx_runtime_1.jsx)("tr", { children: (0, jsx_runtime_1.jsx)("td", Object.assign({ colSpan: table.getAllColumns().length, className: Table_module_scss_1.default.emptyTableContent }, { children: emptyTableContent })) }) }))] })), (0, jsx_runtime_1.jsxs)("div", Object.assign({ style: { position: "relative", paddingBottom: "20px" } }, { children: [(0, jsx_runtime_1.jsx)("div", { ref: loadMoreTriggerRef, style: { height: "1px" } }), infiniteScrolling && isLoading && ((0, jsx_runtime_1.jsx)("div", Object.assign({ className: (0, classnames_1.default)(Table_module_scss_1.default.loaderContainer) }, { children: (0, jsx_runtime_1.jsx)(Loader_1.default, { size: 20, color: Loader_1.default.colors.PRIMARY, className: Table_module_scss_1.default.loader }) })))] }))] })) })), withPagination && ((0, jsx_runtime_1.jsx)(pagination_1.default, Object.assign({ itemsPerPage: getState().pagination.pageSize, onItemsPerPageOptionChange: (value) => setPageSize(Number(value)), numTotalItems: paginationProps === null || paginationProps === void 0 ? void 0 : paginationProps.numTotalItems, currentPage: getState().pagination.pageIndex + 1, onCurrentPageOptionChange: (value) => setPageIndex(Number(value) - 1), onBackArrowClick: () => previousPage(), onForwardArrowClick: () => nextPage(), numSelectedItems: numSelectedItems }, paginationProps)))] })));
36
35
  });
37
36
  Table.propTypes = {
38
37
  darkMode: prop_types_1.default.bool,
@@ -1 +1 @@
1
- {"version":3,"file":"Table.js","sourceRoot":"","sources":["../../../src/components/NewTable/Table.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;AAAA,iCAAmE;AAEnE,4DAAmC;AAEnC,4DAA4B;AAE5B,4DAAiE;AAGjE,4EAAyC,CAAC,qBAAqB;AAE/D,uFAA+D;AAC/D,wDAAgC;AAChC,8DAAsC;AAEtC,MAAM,KAAK,GAAG,IAAA,kBAAU,EACtB,CACE,EAagB,EAChB,YAA0C,EAC1C,EAAE;QAfF,EACE,QAAQ,EACR,SAAS,EACT,uBAAuB,GAAG,KAAK,EAC/B,YAAY,EAAE,gBAAgB,EAC9B,QAAQ,EAAE,YAAY,EACtB,KAAK,EACL,iBAAiB,GAAG,KAAK,EACzB,MAAM,EACN,cAAc,GAAG,KAAK,EACtB,iBAAiB,GAAG,uBAAC,cAAI,kBAAC,KAAK,EAAE,cAAI,CAAC,MAAM,CAAC,SAAS,EAAE,KAAK,EAAE,cAAI,CAAC,KAAK,CAAC,MAAM,8BAAiB,EACjG,eAAe,OAED,EADX,IAAI,cAZT,kLAaC,CADQ;IAIT,YAAY;IACZ,MAAM,EAAE,QAAQ,EAAE,WAAW,EAAE,YAAY,EAAE,YAAY,EAAE,QAAQ,EAAE,UAAU,EAAE,SAAS,EAAE,kBAAkB,EAAE,iBAAiB,EAAE,GAAG,KAAK,CAAC;IAC5I,MAAM,IAAI,GAAG,KAAK,CAAC,WAAW,EAAE,CAAC,IAAI,CAAC;IACtC,MAAM,gBAAgB,GAAG,KAAK,CAAC,mBAAmB,EAAE,CAAC,IAAI,CAAC,MAAM,CAAC;IAEjE,OAAO,CACL,+CAAK,SAAS,EAAE,GAAG,2BAAM,CAAC,oBAAoB,IAAI,2BAAM,CAAC,YAAY,EAAE,iBACpE,MAAM,EACP,8CACE,GAAG,EAAE,YAAY,EACjB,SAAS,EAAE,IAAA,oBAAE,EAAC,2BAAM,CAAC,oBA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,uBAAC,gBAAM,IACL,IAAI,EAAE,EAAE,EACR,KAAK,EAAE,gBAAM,CAAC,MAAM,CAAC,OAAO,EAC5B,SAAS,EAAE,2BAAM,CAAC,MAAM,GACxB,IACE,CACP,KACG,KACe,IACnB,EACL,cAAc,IAAI,CACjB,uBAAC,oBAAU,kBACT,YAAY,EAAE,QAAQ,EAAE,CAAC,UAAU,CAAC,QAAQ,EAC5C,0BAA0B,EAAE,CAAC,KAAK,EAAE,EAAE,CAAC,WAAW,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC,EACjE,aAAa,EAAE,eAAe,aAAf,eAAe,uBAAf,eAAe,CAAE,aAAa,EAC7C,WAAW,EAAE,QAAQ,EAAE,CAAC,UAAU,CAAC,SAAS,GAAG,CAAC,EAChD,yBAAyB,EAAE,CAAC,KAAK,EAAE,EAAE,CACnC,YAAY,CAAC,MAAM,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,EAEjC,gBAAgB,EAAE,GAAG,EAAE,CAAC,YAAY,EAAE,EACtC,mBAAmB,EAAE,GAAG,EAAE,CAAC,QAAQ,EAAE,EACrC,gBAAgB,EAAE,gBAAgB,IAC9B,eAAe,EACnB,CACH,KACG,CACP,CAAC;AACJ,CAAC,CACF,CAAC;AAEF,KAAK,CAAC,SAAS,GAAG;IAChB,QAAQ,EAAE,oBAAS,CAAC,IAAI;IACxB,uBAAuB,EAAE,oBAAS,CAAC,IAAI;IACvC,iBAAiB,EAAE,oBAAS,CAAC,IAAI;CAClC,CAAC;AAEF,kBAAe,KAAK,CAAC"}
@@ -190,6 +190,9 @@ const useLeafyGreenTable = (_a) => {
190
190
  setTimeout(() => {
191
191
  setLoadedData((prevData) => {
192
192
  const nextData = data.slice(prevData.length, prevData.length + loadMoreCount);
193
+ if (prevData.length + nextData.length >= data.length && observerRef.current) {
194
+ observerRef.current.disconnect();
195
+ }
193
196
  return [...prevData, ...nextData];
194
197
  });
195
198
  setIsLoading(false);
@@ -1 +1 @@
1
- {"version":3,"file":"useLeafyGreenTable.js","sourceRoot":"","sources":["../../../../../src/components/NewTable/components/useLeafyGreenTable/useLeafyGreenTable.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;AAAA,aAAa;AACb,iCAA2F;AAC3F,iDAA2C;AAC3C,uDAA+F;AAC/F,uDAAkG;AAClG,uDAA+B;AAC/B,+DAA4D;AAC5D,yDAAsD;AAGtD,uFAA+D;AAC/D,gFAAwD;AACxD,+EAAuD;AACvD,oEAA4C;AAE5C,oHAA4F;AAC5F,0EAAkD;AAClD,0EAAkD;AAElD,MAAM,cAAc,GAAG,EAAE,CAAC;AAE1B,MAAM,kBAAkB,GAAG,CAAmD,EA0B/C,EAAsB,EAAE;QA1BuB,EAC5E,YAAY,EACZ,IAAI,EACJ,OAAO,EAAE,WAAW,EACpB,iBAAiB,EACjB,cAAc,GAAG,KAAK,EACtB,mBAAmB,GAAG,KAAK,EAC3B,cAAc,GAAG,IAAI,EACrB,iBAAiB,GAAG,KAAK,EACzB,QAAQ,EACR,kBAAkB,EAClB,uBAAuB,GAAG,EAAE,EAC5B,oBAAoB,EACpB,aAAa,GAAG,KAAK,EACrB,YAAY,GAAG,KAAK,EACpB,SAAS,EACT,qBAAqB,GAAG,KAAK,EAC7B,aAAa,EACb,YAAY,EACZ,gBAAgB,GAAG,EAAE,EACrB,aAAa,GAAG,EAAE,EAClB,UAAU,EACV,iBAAiB,GAAG,KAAK,EACzB,kBAAkB,GAAG,IAAI,EACzB,aAAa,GAAG,KAAK,OAEQ,EAD1B,IAAI,cAzBqE,obA0B7E,CADQ;IAEP,MAAM,CAAC,YAAY,EAAE,eAAe,CAAC,GAAG,IAAA,gBAAQ,EAA6B,EAAE,CAAC,CAAC;IACjF,MAAM,CAAC,UAAU,EAAE,aAAa,CAAC,GAAG,IAAA,gBAAQ,EAAgB,IAAI,CAAC,CAAC;IAClE,MAAM,CAAC,iBAAiB,EAAE,oBAAoB,CAAC,GAAG,IAAA,gBAAQ,EAAC,KAAK,CAAC,CAA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AAe,GAAG,IAAA,0BAAU,kBAChC,SAAS,EAAE,YAAY,EACvB,IAAI,EAAE,IAAI,CAAC,MAAM,EACjB,QAAQ,EAAE,EAAE,IACT,kBAAkB,EACrB,CAAC;IAEH,IAAA,iBAAS,EAAC,GAAG,EAAE;QACb,IAAI,oBAAoB,IAAI,iBAAiB,EAAE;YAC7C,MAAM,YAAY,GAAG,IAAI,CAAC,MAAM,CAAC,CAAC,GAAG,EAAE,KAAK,EAAE,EAAE,CAAC,YAAY,CAAC,QAAQ,CAAC,GAAG,EAAE,KAAK,CAAC,CAAC,CAAC,CAAC;YACrF,oBAAoB,CAAC,YAAY,CAAC,CAAC;SACpC;IACH,CAAC,EAAE,CAAC,YAAY,EAAE,IAAI,EAAE,oBAAoB,EAAE,QAAQ,EAAE,iBAAiB,CAAC,CAAC,CAAC;IAE5E,OAAO,4DACF,KAAK,KACR,cAAc;QACd,qBAAqB;QACrB,eAAe,KACZ,CAAC,mBAAmB,IAAI;QACzB,WAAW,EAAE,eAAe,CAAC,YAAY;QACzC,SAAS,EAAE,eAAe,CAAC,SAAS;QACpC,aAAa,EAAE,eAAe,CAAC,aAAa;QAC5C,cAAc,EAAE,eAAe,CAAC,cAAc;QAC9C,OAAO,EAAE,eAAe,CAAC,OAAO;KACjC,CAAC,KACF,iBAAiB;QACjB,iBAAiB;QACjB,oBAAoB;QACpB,gBAAgB;QAChB,aAAa;QACb,SAAS;QACT,UAAU;QACV,kBAAkB;QAClB,iBAAiB;QACjB,YAAY,GACS,CAAC;AAC1B,CAAC,CAAC;AAEF,kBAAe,kBAAkB,CAAC"}
1
+ {"version":3,"file":"useLeafyGreenTable.js","sourceRoot":"","sources":["../../../../../src/components/NewTable/components/useLeafyGreenTable/useLeafyGreenTable.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;AAAA,aAAa;AACb,iCAA2F;AAC3F,iDAA2C;AAC3C,uDAA+F;AAC/F,uDAAkG;AAClG,uDAA+B;AAC/B,+DAA4D;AAC5D,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AI,EAAE,IAAI,CAAC,MAAM,EACjB,QAAQ,EAAE,EAAE,IACT,kBAAkB,EACrB,CAAC;IAEH,IAAA,iBAAS,EAAC,GAAG,EAAE;QACb,IAAI,oBAAoB,IAAI,iBAAiB,EAAE;YAC7C,MAAM,YAAY,GAAG,IAAI,CAAC,MAAM,CAAC,CAAC,GAAG,EAAE,KAAK,EAAE,EAAE,CAAC,YAAY,CAAC,QAAQ,CAAC,GAAG,EAAE,KAAK,CAAC,CAAC,CAAC,CAAC;YACrF,oBAAoB,CAAC,YAAY,CAAC,CAAC;SACpC;IACH,CAAC,EAAE,CAAC,YAAY,EAAE,IAAI,EAAE,oBAAoB,EAAE,QAAQ,EAAE,iBAAiB,CAAC,CAAC,CAAC;IAE5E,OAAO,4DACF,KAAK,KACR,cAAc;QACd,qBAAqB;QACrB,eAAe,KACZ,CAAC,mBAAmB,IAAI;QACzB,WAAW,EAAE,eAAe,CAAC,YAAY;QACzC,SAAS,EAAE,eAAe,CAAC,SAAS;QACpC,aAAa,EAAE,eAAe,CAAC,aAAa;QAC5C,cAAc,EAAE,eAAe,CAAC,cAAc;QAC9C,OAAO,EAAE,eAAe,CAAC,OAAO;KACjC,CAAC,KACF,iBAAiB;QACjB,iBAAiB;QACjB,oBAAoB;QACpB,gBAAgB;QAChB,aAAa;QACb,SAAS;QACT,UAAU;QACV,kBAAkB;QAClB,iBAAiB;QACjB,YAAY,GACS,CAAC;AAC1B,CAAC,CAAC;AAEF,kBAAe,kBAAkB,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"Table.d.ts","sourceRoot":"","sources":["../../../../src/components/NewTable/Table.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA8C,MAAM,OAAO,CAAC;AAUnE,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAK3C,QAAA,MAAM,KAAK,wFAyGV,CAAC;AAQF,eAAe,KAAK,CAAC"}
1
+ {"version":3,"file":"Table.d.ts","sourceRoot":"","sources":["../../../../src/components/NewTable/Table.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA8C,MAAM,OAAO,CAAC;AAUnE,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAK3C,QAAA,MAAM,KAAK,wFAyFV,CAAC;AAQF,eAAe,KAAK,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"useLeafyGreenTable.d.ts","sourceRoot":"","sources":["../../../../../../src/components/NewTable/components/useLeafyGreenTable/useLeafyGreenTable.tsx"],"names":[],"mappings":"AAQA,OAAO,EAAE,sBAAsB,EAAa,MAAM,4BAA4B,CAAC;AAC/E,OAAO,EAAE,eAAe,EAAgC,MAAM,GAAG,CAAC;AAYlE,QAAA,MAAM,kBAAkB,ogBAwVvB,CAAC;AAEF,eAAe,kBAAkB,CAAC"}
1
+ {"version":3,"file":"useLeafyGreenTable.d.ts","sourceRoot":"","sources":["../../../../../../src/components/NewTable/components/useLeafyGreenTable/useLeafyGreenTable.tsx"],"names":[],"mappings":"AAQA,OAAO,EAAE,sBAAsB,EAAa,MAAM,4BAA4B,CAAC;AAC/E,OAAO,EAAE,eAAe,EAAgC,MAAM,GAAG,CAAC;AAYlE,QAAA,MAAM,kBAAkB,ogBA4VvB,CAAC;AAEF,eAAe,kBAAkB,CAAC"}
@@ -1,2 +1,2 @@
1
- import{__rest as e}from"../../../_virtual/_tslib.js";import{jsx as t,jsxs as o}from"@emotion/react/jsx-runtime";import{forwardRef as a}from"react";import n from"prop-types";import r from"classnames";import i from"./components/TableContext/TableContext.js";import l from"./Table.module.scss.js";import s from"./components/newComponents/pagination/Pagination.js";import c from"../Text/Text.js";import d from"../Loader/Loader.js";var m=a((function(a,n){var m=a.children,g=a.className,p=a.shouldAlternateRowColor,b=void 0!==p&&p,h=a.table,u=a.disableAnimations,C=void 0!==u&&u,f=a.header,j=a.withPagination,P=void 0!==j&&j,v=a.emptyTableContent,T=void 0===v?t(c,Object.assign({color:c.colors.SECONDARY,align:c.align.CENTER},{children:"No Data."})):v,w=a.paginationProps,N=e(a,["children","className","shouldAlternateRowColor","baseFontSize","darkMode","table","disableAnimations","header","withPagination","emptyTableContent","paginationProps"]),S=h.getState,y=h.setPageSize,A=h.setPageIndex,O=h.previousPage,x=h.nextPage,R=h.loadedData,I=h.loadMoreTriggerRef,M=h.infiniteScrolling;h.getRowModel();var k=h.getSelectedRowModel().rows.length;return o("div",Object.assign({className:"".concat(l.tableContainerStyles," ").concat(l.tableWrapper)},{children:[f,t("div",Object.assign({ref:n,className:r(l.tableContainerStyles,l.tableContainer,g),tabIndex:0},{children:o(i,Object.assign({shouldAlternateRowColor:b,table:h,disableAnimations:C},{children:[o("table",Object.assign({className:r(l.baseStyles,l.themeLight)},N,{children:[m,0===R.length&&t("tbody",{children:t("tr",{children:t("td",Object.assign({colSpan:h.getAllColumns().length,className:l.emptyTableContent},{children:T}))})})]})),M&&t("div",Object.assign({ref:I,style:{height:"1px"}},{children:t("div",Object.assign({className:r(l.baseStyles,l.loader)},{children:t(d,{size:20,color:d.colors.PRIMARY,className:l.loader})}))}))]}))})),P&&t(s,Object.assign({itemsPerPage:S().pagination.pageSize,onItemsPerPageOptionChange:function(e){return y(Number(e))},numTotalItems:null==w?void 0:w.numTotalItems,currentPage:S().pagination.pageIndex+1,onCurrentPageOptionChange:function(e){return A(Number(e)-1)},onBackArrowClick:function(){return O()},onForwardArrowClick:function(){return x()},numSelectedItems:k},w))]}))}));m.propTypes={darkMode:n.bool,shouldAlternateRowColor:n.bool,emptyTableContent:n.node};export{m as default};
1
+ import{__rest as e}from"../../../_virtual/_tslib.js";import{jsx as t,jsxs as o}from"@emotion/react/jsx-runtime";import{forwardRef as n}from"react";import a from"prop-types";import i from"classnames";import r from"./components/TableContext/TableContext.js";import l from"./Table.module.scss.js";import s from"./components/newComponents/pagination/Pagination.js";import d from"../Text/Text.js";import c from"../Loader/Loader.js";var m=n((function(n,a){var m=n.children,g=n.className,p=n.shouldAlternateRowColor,b=void 0!==p&&p,h=n.table,u=n.disableAnimations,C=void 0!==u&&u,f=n.header,j=n.withPagination,v=void 0!==j&&j,P=n.emptyTableContent,T=void 0===P?t(d,Object.assign({color:d.colors.SECONDARY,align:d.align.CENTER},{children:"No Data."})):P,w=n.paginationProps,N=e(n,["children","className","shouldAlternateRowColor","baseFontSize","darkMode","table","disableAnimations","header","withPagination","emptyTableContent","paginationProps"]),x=h.getState,y=h.setPageSize,A=h.setPageIndex,O=h.previousPage,S=h.nextPage,R=h.loadedData,I=h.isLoading,M=h.loadMoreTriggerRef,k=h.infiniteScrolling;h.getRowModel();var z=h.getSelectedRowModel().rows.length;return o("div",Object.assign({className:"".concat(l.tableContainerStyles," ").concat(l.tableWrapper)},{children:[f,t("div",Object.assign({ref:a,className:i(l.tableContainerStyles,l.tableContainer,g),tabIndex:0},{children:o(r,Object.assign({shouldAlternateRowColor:b,table:h,disableAnimations:C},{children:[o("table",Object.assign({className:i(l.baseStyles,l.themeLight)},N,{children:[m,0===R.length&&t("tbody",{children:t("tr",{children:t("td",Object.assign({colSpan:h.getAllColumns().length,className:l.emptyTableContent},{children:T}))})})]})),o("div",Object.assign({style:{position:"relative",paddingBottom:"20px"}},{children:[t("div",{ref:M,style:{height:"1px"}}),k&&I&&t("div",Object.assign({className:i(l.loaderContainer)},{children:t(c,{size:20,color:c.colors.PRIMARY,className:l.loader})}))]}))]}))})),v&&t(s,Object.assign({itemsPerPage:x().pagination.pageSize,onItemsPerPageOptionChange:function(e){return y(Number(e))},numTotalItems:null==w?void 0:w.numTotalItems,currentPage:x().pagination.pageIndex+1,onCurrentPageOptionChange:function(e){return A(Number(e)-1)},onBackArrowClick:function(){return O()},onForwardArrowClick:function(){return S()},numSelectedItems:z},w))]}))}));m.propTypes={darkMode:a.bool,shouldAlternateRowColor:a.bool,emptyTableContent:a.node};export{m as default};
2
2
  //# sourceMappingURL=Table.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"Table.js","sources":["../../../../../src/components/NewTable/Table.tsx"],"sourcesContent":["import React, { ForwardedRef, forwardRef, ReactNode } from \"react\";\n\nimport PropTypes from \"prop-types\";\nimport EmptyState from \"../EmptyState/EmptyState\";\nimport cx from \"classnames\";\n\nimport { TableContextProvider } from \"./components/TableContext\";\nimport { LGRowData } from \"./components/useLeafyGreenTable\";\n\nimport styles from \"./Table.module.scss\"; // Import SCSS styles\nimport { TableProps } from \"./Table.types\";\nimport Pagination from \"./components/newComponents/pagination\";\nimport Text from \"../Text/Text\";\nimport Loader from \"../Loader/Loader\";\n\nconst Table = forwardRef<HTMLDivElement, TableProps<any>>(\n <T extends LGRowData>(\n {\n children,\n className,\n shouldAlternateRowColor = false,\n baseFontSize: baseFontSizeProp,\n darkMode: darkModeProp,\n table,\n disableAnimations = false,\n header,\n withPagination = false,\n emptyTableContent = <Text color={Text.colors.SECONDARY} align={Text.align.CENTER}>No Data.</Text>,\n paginationProps,\n ...rest\n }: TableProps<T>,\n containerRef: ForwardedRef<HTMLDivElement>\n ) => {\n //@ts-ignore\n const { getState, setPageSize, setPageIndex, previousPage, nextPage, loadedData, isLoading, loadMoreTriggerRef, infiniteScrolling } = table;\n const rows = table.getRowModel().rows;\n const numSelectedItems = table.getSelectedRowModel().rows.length;\n\n return (\n <div className={`${styles.tableContainerStyles} ${styles.tableWrapper}`}>\n {header}\n <div\n ref={containerRef}\n className={cx(styles.tableContainerStyles, styles.tableContainer,className)} // Use class from SCSS module\n tabIndex={0} // Allows keyboard interaction\n >\n <TableContextProvider\n shouldAlternateRowColor={shouldAlternateRowColor}\n table={table}\n disableAnimations={disableAnimations}\n >\n <table\n className={cx(\n styles.baseStyles, // Base styles from SCSS module\n styles.themeLight // Conditional theme styles\n )}\n {...rest}\n >\n {children}\n {loadedData.length === 0 && (\n <tbody>\n <tr>\n <td\n colSpan={table.getAllColumns().length}\n className={styles.emptyTableContent}\n >\n {emptyTableContent}\n </td>\n </tr>\n </tbody>\n )}\n {/* @ts-ignore */}\n {/* {isLoading && (\n <tr className={styles.loaderRow}>\n <td colSpan={table.getAllColumns().length}>\n <div className={styles.loader}>\n <Loader\n size={20}\n color={Loader.colors.PRIMARY}\n className={styles.loader}\n />\n </div>\n </td>\n </tr>\n )} */}\n </table>\n {infiniteScrolling && (\n <div ref={loadMoreTriggerRef} style={{ height: '1px' }} >\n <div className={cx(\n styles.baseStyles, // Base styles from SCSS module\n styles.loader\n )}>\n <Loader\n size={20}\n color={Loader.colors.PRIMARY}\n className={styles.loader}\n />\n </div>\n </div>\n )}\n </TableContextProvider>\n </div>\n {withPagination && (\n <Pagination\n itemsPerPage={getState().pagination.pageSize}\n onItemsPerPageOptionChange={(value) => setPageSize(Number(value))}\n numTotalItems={paginationProps?.numTotalItems}\n currentPage={getState().pagination.pageIndex + 1}\n onCurrentPageOptionChange={(value) =>\n setPageIndex(Number(value) - 1)\n }\n onBackArrowClick={() => previousPage()}\n onForwardArrowClick={() => nextPage()}\n numSelectedItems={numSelectedItems}\n {...paginationProps}\n />\n )}\n </div>\n );\n }\n);\n\nTable.propTypes = {\n darkMode: PropTypes.bool,\n shouldAlternateRowColor: PropTypes.bool,\n emptyTableContent: PropTypes.node,\n};\n\nexport default Table;\n"],"names":["Table","forwardRef","_a","containerRef","children","className","_a$shouldAlternateRow","shouldAlternateRowColor","table","_a$disableAnimations","disableAnimations","header","_a$withPagination","withPagination","_a$emptyTableContent","emptyTableContent","_jsx","Text","Object","assign","color","colors","SECONDARY","align","CENTER","paginationProps","rest","__rest","getState","setPageSize","setPageIndex","previousPage","nextPage","loadedData","loadMoreTriggerRef","infiniteScrolling","getRowModel","numSelectedItems","getSelectedRowModel","rows","length","_jsxs","concat","styles","tableContainerStyles","tableWrapper","ref","cx","tableContainer","tabIndex","TableContextProvider","baseStyles","themeLight","colSpan","getAllColumns","style","height","loader","Loader","size","PRIMARY","Pagination","itemsPerPage","pagination","pageSize","onItemsPerPageOptionChange","value","Number","numTotalItems","currentPage","pageIndex","onCurrentPageOptionChange","onBackArrowClick","onForwardArrowClick","propTypes","darkMode","PropTypes","bool","node"],"mappings":"2aAeMA,I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AAC,OAAA,CAAAd,UAAW0C,EACTJ,EAAOQ,WACPR,EAAOS,aAEL1B,EAAI,CAAAtB,SAAA,CAEPA,EACsB,IAAtB6B,EAAWO,QACVxB,EAAA,QAAA,CAAAZ,SACEY,EACA,KAAA,CAAAZ,SAAAY,EAAA,KAAAE,OAAAC,OAAA,CACIkC,QAAS7C,EAAM8C,gBAAgBd,OAC/BnC,UAAWsC,EAAO5B,mBAEjB,CAAAX,SAAAW,aAoBVoB,GACCnB,EAAA,MAAAE,OAAAC,OAAA,CAAK2B,IAAKZ,EAAoBqB,MAAO,CAAEC,OAAQ,QAAO,CAAApD,SACpDY,EAAK,MAAAE,OAAAC,OAAA,CAAAd,UAAW0C,EACdJ,EAAOQ,WACPR,EAAOc,SACR,CAAArD,SACCY,EAAC0C,EACC,CAAAC,KAAM,GACNvC,MAAOsC,EAAOrC,OAAOuC,QACrBvD,UAAWsC,EAAOc,sBAO7B5C,GACCG,EAAC6C,EACC3C,OAAAC,OAAA,CAAA2C,aAAclC,IAAWmC,WAAWC,SACpCC,2BAA4B,SAACC,GAAK,OAAKrC,EAAYsC,OAAOD,GAAO,EACjEE,cAAe3C,aAAA,EAAAA,EAAiB2C,cAChCC,YAAazC,IAAWmC,WAAWO,UAAY,EAC/CC,0BAA2B,SAACL,GAAK,OAC/BpC,EAAaqC,OAAOD,GAAS,EAAE,EAEjCM,iBAAkB,WAAA,OAAMzC,GAAc,EACtC0C,oBAAqB,WAAA,OAAMzC,GAAU,EACrCK,iBAAkBA,GACdZ,OAKd,IAGFzB,EAAM0E,UAAY,CAChBC,SAAUC,EAAUC,KACpBtE,wBAAyBqE,EAAUC,KACnC9D,kBAAmB6D,EAAUE"}
1
+ {"version":3,"file":"Table.js","sources":["../../../../../src/components/NewTable/Table.tsx"],"sourcesContent":["import React, { ForwardedRef, forwardRef, ReactNode } from \"react\";\n\nimport PropTypes from \"prop-types\";\nimport EmptyState from \"../EmptyState/EmptyState\";\nimport cx from \"classnames\";\n\nimport { TableContextProvider } from \"./components/TableContext\";\nimport { LGRowData } from \"./components/useLeafyGreenTable\";\n\nimport styles from \"./Table.module.scss\"; // Import SCSS styles\nimport { TableProps } from \"./Table.types\";\nimport Pagination from \"./components/newComponents/pagination\";\nimport Text from \"../Text/Text\";\nimport Loader from \"../Loader/Loader\";\n\nconst Table = forwardRef<HTMLDivElement, TableProps<any>>(\n <T extends LGRowData>(\n {\n children,\n className,\n shouldAlternateRowColor = false,\n baseFontSize: baseFontSizeProp,\n darkMode: darkModeProp,\n table,\n disableAnimations = false,\n header,\n withPagination = false,\n emptyTableContent = <Text color={Text.colors.SECONDARY} align={Text.align.CENTER}>No Data.</Text>,\n paginationProps,\n ...rest\n }: TableProps<T>,\n containerRef: ForwardedRef<HTMLDivElement>\n ) => {\n //@ts-ignore\n const { getState, setPageSize, setPageIndex, previousPage, nextPage, loadedData, isLoading, loadMoreTriggerRef, infiniteScrolling } = table;\n const rows = table.getRowModel().rows;\n const numSelectedItems = table.getSelectedRowModel().rows.length;\n\n return (\n <div className={`${styles.tableContainerStyles} ${styles.tableWrapper}`}>\n {header}\n <div\n ref={containerRef}\n className={cx(styles.tableContainerStyles, styles.tableContainer,className)} // Use class from SCSS module\n tabIndex={0} // Allows keyboard interaction\n >\n <TableContextProvider\n shouldAlternateRowColor={shouldAlternateRowColor}\n table={table}\n disableAnimations={disableAnimations}\n >\n <table\n className={cx(\n styles.baseStyles, // Base styles from SCSS module\n styles.themeLight // Conditional theme styles\n )}\n {...rest}\n >\n {children}\n {loadedData.length === 0 && (\n <tbody>\n <tr>\n <td\n colSpan={table.getAllColumns().length}\n className={styles.emptyTableContent}\n >\n {emptyTableContent}\n </td>\n </tr>\n </tbody>\n )}\n </table>\n <div style={{ position: \"relative\", paddingBottom: \"20px\" }}>\n <div ref={loadMoreTriggerRef} style={{ height: \"1px\" }} />\n {infiniteScrolling && isLoading && (\n <div className={cx(styles.loaderContainer)}>\n <Loader\n size={20}\n color={Loader.colors.PRIMARY}\n className={styles.loader}\n />\n </div>\n )}\n </div>\n </TableContextProvider>\n </div>\n {withPagination && (\n <Pagination\n itemsPerPage={getState().pagination.pageSize}\n onItemsPerPageOptionChange={(value) => setPageSize(Number(value))}\n numTotalItems={paginationProps?.numTotalItems}\n currentPage={getState().pagination.pageIndex + 1}\n onCurrentPageOptionChange={(value) =>\n setPageIndex(Number(value) - 1)\n }\n onBackArrowClick={() => previousPage()}\n onForwardArrowClick={() => nextPage()}\n numSelectedItems={numSelectedItems}\n {...paginationProps}\n />\n )}\n </div>\n );\n }\n);\n\nTable.propTypes = {\n darkMode: PropTypes.bool,\n shouldAlternateRowColor: PropTypes.bool,\n emptyTableContent: PropTypes.node,\n};\n\nexport default Table;\n"],"names":["Table","forwardRef","_a","containerRef","children","className","_a$shouldAlternateRow","shouldAlternateRowColor","table","_a$disableAnimations","disableAnimations","header","_a$withPagination","withPagination","_a$emptyTableContent","emptyTableContent","_jsx","Text","Object","assign","color","colors","SECONDARY","align","CENTER","paginationProps","rest","__rest","getState","setPageSize","setPageIndex","previousPage","nextPage","loadedData","isLoading","loadMoreTriggerRef","infiniteScrolling","getRowModel","numSelectedItems","getSelectedRowModel","rows","length","_jsxs","concat","styles","tableContainerStyles","tableWrapper","ref","cx","tableContainer","tabIndex","TableContextProvider","baseStyles","themeLight","colSpan","getAllColumns","style","position","paddingBottom","height","loaderContainer","Loader","size","PRIMARY","loader","Pagination","itemsPerPage","pagination","pageSize","onItemsPerPageOptionChange","value","Number","numTotalItems","currentPage","pageIndex","onCurrentPageOptionChange","onBackArrowClick","onForwardArrowClick","propTypes","darkMode","PropTypes","bool","node"],"mappings":"2aAeMA,IAAAA,EAAQC,GACZ,SACEC,EAcAC,OAbEC,EAUeF,EAVfE,SACAC,EASeH,EATfG,UAASC,EASMJ,EARfK,wBAAAA,OAA0B,IAAHD,GAAQA,EAG/BE,EAKeN,EALfM,MAAKC,EAKUP,EAJfQ,kBAAAA,OAAoB,IAAHD,GAAQA,EACzBE,EAGeT,EAHfS,OAA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BpC,UAAWuC,EAAO7B,mBAAiB,CAAAX,SAElCW,aAMb2B,EAAK,MAAAxB,OAAAC,OAAA,CAAAqC,MAAO,CAAEC,SAAU,WAAYC,cAAe,oBACjD1C,EAAK,MAAA,CAAA+B,IAAKZ,EAAoBqB,MAAO,CAAEG,OAAQ,SAC5CvB,GAAqBF,GACpBlB,EAAA,MAAAE,OAAAC,OAAA,CAAKd,UAAW2C,EAAGJ,EAAOgB,kBACxB,CAAAxD,SAAAY,EAAC6C,EACC,CAAAC,KAAM,GACN1C,MAAOyC,EAAOxC,OAAO0C,QACrB1D,UAAWuC,EAAOoB,uBAO7BnD,GACCG,EAACiD,EAAU/C,OAAAC,OAAA,CACT+C,aAActC,IAAWuC,WAAWC,SACpCC,2BAA4B,SAACC,GAAK,OAAKzC,EAAY0C,OAAOD,GAAO,EACjEE,cAAe/C,aAAA,EAAAA,EAAiB+C,cAChCC,YAAa7C,IAAWuC,WAAWO,UAAY,EAC/CC,0BAA2B,SAACL,GAAK,OAC/BxC,EAAayC,OAAOD,GAAS,EAAE,EAEjCM,iBAAkB,WAAA,OAAM7C,GAAc,EACtC8C,oBAAqB,WAAA,OAAM7C,GAAU,EACrCM,iBAAkBA,GACdb,OAKd,IAGFzB,EAAM8E,UAAY,CAChBC,SAAUC,EAAUC,KACpB1E,wBAAyByE,EAAUC,KACnClE,kBAAmBiE,EAAUE"}
@@ -1,2 +1,2 @@
1
- var e={tableContainerStyles:"tableContainerStyles_a5fb405ee7",tableWrapper:"tableWrapper_9989e61c27",tableContainer:"tableContainer_11599b144e",baseStyles:"baseStyles_0747c875e6",emptyTableContent:"emptyTableContent_2dfe6325a0",loaderRow:"loaderRow_59ff19c108",loader:"loader_2891e9f4b8"};!function(e){if("undefined"==typeof document)return;const n=document.head||document.getElementsByTagName("head")[0],t="s_id-32a092483b92_0_0_293";if(n.querySelector("#"+t))return;const a=document.createElement("style");a.id=t,n.firstChild?n.insertBefore(a,n.firstChild):n.appendChild(a),a.appendChild(document.createTextNode(e))}(".tableContainerStyles_a5fb405ee7 {\n position: relative;\n}\n\n.tableWrapper_9989e61c27 {\n width: 100%;\n height: 100%;\n overflow: hidden;\n}\n\n.tableContainer_11599b144e {\n overflow-x: auto;\n overflow-y: auto;\n height: 90%;\n}\n\n.baseStyles_0747c875e6 {\n border-spacing: 0;\n border-collapse: collapse;\n margin: 0;\n padding: 0;\n border: none;\n vertical-align: baseline;\n flex-direction: column;\n isolation: isolate;\n overflow: auto;\n scrollbar-gutter: stable;\n background-color: transparent;\n font-size: 14px;\n}\n\n.emptyTableContent_2dfe6325a0 {\n text-align: center;\n padding: 20px;\n}\n\n.loaderRow_59ff19c108 {\n width: 100%;\n}\n\n.loader_2891e9f4b8 {\n margin: 16px auto;\n display: flex;\n justify-content: center;\n align-items: center;\n}");export{e as default};
1
+ var e={tableContainerStyles:"tableContainerStyles_a5fb405ee7",tableWrapper:"tableWrapper_9989e61c27",tableContainer:"tableContainer_11599b144e",baseStyles:"baseStyles_0747c875e6",emptyTableContent:"emptyTableContent_2dfe6325a0",loaderRow:"loaderRow_59ff19c108",loader:"loader_2891e9f4b8",loaderContainer:"loaderContainer_88e324aafa"};!function(e){if("undefined"==typeof document)return;const n=document.head||document.getElementsByTagName("head")[0],t="s_id-06926aa6367a_0_0_293";if(n.querySelector("#"+t))return;const a=document.createElement("style");a.id=t,n.firstChild?n.insertBefore(a,n.firstChild):n.appendChild(a),a.appendChild(document.createTextNode(e))}(".tableContainerStyles_a5fb405ee7 {\n position: relative;\n}\n\n.tableWrapper_9989e61c27 {\n width: 100%;\n height: 100%;\n overflow: hidden;\n}\n\n.tableContainer_11599b144e {\n overflow-x: auto;\n overflow-y: auto;\n height: 90%;\n}\n\n.baseStyles_0747c875e6 {\n border-spacing: 0;\n border-collapse: collapse;\n margin: 0;\n padding: 0;\n border: none;\n vertical-align: baseline;\n flex-direction: column;\n isolation: isolate;\n overflow: auto;\n scrollbar-gutter: stable;\n background-color: transparent;\n font-size: 14px;\n}\n\n.emptyTableContent_2dfe6325a0 {\n text-align: center;\n padding: 20px;\n}\n\n.loaderRow_59ff19c108 {\n width: 100%;\n}\n\n.loader_2891e9f4b8 {\n margin: 16px auto;\n display: flex;\n justify-content: center;\n align-items: center;\n}\n\n.loaderContainer_88e324aafa {\n display: flex;\n justify-content: center;\n align-items: center;\n position: absolute;\n bottom: 0;\n width: 100%;\n}");export{e as default};
2
2
  //# sourceMappingURL=Table.module.scss.js.map
@@ -1,2 +1,2 @@
1
- import{slicedToArray as e,toConsumableArray as n}from"../../../../../_virtual/_rollupPluginBabelHelpers.js";import{__rest as t}from"../../../../../_virtual/_tslib.js";import{jsx as o}from"@emotion/react/jsx-runtime";import{useState as i,useRef as l,useCallback as r,useEffect as a,useMemo as c}from"react";import{useVirtual as s}from"react-virtual";import{getCoreRowModel as u,getSortedRowModel as d,getPaginationRowModel as g,useReactTable as f}from"@tanstack/react-table";import m from"lodash/omit";import{TableHeaderCheckbox as h}from"./TableHeaderCheckbox.js";import{TableRowCheckbox as v}from"./TableRowCheckbox.js";import w from"../../../Icon/Icons/components/Settings.js";import b from"../../../IconButton/IconButton.js";import R from"../ToggleExpandedIcon/ToggleExpandedIcon.js";import S from"../../../Dialog/Dialog.js";import p from"../../../DialogContentContainer/DialogContentContainer.js";import C from"../../../Checkbox/Checkbox.js";import I from"../../../ListItem/ListItem.js";var j=function(j){var x=j.containerRef,O=j.data,M=j.columns,y=j.hasSelectableRows,z=j.withPagination,T=void 0!==z&&z,k=j.useVirtualScrolling,E=void 0!==k&&k,A=j.allowSelectAll,L=void 0===A||A,P=j.allowSelectSingle,D=void 0!==P&&P,_=j.onSelect,B=j.virtualizerOptions,H=j.initiallySelectedRowIds,V=void 0===H?[]:H,F=j.onRowSelectionChange,U=j.columnManager,K=void 0!==U&&U,X=j.isExpandable,N=void 0!==X&&X,q=j.hoverIcon,G=j.selectCurrentPageOnly,J=void 0!==G&&G,Q=j.onUnselectAll,W=j.initialState,Y=j.initialLoadCount,Z=void 0===Y?20:Y,$=j.loadMoreCount,ee=void 0===$?10:$,ne=j.onLoadMore,te=j.infiniteScrolling,oe=void 0!==te&&te,ie=j.autoResetPageIndex,le=void 0===ie||ie,re=j.selectAllRows,ae=void 0!==re&&re,ce=t(j,["containerRef","data","columns","hasSelectableRows","withPagination","useVirtualScrolling","allowSelectAll","allowSelectSingle","onSelect","virtualizerOptions","initiallySelectedRowIds","onRowSelectionChange","columnManager","isExpandable","hoverIcon","selectCurrentPageOnly","onUnselectAll","initialState","initialLoadCount","loadMoreCount","onLoadMore","infiniteScrolling","autoResetPageIndex","selectAllRows"]),se=i({}),ue=e(se,2),de=ue[0],ge=ue[1],fe=i(null),me=e(fe,2),he=me[0],ve=me[1],we=i(!1),be=e(we,2),Re=be[0],Se=be[1],pe=i([]),Ce=e(pe,2),Ie=Ce[0],je=Ce[1],xe=i(!1),Oe=e(xe,2),Me=Oe[0],ye=Oe[1],ze=i(!1),Te=e(ze,2),ke=Te[0],Ee=Te[1],Ae=l(null),Le=l(!1),Pe=l({}),De=l([]),_e=l(null),Be=l(null),He=r((function(e,n){var t,o;return y&&null!==(o=null===(t=e.id)||void 0===t?void 0:""+t)&&void 0!==o?o:""+n}),[y]);a((function(){!Le.current&&y&&(Pe.current=V.reduce((function(e,n){return e[""+n]=!0,e}),{}),Le.current=!0)}),[V,y]),a((function(){je(oe?O.slice(0,Z):O)}),[O,oe,Z]),a((function(){if(O!==De.current&&y){var e=Object.assign(Object.assign({},Pe.current),de),n={};O.forEach((function(t,o){var i=He(t,o);e[i]&&(n[i]=!0)})),ge(n),De.current=O}}),[O,He,y]);var Ve={id:"select",size:14,header:h,cell:v};a((function(){if(ae&&y){var e=O.reduce((function(e,n,t){return e[He(n,t)]=!0,e}),{});ge(e)}}),[ae,y,O,He]);var Fe=c((function(){return M.some((function(e){return!!e.enableSorting}))}),[M]),Ue=L?Ve:m(Ve,"header"),Ke={id:"expander",size:30,header:function(){return null},cell:function(e){var n=e.row;return n.getCanExpand()?o(R,{isExpanded:n.getIsExpanded(),toggleExpanded:function(){return n.toggleExpanded()},disabled:!1}):null}},Xe={id:"hoverIcon",size:30,sticky:"right",header:function(){return null},cell:function(e){return o("span",Object.assign({style:{display:"block",height:"100%"}},{children:he===e.row.index&&q}))}},Ne=c((function(){var e=M.filter((function(e){return"left"===e.sticky})),t=M.filter((function(e){return"right"===e.sticky})),i=0,l=0;return[].concat(n(y?[Ue]:[]),n(N?[Ke]:[]),n(M.map((function(n,o){var r,a,c,s=Object.assign(Object.assign({},n),{align:null!==(r=n.align)&&void 0!==r?r:"left",enableSorting:null!==(a=n.enableSorting)&&void 0!==a&&a,isResizable:null!==(c=n.isResizable)&&void 0!==c&&c,cell:n.cell||function(e){return(0,e.getValue)()}});return"left"===n.sticky?(s.left=i,i+=n.size,s.isLastStickyLeft=o===e.length-1):"right"===n.sticky&&(s.right=(l+=n.size)-n.size,s.isFirstStickyRight=o===M.length-t.length),s})).map((function(e,n,o){return"right"===e.sticky&&(e.isFirstStickyRight=n===o.length-t.length),e}))),[q?Xe:null],n(K?[{id:"columnManager",size:20,header:function(){var e;return o(S,Object.assign({showTrigger:[S.hideShowTriggers.CLICK],hideTrigger:[S.hideShowTriggers.CLICK_OUTSIDE],position:S.positions.BOTTOM_END,open:ke,content:o(p,{children:tn.getAllLeafColumns().slice(0,-1).map((function(e,n){return o(I,{children:o(C,{checked:e.getIsVisible(),label:e.columnDef.header||e.id,onChange:e.getToggleVisibilityHandler(),"aria-labelledby":"iui-column-".concat(e.id)})},"".concat(e.id,"-").concat(n))}))},"small"),onDialogDidHide:function(){return Ee(!1)}},{children:o(b,{ariaLabel:"Customize",size:null===(e=null==b?void 0:b.sizes)||void 0===e?void 0:e.XXS,icon:w,ref:Ae,onClick:function(){return Ee(!0)}})}))},cell:function(){return null}}]:[])).filter(Boolean)}),[M,y,Ue,K,N,q,ke]),qe=i("onChange"),Ge=e(qe,2),Je=Ge[0],Qe=i("ltr"),We=e(Qe,2),Ye=We[0],Ze=function(e){if(y){var n=Object.assign({},Pe.current),t=J?tn.getPageRows():tn.getPreFilteredRowModel().rows,o=null!=e?e:!tn.getIsAllRowsSelected();t.forEach((function(e){n[e.id]=o})),ge(n)}},$e=function(){y&&(ge({}),Pe.current={},null==Q||Q())},en=r((function(){oe&&!Me&&O.length>Ie.length&&(ye(!0),setTimeout((function(){je((function(e){var t=O.slice(e.length,e.length+ee);return[].concat(n(e),n(t))})),ye(!1),ne&&ne()}),500))}),[oe,Me,O,ee,ne,Ie.length]);a((function(){return oe&&Be.current&&(_e.current=new IntersectionObserver((function(e){e[0].isIntersecting&&en()}),{threshold:.1}),_e.current.observe(Be.current)),function(){_e.current&&_e.current.disconnect()}}),[oe,en]);var nn=Object.assign({data:Ie,columns:Ne,getCoreRowModel:u(),getRowCanExpand:function(e){var n;return!!e.original.renderExpandedContent||!!(null===(n=e.subRows)||void 0===n?void 0:n.length)},enableExpanding:!0,enableSortingRemoval:!!Fe||void 0,getSubRows:function(e){return e.subRows},getSortedRowModel:d(),getPaginationRowModel:T?g():void 0,initialState:W||void 0,columnResizeMode:Je,columnResizeDirection:Ye,autoResetPageIndex:le},ce);y&&(nn.getRowId=He,nn.state={rowSelection:de},nn.onRowSelectionChange=ge);var tn=f(nn);tn.toggleAllRowsSelected=Ze,tn.unselectAllRows=$e;var on=tn.getCoreRowModel().rows,ln=(tn.getPaginationRowModel(),s(Object.assign({parentRef:x,size:on.length,overscan:30},B)));return a((function(){if(F&&y){var e=O.filter((function(e,n){return de[He(e,n)]}));F(e)}}),[de,O,F,He,y]),Object.assign(Object.assign(Object.assign(Object.assign({},tn),{handleRowClick:function(e){if(D){var n=O.find((function(n,t){return He(n,t)===e}));null==_||_(n)}},toggleAllRowsSelected:Ze,unselectAllRows:$e}),E&&{virtualRows:ln.virtualItems,totalSize:ln.totalSize,scrollToIndex:ln.scrollToIndex,scrollToOffset:ln.scrollToOffset,measure:ln.measure}),{hasSelectableRows:y,showColumnManager:Re,setShowColumnManager:Se,columnManagerRef:Ae,setHoveredRow:ve,isLoading:Me,loadedData:Ie,loadMoreTriggerRef:Be,infiniteScrolling:oe,loadMoreRows:en})};export{j as default};
1
+ import{slicedToArray as e,toConsumableArray as n}from"../../../../../_virtual/_rollupPluginBabelHelpers.js";import{__rest as t}from"../../../../../_virtual/_tslib.js";import{jsx as o}from"@emotion/react/jsx-runtime";import{useState as i,useRef as l,useCallback as r,useEffect as a,useMemo as c}from"react";import{useVirtual as s}from"react-virtual";import{getCoreRowModel as u,getSortedRowModel as d,getPaginationRowModel as g,useReactTable as f}from"@tanstack/react-table";import h from"lodash/omit";import{TableHeaderCheckbox as m}from"./TableHeaderCheckbox.js";import{TableRowCheckbox as v}from"./TableRowCheckbox.js";import w from"../../../Icon/Icons/components/Settings.js";import b from"../../../IconButton/IconButton.js";import R from"../ToggleExpandedIcon/ToggleExpandedIcon.js";import S from"../../../Dialog/Dialog.js";import p from"../../../DialogContentContainer/DialogContentContainer.js";import C from"../../../Checkbox/Checkbox.js";import I from"../../../ListItem/ListItem.js";var j=function(j){var x=j.containerRef,O=j.data,M=j.columns,y=j.hasSelectableRows,z=j.withPagination,T=void 0!==z&&z,k=j.useVirtualScrolling,E=void 0!==k&&k,A=j.allowSelectAll,L=void 0===A||A,P=j.allowSelectSingle,D=void 0!==P&&P,_=j.onSelect,B=j.virtualizerOptions,H=j.initiallySelectedRowIds,V=void 0===H?[]:H,F=j.onRowSelectionChange,U=j.columnManager,K=void 0!==U&&U,X=j.isExpandable,N=void 0!==X&&X,q=j.hoverIcon,G=j.selectCurrentPageOnly,J=void 0!==G&&G,Q=j.onUnselectAll,W=j.initialState,Y=j.initialLoadCount,Z=void 0===Y?20:Y,$=j.loadMoreCount,ee=void 0===$?10:$,ne=j.onLoadMore,te=j.infiniteScrolling,oe=void 0!==te&&te,ie=j.autoResetPageIndex,le=void 0===ie||ie,re=j.selectAllRows,ae=void 0!==re&&re,ce=t(j,["containerRef","data","columns","hasSelectableRows","withPagination","useVirtualScrolling","allowSelectAll","allowSelectSingle","onSelect","virtualizerOptions","initiallySelectedRowIds","onRowSelectionChange","columnManager","isExpandable","hoverIcon","selectCurrentPageOnly","onUnselectAll","initialState","initialLoadCount","loadMoreCount","onLoadMore","infiniteScrolling","autoResetPageIndex","selectAllRows"]),se=i({}),ue=e(se,2),de=ue[0],ge=ue[1],fe=i(null),he=e(fe,2),me=he[0],ve=he[1],we=i(!1),be=e(we,2),Re=be[0],Se=be[1],pe=i([]),Ce=e(pe,2),Ie=Ce[0],je=Ce[1],xe=i(!1),Oe=e(xe,2),Me=Oe[0],ye=Oe[1],ze=i(!1),Te=e(ze,2),ke=Te[0],Ee=Te[1],Ae=l(null),Le=l(!1),Pe=l({}),De=l([]),_e=l(null),Be=l(null),He=r((function(e,n){var t,o;return y&&null!==(o=null===(t=e.id)||void 0===t?void 0:""+t)&&void 0!==o?o:""+n}),[y]);a((function(){!Le.current&&y&&(Pe.current=V.reduce((function(e,n){return e[""+n]=!0,e}),{}),Le.current=!0)}),[V,y]),a((function(){je(oe?O.slice(0,Z):O)}),[O,oe,Z]),a((function(){if(O!==De.current&&y){var e=Object.assign(Object.assign({},Pe.current),de),n={};O.forEach((function(t,o){var i=He(t,o);e[i]&&(n[i]=!0)})),ge(n),De.current=O}}),[O,He,y]);var Ve={id:"select",size:14,header:m,cell:v};a((function(){if(ae&&y){var e=O.reduce((function(e,n,t){return e[He(n,t)]=!0,e}),{});ge(e)}}),[ae,y,O,He]);var Fe=c((function(){return M.some((function(e){return!!e.enableSorting}))}),[M]),Ue=L?Ve:h(Ve,"header"),Ke={id:"expander",size:30,header:function(){return null},cell:function(e){var n=e.row;return n.getCanExpand()?o(R,{isExpanded:n.getIsExpanded(),toggleExpanded:function(){return n.toggleExpanded()},disabled:!1}):null}},Xe={id:"hoverIcon",size:30,sticky:"right",header:function(){return null},cell:function(e){return o("span",Object.assign({style:{display:"block",height:"100%"}},{children:me===e.row.index&&q}))}},Ne=c((function(){var e=M.filter((function(e){return"left"===e.sticky})),t=M.filter((function(e){return"right"===e.sticky})),i=0,l=0;return[].concat(n(y?[Ue]:[]),n(N?[Ke]:[]),n(M.map((function(n,o){var r,a,c,s=Object.assign(Object.assign({},n),{align:null!==(r=n.align)&&void 0!==r?r:"left",enableSorting:null!==(a=n.enableSorting)&&void 0!==a&&a,isResizable:null!==(c=n.isResizable)&&void 0!==c&&c,cell:n.cell||function(e){return(0,e.getValue)()}});return"left"===n.sticky?(s.left=i,i+=n.size,s.isLastStickyLeft=o===e.length-1):"right"===n.sticky&&(s.right=(l+=n.size)-n.size,s.isFirstStickyRight=o===M.length-t.length),s})).map((function(e,n,o){return"right"===e.sticky&&(e.isFirstStickyRight=n===o.length-t.length),e}))),[q?Xe:null],n(K?[{id:"columnManager",size:20,header:function(){var e;return o(S,Object.assign({showTrigger:[S.hideShowTriggers.CLICK],hideTrigger:[S.hideShowTriggers.CLICK_OUTSIDE],position:S.positions.BOTTOM_END,open:ke,content:o(p,{children:tn.getAllLeafColumns().slice(0,-1).map((function(e,n){return o(I,{children:o(C,{checked:e.getIsVisible(),label:e.columnDef.header||e.id,onChange:e.getToggleVisibilityHandler(),"aria-labelledby":"iui-column-".concat(e.id)})},"".concat(e.id,"-").concat(n))}))},"small"),onDialogDidHide:function(){return Ee(!1)}},{children:o(b,{ariaLabel:"Customize",size:null===(e=null==b?void 0:b.sizes)||void 0===e?void 0:e.XXS,icon:w,ref:Ae,onClick:function(){return Ee(!0)}})}))},cell:function(){return null}}]:[])).filter(Boolean)}),[M,y,Ue,K,N,q,ke]),qe=i("onChange"),Ge=e(qe,2),Je=Ge[0],Qe=i("ltr"),We=e(Qe,2),Ye=We[0],Ze=function(e){if(y){var n=Object.assign({},Pe.current),t=J?tn.getPageRows():tn.getPreFilteredRowModel().rows,o=null!=e?e:!tn.getIsAllRowsSelected();t.forEach((function(e){n[e.id]=o})),ge(n)}},$e=function(){y&&(ge({}),Pe.current={},null==Q||Q())},en=r((function(){oe&&!Me&&O.length>Ie.length&&(ye(!0),setTimeout((function(){je((function(e){var t=O.slice(e.length,e.length+ee);return e.length+t.length>=O.length&&_e.current&&_e.current.disconnect(),[].concat(n(e),n(t))})),ye(!1),ne&&ne()}),500))}),[oe,Me,O,ee,ne,Ie.length]);a((function(){return oe&&Be.current&&(_e.current=new IntersectionObserver((function(e){e[0].isIntersecting&&en()}),{threshold:.1}),_e.current.observe(Be.current)),function(){_e.current&&_e.current.disconnect()}}),[oe,en]);var nn=Object.assign({data:Ie,columns:Ne,getCoreRowModel:u(),getRowCanExpand:function(e){var n;return!!e.original.renderExpandedContent||!!(null===(n=e.subRows)||void 0===n?void 0:n.length)},enableExpanding:!0,enableSortingRemoval:!!Fe||void 0,getSubRows:function(e){return e.subRows},getSortedRowModel:d(),getPaginationRowModel:T?g():void 0,initialState:W||void 0,columnResizeMode:Je,columnResizeDirection:Ye,autoResetPageIndex:le},ce);y&&(nn.getRowId=He,nn.state={rowSelection:de},nn.onRowSelectionChange=ge);var tn=f(nn);tn.toggleAllRowsSelected=Ze,tn.unselectAllRows=$e;var on=tn.getCoreRowModel().rows,ln=(tn.getPaginationRowModel(),s(Object.assign({parentRef:x,size:on.length,overscan:30},B)));return a((function(){if(F&&y){var e=O.filter((function(e,n){return de[He(e,n)]}));F(e)}}),[de,O,F,He,y]),Object.assign(Object.assign(Object.assign(Object.assign({},tn),{handleRowClick:function(e){if(D){var n=O.find((function(n,t){return He(n,t)===e}));null==_||_(n)}},toggleAllRowsSelected:Ze,unselectAllRows:$e}),E&&{virtualRows:ln.virtualItems,totalSize:ln.totalSize,scrollToIndex:ln.scrollToIndex,scrollToOffset:ln.scrollToOffset,measure:ln.measure}),{hasSelectableRows:y,showColumnManager:Re,setShowColumnManager:Se,columnManagerRef:Ae,setHoveredRow:ve,isLoading:Me,loadedData:Ie,loadMoreTriggerRef:Be,infiniteScrolling:oe,loadMoreRows:en})};export{j as default};
2
2
  //# sourceMappingURL=useLeafyGreenTable.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"useLeafyGreenTable.js","sources":["../../../../../../../src/components/NewTable/components/useLeafyGreenTable/useLeafyGreenTable.tsx"],"sourcesContent":["//@ts-nocheck\nimport { useEffect, useLayoutEffect, useMemo, useRef, useState, useCallback } from \"react\";\nimport { useVirtual } from \"react-virtual\";\nimport { useReactTable, ColumnResizeMode, ColumnResizeDirection } from \"@tanstack/react-table\";\nimport { getCoreRowModel, getPaginationRowModel, getSortedRowModel } from \"@tanstack/react-table\";\nimport omit from \"lodash/omit\";\nimport { TableHeaderCheckbox } from \"./TableHeaderCheckbox\";\nimport { TableRowCheckbox } from \"./TableRowCheckbox\";\nimport { LeafyGreenTableOptions, LGRowData } from \"./useLeafyGreenTable.types\";\nimport { LeafyGreenTable, LGColumnDef, LGTableDataType } from \".\";\nimport Settings from \"../../../Icon/Icons/components/Settings\";\nimport IconButton from \"../../../IconButton/IconButton\";\nimport ToggleExpandedIcon from \"../ToggleExpandedIcon\";\nimport Dialog from \"../../../Dialog/Dialog\";\nimport List from \"../../../List/List\";\nimport DialogContentContainer from \"../../../DialogContentContainer/DialogContentContainer\";\nimport Checkbox from \"../../../Checkbox/Checkbox\";\nimport ListItem from \"../../../ListItem/ListItem\";\n\nconst CHECKBOX_WIDTH = 14;\n\nconst useLeafyGreenTable = <T extends LGRowData, V extends unknown = unknown>({\n containerRef,\n data,\n columns: columnsProp,\n hasSelectableRows,\n withPagination = false,\n useVirtualScrolling = false,\n allowSelectAll = true,\n allowSelectSingle = false,\n onSelect,\n virtualizerOptions,\n initiallySelectedRowIds = [],\n onRowSelectionChange,\n columnManager = false,\n isExpandable = false,\n hoverIcon,\n selectCurrentPageOnly = false,\n onUnselectAll,\n initialState,\n initialLoadCount = 20, \n loadMoreCount = 10, \n onLoadMore, \n infiniteScrolling = false,\n autoResetPageIndex = true,\n selectAllRows = false,\n ...rest\n}: LeafyGreenTableOptions<T, V>): LeafyGreenTable<T> => {\n const [rowSelection, setRowSelection] = useState<{ [key: string]: boolean }>({});\n const [hoveredRow, setHoveredRow] = useState<number | null>(null);\n const [showColumnManager, setShowColumnManager] = useState(false);\n const [loadedData, setLoadedData] = useState<T[]>([]);\n const [isLoading, setIsLoading] = useState(false);\n const [isDialogOpen, setIsDialogOpen] = useState(false);\n\n const columnManagerRef = useRef<HTMLButtonElement>(null);\n const isInitialSetupDone = useRef(false);\n const initialSelectionRef = useRef<{ [key: string]: boolean }>({});\n const previousDataRef = useRef<T[]>([]);\n const observerRef = useRef<IntersectionObserver | null>(null);\n const loadMoreTriggerRef = useRef<HTMLDivElement | null>(null);\n\n const getRowId = useCallback((row: T, index: number) => {\n if (hasSelectableRows) {\n return row.id?.toString() ?? index.toString();\n }\n return index.toString();\n }, [hasSelectableRows]);\n\n useEffect(() => {\n if (!isInitialSetupDone.current && hasSelectableRows) {\n initialSelectionRef.current = initiallySelectedRowIds.reduce((acc, id) => {\n acc[id.toString()] = true;\n return acc;\n }, {});\n isInitialSetupDone.current = true;\n }\n }, [initiallySelectedRowIds, hasSelectableRows]);\n\n useEffect(() => {\n setLoadedData(infiniteScrolling ? data.slice(0, initialLoadCount) : data);\n }, [data, infiniteScrolling, initialLoadCount]);\n\n useEffect(() => {\n if (data !== previousDataRef.current && hasSelectableRows) {\n const newRowSelection = { ...initialSelectionRef.current, ...rowSelection };\n const filteredSelection = {};\n data.forEach((row, index) => {\n const rowId = getRowId(row, index);\n if (newRowSelection[rowId]) {\n filteredSelection[rowId] = true;\n }\n });\n \n setRowSelection(filteredSelection);\n previousDataRef.current = data;\n }\n }, [data, getRowId, hasSelectableRows]);\n\n const baseSelectColumnConfig: LGColumnDef<T, V> = {\n id: \"select\",\n size: CHECKBOX_WIDTH,\n header: TableHeaderCheckbox,\n cell: TableRowCheckbox,\n };\n\n useEffect(() => {\n if (selectAllRows && hasSelectableRows) {\n const allSelected = data.reduce((acc, row, index) => {\n acc[getRowId(row, index)] = true;\n return acc;\n }, {});\n setRowSelection(allSelected);\n }\n }, [selectAllRows, hasSelectableRows, data, getRowId]);\n\n const handleRowClick = (rowId: string) => {\n if (allowSelectSingle) {\n const selectedRowData = data.find((d, index) => getRowId(d, index) === rowId);\n onSelect?.(selectedRowData);\n }\n };\n\n const hasSortableColumns = useMemo(() => columnsProp.some((propCol) => !!propCol.enableSorting), [columnsProp]);\n\n const selectColumnConfig = allowSelectAll ? baseSelectColumnConfig : omit(baseSelectColumnConfig, \"header\");\n\n const expandColumnConfig: LGColumnDef<T, V> = {\n id: \"expander\",\n size: 30,\n header: () => null,\n cell: ({ row }) => {\n const isExpandable = row.getCanExpand();\n return isExpandable ? (\n <ToggleExpandedIcon\n isExpanded={row.getIsExpanded()}\n toggleExpanded={() => row.toggleExpanded()}\n disabled={false}\n />\n ) : null;\n },\n };\n\n const hoverIconConfig: LGColumnDef<T, V> = {\n id: \"hoverIcon\",\n size: 30,\n sticky: \"right\",\n header: () => null,\n cell: ({ row }) => (\n <span style={{ display: \"block\", height: \"100%\" }}>\n {hoveredRow === row.index && hoverIcon}\n </span>\n ),\n };\n\n const columns = useMemo<Array<LGColumnDef<T, V>>>(() => {\n const stickyLeftColumns = columnsProp.filter((col) => col.sticky === \"left\");\n const stickyRightColumns = columnsProp.filter((col) => col.sticky === \"right\");\n\n let leftOffset = 0;\n let rightOffset = 0;\n\n return [\n ...(hasSelectableRows ? [selectColumnConfig as LGColumnDef<T, V>] : []),\n ...(isExpandable ? [expandColumnConfig] : []),\n ...columnsProp\n .map((propColumn, index) => {\n const newColumn = {\n ...propColumn,\n align: propColumn.align ?? \"left\",\n enableSorting: propColumn.enableSorting ?? false,\n isResizable: propColumn.isResizable ?? false,\n cell: propColumn.cell || (({ getValue }) => getValue()),\n };\n\n if (propColumn.sticky === \"left\") {\n newColumn.left = leftOffset;\n leftOffset += propColumn.size;\n newColumn.isLastStickyLeft = index === stickyLeftColumns.length - 1;\n } else if (propColumn.sticky === \"right\") {\n rightOffset += propColumn.size;\n newColumn.right = rightOffset - propColumn.size;\n newColumn.isFirstStickyRight = index === columnsProp.length - stickyRightColumns.length;\n }\n\n return newColumn;\n })\n .map((column, index, columns) => {\n if (column.sticky === \"right\") {\n column.isFirstStickyRight = index === columns.length - stickyRightColumns.length;\n }\n return column;\n }),\n hoverIcon ? hoverIconConfig : null,\n ...(columnManager\n ? [\n {\n id: \"columnManager\",\n size: 20,\n header: () => (\n <Dialog\n showTrigger={[Dialog.hideShowTriggers.CLICK]}\n hideTrigger={[Dialog.hideShowTriggers.CLICK_OUTSIDE]}\n position={Dialog.positions.BOTTOM_END}\n open={isDialogOpen}\n content={\n <DialogContentContainer key=\"small\">\n {table.getAllLeafColumns().slice(0, -1).map((column, index) => (\n <ListItem key={`${column.id}-${index}`}>\n <Checkbox\n checked={column.getIsVisible()}\n label={column.columnDef.header as string || column.id}\n onChange={column.getToggleVisibilityHandler()}\n aria-labelledby={`iui-column-${column.id}`}\n />\n </ListItem>\n ))}\n </DialogContentContainer> \n }\n onDialogDidHide={() => setIsDialogOpen(false)}\n >\n <IconButton\n ariaLabel=\"Customize\"\n size={IconButton?.sizes?.XXS}\n icon={Settings}\n ref={columnManagerRef}\n onClick={() => setIsDialogOpen(true)}\n />\n </Dialog>\n ),\n cell: () => null,\n },\n ]\n : []),\n ].filter(Boolean);\n }, [columnsProp, hasSelectableRows, selectColumnConfig, columnManager, isExpandable, hoverIcon, isDialogOpen]);\n\n const [columnResizeMode, setColumnResizeMode] = useState<ColumnResizeMode>(\"onChange\");\n const [columnResizeDirection, setColumnResizeDirection] = useState<ColumnResizeDirection>(\"ltr\");\n\n const toggleAllRowsSelected = (value?: boolean) => {\n if (!hasSelectableRows) return;\n\n const newSelection = { ...initialSelectionRef.current };\n const rowsToSelect = selectCurrentPageOnly ? table.getPageRows() : table.getPreFilteredRowModel().rows;\n\n const setTo = value ?? !table.getIsAllRowsSelected();\n rowsToSelect.forEach((row) => {\n newSelection[row.id] = setTo;\n });\n\n setRowSelection(newSelection);\n };\n\n const unselectAllRows = () => {\n if (!hasSelectableRows) return;\n\n setRowSelection({});\n initialSelectionRef.current = {};\n onUnselectAll?.();\n };\n\n const loadMoreRows = useCallback(() => {\n if (!infiniteScrolling || isLoading || loadedData.length >= data.length) return;\n setIsLoading(true);\n setTimeout(() => {\n setLoadedData((prevData) => {\n const nextData = data.slice(prevData.length, prevData.length + loadMoreCount);\n return [...prevData, ...nextData];\n });\n setIsLoading(false);\n if (onLoadMore) {\n onLoadMore();\n }\n }, 500);\n }, [infiniteScrolling, isLoading, data, loadMoreCount, onLoadMore, loadedData.length]);\n\n useEffect(() => {\n if (infiniteScrolling && loadMoreTriggerRef.current) {\n observerRef.current = new IntersectionObserver(\n (entries) => {\n if (entries[0].isIntersecting) {\n loadMoreRows();\n }\n },\n { threshold: 0.1 }\n );\n\n observerRef.current.observe(loadMoreTriggerRef.current);\n }\n\n return () => {\n if (observerRef.current) {\n observerRef.current.disconnect();\n }\n };\n }, [infiniteScrolling, loadMoreRows]);\n\n const tableOptions = {\n data: loadedData,\n columns,\n getCoreRowModel: getCoreRowModel(),\n getRowCanExpand: (row) => !!row.original.renderExpandedContent || !!row.subRows?.length,\n enableExpanding: true,\n enableSortingRemoval: hasSortableColumns ? true : undefined,\n getSubRows: (row) => row.subRows,\n getSortedRowModel: getSortedRowModel(),\n getPaginationRowModel: withPagination ? getPaginationRowModel() : undefined,\n initialState: initialState ? initialState : undefined,\n columnResizeMode,\n columnResizeDirection,\n autoResetPageIndex,\n ...rest,\n };\n\n if (hasSelectableRows) {\n tableOptions.getRowId = getRowId;\n tableOptions.state = { rowSelection };\n tableOptions.onRowSelectionChange = setRowSelection;\n }\n\n const table = useReactTable<LGTableDataType<T>>(tableOptions);\n\n table.toggleAllRowsSelected = toggleAllRowsSelected;\n table.unselectAllRows = unselectAllRows;\n\n const { rows } = table.getCoreRowModel();\n const { rows: paginationRows } = table.getPaginationRowModel();\n const _rowVirtualizer = useVirtual({\n parentRef: containerRef,\n size: rows.length,\n overscan: 30,\n ...virtualizerOptions,\n });\n\n useEffect(() => {\n if (onRowSelectionChange && hasSelectableRows) {\n const selectedRows = data.filter((row, index) => rowSelection[getRowId(row, index)]);\n onRowSelectionChange(selectedRows);\n }\n }, [rowSelection, data, onRowSelectionChange, getRowId, hasSelectableRows]);\n\n return {\n ...table,\n handleRowClick,\n toggleAllRowsSelected, \n unselectAllRows, \n ...(useVirtualScrolling && {\n virtualRows: _rowVirtualizer.virtualItems,\n totalSize: _rowVirtualizer.totalSize,\n scrollToIndex: _rowVirtualizer.scrollToIndex,\n scrollToOffset: _rowVirtualizer.scrollToOffset,\n measure: _rowVirtualizer.measure,\n }),\n hasSelectableRows,\n showColumnManager,\n setShowColumnManager,\n columnManagerRef,\n setHoveredRow,\n isLoading,\n loadedData,\n loadMoreTriggerRef,\n infiniteScrolling,\n loadMoreRows,\n } as LeafyGreenTable<T>;\n};\n\nexport default useLeafyGreenTable;\n"],"names":["useLeafyGreenTable","_a","containerRef","data","columnsProp","columns","hasSelectableRows","_a$withPagination","withPagination","_a$useVirtualScrollin","useVirtualScrolling","_a$allowSelectAll","allowSelectAll","_a$allowSelectSingle","allowSelectSingle","onSelect","virtualizerOptions","_a$initiallySelectedR","initiallySelectedRowIds","onRowSelectionChange","_a$columnManager","columnManager","_a$isExpandable","isExpandable","hoverIcon","_a$selectCurrentPageO","selectCurrentPageOnly","onUnselectAll","initialState","_a$initialLoadCount","initialLoadCount","_a$loadMoreCount","loadMoreCount","onLoadMore","_a$infiniteScrolling","infiniteScrolling","_a$autoResetPageIndex","autoResetPageIndex","_a$selectAllRows","selectAllRows","rest","__rest","_useState","useState","_useState2","_slicedToArray","rowSelection","setRowSelection","_useState3","_useState4","hoveredRow","setHoveredRow","_useState5","_useState6","showColumnManager","setShowColumnManager","_useState7","_useState8","loadedData","setLoadedData","_useState9","_useState10","isLoading","setIsLoading","_useState11","_useState12","isDialogOpen","setIsDialogOpen","columnManagerRef","useRef","isInitialSetupDone","initialSelectionRef","previousDataRef","observerRef","loadMoreTriggerRef","getRowId","useCallback","row","index","_b","id","useEffect","current","reduce","acc","slice","newRowSelection","filteredSelection","forEach","rowId","baseSelectColumnConfig","size","header","TableHeaderCheckbox","cell","TableRowCheckbox","allSelected","hasSortableColumns","useMemo","some","propCol","enableSorting","selectColumnConfig","omit","expandColumnConfig","_ref","getCanExpand","_jsx","ToggleExpandedIcon","isExpanded","getIsExpanded","toggleExpanded","disabled","hoverIconConfig","sticky","_ref2","Object","assign","style","display","height","children","stickyLeftColumns","filter","col","stickyRightColumns","leftOffset","rightOffset","concat","_toConsumableArray","map","propColumn","newColumn","align","isResizable","_c","_ref3","getValue","left","isLastStickyLeft","length","right","isFirstStickyRight","column","Dialog","showTrigger","hideShowTriggers","CLICK","hideTrigger","CLICK_OUTSIDE","position","positions","BOTTOM_END","open","content","DialogContentContainer","table","getAllLeafColumns","ListItem","Checkbox","checked","getIsVisible","label","columnDef","onChange","getToggleVisibilityHandler","onDialogDidHide","IconButton","ariaLabel","sizes","XXS","icon","Settings","ref","onClick","Boolean","_useState13","_useState14","columnResizeMode","_useState15","_useState16","columnResizeDirection","toggleAllRowsSelected","value","newSelection","rowsToSelect","getPageRows","getPreFilteredRowModel","rows","setTo","getIsAllRowsSelected","unselectAllRows","loadMoreRows","setTimeout","prevData","nextData","IntersectionObserver","entries","isIntersecting","threshold","observe","disconnect","tableOptions","getCoreRowModel","getRowCanExpand","original","renderExpandedContent","subRows","enableExpanding","enableSortingRemoval","undefined","getSubRows","getSortedRowModel","getPaginationRowModel","state","useReactTable","_rowVirtualizer","useVirtual","parentRef","overscan","selectedRows","handleRowClick","selectedRowData","find","d","virtualRows","virtualItems","totalSize","scrollToIndex","scrollToOffset","measure"],"mappings":"+9BAmBA,IAEMA,EAAqB,SAAmDC,GAAA,IAC5EC,EAuBqBD,EAvBrBC,aACAC,EAsBqBF,EAtBrBE,KACSC,EAqBYH,EArBrBI,QACAC,EAoBqBL,EApBrBK,kBAAiBC,EAoBIN,EAnBrBO,eAAAA,OAAiB,IAAHD,GAAQA,EAAAE,EAmBDR,EAlBrBS,oBAAAA,OAAsB,IAAHD,GAAQA,EAAAE,EAkBN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AAD,OAAAC,OAAA,CAAA,EACFuC,IAAK,CACRiE,eApOqB,SAACpI,GACtB,GAAI3E,EAAmB,CACrB,IAAMgN,EAAkB3N,EAAK4N,MAAK,SAACC,EAAGlJ,GAAK,OAAKH,GAASqJ,EAAGlJ,KAAWW,KACvE1E,SAAAA,EAAW+M,EACZ,GAiODxC,sBAAAA,GACAS,gBAAAA,KACIrL,GAAuB,CACzBuN,YAAaT,GAAgBU,aAC7BC,UAAWX,GAAgBW,UAC3BC,cAAeZ,GAAgBY,cAC/BC,eAAgBb,GAAgBa,eAChCC,QAASd,GAAgBc,WAE3BhO,kBAAAA,EACAgD,kBAAAA,GACAC,qBAAAA,GACAa,iBAAAA,GACAjB,cAAAA,GACAW,UAAAA,GACAJ,WAAAA,GACAgB,mBAAAA,GACAvC,kBAAAA,GACA6J,aAAAA,IAEJ"}
1
+ {"version":3,"file":"useLeafyGreenTable.js","sources":["../../../../../../../src/components/NewTable/components/useLeafyGreenTable/useLeafyGreenTable.tsx"],"sourcesContent":["//@ts-nocheck\nimport { useEffect, useLayoutEffect, useMemo, useRef, useState, useCallback } from \"react\";\nimport { useVirtual } from \"react-virtual\";\nimport { useReactTable, ColumnResizeMode, ColumnResizeDirection } from \"@tanstack/react-table\";\nimport { getCoreRowModel, getPaginationRowModel, getSortedRowModel } from \"@tanstack/react-table\";\nimport omit from \"lodash/omit\";\nimport { TableHeaderCheckbox } from \"./TableHeaderCheckbox\";\nimport { TableRowCheckbox } from \"./TableRowCheckbox\";\nimport { LeafyGreenTableOptions, LGRowData } from \"./useLeafyGreenTable.types\";\nimport { LeafyGreenTable, LGColumnDef, LGTableDataType } from \".\";\nimport Settings from \"../../../Icon/Icons/components/Settings\";\nimport IconButton from \"../../../IconButton/IconButton\";\nimport ToggleExpandedIcon from \"../ToggleExpandedIcon\";\nimport Dialog from \"../../../Dialog/Dialog\";\nimport List from \"../../../List/List\";\nimport DialogContentContainer from \"../../../DialogContentContainer/DialogContentContainer\";\nimport Checkbox from \"../../../Checkbox/Checkbox\";\nimport ListItem from \"../../../ListItem/ListItem\";\n\nconst CHECKBOX_WIDTH = 14;\n\nconst useLeafyGreenTable = <T extends LGRowData, V extends unknown = unknown>({\n containerRef,\n data,\n columns: columnsProp,\n hasSelectableRows,\n withPagination = false,\n useVirtualScrolling = false,\n allowSelectAll = true,\n allowSelectSingle = false,\n onSelect,\n virtualizerOptions,\n initiallySelectedRowIds = [],\n onRowSelectionChange,\n columnManager = false,\n isExpandable = false,\n hoverIcon,\n selectCurrentPageOnly = false,\n onUnselectAll,\n initialState,\n initialLoadCount = 20, \n loadMoreCount = 10, \n onLoadMore, \n infiniteScrolling = false,\n autoResetPageIndex = true,\n selectAllRows = false,\n ...rest\n}: LeafyGreenTableOptions<T, V>): LeafyGreenTable<T> => {\n const [rowSelection, setRowSelection] = useState<{ [key: string]: boolean }>({});\n const [hoveredRow, setHoveredRow] = useState<number | null>(null);\n const [showColumnManager, setShowColumnManager] = useState(false);\n const [loadedData, setLoadedData] = useState<T[]>([]);\n const [isLoading, setIsLoading] = useState(false);\n const [isDialogOpen, setIsDialogOpen] = useState(false);\n\n const columnManagerRef = useRef<HTMLButtonElement>(null);\n const isInitialSetupDone = useRef(false);\n const initialSelectionRef = useRef<{ [key: string]: boolean }>({});\n const previousDataRef = useRef<T[]>([]);\n const observerRef = useRef<IntersectionObserver | null>(null);\n const loadMoreTriggerRef = useRef<HTMLDivElement | null>(null);\n\n const getRowId = useCallback((row: T, index: number) => {\n if (hasSelectableRows) {\n return row.id?.toString() ?? index.toString();\n }\n return index.toString();\n }, [hasSelectableRows]);\n\n useEffect(() => {\n if (!isInitialSetupDone.current && hasSelectableRows) {\n initialSelectionRef.current = initiallySelectedRowIds.reduce((acc, id) => {\n acc[id.toString()] = true;\n return acc;\n }, {});\n isInitialSetupDone.current = true;\n }\n }, [initiallySelectedRowIds, hasSelectableRows]);\n\n useEffect(() => {\n setLoadedData(infiniteScrolling ? data.slice(0, initialLoadCount) : data);\n }, [data, infiniteScrolling, initialLoadCount]);\n\n useEffect(() => {\n if (data !== previousDataRef.current && hasSelectableRows) {\n const newRowSelection = { ...initialSelectionRef.current, ...rowSelection };\n const filteredSelection = {};\n data.forEach((row, index) => {\n const rowId = getRowId(row, index);\n if (newRowSelection[rowId]) {\n filteredSelection[rowId] = true;\n }\n });\n \n setRowSelection(filteredSelection);\n previousDataRef.current = data;\n }\n }, [data, getRowId, hasSelectableRows]);\n\n const baseSelectColumnConfig: LGColumnDef<T, V> = {\n id: \"select\",\n size: CHECKBOX_WIDTH,\n header: TableHeaderCheckbox,\n cell: TableRowCheckbox,\n };\n\n useEffect(() => {\n if (selectAllRows && hasSelectableRows) {\n const allSelected = data.reduce((acc, row, index) => {\n acc[getRowId(row, index)] = true;\n return acc;\n }, {});\n setRowSelection(allSelected);\n }\n }, [selectAllRows, hasSelectableRows, data, getRowId]);\n\n const handleRowClick = (rowId: string) => {\n if (allowSelectSingle) {\n const selectedRowData = data.find((d, index) => getRowId(d, index) === rowId);\n onSelect?.(selectedRowData);\n }\n };\n\n const hasSortableColumns = useMemo(() => columnsProp.some((propCol) => !!propCol.enableSorting), [columnsProp]);\n\n const selectColumnConfig = allowSelectAll ? baseSelectColumnConfig : omit(baseSelectColumnConfig, \"header\");\n\n const expandColumnConfig: LGColumnDef<T, V> = {\n id: \"expander\",\n size: 30,\n header: () => null,\n cell: ({ row }) => {\n const isExpandable = row.getCanExpand();\n return isExpandable ? (\n <ToggleExpandedIcon\n isExpanded={row.getIsExpanded()}\n toggleExpanded={() => row.toggleExpanded()}\n disabled={false}\n />\n ) : null;\n },\n };\n\n const hoverIconConfig: LGColumnDef<T, V> = {\n id: \"hoverIcon\",\n size: 30,\n sticky: \"right\",\n header: () => null,\n cell: ({ row }) => (\n <span style={{ display: \"block\", height: \"100%\" }}>\n {hoveredRow === row.index && hoverIcon}\n </span>\n ),\n };\n\n const columns = useMemo<Array<LGColumnDef<T, V>>>(() => {\n const stickyLeftColumns = columnsProp.filter((col) => col.sticky === \"left\");\n const stickyRightColumns = columnsProp.filter((col) => col.sticky === \"right\");\n\n let leftOffset = 0;\n let rightOffset = 0;\n\n return [\n ...(hasSelectableRows ? [selectColumnConfig as LGColumnDef<T, V>] : []),\n ...(isExpandable ? [expandColumnConfig] : []),\n ...columnsProp\n .map((propColumn, index) => {\n const newColumn = {\n ...propColumn,\n align: propColumn.align ?? \"left\",\n enableSorting: propColumn.enableSorting ?? false,\n isResizable: propColumn.isResizable ?? false,\n cell: propColumn.cell || (({ getValue }) => getValue()),\n };\n\n if (propColumn.sticky === \"left\") {\n newColumn.left = leftOffset;\n leftOffset += propColumn.size;\n newColumn.isLastStickyLeft = index === stickyLeftColumns.length - 1;\n } else if (propColumn.sticky === \"right\") {\n rightOffset += propColumn.size;\n newColumn.right = rightOffset - propColumn.size;\n newColumn.isFirstStickyRight = index === columnsProp.length - stickyRightColumns.length;\n }\n\n return newColumn;\n })\n .map((column, index, columns) => {\n if (column.sticky === \"right\") {\n column.isFirstStickyRight = index === columns.length - stickyRightColumns.length;\n }\n return column;\n }),\n hoverIcon ? hoverIconConfig : null,\n ...(columnManager\n ? [\n {\n id: \"columnManager\",\n size: 20,\n header: () => (\n <Dialog\n showTrigger={[Dialog.hideShowTriggers.CLICK]}\n hideTrigger={[Dialog.hideShowTriggers.CLICK_OUTSIDE]}\n position={Dialog.positions.BOTTOM_END}\n open={isDialogOpen}\n content={\n <DialogContentContainer key=\"small\">\n {table.getAllLeafColumns().slice(0, -1).map((column, index) => (\n <ListItem key={`${column.id}-${index}`}>\n <Checkbox\n checked={column.getIsVisible()}\n label={column.columnDef.header as string || column.id}\n onChange={column.getToggleVisibilityHandler()}\n aria-labelledby={`iui-column-${column.id}`}\n />\n </ListItem>\n ))}\n </DialogContentContainer> \n }\n onDialogDidHide={() => setIsDialogOpen(false)}\n >\n <IconButton\n ariaLabel=\"Customize\"\n size={IconButton?.sizes?.XXS}\n icon={Settings}\n ref={columnManagerRef}\n onClick={() => setIsDialogOpen(true)}\n />\n </Dialog>\n ),\n cell: () => null,\n },\n ]\n : []),\n ].filter(Boolean);\n }, [columnsProp, hasSelectableRows, selectColumnConfig, columnManager, isExpandable, hoverIcon, isDialogOpen]);\n\n const [columnResizeMode, setColumnResizeMode] = useState<ColumnResizeMode>(\"onChange\");\n const [columnResizeDirection, setColumnResizeDirection] = useState<ColumnResizeDirection>(\"ltr\");\n\n const toggleAllRowsSelected = (value?: boolean) => {\n if (!hasSelectableRows) return;\n\n const newSelection = { ...initialSelectionRef.current };\n const rowsToSelect = selectCurrentPageOnly ? table.getPageRows() : table.getPreFilteredRowModel().rows;\n\n const setTo = value ?? !table.getIsAllRowsSelected();\n rowsToSelect.forEach((row) => {\n newSelection[row.id] = setTo;\n });\n\n setRowSelection(newSelection);\n };\n\n const unselectAllRows = () => {\n if (!hasSelectableRows) return;\n\n setRowSelection({});\n initialSelectionRef.current = {};\n onUnselectAll?.();\n };\n\n const loadMoreRows = useCallback(() => {\n if (!infiniteScrolling || isLoading || loadedData.length >= data.length) return;\n setIsLoading(true);\n setTimeout(() => {\n setLoadedData((prevData) => {\n const nextData = data.slice(prevData.length, prevData.length + loadMoreCount);\n if (prevData.length + nextData.length >= data.length && observerRef.current) {\n observerRef.current.disconnect();\n }\n\n return [...prevData, ...nextData];\n });\n setIsLoading(false);\n if (onLoadMore) {\n onLoadMore();\n }\n }, 500);\n }, [infiniteScrolling, isLoading, data, loadMoreCount, onLoadMore, loadedData.length]);\n\n useEffect(() => {\n if (infiniteScrolling && loadMoreTriggerRef.current) {\n observerRef.current = new IntersectionObserver(\n (entries) => {\n if (entries[0].isIntersecting) {\n loadMoreRows();\n }\n },\n { threshold: 0.1 }\n );\n\n observerRef.current.observe(loadMoreTriggerRef.current);\n }\n\n return () => {\n if (observerRef.current) {\n observerRef.current.disconnect();\n }\n };\n }, [infiniteScrolling, loadMoreRows]);\n\n const tableOptions = {\n data: loadedData,\n columns,\n getCoreRowModel: getCoreRowModel(),\n getRowCanExpand: (row) => !!row.original.renderExpandedContent || !!row.subRows?.length,\n enableExpanding: true,\n enableSortingRemoval: hasSortableColumns ? true : undefined,\n getSubRows: (row) => row.subRows,\n getSortedRowModel: getSortedRowModel(),\n getPaginationRowModel: withPagination ? getPaginationRowModel() : undefined,\n initialState: initialState ? initialState : undefined,\n columnResizeMode,\n columnResizeDirection,\n autoResetPageIndex,\n ...rest,\n };\n\n if (hasSelectableRows) {\n tableOptions.getRowId = getRowId;\n tableOptions.state = { rowSelection };\n tableOptions.onRowSelectionChange = setRowSelection;\n }\n\n const table = useReactTable<LGTableDataType<T>>(tableOptions);\n\n table.toggleAllRowsSelected = toggleAllRowsSelected;\n table.unselectAllRows = unselectAllRows;\n\n const { rows } = table.getCoreRowModel();\n const { rows: paginationRows } = table.getPaginationRowModel();\n const _rowVirtualizer = useVirtual({\n parentRef: containerRef,\n size: rows.length,\n overscan: 30,\n ...virtualizerOptions,\n });\n\n useEffect(() => {\n if (onRowSelectionChange && hasSelectableRows) {\n const selectedRows = data.filter((row, index) => rowSelection[getRowId(row, index)]);\n onRowSelectionChange(selectedRows);\n }\n }, [rowSelection, data, onRowSelectionChange, getRowId, hasSelectableRows]);\n\n return {\n ...table,\n handleRowClick,\n toggleAllRowsSelected, \n unselectAllRows, \n ...(useVirtualScrolling && {\n virtualRows: _rowVirtualizer.virtualItems,\n totalSize: _rowVirtualizer.totalSize,\n scrollToIndex: _rowVirtualizer.scrollToIndex,\n scrollToOffset: _rowVirtualizer.scrollToOffset,\n measure: _rowVirtualizer.measure,\n }),\n hasSelectableRows,\n showColumnManager,\n setShowColumnManager,\n columnManagerRef,\n setHoveredRow,\n isLoading,\n loadedData,\n loadMoreTriggerRef,\n infiniteScrolling,\n loadMoreRows,\n } as LeafyGreenTable<T>;\n};\n\nexport default useLeafyGreenTable;\n"],"names":["useLeafyGreenTable","_a","containerRef","data","columnsProp","columns","hasSelectableRows","_a$withPagination","withPagination","_a$useVirtualScrollin","useVirtualScrolling","_a$allowSelectAll","allowSelectAll","_a$allowSelectSingle","allowSelectSingle","onSelect","virtualizerOptions","_a$initiallySelectedR","initiallySelectedRowIds","onRowSelectionChange","_a$columnManager","columnManager","_a$isExpandable","isExpandable","hoverIcon","_a$selectCurrentPageO","selectCurrentPageOnly","onUnselectAll","initialState","_a$initialLoadCount","initialLoadCount","_a$loadMoreCount","loadMoreCount","onLoadMore","_a$infiniteScrolling","infiniteScrolling","_a$autoResetPageIndex","autoResetPageIndex","_a$selectAllRows","selectAllRows","rest","__rest","_useState","useState","_useState2","_slicedToArray","rowSelection","setRowSelection","_useState3","_useState4","hoveredRow","setHoveredRow","_useState5","_useState6","showColumnManager","setShowColumnManager","_useState7","_useState8","loadedData","setLoadedData","_useState9","_useState10","isLoading","setIsLoading","_useState11","_useState12","isDialogOpen","setIsDialogOpen","columnManagerRef","useRef","isInitialSetupDone","initialSelectionRef","previousDataRef","observerRef","loadMoreTriggerRef","getRowId","useCallback","row","index","_b","id","useEffect","current","reduce","acc","slice","newRowSelection","filteredSelection","forEach","rowId","baseSelectColumnConfig","size","header","TableHeaderCheckbox","cell","TableRowCheckbox","allSelected","hasSortableColumns","useMemo","some","propCol","enableSorting","selectColumnConfig","omit","expandColumnConfig","_ref","getCanExpand","_jsx","ToggleExpandedIcon","isExpanded","getIsExpanded","toggleExpanded","disabled","hoverIconConfig","sticky","_ref2","Object","assign","style","display","height","children","stickyLeftColumns","filter","col","stickyRightColumns","leftOffset","rightOffset","concat","_toConsumableArray","map","propColumn","newColumn","align","isResizable","_c","_ref3","getValue","left","isLastStickyLeft","length","right","isFirstStickyRight","column","Dialog","showTrigger","hideShowTriggers","CLICK","hideTrigger","CLICK_OUTSIDE","position","positions","BOTTOM_END","open","content","DialogContentContainer","table","getAllLeafColumns","ListItem","Checkbox","checked","getIsVisible","label","columnDef","onChange","getToggleVisibilityHandler","onDialogDidHide","IconButton","ariaLabel","sizes","XXS","icon","Settings","ref","onClick","Boolean","_useState13","_useState14","columnResizeMode","_useState15","_useState16","columnResizeDirection","toggleAllRowsSelected","value","newSelection","rowsToSelect","getPageRows","getPreFilteredRowModel","rows","setTo","getIsAllRowsSelected","unselectAllRows","loadMoreRows","setTimeout","prevData","nextData","disconnect","IntersectionObserver","entries","isIntersecting","threshold","observe","tableOptions","getCoreRowModel","getRowCanExpand","original","renderExpandedContent","subRows","enableExpanding","enableSortingRemoval","undefined","getSubRows","getSortedRowModel","getPaginationRowModel","state","useReactTable","_rowVirtualizer","useVirtual","parentRef","overscan","selectedRows","handleRowClick","selectedRowData","find","d","virtualRows","virtualItems","totalSize","scrollToIndex","scrollToOffset","measure"],"mappings":"+9BAmBA,IAEMA,EAAqB,SAAmDC,GAAA,IAC5EC,EAuBqBD,EAvBrBC,aACAC,EAsBqBF,EAtBrBE,KACSC,EAqBYH,EArBrBI,QACAC,EAoBqBL,EApBrBK,kBAAiBC,EAoBIN,EAnBrBO,eAAAA,OAAiB,IAAHD,GAAQA,EAAAE,EAmBDR,EAlBrBS,oBAAAA,OAAsB,IAAHD,GAAQA,EAAAE,EAkBNV,EAjBrBW,eAAAA,OAAiB,IAAHD,GAAOA,EAAAE,EAiBAZ,EAhBrBa,kBAAAA,OAAoB,IAAHD,GAAQA,EACzBE,EAeqBd,EAfrBc,SACAC,EAcqBf,EAdrBe,mBAAkBC,EAcGhB,EAbrBiB,wBAAAA,OAA0B,IAAHD,EAAG,GAAEA,EAC5BE,EAYqBlB,EAZrBkB,qBAAoBC,EAYCnB,EAXrBoB,cAAAA,OAAgB,IAAHD,GAAQA,EAAAE,EAWArB,EAVrBsB,aAAAA,OAAe,IAAHD,GAAQA,EACpBE,EASqBvB,EATrBuB,UAASC,EASYxB,EARrByB,sBAAAA,OAAwB,IAAHD,GAAQA,EAC7BE,EAOqB1B,EAPrB0B,cACAC,EAMqB3B,EANrB2B,aAAYC,EAMS5B,EALrB6B,iBAAAA,OAAmB,IAAHD,EAAG,GAAEA,EAAAE,EAKA9B,EAJrB+B,cAAAA,QAAgB,IAAHD,EAAG,GAAEA,EAClBE,GAGq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AA,IAEJ"}
package/dist/main.css CHANGED
@@ -148,7 +148,7 @@ a[href].components-AttentionBox-AttentionBoxLink-AttentionBoxLink-module__attent
148
148
  .components-NewTable-components-Cell-Cell-module__baseCell--C0Dib{border-block-start:solid 1px rgba(0,0,0,0);border-block-end:solid 1px rgba(0,0,0,0);border-block-end-color:var(--divider-primary);transition:all .3s ease-out}.components-NewTable-components-Cell-Cell-module__baseCell--C0Dib:focus-visible{box-shadow:inset 0 0 0 1px #000}.components-NewTable-components-Cell-Cell-module__baseCell--C0Dib:last-child{padding-right:32px}.components-NewTable-components-Cell-Cell-module__stickyLeft--DkBvD,.components-NewTable-components-Cell-Cell-module__stickyRight--ZbmoW{position:sticky;background-color:var(--surface-level-100)}.components-NewTable-components-Cell-Cell-module__stickyLeft--DkBvD{left:0}.components-NewTable-components-Cell-Cell-module__stickyRight--ZbmoW{right:0}.components-NewTable-components-Cell-Cell-module__lastStickyLeft--qrbTD::after{content:"";position:absolute;top:0;right:0;bottom:0;width:4px;box-shadow:inset -3px 0 5px -3px var(--shadow-color);pointer-events:none}.components-NewTable-components-Cell-Cell-module__firstStickyRight--Z0RtQ::before{content:"";position:absolute;top:0;left:0;bottom:0;width:4px;box-shadow:inset 3px 0 5px -3px var(--shadow-color);pointer-events:none}.components-NewTable-components-Cell-Cell-module__firstChildCell--yv_8A{padding-left:40px}.components-NewTable-components-Cell-Cell-module__cellTransitionContainer--Gdt7H{display:flex;align-items:center;min-height:40px;transition-property:min-height,max-height,opacity,padding,transform;transition-duration:250ms;transition-timing-function:ease}.components-NewTable-components-Cell-Cell-module__truncatedContent--LTHYC{display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;-webkit-box-align:start;overflow:hidden}.components-NewTable-components-Cell-Cell-module__disableAnimation--yj90Q{transition-duration:0;transition:none}.components-NewTable-components-Cell-Cell-module__cellContentTransitionEntered--UStVp{opacity:1;min-height:40px;max-height:unset}.components-NewTable-components-Cell-Cell-module__cellContentTransitionEntering--pAC6S,.components-NewTable-components-Cell-Cell-module__cellContentTransitionExiting--tbDos,.components-NewTable-components-Cell-Cell-module__cellContentTransitionExited--fqsuT,.components-NewTable-components-Cell-Cell-module__cellContentTransitionUnmounted--I08uT{opacity:0;min-height:0;max-height:0;overflow:hidden}.components-NewTable-components-Cell-Cell-module__align-left--L1dR0{justify-content:left;text-align:left}.components-NewTable-components-Cell-Cell-module__align-right--ahXhz{justify-content:right;text-align:right}.components-NewTable-components-Cell-Cell-module__align-center--NK7Mx{justify-content:center;text-align:center}
149
149
  .components-NewTable-components-Cell-HeaderCell-HeaderCell-module__headerCellContent--YbVbJ{height:40px}.components-NewTable-components-Cell-HeaderCell-HeaderCell-module__headerCell--tK64d{position:relative}.components-NewTable-components-Cell-HeaderCell-HeaderCell-module__headerCell--tK64d.components-NewTable-components-Cell-HeaderCell-HeaderCell-module__isResizingHeader--WfyNg{background-color:var(--surface-level-200)}.components-NewTable-components-Cell-HeaderCell-HeaderCell-module__headerCell--tK64d:hover .components-NewTable-components-Cell-HeaderCell-HeaderCell-module__sortIcon--Po6NG,.components-NewTable-components-Cell-HeaderCell-HeaderCell-module__headerCell--tK64d .components-NewTable-components-Cell-HeaderCell-HeaderCell-module__sortIcon--Po6NG:hover{opacity:1}.components-NewTable-components-Cell-HeaderCell-HeaderCell-module__headerCell--tK64d.components-NewTable-components-Cell-HeaderCell-HeaderCell-module__stickyLeft--jw9r6{position:sticky;background-color:var(--surface-level-100)}.components-NewTable-components-Cell-HeaderCell-HeaderCell-module__headerCell--tK64d.components-NewTable-components-Cell-HeaderCell-HeaderCell-module__stickyRight--d_qxO{position:sticky;background-color:var(--surface-level-100)}.components-NewTable-components-Cell-HeaderCell-HeaderCell-module__headerCell--tK64d.components-NewTable-components-Cell-HeaderCell-HeaderCell-module__lastStickyLeft--HPeE9{z-index:1}.components-NewTable-components-Cell-HeaderCell-HeaderCell-module__headerCell--tK64d.components-NewTable-components-Cell-HeaderCell-HeaderCell-module__firstStickyRight--JqfPY{z-index:1}.components-NewTable-components-Cell-HeaderCell-HeaderCell-module__sortIcon--Po6NG{opacity:0;transition:opacity .3s ease}.components-NewTable-components-Cell-HeaderCell-HeaderCell-module__sortIcon--Po6NG.components-NewTable-components-Cell-HeaderCell-HeaderCell-module__visible--WDjJy{opacity:1}.components-NewTable-components-Cell-HeaderCell-HeaderCell-module__resizableHeaderCell--elT_k{position:relative}.components-NewTable-components-Cell-HeaderCell-HeaderCell-module__headerCellContent--YbVbJ{display:flex;align-items:center;justify-content:space-between;border-block-start:solid 1px rgba(0,0,0,0);border-block-end:solid 1px rgba(0,0,0,0);border-block-end-color:var(--divider-primary)}.components-NewTable-components-Cell-HeaderCell-HeaderCell-module__resizer--avwYI{position:absolute;inline-size:6px;width:5px;height:100%;block-size:100%;margin-inline:auto;cursor:col-resize;right:0;top:0;background-color:rgba(0,0,0,0);transition:background-color .3s ease-out,width .3s ease-out}.components-NewTable-components-Cell-HeaderCell-HeaderCell-module__resizer--avwYI:hover{background-color:var(--divider-secondary)}.components-NewTable-components-Cell-HeaderCell-HeaderCell-module__isResizing--smiA0{-webkit-user-select:none;user-select:none;inline-size:var(--spacing-small);background-color:var(--divider-selected) !important}.components-NewTable-components-Cell-HeaderCell-HeaderCell-module__tableSort--FQJ6R{opacity:1;color:var(--icon-secondary)}.components-NewTable-components-Cell-HeaderCell-HeaderCell-module__tableSortsorted--zzSvc{background-color:var(--surface-level-100-hover)}.components-NewTable-components-Cell-HeaderCell-HeaderCell-module__tableSortsorted--zzSvc .components-NewTable-components-Cell-HeaderCell-HeaderCell-module__tableSort--FQJ6R{opacity:1;--_iui-table-cell-icon-fill: var(--icon-primary)}
150
150
  .components-NewTable-components-ExpandedContent-ExpandedContent-module__baseStyles--oQb3_{padding:0;overflow:hidden}.components-NewTable-components-ExpandedContent-ExpandedContent-module__cellTransitionContainer--Fpf8E{transition:height .6s ease;overflow:hidden}.components-NewTable-components-ExpandedContent-ExpandedContent-module__expandedContent--kHqV6{background-color:var(--surface-level-200)}
151
- .components-NewTable-Table-module__tableContainerStyles--jqwy2{position:relative}.components-NewTable-Table-module__tableWrapper--Cu9TP{width:100%;height:100%;overflow:hidden}.components-NewTable-Table-module__tableContainer--MOA8m{overflow-x:auto;overflow-y:auto;height:90%}.components-NewTable-Table-module__baseStyles--Iz4tk{border-spacing:0;border-collapse:collapse;margin:0;padding:0;border:none;vertical-align:baseline;flex-direction:column;isolation:isolate;overflow:auto;scrollbar-gutter:stable;background-color:rgba(0,0,0,0);font-size:14px}.components-NewTable-Table-module__emptyTableContent--ZRhNV{text-align:center;padding:20px}.components-NewTable-Table-module__loaderRow--nzkFS{width:100%}.components-NewTable-Table-module__loader--TxIPs{margin:16px auto;display:flex;justify-content:center;align-items:center}
151
+ .components-NewTable-Table-module__tableContainerStyles--jqwy2{position:relative}.components-NewTable-Table-module__tableWrapper--Cu9TP{width:100%;height:100%;overflow:hidden}.components-NewTable-Table-module__tableContainer--MOA8m{overflow-x:auto;overflow-y:auto;height:90%}.components-NewTable-Table-module__baseStyles--Iz4tk{border-spacing:0;border-collapse:collapse;margin:0;padding:0;border:none;vertical-align:baseline;flex-direction:column;isolation:isolate;overflow:auto;scrollbar-gutter:stable;background-color:rgba(0,0,0,0);font-size:14px}.components-NewTable-Table-module__emptyTableContent--ZRhNV{text-align:center;padding:20px}.components-NewTable-Table-module__loaderRow--nzkFS{width:100%}.components-NewTable-Table-module__loader--TxIPs{margin:16px auto;display:flex;justify-content:center;align-items:center}.components-NewTable-Table-module__loaderContainer--ENP5W{display:flex;justify-content:center;align-items:center;position:absolute;bottom:0;width:100%}
152
152
  .components-NewTable-components-newComponents-pagination-Pagination-module__baseStyles--Oj3CH{display:flex;justify-content:space-between;width:100%;gap:16px}.components-NewTable-components-newComponents-pagination-Pagination-module__baseStyles--Oj3CH>div:first-child{justify-content:flex-start}.components-NewTable-components-newComponents-pagination-Pagination-module__baseStyles--Oj3CH>div:last-child{justify-content:flex-end}.components-NewTable-components-newComponents-pagination-Pagination-module__flexSectionStyles--N_PEy{flex:1;display:flex;align-items:center;justify-content:center}select{background-color:var(--surface-level-050);border:none;border-radius:4px;color:var(--text-primary)}select:hover{background-color:var(--surface-level-200);cursor:pointer}
153
153
  .components-NewTable-components-useLeafyGreenTable-useLeafyGreenTable-module__themeLight--O5Ze9 .components-NewTable-components-useLeafyGreenTable-useLeafyGreenTable-module__disabledTableRowCheck--vj9kV input+div{border-color:#e6e6e6;background-color:#d3d3d3}.components-NewTable-components-useLeafyGreenTable-useLeafyGreenTable-module__themeLight--O5Ze9 .components-NewTable-components-useLeafyGreenTable-useLeafyGreenTable-module__disabledTableRowCheck--vj9kV input[aria-checked=true]+div:before{background-color:#e6e6e6}.components-NewTable-components-useLeafyGreenTable-useLeafyGreenTable-module__themeLight--O5Ze9 .components-NewTable-components-useLeafyGreenTable-useLeafyGreenTable-module__disabledTableRowCheck--vj9kV input[aria-checked=true]+div path{stroke:#fff}
154
154
  .components-NewTable-components-ToggleExpandedIcon-ToggleExpandedIcon-module__iconButtonTransitionStyles--Gvk9X{transition:transform 150ms ease-in-out}.components-NewTable-components-ToggleExpandedIcon-ToggleExpandedIcon-module__rotatedStyles--xdk6O{transform:rotate(-90deg)}