@reltio/components 1.4.1875 → 1.4.1876

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.
@@ -6,7 +6,12 @@ export declare const filterSelectedAttributes: ({ attribute, selectedAttributes,
6
6
  checked: boolean;
7
7
  }) => AttributeSelectorItem[];
8
8
  export declare const getAttributeIndex: (selectedAttributes: AttributeSelectorItem[], attribute: AttributeSelectorItem) => number;
9
- export declare const getContainerWidth: (items: any) => any;
9
+ export declare const getContainerWidth: (items: {
10
+ [key: string]: unknown;
11
+ items?: Record<string, unknown>[];
12
+ item?: Record<string, unknown>;
13
+ level?: number;
14
+ }[]) => number;
10
15
  export declare const getOnEnterHandler: ({ onListItemClick, selectedAttributes }: {
11
16
  selectedAttributes: AttributeSelectorItem[];
12
17
  onListItemClick: (attribute: AttributeSelectorItem, checked: boolean) => void;
@@ -15,6 +20,6 @@ export declare const getOnEnterHandler: ({ onListItemClick, selectedAttributes }
15
20
  groupData: any;
16
21
  }) => void;
17
22
  export declare const prepareGroupsForSelectAttributeList: (filterText: string, groups: AttributeSelectorItemsGroup[]) => {
18
- item: AttributeSelectorItemsGroup[];
23
+ item: AttributeSelectorItemsGroup;
19
24
  items: AttributeSelectorItem[];
20
- };
25
+ }[];
@@ -1 +1 @@
1
- export declare const useStyles: (props?: any) => import("@mui/styles").ClassNameMap<"button" | "body" | "header" | "message" | "username" | "avatar" | "buttons" | "createdAt" | "commentTarget" | "dropdownMenu">;
1
+ export declare const useStyles: (props?: any) => import("@mui/styles").ClassNameMap<"button" | "body" | "header" | "username" | "message" | "avatar" | "buttons" | "createdAt" | "commentTarget" | "dropdownMenu">;
@@ -1 +1 @@
1
- export declare const useStyles: (props?: any) => import("@mui/styles").ClassNameMap<"header" | "message" | "username" | "root" | "avatar" | "createdAt" | "replyArea" | "marked">;
1
+ export declare const useStyles: (props?: any) => import("@mui/styles").ClassNameMap<"header" | "username" | "message" | "root" | "avatar" | "createdAt" | "replyArea" | "marked">;
@@ -1,4 +1,4 @@
1
- export function getOptionLabel(obj: any): any;
1
+ export function getOptionLabel(obj: any): string;
2
2
  export function buildLookupOptions(lookups: any): {
3
3
  lookupCode: string;
4
4
  value: any;
@@ -1,5 +1,5 @@
1
1
  type Type = {
2
2
  color?: string;
3
3
  };
4
- export declare const useStyles: (props: Type) => import("@mui/styles").ClassNameMap<"title" | "selected" | "date" | "user" | "badge" | "historyRow" | "rowHeader">;
4
+ export declare const useStyles: (props: Type) => import("@mui/styles").ClassNameMap<"title" | "selected" | "user" | "date" | "badge" | "historyRow" | "rowHeader">;
5
5
  export {};
@@ -1,3 +1,3 @@
1
1
  export declare const useStyles: (props: {
2
2
  color: string;
3
- }) => import("@mui/styles").ClassNameMap<"flex" | "caption" | "icon" | "title" | "header" | "line" | "date" | "priority" | "info" | "comments" | "card" | "withBackground" | "lineWrapper" | "commentsInfo" | "commentsIcon" | "infoValue" | "infoBlock" | "flag" | "mainInfo" | "controlsBox" | "controlsInRow">;
3
+ }) => import("@mui/styles").ClassNameMap<"flex" | "caption" | "icon" | "title" | "header" | "line" | "priority" | "date" | "info" | "comments" | "card" | "withBackground" | "lineWrapper" | "commentsInfo" | "commentsIcon" | "infoValue" | "infoBlock" | "flag" | "mainInfo" | "controlsBox" | "controlsInRow">;
@@ -27,8 +27,8 @@ export declare const useMdmEntityUri: () => string;
27
27
  export declare const useMdmEntityWithDiff: () => import("@reltio/mdm-sdk").Entity;
28
28
  export declare const useMdmEntityUriWithDataTenant: () => string;
29
29
  export declare const useMdmMode: () => import("@reltio/mdm-sdk").Mode;
30
- export declare const useMdmIsViewMode: () => any;
31
- export declare const useMdmIsEditableMode: () => any;
30
+ export declare const useMdmIsViewMode: () => boolean;
31
+ export declare const useMdmIsEditableMode: () => boolean;
32
32
  export declare const useMdmHistoryDiff: () => import("@reltio/mdm-sdk").HistoryDiff;
