@vitrosoftware/common-ui-ts 1.1.209 → 1.1.211

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 (97) hide show
  1. package/css/std/controls/bim-viewer/bim-viewer-index.css +4 -1
  2. package/css/std/controls/bim-viewer/style.css +4 -0
  3. package/css/std/controls/button/button.css +11 -10
  4. package/css/std/controls/dropdown-button/dropdown-button.css +195 -90
  5. package/css/std/controls/dropdown-button/img/dropdown-arrow-right.svg +3 -0
  6. package/css/std/controls/editable-list/editable-list.css +6 -7
  7. package/css/std/controls/expand-collapse-button/expand-collapse-button.css +4 -0
  8. package/css/std/controls/filter/filter.css +85 -0
  9. package/css/std/controls/image-picker/image-picker.css +0 -7
  10. package/css/std/controls/image-viewer/image-viewer.css +5 -8
  11. package/css/std/controls/pdf-viewer/custom.css +1 -5
  12. package/css/std/controls/pdf-viewer/pdf-viewer-index.css +1 -24
  13. package/css/std/controls/pdf-viewer/pdf-viewer.css +0 -19
  14. package/css/std/controls/search/search-dialog.css +202 -0
  15. package/css/std/controls/search/search.css +1 -185
  16. package/css/std/controls/slide-up-button/slide-up-button.css +78 -0
  17. package/css/std/controls/tab-group/tab-group.css +15 -51
  18. package/css/std/controls/table-view/treegrid-context-menu.css +1 -1
  19. package/css/std/controls/viewer-issue-list/viewer-issue-list.css +49 -0
  20. package/dist/index.css +3444 -3374
  21. package/dist/index.js +10915 -10416
  22. package/dist/index.js.map +1 -1
  23. package/dist/src/constants/Event.d.ts +5 -1
  24. package/dist/src/constants/Factory.d.ts +8 -0
  25. package/dist/src/constants/MoveType.d.ts +5 -0
  26. package/dist/src/controls/ActivityItem/ActivityItem.d.ts +0 -1
  27. package/dist/src/controls/BimViewer/services/BimViewerService.d.ts +10 -1
  28. package/dist/src/controls/CommandMenu/CommandMenu.d.ts +1 -1
  29. package/dist/src/controls/CommandMenu/CommandMenuDropdownButton.d.ts +3 -19
  30. package/dist/src/controls/DropdownButton/Dropdown.d.ts +20 -0
  31. package/dist/src/controls/DropdownButton/DropdownButton.d.ts +16 -13
  32. package/dist/src/controls/DropdownButton/DropdownButtonConstants.d.ts +4 -0
  33. package/dist/src/controls/DropdownButton/DropdownButtonDropdownItem.d.ts +14 -0
  34. package/dist/src/controls/DropdownButton/DropdownButtonItem.d.ts +13 -0
  35. package/dist/src/controls/DropdownButton/DropdownToggleContent.d.ts +11 -0
  36. package/dist/src/controls/DropdownButton/models/DropdownItem.d.ts +3 -4
  37. package/dist/src/controls/DropdownButton/services/DropdownButtonService.d.ts +4 -0
  38. package/dist/src/controls/DxfViewer/services/DxfViewerService.d.ts +10 -1
  39. package/dist/src/controls/ExpandCollapseButton/ExpandCollapseButton.d.ts +1 -0
  40. package/dist/src/controls/ExpandControlGroup/ExpandControlGroup.d.ts +1 -0
  41. package/dist/src/controls/Filter/CriterionFilter.d.ts +26 -0
  42. package/dist/src/controls/Filter/Filter.d.ts +28 -0
  43. package/dist/src/controls/Filter/FilterConstants.d.ts +54 -0
  44. package/dist/src/controls/Filter/Inputs/BaseLookupPicker.d.ts +35 -0
  45. package/dist/src/controls/Filter/Inputs/Checkbox.d.ts +10 -0
  46. package/dist/src/controls/Filter/Inputs/DatePicker.d.ts +8 -0
  47. package/dist/src/controls/Filter/Inputs/Input.d.ts +10 -0
  48. package/dist/src/controls/Filter/Inputs/LookupPicker.d.ts +2 -0
  49. package/dist/src/controls/Filter/Inputs/NumberInput.d.ts +13 -0
  50. package/dist/src/controls/Filter/Inputs/TimePicker.d.ts +8 -0
  51. package/dist/src/controls/Filter/Inputs/UserLookupPicker.d.ts +3 -0
  52. package/dist/src/controls/Filter/SortFilter.d.ts +14 -0
  53. package/dist/src/controls/Filter/models/SortCriterion.d.ts +7 -0
  54. package/dist/src/controls/Filter/models/SortItem.d.ts +4 -0
  55. package/dist/src/controls/MicroFrontend/MicroFrontend.d.ts +1 -0
  56. package/dist/src/controls/PdfViewer/services/PdfViewerService.d.ts +10 -1
  57. package/dist/src/controls/Search/Search.d.ts +11 -24
  58. package/dist/src/controls/Search/SearchConstants.d.ts +12 -0
  59. package/dist/src/controls/Search/SearchDialog.d.ts +23 -0
  60. package/dist/src/controls/SearchInput/SearchInput.d.ts +1 -1
  61. package/dist/src/controls/SlideUpButton/SlideUpButton.d.ts +12 -0
  62. package/dist/src/controls/SlideUpButton/SlideUpButtonDropdownItem.d.ts +13 -0
  63. package/dist/src/controls/SlideUpButton/SlideUpButtonItem.d.ts +11 -0
  64. package/dist/src/controls/ViewerIssueList/ViewerIssueList.d.ts +28 -0
  65. package/dist/src/index.d.ts +12 -3
  66. package/dist/src/models/Action.d.ts +20 -0
  67. package/dist/src/models/ContentType.d.ts +17 -0
  68. package/dist/src/models/ContentTypeView.d.ts +5 -0
  69. package/dist/src/models/Field.d.ts +13 -0
  70. package/dist/src/models/FieldType.d.ts +5 -0
  71. package/dist/src/models/Item.d.ts +22 -0
  72. package/dist/src/models/ItemCopyRequest.d.ts +5 -0
  73. package/dist/src/models/ItemId.d.ts +7 -0
  74. package/dist/src/models/ItemPath.d.ts +5 -0
  75. package/dist/src/models/ItemUpdateRequest.d.ts +8 -0
  76. package/dist/src/models/ListConfig.d.ts +25 -0
  77. package/dist/src/models/Site.d.ts +10 -0
  78. package/dist/src/models/ViewPart.d.ts +7 -0
  79. package/dist/src/models/ViewPartList.d.ts +7 -0
  80. package/dist/src/models.d.ts +3 -0
  81. package/dist/src/services/ColumnService.d.ts +9 -0
  82. package/dist/src/services/ContentTypeService.d.ts +8 -0
  83. package/dist/src/services/EventHandlerService.d.ts +4 -0
  84. package/dist/src/services/EventService.d.ts +6 -0
  85. package/dist/src/services/GuidService.d.ts +3 -0
  86. package/dist/src/services/ImageService.d.ts +7 -0
  87. package/dist/src/services/ItemSelectDialogService.d.ts +12 -0
  88. package/dist/src/services/ItemService.d.ts +24 -0
  89. package/dist/src/services/LookupListItemService.d.ts +9 -0
  90. package/dist/src/services.d.ts +3 -0
  91. package/package.json +1 -1
  92. package/src/controls/BimViewer/js/bim-viewer.js +50 -7
  93. package/src/controls/DxfViewer/js/dxf-viewer.js +78 -21
  94. package/src/controls/PdfViewer/js/pdf-viewer.js +141 -28
  95. package/css/std/controls/command-menu/img/collapse-up.svg +0 -3
  96. package/css/std/controls/command-menu/img/dropdown-menu-arrow.svg +0 -1
  97. /package/css/std/controls/{command-menu → dropdown-button}/img/collapse-bottom.svg +0 -0
