@expressms/smartapp-ui 2.9.27-alpha.1 → 2.9.28

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 (39) hide show
  1. package/build/main/assets/icons/contact-info.svg +3 -3
  2. package/build/main/constants/constants.d.ts +4 -0
  3. package/build/main/constants/constants.js +5 -0
  4. package/build/main/constants/constants.js.map +1 -1
  5. package/build/main/hooks/useModal.js +10 -2
  6. package/build/main/hooks/useModal.js.map +1 -1
  7. package/build/main/styles/styles.scss +1 -1
  8. package/build/main//321/201omponents/DragAndDrop/DragAndDrop.js +5 -5
  9. package/build/main//321/201omponents/DragAndDrop/DragAndDrop.js.map +1 -1
  10. package/build/main//321/201omponents/Input/Input.js +9 -6
  11. package/build/main//321/201omponents/Input/Input.js.map +1 -1
  12. package/build/main//321/201omponents/Modal/Modal.js +1 -1
  13. package/build/main//321/201omponents/Modal/Modal.js.map +1 -1
  14. package/build/main//321/201omponents/Modal/deprecatedBottomSheetTypes.d.ts +48 -0
  15. package/build/main//321/201omponents/Modal/deprecatedBottomSheetTypes.js +2 -0
  16. package/build/main//321/201omponents/Modal/deprecatedBottomSheetTypes.js.map +1 -0
  17. package/build/main//321/201omponents/Modal/types.d.ts +1 -1
  18. package/build/main//321/201omponents/UserDropdown/ContactBottomSheet/ContactBottomSheet.d.ts +1 -1
  19. package/build/main//321/201omponents/UserDropdown/ContactBottomSheet/ContactBottomSheet.js +2 -2
  20. package/build/main//321/201omponents/UserDropdown/ContactBottomSheet/ContactBottomSheet.js.map +1 -1
  21. package/build/main//321/201omponents/UserDropdown/ContactInfo/ContactInfo.d.ts +16 -1
  22. package/build/main//321/201omponents/UserDropdown/ContactInfo/ContactInfo.js +39 -4
  23. package/build/main//321/201omponents/UserDropdown/ContactInfo/ContactInfo.js.map +1 -1
  24. package/build/main//321/201omponents/UserDropdown/LoadingMessage/LoadingMessage.d.ts +1 -1
  25. package/build/main//321/201omponents/UserDropdown/LoadingMessage/LoadingMessage.js +8 -2
  26. package/build/main//321/201omponents/UserDropdown/LoadingMessage/LoadingMessage.js.map +1 -1
  27. package/build/main//321/201omponents/UserDropdown/MenuList/MenuList.js +23 -9
  28. package/build/main//321/201omponents/UserDropdown/MenuList/MenuList.js.map +1 -1
  29. package/build/main//321/201omponents/UserDropdown/Option/Option.js +19 -13
  30. package/build/main//321/201omponents/UserDropdown/Option/Option.js.map +1 -1
  31. package/build/main//321/201omponents/UserDropdown/UserDropdown.d.ts +2 -1
  32. package/build/main//321/201omponents/UserDropdown/UserDropdown.js +48 -32
  33. package/build/main//321/201omponents/UserDropdown/UserDropdown.js.map +1 -1
  34. package/build/main//321/201omponents/UserDropdown/selectStyles.d.ts +1 -1
  35. package/build/main//321/201omponents/UserDropdown/selectStyles.js +7 -5
  36. package/build/main//321/201omponents/UserDropdown/selectStyles.js.map +1 -1
  37. package/build/main//321/201omponents/UserDropdown/types.d.ts +24 -0
  38. package/build/main//321/201omponents/UserDropdown/types.js.map +1 -1
  39. 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;
@@ -104,6 +117,7 @@ export type TSelectStyles = {
104
117
  isDisabled: boolean;
105
118
  lastRowNumber: number;
106
119
  paddingLeft: string;
120
+ paddingRight: string;
107
121
  fillType: string;
108
122
  platform: string;
109
123
  layoutType: string;
@@ -112,6 +126,7 @@ export type TSelectStyles = {
112
126
  isInputFocused?: boolean;
113
127
  isDraggable?: boolean;
114
128
  isChipsCollapsed?: boolean;
129
+ menuListMaxHeight: number;
115
130
  };
116
131
  export type TGenerateNoOptionsMessage = {
117
132
  inputValue: string;
@@ -217,24 +232,33 @@ export interface IUserDropdownProps extends ICommonProps, ILayoutTypeProps, ILan
217
232
  isInputHidden?: boolean;
218
233
  isDisabledMenuOffsetAtFullscreen?: boolean;
219
234
  isDisabledCheckUniqueEmails?: boolean;
235
+ isDisableDebounceInputChange?: boolean;
220
236
  hasNextPage?: boolean;
221
237
  isNextPageLoading?: boolean;
238
+ isClearable?: boolean;
239
+ isUserIconHidden?: boolean;
240
+ isUserInfoPopupAvailable?: boolean;
222
241
  title?: string;
223
242
  mask?: string;
224
243
  placeholder?: string;
225
244
  hint?: ReactElement | string;
226
245
  noOptionsMessage?: string;
227
246
  maxMembersCount?: number;
247
+ menuListMaxHeight?: number;
228
248
  fillType?: 'primary' | 'secondary';
229
249
  menuPosition?: 'bottom' | 'auto' | 'top';
230
250
  autoFocus?: boolean;
231
251
  externalInputValue?: string;
232
252
  containerClassName?: string;
253
+ loadingMessageClassName?: string;
254
+ noOptionsMessageClassName?: string;
233
255
  containerStyles?: TStyles;
234
256
  selectedEntries?: TUser[];
235
257
  corporateEntries: TCorporateEntries | null;
236
258
  myContactsEntries: TMyContactsEntries[] | null;
237
259
  emailsToExclude?: string[];
260
+ optionContactInfoFields?: TInfoFieldsKey[];
261
+ optionAdditionalField?: TOptionAdditionalField;
238
262
  userDropdownId?: string;
239
263
  focusRef?: RefObject<TFocusHandle | null>;
240
264
  onInputChange: (inputValue: string) => void;
@@ -1 +1 @@
1
- {"version":3,"file":"types.js","sourceRoot":"","sources":["../../../../src/сomponents/UserDropdown/types.ts"],"names":[],"mappings":"AAqRA,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"}
1
+ {"version":3,"file":"types.js","sourceRoot":"","sources":["../../../../src/сomponents/UserDropdown/types.ts"],"names":[],"mappings":"AA8SA,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.27-alpha.1",
3
+ "version": "2.9.28",
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",