@bigbinary/neeto-team-members-frontend 4.4.20 → 4.4.22
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/Roles.js +4 -1
- package/dist/Roles.js.map +1 -1
- package/dist/cjs/Roles.js +3 -0
- package/dist/cjs/Roles.js.map +1 -1
- package/package.json +3 -3
package/dist/Roles.js
CHANGED
|
@@ -2,7 +2,7 @@ import _slicedToArray from '@babel/runtime/helpers/slicedToArray';
|
|
|
2
2
|
import require$$0, { useRef, memo, useCallback, useEffect, useState, createElement, Fragment as Fragment$1, useMemo } from 'react';
|
|
3
3
|
import { c as commonjsGlobal } from './_commonjsHelpers-BFTU3MAI.js';
|
|
4
4
|
import i18next, { t } from 'i18next';
|
|
5
|
-
import { isNotEmpty, isPresent, _findBy, noop } from '@bigbinary/neeto-cist';
|
|
5
|
+
import { isNotEmpty, isPresent, _findBy, hyphenate, noop } from '@bigbinary/neeto-cist';
|
|
6
6
|
import { PLURAL } from '@bigbinary/neeto-commons-frontend/constants';
|
|
7
7
|
import { withTitle, useQueryParams } from '@bigbinary/neeto-commons-frontend/react-utils';
|
|
8
8
|
import Container from '@bigbinary/neeto-molecules/Container';
|
|
@@ -1843,6 +1843,7 @@ var Row = function Row(_ref) {
|
|
|
1843
1843
|
children: roles.map(function (role) {
|
|
1844
1844
|
return /*#__PURE__*/jsx("div", {
|
|
1845
1845
|
className: "ntm-roles-table__cell",
|
|
1846
|
+
"data-cy": "".concat(hyphenate(role.name), "-role-cell"),
|
|
1846
1847
|
style: {
|
|
1847
1848
|
height: getRowClientHeight(permission)
|
|
1848
1849
|
},
|
|
@@ -2030,6 +2031,7 @@ var Columns = function Columns(_ref) {
|
|
|
2030
2031
|
var isPermissionVisible = groupedPermissions.get("isPermissionVisible");
|
|
2031
2032
|
var permissions = groupedPermissions.get("permissions");
|
|
2032
2033
|
return /*#__PURE__*/jsxs("div", {
|
|
2034
|
+
"data-cy": "".concat(hyphenate(category), "-permission-card"),
|
|
2033
2035
|
children: [/*#__PURE__*/jsx(Row, {
|
|
2034
2036
|
config: config,
|
|
2035
2037
|
setManageRole: setManageRole,
|
|
@@ -2040,6 +2042,7 @@ var Columns = function Columns(_ref) {
|
|
|
2040
2042
|
config: config,
|
|
2041
2043
|
permission: permission,
|
|
2042
2044
|
setManageRole: setManageRole,
|
|
2045
|
+
"data-cy": "".concat(hyphenate(permission), "-permission-row"),
|
|
2043
2046
|
key: permission.id,
|
|
2044
2047
|
roles: filteredRoles
|
|
2045
2048
|
});
|