@vitrosoftware/common-ui-ts 1.1.177 → 1.1.179

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 (144) hide show
  1. package/css/std/controls/criterion/criterion.css +1 -0
  2. package/css/std/controls/date-picker/date-picker.css +0 -1
  3. package/css/std/controls/input/input.css +0 -7
  4. package/css/std/controls/lookup-picker/lookup-picker-selected-item.css +2 -0
  5. package/css/std/controls/lookup-picker/lookup-picker.css +7 -7
  6. package/css/std/controls/time-picker/time-picker.css +0 -1
  7. package/css/std/controls/tooltip/tooltip.css +1 -1
  8. package/dist/index.css +11 -35
  9. package/dist/index.js +428 -216
  10. package/dist/index.js.map +1 -1
  11. package/dist/src/constants/CssProperty.d.ts +5 -0
  12. package/dist/src/constants/Event.d.ts +2 -2
  13. package/dist/src/controls/ActionHandler/ActionHandler.d.ts +8 -9
  14. package/dist/src/controls/ActionHandler/ActionResultList.d.ts +4 -4
  15. package/dist/src/controls/ActionHandler/ResultDialog.d.ts +6 -7
  16. package/dist/src/controls/ActionHandler/models/ActionHandlerItem.d.ts +6 -0
  17. package/dist/src/controls/ActionHandler/models/ActionHandlerResult.d.ts +3 -0
  18. package/dist/src/controls/Activity/Activity.d.ts +2 -2
  19. package/dist/src/controls/ActivityItem/ActivityItem.d.ts +2 -2
  20. package/dist/src/controls/ActivityItem/ActivityMessage.d.ts +2 -2
  21. package/dist/src/controls/ActivityItem/models/ChangedValue.d.ts +6 -0
  22. package/dist/src/controls/BimViewer/BimViewer.d.ts +2 -2
  23. package/dist/src/controls/BimViewer/Viewer.d.ts +2 -2
  24. package/dist/src/controls/BimViewer/services/BimViewerService.d.ts +17 -0
  25. package/dist/src/controls/Breadcrumbs/Breadcrumbs.d.ts +3 -3
  26. package/dist/src/controls/Breadcrumbs/models/BreadcrumbsItem.d.ts +4 -0
  27. package/dist/src/controls/CenterAlignControlGroup/CenterAlignControlGroup.d.ts +1 -1
  28. package/dist/src/controls/Checkbox/Checkbox.d.ts +2 -2
  29. package/dist/src/controls/Checkbox/services/CheckboxService.d.ts +4 -0
  30. package/dist/src/controls/CheckboxReorderableList/CheckboxReorderableList.d.ts +2 -2
  31. package/dist/src/controls/CheckboxReorderableList/models/CheckboxReorderableListItem.d.ts +6 -0
  32. package/dist/src/controls/ComponentLoader/services/ComponentLoaderService.d.ts +6 -0
  33. package/dist/src/controls/ComponentLoader/services/impl/ComponentLoaderServiceImpl.d.ts +11 -0
  34. package/dist/src/controls/Criterion/ConditionSelect.d.ts +3 -3
  35. package/dist/src/controls/Criterion/Criterion.d.ts +4 -6
  36. package/dist/src/controls/Criterion/models/Condition.d.ts +6 -0
  37. package/dist/src/controls/Criterion/models/Criterion.d.ts +8 -0
  38. package/dist/src/controls/Criterion/models/Operator.d.ts +4 -0
  39. package/dist/src/controls/CriterionFieldIterator/CriterionFieldIterator.d.ts +3 -4
  40. package/dist/src/controls/Dialog/Dialog.d.ts +2 -2
  41. package/dist/src/controls/Dialog/DialogHeader.d.ts +1 -1
  42. package/dist/src/controls/DropdownButton/DropdownButton.d.ts +2 -2
  43. package/dist/src/controls/DropdownButton/models/DropdownItem.d.ts +11 -0
  44. package/dist/src/controls/DxfViewer/DxfViewer.d.ts +2 -2
  45. package/dist/src/controls/DxfViewer/Viewer.d.ts +2 -2
  46. package/dist/src/controls/DxfViewer/services/DxfViewerService.d.ts +31 -0
  47. package/dist/src/controls/EditableList/EditableItem.d.ts +3 -3
  48. package/dist/src/controls/EditableList/EditableList.d.ts +4 -5
  49. package/dist/src/controls/EditableList/models/EditableListItem.d.ts +7 -0
  50. package/dist/src/controls/FieldIterator/FieldIterator.d.ts +1 -0
  51. package/dist/src/controls/FieldIterator/services/FieldIteratorService.d.ts +4 -0
  52. package/dist/src/controls/File/File.d.ts +3 -3
  53. package/dist/src/controls/FileVersionSelect/FileVersionSelect.d.ts +3 -3
  54. package/dist/src/controls/FileVersionSelect/Item.d.ts +3 -3
  55. package/dist/src/controls/FileVersionSelect/models/FileVersion.d.ts +6 -0
  56. package/dist/src/controls/Image/Image.d.ts +1 -1
  57. package/dist/src/controls/ImagePicker/ImagePicker.d.ts +2 -2
  58. package/dist/src/controls/ImageViewer/ImageViewer.d.ts +4 -4
  59. package/dist/src/controls/ImageViewer/models/Image.d.ts +5 -0
  60. package/dist/src/controls/ImageViewer/services/ImageViewerService.d.ts +5 -0
  61. package/dist/src/controls/Input/Input.d.ts +2 -2
  62. package/dist/src/controls/Input/models/QuillRichEditorSettings.d.ts +15 -0
  63. package/dist/src/controls/Input/services/InputService.d.ts +5 -0
  64. package/dist/src/controls/Input/services/QuillRichEditorService.d.ts +8 -0
  65. package/dist/src/controls/Input/services/impl/QuillRichEditorServiceImpl.d.ts +46 -0
  66. package/dist/src/controls/IssueTile/IssueTile.d.ts +5 -5
  67. package/dist/src/controls/IssueTile/IssueTileHeader.d.ts +1 -1
  68. package/dist/src/controls/LinkInput/LinkInput.d.ts +7 -8
  69. package/dist/src/controls/LinkInput/services/LinkInputService.d.ts +11 -0
  70. package/dist/src/controls/Login/LoginForm.d.ts +3 -3
  71. package/dist/src/controls/Login/LoginKerberosForm.d.ts +2 -2
  72. package/dist/src/controls/Login/TwoFactorAuthenticationForm.d.ts +2 -2
  73. package/dist/src/controls/Login/services/FormService.d.ts +3 -0
  74. package/dist/src/controls/Login/services/LoginFormService.d.ts +5 -0
  75. package/dist/src/controls/Login/services/TwoFactorAuthenticationFormService.d.ts +4 -0
  76. package/dist/src/controls/LookupPicker/SelectedValueList.d.ts +1 -0
  77. package/dist/src/controls/LookupPicker/SelectedValueListItem.d.ts +1 -0
  78. package/dist/src/controls/MessageInput/AttachedFile.d.ts +1 -1
  79. package/dist/src/controls/MessageInput/MessageInput.d.ts +2 -2
  80. package/dist/src/controls/MessageInput/services/MessageInputService.d.ts +3 -0
  81. package/dist/src/controls/MicroFrontend/MicroFrontend.d.ts +1 -1
  82. package/dist/src/controls/MicroFrontend/renderMicrofrontend.d.ts +1 -2
  83. package/dist/src/controls/MicroFrontend/services/MicroFrontendService.d.ts +8 -0
  84. package/dist/src/controls/MicroFrontend/services/impl/MicroFrontendServiceImpl.d.ts +10 -0
  85. package/dist/src/controls/Overlay/Overlay.d.ts +3 -3
  86. package/dist/src/controls/Overlay/services/OverlayService.d.ts +5 -0
  87. package/dist/src/controls/PdfViewer/PdfViewer.d.ts +2 -2
  88. package/dist/src/controls/PdfViewer/Viewer.d.ts +2 -2
  89. package/dist/src/controls/PdfViewer/services/PdfViewerService.d.ts +17 -0
  90. package/dist/src/controls/ScrollBar/ScrollBar.d.ts +1 -1
  91. package/dist/src/controls/ScrollView/models/ScrollViewItem.d.ts +7 -0
  92. package/dist/src/controls/Search/Search.d.ts +6 -8
  93. package/dist/src/controls/SearchInput/SearchInput.d.ts +3 -3
  94. package/dist/src/controls/Sidebar/GroupItem.d.ts +2 -2
  95. package/dist/src/controls/Sidebar/Section.d.ts +2 -2
  96. package/dist/src/controls/Sidebar/SectionList.d.ts +2 -2
  97. package/dist/src/controls/Sidebar/Sidebar.d.ts +5 -5
  98. package/dist/src/controls/Sidebar/models/SidebarItem.d.ts +15 -0
  99. package/dist/src/controls/Sidebar/models/SidebarSection.d.ts +7 -0
  100. package/dist/src/controls/SiteSelect/SiteSelect.d.ts +7 -7
  101. package/dist/src/controls/SiteSelect/SiteSelectItem.d.ts +15 -0
  102. package/dist/src/controls/SiteSelect/models/SiteSelectItem.d.ts +7 -0
  103. package/dist/src/controls/SystemExceptionDialog/SystemExceptionDialog.d.ts +2 -2
  104. package/dist/src/controls/SystemExceptionDialog/models/SystemExceptionDialogData.d.ts +7 -0
  105. package/dist/src/controls/TabGroup/TabGroup.d.ts +3 -3
  106. package/dist/src/controls/TabGroup/TabGroupComponent.d.ts +3 -3
  107. package/dist/src/controls/TabGroup/models/Tab.d.ts +13 -0
  108. package/dist/src/controls/TableView/TableView.d.ts +6 -8
  109. package/dist/src/controls/TableView/TableViewConstants.d.ts +15 -0
  110. package/dist/src/controls/TableView/models/TableViewCol.d.ts +3 -0
  111. package/dist/src/controls/TableView/models/TableViewMenuItem.d.ts +10 -0
  112. package/dist/src/controls/TableView/models/TableViewRow.d.ts +3 -0
  113. package/dist/src/controls/TableView/services/TableViewEventHandler.d.ts +4 -0
  114. package/dist/src/controls/TableView/services/TableViewService.d.ts +134 -0
  115. package/dist/src/controls/TableView/services/impl/TableViewServiceImpl.d.ts +144 -0
  116. package/dist/src/controls/TelerikUploader/TelerikUploader.d.ts +4 -4
  117. package/dist/src/controls/TelerikUploader/models/TelerikUploaderSettings.d.ts +20 -0
  118. package/dist/src/controls/TelerikUploader/services/TelerikUploaderService.d.ts +6 -0
  119. package/dist/src/controls/TelerikUploader/services/impl/TelerikUploaderServiceImpl.d.ts +45 -0
  120. package/dist/src/controls/Tooltip/Tooltip.d.ts +1 -2
  121. package/dist/src/controls/TopLevelMenu/TopLevelMenu.d.ts +3 -3
  122. package/dist/src/controls/TopLevelMenu/models/TopLevelMenuItem.d.ts +7 -0
  123. package/dist/src/controls/TreeView/TreeView.d.ts +7 -5
  124. package/dist/src/controls/TreeView/models/JsTreeViewNode.d.ts +20 -0
  125. package/dist/src/controls/TreeView/services/TreeViewEventHandler.d.ts +4 -0
  126. package/dist/src/controls/TreeView/services/TreeViewService.d.ts +34 -0
  127. package/dist/src/controls/TreeView/services/impl/TreeViewConfigServiceImpl.d.ts +37 -0
  128. package/dist/src/controls/TreeView/services/impl/TreeViewServiceImpl.d.ts +36 -0
  129. package/dist/src/controls/UserLookupPicker/UserLookupPicker.d.ts +2 -3
  130. package/dist/src/controls/ValueTooltip/ValueTooltip.d.ts +8 -0
  131. package/dist/src/controls/ValueTooltip/services/ValueTooltipService.d.ts +5 -0
  132. package/dist/src/controls/VideoViewer/VideoViewer.d.ts +4 -4
  133. package/dist/src/controls/VideoViewer/models/TelerikMediaPlayerSettings.d.ts +13 -0
  134. package/dist/src/controls/VideoViewer/models/Video.d.ts +5 -0
  135. package/dist/src/controls/VideoViewer/services/TelerikMediaPlayerService.d.ts +19 -0
  136. package/dist/src/controls/VideoViewer/services/VideoViewerService.d.ts +4 -0
  137. package/dist/src/controls/VideoViewer/services/impl/TelerikMediaPlayerServiceImpl.d.ts +50 -0
  138. package/dist/src/index.d.ts +35 -64
  139. package/dist/src/models.d.ts +83 -0
  140. package/dist/src/services.d.ts +74 -0
  141. package/package.json +2 -1
  142. package/src/controls/BimViewer/js/bim-viewer.js +2 -2
  143. package/src/controls/DxfViewer/js/dxf-viewer.js +14 -14
  144. package/src/controls/PdfViewer/js/pdf-viewer.js +1 -1