33
33
  export declare const useMdmHistoryMode: () => import("@reltio/mdm-sdk").HistoryMode;
34
34
  export declare const useMdmHistorySlice: () => import("@reltio/mdm-sdk").HistorySlice;
@@ -1,3 +1,3 @@
1
1
  import React from 'react';
2
2
  import { User } from '@reltio/mdm-sdk';
3
- export declare const UsersContext: React.Context<Pick<User, "username" | "email">[]>;
3
+ export declare const UsersContext: React.Context<Pick<User, "email" | "username">[]>;
@@ -1,4 +1,4 @@
1
- import { AttributeType, Metadata, NestedAttributeValue, ReferenceAttributeValue, SimpleAttributeValue } from '@reltio/mdm-sdk';
1
+ import { AttributeType, DataTypeDefinition, Metadata, NestedAttributeValue, ReferenceAttributeValue, SimpleAttributeValue } from '@reltio/mdm-sdk';
2
2
  import { AttributeSelectorItem } from '../types';
3
3
  export declare const getFilteredAttrTypes: (metadata: Metadata, type: string, includeUris: string[], excludeUris: string[]) => any;
4
4
  type PagersData = {
@@ -6,7 +6,7 @@ type PagersData = {
6
6
  values: (SimpleAttributeValue | NestedAttributeValue | ReferenceAttributeValue | string | number)[];
7
7
  };
8
8
  export declare const splitPagersData: (alwaysVisibleTypeUris: string[], pagersData: PagersData[]) => [PagersData[], PagersData[]];
9
- export declare const attributeValueToEditorValue: (attributeValue: SimpleAttributeValue, { type }: AttributeType) => string | number | boolean | Date | {
9
+ export declare const attributeValueToEditorValue: (attributeValue: SimpleAttributeValue, { type }: DataTypeDefinition) => string | number | boolean | Date | {
10
10
  value: import("@reltio/mdm-sdk").PrimitiveValue;
11
11
  lookupCode: string;
12
12
  };
@@ -6,7 +6,12 @@ export declare const filterSelectedAttributes: ({ attribute, selectedAttributes,
6
6
  checked: boolean;
7
7
  }) => AttributeSelectorItem[];
8
8
  export declare const getAttributeIndex: (selectedAttributes: AttributeSelectorItem[], attribute: AttributeSelectorItem) => number;
9
- export declare const getContainerWidth: (items: any) => any;
9
+ export declare const getContainerWidth: (items: {
10
+ [key: string]: unknown;
11
+ items?: Record<string, unknown>[];
12
+ item?: Record<string, unknown>;
13
+ level?: number;
14
+ }[]) => number;
10
15
  export declare const getOnEnterHandler: ({ onListItemClick, selectedAttributes }: {
11
16
  selectedAttributes: AttributeSelectorItem[];
12
17
  onListItemClick: (attribute: AttributeSelectorItem, checked: boolean) => void;
@@ -15,6 +20,6 @@ export declare const getOnEnterHandler: ({ onListItemClick, selectedAttributes }
15
20
  groupData: any;
16
21
  }) => void;
17
22
  export declare const prepareGroupsForSelectAttributeList: (filterText: string, groups: AttributeSelectorItemsGroup[]) => {
18
- item: AttributeSelectorItemsGroup[];
23
+ item: AttributeSelectorItemsGroup;
19
24
  items: AttributeSelectorItem[];
20
- };
25
+ }[];
@@ -1 +1 @@
1
- export declare const useStyles: (props?: any) => import("@mui/styles").ClassNameMap<"button" | "body" | "header" | "message" | "username" | "avatar" | "buttons" | "createdAt" | "commentTarget" | "dropdownMenu">;
1
+ export declare const useStyles: (props?: any) => import("@mui/styles").ClassNameMap<"button" | "body" | "header" | "username" | "message" | "avatar" | "buttons" | "createdAt" | "commentTarget" | "dropdownMenu">;
@@ -1 +1 @@
1
- export declare const useStyles: (props?: any) => import("@mui/styles").ClassNameMap<"header" | "message" | "username" | "root" | "avatar" | "createdAt" | "replyArea" | "marked">;
1
+ export declare const useStyles: (props?: any) => import("@mui/styles").ClassNameMap<"header" | "username" | "message" | "root" | "avatar" | "createdAt" | "replyArea" | "marked">;
@@ -1,4 +1,4 @@
1
- export function getOptionLabel(obj: any): any;
1
+ export function getOptionLabel(obj: any): string;
2
2
  export function buildLookupOptions(lookups: any): {
3
3
  lookupCode: string;
4
4
  value: any;
@@ -1,5 +1,5 @@
1
1
  type Type = {
2
2
  color?: string;
3
3
  };
4
- export declare const useStyles: (props: Type) => import("@mui/styles").ClassNameMap<"title" | "selected" | "date" | "user" | "badge" | "historyRow" | "rowHeader">;
4
+ export declare const useStyles: (props: Type) => import("@mui/styles").ClassNameMap<"title" | "selected" | "user" | "date" | "badge" | "historyRow" | "rowHeader">;
5
5
  export {};
@@ -1,3 +1,3 @@
1
1
  export declare const useStyles: (props: {
2
2
  color: string;
3
- }) => import("@mui/styles").ClassNameMap<"flex" | "caption" | "icon" | "title" | "header" | "line" | "date" | "priority" | "info" | "comments" | "card" | "withBackground" | "lineWrapper" | "commentsInfo" | "commentsIcon" | "infoValue" | "infoBlock" | "flag" | "mainInfo" | "controlsBox" | "controlsInRow">;
3
+ }) => import("@mui/styles").ClassNameMap<"flex" | "caption" | "icon" | "title" | "header" | "line" | "priority" | "date" | "info" | "comments" | "card" | "withBackground" | "lineWrapper" | "commentsInfo" | "commentsIcon" | "infoValue" | "infoBlock" | "flag" | "mainInfo" | "controlsBox" | "controlsInRow">;
@@ -27,8 +27,8 @@ export declare const useMdmEntityUri: () => string;
27
27
  export declare const useMdmEntityWithDiff: () => import("@reltio/mdm-sdk").Entity;
28
28
  export declare const useMdmEntityUriWithDataTenant: () => string;
29
29
  export declare const useMdmMode: () => import("@reltio/mdm-sdk").Mode;
30
- export declare const useMdmIsViewMode: () => any;
31
- export declare const useMdmIsEditableMode: () => any;
30
+ export declare const useMdmIsViewMode: () => boolean;
31
+ export declare const useMdmIsEditableMode: () => boolean;
32
32
  export declare const useMdmHistoryDiff: () => import("@reltio/mdm-sdk").HistoryDiff;
33
33
  export declare const useMdmHistoryMode: () => import("@reltio/mdm-sdk").HistoryMode;
34
34
  export declare const useMdmHistorySlice: () => import("@reltio/mdm-sdk").HistorySlice;
@@ -1,3 +1,3 @@
1
1
  import React from 'react';
2
2
  import { User } from '@reltio/mdm-sdk';
3
- export declare const UsersContext: React.Context<Pick<User, "username" | "email">[]>;
3
+ export declare const UsersContext: React.Context<Pick<User, "email" | "username">[]>;
@@ -1,4 +1,4 @@
1
- import { AttributeType, Metadata, NestedAttributeValue, ReferenceAttributeValue, SimpleAttributeValue } from '@reltio/mdm-sdk';
1
+ import { AttributeType, DataTypeDefinition, Metadata, NestedAttributeValue, ReferenceAttributeValue, SimpleAttributeValue } from '@reltio/mdm-sdk';
2
2
  import { AttributeSelectorItem } from '../types';
3
3
  export declare const getFilteredAttrTypes: (metadata: Metadata, type: string, includeUris: string[], excludeUris: string[]) => any;
4
4
  type PagersData = {
@@ -6,7 +6,7 @@ type PagersData = {
6
6
  values: (SimpleAttributeValue | NestedAttributeValue | ReferenceAttributeValue | string | number)[];
7
7
  };
8
8
  export declare const splitPagersData: (alwaysVisibleTypeUris: string[], pagersData: PagersData[]) => [PagersData[], PagersData[]];
9
- export declare const attributeValueToEditorValue: (attributeValue: SimpleAttributeValue, { type }: AttributeType) => string | number | boolean | Date | {
9
+ export declare const attributeValueToEditorValue: (attributeValue: SimpleAttributeValue, { type }: DataTypeDefinition) => string | number | boolean | Date | {
10
10
  value: import("@reltio/mdm-sdk").PrimitiveValue;
11
11
  lookupCode: string;
12
12
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@reltio/components",
3
- "version": "1.4.1875",
3
+ "version": "1.4.1876",
4
4
  "license": "SEE LICENSE IN LICENSE FILE",
5
5
  "main": "./cjs/index.js",
6
6
  "module": "./esm/index.js",
@@ -8,7 +8,7 @@
8
8
  "@fluentui/react-context-selector": "^9.1.26",
9
9
  "@react-google-maps/api": "2.7.0",
10
10
  "@react-sigma/core": "3.4.0",
11
- "@reltio/mdm-sdk": "^1.4.1813",
11
+ "@reltio/mdm-sdk": "^1.4.1814",
12
12
  "classnames": "^2.2.5",
13
13
  "d3-cloud": "^1.2.5",
14
14
  "d3-geo": "^2.0.1",