@@ -17,5 +17,9 @@ export declare enum EVENT {
17
17
  TOUCHEND = "touchend",
18
18
  TOUCHMOVE = "touchmove",
19
19
  MOUSEENTER = "mouseenter",
20
- MOUSELEAVE = "mouseleave"
20
+ MOUSELEAVE = "mouseleave",
21
+ VIEW_CHANGED = "vitro.view.changed",
22
+ SEARCH = "vitro.search",
23
+ ISSUE_LIST_REFRESH = "vitro.issue.list.refresh",
24
+ ISSUE_LIST_SELECT_ITEM = "vitro.issue.list.select.item"
21
25
  }
@@ -1,4 +1,12 @@
1
1
  export declare class SERVICE {
2
2
  static readonly LOCALE = "LocaleService";
3
3
  static readonly LOCAL_STORAGE = "LocalStorageService";
4
+ static readonly COLUMN = "ColumnService";
5
+ static readonly GUID = "GuidService";
6
+ static readonly EVENT = "EventService";
7
+ static readonly IMAGE = "ImageService";
8
+ static readonly ITEM = "ItemService";
9
+ static readonly CONTENT_TYPE = "ContentTypeService";
10
+ static readonly LOOKUP_LIST_ITEM = "LookupListItemService";
11
+ static readonly ITEM_SELECT_DIALOG = "ItemSelectDialogService";
4
12
  }
