@pega/lists-react 8.10.0 → 8.11.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.
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"HeaderCell.d.ts","sourceRoot":"","sources":["../../../Core/Components/HeaderCell.jsx"],"names":[],"mappings":";AASA;;;
|
|
1
|
+
{"version":3,"file":"HeaderCell.d.ts","sourceRoot":"","sources":["../../../Core/Components/HeaderCell.jsx"],"names":[],"mappings":";AASA;;;4CA4DC;;;;;;;;;;;sBArEqB,YAAY"}
|
|
@@ -9,11 +9,11 @@ function HeaderCell({ column, popoverButtonRef }) {
|
|
|
9
9
|
const isSmallOrAbove = column.parent.state?.responsive?.sm;
|
|
10
10
|
const headerIcons = !!isSmallOrAbove;
|
|
11
11
|
const [headerLabelEl, setheaderLabelEl] = useElement(null);
|
|
12
|
-
return (_jsxs(_Fragment, { children: [_jsxs("div", { className: 'header-lable-container', children: [_jsxs("div", { className: 'header-label', "aria-hidden": true, ...(column.field.type !== 'action' && column.categorizedHeaderLabel
|
|
12
|
+
return (_jsxs(_Fragment, { children: [_jsxs("div", { className: 'header-lable-container', children: [_jsxs("div", { className: 'header-label', "aria-hidden": true, "data-testid": 'header-label', ...(column.field.type !== 'action' && column.categorizedHeaderLabel
|
|
13
13
|
? { ref: setheaderLabelEl }
|
|
14
14
|
: {}), children: [_jsx(FieldTypeIcon, { column: column }), _jsx(RenderingEngine, { formatter: false, ...column.getRenderingEngineProps(), context: {
|
|
15
15
|
getRendererType: () => 'headerCellRenderer',
|
|
16
|
-
getValue: () => column.categorizedHeaderLabel
|
|
16
|
+
getValue: () => column.field.type !== 'action' ? column.categorizedHeaderLabel : undefined
|
|
17
17
|
} })] }), headerLabelEl && (_jsx(Tooltip, { smart: true, target: headerLabelEl, children: column.categorizedHeaderLabel })), headerIcons && (_jsxs(_Fragment, { children: [_jsx(RenderingEngine, { formatter: false, ...column.getRenderingEngineProps(), context: {
|
|
18
18
|
getRendererType: () => 'filterRenderer',
|
|
19
19
|
showTooltip: () => false
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"HeaderCell.js","sourceRoot":"","sources":["../../../Core/Components/HeaderCell.jsx"],"names":[],"mappings":";AAAA,OAAO,SAAS,MAAM,YAAY,CAAC;AAEnC,OAAO,EAAE,OAAO,EAAE,UAAU,EAAE,MAAM,yBAAyB,CAAC;AAE9D,OAAO,iBAAiB,MAAM,iBAAiB,CAAC;AAChD,OAAO,eAAe,MAAM,8BAA8B,CAAC;AAC3D,OAAO,aAAa,MAAM,iBAAiB,CAAC;AAC5C,OAAO,UAAU,MAAM,cAAc,CAAC;AAEtC,SAAS,UAAU,CAAC,EAAE,MAAM,EAAE,gBAAgB,EAAE;IAC9C,MAAM,cAAc,GAAG,MAAM,CAAC,MAAM,CAAC,KAAK,EAAE,UAAU,EAAE,EAAE,CAAC;IAC3D,MAAM,WAAW,GAAG,CAAC,CAAC,cAAc,CAAC;IACrC,MAAM,CAAC,aAAa,EAAE,gBAAgB,CAAC,GAAG,UAAU,CAAC,IAAI,CAAC,CAAC;IAC3D,OAAO,CACL,8BACE,eAAK,SAAS,EAAC,wBAAwB,aACrC,eACE,SAAS,EAAC,cAAc,
|
|
1
|
+
{"version":3,"file":"HeaderCell.js","sourceRoot":"","sources":["../../../Core/Components/HeaderCell.jsx"],"names":[],"mappings":";AAAA,OAAO,SAAS,MAAM,YAAY,CAAC;AAEnC,OAAO,EAAE,OAAO,EAAE,UAAU,EAAE,MAAM,yBAAyB,CAAC;AAE9D,OAAO,iBAAiB,MAAM,iBAAiB,CAAC;AAChD,OAAO,eAAe,MAAM,8BAA8B,CAAC;AAC3D,OAAO,aAAa,MAAM,iBAAiB,CAAC;AAC5C,OAAO,UAAU,MAAM,cAAc,CAAC;AAEtC,SAAS,UAAU,CAAC,EAAE,MAAM,EAAE,gBAAgB,EAAE;IAC9C,MAAM,cAAc,GAAG,MAAM,CAAC,MAAM,CAA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rC,WAAW,EAAE,GAAG,EAAE,CAAC,KAAK;iCACzB,GACD,IACD,CACJ,IACG,EACL,MAAM,CAAC,KAAK,CAAC,QAAQ,IAAI,WAAW,IAAI,CACvC,cAAK,SAAS,EAAC,UAAU,YACvB,KAAC,UAAU,IAAC,MAAM,EAAE,MAAM,EAAE,gBAAgB,EAAE,gBAAgB,GAAI,GAC9D,CACP,EACA,MAAM,CAAC,KAAK,CAAC,MAAM,IAAI,KAAC,iBAAiB,IAAC,MAAM,EAAE,MAAM,GAAI,IAC5D,CACJ,CAAC;AACJ,CAAC;AAED,UAAU,CAAC,SAAS,GAAG;IACrB,MAAM,EAAE,SAAS,CAAC,QAAQ,CAAC,SAAS,CAAC,GAAG,CAAC,CAAC,UAAU;IACpD,gBAAgB,EAAE,SAAS,CAAC,QAAQ,CAAC,SAAS,CAAC,GAAG,CAAC,CAAC,UAAU;CAC/D,CAAC;AAEF,eAAe,UAAU,CAAC","sourcesContent":["import PropTypes from 'prop-types';\n\nimport { Tooltip, useElement } from '@pega/cosmos-react-core';\n\nimport HeaderCellResizer from './ColumnResizer';\nimport RenderingEngine from './RenderingEngine/RenderCell';\nimport FieldTypeIcon from './FieldTypeIcon';\nimport HeaderMenu from './HeaderMenu';\n\nfunction HeaderCell({ column, popoverButtonRef }) {\n const isSmallOrAbove = column.parent.state?.responsive?.sm;\n const headerIcons = !!isSmallOrAbove;\n const [headerLabelEl, setheaderLabelEl] = useElement(null);\n return (\n <>\n <div className='header-lable-container'>\n <div\n className='header-label'\n aria-hidden\n data-testid='header-label'\n {...(column.field.type !== 'action' && column.categorizedHeaderLabel\n ? { ref: setheaderLabelEl }\n : {})}\n >\n <FieldTypeIcon column={column} />\n <RenderingEngine\n formatter={false}\n {...column.getRenderingEngineProps()}\n context={{\n getRendererType: () => 'headerCellRenderer',\n getValue: () =>\n column.field.type !== 'action' ? column.categorizedHeaderLabel : undefined\n }}\n />\n </div>\n {headerLabelEl && (\n <Tooltip smart target={headerLabelEl}>\n {column.categorizedHeaderLabel}\n </Tooltip>\n )}\n {headerIcons && (\n <>\n <RenderingEngine\n formatter={false}\n {...column.getRenderingEngineProps()}\n context={{\n getRendererType: () => 'filterRenderer',\n showTooltip: () => false\n }}\n />\n <RenderingEngine\n formatter={false}\n {...column.getRenderingEngineProps()}\n context={{\n getRendererType: () => 'sortRenderer',\n showTooltip: () => false\n }}\n />\n </>\n )}\n </div>\n {column.field.showMenu && headerIcons && (\n <div className='icons-ph'>\n <HeaderMenu column={column} popoverButtonRef={popoverButtonRef} />\n </div>\n )}\n {column.field.resize && <HeaderCellResizer column={column} />}\n </>\n );\n}\n\nHeaderCell.propTypes = {\n column: PropTypes.objectOf(PropTypes.any).isRequired,\n popoverButtonRef: PropTypes.objectOf(PropTypes.any).isRequired\n};\n\nexport default HeaderCell;\n"]}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pega/lists-react",
|
|
3
|
-
"version": "8.
|
|
3
|
+
"version": "8.11.0",
|
|
4
4
|
"description": "Repeating view structures such as Table, Gallery(Repeating layouts), Kanban etc.",
|
|
5
5
|
"license": "SEE LICENSE IN LICENSE",
|
|
6
6
|
"author": "Pegasystems",
|
|
@@ -14,10 +14,10 @@
|
|
|
14
14
|
"build": "tsc -b tsconfig.build.json"
|
|
15
15
|
},
|
|
16
16
|
"dependencies": {
|
|
17
|
-
"@pega/cosmos-react-condition-builder": "8.
|
|
18
|
-
"@pega/cosmos-react-core": "8.
|
|
19
|
-
"@pega/cosmos-react-rte": "8.
|
|
20
|
-
"@pega/cosmos-react-work": "8.
|
|
17
|
+
"@pega/cosmos-react-condition-builder": "8.11.0",
|
|
18
|
+
"@pega/cosmos-react-core": "8.11.0",
|
|
19
|
+
"@pega/cosmos-react-rte": "8.11.0",
|
|
20
|
+
"@pega/cosmos-react-work": "8.11.0",
|
|
21
21
|
"@types/lodash.get": "^4.4.9",
|
|
22
22
|
"@types/react": "^17.0.62 || ^18.3.3",
|
|
23
23
|
"@types/react-dom": "^17.0.20 || ^18.3.0",
|
|
@@ -25,8 +25,8 @@
|
|
|
25
25
|
"dayjs": "^1.11.13",
|
|
26
26
|
"fast-deep-equal": "^3.1.3",
|
|
27
27
|
"lodash.get": "^4.4.2",
|
|
28
|
-
"pega-repeating-structures-core": "npm:@pega/lists-core@8.
|
|
29
|
-
"pega-ui-list-data-apis": "npm:@pega/lists-core-utils@8.
|
|
28
|
+
"pega-repeating-structures-core": "npm:@pega/lists-core@8.11.0",
|
|
29
|
+
"pega-ui-list-data-apis": "npm:@pega/lists-core-utils@8.11.0",
|
|
30
30
|
"polished": "^4.1.0",
|
|
31
31
|
"prop-types": "^15.8.1",
|
|
32
32
|
"react": "^17.0.0 || ^18.0.0",
|
|
@@ -45,7 +45,7 @@
|
|
|
45
45
|
"@testing-library/react": "^16.0.0",
|
|
46
46
|
"@testing-library/user-event": "^14.6.1",
|
|
47
47
|
"jest-axe": "^8.0.0",
|
|
48
|
-
"srs-utils": "8.
|
|
48
|
+
"srs-utils": "8.11.0",
|
|
49
49
|
"typescript": "~5.8.3"
|
|
50
50
|
}
|
|
51
51
|
}
|