@reltio/components 1.4.1037 → 1.4.1041

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.
Files changed (75) hide show
  1. package/cjs/components/EntityTypesSelector/EntityTypesSelector.d.ts +17 -55
  2. package/cjs/components/EntityTypesSelector/EntityTypesSelector.js +8 -118
  3. package/cjs/components/MetadataTypesSelector/ListLabel/ListLabel.d.ts +7 -0
  4. package/cjs/components/{EntityTypesSelector → MetadataTypesSelector}/ListLabel/ListLabel.js +2 -6
  5. package/cjs/components/MetadataTypesSelector/ListLabel/helpers.d.ts +4 -0
  6. package/cjs/components/{EntityTypesSelector → MetadataTypesSelector}/ListLabel/helpers.js +1 -1
  7. package/cjs/components/MetadataTypesSelector/ListLabel/styles.d.ts +1 -0
  8. package/cjs/components/{EntityTypesSelector → MetadataTypesSelector}/ListLabel/styles.js +0 -0
  9. package/cjs/components/MetadataTypesSelector/MetadataTypesSelector.d.ts +26 -0
  10. package/cjs/components/MetadataTypesSelector/MetadataTypesSelector.js +123 -0
  11. package/cjs/components/MetadataTypesSelector/SelectMetadataTypesList.d.ts +20 -0
  12. package/cjs/components/{EntityTypesSelector/SelectEntityTypesList.js → MetadataTypesSelector/SelectMetadataTypesList.js} +7 -12
  13. package/cjs/components/MetadataTypesSelector/styles.d.ts +1 -0
  14. package/cjs/components/{EntityTypesSelector → MetadataTypesSelector}/styles.js +0 -0
  15. package/cjs/components/RelationTypesSelector/RelationTypesSelector.d.ts +17 -0
  16. package/cjs/components/RelationTypesSelector/RelationTypesSelector.js +35 -0
  17. package/cjs/components/SearchInput/SearchInput.d.ts +3 -2
  18. package/cjs/components/SearchInput/SearchInput.js +3 -3
  19. package/cjs/components/SelectionPopup/SelectionPopup.d.ts +17 -44
  20. package/cjs/components/SelectionPopup/SelectionPopup.js +8 -26
  21. package/cjs/components/SelectionPopup/SelectionPopupPopper/SelectionPopupPopper.d.ts +17 -35
  22. package/cjs/components/SelectionPopup/SelectionPopupPopper/SelectionPopupPopper.js +0 -21
  23. package/cjs/components/SelectionPopup/helpers.d.ts +23 -9
  24. package/cjs/components/attributes/PivotingAttributes/PivotingTooltip.js +10 -3
  25. package/cjs/components/attributes/PivotingAttributes/PivotingTooltipContent.d.ts +4 -3
  26. package/cjs/components/attributes/PivotingAttributes/PivotingTooltipContent.js +4 -11
  27. package/cjs/components/attributes/PivotingAttributes/helpers.d.ts +5 -5
  28. package/cjs/components/attributes/PivotingAttributes/styles.js +2 -1
  29. package/cjs/components/attributes/editMode/AttributesPager/index.d.ts +2 -2
  30. package/cjs/components/index.d.ts +2 -1
  31. package/cjs/components/index.js +5 -3
  32. package/cjs/components/workflow/types/dcrTypes.d.ts +2 -2
  33. package/esm/components/EntityTypesSelector/EntityTypesSelector.d.ts +17 -55
  34. package/esm/components/EntityTypesSelector/EntityTypesSelector.js +9 -120
  35. package/esm/components/MetadataTypesSelector/ListLabel/ListLabel.d.ts +7 -0
  36. package/esm/components/{EntityTypesSelector → MetadataTypesSelector}/ListLabel/ListLabel.js +1 -7
  37. package/esm/components/MetadataTypesSelector/ListLabel/helpers.d.ts +4 -0
  38. package/esm/components/{EntityTypesSelector → MetadataTypesSelector}/ListLabel/helpers.js +1 -1
  39. package/esm/components/MetadataTypesSelector/ListLabel/styles.d.ts +1 -0
  40. package/esm/components/{EntityTypesSelector → MetadataTypesSelector}/ListLabel/styles.js +0 -0
  41. package/esm/components/MetadataTypesSelector/MetadataTypesSelector.d.ts +26 -0
  42. package/esm/components/MetadataTypesSelector/MetadataTypesSelector.js +98 -0
  43. package/esm/components/MetadataTypesSelector/SelectMetadataTypesList.d.ts +20 -0
  44. package/esm/components/{EntityTypesSelector/SelectEntityTypesList.js → MetadataTypesSelector/SelectMetadataTypesList.js} +6 -12
  45. package/esm/components/MetadataTypesSelector/styles.d.ts +1 -0
  46. package/esm/components/{EntityTypesSelector → MetadataTypesSelector}/styles.js +0 -0
  47. package/esm/components/RelationTypesSelector/RelationTypesSelector.d.ts +17 -0
  48. package/esm/components/RelationTypesSelector/RelationTypesSelector.js +10 -0
  49. package/esm/components/SearchInput/SearchInput.d.ts +3 -2
  50. package/esm/components/SearchInput/SearchInput.js +3 -3
  51. package/esm/components/SelectionPopup/SelectionPopup.d.ts +17 -44
  52. package/esm/components/SelectionPopup/SelectionPopup.js +8 -26
  53. package/esm/components/SelectionPopup/SelectionPopupPopper/SelectionPopupPopper.d.ts +17 -35
  54. package/esm/components/SelectionPopup/SelectionPopupPopper/SelectionPopupPopper.js +0 -21
  55. package/esm/components/SelectionPopup/helpers.d.ts +23 -9
  56. package/esm/components/attributes/PivotingAttributes/PivotingTooltip.js +12 -5
  57. package/esm/components/attributes/PivotingAttributes/PivotingTooltipContent.d.ts +4 -3
  58. package/esm/components/attributes/PivotingAttributes/PivotingTooltipContent.js +6 -13
  59. package/esm/components/attributes/PivotingAttributes/helpers.d.ts +5 -5
  60. package/esm/components/attributes/PivotingAttributes/styles.js +2 -1
  61. package/esm/components/attributes/editMode/AttributesPager/index.d.ts +2 -2
  62. package/esm/components/index.d.ts +2 -1
  63. package/esm/components/index.js +2 -1
  64. package/esm/components/workflow/types/dcrTypes.d.ts +2 -2
  65. package/package.json +5 -5
  66. package/cjs/components/EntityTypesSelector/ListLabel/ListLabel.d.ts +0 -12
  67. package/cjs/components/EntityTypesSelector/ListLabel/helpers.d.ts +0 -3
  68. package/cjs/components/EntityTypesSelector/ListLabel/styles.d.ts +0 -1
  69. package/cjs/components/EntityTypesSelector/SelectEntityTypesList.d.ts +0 -16
  70. package/cjs/components/EntityTypesSelector/styles.d.ts +0 -1
  71. package/esm/components/EntityTypesSelector/ListLabel/ListLabel.d.ts +0 -12
  72. package/esm/components/EntityTypesSelector/ListLabel/helpers.d.ts +0 -3
  73. package/esm/components/EntityTypesSelector/ListLabel/styles.d.ts +0 -1
  74. package/esm/components/EntityTypesSelector/SelectEntityTypesList.d.ts +0 -16
  75. package/esm/components/EntityTypesSelector/styles.d.ts +0 -1
