@expressms/smartapp-ui 2.9.27 → 2.9.29
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/build/main/assets/icons/contact-info.svg +3 -3
- package/build/main/constants/constants.d.ts +4 -0
- package/build/main/constants/constants.js +5 -0
- package/build/main/constants/constants.js.map +1 -1
- package/build/main/hooks/useModal.js +10 -2
- package/build/main/hooks/useModal.js.map +1 -1
- package/build/main/styles/styles.scss +1 -1
- package/build/main//321/201omponents/DragAndDrop/DragAndDrop.js +5 -5
- package/build/main//321/201omponents/DragAndDrop/DragAndDrop.js.map +1 -1
- package/build/main//321/201omponents/Input/Input.js +9 -6
- package/build/main//321/201omponents/Input/Input.js.map +1 -1
- package/build/main//321/201omponents/Modal/Modal.js +1 -1
- package/build/main//321/201omponents/Modal/Modal.js.map +1 -1
- package/build/main//321/201omponents/Modal/deprecatedBottomSheetTypes.d.ts +48 -0
- package/build/main//321/201omponents/Modal/deprecatedBottomSheetTypes.js +2 -0
- package/build/main//321/201omponents/Modal/deprecatedBottomSheetTypes.js.map +1 -0
- package/build/main//321/201omponents/Modal/types.d.ts +1 -1
- package/build/main//321/201omponents/UserDropdown/ContactBottomSheet/ContactBottomSheet.d.ts +1 -1
- package/build/main//321/201omponents/UserDropdown/ContactBottomSheet/ContactBottomSheet.js +2 -2
- package/build/main//321/201omponents/UserDropdown/ContactBottomSheet/ContactBottomSheet.js.map +1 -1
- package/build/main//321/201omponents/UserDropdown/ContactInfo/ContactInfo.d.ts +16 -1
- package/build/main//321/201omponents/UserDropdown/ContactInfo/ContactInfo.js +39 -4
- package/build/main//321/201omponents/UserDropdown/ContactInfo/ContactInfo.js.map +1 -1
- package/build/main//321/201omponents/UserDropdown/LoadingMessage/LoadingMessage.d.ts +1 -1
- package/build/main//321/201omponents/UserDropdown/LoadingMessage/LoadingMessage.js +8 -2
- package/build/main//321/201omponents/UserDropdown/LoadingMessage/LoadingMessage.js.map +1 -1
- package/build/main//321/201omponents/UserDropdown/MenuList/MenuList.js +23 -9
- package/build/main//321/201omponents/UserDropdown/MenuList/MenuList.js.map +1 -1
- package/build/main//321/201omponents/UserDropdown/Option/Option.js +19 -13
- package/build/main//321/201omponents/UserDropdown/Option/Option.js.map +1 -1
- package/build/main//321/201omponents/UserDropdown/UserDropdown.d.ts +2 -1
- package/build/main//321/201omponents/UserDropdown/UserDropdown.js +49 -32
- package/build/main//321/201omponents/UserDropdown/UserDropdown.js.map +1 -1
- package/build/main//321/201omponents/UserDropdown/selectStyles.d.ts +1 -1
- package/build/main//321/201omponents/UserDropdown/selectStyles.js +8 -6
- package/build/main//321/201omponents/UserDropdown/selectStyles.js.map +1 -1
- package/build/main//321/201omponents/UserDropdown/types.d.ts +26 -0
- package/build/main//321/201omponents/UserDropdown/types.js.map +1 -1
- package/package.json +1 -3
|
@@ -1,8 +1,10 @@
|
|
|
1
1
|
import { ReactElement, RefObject } from 'react';
|
|
2
2
|
import { MenuListProps, OptionProps } from 'react-select';
|
|
3
|
+
import { TInfoFieldsKey } from './ContactInfo/ContactInfo';
|
|
3
4
|
import { ICommonProps, ILanguageProps, ILayoutTypeProps, TStyles } from '../../constants';
|
|
4
5
|
import { CONTACT_TYPES } from './constants';
|
|
5
6
|
import { MenuItem } from '../ContextMenu/types';
|
|
7
|
+
type TOptionAdditionalField = Exclude<TInfoFieldsKey, 'mail'>;
|
|
6
8
|
export interface IContactBottomSheet extends ILanguageProps {
|
|
7
9
|
avatar: string | null;
|
|
8
10
|
name: string;
|
|
@@ -11,6 +13,7 @@ export interface IContactBottomSheet extends ILanguageProps {
|
|
|
11
13
|
company: string | null;
|
|
12
14
|
department: string | null;
|
|
13
15
|
companyPosition: string | null;
|
|
16
|
+
infoFields: TInfoFieldsKey[];
|
|
14
17
|
}
|
|
15
18
|
export interface IContactInfo extends ILanguageProps {
|
|
16
19
|
elementRef?: RefObject<HTMLDivElement | null>;
|
|
@@ -18,19 +21,25 @@ export interface IContactInfo extends ILanguageProps {
|
|
|
18
21
|
company: string | null;
|
|
19
22
|
department: string | null;
|
|
20
23
|
companyPosition: string | null;
|
|
24
|
+
email: string;
|
|
25
|
+
infoFields: TInfoFieldsKey[];
|
|
21
26
|
}
|
|
22
27
|
export type TRenderInfoItem = {
|
|
23
28
|
title: string;
|
|
24
29
|
info: string;
|
|
25
30
|
};
|
|
26
31
|
export interface ILoadingMessage {
|
|
32
|
+
className?: string;
|
|
27
33
|
skeletonRowsCount?: number;
|
|
34
|
+
optionAdditionalField?: TOptionAdditionalField;
|
|
28
35
|
}
|
|
29
36
|
export interface IMenuListProps extends MenuListProps {
|
|
30
37
|
selectRef: RefObject<any>;
|
|
31
38
|
scrollFromTop: RefObject<number>;
|
|
32
39
|
language: string;
|
|
40
|
+
menuListMaxHeight: number;
|
|
33
41
|
hasNextPage: boolean;
|
|
42
|
+
optionAdditionalField?: TOptionAdditionalField;
|
|
34
43
|
isLoading: boolean;
|
|
35
44
|
isUserTyping: boolean;
|
|
36
45
|
isCharHintVisible: boolean;
|
|
@@ -55,7 +64,11 @@ type TData = ILanguageProps & {
|
|
|
55
64
|
uid?: string;
|
|
56
65
|
};
|
|
57
66
|
export interface IOptionProps extends OptionProps {
|
|
67
|
+
isUserIconHidden: boolean;
|
|
68
|
+
isUserInfoPopupAvailable: boolean;
|
|
58
69
|
data: TData;
|
|
70
|
+
additionalField?: TOptionAdditionalField;
|
|
71
|
+
contactInfoFields: TInfoFieldsKey[];
|
|
59
72
|
}
|
|
60
73
|
export interface ISearchInCatalogButtonProps {
|
|
61
74
|
width?: number;
|
|
@@ -102,8 +115,10 @@ export type TSelectStyles = {
|
|
|
102
115
|
isChipsVisible: boolean;
|
|
103
116
|
isMaxMembersAdded: boolean;
|
|
104
117
|
isDisabled: boolean;
|
|
118
|
+
isError: boolean;
|
|
105
119
|
lastRowNumber: number;
|
|
106
120
|
paddingLeft: string;
|
|
121
|
+
paddingRight: string;
|
|
107
122
|
fillType: string;
|
|
108
123
|
platform: string;
|
|
109
124
|
layoutType: string;
|
|
@@ -112,6 +127,7 @@ export type TSelectStyles = {
|
|
|
112
127
|
isInputFocused?: boolean;
|
|
113
128
|
isDraggable?: boolean;
|
|
114
129
|
isChipsCollapsed?: boolean;
|
|
130
|
+
menuListMaxHeight: number;
|
|
115
131
|
};
|
|
116
132
|
export type TGenerateNoOptionsMessage = {
|
|
117
133
|
inputValue: string;
|
|
@@ -207,6 +223,7 @@ export type TFocusHandle = {
|
|
|
207
223
|
export interface IUserDropdownProps extends ICommonProps, ILayoutTypeProps, ILanguageProps {
|
|
208
224
|
isDisabled?: boolean;
|
|
209
225
|
isLoading?: boolean;
|
|
226
|
+
isError?: boolean;
|
|
210
227
|
isChipsVisible?: boolean;
|
|
211
228
|
isChipsCollapsable?: boolean;
|
|
212
229
|
isSelectedChipHasTooltip?: boolean;
|
|
@@ -217,24 +234,33 @@ export interface IUserDropdownProps extends ICommonProps, ILayoutTypeProps, ILan
|
|
|
217
234
|
isInputHidden?: boolean;
|
|
218
235
|
isDisabledMenuOffsetAtFullscreen?: boolean;
|
|
219
236
|
isDisabledCheckUniqueEmails?: boolean;
|
|
237
|
+
isDisableDebounceInputChange?: boolean;
|
|
220
238
|
hasNextPage?: boolean;
|
|
221
239
|
isNextPageLoading?: boolean;
|
|
240
|
+
isClearable?: boolean;
|
|
241
|
+
isUserIconHidden?: boolean;
|
|
242
|
+
isUserInfoPopupAvailable?: boolean;
|
|
222
243
|
title?: string;
|
|
223
244
|
mask?: string;
|
|
224
245
|
placeholder?: string;
|
|
225
246
|
hint?: ReactElement | string;
|
|
226
247
|
noOptionsMessage?: string;
|
|
227
248
|
maxMembersCount?: number;
|
|
249
|
+
menuListMaxHeight?: number;
|
|
228
250
|
fillType?: 'primary' | 'secondary';
|
|
229
251
|
menuPosition?: 'bottom' | 'auto' | 'top';
|
|
230
252
|
autoFocus?: boolean;
|
|
231
253
|
externalInputValue?: string;
|
|
232
254
|
containerClassName?: string;
|
|
255
|
+
loadingMessageClassName?: string;
|
|
256
|
+
noOptionsMessageClassName?: string;
|
|
233
257
|
containerStyles?: TStyles;
|
|
234
258
|
selectedEntries?: TUser[];
|
|
235
259
|
corporateEntries: TCorporateEntries | null;
|
|
236
260
|
myContactsEntries: TMyContactsEntries[] | null;
|
|
237
261
|
emailsToExclude?: string[];
|
|
262
|
+
optionContactInfoFields?: TInfoFieldsKey[];
|
|
263
|
+
optionAdditionalField?: TOptionAdditionalField;
|
|
238
264
|
userDropdownId?: string;
|
|
239
265
|
focusRef?: RefObject<TFocusHandle | null>;
|
|
240
266
|
onInputChange: (inputValue: string) => void;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.js","sourceRoot":"","sources":["../../../../src/сomponents/UserDropdown/types.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"types.js","sourceRoot":"","sources":["../../../../src/сomponents/UserDropdown/types.ts"],"names":[],"mappings":"AAgTA,MAAM,CAAC,IAAM,YAAY,GAAG;IAC1B,iBAAiB,EAAE,CAAC;IACpB,cAAc,EAAE,CAAC;IACjB,2BAA2B,EAAE,CAAC;IAC9B,yBAAyB,EAAE,CAAC;IAC5B,aAAa,EAAE,CAAC;IAChB,QAAQ,EAAE,CAAC;CACH,CAAA"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@expressms/smartapp-ui",
|
|
3
|
-
"version": "2.9.
|
|
3
|
+
"version": "2.9.29",
|
|
4
4
|
"description": "SmartApp UI library",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"main": "build/main/index.js",
|
|
@@ -13,7 +13,6 @@
|
|
|
13
13
|
},
|
|
14
14
|
"dependencies": {
|
|
15
15
|
"@dnd-kit/core": "^6.3.1",
|
|
16
|
-
"alex.chus-react-spring-bottom-sheet": "^0.0.2",
|
|
17
16
|
"camelcase": "^6.2.1",
|
|
18
17
|
"classnames": "^2.3.2",
|
|
19
18
|
"color": "^4.2.3",
|
|
@@ -125,7 +124,6 @@
|
|
|
125
124
|
"@types/uuid": "^9.0.8",
|
|
126
125
|
"@typescript-eslint/eslint-plugin": "^6.6.0",
|
|
127
126
|
"@typescript-eslint/parser": "^6.6.0",
|
|
128
|
-
"alex.chus-react-spring-bottom-sheet": "^0.0.2",
|
|
129
127
|
"animate.css": "^4.1.1",
|
|
130
128
|
"babel-jest": "^18.0.0",
|
|
131
129
|
"babel-loader": "8.2.3",
|