@reltio/dashboard 1.4.2196 → 1.4.2198

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/package.json CHANGED
@@ -1,13 +1,13 @@
1
1
  {
2
2
  "name": "@reltio/dashboard",
3
- "version": "1.4.2196",
3
+ "version": "1.4.2198",
4
4
  "license": "SEE LICENSE IN LICENSE FILE",
5
5
  "main": "bundle.js",
6
6
  "types": "./types/index.d.ts",
7
7
  "dependencies": {
8
- "@reltio/components": "^1.4.2158",
9
- "@reltio/mdm-module": "^1.4.2015",
10
- "@reltio/mdm-sdk": "^1.4.1977",
8
+ "@reltio/components": "^1.4.2160",
9
+ "@reltio/mdm-module": "^1.4.2016",
10
+ "@reltio/mdm-sdk": "^1.4.1978",
11
11
  "object-hash": "^2.1.1"
12
12
  },
13
13
  "peerDependencies": {
@@ -0,0 +1,10 @@
1
+ import React from 'react';
2
+ import { TextFieldProps } from '@mui/material/TextField';
3
+ export declare const INPUT_DEBOUNCE_INTERVAL = 400;
4
+ type Props = Omit<TextFieldProps, 'onChange' | 'value'> & {
5
+ value?: string;
6
+ onChange?: (value: string) => void;
7
+ fullWidth?: boolean;
8
+ };
9
+ export declare const AddressAutocompleteEditor: ({ value, onChange, InputProps, fullWidth, ...otherProps }: Props) => React.JSX.Element;
10
+ export {};
@@ -0,0 +1,10 @@
1
+ import { AddressSearchResult } from '@reltio/mdm-sdk';
2
+ export type AddressOption = {
3
+ id: string;
4
+ type: string;
5
+ fullAddress: string;
6
+ description?: string;
7
+ };
8
+ export declare const convertSearchResultToOption: (result: AddressSearchResult) => AddressOption;
9
+ export declare const getOptionLabel: (option: AddressOption | string) => string;
10
+ export declare const isOptionEqualToValue: (option: AddressOption, value: string) => boolean;
@@ -0,0 +1,3 @@
1
+ import { SimpleAttributeValue } from '@reltio/mdm-sdk';
2
+ import React from 'react';
3
+ export declare const AttributeValueContext: React.Context<SimpleAttributeValue>;
@@ -0,0 +1,24 @@
1
+ import { Entity, AttributeType, Metadata, AddressAutoCompleteConfig, ModifyAttributePayload, AddressDetails } from '@reltio/mdm-sdk';
2
+ export type AutocompleteSettings = {
3
+ minSearchTextLen: number;
4
+ countries: string[];
5
+ countryNames: string[];
6
+ limit: number;
7
+ };
8
+ export declare const getSettings: ({ metadata, modifiedEntity, triggerAttributeValueUri, triggerAttributeTypeUri, addressAutoCompleteConfig }: {
9
+ metadata: Metadata;
10
+ modifiedEntity: Entity;
11
+ triggerAttributeValueUri: string;
12
+ triggerAttributeTypeUri: string;
13
+ addressAutoCompleteConfig: AddressAutoCompleteConfig;
14
+ }) => AutocompleteSettings;
15
+ export declare const isTriggerAttribute: (attributeType: AttributeType, inputMapping: AddressAutoCompleteConfig["inputMapping"]) => boolean;
16
+ export declare const modifyAttributes: ({ outputMapping, modifiedEntity, metadata, triggerAttributeTypeUri, triggerAttributeValueUri, values, modifyAttribute }: {
17
+ outputMapping: AddressAutoCompleteConfig["outputMapping"];
18
+ modifiedEntity: Entity;
19
+ metadata: Metadata;
20
+ modifyAttribute: (attribute: ModifyAttributePayload) => void;
21
+ triggerAttributeTypeUri: string;
22
+ triggerAttributeValueUri: string;
23
+ values: AddressDetails;
24
+ }) => void;
@@ -0,0 +1,12 @@
1
+ import React from 'react';
2
+ import { AttributeType, AddressDetails } from '@reltio/mdm-sdk';
3
+ import { AutocompleteSettings } from './helpers';
4
+ export declare const AddressAutoCompleteContext: import("@fluentui/react-context-selector").Context<{
5
+ onPopulateAttributes: (triggerAttributeTypeUri: string, triggerAttributeValueUri: string, value: AddressDetails) => void;
6
+ isAutocompleteTriggerAttribute: (attributeType: AttributeType) => boolean;
7
+ getAutocompleteSettings: (triggerAttributeTypeUri: string, triggerAttributeValueUri: string) => AutocompleteSettings;
8
+ }>;
9
+ export declare const AddressAutoCompleteProvider: ({ children, entityUri }: {
10
+ children: React.ReactNode;
11
+ entityUri?: string;
12
+ }) => React.JSX.Element;
@@ -80,6 +80,7 @@ export type BasicAttributeSelectorProps = {
80
80
  ungroup?: boolean;
81
81
  disabled?: boolean;
82
82
  hideCheckBox?: boolean;
83
+ additionalInfo?: string;
83
84
  };
84
85
  export declare enum RequestStates {
85
86
  INIT = "init",