@@ -0,0 +1,5 @@
1
+ export interface Image {
2
+ id: string;
3
+ url: string;
4
+ actionList: any[];
5
+ }
@@ -0,0 +1,5 @@
1
+ import { models } from '../../models';
2
+ export interface ImageViewerService {
3
+ addImage(image: models.Image): void;
4
+ setItemList(itemList: models.Image[]): void;
5
+ }
@@ -1,5 +1,5 @@
1
1
  import React from 'react';
2
- import { InputRef } from './InputRef';
2
+ import { services } from '../../services';
3
3
  export interface InputProps {
4
4
  name?: string;
5
5
  type?: string;
@@ -33,4 +33,4 @@ export interface InputProps {
33
33
  isRichText?: boolean;
34
34
  isRichTextToolbarEnabled?: boolean;
35
35
  }
36
- export declare const Input: React.ForwardRefExoticComponent<InputProps & React.RefAttributes<InputRef>>;
36
+ export declare const Input: React.ForwardRefExoticComponent<InputProps & React.RefAttributes<services.InputService>>;
@@ -0,0 +1,15 @@
1
+ export interface QuillRichEditorSettings {
2
+ modules: any;
3
+ isReadOnly?: boolean;
4
+ isDisabled?: boolean;
5
+ placeholder?: string;
6
+ rows: number;
7
+ minHeight?: number;
8
+ maxHeight?: number;
9
+ height?: number;
10
+ containerClassName: string;
11
+ onFocus: (e?: any) => void;
12
+ onBlur: () => void;
13
+ onChange?: () => void;
14
+ isRichTextToolbarEnabled?: boolean;
15
+ }
@@ -0,0 +1,5 @@
1
+ export interface InputService {
2
+ focus(): void;
3
+ setValue(value: string): void;
4
+ getValue(): string;
5
+ }
@@ -0,0 +1,8 @@
1
+ export interface QuillRichEditorService {
2
+ setText(val: string): void;
3
+ getText(): string;
4
+ enable(): void;
5
+ disable(): void;
6
+ clearHistory(): void;
7
+ setHeight(rows: number, height?: number, minHeight?: number, maxHeight?: number): void;
8
+ }
@@ -0,0 +1,46 @@
1
+ import { services } from '../../../../services';
2
+ import { models } from '../../../../models';
3
+ export declare class QuillRichEditorServiceImpl implements services.QuillRichEditorService {
4
+ readonly name: string;
5
+ private editor;
6
+ private textarea;
7
+ private settings;
8
+ private toolbarContentMaxWidth;
9
+ constructor(textarea: HTMLTextAreaElement, settings: models.QuillRichEditorSettings);
10
+ private initAdaptiveMenu;
11
+ private initBtnMore;
12
+ private bindClickHandler;
13
+ private bindOnClickBtnMore;
14
+ private prepareBtnMoreDropdown;
15
+ private toolbarShow;
16
+ private toolbarHide;
17
+ private bindToolbarResizeHandler;
18
+ private toolbarResizeHandler;
19
+ private setVisibilityToolbarButtons;
20
+ private setVisibilityMoreBtn;
21
+ private getBtnMore;
22
+ private hideMoreBtn;
23
+ private showMoreBtn;
24
+ private hideMoreDropdown;
25
+ private moveToolbarBtnToMoreDropdown;
26
+ private moveToolbarBtnFromMoreDropdown;
27
+ private showToolbarDropDownGrp;
28
+ private hideToolbarDropDownGrp;
29
+ private getBtnCssClass;
30
+ private showToolbarGrp;
31
+ private hideToolbarGrp;
32
+ private getToolbarElm;
33
+ private getToolbarContentMaxWidth;
34
+ private fixPickerPosition;
35
+ private checkPickerPosition;
36
+ private isEditorBlur;
37
+ private getEditorConfig;
38
+ private checkIsValuesEmpty;
39
+ private setCustomIcons;
40
+ setHeight(rows: number, height?: number, minHeight?: number, maxHeight?: number): void;
41
+ enable(): void;
42
+ disable(): void;
43
+ getText(): any;
44
+ setText(val: string): void;
45
+ clearHistory(): void;
46
+ }
@@ -7,7 +7,7 @@ export interface IssueTileProps {
7
7
  userName: string;
8
8
  userImage?: string;
9
9
  date: any;
10
- fileVersion: number;
10
+ fileVersion: string;
11
11
  fileVersionUrl?: string;
12
12
  status: string;
13
13
  statusColor?: string;
@@ -17,10 +17,10 @@ export interface IssueTileProps {
17
17
  value: any;
18
18
  onClick: (e: any, value: string) => any;
19
19
  }[];
20
- onClick: () => any;
21
- onBlur: (e: any) => any;
22
- onShowMoreClick: (e: any, issue?: any) => any;
20
+ onClick?: () => any;
21
+ onBlur?: (e: any) => any;
22
+ onShowMoreClick?: (e: any, issue?: any) => any;
23
23
  isActive?: boolean;
24
- createLocale: (key: string) => any;
24
+ createLocale?: (key: string) => any;
25
25
  }
26
26
  export declare const IssueTile: (props: IssueTileProps) => JSX.Element;
@@ -5,7 +5,7 @@ interface IssueTileHeaderProps {
5
5
  userName: string;
6
6
  userImage?: string;
7
7
  date: any;
8
- fileVersion: number;
8
+ fileVersion: string;
9
9
  fileVersionUrl?: string;
10
10
  actionList?: {
11
11
  key: string;
@@ -1,18 +1,18 @@
1
1
  import React, { FocusEvent } from 'react';
2
- import type { LinkInputRef } from './LinkInputRef';
3
- interface LinkInputProps {
2
+ import { services } from '../../services';
3
+ export interface LinkInputProps {
4
4
  value?: {
5
- url: string;
5
+ uri: string;
6
6
  name?: string;
7
7
  };
8
8
  label?: string;
9
9
  name?: string;
10
10
  onChange?: (value: {
11
- url: string;
11
+ uri: string;
12
12
  name?: string;
13
- }, name?: string) => void;
13
+ } | null, name?: string) => void;
14
14
  onBlur?: (value: {
15
- url: string;
15
+ uri: string;
16
16
  name?: string;
17
17
  }, name?: string) => void;
18
18
  onFocus?: (e: FocusEvent<HTMLInputElement>) => void;
@@ -22,5 +22,4 @@ interface LinkInputProps {
22
22
  errorMessage?: string;
23
23
  className?: string;
24
24
  }
25
- export declare const LinkInput: React.ForwardRefExoticComponent<LinkInputProps & React.RefAttributes<LinkInputRef>>;
26
- export {};
25
+ export declare const LinkInput: React.ForwardRefExoticComponent<LinkInputProps & React.RefAttributes<services.LinkInputService>>;
@@ -0,0 +1,11 @@
1
+ export interface LinkInputService {
2
+ focus(): void;
3
+ setValue(value: {
4
+ uri: string;
5
+ name?: string;
6
+ }): void;
7
+ getValue(): {
8
+ uri: string;
9
+ name?: string;
10
+ };
11
+ }
@@ -1,9 +1,9 @@
1
1
  import React from 'react';
2
2
  import { ButtonProps } from '../Button/Button';
3
- import { LoginFormRef } from './LoginFormRef';
3
+ import { services } from '../../services';
4
4
  interface LoginFormProps {
5
5
  onSubmit: (userName: string, password: string) => void;
6
- onWindowsLogin: () => void;
6
+ onWindowsLogin?: () => void;
7
7
  onResetPassword?: () => void;
8
8
  onSaveData?: (value: boolean, name?: string) => void;
9
9
  onRegister?: () => void;
@@ -11,5 +11,5 @@ interface LoginFormProps {
11
11
  errorMessage?: string;
12
12
  emptyErrorText?: string;
13
13
  }
14
- export declare const LoginForm: React.ForwardRefExoticComponent<LoginFormProps & React.RefAttributes<LoginFormRef>>;
14
+ export declare const LoginForm: React.ForwardRefExoticComponent<LoginFormProps & React.RefAttributes<services.LoginFormService>>;
15
15
  export {};
@@ -1,9 +1,9 @@
1
1
  import React from 'react';
2
- import { FormRef } from './FormRef';
2
+ import { services } from '../../services';
3
3
  interface LoginKerberosFormProps {
4
4
  imageUrl: string;
5
5
  errorMessage?: string;
6
6
  onGoBack: () => void;
7
7
  }
8
- export declare const LoginKerberosForm: React.ForwardRefExoticComponent<LoginKerberosFormProps & React.RefAttributes<FormRef>>;
8
+ export declare const LoginKerberosForm: React.ForwardRefExoticComponent<LoginKerberosFormProps & React.RefAttributes<services.FormService>>;
9
9
  export {};
@@ -1,5 +1,5 @@
1
1
  import React from 'react';
2
- import { TwoFactorAuthenticationFormRef } from './TwoFactorAuthenticationFormRef';
2
+ import { services } from '../../services';
3
3
  interface TwoFactorAuthenticationFormProps {
4
4
  onSubmit: (code: string) => void;
5
5
  onGoBack: () => void;
@@ -13,5 +13,5 @@ interface TwoFactorAuthenticationFormProps {
13
13
  isTotpMode?: boolean;
14
14
  totpApplicationQrCode?: string;
15
15
  }
16
- export declare const TwoFactorAuthenticationForm: React.ForwardRefExoticComponent<TwoFactorAuthenticationFormProps & React.RefAttributes<TwoFactorAuthenticationFormRef>>;
16
+ export declare const TwoFactorAuthenticationForm: React.ForwardRefExoticComponent<TwoFactorAuthenticationFormProps & React.RefAttributes<services.TwoFactorAuthenticationFormService>>;
17
17
  export {};
@@ -0,0 +1,3 @@
1
+ export interface FormService {
2
+ setErrorMessage: (message: string) => void;
3
+ }
@@ -0,0 +1,5 @@
1
+ import { services } from '../../../services';
2
+ export interface LoginFormService extends services.FormService {
3
+ getUserName: () => string;
4
+ getPassword: () => string;
5
+ }
@@ -0,0 +1,4 @@
1
+ export interface TwoFactorAuthenticationFormService {
2
+ setErrorMessage: (message: string) => void;
3
+ getCode: () => string;
4
+ }
@@ -5,6 +5,7 @@ interface SelectedValueListProps {
5
5
  }[];
6
6
  isMultiSelect?: boolean;
7
7
  isReadOnly?: boolean;
8
+ isValueListVisible?: boolean;
8
9
  selectedValueTemplate: (value: any) => any;
9
10
  onOptionValueDelete: (id: string) => any;
10
11
  getHtmlValue?: (item: {
@@ -5,6 +5,7 @@ interface SelectedValueListItemProps {
5
5
  };
6
6
  isMultiSelect?: boolean;
7
7
  isReadOnly?: boolean;
8
+ isValueListVisible?: boolean;
8
9
  selectedValueTemplate: (value: any) => any;
9
10
  onOptionValueDelete: (id: string) => any;
10
11
  getHtmlValue?: (item: {
@@ -2,7 +2,7 @@
2
2
  interface AttachedFileProps {
3
3
  file: any;
4
4
  index: number;
5
- onDelete: (index: number) => any;
5
+ onDelete: (index: number) => void;
6
6
  getFileImage: (name: string) => string;
7
7
  getFileSize: (size: any) => string;
8
8
  }
@@ -1,5 +1,5 @@
1
1
  import React from 'react';
2
- import { MessageInputRef } from './MessageInputRef';
2
+ import { services } from '../../services';
3
3
  interface MessageInputProps {
4
4
  placeholder?: string;
5
5
  isDisabled?: boolean;
@@ -12,5 +12,5 @@ interface MessageInputProps {
12
12
  getFileSize: (size: any) => string;
13
13
  children?: React.ReactNode;
14
14
  }
15
- export declare const MessageInput: React.ForwardRefExoticComponent<MessageInputProps & React.RefAttributes<MessageInputRef>>;
15
+ export declare const MessageInput: React.ForwardRefExoticComponent<MessageInputProps & React.RefAttributes<services.MessageInputService>>;
16
16
  export {};
@@ -0,0 +1,3 @@
1
+ export interface MessageInputService {
2
+ setFileList(fileList: FileList): void;
3
+ }
@@ -1,4 +1,4 @@
1
- import { FunctionComponent } from "react";
1
+ import { FunctionComponent } from 'react';
2
2
  interface MicroFrontendProps {
3
3
  name: string;
4
4
  host: string;
@@ -1,2 +1 @@
1
- import { MicroFrontendState } from './MicroFrontendState';
2
- export declare const renderMicrofrontend: (rendererName: string, microFrontendState: MicroFrontendState, rootElement: HTMLElement, data: any, isReloadOnChange: boolean | undefined, tryCnt: number) => void;
1
+ export declare const renderMicrofrontend: (rendererName: string, microFrontendState: any, rootElement: HTMLElement, data: any, isReloadOnChange: boolean | undefined, tryCnt: number) => void;
@@ -0,0 +1,8 @@
1
+ export interface MicroFrontendService {
2
+ init: boolean;
3
+ name: string | null;
4
+ renderInProgress: boolean;
5
+ unmountAction: Function | null;
6
+ unmount(): void;
7
+ render(rendererName: string, rootElement: HTMLElement, data: any, isReloadOnChange: boolean | undefined, tryCnt: number): void;
8
+ }
@@ -0,0 +1,10 @@
1
+ import { services } from '../../../../services';
2
+ export declare class MicroFrontendServiceImpl implements services.MicroFrontendService {
3
+ init: boolean;
4
+ name: string | null;
5
+ renderInProgress: boolean;
6
+ unmountAction: Function | null;
7
+ constructor();
8
+ unmount(): void;
9
+ render(rendererName: string, rootElement: HTMLElement, data: any, isReloadOnChange: boolean | undefined, tryCnt: number): void;
10
+ }
@@ -1,7 +1,7 @@
1
1
  import React from 'react';
2
- import { OverlayRef } from './OverlayRef';
2
+ import { services } from '../../services';
3
3
  interface OverlayProps {
4
- target?: HTMLElement;
4
+ target?: HTMLElement | null;
5
5
  children: React.ReactNode;
6
6
  isShow?: boolean;
7
7
  isFlip?: boolean;
@@ -11,5 +11,5 @@ interface OverlayProps {
11
11
  className?: string;
12
12
  isShowArrow?: boolean;
13
13
  }
14
- export declare const Overlay: React.ForwardRefExoticComponent<OverlayProps & React.RefAttributes<OverlayRef>>;
14
+ export declare const Overlay: React.ForwardRefExoticComponent<OverlayProps & React.RefAttributes<services.OverlayService>>;
15
15
  export {};
@@ -0,0 +1,5 @@
1
+ /// <reference types="react" />
2
+ export interface OverlayService {
3
+ setTarget(target: HTMLElement | null): void;
4
+ setStyle(style: React.CSSProperties): void;
5
+ }
@@ -1,6 +1,6 @@
1
1
  /// <reference types="react" />
2
- import { PdfViewerContext } from './PdfViewerContext';
2
+ import { services } from '../../services';
3
3
  export interface PdfViewerProps {
4
- context: PdfViewerContext;
4
+ context: services.PdfViewerService;
5
5
  }
6
6
  export declare const PdfViewer: (props: PdfViewerProps) => JSX.Element;
@@ -1,6 +1,6 @@
1
1
  /// <reference types="react" />
2
- import { PdfViewerContext } from './PdfViewerContext';
2
+ import { services } from '../../services';
3
3
  export interface ViewerProps {
4
- context: PdfViewerContext;
4
+ context: services.PdfViewerService;
5
5
  }
6
6
  export declare const Viewer: (props: ViewerProps) => JSX.Element;
@@ -0,0 +1,17 @@
1
+ import { models } from '../../../models';
2
+ export interface PdfViewerService {
3
+ file: any;
4
+ versionId?: string;
5
+ currentVersionId: string;
6
+ openFile(): void;
7
+ fileVersionList: models.FileVersion[];
8
+ createLocale(key: string): any;
9
+ getIssueList(): Promise<any>;
10
+ onCreateIssue(data: any): any;
11
+ toggleIssueDetail(show: boolean): any;
12
+ deleteIssueEvent?: string;
13
+ updateIssueEvent?: string;
14
+ onChangeFileVersion: (version: models.FileVersion) => any;
15
+ currentVersionTooltipText?: string;
16
+ notCurrentVersionTooltipText?: string;
17
+ }
@@ -2,7 +2,7 @@ import React from 'react';
2
2
  interface ScrollBarProps {
3
3
  isHideScrollX?: boolean;
4
4
  isFocusOnScroll?: boolean;
5
- onInit?: (container: any) => any;
5
+ onInit?: (container: any) => void;
6
6
  children: React.ReactNode;
7
7
  className?: string;
8
8
  contentRef?: React.RefObject<HTMLDivElement>;
@@ -0,0 +1,7 @@
1
+ /// <reference types="react" />
2
+ export interface ScrollViewItem {
3
+ component: React.FunctionComponent<any>;
4
+ props: {
5
+ [key: string]: any;
6
+ };
7
+ }
@@ -1,7 +1,5 @@
1
1
  import React from 'react';
2
- import { SearchCriterion } from './SearchCriterion';
3
- import { Condition } from '../Criterion/Condition';
4
- import { Operator } from '../Criterion/Operator';
2
+ import { models } from '../../models';
5
3
  export interface AddFieldComponentRef {
6
4
  addFieldListRef: HTMLDivElement | null;
7
5
  addFieldButtonRef: HTMLButtonElement | null;
@@ -9,17 +7,17 @@ export interface AddFieldComponentRef {
9
7
  interface SearchProps {
10
8
  fieldList: any[];
11
9
  visibleFieldList?: any[];
12
- searchCriterionList?: SearchCriterion[];
13
- onFilterChange?: (searchCriterionList: SearchCriterion[]) => any;
14
- onSearch: (searchCriterionList: SearchCriterion[]) => any;
10
+ searchCriterionList?: models.Criterion[];
11
+ onFilterChange?: (searchCriterionList: models.Criterion[]) => any;
12
+ onSearch: (searchCriterionList: models.Criterion[]) => any;
15
13
  onCancel: () => any;
16
14
  componentMap: {
17
15
  name: string;
18
16
  value: React.FunctionComponent<any>;
19
17
  }[];
20
18
  onAddField?: (selectedFieldIdList: string[]) => any;
21
- operatorList: Operator[];
22
- getConditionList: (componentName: string) => Condition[];
19
+ operatorList: models.Operator[];
20
+ getConditionList: (componentName: string) => models.Condition[];
23
21
  getDefaultCondition?: (componentName: string) => number;
24
22
  isAllFieldsVisible?: boolean;
25
23
  labelCancel: string;
@@ -1,7 +1,7 @@
1
1
  import React from 'react';
2
- import { SearchCriterion } from '../Search/SearchCriterion';
2
+ import { models } from '../../models';
3
3
  interface SearchInputProps {
4
- searchCriterionList?: SearchCriterion[];
4
+ searchCriterionList?: models.Criterion[];
5
5
  value?: string;
6
6
  placeholder?: string;
7
7
  onCancel: () => void;
@@ -10,7 +10,7 @@ interface SearchInputProps {
10
10
  onBlur?: () => void;
11
11
  onFocus?: () => void;
12
12
  onSearchClick?: () => void;
13
- onRemoveValue?: (newItemList: SearchCriterion[]) => void;
13
+ onRemoveValue?: (newItemList: models.Criterion[]) => void;
14
14
  isMobileView?: boolean;
15
15
  isActive?: boolean;
16
16
  className?: string;
@@ -1,10 +1,10 @@
1
1
  /// <reference types="react" />
2
- import { SidebarItem } from './SidebarItem';
2
+ import { models } from '../../models';
3
3
  interface GroupItemProps {
4
4
  id: string;
5
5
  link?: string;
6
6
  text?: string;
7
- itemList: SidebarItem[];
7
+ itemList: models.SidebarItem[];
8
8
  activeItem?: string;
9
9
  setActiveItem: (id: string) => any;
10
10
  currentUrl: string;
@@ -1,8 +1,8 @@
1
1
  import React from 'react';
2
- import { SidebarItem } from './SidebarItem';
2
+ import { models } from '../../models';
3
3
  interface SectionProps {
4
4
  text?: string;
5
- itemList?: SidebarItem[];
5
+ itemList?: models.SidebarItem[];
6
6
  activeItem?: string;
7
7
  setActiveItem: (id: string) => void;
8
8
  currentUrl: string;
@@ -1,7 +1,7 @@
1
1
  import React from 'react';
2
- import { SidebarSection } from './SidebarSection';
2
+ import { models } from '../../models';
3
3
  interface SectionListProps {
4
- itemList: SidebarSection[];
4
+ itemList: models.SidebarSection[];
5
5
  currentUrl: string;
6
6
  activeItem?: string;
7
7
  setActiveItem: (id: string) => any;
@@ -1,13 +1,13 @@
1
1
  /// <reference types="react" />
2
- import { SidebarSection } from './SidebarSection';
3
2
  import { MODE } from './SidebarConstants';
3
+ import { models } from '../../models';
4
4
  interface SidebarProps {
5
- history: any;
5
+ history?: any;
6
6
  theme?: string;
7
7
  sidebar: MODE;
8
- topItemList: SidebarSection[];
9
- bottomItemList?: SidebarSection[];
10
- overflowItemList?: SidebarSection[];
8
+ topItemList: models.SidebarSection[];
9
+ bottomItemList?: models.SidebarSection[];
10
+ overflowItemList?: models.SidebarSection[];
11
11
  logo: string;
12
12
  logoText: string;
13
13
  activeItem?: any;
@@ -0,0 +1,15 @@
1
+ /// <reference types="react" />
2
+ export interface SidebarItem {
3
+ id: string;
4
+ link?: string;
5
+ href?: string;
6
+ text: string;
7
+ imageUrl?: string;
8
+ imageHoverUrl?: string;
9
+ isExternal?: boolean;
10
+ onClick?: React.MouseEventHandler<HTMLAnchorElement>;
11
+ itemList?: SidebarItem[];
12
+ isCustom?: boolean;
13
+ getIsActive: (id: string) => boolean;
14
+ [key: string]: unknown;
15
+ }
@@ -0,0 +1,7 @@
1
+ import { SidebarItem } from './SidebarItem';
2
+ export interface SidebarSection {
3
+ key: string;
4
+ text?: string;
5
+ activeItem?: string;
6
+ itemList: SidebarItem[];
7
+ }
@@ -1,13 +1,13 @@
1
1
  import { MouseEvent } from 'react';
2
- import { SiteItemProps } from './SiteItem';
2
+ import { models } from '../../models';
3
3
  interface SiteSelectProps {
4
- itemList: SiteItemProps[];
5
- rootItem: SiteItemProps;
4
+ itemList: models.SiteSelectItem[];
5
+ rootItem: models.SiteSelectItem;
6
6
  title: string;
7
- activeItem: SiteItemProps;
8
- onChange?: (item: SiteItemProps) => void;
9
- onMouseDown?: (item: SiteItemProps, mouseEvent: MouseEvent) => boolean;
10
- onStarChange?: (item: SiteItemProps) => void;
7
+ activeItem: models.SiteSelectItem;
8
+ onChange?: (item: models.SiteSelectItem) => void;
9
+ onMouseDown?: (item: models.SiteSelectItem, mouseEvent: MouseEvent) => boolean;
10
+ onStarChange?: (item: models.SiteSelectItem) => void;
11
11
  }
12
12
  export declare const SiteSelect: (props: SiteSelectProps) => JSX.Element;
13
13
  export {};
@@ -0,0 +1,15 @@
1
+ import { MouseEvent } from 'react';
2
+ interface SiteSelectItemProps {
3
+ id: string;
4
+ name: string;
5
+ imageUrl?: string;
6
+ isStarActive?: boolean;
7
+ isActive?: boolean;
8
+ isMobileView?: boolean;
9
+ onClick: () => void;
10
+ onMouseDown: (mouseEvent: MouseEvent) => void;
11
+ onStar?: (isStarActive: boolean) => void;
12
+ className?: string;
13
+ }
14
+ export declare const SiteSelectItem: (props: SiteSelectItemProps) => JSX.Element;
15
+ export {};
@@ -0,0 +1,7 @@
1
+ export interface SiteSelectItem {
2
+ id: string;
3
+ name: string;
4
+ imageUrl?: string;
5
+ isStarActive?: boolean;
6
+ isActive?: boolean;
7
+ }
@@ -1,8 +1,8 @@
1
1
  /// <reference types="react" />
2
- import { SystemExceptionDialogData } from './SystemExceptionDialogData';
2
+ import { models } from '../../models';
3
3
  interface SystemExceptionDialogProps {
4
4
  message: string;
5
- onConfirm: (data: SystemExceptionDialogData) => void;
5
+ onConfirm: (data: models.SystemExceptionDialogData) => void;
6
6
  onCancel: () => void;
7
7
  labelConfirm?: string;
8
8
  labelClose?: string;
@@ -0,0 +1,7 @@
1
+ export interface SystemExceptionDialogData {
2
+ comment: string;
3
+ screenshot: boolean;
4
+ detailedErrorText: boolean;
5
+ userName: boolean;
6
+ systemInformation: boolean;
7
+ }
@@ -1,11 +1,11 @@
1
1
  /// <reference types="react" />
2
- import { TabItem } from './TabItem';
2
+ import { models } from '../../models';
3
3
  export interface TabGroupProps {
4
4
  wrap?: boolean;
5
5
  placeholder?: string;
6
6
  onChange?: (index: number) => void;
7
- onGetContent?: (index: number, data: TabItem, content: TabItem['content']) => void;
8
- itemList: TabItem[];
7
+ onGetContent?: (index: number, data: models.Tab, content: models.Tab['content']) => void;
8
+ itemList: models.Tab[];
9
9
  className?: string;
10
10
  isDisabled?: boolean;
11
11
  }