@veeqo/ui 9.7.1 → 9.9.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/ActionMenu/ActionMenu.cjs +1 -0
- package/dist/components/ActionMenu/ActionMenu.cjs.map +1 -1
- package/dist/components/ActionMenu/ActionMenu.js +1 -0
- package/dist/components/ActionMenu/ActionMenu.js.map +1 -1
- package/dist/components/DataGrid/DataGrid.cjs +104 -0
- package/dist/components/DataGrid/DataGrid.cjs.map +1 -0
- package/dist/components/DataGrid/DataGrid.d.ts +21 -0
- package/dist/components/DataGrid/DataGrid.js +98 -0
- package/dist/components/DataGrid/DataGrid.js.map +1 -0
- package/dist/components/DataGrid/components/Body/Body.cjs +21 -0
- package/dist/components/DataGrid/components/Body/Body.cjs.map +1 -0
- package/dist/components/DataGrid/components/Body/Body.d.ts +23 -0
- package/dist/components/DataGrid/components/Body/Body.js +14 -0
- package/dist/components/DataGrid/components/Body/Body.js.map +1 -0
- package/dist/components/DataGrid/components/Body/BodyCell/BodyCell.cjs +29 -0
- package/dist/components/DataGrid/components/Body/BodyCell/BodyCell.cjs.map +1 -0
- package/dist/components/DataGrid/components/Body/BodyCell/BodyCell.d.ts +18 -0
- package/dist/components/DataGrid/components/Body/BodyCell/BodyCell.js +23 -0
- package/dist/components/DataGrid/components/Body/BodyCell/BodyCell.js.map +1 -0
- package/dist/components/DataGrid/components/Body/BodyCell/BodyCell.module.css.cjs +11 -0
- package/dist/components/DataGrid/components/Body/BodyCell/BodyCell.module.css.cjs.map +1 -0
- package/dist/components/DataGrid/components/Body/BodyCell/BodyCell.module.css.js +9 -0
- package/dist/components/DataGrid/components/Body/BodyCell/BodyCell.module.css.js.map +1 -0
- package/dist/components/DataGrid/components/Body/BodyCell/index.d.ts +1 -0
- package/dist/components/DataGrid/components/Body/Row/Row.cjs +14 -0
- package/dist/components/DataGrid/components/Body/Row/Row.cjs.map +1 -0
- package/dist/components/DataGrid/components/Body/Row/Row.d.ts +18 -0
- package/dist/components/DataGrid/components/Body/Row/Row.js +8 -0
- package/dist/components/DataGrid/components/Body/Row/Row.js.map +1 -0
- package/dist/components/DataGrid/components/Body/Row/index.d.ts +1 -0
- package/dist/components/DataGrid/components/Body/index.d.ts +1 -0
- package/dist/components/DataGrid/components/CellContent/CellContent.cjs +21 -0
- package/dist/components/DataGrid/components/CellContent/CellContent.cjs.map +1 -0
- package/dist/components/DataGrid/components/CellContent/CellContent.d.ts +15 -0
- package/dist/components/DataGrid/components/CellContent/CellContent.js +15 -0
- package/dist/components/DataGrid/components/CellContent/CellContent.js.map +1 -0
- package/dist/components/DataGrid/components/CellContent/CellContent.module.css.cjs +11 -0
- package/dist/components/DataGrid/components/CellContent/CellContent.module.css.cjs.map +1 -0
- package/dist/components/DataGrid/components/CellContent/CellContent.module.css.js +9 -0
- package/dist/components/DataGrid/components/CellContent/CellContent.module.css.js.map +1 -0
- package/dist/components/DataGrid/components/CellContent/index.d.ts +1 -0
- package/dist/components/DataGrid/components/Columns/Columns.cjs +56 -0
- package/dist/components/DataGrid/components/Columns/Columns.cjs.map +1 -0
- package/dist/components/DataGrid/components/Columns/Columns.d.ts +17 -0
- package/dist/components/DataGrid/components/Columns/Columns.js +50 -0
- package/dist/components/DataGrid/components/Columns/Columns.js.map +1 -0
- package/dist/components/DataGrid/components/Columns/index.d.ts +1 -0
- package/dist/components/DataGrid/components/Footer/Footer.cjs +18 -0
- package/dist/components/DataGrid/components/Footer/Footer.cjs.map +1 -0
- package/dist/components/DataGrid/components/Footer/Footer.d.ts +15 -0
- package/dist/components/DataGrid/components/Footer/Footer.js +12 -0
- package/dist/components/DataGrid/components/Footer/Footer.js.map +1 -0
- package/dist/components/DataGrid/components/Footer/FooterCell/FooterCell.cjs +25 -0
- package/dist/components/DataGrid/components/Footer/FooterCell/FooterCell.cjs.map +1 -0
- package/dist/components/DataGrid/components/Footer/FooterCell/FooterCell.d.ts +18 -0
- package/dist/components/DataGrid/components/Footer/FooterCell/FooterCell.js +19 -0
- package/dist/components/DataGrid/components/Footer/FooterCell/FooterCell.js.map +1 -0
- package/dist/components/DataGrid/components/Footer/FooterCell/FooterCell.module.css.cjs +11 -0
- package/dist/components/DataGrid/components/Footer/FooterCell/FooterCell.module.css.cjs.map +1 -0
- package/dist/components/DataGrid/components/Footer/FooterCell/FooterCell.module.css.js +9 -0
- package/dist/components/DataGrid/components/Footer/FooterCell/FooterCell.module.css.js.map +1 -0
- package/dist/components/DataGrid/components/Footer/FooterCell/index.d.ts +1 -0
- package/dist/components/DataGrid/components/Footer/index.d.ts +1 -0
- package/dist/components/DataGrid/components/GridContainer/Container/Container.cjs +23 -0
- package/dist/components/DataGrid/components/GridContainer/Container/Container.cjs.map +1 -0
- package/dist/components/DataGrid/components/GridContainer/Container/Container.d.ts +21 -0
- package/dist/components/DataGrid/components/GridContainer/Container/Container.js +17 -0
- package/dist/components/DataGrid/components/GridContainer/Container/Container.js.map +1 -0
- package/dist/components/DataGrid/components/GridContainer/Container/Container.module.css.cjs +17 -0
- package/dist/components/DataGrid/components/GridContainer/Container/Container.module.css.cjs.map +1 -0
- package/dist/components/DataGrid/components/GridContainer/Container/Container.module.css.js +12 -0
- package/dist/components/DataGrid/components/GridContainer/Container/Container.module.css.js.map +1 -0
- package/dist/components/DataGrid/components/GridContainer/Container/index.d.ts +1 -0
- package/dist/components/DataGrid/components/GridContainer/GridContainer.cjs +25 -0
- package/dist/components/DataGrid/components/GridContainer/GridContainer.cjs.map +1 -0
- package/dist/components/DataGrid/components/GridContainer/GridContainer.d.ts +49 -0
- package/dist/components/DataGrid/components/GridContainer/GridContainer.js +19 -0
- package/dist/components/DataGrid/components/GridContainer/GridContainer.js.map +1 -0
- package/dist/components/DataGrid/components/GridContainer/GridContainer.module.css.cjs +11 -0
- package/dist/components/DataGrid/components/GridContainer/GridContainer.module.css.cjs.map +1 -0
- package/dist/components/DataGrid/components/GridContainer/GridContainer.module.css.js +9 -0
- package/dist/components/DataGrid/components/GridContainer/GridContainer.module.css.js.map +1 -0
- package/dist/components/DataGrid/components/GridContainer/index.d.ts +1 -0
- package/dist/components/DataGrid/components/Header/Header.cjs +20 -0
- package/dist/components/DataGrid/components/Header/Header.cjs.map +1 -0
- package/dist/components/DataGrid/components/Header/Header.d.ts +13 -0
- package/dist/components/DataGrid/components/Header/Header.js +14 -0
- package/dist/components/DataGrid/components/Header/Header.js.map +1 -0
- package/dist/components/DataGrid/components/Header/HeaderCell/HeaderCell.cjs +40 -0
- package/dist/components/DataGrid/components/Header/HeaderCell/HeaderCell.cjs.map +1 -0
- package/dist/components/DataGrid/components/Header/HeaderCell/HeaderCell.d.ts +22 -0
- package/dist/components/DataGrid/components/Header/HeaderCell/HeaderCell.js +34 -0
- package/dist/components/DataGrid/components/Header/HeaderCell/HeaderCell.js.map +1 -0
- package/dist/components/DataGrid/components/Header/HeaderCell/HeaderCell.module.css.cjs +15 -0
- package/dist/components/DataGrid/components/Header/HeaderCell/HeaderCell.module.css.cjs.map +1 -0
- package/dist/components/DataGrid/components/Header/HeaderCell/HeaderCell.module.css.js +11 -0
- package/dist/components/DataGrid/components/Header/HeaderCell/HeaderCell.module.css.js.map +1 -0
- package/dist/components/DataGrid/components/Header/HeaderCell/index.d.ts +1 -0
- package/dist/components/DataGrid/components/Header/Resizer/Resizer.cjs +25 -0
- package/dist/components/DataGrid/components/Header/Resizer/Resizer.cjs.map +1 -0
- package/dist/components/DataGrid/components/Header/Resizer/Resizer.d.ts +21 -0
- package/dist/components/DataGrid/components/Header/Resizer/Resizer.js +19 -0
- package/dist/components/DataGrid/components/Header/Resizer/Resizer.js.map +1 -0
- package/dist/components/DataGrid/components/Header/Resizer/Resizer.module.css.cjs +11 -0
- package/dist/components/DataGrid/components/Header/Resizer/Resizer.module.css.cjs.map +1 -0
- package/dist/components/DataGrid/components/Header/Resizer/Resizer.module.css.js +9 -0
- package/dist/components/DataGrid/components/Header/Resizer/Resizer.module.css.js.map +1 -0
- package/dist/components/DataGrid/components/Header/Resizer/index.d.ts +1 -0
- package/dist/components/DataGrid/components/Header/index.d.ts +1 -0
- package/dist/components/DataGrid/components/index.d.ts +5 -0
- package/dist/components/DataGrid/constants.cjs +12 -0
- package/dist/components/DataGrid/constants.cjs.map +1 -0
- package/dist/components/DataGrid/constants.d.ts +4 -0
- package/dist/components/DataGrid/constants.js +7 -0
- package/dist/components/DataGrid/constants.js.map +1 -0
- package/dist/components/DataGrid/index.d.ts +1 -0
- package/dist/components/DataGrid/types/AriaRoles.d.ts +4 -0
- package/dist/components/DataGrid/types/ColumnDefinition.d.ts +75 -0
- package/dist/components/DataGrid/types/DataGridProps.d.ts +70 -0
- package/dist/components/DataGrid/types/declarations.d.ts +9 -0
- package/dist/components/DataGrid/types/enums.d.ts +2 -0
- package/dist/components/DataGrid/types/index.d.ts +4 -0
- package/dist/components/DataGrid/utils/ColumnMapper.cjs +95 -0
- package/dist/components/DataGrid/utils/ColumnMapper.cjs.map +1 -0
- package/dist/components/DataGrid/utils/ColumnMapper.d.ts +10 -0
- package/dist/components/DataGrid/utils/ColumnMapper.js +93 -0
- package/dist/components/DataGrid/utils/ColumnMapper.js.map +1 -0
- package/dist/components/DataGrid/utils/getAriaRoles.cjs +11 -0
- package/dist/components/DataGrid/utils/getAriaRoles.cjs.map +1 -0
- package/dist/components/DataGrid/utils/getAriaRoles.d.ts +2 -0
- package/dist/components/DataGrid/utils/getAriaRoles.js +9 -0
- package/dist/components/DataGrid/utils/getAriaRoles.js.map +1 -0
- package/dist/components/DataGrid/utils/index.d.ts +3 -0
- package/dist/components/DataGrid/utils/isLastColumn.cjs +11 -0
- package/dist/components/DataGrid/utils/isLastColumn.cjs.map +1 -0
- package/dist/components/DataGrid/utils/isLastColumn.d.ts +2 -0
- package/dist/components/DataGrid/utils/isLastColumn.js +9 -0
- package/dist/components/DataGrid/utils/isLastColumn.js.map +1 -0
- package/dist/components/DataTable/DataTable.cjs +5 -2
- package/dist/components/DataTable/DataTable.cjs.map +1 -1
- package/dist/components/DataTable/DataTable.js +5 -2
- package/dist/components/DataTable/DataTable.js.map +1 -1
- package/dist/components/DataTable/hooks/index.d.ts +0 -1
- package/dist/components/DataTable/index.d.ts +1 -1
- package/dist/components/FilterTag/FilterTag.cjs +1 -0
- package/dist/components/FilterTag/FilterTag.cjs.map +1 -1
- package/dist/components/FilterTag/FilterTag.js +1 -0
- package/dist/components/FilterTag/FilterTag.js.map +1 -1
- package/dist/components/Modal/Modal.cjs +26 -6
- package/dist/components/Modal/Modal.cjs.map +1 -1
- package/dist/components/Modal/Modal.js +27 -7
- package/dist/components/Modal/Modal.js.map +1 -1
- package/dist/components/Modal/components/Dialog/Dialog.cjs.map +1 -1
- package/dist/components/Modal/components/Dialog/Dialog.d.ts +2 -1
- package/dist/components/Modal/components/Dialog/Dialog.js.map +1 -1
- package/dist/components/Modal/components/Dialog/styled.cjs +34 -11
- package/dist/components/Modal/components/Dialog/styled.cjs.map +1 -1
- package/dist/components/Modal/components/Dialog/styled.d.ts +4 -22
- package/dist/components/Modal/components/Dialog/styled.js +34 -11
- package/dist/components/Modal/components/Dialog/styled.js.map +1 -1
- package/dist/components/Modal/components/Dialog/styles/baseStyles.cjs +13 -0
- package/dist/components/Modal/components/Dialog/styles/baseStyles.cjs.map +1 -0
- package/dist/components/Modal/components/Dialog/styles/baseStyles.d.ts +4 -0
- package/dist/components/Modal/components/Dialog/styles/baseStyles.js +11 -0
- package/dist/components/Modal/components/Dialog/styles/baseStyles.js.map +1 -0
- package/dist/components/Modal/components/Dialog/styles/modalTypeStyles.cjs +17 -0
- package/dist/components/Modal/components/Dialog/styles/modalTypeStyles.cjs.map +1 -0
- package/dist/components/Modal/components/Dialog/styles/modalTypeStyles.d.ts +6 -0
- package/dist/components/Modal/components/Dialog/styles/modalTypeStyles.js +13 -0
- package/dist/components/Modal/components/Dialog/styles/modalTypeStyles.js.map +1 -0
- package/dist/components/Modal/types.cjs +7 -0
- package/dist/components/Modal/types.cjs.map +1 -1
- package/dist/components/Modal/types.d.ts +56 -7
- package/dist/components/Modal/types.js +7 -1
- package/dist/components/Modal/types.js.map +1 -1
- package/dist/components/SelectDropdown/ListItem/ListItem.cjs +1 -0
- package/dist/components/SelectDropdown/ListItem/ListItem.cjs.map +1 -1
- package/dist/components/SelectDropdown/ListItem/ListItem.js +1 -0
- package/dist/components/SelectDropdown/ListItem/ListItem.js.map +1 -1
- package/dist/components/VideoModal/VideoModal.cjs +1 -0
- package/dist/components/VideoModal/VideoModal.cjs.map +1 -1
- package/dist/components/VideoModal/VideoModal.js +1 -0
- package/dist/components/VideoModal/VideoModal.js.map +1 -1
- package/dist/components/View/View.cjs +1 -0
- package/dist/components/View/View.cjs.map +1 -1
- package/dist/components/View/View.js +1 -0
- package/dist/components/View/View.js.map +1 -1
- package/dist/components/ViewTab/ViewTab.cjs +1 -0
- package/dist/components/ViewTab/ViewTab.cjs.map +1 -1
- package/dist/components/ViewTab/ViewTab.js +1 -0
- package/dist/components/ViewTab/ViewTab.js.map +1 -1
- package/dist/components/index.d.ts +2 -1
- package/dist/hooks/index.d.ts +3 -0
- package/dist/{components/DataTable/hooks → hooks}/useDragToScroll.cjs +10 -2
- package/dist/hooks/useDragToScroll.cjs.map +1 -0
- package/dist/hooks/useDragToScroll.d.ts +12 -0
- package/dist/{components/DataTable/hooks → hooks}/useDragToScroll.js +10 -2
- package/dist/hooks/useDragToScroll.js.map +1 -0
- package/dist/hooks/useIntersectionObserver.cjs +57 -0
- package/dist/hooks/useIntersectionObserver.cjs.map +1 -0
- package/dist/hooks/useIntersectionObserver.d.ts +15 -0
- package/dist/hooks/useIntersectionObserver.js +51 -0
- package/dist/hooks/useIntersectionObserver.js.map +1 -0
- package/dist/hooks/useResizeObserver.cjs +67 -0
- package/dist/hooks/useResizeObserver.cjs.map +1 -0
- package/dist/hooks/useResizeObserver.d.ts +18 -0
- package/dist/hooks/useResizeObserver.js +61 -0
- package/dist/hooks/useResizeObserver.js.map +1 -0
- package/dist/index.cjs +8 -2
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +4 -1
- package/dist/index.js.map +1 -1
- package/dist/theme/index.d.ts +1 -0
- package/dist/theme/modules/layers.cjs +1 -0
- package/dist/theme/modules/layers.cjs.map +1 -1
- package/dist/theme/modules/layers.d.ts +1 -0
- package/dist/theme/modules/layers.js +1 -0
- package/dist/theme/modules/layers.js.map +1 -1
- package/package.json +2 -1
- package/dist/components/DataTable/hooks/useDragToScroll.cjs.map +0 -1
- package/dist/components/DataTable/hooks/useDragToScroll.d.ts +0 -2
- package/dist/components/DataTable/hooks/useDragToScroll.js.map +0 -1
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var React = require('react');
|
|
4
|
+
var buildClassnames = require('../../../../utils/buildClassnames.cjs');
|
|
5
|
+
require('uid/secure');
|
|
6
|
+
var CellContent_module = require('./CellContent.module.css.cjs');
|
|
7
|
+
|
|
8
|
+
function _interopDefaultCompat (e) { return e && typeof e === 'object' && 'default' in e ? e : { default: e }; }
|
|
9
|
+
|
|
10
|
+
var React__default = /*#__PURE__*/_interopDefaultCompat(React);
|
|
11
|
+
|
|
12
|
+
const cellContentClassname = buildClassnames.buildClassnames([CellContent_module.cellContent, 'data-grid-cell-content']);
|
|
13
|
+
/**
|
|
14
|
+
* Wrapper for content displayed within a non-header cell in the grid.
|
|
15
|
+
*/
|
|
16
|
+
const CellContent = ({ contentStyle, children }) => {
|
|
17
|
+
return (React__default.default.createElement("div", { "data-testid": "data-grid-cell-content", className: cellContentClassname, style: contentStyle }, children));
|
|
18
|
+
};
|
|
19
|
+
|
|
20
|
+
exports.CellContent = CellContent;
|
|
21
|
+
//# sourceMappingURL=CellContent.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CellContent.cjs","sources":["../../../../../src/components/DataGrid/components/CellContent/CellContent.tsx"],"sourcesContent":["import React from 'react';\n\nimport { buildClassnames } from '../../../../utils';\n\nimport { cellContent } from './CellContent.module.css';\n\nexport interface CellContentProps {\n /**\n * Styles to be applied to the cell content wrapper.\n */\n contentStyle: Pick<React.CSSProperties, 'marginLeft' | 'justifyContent' | 'textAlign'>;\n\n /**\n * Child elements.\n */\n children?: React.ReactNode;\n}\n\nconst cellContentClassname = buildClassnames([cellContent, 'data-grid-cell-content']);\n\n/**\n * Wrapper for content displayed within a non-header cell in the grid.\n */\nexport const CellContent = ({ contentStyle, children }: CellContentProps) => {\n return (\n <div data-testid=\"data-grid-cell-content\" className={cellContentClassname} style={contentStyle}>\n {children}\n </div>\n );\n};\n"],"names":["buildClassnames","cellContent","React"],"mappings":";;;;;;;;;;;AAkBA,MAAM,oBAAoB,GAAGA,+BAAe,CAAC,CAACC,8BAAW,EAAE,wBAAwB,CAAC,CAAC;AAErF;;AAEG;AACU,MAAA,WAAW,GAAG,CAAC,EAAE,YAAY,EAAE,QAAQ,EAAoB,KAAI;AAC1E,IAAA,QACEC,sBAAA,CAAA,aAAA,CAAA,KAAA,EAAA,EAAA,aAAA,EAAiB,wBAAwB,EAAC,SAAS,EAAE,oBAAoB,EAAE,KAAK,EAAE,YAAY,EAAA,EAC3F,QAAQ,CACL;AAEV;;;;"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
export interface CellContentProps {
|
|
3
|
+
/**
|
|
4
|
+
* Styles to be applied to the cell content wrapper.
|
|
5
|
+
*/
|
|
6
|
+
contentStyle: Pick<React.CSSProperties, 'marginLeft' | 'justifyContent' | 'textAlign'>;
|
|
7
|
+
/**
|
|
8
|
+
* Child elements.
|
|
9
|
+
*/
|
|
10
|
+
children?: React.ReactNode;
|
|
11
|
+
}
|
|
12
|
+
/**
|
|
13
|
+
* Wrapper for content displayed within a non-header cell in the grid.
|
|
14
|
+
*/
|
|
15
|
+
export declare const CellContent: ({ contentStyle, children }: CellContentProps) => React.JSX.Element;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import React__default from 'react';
|
|
2
|
+
import { buildClassnames } from '../../../../utils/buildClassnames.js';
|
|
3
|
+
import 'uid/secure';
|
|
4
|
+
import { cellContent } from './CellContent.module.css.js';
|
|
5
|
+
|
|
6
|
+
const cellContentClassname = buildClassnames([cellContent, 'data-grid-cell-content']);
|
|
7
|
+
/**
|
|
8
|
+
* Wrapper for content displayed within a non-header cell in the grid.
|
|
9
|
+
*/
|
|
10
|
+
const CellContent = ({ contentStyle, children }) => {
|
|
11
|
+
return (React__default.createElement("div", { "data-testid": "data-grid-cell-content", className: cellContentClassname, style: contentStyle }, children));
|
|
12
|
+
};
|
|
13
|
+
|
|
14
|
+
export { CellContent };
|
|
15
|
+
//# sourceMappingURL=CellContent.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CellContent.js","sources":["../../../../../src/components/DataGrid/components/CellContent/CellContent.tsx"],"sourcesContent":["import React from 'react';\n\nimport { buildClassnames } from '../../../../utils';\n\nimport { cellContent } from './CellContent.module.css';\n\nexport interface CellContentProps {\n /**\n * Styles to be applied to the cell content wrapper.\n */\n contentStyle: Pick<React.CSSProperties, 'marginLeft' | 'justifyContent' | 'textAlign'>;\n\n /**\n * Child elements.\n */\n children?: React.ReactNode;\n}\n\nconst cellContentClassname = buildClassnames([cellContent, 'data-grid-cell-content']);\n\n/**\n * Wrapper for content displayed within a non-header cell in the grid.\n */\nexport const CellContent = ({ contentStyle, children }: CellContentProps) => {\n return (\n <div data-testid=\"data-grid-cell-content\" className={cellContentClassname} style={contentStyle}>\n {children}\n </div>\n );\n};\n"],"names":["React"],"mappings":";;;;;AAkBA,MAAM,oBAAoB,GAAG,eAAe,CAAC,CAAC,WAAW,EAAE,wBAAwB,CAAC,CAAC;AAErF;;AAEG;AACU,MAAA,WAAW,GAAG,CAAC,EAAE,YAAY,EAAE,QAAQ,EAAoB,KAAI;AAC1E,IAAA,QACEA,cAAA,CAAA,aAAA,CAAA,KAAA,EAAA,EAAA,aAAA,EAAiB,wBAAwB,EAAC,SAAS,EAAE,oBAAoB,EAAE,KAAK,EAAE,YAAY,EAAA,EAC3F,QAAQ,CACL;AAEV;;;;"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
const cssContents = `._cellContent_16ovo_1{align-items:center;display:flex;gap:var(--sizes-small);padding:var(--density)}
|
|
4
|
+
/*# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIkNlbGxDb250ZW50Lm1vZHVsZS5jc3MiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsc0JBR0Usa0JBQW1CLENBRm5CLFlBQWEsQ0FHYixzQkFBdUIsQ0FGdkIsc0JBR0YiLCJmaWxlIjoiQ2VsbENvbnRlbnQubW9kdWxlLmNzcyIsInNvdXJjZXNDb250ZW50IjpbIi5jZWxsQ29udGVudCB7XG4gIGRpc3BsYXk6IGZsZXg7XG4gIHBhZGRpbmc6IHZhcigtLWRlbnNpdHkpO1xuICBhbGlnbi1pdGVtczogY2VudGVyO1xuICBnYXA6IHZhcigtLXNpemVzLXNtYWxsKTtcbn1cbiJdfQ== */`;
|
|
5
|
+
const style = document.createElement('style');
|
|
6
|
+
style.innerHTML = cssContents;
|
|
7
|
+
document.head.appendChild(style);
|
|
8
|
+
const cellContent = '_cellContent_16ovo_1';
|
|
9
|
+
|
|
10
|
+
exports.cellContent = cellContent;
|
|
11
|
+
//# sourceMappingURL=CellContent.module.css.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CellContent.module.css.cjs","sources":["../../../../../src/components/DataGrid/components/CellContent/CellContent.module.css"],"sourcesContent":[".cellContent {\n display: flex;\n padding: var(--density);\n align-items: center;\n gap: var(--sizes-small);\n}\n"],"names":[],"mappings":";;AACA,MAAM,WAAW,GAAG,CAAC;AACrB,qcAAqc,CAAC;AACtc,MAAM,KAAK,GAAG,QAAQ,CAAC,aAAa,CAAC,OAAO,CAAC;AAC7C,KAAK,CAAC,SAAS,GAAG,WAAW;AAC7B,QAAQ,CAAC,IAAI,CAAC,WAAW,CAAC,KAAK,CAAC;AAC3B,MAAC,WAAW,GAAG;;;;"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
const cssContents = `._cellContent_16ovo_1{align-items:center;display:flex;gap:var(--sizes-small);padding:var(--density)}
|
|
2
|
+
/*# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIkNlbGxDb250ZW50Lm1vZHVsZS5jc3MiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsc0JBR0Usa0JBQW1CLENBRm5CLFlBQWEsQ0FHYixzQkFBdUIsQ0FGdkIsc0JBR0YiLCJmaWxlIjoiQ2VsbENvbnRlbnQubW9kdWxlLmNzcyIsInNvdXJjZXNDb250ZW50IjpbIi5jZWxsQ29udGVudCB7XG4gIGRpc3BsYXk6IGZsZXg7XG4gIHBhZGRpbmc6IHZhcigtLWRlbnNpdHkpO1xuICBhbGlnbi1pdGVtczogY2VudGVyO1xuICBnYXA6IHZhcigtLXNpemVzLXNtYWxsKTtcbn1cbiJdfQ== */`;
|
|
3
|
+
const style = document.createElement('style');
|
|
4
|
+
style.innerHTML = cssContents;
|
|
5
|
+
document.head.appendChild(style);
|
|
6
|
+
const cellContent = '_cellContent_16ovo_1';
|
|
7
|
+
|
|
8
|
+
export { cellContent };
|
|
9
|
+
//# sourceMappingURL=CellContent.module.css.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CellContent.module.css.js","sources":["../../../../../src/components/DataGrid/components/CellContent/CellContent.module.css"],"sourcesContent":[".cellContent {\n display: flex;\n padding: var(--density);\n align-items: center;\n gap: var(--sizes-small);\n}\n"],"names":[],"mappings":"AACA,MAAM,WAAW,GAAG,CAAC;AACrB,qcAAqc,CAAC;AACtc,MAAM,KAAK,GAAG,QAAQ,CAAC,aAAa,CAAC,OAAO,CAAC;AAC7C,KAAK,CAAC,SAAS,GAAG,WAAW;AAC7B,QAAQ,CAAC,IAAI,CAAC,WAAW,CAAC,KAAK,CAAC;AAC3B,MAAC,WAAW,GAAG;;;;"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { CellContent } from './CellContent';
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var React = require('react');
|
|
4
|
+
require('../../../../hooks/useFocusVisible.cjs');
|
|
5
|
+
require('uid/secure');
|
|
6
|
+
var useResizeObserver = require('../../../../hooks/useResizeObserver.cjs');
|
|
7
|
+
require('lodash.throttle');
|
|
8
|
+
var isLastColumn = require('../../utils/isLastColumn.cjs');
|
|
9
|
+
require('@tanstack/react-table');
|
|
10
|
+
|
|
11
|
+
function _interopDefaultCompat (e) { return e && typeof e === 'object' && 'default' in e ? e : { default: e }; }
|
|
12
|
+
|
|
13
|
+
var React__default = /*#__PURE__*/_interopDefaultCompat(React);
|
|
14
|
+
|
|
15
|
+
/**
|
|
16
|
+
* Renders the colgroup and col's for the table, responsible for controlling the width of columns within the table, including
|
|
17
|
+
* handling situations where overflow may be necessary while resizing.
|
|
18
|
+
*
|
|
19
|
+
* Separated from the Header component to allow for better performance, since we can reliably memoize col's and limit updates only
|
|
20
|
+
* to when the table sizing state changes.
|
|
21
|
+
*/
|
|
22
|
+
const Columns = ({ table }) => {
|
|
23
|
+
const headers = table.getLeafHeaders();
|
|
24
|
+
// Setup state and hook to observe the last column in the table. If the last column is larger than its
|
|
25
|
+
// default size, we allow it to render with `width: auto;` to ensure the table fills the container.
|
|
26
|
+
// If the last column is smaller than its default size, the table should start to 'overflow' its parent,
|
|
27
|
+
// so we switch to using a fixed width on the column instead.
|
|
28
|
+
const lastColumnRef = React.useRef(null);
|
|
29
|
+
const [lastColumnAuto, setLastColumnAuto] = React.useState(true);
|
|
30
|
+
useResizeObserver.useResizeObserver({
|
|
31
|
+
targetRef: lastColumnRef,
|
|
32
|
+
resizeHandler: ({ width }) => {
|
|
33
|
+
const lastHeader = headers[headers.length - 1];
|
|
34
|
+
if (width <= lastHeader.column.columnDef.size) {
|
|
35
|
+
setLastColumnAuto(false);
|
|
36
|
+
}
|
|
37
|
+
else {
|
|
38
|
+
setLastColumnAuto(true);
|
|
39
|
+
}
|
|
40
|
+
},
|
|
41
|
+
throttleMs: 10,
|
|
42
|
+
});
|
|
43
|
+
// Memoized columns.
|
|
44
|
+
const columns = React.useMemo(() => (React__default.default.createElement("colgroup", null, headers.map((header) => {
|
|
45
|
+
const lastColumn = isLastColumn.isLastColumn(table, header.column);
|
|
46
|
+
const columnWidth = lastColumn && lastColumnAuto ? 'auto' : `${header.column.getSize()}px`;
|
|
47
|
+
return (React__default.default.createElement("col", { ref: lastColumn ? lastColumnRef : undefined, key: header.column.id, style: { width: columnWidth, minWidth: header.column.columnDef.minSize } }));
|
|
48
|
+
}))),
|
|
49
|
+
// Dependencies here are as recommended by TanStack docs (https://tanstack.com/table/latest/docs/framework/react/examples/column-resizing-performant)
|
|
50
|
+
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
51
|
+
[table.getState().columnSizingInfo, table.getState().columnSizing, lastColumnAuto, headers]);
|
|
52
|
+
return columns;
|
|
53
|
+
};
|
|
54
|
+
|
|
55
|
+
exports.Columns = Columns;
|
|
56
|
+
//# sourceMappingURL=Columns.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Columns.cjs","sources":["../../../../../src/components/DataGrid/components/Columns/Columns.tsx"],"sourcesContent":["import React, { useMemo, useRef, useState } from 'react';\nimport { Table } from '@tanstack/react-table';\n\nimport { useResizeObserver } from '../../../../hooks';\nimport { isLastColumn } from '../../utils';\n\ntype ColumnsProps = {\n /**\n * The TanStack Table instance.\n */\n table: Table<any>;\n};\n\n/**\n * Renders the colgroup and col's for the table, responsible for controlling the width of columns within the table, including\n * handling situations where overflow may be necessary while resizing.\n *\n * Separated from the Header component to allow for better performance, since we can reliably memoize col's and limit updates only\n * to when the table sizing state changes.\n */\nexport const Columns = ({ table }: ColumnsProps) => {\n const headers = table.getLeafHeaders();\n\n // Setup state and hook to observe the last column in the table. If the last column is larger than its\n // default size, we allow it to render with `width: auto;` to ensure the table fills the container.\n // If the last column is smaller than its default size, the table should start to 'overflow' its parent,\n // so we switch to using a fixed width on the column instead.\n const lastColumnRef = useRef<HTMLTableColElement>(null);\n const [lastColumnAuto, setLastColumnAuto] = useState(true);\n useResizeObserver({\n targetRef: lastColumnRef,\n resizeHandler: ({ width }) => {\n const lastHeader = headers[headers.length - 1];\n\n if (width <= lastHeader.column.columnDef.size!) {\n setLastColumnAuto(false);\n } else {\n setLastColumnAuto(true);\n }\n },\n throttleMs: 10,\n });\n\n // Memoized columns.\n const columns = useMemo(\n () => (\n <colgroup>\n {headers.map((header) => {\n const lastColumn = isLastColumn(table, header.column);\n const columnWidth =\n lastColumn && lastColumnAuto ? 'auto' : `${header.column.getSize()}px`;\n\n return (\n <col\n ref={lastColumn ? lastColumnRef : undefined}\n key={header.column.id}\n style={{ width: columnWidth, minWidth: header.column.columnDef.minSize }}\n />\n );\n })}\n </colgroup>\n ),\n // Dependencies here are as recommended by TanStack docs (https://tanstack.com/table/latest/docs/framework/react/examples/column-resizing-performant)\n // eslint-disable-next-line react-hooks/exhaustive-deps\n [table.getState().columnSizingInfo, table.getState().columnSizing, lastColumnAuto, headers],\n );\n\n return columns;\n};\n"],"names":["useRef","useState","useResizeObserver","useMemo","React","isLastColumn"],"mappings":";;;;;;;;;;;;;;AAaA;;;;;;AAMG;MACU,OAAO,GAAG,CAAC,EAAE,KAAK,EAAgB,KAAI;AACjD,IAAA,MAAM,OAAO,GAAG,KAAK,CAAC,cAAc,EAAE;;;;;AAMtC,IAAA,MAAM,aAAa,GAAGA,YAAM,CAAsB,IAAI,CAAC;IACvD,MAAM,CAAC,cAAc,EAAE,iBAAiB,CAAC,GAAGC,cAAQ,CAAC,IAAI,CAAC;AAC1D,IAAAC,mCAAiB,CAAC;AAChB,QAAA,SAAS,EAAE,aAAa;AACxB,QAAA,aAAa,EAAE,CAAC,EAAE,KAAK,EAAE,KAAI;YAC3B,MAAM,UAAU,GAAG,OAAO,CAAC,OAAO,CAAC,MAAM,GAAG,CAAC,CAAC;YAE9C,IAAI,KAAK,IAAI,UAAU,CAAC,MAAM,CAAC,SAAS,CAAC,IAAK,EAAE;gBAC9C,iBAAiB,CAAC,KAAK,CAAC;AACzB;AAAM,iBAAA;gBACL,iBAAiB,CAAC,IAAI,CAAC;AACxB;SACF;AACD,QAAA,UAAU,EAAE,EAAE;AACf,KAAA,CAAC;;AAGF,IAAA,MAAM,OAAO,GAAGC,aAAO,CACrB,OACEC,sBACG,CAAA,aAAA,CAAA,UAAA,EAAA,IAAA,EAAA,OAAO,CAAC,GAAG,CAAC,CAAC,MAAM,KAAI;QACtB,MAAM,UAAU,GAAGC,yBAAY,CAAC,KAAK,EAAE,MAAM,CAAC,MAAM,CAAC;QACrD,MAAM,WAAW,GACf,UAAU,IAAI,cAAc,GAAG,MAAM,GAAG,CAAA,EAAG,MAAM,CAAC,MAAM,CAAC,OAAO,EAAE,IAAI;AAExE,QAAA,QACED,sBACE,CAAA,aAAA,CAAA,KAAA,EAAA,EAAA,GAAG,EAAE,UAAU,GAAG,aAAa,GAAG,SAAS,EAC3C,GAAG,EAAE,MAAM,CAAC,MAAM,CAAC,EAAE,EACrB,KAAK,EAAE,EAAE,KAAK,EAAE,WAAW,EAAE,QAAQ,EAAE,MAAM,CAAC,MAAM,CAAC,SAAS,CAAC,OAAO,EAAE,EAAA,CACxE;KAEL,CAAC,CACO,CACZ;;;AAGD,IAAA,CAAC,KAAK,CAAC,QAAQ,EAAE,CAAC,gBAAgB,EAAE,KAAK,CAAC,QAAQ,EAAE,CAAC,YAAY,EAAE,cAAc,EAAE,OAAO,CAAC,CAC5F;AAED,IAAA,OAAO,OAAO;AAChB;;;;"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { Table } from '@tanstack/react-table';
|
|
3
|
+
type ColumnsProps = {
|
|
4
|
+
/**
|
|
5
|
+
* The TanStack Table instance.
|
|
6
|
+
*/
|
|
7
|
+
table: Table<any>;
|
|
8
|
+
};
|
|
9
|
+
/**
|
|
10
|
+
* Renders the colgroup and col's for the table, responsible for controlling the width of columns within the table, including
|
|
11
|
+
* handling situations where overflow may be necessary while resizing.
|
|
12
|
+
*
|
|
13
|
+
* Separated from the Header component to allow for better performance, since we can reliably memoize col's and limit updates only
|
|
14
|
+
* to when the table sizing state changes.
|
|
15
|
+
*/
|
|
16
|
+
export declare const Columns: ({ table }: ColumnsProps) => React.JSX.Element;
|
|
17
|
+
export {};
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
import React__default, { useRef, useState, useMemo } from 'react';
|
|
2
|
+
import '../../../../hooks/useFocusVisible.js';
|
|
3
|
+
import 'uid/secure';
|
|
4
|
+
import { useResizeObserver } from '../../../../hooks/useResizeObserver.js';
|
|
5
|
+
import 'lodash.throttle';
|
|
6
|
+
import { isLastColumn } from '../../utils/isLastColumn.js';
|
|
7
|
+
import '@tanstack/react-table';
|
|
8
|
+
|
|
9
|
+
/**
|
|
10
|
+
* Renders the colgroup and col's for the table, responsible for controlling the width of columns within the table, including
|
|
11
|
+
* handling situations where overflow may be necessary while resizing.
|
|
12
|
+
*
|
|
13
|
+
* Separated from the Header component to allow for better performance, since we can reliably memoize col's and limit updates only
|
|
14
|
+
* to when the table sizing state changes.
|
|
15
|
+
*/
|
|
16
|
+
const Columns = ({ table }) => {
|
|
17
|
+
const headers = table.getLeafHeaders();
|
|
18
|
+
// Setup state and hook to observe the last column in the table. If the last column is larger than its
|
|
19
|
+
// default size, we allow it to render with `width: auto;` to ensure the table fills the container.
|
|
20
|
+
// If the last column is smaller than its default size, the table should start to 'overflow' its parent,
|
|
21
|
+
// so we switch to using a fixed width on the column instead.
|
|
22
|
+
const lastColumnRef = useRef(null);
|
|
23
|
+
const [lastColumnAuto, setLastColumnAuto] = useState(true);
|
|
24
|
+
useResizeObserver({
|
|
25
|
+
targetRef: lastColumnRef,
|
|
26
|
+
resizeHandler: ({ width }) => {
|
|
27
|
+
const lastHeader = headers[headers.length - 1];
|
|
28
|
+
if (width <= lastHeader.column.columnDef.size) {
|
|
29
|
+
setLastColumnAuto(false);
|
|
30
|
+
}
|
|
31
|
+
else {
|
|
32
|
+
setLastColumnAuto(true);
|
|
33
|
+
}
|
|
34
|
+
},
|
|
35
|
+
throttleMs: 10,
|
|
36
|
+
});
|
|
37
|
+
// Memoized columns.
|
|
38
|
+
const columns = useMemo(() => (React__default.createElement("colgroup", null, headers.map((header) => {
|
|
39
|
+
const lastColumn = isLastColumn(table, header.column);
|
|
40
|
+
const columnWidth = lastColumn && lastColumnAuto ? 'auto' : `${header.column.getSize()}px`;
|
|
41
|
+
return (React__default.createElement("col", { ref: lastColumn ? lastColumnRef : undefined, key: header.column.id, style: { width: columnWidth, minWidth: header.column.columnDef.minSize } }));
|
|
42
|
+
}))),
|
|
43
|
+
// Dependencies here are as recommended by TanStack docs (https://tanstack.com/table/latest/docs/framework/react/examples/column-resizing-performant)
|
|
44
|
+
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
45
|
+
[table.getState().columnSizingInfo, table.getState().columnSizing, lastColumnAuto, headers]);
|
|
46
|
+
return columns;
|
|
47
|
+
};
|
|
48
|
+
|
|
49
|
+
export { Columns };
|
|
50
|
+
//# sourceMappingURL=Columns.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Columns.js","sources":["../../../../../src/components/DataGrid/components/Columns/Columns.tsx"],"sourcesContent":["import React, { useMemo, useRef, useState } from 'react';\nimport { Table } from '@tanstack/react-table';\n\nimport { useResizeObserver } from '../../../../hooks';\nimport { isLastColumn } from '../../utils';\n\ntype ColumnsProps = {\n /**\n * The TanStack Table instance.\n */\n table: Table<any>;\n};\n\n/**\n * Renders the colgroup and col's for the table, responsible for controlling the width of columns within the table, including\n * handling situations where overflow may be necessary while resizing.\n *\n * Separated from the Header component to allow for better performance, since we can reliably memoize col's and limit updates only\n * to when the table sizing state changes.\n */\nexport const Columns = ({ table }: ColumnsProps) => {\n const headers = table.getLeafHeaders();\n\n // Setup state and hook to observe the last column in the table. If the last column is larger than its\n // default size, we allow it to render with `width: auto;` to ensure the table fills the container.\n // If the last column is smaller than its default size, the table should start to 'overflow' its parent,\n // so we switch to using a fixed width on the column instead.\n const lastColumnRef = useRef<HTMLTableColElement>(null);\n const [lastColumnAuto, setLastColumnAuto] = useState(true);\n useResizeObserver({\n targetRef: lastColumnRef,\n resizeHandler: ({ width }) => {\n const lastHeader = headers[headers.length - 1];\n\n if (width <= lastHeader.column.columnDef.size!) {\n setLastColumnAuto(false);\n } else {\n setLastColumnAuto(true);\n }\n },\n throttleMs: 10,\n });\n\n // Memoized columns.\n const columns = useMemo(\n () => (\n <colgroup>\n {headers.map((header) => {\n const lastColumn = isLastColumn(table, header.column);\n const columnWidth =\n lastColumn && lastColumnAuto ? 'auto' : `${header.column.getSize()}px`;\n\n return (\n <col\n ref={lastColumn ? lastColumnRef : undefined}\n key={header.column.id}\n style={{ width: columnWidth, minWidth: header.column.columnDef.minSize }}\n />\n );\n })}\n </colgroup>\n ),\n // Dependencies here are as recommended by TanStack docs (https://tanstack.com/table/latest/docs/framework/react/examples/column-resizing-performant)\n // eslint-disable-next-line react-hooks/exhaustive-deps\n [table.getState().columnSizingInfo, table.getState().columnSizing, lastColumnAuto, headers],\n );\n\n return columns;\n};\n"],"names":["React"],"mappings":";;;;;;;;AAaA;;;;;;AAMG;MACU,OAAO,GAAG,CAAC,EAAE,KAAK,EAAgB,KAAI;AACjD,IAAA,MAAM,OAAO,GAAG,KAAK,CAAC,cAAc,EAAE;;;;;AAMtC,IAAA,MAAM,aAAa,GAAG,MAAM,CAAsB,IAAI,CAAC;IACvD,MAAM,CAAC,cAAc,EAAE,iBAAiB,CAAC,GAAG,QAAQ,CAAC,IAAI,CAAC;AAC1D,IAAA,iBAAiB,CAAC;AAChB,QAAA,SAAS,EAAE,aAAa;AACxB,QAAA,aAAa,EAAE,CAAC,EAAE,KAAK,EAAE,KAAI;YAC3B,MAAM,UAAU,GAAG,OAAO,CAAC,OAAO,CAAC,MAAM,GAAG,CAAC,CAAC;YAE9C,IAAI,KAAK,IAAI,UAAU,CAAC,MAAM,CAAC,SAAS,CAAC,IAAK,EAAE;gBAC9C,iBAAiB,CAAC,KAAK,CAAC;AACzB;AAAM,iBAAA;gBACL,iBAAiB,CAAC,IAAI,CAAC;AACxB;SACF;AACD,QAAA,UAAU,EAAE,EAAE;AACf,KAAA,CAAC;;AAGF,IAAA,MAAM,OAAO,GAAG,OAAO,CACrB,OACEA,cACG,CAAA,aAAA,CAAA,UAAA,EAAA,IAAA,EAAA,OAAO,CAAC,GAAG,CAAC,CAAC,MAAM,KAAI;QACtB,MAAM,UAAU,GAAG,YAAY,CAAC,KAAK,EAAE,MAAM,CAAC,MAAM,CAAC;QACrD,MAAM,WAAW,GACf,UAAU,IAAI,cAAc,GAAG,MAAM,GAAG,CAAA,EAAG,MAAM,CAAC,MAAM,CAAC,OAAO,EAAE,IAAI;AAExE,QAAA,QACEA,cACE,CAAA,aAAA,CAAA,KAAA,EAAA,EAAA,GAAG,EAAE,UAAU,GAAG,aAAa,GAAG,SAAS,EAC3C,GAAG,EAAE,MAAM,CAAC,MAAM,CAAC,EAAE,EACrB,KAAK,EAAE,EAAE,KAAK,EAAE,WAAW,EAAE,QAAQ,EAAE,MAAM,CAAC,MAAM,CAAC,SAAS,CAAC,OAAO,EAAE,EAAA,CACxE;KAEL,CAAC,CACO,CACZ;;;AAGD,IAAA,CAAC,KAAK,CAAC,QAAQ,EAAE,CAAC,gBAAgB,EAAE,KAAK,CAAC,QAAQ,EAAE,CAAC,YAAY,EAAE,cAAc,EAAE,OAAO,CAAC,CAC5F;AAED,IAAA,OAAO,OAAO;AAChB;;;;"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { Columns } from './Columns';
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var React = require('react');
|
|
4
|
+
var FooterCell = require('./FooterCell/FooterCell.cjs');
|
|
5
|
+
|
|
6
|
+
function _interopDefaultCompat (e) { return e && typeof e === 'object' && 'default' in e ? e : { default: e }; }
|
|
7
|
+
|
|
8
|
+
var React__default = /*#__PURE__*/_interopDefaultCompat(React);
|
|
9
|
+
|
|
10
|
+
const Footer = ({ table, ariaRoles }) => {
|
|
11
|
+
// We're not making use of column grouping, so we only need the first footer group.
|
|
12
|
+
const [footer] = table.getFooterGroups();
|
|
13
|
+
return (React__default.default.createElement("tfoot", { className: "data-grid-footer" },
|
|
14
|
+
React__default.default.createElement("tr", { className: "data-grid-footer-row" }, footer.headers.map((header) => (React__default.default.createElement(FooterCell.FooterCell, { key: header.id, ariaRoles: ariaRoles, header: header }))))));
|
|
15
|
+
};
|
|
16
|
+
|
|
17
|
+
exports.Footer = Footer;
|
|
18
|
+
//# sourceMappingURL=Footer.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Footer.cjs","sources":["../../../../../src/components/DataGrid/components/Footer/Footer.tsx"],"sourcesContent":["import React from 'react';\nimport { Table } from '@tanstack/react-table';\n\nimport { AriaRoles } from '../../types';\nimport { FooterCell } from './FooterCell';\n\ntype FooterProps = {\n /**\n * The TanStack table instance.\n */\n table: Table<any>;\n\n /**\n * ARIA roles used in the grid.\n */\n ariaRoles: AriaRoles;\n};\n\nexport const Footer = ({ table, ariaRoles }: FooterProps) => {\n // We're not making use of column grouping, so we only need the first footer group.\n const [footer] = table.getFooterGroups();\n\n return (\n <tfoot className=\"data-grid-footer\">\n <tr className=\"data-grid-footer-row\">\n {footer.headers.map((header) => (\n <FooterCell key={header.id} ariaRoles={ariaRoles} header={header} />\n ))}\n </tr>\n </tfoot>\n );\n};\n"],"names":["React","FooterCell"],"mappings":";;;;;;;;;AAkBa,MAAA,MAAM,GAAG,CAAC,EAAE,KAAK,EAAE,SAAS,EAAe,KAAI;;IAE1D,MAAM,CAAC,MAAM,CAAC,GAAG,KAAK,CAAC,eAAe,EAAE;AAExC,IAAA,QACEA,sBAAA,CAAA,aAAA,CAAA,OAAA,EAAA,EAAO,SAAS,EAAC,kBAAkB,EAAA;AACjC,QAAAA,sBAAA,CAAA,aAAA,CAAA,IAAA,EAAA,EAAI,SAAS,EAAC,sBAAsB,EACjC,EAAA,MAAM,CAAC,OAAO,CAAC,GAAG,CAAC,CAAC,MAAM,MACzBA,qCAACC,qBAAU,EAAA,EAAC,GAAG,EAAE,MAAM,CAAC,EAAE,EAAE,SAAS,EAAE,SAAS,EAAE,MAAM,EAAE,MAAM,EAAI,CAAA,CACrE,CAAC,CACC,CACC;AAEZ;;;;"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { Table } from '@tanstack/react-table';
|
|
3
|
+
import { AriaRoles } from '../../types';
|
|
4
|
+
type FooterProps = {
|
|
5
|
+
/**
|
|
6
|
+
* The TanStack table instance.
|
|
7
|
+
*/
|
|
8
|
+
table: Table<any>;
|
|
9
|
+
/**
|
|
10
|
+
* ARIA roles used in the grid.
|
|
11
|
+
*/
|
|
12
|
+
ariaRoles: AriaRoles;
|
|
13
|
+
};
|
|
14
|
+
export declare const Footer: ({ table, ariaRoles }: FooterProps) => React.JSX.Element;
|
|
15
|
+
export {};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import React__default from 'react';
|
|
2
|
+
import { FooterCell } from './FooterCell/FooterCell.js';
|
|
3
|
+
|
|
4
|
+
const Footer = ({ table, ariaRoles }) => {
|
|
5
|
+
// We're not making use of column grouping, so we only need the first footer group.
|
|
6
|
+
const [footer] = table.getFooterGroups();
|
|
7
|
+
return (React__default.createElement("tfoot", { className: "data-grid-footer" },
|
|
8
|
+
React__default.createElement("tr", { className: "data-grid-footer-row" }, footer.headers.map((header) => (React__default.createElement(FooterCell, { key: header.id, ariaRoles: ariaRoles, header: header }))))));
|
|
9
|
+
};
|
|
10
|
+
|
|
11
|
+
export { Footer };
|
|
12
|
+
//# sourceMappingURL=Footer.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Footer.js","sources":["../../../../../src/components/DataGrid/components/Footer/Footer.tsx"],"sourcesContent":["import React from 'react';\nimport { Table } from '@tanstack/react-table';\n\nimport { AriaRoles } from '../../types';\nimport { FooterCell } from './FooterCell';\n\ntype FooterProps = {\n /**\n * The TanStack table instance.\n */\n table: Table<any>;\n\n /**\n * ARIA roles used in the grid.\n */\n ariaRoles: AriaRoles;\n};\n\nexport const Footer = ({ table, ariaRoles }: FooterProps) => {\n // We're not making use of column grouping, so we only need the first footer group.\n const [footer] = table.getFooterGroups();\n\n return (\n <tfoot className=\"data-grid-footer\">\n <tr className=\"data-grid-footer-row\">\n {footer.headers.map((header) => (\n <FooterCell key={header.id} ariaRoles={ariaRoles} header={header} />\n ))}\n </tr>\n </tfoot>\n );\n};\n"],"names":["React"],"mappings":";;;AAkBa,MAAA,MAAM,GAAG,CAAC,EAAE,KAAK,EAAE,SAAS,EAAe,KAAI;;IAE1D,MAAM,CAAC,MAAM,CAAC,GAAG,KAAK,CAAC,eAAe,EAAE;AAExC,IAAA,QACEA,cAAA,CAAA,aAAA,CAAA,OAAA,EAAA,EAAO,SAAS,EAAC,kBAAkB,EAAA;AACjC,QAAAA,cAAA,CAAA,aAAA,CAAA,IAAA,EAAA,EAAI,SAAS,EAAC,sBAAsB,EACjC,EAAA,MAAM,CAAC,OAAO,CAAC,GAAG,CAAC,CAAC,MAAM,MACzBA,6BAAC,UAAU,EAAA,EAAC,GAAG,EAAE,MAAM,CAAC,EAAE,EAAE,SAAS,EAAE,SAAS,EAAE,MAAM,EAAE,MAAM,EAAI,CAAA,CACrE,CAAC,CACC,CACC;AAEZ;;;;"}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var React = require('react');
|
|
4
|
+
var reactTable = require('@tanstack/react-table');
|
|
5
|
+
var buildClassnames = require('../../../../../utils/buildClassnames.cjs');
|
|
6
|
+
require('uid/secure');
|
|
7
|
+
var CellContent = require('../../CellContent/CellContent.cjs');
|
|
8
|
+
var FooterCell_module = require('./FooterCell.module.css.cjs');
|
|
9
|
+
|
|
10
|
+
function _interopDefaultCompat (e) { return e && typeof e === 'object' && 'default' in e ? e : { default: e }; }
|
|
11
|
+
|
|
12
|
+
var React__default = /*#__PURE__*/_interopDefaultCompat(React);
|
|
13
|
+
|
|
14
|
+
const footerCellClassname = buildClassnames.buildClassnames([FooterCell_module.footerCell, 'data-grid-footer-cell']);
|
|
15
|
+
/**
|
|
16
|
+
* Renders a footer cell element, and its content, for a given column.
|
|
17
|
+
*/
|
|
18
|
+
const FooterCell = ({ header, ariaRoles }) => {
|
|
19
|
+
const { justifyContent, textAlign } = header.column.columnDef.meta;
|
|
20
|
+
return (React__default.default.createElement("th", { scope: "row", role: ariaRoles.cell, "aria-colindex": header.column.getIndex() + 1, className: footerCellClassname },
|
|
21
|
+
React__default.default.createElement(CellContent.CellContent, { contentStyle: { justifyContent, textAlign } }, reactTable.flexRender(header.column.columnDef.footer, header.getContext()))));
|
|
22
|
+
};
|
|
23
|
+
|
|
24
|
+
exports.FooterCell = FooterCell;
|
|
25
|
+
//# sourceMappingURL=FooterCell.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"FooterCell.cjs","sources":["../../../../../../src/components/DataGrid/components/Footer/FooterCell/FooterCell.tsx"],"sourcesContent":["import React from 'react';\n\nimport { flexRender, Header } from '@tanstack/react-table';\n\nimport { buildClassnames } from '../../../../../utils';\n\nimport { AriaRoles } from '../../../types';\nimport { CellContent } from '../../CellContent';\n\nimport { footerCell } from './FooterCell.module.css';\n\ntype FooterCellProps = {\n /**\n * The Header within the TanStack Table instance.\n */\n header: Header<any, any>;\n\n /**\n * ARIA roles used in the grid.\n */\n ariaRoles: AriaRoles;\n};\n\nconst footerCellClassname = buildClassnames([footerCell, 'data-grid-footer-cell']);\n\n/**\n * Renders a footer cell element, and its content, for a given column.\n */\nexport const FooterCell = ({ header, ariaRoles }: FooterCellProps) => {\n const { justifyContent, textAlign } = header.column.columnDef.meta!;\n\n return (\n <th\n scope=\"row\"\n role={ariaRoles.cell}\n aria-colindex={header.column.getIndex() + 1}\n className={footerCellClassname}\n >\n <CellContent contentStyle={{ justifyContent, textAlign } as React.CSSProperties}>\n {flexRender(header.column.columnDef.footer, header.getContext())}\n </CellContent>\n </th>\n );\n};\n"],"names":["buildClassnames","footerCell","React","CellContent","flexRender"],"mappings":";;;;;;;;;;;;;AAuBA,MAAM,mBAAmB,GAAGA,+BAAe,CAAC,CAACC,4BAAU,EAAE,uBAAuB,CAAC,CAAC;AAElF;;AAEG;AACU,MAAA,UAAU,GAAG,CAAC,EAAE,MAAM,EAAE,SAAS,EAAmB,KAAI;AACnE,IAAA,MAAM,EAAE,cAAc,EAAE,SAAS,EAAE,GAAG,MAAM,CAAC,MAAM,CAAC,SAAS,CAAC,IAAK;IAEnE,QACEC,6CACE,KAAK,EAAC,KAAK,EACX,IAAI,EAAE,SAAS,CAAC,IAAI,mBACL,MAAM,CAAC,MAAM,CAAC,QAAQ,EAAE,GAAG,CAAC,EAC3C,SAAS,EAAE,mBAAmB,EAAA;AAE9B,QAAAA,sBAAA,CAAA,aAAA,CAACC,uBAAW,EAAA,EAAC,YAAY,EAAE,EAAE,cAAc,EAAE,SAAS,EAAyB,EAAA,EAC5EC,qBAAU,CAAC,MAAM,CAAC,MAAM,CAAC,SAAS,CAAC,MAAM,EAAE,MAAM,CAAC,UAAU,EAAE,CAAC,CACpD,CACX;AAET;;;;"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { Header } from '@tanstack/react-table';
|
|
3
|
+
import { AriaRoles } from '../../../types';
|
|
4
|
+
type FooterCellProps = {
|
|
5
|
+
/**
|
|
6
|
+
* The Header within the TanStack Table instance.
|
|
7
|
+
*/
|
|
8
|
+
header: Header<any, any>;
|
|
9
|
+
/**
|
|
10
|
+
* ARIA roles used in the grid.
|
|
11
|
+
*/
|
|
12
|
+
ariaRoles: AriaRoles;
|
|
13
|
+
};
|
|
14
|
+
/**
|
|
15
|
+
* Renders a footer cell element, and its content, for a given column.
|
|
16
|
+
*/
|
|
17
|
+
export declare const FooterCell: ({ header, ariaRoles }: FooterCellProps) => React.JSX.Element;
|
|
18
|
+
export {};
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import React__default from 'react';
|
|
2
|
+
import { flexRender } from '@tanstack/react-table';
|
|
3
|
+
import { buildClassnames } from '../../../../../utils/buildClassnames.js';
|
|
4
|
+
import 'uid/secure';
|
|
5
|
+
import { CellContent } from '../../CellContent/CellContent.js';
|
|
6
|
+
import { footerCell } from './FooterCell.module.css.js';
|
|
7
|
+
|
|
8
|
+
const footerCellClassname = buildClassnames([footerCell, 'data-grid-footer-cell']);
|
|
9
|
+
/**
|
|
10
|
+
* Renders a footer cell element, and its content, for a given column.
|
|
11
|
+
*/
|
|
12
|
+
const FooterCell = ({ header, ariaRoles }) => {
|
|
13
|
+
const { justifyContent, textAlign } = header.column.columnDef.meta;
|
|
14
|
+
return (React__default.createElement("th", { scope: "row", role: ariaRoles.cell, "aria-colindex": header.column.getIndex() + 1, className: footerCellClassname },
|
|
15
|
+
React__default.createElement(CellContent, { contentStyle: { justifyContent, textAlign } }, flexRender(header.column.columnDef.footer, header.getContext()))));
|
|
16
|
+
};
|
|
17
|
+
|
|
18
|
+
export { FooterCell };
|
|
19
|
+
//# sourceMappingURL=FooterCell.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"FooterCell.js","sources":["../../../../../../src/components/DataGrid/components/Footer/FooterCell/FooterCell.tsx"],"sourcesContent":["import React from 'react';\n\nimport { flexRender, Header } from '@tanstack/react-table';\n\nimport { buildClassnames } from '../../../../../utils';\n\nimport { AriaRoles } from '../../../types';\nimport { CellContent } from '../../CellContent';\n\nimport { footerCell } from './FooterCell.module.css';\n\ntype FooterCellProps = {\n /**\n * The Header within the TanStack Table instance.\n */\n header: Header<any, any>;\n\n /**\n * ARIA roles used in the grid.\n */\n ariaRoles: AriaRoles;\n};\n\nconst footerCellClassname = buildClassnames([footerCell, 'data-grid-footer-cell']);\n\n/**\n * Renders a footer cell element, and its content, for a given column.\n */\nexport const FooterCell = ({ header, ariaRoles }: FooterCellProps) => {\n const { justifyContent, textAlign } = header.column.columnDef.meta!;\n\n return (\n <th\n scope=\"row\"\n role={ariaRoles.cell}\n aria-colindex={header.column.getIndex() + 1}\n className={footerCellClassname}\n >\n <CellContent contentStyle={{ justifyContent, textAlign } as React.CSSProperties}>\n {flexRender(header.column.columnDef.footer, header.getContext())}\n </CellContent>\n </th>\n );\n};\n"],"names":["React"],"mappings":";;;;;;;AAuBA,MAAM,mBAAmB,GAAG,eAAe,CAAC,CAAC,UAAU,EAAE,uBAAuB,CAAC,CAAC;AAElF;;AAEG;AACU,MAAA,UAAU,GAAG,CAAC,EAAE,MAAM,EAAE,SAAS,EAAmB,KAAI;AACnE,IAAA,MAAM,EAAE,cAAc,EAAE,SAAS,EAAE,GAAG,MAAM,CAAC,MAAM,CAAC,SAAS,CAAC,IAAK;IAEnE,QACEA,qCACE,KAAK,EAAC,KAAK,EACX,IAAI,EAAE,SAAS,CAAC,IAAI,mBACL,MAAM,CAAC,MAAM,CAAC,QAAQ,EAAE,GAAG,CAAC,EAC3C,SAAS,EAAE,mBAAmB,EAAA;AAE9B,QAAAA,cAAA,CAAA,aAAA,CAAC,WAAW,EAAA,EAAC,YAAY,EAAE,EAAE,cAAc,EAAE,SAAS,EAAyB,EAAA,EAC5E,UAAU,CAAC,MAAM,CAAC,MAAM,CAAC,SAAS,CAAC,MAAM,EAAE,MAAM,CAAC,UAAU,EAAE,CAAC,CACpD,CACX;AAET;;;;"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
const cssContents = `._baseCell_1w2bt_1{box-sizing:border-box;position:relative;&:focus,&:focus-visible{box-shadow:inset var(--sizes-none) var(--sizes-none) var(--sizes-none) var(--sizes-line) var(--colors-secondary-blue-base);outline:var(--sizes-none)}}._footerCell_1jfhd_1{background-color:var(--colors-neutral-grey-lightest);border-top:var(--sizes-line) solid var(--colors-secondary-blue-base);color:var(--text-body-small-color);font-family:var(--text-body-small-font-family);font-style:var(--text-body-small-font-style);font-weight:var(--text-body-small-font-weight);line-height:var(--text-body-small-line-height)}
|
|
4
|
+
/*# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIjxubyBzb3VyY2U+IiwiRm9vdGVyQ2VsbC5tb2R1bGUuY3NzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLG1CQUFBLHNCQUFBLGtCQUFBLHdCQUFBLDJIQUFBLDBCQUFBLENBQUEsQUNBQSxxQkFVRSxvREFBcUQsQ0FEckQsb0VBQXFFLENBTnJFLGtDQUFtQyxDQUNuQyw4Q0FBK0MsQ0FDL0MsNENBQTZDLENBQzdDLDhDQUErQyxDQUMvQyw4Q0FJRiIsImZpbGUiOiJGb290ZXJDZWxsLm1vZHVsZS5jc3MiLCJzb3VyY2VzQ29udGVudCI6W251bGwsIi5mb290ZXJDZWxsIHtcbiAgY29tcG9zZXM6IGJhc2VDZWxsIGZyb20gJy4uLy4uLy4uL0RhdGFHcmlkLm1vZHVsZS5jc3MnO1xuXG4gIGNvbG9yOiB2YXIoLS10ZXh0LWJvZHktc21hbGwtY29sb3IpO1xuICBmb250LWZhbWlseTogdmFyKC0tdGV4dC1ib2R5LXNtYWxsLWZvbnQtZmFtaWx5KTtcbiAgZm9udC1zdHlsZTogdmFyKC0tdGV4dC1ib2R5LXNtYWxsLWZvbnQtc3R5bGUpO1xuICBmb250LXdlaWdodDogdmFyKC0tdGV4dC1ib2R5LXNtYWxsLWZvbnQtd2VpZ2h0KTtcbiAgbGluZS1oZWlnaHQ6IHZhcigtLXRleHQtYm9keS1zbWFsbC1saW5lLWhlaWdodCk7XG5cbiAgYm9yZGVyLXRvcDogdmFyKC0tc2l6ZXMtbGluZSkgc29saWQgdmFyKC0tY29sb3JzLXNlY29uZGFyeS1ibHVlLWJhc2UpO1xuICBiYWNrZ3JvdW5kLWNvbG9yOiB2YXIoLS1jb2xvcnMtbmV1dHJhbC1ncmV5LWxpZ2h0ZXN0KTtcbn1cbiJdfQ== */`;
|
|
5
|
+
const style = document.createElement('style');
|
|
6
|
+
style.innerHTML = cssContents;
|
|
7
|
+
document.head.appendChild(style);
|
|
8
|
+
const footerCell = '_footerCell_1jfhd_1 _baseCell_1w2bt_1';
|
|
9
|
+
|
|
10
|
+
exports.footerCell = footerCell;
|
|
11
|
+
//# sourceMappingURL=FooterCell.module.css.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"FooterCell.module.css.cjs","sources":["../../../../../../src/components/DataGrid/components/Footer/FooterCell/FooterCell.module.css"],"sourcesContent":[".footerCell {\n composes: baseCell from '../../../DataGrid.module.css';\n\n color: var(--text-body-small-color);\n font-family: var(--text-body-small-font-family);\n font-style: var(--text-body-small-font-style);\n font-weight: var(--text-body-small-font-weight);\n line-height: var(--text-body-small-line-height);\n\n border-top: var(--sizes-line) solid var(--colors-secondary-blue-base);\n background-color: var(--colors-neutral-grey-lightest);\n}\n"],"names":[],"mappings":";;AACA,MAAM,WAAW,GAAG,CAAC;AACrB,yhCAAyhC,CAAC;AAC1hC,MAAM,KAAK,GAAG,QAAQ,CAAC,aAAa,CAAC,OAAO,CAAC;AAC7C,KAAK,CAAC,SAAS,GAAG,WAAW;AAC7B,QAAQ,CAAC,IAAI,CAAC,WAAW,CAAC,KAAK,CAAC;AAC3B,MAAC,UAAU,GAAG;;;;"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
const cssContents = `._baseCell_1w2bt_1{box-sizing:border-box;position:relative;&:focus,&:focus-visible{box-shadow:inset var(--sizes-none) var(--sizes-none) var(--sizes-none) var(--sizes-line) var(--colors-secondary-blue-base);outline:var(--sizes-none)}}._footerCell_1jfhd_1{background-color:var(--colors-neutral-grey-lightest);border-top:var(--sizes-line) solid var(--colors-secondary-blue-base);color:var(--text-body-small-color);font-family:var(--text-body-small-font-family);font-style:var(--text-body-small-font-style);font-weight:var(--text-body-small-font-weight);line-height:var(--text-body-small-line-height)}
|
|
2
|
+
/*# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIjxubyBzb3VyY2U+IiwiRm9vdGVyQ2VsbC5tb2R1bGUuY3NzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLG1CQUFBLHNCQUFBLGtCQUFBLHdCQUFBLDJIQUFBLDBCQUFBLENBQUEsQUNBQSxxQkFVRSxvREFBcUQsQ0FEckQsb0VBQXFFLENBTnJFLGtDQUFtQyxDQUNuQyw4Q0FBK0MsQ0FDL0MsNENBQTZDLENBQzdDLDhDQUErQyxDQUMvQyw4Q0FJRiIsImZpbGUiOiJGb290ZXJDZWxsLm1vZHVsZS5jc3MiLCJzb3VyY2VzQ29udGVudCI6W251bGwsIi5mb290ZXJDZWxsIHtcbiAgY29tcG9zZXM6IGJhc2VDZWxsIGZyb20gJy4uLy4uLy4uL0RhdGFHcmlkLm1vZHVsZS5jc3MnO1xuXG4gIGNvbG9yOiB2YXIoLS10ZXh0LWJvZHktc21hbGwtY29sb3IpO1xuICBmb250LWZhbWlseTogdmFyKC0tdGV4dC1ib2R5LXNtYWxsLWZvbnQtZmFtaWx5KTtcbiAgZm9udC1zdHlsZTogdmFyKC0tdGV4dC1ib2R5LXNtYWxsLWZvbnQtc3R5bGUpO1xuICBmb250LXdlaWdodDogdmFyKC0tdGV4dC1ib2R5LXNtYWxsLWZvbnQtd2VpZ2h0KTtcbiAgbGluZS1oZWlnaHQ6IHZhcigtLXRleHQtYm9keS1zbWFsbC1saW5lLWhlaWdodCk7XG5cbiAgYm9yZGVyLXRvcDogdmFyKC0tc2l6ZXMtbGluZSkgc29saWQgdmFyKC0tY29sb3JzLXNlY29uZGFyeS1ibHVlLWJhc2UpO1xuICBiYWNrZ3JvdW5kLWNvbG9yOiB2YXIoLS1jb2xvcnMtbmV1dHJhbC1ncmV5LWxpZ2h0ZXN0KTtcbn1cbiJdfQ== */`;
|
|
3
|
+
const style = document.createElement('style');
|
|
4
|
+
style.innerHTML = cssContents;
|
|
5
|
+
document.head.appendChild(style);
|
|
6
|
+
const footerCell = '_footerCell_1jfhd_1 _baseCell_1w2bt_1';
|
|
7
|
+
|
|
8
|
+
export { footerCell };
|
|
9
|
+
//# sourceMappingURL=FooterCell.module.css.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"FooterCell.module.css.js","sources":["../../../../../../src/components/DataGrid/components/Footer/FooterCell/FooterCell.module.css"],"sourcesContent":[".footerCell {\n composes: baseCell from '../../../DataGrid.module.css';\n\n color: var(--text-body-small-color);\n font-family: var(--text-body-small-font-family);\n font-style: var(--text-body-small-font-style);\n font-weight: var(--text-body-small-font-weight);\n line-height: var(--text-body-small-line-height);\n\n border-top: var(--sizes-line) solid var(--colors-secondary-blue-base);\n background-color: var(--colors-neutral-grey-lightest);\n}\n"],"names":[],"mappings":"AACA,MAAM,WAAW,GAAG,CAAC;AACrB,yhCAAyhC,CAAC;AAC1hC,MAAM,KAAK,GAAG,QAAQ,CAAC,aAAa,CAAC,OAAO,CAAC;AAC7C,KAAK,CAAC,SAAS,GAAG,WAAW;AAC7B,QAAQ,CAAC,IAAI,CAAC,WAAW,CAAC,KAAK,CAAC;AAC3B,MAAC,UAAU,GAAG;;;;"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { FooterCell } from './FooterCell';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { Footer } from './Footer';
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var React = require('react');
|
|
4
|
+
var buildClassnames = require('../../../../../utils/buildClassnames.cjs');
|
|
5
|
+
require('uid/secure');
|
|
6
|
+
var Container_module = require('./Container.module.css.cjs');
|
|
7
|
+
|
|
8
|
+
function _interopDefaultCompat (e) { return e && typeof e === 'object' && 'default' in e ? e : { default: e }; }
|
|
9
|
+
|
|
10
|
+
var React__default = /*#__PURE__*/_interopDefaultCompat(React);
|
|
11
|
+
|
|
12
|
+
const borderModeClassMap = {
|
|
13
|
+
full: Container_module.borderModeFull,
|
|
14
|
+
vertical: Container_module.borderModeVertical,
|
|
15
|
+
none: Container_module.borderModeNone,
|
|
16
|
+
};
|
|
17
|
+
/**
|
|
18
|
+
* A container element, which wraps the grid and applies a border and overflow.
|
|
19
|
+
*/
|
|
20
|
+
const Container = React__default.default.forwardRef(({ borderMode, style, children }, ref) => (React__default.default.createElement("div", { ref: ref, className: buildClassnames.buildClassnames([Container_module.container, borderModeClassMap[borderMode]]), style: style }, children)));
|
|
21
|
+
|
|
22
|
+
exports.Container = Container;
|
|
23
|
+
//# sourceMappingURL=Container.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Container.cjs","sources":["../../../../../../src/components/DataGrid/components/GridContainer/Container/Container.tsx"],"sourcesContent":["import React from 'react';\n\nimport { buildClassnames } from '../../../../../utils';\nimport { BorderMode } from '../../../types/enums';\n\nimport {\n container,\n borderModeFull,\n borderModeVertical,\n borderModeNone,\n} from './Container.module.css';\n\ntype ContainerProps = {\n /**\n * Border mode.\n */\n borderMode: BorderMode;\n\n /**\n * Additional container styles.\n */\n style?: React.CSSProperties;\n\n /**\n * Child elements.\n */\n children: React.ReactNode;\n};\n\nconst borderModeClassMap = {\n full: borderModeFull,\n vertical: borderModeVertical,\n none: borderModeNone,\n};\n\n/**\n * A container element, which wraps the grid and applies a border and overflow.\n */\nexport const Container = React.forwardRef<HTMLDivElement, ContainerProps>(\n ({ borderMode, style, children }, ref) => (\n <div\n ref={ref}\n className={buildClassnames([container, borderModeClassMap[borderMode]])}\n style={style}\n >\n {children}\n </div>\n ),\n);\n"],"names":["borderModeFull","borderModeVertical","borderModeNone","React","buildClassnames","container"],"mappings":";;;;;;;;;;;AA6BA,MAAM,kBAAkB,GAAG;AACzB,IAAA,IAAI,EAAEA,+BAAc;AACpB,IAAA,QAAQ,EAAEC,mCAAkB;AAC5B,IAAA,IAAI,EAAEC,+BAAc;CACrB;AAED;;AAEG;MACU,SAAS,GAAGC,sBAAK,CAAC,UAAU,CACvC,CAAC,EAAE,UAAU,EAAE,KAAK,EAAE,QAAQ,EAAE,EAAE,GAAG,MACnCA,sBACE,CAAA,aAAA,CAAA,KAAA,EAAA,EAAA,GAAG,EAAE,GAAG,EACR,SAAS,EAAEC,+BAAe,CAAC,CAACC,0BAAS,EAAE,kBAAkB,CAAC,UAAU,CAAC,CAAC,CAAC,EACvE,KAAK,EAAE,KAAK,IAEX,QAAQ,CACL,CACP;;;;"}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { BorderMode } from '../../../types/enums';
|
|
3
|
+
type ContainerProps = {
|
|
4
|
+
/**
|
|
5
|
+
* Border mode.
|
|
6
|
+
*/
|
|
7
|
+
borderMode: BorderMode;
|
|
8
|
+
/**
|
|
9
|
+
* Additional container styles.
|
|
10
|
+
*/
|
|
11
|
+
style?: React.CSSProperties;
|
|
12
|
+
/**
|
|
13
|
+
* Child elements.
|
|
14
|
+
*/
|
|
15
|
+
children: React.ReactNode;
|
|
16
|
+
};
|
|
17
|
+
/**
|
|
18
|
+
* A container element, which wraps the grid and applies a border and overflow.
|
|
19
|
+
*/
|
|
20
|
+
export declare const Container: React.ForwardRefExoticComponent<ContainerProps & React.RefAttributes<HTMLDivElement>>;
|
|
21
|
+
export {};
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import React__default from 'react';
|
|
2
|
+
import { buildClassnames } from '../../../../../utils/buildClassnames.js';
|
|
3
|
+
import 'uid/secure';
|
|
4
|
+
import { container, borderModeFull, borderModeVertical, borderModeNone } from './Container.module.css.js';
|
|
5
|
+
|
|
6
|
+
const borderModeClassMap = {
|
|
7
|
+
full: borderModeFull,
|
|
8
|
+
vertical: borderModeVertical,
|
|
9
|
+
none: borderModeNone,
|
|
10
|
+
};
|
|
11
|
+
/**
|
|
12
|
+
* A container element, which wraps the grid and applies a border and overflow.
|
|
13
|
+
*/
|
|
14
|
+
const Container = React__default.forwardRef(({ borderMode, style, children }, ref) => (React__default.createElement("div", { ref: ref, className: buildClassnames([container, borderModeClassMap[borderMode]]), style: style }, children)));
|
|
15
|
+
|
|
16
|
+
export { Container };
|
|
17
|
+
//# sourceMappingURL=Container.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Container.js","sources":["../../../../../../src/components/DataGrid/components/GridContainer/Container/Container.tsx"],"sourcesContent":["import React from 'react';\n\nimport { buildClassnames } from '../../../../../utils';\nimport { BorderMode } from '../../../types/enums';\n\nimport {\n container,\n borderModeFull,\n borderModeVertical,\n borderModeNone,\n} from './Container.module.css';\n\ntype ContainerProps = {\n /**\n * Border mode.\n */\n borderMode: BorderMode;\n\n /**\n * Additional container styles.\n */\n style?: React.CSSProperties;\n\n /**\n * Child elements.\n */\n children: React.ReactNode;\n};\n\nconst borderModeClassMap = {\n full: borderModeFull,\n vertical: borderModeVertical,\n none: borderModeNone,\n};\n\n/**\n * A container element, which wraps the grid and applies a border and overflow.\n */\nexport const Container = React.forwardRef<HTMLDivElement, ContainerProps>(\n ({ borderMode, style, children }, ref) => (\n <div\n ref={ref}\n className={buildClassnames([container, borderModeClassMap[borderMode]])}\n style={style}\n >\n {children}\n </div>\n ),\n);\n"],"names":["React"],"mappings":";;;;;AA6BA,MAAM,kBAAkB,GAAG;AACzB,IAAA,IAAI,EAAE,cAAc;AACpB,IAAA,QAAQ,EAAE,kBAAkB;AAC5B,IAAA,IAAI,EAAE,cAAc;CACrB;AAED;;AAEG;MACU,SAAS,GAAGA,cAAK,CAAC,UAAU,CACvC,CAAC,EAAE,UAAU,EAAE,KAAK,EAAE,QAAQ,EAAE,EAAE,GAAG,MACnCA,cACE,CAAA,aAAA,CAAA,KAAA,EAAA,EAAA,GAAG,EAAE,GAAG,EACR,SAAS,EAAE,eAAe,CAAC,CAAC,SAAS,EAAE,kBAAkB,CAAC,UAAU,CAAC,CAAC,CAAC,EACvE,KAAK,EAAE,KAAK,IAEX,QAAQ,CACL,CACP;;;;"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
const cssContents = `._container_esq8v_1{border-color:var(--colors-neutral-grey-dark);border-style:solid;overflow-x:auto;overflow-y:hidden;position:relative;width:100%;&._borderModeFull_esq8v_10{border-radius:var(--radius-base);border-width:var(--sizes-line)}&._borderModeVertical_esq8v_15{border-width:var(--sizes-none);border-left-width:var(--sizes-line);border-right-width:var(--sizes-line)}&._borderModeNone_esq8v_21{border-width:var(--sizes-none)}}
|
|
4
|
+
/*# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIkNvbnRhaW5lci5tb2R1bGUuY3NzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLG9CQUlFLDRDQUE2QyxDQUQ3QyxrQkFBbUIsQ0FHbkIsZUFBZ0IsQ0FDaEIsaUJBQWtCLENBTGxCLGlCQUFrQixDQURsQixVQUFXLENBUVgsMkJBRUUsZ0NBQWlDLENBRGpDLDhCQUVGLENBRUEsK0JBQ0UsOEJBQStCLENBQy9CLG1DQUFvQyxDQUNwQyxvQ0FDRixDQUVBLDJCQUNFLDhCQUNGLENBQ0YiLCJmaWxlIjoiQ29udGFpbmVyLm1vZHVsZS5jc3MiLCJzb3VyY2VzQ29udGVudCI6WyIuY29udGFpbmVyIHtcbiAgd2lkdGg6IDEwMCU7XG4gIHBvc2l0aW9uOiByZWxhdGl2ZTtcbiAgYm9yZGVyLXN0eWxlOiBzb2xpZDtcbiAgYm9yZGVyLWNvbG9yOiB2YXIoLS1jb2xvcnMtbmV1dHJhbC1ncmV5LWRhcmspO1xuXG4gIG92ZXJmbG93LXg6IGF1dG87XG4gIG92ZXJmbG93LXk6IGhpZGRlbjtcblxuICAmLmJvcmRlck1vZGVGdWxsIHtcbiAgICBib3JkZXItd2lkdGg6IHZhcigtLXNpemVzLWxpbmUpO1xuICAgIGJvcmRlci1yYWRpdXM6IHZhcigtLXJhZGl1cy1iYXNlKTtcbiAgfVxuXG4gICYuYm9yZGVyTW9kZVZlcnRpY2FsIHtcbiAgICBib3JkZXItd2lkdGg6IHZhcigtLXNpemVzLW5vbmUpO1xuICAgIGJvcmRlci1sZWZ0LXdpZHRoOiB2YXIoLS1zaXplcy1saW5lKTtcbiAgICBib3JkZXItcmlnaHQtd2lkdGg6IHZhcigtLXNpemVzLWxpbmUpO1xuICB9XG5cbiAgJi5ib3JkZXJNb2RlTm9uZSB7XG4gICAgYm9yZGVyLXdpZHRoOiB2YXIoLS1zaXplcy1ub25lKTtcbiAgfVxufVxuIl19 */`;
|
|
5
|
+
const style = document.createElement('style');
|
|
6
|
+
style.innerHTML = cssContents;
|
|
7
|
+
document.head.appendChild(style);
|
|
8
|
+
const container = '_container_esq8v_1';
|
|
9
|
+
const borderModeFull = '_borderModeFull_esq8v_10';
|
|
10
|
+
const borderModeVertical = '_borderModeVertical_esq8v_15';
|
|
11
|
+
const borderModeNone = '_borderModeNone_esq8v_21';
|
|
12
|
+
|
|
13
|
+
exports.borderModeFull = borderModeFull;
|
|
14
|
+
exports.borderModeNone = borderModeNone;
|
|
15
|
+
exports.borderModeVertical = borderModeVertical;
|
|
16
|
+
exports.container = container;
|
|
17
|
+
//# sourceMappingURL=Container.module.css.cjs.map
|
package/dist/components/DataGrid/components/GridContainer/Container/Container.module.css.cjs.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Container.module.css.cjs","sources":["../../../../../../src/components/DataGrid/components/GridContainer/Container/Container.module.css"],"sourcesContent":[".container {\n width: 100%;\n position: relative;\n border-style: solid;\n border-color: var(--colors-neutral-grey-dark);\n\n overflow-x: auto;\n overflow-y: hidden;\n\n &.borderModeFull {\n border-width: var(--sizes-line);\n border-radius: var(--radius-base);\n }\n\n &.borderModeVertical {\n border-width: var(--sizes-none);\n border-left-width: var(--sizes-line);\n border-right-width: var(--sizes-line);\n }\n\n &.borderModeNone {\n border-width: var(--sizes-none);\n }\n}\n"],"names":[],"mappings":";;AACA,MAAM,WAAW,GAAG,CAAC;AACrB,ymCAAymC,CAAC;AAC1mC,MAAM,KAAK,GAAG,QAAQ,CAAC,aAAa,CAAC,OAAO,CAAC;AAC7C,KAAK,CAAC,SAAS,GAAG,WAAW;AAC7B,QAAQ,CAAC,IAAI,CAAC,WAAW,CAAC,KAAK,CAAC;AAC3B,MAAC,SAAS,GAAG;AACb,MAAC,cAAc,GAAG;AAClB,MAAC,kBAAkB,GAAG;AACtB,MAAC,cAAc,GAAG;;;;;;;"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
const cssContents = `._container_esq8v_1{border-color:var(--colors-neutral-grey-dark);border-style:solid;overflow-x:auto;overflow-y:hidden;position:relative;width:100%;&._borderModeFull_esq8v_10{border-radius:var(--radius-base);border-width:var(--sizes-line)}&._borderModeVertical_esq8v_15{border-width:var(--sizes-none);border-left-width:var(--sizes-line);border-right-width:var(--sizes-line)}&._borderModeNone_esq8v_21{border-width:var(--sizes-none)}}
|
|
2
|
+
/*# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIkNvbnRhaW5lci5tb2R1bGUuY3NzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLG9CQUlFLDRDQUE2QyxDQUQ3QyxrQkFBbUIsQ0FHbkIsZUFBZ0IsQ0FDaEIsaUJBQWtCLENBTGxCLGlCQUFrQixDQURsQixVQUFXLENBUVgsMkJBRUUsZ0NBQWlDLENBRGpDLDhCQUVGLENBRUEsK0JBQ0UsOEJBQStCLENBQy9CLG1DQUFvQyxDQUNwQyxvQ0FDRixDQUVBLDJCQUNFLDhCQUNGLENBQ0YiLCJmaWxlIjoiQ29udGFpbmVyLm1vZHVsZS5jc3MiLCJzb3VyY2VzQ29udGVudCI6WyIuY29udGFpbmVyIHtcbiAgd2lkdGg6IDEwMCU7XG4gIHBvc2l0aW9uOiByZWxhdGl2ZTtcbiAgYm9yZGVyLXN0eWxlOiBzb2xpZDtcbiAgYm9yZGVyLWNvbG9yOiB2YXIoLS1jb2xvcnMtbmV1dHJhbC1ncmV5LWRhcmspO1xuXG4gIG92ZXJmbG93LXg6IGF1dG87XG4gIG92ZXJmbG93LXk6IGhpZGRlbjtcblxuICAmLmJvcmRlck1vZGVGdWxsIHtcbiAgICBib3JkZXItd2lkdGg6IHZhcigtLXNpemVzLWxpbmUpO1xuICAgIGJvcmRlci1yYWRpdXM6IHZhcigtLXJhZGl1cy1iYXNlKTtcbiAgfVxuXG4gICYuYm9yZGVyTW9kZVZlcnRpY2FsIHtcbiAgICBib3JkZXItd2lkdGg6IHZhcigtLXNpemVzLW5vbmUpO1xuICAgIGJvcmRlci1sZWZ0LXdpZHRoOiB2YXIoLS1zaXplcy1saW5lKTtcbiAgICBib3JkZXItcmlnaHQtd2lkdGg6IHZhcigtLXNpemVzLWxpbmUpO1xuICB9XG5cbiAgJi5ib3JkZXJNb2RlTm9uZSB7XG4gICAgYm9yZGVyLXdpZHRoOiB2YXIoLS1zaXplcy1ub25lKTtcbiAgfVxufVxuIl19 */`;
|
|
3
|
+
const style = document.createElement('style');
|
|
4
|
+
style.innerHTML = cssContents;
|
|
5
|
+
document.head.appendChild(style);
|
|
6
|
+
const container = '_container_esq8v_1';
|
|
7
|
+
const borderModeFull = '_borderModeFull_esq8v_10';
|
|
8
|
+
const borderModeVertical = '_borderModeVertical_esq8v_15';
|
|
9
|
+
const borderModeNone = '_borderModeNone_esq8v_21';
|
|
10
|
+
|
|
11
|
+
export { borderModeFull, borderModeNone, borderModeVertical, container };
|
|
12
|
+
//# sourceMappingURL=Container.module.css.js.map
|
package/dist/components/DataGrid/components/GridContainer/Container/Container.module.css.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Container.module.css.js","sources":["../../../../../../src/components/DataGrid/components/GridContainer/Container/Container.module.css"],"sourcesContent":[".container {\n width: 100%;\n position: relative;\n border-style: solid;\n border-color: var(--colors-neutral-grey-dark);\n\n overflow-x: auto;\n overflow-y: hidden;\n\n &.borderModeFull {\n border-width: var(--sizes-line);\n border-radius: var(--radius-base);\n }\n\n &.borderModeVertical {\n border-width: var(--sizes-none);\n border-left-width: var(--sizes-line);\n border-right-width: var(--sizes-line);\n }\n\n &.borderModeNone {\n border-width: var(--sizes-none);\n }\n}\n"],"names":[],"mappings":"AACA,MAAM,WAAW,GAAG,CAAC;AACrB,ymCAAymC,CAAC;AAC1mC,MAAM,KAAK,GAAG,QAAQ,CAAC,aAAa,CAAC,OAAO,CAAC;AAC7C,KAAK,CAAC,SAAS,GAAG,WAAW;AAC7B,QAAQ,CAAC,IAAI,CAAC,WAAW,CAAC,KAAK,CAAC;AAC3B,MAAC,SAAS,GAAG;AACb,MAAC,cAAc,GAAG;AAClB,MAAC,kBAAkB,GAAG;AACtB,MAAC,cAAc,GAAG;;;;"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { Container } from './Container';
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var React = require('react');
|
|
4
|
+
var index = require('../../../../theme/index.cjs');
|
|
5
|
+
var buildClassnames = require('../../../../utils/buildClassnames.cjs');
|
|
6
|
+
var Container = require('./Container/Container.cjs');
|
|
7
|
+
var GridContainer_module = require('./GridContainer.module.css.cjs');
|
|
8
|
+
|
|
9
|
+
function _interopDefaultCompat (e) { return e && typeof e === 'object' && 'default' in e ? e : { default: e }; }
|
|
10
|
+
|
|
11
|
+
var React__default = /*#__PURE__*/_interopDefaultCompat(React);
|
|
12
|
+
|
|
13
|
+
const gridContainerClassname = buildClassnames.buildClassnames([GridContainer_module.dataGridStyle, 'data-grid']);
|
|
14
|
+
/**
|
|
15
|
+
* The Grid container, which includes a wrapper and the table element itself. Controls table layout, applies
|
|
16
|
+
* styling and sets table-specific CSS variables (such as density).
|
|
17
|
+
*/
|
|
18
|
+
const GridContainer = ({ containerRef, tableRef, borderMode, containerStyles, ariaRoles, enableResizeableColumns, density, table, children, 'aria-label': ariaLabel, }) => (React__default.default.createElement(Container.Container, { ref: containerRef, borderMode: borderMode, style: containerStyles },
|
|
19
|
+
React__default.default.createElement("table", { ref: tableRef, className: gridContainerClassname, role: ariaRoles.table, style: {
|
|
20
|
+
tableLayout: enableResizeableColumns ? 'fixed' : 'auto',
|
|
21
|
+
'--density': index.theme.sizes[density],
|
|
22
|
+
}, "aria-colcount": table.getFlatHeaders().length, "aria-rowcount": table.getRowCount(), "aria-label": ariaLabel }, children)));
|
|
23
|
+
|
|
24
|
+
exports.GridContainer = GridContainer;
|
|
25
|
+
//# sourceMappingURL=GridContainer.cjs.map
|