@pega/lists-react 8.0.0-build.45.2 → 8.0.0-build.45.3
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.
|
@@ -15,7 +15,7 @@ const StyledOperator = styled.span `
|
|
|
15
15
|
width: 1.2rem;
|
|
16
16
|
min-width: 1.2rem;
|
|
17
17
|
min-height: 1.2rem;
|
|
18
|
-
background-color: ${props => props.theme.
|
|
18
|
+
background-color: ${props => props.theme.components.avatar['background-color']};
|
|
19
19
|
position: absolute;
|
|
20
20
|
top: 0;
|
|
21
21
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Operator.js","sourceRoot":"","sources":["../../../../../Core/Components/DefaultComponents/CellRenderers/Operator.jsx"],"names":[],"mappings":";AAAA,OAAO,SAAS,MAAM,YAAY,CAAC;AACnC,OAAO,MAAM,MAAM,mBAAmB,CAAC;AAEvC,OAAO,EAAE,MAAM,EAAE,gBAAgB,EAAE,OAAO,EAAE,IAAI,EAAE,MAAM,yBAAyB,CAAC;AAClF,OAAO,EAAE,OAAO,EAAE,MAAM,gCAAgC,CAAC;AAEzD,OAAO,EAAE,iBAAiB,EAAE,MAAM,gBAAgB,CAAC;AAEnD,MAAM,cAAc,GAAG,MAAM,CAAC,IAAI,CAAA;;;;;;;;;;;wBAWV,KAAK,CAAC,EAAE,CAAC,KAAK,CAAC,KAAK,CAAC,
|
|
1
|
+
{"version":3,"file":"Operator.js","sourceRoot":"","sources":["../../../../../Core/Components/DefaultComponents/CellRenderers/Operator.jsx"],"names":[],"mappings":";AAAA,OAAO,SAAS,MAAM,YAAY,CAAC;AACnC,OAAO,MAAM,MAAM,mBAAmB,CAAC;AAEvC,OAAO,EAAE,MAAM,EAAE,gBAAgB,EAAE,OAAO,EAAE,IAAI,EAAE,MAAM,yBAAyB,CAAC;AAClF,OAAO,EAAE,OAAO,EAAE,MAAM,gCAAgC,CAAC;AAEzD,OAAO,EAAE,iBAAiB,EAAE,MAAM,gBAAgB,CAAC;AAEnD,MAAM,cAAc,GAAG,MAAM,CAAC,IAAI,CAAA;;;;;;;;;;;wBAWV,KAAK,CAAC,EAAE,CAAC,KAAK,CAAC,KAAK,CAAC,UAAU,CAAC,MAAM,CAAC,kBAAkB,CAAC;;;;CAIjF,CAAC;AAEF,cAAc,CAAC,YAAY,GAAG,gBAAgB,CAAC;AAE/C,SAAS,gBAAgB,CAAC,EAAE,QAAQ,EAAE,KAAK,EAAE,cAAc,EAAE;IAC3D,MAAM,QAAQ,GAAG,QAAQ,EAAE,CAAC;IAC5B,OAAO,CACL,MAAC,cAAc,eACZ,OAAO,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,CAC1B,eAAM,SAAS,EAAC,oBAAoB,YAClC,KAAC,MAAM,IAAC,IAAI,EAAE,cAAc,EAAE,IAAI,EAAC,GAAG,EAAC,SAAS,EAAC,eAAe,GAAG,GAC9D,CACR,EACA,iBAAiB,CAAC,cAAc,CAAC,CAAC,CAAC,CAAC,CACnC,KAAC,IAAI,IAAC,KAAK,EAAE,EAAE,UAAU,EAAE,QAAQ,EAAE,YAAG,cAAc,GAAQ,CAC/D,CAAC,CAAC,CAAC,CACF,KAAC,OAAO,KAAG,CACZ,IACc,CAClB,CAAC;AACJ,CAAC;AACD,gBAAgB,CAAC,SAAS,GAAG;IAC3B,KAAK,EAAE,SAAS,CAAC,MAAM;IACvB,QAAQ,EAAE,SAAS,CAAC,IAAI;CACzB,CAAC;AAEF,eAAe,gBAAgB,CAAC","sourcesContent":["import PropTypes from 'prop-types';\nimport styled from 'styled-components';\n\nimport { Avatar, defaultThemeProp, NoValue, Text } from '@pega/cosmos-react-core';\nimport { isEmpty } from 'pega-repeating-structures-core';\n\nimport { isAccessibleValue } from '../../../Utils';\n\nconst StyledOperator = styled.span`\n .custom-avatar-cont {\n position: relative;\n }\n .custom-avatar {\n font-size: 0.45rem;\n line-height: 1.2rem;\n height: 1.2rem;\n width: 1.2rem;\n min-width: 1.2rem;\n min-height: 1.2rem;\n background-color: ${props => props.theme.components.avatar['background-color']};\n position: absolute;\n top: 0;\n }\n`;\n\nStyledOperator.defaultProps = defaultThemeProp;\n\nfunction OperatorRenderer({ getValue, value: formattedValue }) {\n const rawValue = getValue();\n return (\n <StyledOperator>\n {isEmpty(rawValue) ? null : (\n <span className='custom-avatar-cont'>\n <Avatar name={formattedValue} size='m' className='custom-avatar' />\n </span>\n )}\n {isAccessibleValue(formattedValue) ? (\n <Text style={{ marginLeft: '1.5rem' }}>{formattedValue}</Text>\n ) : (\n <NoValue />\n )}\n </StyledOperator>\n );\n}\nOperatorRenderer.propTypes = {\n value: PropTypes.string,\n getValue: PropTypes.func\n};\n\nexport default OperatorRenderer;\n"]}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pega/lists-react",
|
|
3
|
-
"version": "8.0.0-build.45.
|
|
3
|
+
"version": "8.0.0-build.45.3",
|
|
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.0.0-build.45.
|
|
18
|
-
"@pega/cosmos-react-core": "8.0.0-build.45.
|
|
19
|
-
"@pega/cosmos-react-rte": "8.0.0-build.45.
|
|
20
|
-
"@pega/cosmos-react-work": "8.0.0-build.45.
|
|
17
|
+
"@pega/cosmos-react-condition-builder": "8.0.0-build.45.3",
|
|
18
|
+
"@pega/cosmos-react-core": "8.0.0-build.45.3",
|
|
19
|
+
"@pega/cosmos-react-rte": "8.0.0-build.45.3",
|
|
20
|
+
"@pega/cosmos-react-work": "8.0.0-build.45.3",
|
|
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.0.0-build.45.
|
|
29
|
-
"pega-ui-list-data-apis": "npm:@pega/lists-core-utils@8.0.0-build.45.
|
|
28
|
+
"pega-repeating-structures-core": "npm:@pega/lists-core@8.0.0-build.45.3",
|
|
29
|
+
"pega-ui-list-data-apis": "npm:@pega/lists-core-utils@8.0.0-build.45.3",
|
|
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.5.1",
|
|
47
47
|
"jest-axe": "^8.0.0",
|
|
48
|
-
"srs-utils": "8.0.0-build.45.
|
|
48
|
+
"srs-utils": "8.0.0-build.45.3",
|
|
49
49
|
"typescript": "~5.5.4"
|
|
50
50
|
}
|
|
51
51
|
}
|