@@ -73,7 +73,8 @@ export var useStyles = makeStyles(function (theme) { return ({
73
73
  margin: 'auto 8px auto 0'
74
74
  },
75
75
  content: {
76
- color: theme.palette.primary.main
76
+ color: theme.palette.primary.main,
77
+ cursor: 'pointer'
77
78
  },
78
79
  seeAllButton: {
79
80
  cursor: 'pointer'
@@ -1,6 +1,6 @@
1
1
  /// <reference types="react" />
2
2
  import { RequestNextPageOfAttributeValuesPayload } from '@reltio/mdm-module';
3
- import { AttributeError, AttributeType, AttributeValue, Crosswalk, ImageAttributeValue, Mode, NestedAttributeValue, Paging, ReferenceAttributeValue, SimpleAttributeValue } from '@reltio/mdm-sdk';
3
+ import { AttributeError, AttributeType, AttributeValue, Crosswalk, ImageAttributeValue, Mode, NestedAttributeValue, Paging, ReferenceAttributeValue, SimpleAttributeValue, PrimitiveValue } from '@reltio/mdm-sdk';
4
4
  import AttributesPager from './AttributesPager';
5
5
  import CardinalityMessage from './CardinalityMessage';
6
6
  export declare type AttributeItem = {
@@ -8,7 +8,7 @@ export declare type AttributeItem = {
8
8
  parentUri?: string;
9
9
  index?: number;
10
10
  attributeType: AttributeType;
11
- value?: Partial<AttributeValue> | ImageAttributeValue['value'] | string | boolean | number;
11
+ value?: Partial<AttributeValue> | ImageAttributeValue['value'] | PrimitiveValue;
12
12
  };
13
13
  declare type StateProps = {
14
14
  errorMessage: string;
@@ -50,7 +50,8 @@ export { default as EmptyState, EMPTY_STATE_ICONS, EMPTY_STATE_VARIANTS } from '
50
50
  export { default as EntityAvatar } from './EntityAvatar/EntityAvatar';
51
51
  export { default as EntityTypeBadge } from './EntityTypeBadge/EntityTypeBadge';
52
52
  export { default as EntityTypeIcon } from './EntityTypeIcon/EntityTypeIcon';
53
- export { default as EntityTypesSelector } from './EntityTypesSelector/EntityTypesSelector';
53
+ export { EntityTypesSelector } from './EntityTypesSelector/EntityTypesSelector';
54
+ export { RelationTypesSelector } from './RelationTypesSelector/RelationTypesSelector';
54
55
  export { default as EntityUriLink } from './EntityUriLink/EntityUriLink';
55
56
  export { default as ErrorBoundary } from './ErrorBoundary/ErrorBoundary';
56
57
  export { default as ErrorPopup } from './ErrorPopup/ErrorPopup';
@@ -49,7 +49,8 @@ export { default as EmptyState, EMPTY_STATE_ICONS, EMPTY_STATE_VARIANTS } from '
49
49
  export { default as EntityAvatar } from './EntityAvatar/EntityAvatar';
50
50
  export { default as EntityTypeBadge } from './EntityTypeBadge/EntityTypeBadge';
51
51
  export { default as EntityTypeIcon } from './EntityTypeIcon/EntityTypeIcon';
52
- export { default as EntityTypesSelector } from './EntityTypesSelector/EntityTypesSelector';
52
+ export { EntityTypesSelector } from './EntityTypesSelector/EntityTypesSelector';
53
+ export { RelationTypesSelector } from './RelationTypesSelector/RelationTypesSelector';
53
54
  export { default as EntityUriLink } from './EntityUriLink/EntityUriLink';
54
55
  export { default as ErrorBoundary } from './ErrorBoundary/ErrorBoundary';
55
56
  export { default as ErrorPopup } from './ErrorPopup/ErrorPopup';
@@ -1,4 +1,4 @@
1
- import { Crosswalk, Entity, NestedAttributeValue, ReferenceAttributeValue, Relation, SimpleAttributeValue } from '@reltio/mdm-sdk';
1
+ import { Crosswalk, Entity, NestedAttributeValue, ReferenceAttributeValue, Relation, SimpleAttributeValue, PrimitiveValue } from '@reltio/mdm-sdk';
2
2
  import { DCRTypes } from '../constants/operations';
3
3
  export declare type ChangeRequest = {
4
4
  changes: DCRChanges;
@@ -38,7 +38,7 @@ export declare type DCRObjectsInfo = {
38
38
  export declare type DCRAttributes = {
39
39
  [attributeName: string]: (ChangeValue | DCRChange)[];
40
40
  };
41
- export declare type Value = DCRAttributes | DCRChange | string | boolean | number;
41
+ export declare type Value = DCRAttributes | DCRChange | PrimitiveValue;
42
42
  export declare type DCRAttributeValue = Omit<SimpleAttributeValue | NestedAttributeValue | ReferenceAttributeValue, 'uri' | 'value'> & {
43
43
  value: Value;
44
44
  refObjectURI?: string;
package/package.json CHANGED
@@ -1,14 +1,14 @@
1
1
  {
2
2
  "name": "@reltio/components",
3
- "version": "1.4.1037",
3
+ "version": "1.4.1041",
4
4
  "license": "SEE LICENSE IN LICENSE FILE",
5
5
  "main": "./cjs/index.js",
6
6
  "module": "./esm/index.js",
7
7
  "dependencies": {
8
8
  "@date-io/moment": "^1.3.5",
9
- "@react-google-maps/api": "^2.7.0",
10
- "@reltio/mdm-module": "^1.4.1037",
11
- "@reltio/mdm-sdk": "^1.4.1037",
9
+ "@react-google-maps/api": "2.7.0",
10
+ "@reltio/mdm-module": "^1.4.1041",
11
+ "@reltio/mdm-sdk": "^1.4.1041",
12
12
  "classnames": "^2.2.5",
13
13
  "d3-cloud": "^1.2.5",
14
14
  "d3-geo": "^2.0.1",
@@ -35,7 +35,7 @@
35
35
  "react-virtualized": "^9.21.2",
36
36
  "react-window": "^1.8.5",
37
37
  "recharts": "^1.8.5",
38
- "ui-i18n": "bitbucket:reltio-ondemand/ui-i18n#v1.3.0"
38
+ "ui-i18n": "bitbucket:reltio-ondemand/ui-i18n#v1.3.1"
39
39
  },
40
40
  "peerDependencies": {
41
41
  "moment": "2.24.0",
@@ -1,12 +0,0 @@
1
- export default ListLabel;
2
- declare function ListLabel({ list, maxWidth }: {
3
- list: any;
4
- maxWidth: any;
5
- }): JSX.Element;
6
- declare namespace ListLabel {
7
- namespace propTypes {
8
- const list: PropTypes.Validator<string[]>;
9
- const maxWidth: PropTypes.Requireable<number>;
10
- }
11
- }
12
- import PropTypes from "prop-types";
@@ -1,3 +0,0 @@
1
- export function countHiddenItems(list: any, labelEl: any): number;
2
- export function getListLabel(list: any): any;
3
- export function getListLabelWidth(maxWidth: any): string;
@@ -1 +0,0 @@
1
- export const useStyles: (props?: any) => import("@material-ui/core/styles/withStyles").ClassNameMap<"listLabelContainer" | "listLabel" | "visibleItemsLabel" | "hiddenCount">;
@@ -1,16 +0,0 @@
1
- declare var _default: React.MemoExoticComponent<{
2
- ({ selectedEntityTypes, onItemClick, focusIndex, ...otherProps }: {
3
- [x: string]: any;
4
- selectedEntityTypes: any;
5
- onItemClick: any;
6
- focusIndex: any;
7
- }): JSX.Element;
8
- propTypes: {
9
- selectedEntityTypes: PropTypes.Requireable<any[]>;
10
- onItemClick: PropTypes.Requireable<(...args: any[]) => any>;
11
- focusIndex: PropTypes.Requireable<number>;
12
- };
13
- }>;
14
- export default _default;
15
- import PropTypes from "prop-types";
16
- import React from "react";
@@ -1 +0,0 @@
1
- export const useStyles: (props?: any) => import("@material-ui/core/styles/withStyles").ClassNameMap<"icon" | "input" | "root" | "inputLabel" | "inputRoot" | "inputText" | "emptyInput" | "disabledInput" | "disabledPointer" | "disabledUnderline" | "popup-opened-icon">;
@@ -1,12 +0,0 @@
1
- export default ListLabel;
2
- declare function ListLabel({ list, maxWidth }: {
3
- list: any;
4
- maxWidth: any;
5
- }): JSX.Element;
6
- declare namespace ListLabel {
7
- namespace propTypes {
8
- const list: PropTypes.Validator<string[]>;
9
- const maxWidth: PropTypes.Requireable<number>;
10
- }
11
- }
12
- import PropTypes from "prop-types";
@@ -1,3 +0,0 @@
1
- export function countHiddenItems(list: any, labelEl: any): number;
2
- export function getListLabel(list: any): any;
3
- export function getListLabelWidth(maxWidth: any): string;
@@ -1 +0,0 @@
1
- export const useStyles: (props?: any) => import("@material-ui/core/styles/withStyles").ClassNameMap<"listLabelContainer" | "listLabel" | "visibleItemsLabel" | "hiddenCount">;
@@ -1,16 +0,0 @@
1
- declare var _default: React.MemoExoticComponent<{
2
- ({ selectedEntityTypes, onItemClick, focusIndex, ...otherProps }: {
3
- [x: string]: any;
4
- selectedEntityTypes: any;
5
- onItemClick: any;
6
- focusIndex: any;
7
- }): JSX.Element;
8
- propTypes: {
9
- selectedEntityTypes: PropTypes.Requireable<any[]>;
10
- onItemClick: PropTypes.Requireable<(...args: any[]) => any>;
11
- focusIndex: PropTypes.Requireable<number>;
12
- };
13
- }>;
14
- export default _default;
15
- import PropTypes from "prop-types";
16
- import React from "react";
@@ -1 +0,0 @@
1
- export const useStyles: (props?: any) => import("@material-ui/core/styles/withStyles").ClassNameMap<"icon" | "input" | "root" | "inputLabel" | "inputRoot" | "inputText" | "emptyInput" | "disabledInput" | "disabledPointer" | "disabledUnderline" | "popup-opened-icon">;