@@ -0,0 +1,5 @@
1
+ export declare class MOVE_TYPE {
2
+ static readonly BEFORE = 1;
3
+ static readonly TO_THE_END_OF_CHILDREN = 2;
4
+ static readonly AFTER = 3;
5
+ }
@@ -8,7 +8,6 @@ export interface ActivityItemProps {
8
8
  date?: any;
9
9
  variant?: string;
10
10
  dropdownItemList?: models.DropdownItem[];
11
- onDropdownToggle?: (state: any, e: any) => any;
12
11
  isActive?: boolean;
13
12
  isShowDetail?: boolean;
14
13
  children?: React.ReactNode;
@@ -1,4 +1,6 @@
1
1
  import { models } from '../../../models';
2
+ import type { Field } from '../../../models/Field';
3
+ import type { ListConfig } from '../../../models/ListConfig';
2
4
  export interface BimViewerService {
3
5
  file: any;
4
6
  versionId?: string;
@@ -6,7 +8,7 @@ export interface BimViewerService {
6
8
  fileVersionList: models.FileVersion[];
7
9
  onCreateIssue(itemId: string, data: any): any;
8
10
  createLocale(key: string): any;
9
- getIssueList(): Promise<any>;
11
+ getIssueList(criterionList: models.Criterion[]): Promise<any>;
10
12
  getFilePath: (itemId: string, version?: string) => string;
11
13
  deleteIssueEvent?: string;
12
14
  updateIssueEvent?: string;
@@ -16,4 +18,11 @@ export interface BimViewerService {
16
18
  currentVersionTooltipText?: string;
17
19
  notCurrentVersionTooltipText?: string;
18
20
  showItemSelectDialog: () => Promise<string[]>;
21
+ listConfig: ListConfig;
22
+ searchId: string;
23
+ parentId: string;
24
+ fieldList: Field[];
25
+ searchCriterionList?: models.Criterion[];
26
+ isMobileView?: boolean;
27
+ container: any;
19
28
  }
@@ -2,5 +2,5 @@ import React from 'react';
2
2
  interface CommandMenuProps {
3
3
  children: React.ReactNode;
4
4
  }
5
- export declare const CommandMenu: (props: CommandMenuProps) => JSX.Element;
5
+ export declare const CommandMenu: React.ForwardRefExoticComponent<CommandMenuProps & React.RefAttributes<HTMLElement>>;
6
6
  export {};
@@ -1,19 +1,3 @@
1
- import React from 'react';
2
- interface CommandMenuDropdownButtonProps {
3
- itemList?: {
4
- text: string;
5
- onClick: (e: any) => any;
6
- imageUrl?: string;
7
- }[];
8
- toggle?: boolean;
9
- children: React.ReactNode;
10
- text: string;
11
- isVisibleFunction?: boolean;
12
- isHideChevronDown?: boolean;
13
- imageUrl?: string;
14
- imageHoverUrl?: string;
15
- className?: string;
16
- onClick?: (e: any) => any;
17
- }
18
- export declare const CommandMenuDropdownButton: (props: CommandMenuDropdownButtonProps) => JSX.Element;
19
- export {};
1
+ /// <reference types="react" />
2
+ import { DropdownButtonProps } from '../DropdownButton/DropdownButton';
3
+ export declare const CommandMenuDropdownButton: (props: DropdownButtonProps) => JSX.Element;
@@ -0,0 +1,20 @@
1
+ import React from 'react';
2
+ import { services } from '../../services';
3
+ interface DropdownProps {
4
+ placement?: string;
5
+ isNav?: boolean;
6
+ isInNavbar?: boolean;
7
+ isRight?: boolean;
8
+ isExpandOnHover?: boolean;
9
+ button: React.ReactNode;
10
+ children: React.ReactNode;
11
+ className?: string;
12
+ menuClassName?: string;
13
+ menuContainer?: any;
14
+ toggleClassName?: string;
15
+ isParentScrollBarActive?: boolean;
16
+ onGetMenuRef?: (element: HTMLDivElement) => void;
17
+ onClick?: (e: React.MouseEvent) => void;
18
+ }
19
+ export declare const Dropdown: React.ForwardRefExoticComponent<DropdownProps & React.RefAttributes<services.DropdownButtonService>>;
20
+ export {};
@@ -1,19 +1,22 @@
1
1
  import React from 'react';
2
2
  import { models } from '../../models';
3
- interface DropdownButtonProps {
4
- itemList: models.DropdownItem[];
5
- title?: string | React.ReactNode;
6
- isIgnoreOverflow?: boolean;
7
- isFlip?: boolean;
8
- isShow?: boolean;
9
- isRenderOnMount?: boolean;
10
- onToggle?: (state: any, e: any) => any;
11
- className?: string;
12
- menuStyle?: any;
3
+ import { services } from '../../services';
4
+ export interface DropdownButtonProps {
5
+ itemList?: models.DropdownItem[];
6
+ isToggle?: boolean;
7
+ children?: React.ReactNode;
8
+ text?: string;
9
+ isVisibleFunction?: boolean;
10
+ isNav?: boolean;
11
+ isInNavbar?: boolean;
13
12
  imageUrl?: string;
14
13
  imageHoverUrl?: string;
15
- popperConfig?: any;
14
+ className?: string;
15
+ menuClassName?: string;
16
+ containerClassName?: string;
17
+ menuContainer?: any;
18
+ placement?: string;
16
19
  onGetMenuRef?: (element: HTMLDivElement) => void;
20
+ onClick?: (e?: React.MouseEvent, isExpanded?: boolean) => void;
17
21
  }
18
- export declare const DropdownButton: (props: DropdownButtonProps) => JSX.Element;
19
- export {};
22
+ export declare const DropdownButton: React.ForwardRefExoticComponent<DropdownButtonProps & React.RefAttributes<services.DropdownButtonService>>;
@@ -0,0 +1,4 @@
1
+ export declare enum STYLE {
2
+ ADDON = "vitro-addon-button",
3
+ CONTEXT = "vitro-context-button"
4
+ }
@@ -0,0 +1,14 @@
1
+ import React from 'react';
2
+ import { models } from '../../models';
3
+ interface DropdownButtonDropdownItemProps {
4
+ itemList?: models.DropdownItem[];
5
+ text: string;
6
+ imageUrl?: string;
7
+ imageHoverUrl?: string;
8
+ isToggle?: boolean;
9
+ isVisibleFunction?: boolean;
10
+ className?: string;
11
+ children?: React.ReactNode;
12
+ }
13
+ export declare const DropdownButtonDropdownItem: (props: DropdownButtonDropdownItemProps) => JSX.Element;
14
+ export {};
@@ -0,0 +1,13 @@
1
+ import React from 'react';
2
+ interface DropdownButtonItemProps {
3
+ text: string;
4
+ onClick?: (value: any, e?: React.MouseEvent) => void;
5
+ href?: string;
6
+ imageUrl?: string;
7
+ imageHoverUrl?: string;
8
+ isShowSeparator?: boolean;
9
+ isShowImage?: boolean;
10
+ isToggle?: boolean;
11
+ }
12
+ export declare const DropdownButtonItem: (props: DropdownButtonItemProps) => JSX.Element;
13
+ export {};
@@ -0,0 +1,11 @@
1
+ /// <reference types="react" />
2
+ interface DropdownToggleContentProps {
3
+ text?: string;
4
+ isVisibleFunction?: boolean;
5
+ imageUrl?: string;
6
+ imageHoverUrl?: string;
7
+ setIsRight: (isRight: boolean) => void;
8
+ className?: string;
9
+ }
10
+ export declare const DropdownToggleContent: (props: DropdownToggleContentProps) => JSX.Element;
11
+ export {};
@@ -1,11 +1,10 @@
1
1
  export interface DropdownItem {
2
2
  key: string;
3
- actionCode?: string;
4
3
  text: string;
5
- value: any;
4
+ value?: any;
6
5
  onClick: (value: any, e?: any) => any;
7
6
  imageUrl?: string;
8
7
  imageHoverUrl?: string;
9
- isConfirm?: boolean;
10
- isOverflow?: boolean;
8
+ isShowSeparator?: boolean;
9
+ itemList?: DropdownItem[];
11
10
  }
@@ -0,0 +1,4 @@
1
+ export interface DropdownButtonService {
2
+ click(): void;
3
+ toggle(): void;
4
+ }
@@ -1,4 +1,6 @@
1
1
  import { models } from '../../../models';
2
+ import type { Field } from '../../../models/Field';
3
+ import type { ListConfig } from '../../../models/ListConfig';
2
4
  export interface DxfViewerService {
3
5
  file: any;
4
6
  versionId?: string;
@@ -8,7 +10,7 @@ export interface DxfViewerService {
8
10
  fileVersionList: models.FileVersion[];
9
11
  createLocale(key: string): any;
10
12
  selectIssue?: (id: string) => void;
11
- getIssueList(): Promise<any>;
13
+ getIssueList(criterionList: models.Criterion[]): Promise<any>;
12
14
  onCreateIssue(data: any): any;
13
15
  toggleIssueDetail?: (show: boolean) => void;
14
16
  zoomToAnnotation?: (id: string) => void;
@@ -28,4 +30,11 @@ export interface DxfViewerService {
28
30
  fileName: string;
29
31
  fileImageUrl: string;
30
32
  scaleAutoLabel: string;
33
+ listConfig: ListConfig;
34
+ searchId: string;
35
+ parentId: string;
36
+ fieldList: Field[];
37
+ searchCriterionList?: models.Criterion[];
38
+ isMobileView?: boolean;
39
+ container: any;
31
40
  }
@@ -7,6 +7,7 @@ interface ExpandCollapseButtonProps {
7
7
  collapseText?: string;
8
8
  isExpanded?: boolean;
9
9
  className?: string;
10
+ children?: React.ReactNode;
10
11
  }
11
12
  export declare const ExpandCollapseButton: (props: ExpandCollapseButtonProps) => JSX.Element;
12
13
  export {};
@@ -9,6 +9,7 @@ interface ExpandControlGroupProps {
9
9
  onClick?: (isExpanded: boolean) => any;
10
10
  className?: string;
11
11
  buttonClassName?: string;
12
+ buttonContent?: React.ReactNode;
12
13
  children: React.ReactNode;
13
14
  }
14
15
  export declare const ExpandControlGroup: (props: ExpandControlGroupProps) => JSX.Element;
@@ -0,0 +1,26 @@
1
+ /// <reference types="react" />
2
+ import { models } from '../../models';
3
+ import { Field } from '../../models/Field';
4
+ import type { ListConfig } from '../../models/ListConfig';
5
+ export interface AddFieldComponentRef {
6
+ addFieldListRef: HTMLDivElement | null;
7
+ addFieldButtonRef: HTMLButtonElement | null;
8
+ }
9
+ interface CriterionFilterProps {
10
+ id?: string;
11
+ listConfig: ListConfig;
12
+ criterionFilter: models.Criterion[];
13
+ onChange?: (criterionFilter: models.Criterion[]) => void;
14
+ className?: string;
15
+ labelAddField: string;
16
+ isMobileView?: boolean;
17
+ fieldList: Field[];
18
+ visibleFieldList?: Field[];
19
+ isAllFieldsVisible?: boolean;
20
+ isSearch?: boolean;
21
+ feature?: {
22
+ id: string;
23
+ }[];
24
+ }
25
+ export declare const CriterionFilter: (props: CriterionFilterProps) => JSX.Element;
26
+ export {};
@@ -0,0 +1,28 @@
1
+ /// <reference types="react" />
2
+ import { models } from '../../models';
3
+ import type { ListConfig } from '../../models/ListConfig';
4
+ import type { Field } from '../../models/Field';
5
+ import { SortItem } from './models/SortItem';
6
+ interface FilterProps {
7
+ id?: string;
8
+ listConfig: ListConfig;
9
+ settings: {
10
+ criterionFilter: models.Criterion[];
11
+ sortFilter: SortItem[];
12
+ };
13
+ onChange: (filter: {
14
+ criterionFilter: models.Criterion[];
15
+ sortFilter: SortItem[];
16
+ }) => void;
17
+ isMobileView?: boolean;
18
+ isSortFilterVisible?: boolean;
19
+ fieldList: Field[];
20
+ visibleFieldList?: Field[];
21
+ isScrollEnabled?: boolean;
22
+ isSearch?: boolean;
23
+ feature?: {
24
+ id: string;
25
+ }[];
26
+ }
27
+ export declare const Filter: (props: FilterProps) => JSX.Element;
28
+ export {};
@@ -0,0 +1,54 @@
1
+ export declare enum ACTION {
2
+ ADD_FIELD = "field.add",
3
+ SEARCH = "search"
4
+ }
5
+ export declare enum FIELD {
6
+ NAME = "name",
7
+ PARENT_ID = "parent_id",
8
+ COLOR = "color",
9
+ IMAGE = "image",
10
+ SEQUENCE = "sequence"
11
+ }
12
+ export declare enum LOCALE {
13
+ COMMON_ACTION = "app.common.action",
14
+ SORT = "app.views.viewDialog.filterSort.sort",
15
+ SORT_FIELD = "app.views.viewDialog.filterSort.sortField",
16
+ ASC = "asc",
17
+ DESC = "desc",
18
+ SORT_DIRECTION = "app.common.sortDirection",
19
+ FILTER = "app.views.viewDialog.filterSort.filter",
20
+ OPERATOR = "app.common.operator",
21
+ OR = "or",
22
+ AND = "and",
23
+ FILTER_TYPE = "app.common.filterType",
24
+ EQUAL = "equal",
25
+ NOT_EQUAL = "notEqual",
26
+ LESS_THAN = "lessThan",
27
+ LESS_THAN_OR_EQUAL = "lessThanOrEqual",
28
+ GREATER_THAN = "greaterThan",
29
+ GREATER_THAN_OR_EQUAL = "greaterThanOrEqual",
30
+ BEGINS_WITH = "beginsWidth",
31
+ DOES_NOT_BEGIN_WITH = "doesNotBeginWidth",
32
+ ENDS_WITH = "endsWidth",
33
+ DOES_NOT_END_WITH = "doesNotEndWidth",
34
+ CONTAINS = "contains",
35
+ DOES_NOT_CONTAIN = "doesNotContain"
36
+ }
37
+ export declare enum SORT_DIRECTION {
38
+ ASC = 0,
39
+ DESC = 1
40
+ }
41
+ export declare namespace URL {
42
+ namespace API {
43
+ class ENDPOINT {
44
+ static readonly FILE = "/api/file";
45
+ }
46
+ class ACTION {
47
+ static readonly GET = "get";
48
+ }
49
+ }
50
+ }
51
+ export declare enum COMPONENT {
52
+ CONTENT_TYPE_LOOKUP_PICKER = "ContentTypeLookupPicker",
53
+ SYSTEM_USER_LOOKUP_PICKER = "SystemUserLookupPicker"
54
+ }
@@ -0,0 +1,35 @@
1
+ import { ForwardRefExoticComponent } from 'react';
2
+ import { models } from '../../../models';
3
+ import { UserLookupPickerProps } from '../../UserLookupPicker/UserLookupPicker';
4
+ import { Item } from '../../../models/Item';
5
+ export interface BaseLookupPickerProps {
6
+ data?: {
7
+ [key: string]: unknown;
8
+ };
9
+ label?: string;
10
+ id: string;
11
+ name?: string;
12
+ value?: models.Criterion;
13
+ valueList?: {
14
+ id: string;
15
+ }[];
16
+ onChange: (value: unknown, name?: string) => void;
17
+ getHtmlValueTemplateProps?: (item: {
18
+ id: string;
19
+ }) => unknown;
20
+ content?: ForwardRefExoticComponent<UserLookupPickerProps>;
21
+ isReadOnly?: boolean;
22
+ isDisabled?: boolean;
23
+ isRequired?: boolean;
24
+ isFlipDropdown?: boolean;
25
+ errorMessage?: string;
26
+ className?: string;
27
+ filterValueTemplate?: (value: Item) => unknown;
28
+ selectedValueTemplate?: (value: Item) => unknown;
29
+ filterMinLength?: number;
30
+ onBlur?: () => void;
31
+ onFocus?: () => void;
32
+ isMultiSelect: boolean;
33
+ placeholder?: string;
34
+ }
35
+ export declare const BaseLookupPicker: (props: BaseLookupPickerProps) => JSX.Element | null;
@@ -0,0 +1,10 @@
1
+ /// <reference types="react" />
2
+ interface CheckboxProps {
3
+ value?: {
4
+ valueList: boolean[];
5
+ };
6
+ label?: string;
7
+ name?: string;
8
+ }
9
+ export declare const Checkbox: (props: CheckboxProps) => JSX.Element;
10
+ export {};
@@ -0,0 +1,8 @@
1
+ /// <reference types="react" />
2
+ interface DatePickerProps {
3
+ value?: {
4
+ valueList: string[];
5
+ };
6
+ }
7
+ export declare const DatePicker: (props: DatePickerProps) => JSX.Element;
8
+ export {};
@@ -0,0 +1,10 @@
1
+ /// <reference types="react" />
2
+ interface InputProps {
3
+ value?: {
4
+ valueList: string[];
5
+ };
6
+ onChange?: (value: string, name: string) => void;
7
+ onBlur?: (e: any) => void;
8
+ }
9
+ export declare const Input: (props: InputProps) => JSX.Element;
10
+ export {};
@@ -0,0 +1,2 @@
1
+ /// <reference types="react" />
2
+ export declare const LookupPicker: (props: any) => JSX.Element;
@@ -0,0 +1,13 @@
1
+ import React from 'react';
2
+ import { models } from '../../../models';
3
+ import { Field } from '../../../models/Field';
4
+ interface NumberInputProps {
5
+ field?: Field;
6
+ value?: models.Criterion;
7
+ isReadOnly?: boolean;
8
+ isDisabled?: boolean;
9
+ onChange: (value: number | null, name: string) => void;
10
+ onBlur: (e: any) => void;
11
+ }
12
+ export declare const NumberInput: React.ForwardRefExoticComponent<NumberInputProps & React.RefAttributes<unknown>>;
13
+ export {};
@@ -0,0 +1,8 @@
1
+ /// <reference types="react" />
2
+ interface TimePickerProps {
3
+ value?: {
4
+ valueList: string[];
5
+ };
6
+ }
7
+ export declare const TimePicker: (props: TimePickerProps) => JSX.Element;
8
+ export {};
@@ -0,0 +1,3 @@
1
+ /// <reference types="react" />
2
+ import { BaseLookupPickerProps } from './BaseLookupPicker';
3
+ export declare const UserLookupPicker: (props: BaseLookupPickerProps) => JSX.Element | null;
@@ -0,0 +1,14 @@
1
+ /// <reference types="react" />
2
+ import { SortItem } from './models/SortItem';
3
+ import { Field } from '../../models/Field';
4
+ interface SortFilterProps {
5
+ sortFilter: SortItem[];
6
+ onChange?: (sortList: SortItem[]) => void;
7
+ className?: string;
8
+ labelAddField: string;
9
+ isMobileView?: boolean;
10
+ fieldList: Field[];
11
+ isAllFieldsVisible?: boolean;
12
+ }
13
+ export declare const SortFilter: (props: SortFilterProps) => JSX.Element;
14
+ export {};
@@ -0,0 +1,7 @@
1
+ export interface SortCriterion {
2
+ internalName: string;
3
+ name?: string;
4
+ valueList: any[];
5
+ condition: number;
6
+ key?: string;
7
+ }
@@ -0,0 +1,4 @@
1
+ export interface SortItem {
2
+ internalName: string;
3
+ isDescending: boolean;
4
+ }
@@ -5,6 +5,7 @@ interface MicroFrontendProps {
5
5
  data: any;
6
6
  isReloadOnChange?: boolean;
7
7
  isDockFill?: boolean;
8
+ className?: string;
8
9
  }
9
10
  export declare const MicroFrontend: FunctionComponent<MicroFrontendProps>;
10
11
  export {};
@@ -1,4 +1,6 @@
1
1
  import { models } from '../../../models';
2
+ import type { Field } from '../../../models/Field';
3
+ import type { ListConfig } from '../../../models/ListConfig';
2
4
  export interface PdfViewerService {
3
5
  file: any;
4
6
  versionId?: string;
@@ -6,7 +8,7 @@ export interface PdfViewerService {
6
8
  openFile(): void;
7
9
  fileVersionList: models.FileVersion[];
8
10
  createLocale(key: string): any;
9
- getIssueList(): Promise<any>;
11
+ getIssueList(criterionList: models.Criterion[]): Promise<any>;
10
12
  onCreateIssue(data: any): any;
11
13
  toggleIssueDetail(show: boolean): any;
12
14
  deleteIssueEvent?: string;
@@ -14,4 +16,11 @@ export interface PdfViewerService {
14
16
  onChangeFileVersion: (version: models.FileVersion) => any;
15
17
  currentVersionTooltipText?: string;
16
18
  notCurrentVersionTooltipText?: string;
19
+ listConfig: ListConfig;
20
+ searchId: string;
21
+ parentId: string;
22
+ fieldList: Field[];
23
+ searchCriterionList?: models.Criterion[];
24
+ isMobileView?: boolean;
25
+ container: any;
17
26
  }
@@ -1,33 +1,20 @@
1
- import React from 'react';
1
+ /// <reference types="react" />
2
2
  import { models } from '../../models';
3
- export interface AddFieldComponentRef {
4
- addFieldListRef: HTMLDivElement | null;
5
- addFieldButtonRef: HTMLButtonElement | null;
6
- }
3
+ import type { ListConfig } from '../../models/ListConfig';
4
+ import type { Field } from '../../models/Field';
7
5
  interface SearchProps {
8
- fieldList: any[];
9
- visibleFieldList?: any[];
6
+ id: string;
7
+ destination?: string;
8
+ parentId?: string | null;
9
+ listConfig: ListConfig;
10
+ fieldList: Field[];
10
11
  searchCriterionList?: models.Criterion[];
11
- onFilterChange?: (searchCriterionList: models.Criterion[]) => any;
12
- onSearch: (searchCriterionList: models.Criterion[]) => any;
13
- onCancel: () => any;
14
- componentMap: {
15
- name: string;
16
- value: React.FunctionComponent<any>;
17
- }[];
18
- onAddField?: (selectedFieldIdList: string[]) => any;
19
- operatorList: models.Operator[];
20
- getConditionList: (componentName: string) => models.Condition[];
21
- getDefaultCondition?: (componentName: string) => number;
22
- isAllFieldsVisible?: boolean;
23
- labelCancel: string;
24
- labelSearch: string;
25
- labelAddField: string;
26
- defaultSearchFieldName: string;
27
- inputPlaceholder?: string;
28
12
  maxFieldCount?: number;
29
13
  isMobileView?: boolean;
30
14
  isMinifiedInput?: boolean;
15
+ feature?: {
16
+ id: string;
17
+ }[];
31
18
  }
32
19
  export declare const Search: (props: SearchProps) => JSX.Element;
33
20
  export {};
@@ -0,0 +1,12 @@
1
+ export declare enum ACTION {
2
+ CANCEL = "cancel",
3
+ SEARCH = "search"
4
+ }
5
+ export declare enum FIELD {
6
+ NAME = "name",
7
+ PARENT_ID = "parent_id"
8
+ }
9
+ export declare enum LOCALE {
10
+ SEARCH_INPUT_PLACEHOLDER = "app.common.search.inputPlaceholder",
11
+ COMMON_ACTION = "app.common.action"
12
+ }
@@ -0,0 +1,23 @@
1
+ import React from 'react';
2
+ import { models } from '../../models';
3
+ import type { ListConfig } from '../../models/ListConfig';
4
+ import type { Field } from '../../models/Field';
5
+ interface SearchDialogProps {
6
+ id: string;
7
+ listConfig: ListConfig;
8
+ fieldList: Field[];
9
+ visibleFieldList?: Field[];
10
+ isShowDialog: boolean;
11
+ isMobileView?: boolean;
12
+ onSearch: (value?: string, criterionList?: models.Criterion[]) => any;
13
+ onCancel: () => void;
14
+ feature?: {
15
+ id: string;
16
+ }[];
17
+ selectedSearchCriterionList: models.Criterion[];
18
+ title?: string;
19
+ setSearchCriterionList: (searchCriterionList: models.Criterion[]) => void;
20
+ searchRef: React.RefObject<HTMLDivElement>;
21
+ }
22
+ export declare const SearchDialog: (props: SearchDialogProps) => JSX.Element;
23
+ export {};
@@ -16,5 +16,5 @@ interface SearchInputProps {
16
16
  className?: string;
17
17
  children?: React.ReactNode;
18
18
  }
19
- export declare const SearchInput: (props: SearchInputProps) => JSX.Element;
19
+ export declare const SearchInput: React.ForwardRefExoticComponent<SearchInputProps & React.RefAttributes<HTMLInputElement>>;
20
20
  export {};