@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
@@ -0,0 +1,12 @@
1
+ import React from 'react';
2
+ import { models } from '../../models';
3
+ export interface SlideUpButtonProps {
4
+ itemList?: models.DropdownItem[];
5
+ children?: React.ReactNode;
6
+ text?: string;
7
+ imageUrl?: string;
8
+ imageHoverUrl?: string;
9
+ className?: string;
10
+ onClick?: (e?: React.MouseEvent) => void;
11
+ }
12
+ export declare const SlideUpButton: (props: SlideUpButtonProps) => JSX.Element;
@@ -0,0 +1,13 @@
1
+ import React from 'react';
2
+ import { models } from '../../models';
3
+ interface SlideUpButtonDropdownItemProps {
4
+ itemList?: models.DropdownItem[];
5
+ text: string;
6
+ imageUrl?: string;
7
+ imageHoverUrl?: string;
8
+ isShowImage?: boolean;
9
+ className?: string;
10
+ children?: React.ReactNode;
11
+ }
12
+ export declare const SlideUpButtonDropdownItem: (props: SlideUpButtonDropdownItemProps) => JSX.Element;
13
+ export {};
@@ -0,0 +1,11 @@
1
+ import React from 'react';
2
+ interface SlideUpButtonItemProps {
3
+ text: string;
4
+ onClick?: (value: any, e?: React.MouseEvent) => void;
5
+ href?: string;
6
+ imageUrl?: string;
7
+ imageHoverUrl?: string;
8
+ isShowImage?: boolean;
9
+ }
10
+ export declare const SlideUpButtonItem: (props: SlideUpButtonItemProps) => JSX.Element;
11
+ 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
+ interface ViewerIssueListProps {
6
+ id: string;
7
+ destination?: string;
8
+ parentId?: string | null;
9
+ listConfig: ListConfig;
10
+ fieldList: Field[];
11
+ searchCriterionList?: models.Criterion[];
12
+ maxFieldCount?: number;
13
+ isMobileView?: boolean;
14
+ isMinifiedInput?: boolean;
15
+ feature?: {
16
+ id: string;
17
+ }[];
18
+ extSearchFieldList?: {
19
+ internalName: string;
20
+ filter?: string;
21
+ }[];
22
+ getIssueList: (searchCriterionList: models.Criterion[]) => Promise<any>;
23
+ onIssueTileClick: (issue: any, context?: any) => any;
24
+ onShowMoreClick?: (issue: any, context?: any) => any;
25
+ context?: any;
26
+ }
27
+ export declare const ViewerIssueList: (props: ViewerIssueListProps) => JSX.Element;
28
+ export {};
@@ -41,7 +41,6 @@ import { CommandMenu } from './controls/CommandMenu/CommandMenu';
41
41
  import { CommandMenuButton } from './controls/CommandMenu/CommandMenuButton';
42
42
  import { CommandMenuLookupPicker } from './controls/CommandMenu/CommandMenuLookupPicker';
43
43
  import { CommandMenuDropdownButton } from './controls/CommandMenu/CommandMenuDropdownButton';
44
- import { CommandMenuSubItem } from './controls/CommandMenu/CommandMenuSubItem';
45
44
  import { Sidebar } from './controls/Sidebar/Sidebar';
46
45
  import * as SIDEBAR from './controls/Sidebar/SidebarConstants';
47
46
  import { TaskTile } from './controls/TaskTile/TaskTile';
@@ -56,6 +55,9 @@ import { UserLookupPicker, UserLookupPickerProps } from './controls/UserLookupPi
56
55
  import { Checkbox, CheckboxProps } from './controls/Checkbox/Checkbox';
57
56
  import { IssueTile, IssueTileProps } from './controls/IssueTile/IssueTile';
58
57
  import { DropdownButton } from './controls/DropdownButton/DropdownButton';
58
+ import { DropdownButtonItem } from './controls/DropdownButton/DropdownButtonItem';
59
+ import { DropdownButtonDropdownItem } from './controls/DropdownButton/DropdownButtonDropdownItem';
60
+ import * as DROPDOWN_BUTTON from './controls/DropdownButton/DropdownButtonConstants';
59
61
  import { Activity } from './controls/Activity/Activity';
60
62
  import { ActivityItem, ActivityItemProps } from './controls/ActivityItem/ActivityItem';
61
63
  import { ActivityMessage } from './controls/ActivityItem/ActivityMessage';
@@ -143,6 +145,11 @@ import { FieldValueList } from './controls/FieldValueList/FieldValueList';
143
145
  import { SharedItemLinkForm } from './controls/SharedItemLinkForm/SharedItemLinkForm';
144
146
  import { DeleteButton } from './controls/DeleteButton/DeleteButton';
145
147
  import { Placeholder } from './controls/Placeholder/Placeholder';
148
+ import { Filter } from './controls/Filter/Filter';
149
+ import { LookupPicker as FilterLookupPicker } from './controls/Filter/Inputs/LookupPicker';
150
+ import { SlideUpButton } from './controls/SlideUpButton/SlideUpButton';
151
+ import { SlideUpButtonDropdownItem } from './controls/SlideUpButton/SlideUpButtonDropdownItem';
152
+ import { SlideUpButtonItem } from './controls/SlideUpButton/SlideUpButtonItem';
146
153
  export { Breadcrumbs };
147
154
  export { TopLevelMenu };
148
155
  export { TreeView, TREE_VIEW, TreeViewProps };
@@ -164,7 +171,7 @@ export { TimePicker };
164
171
  export { Button, ButtonProps, BUTTON };
165
172
  export { Label };
166
173
  export { LookupPicker, LookupPickerProps };
167
- export { CommandMenu, CommandMenuButton, CommandMenuLookupPicker, CommandMenuDropdownButton, CommandMenuSubItem };
174
+ export { CommandMenu, CommandMenuButton, CommandMenuLookupPicker, CommandMenuDropdownButton };
168
175
  export { Sidebar, SIDEBAR };
169
176
  export { TaskTile };
170
177
  export { Alert, ALERT };
@@ -174,7 +181,7 @@ export { UserProfile };
174
181
  export { UserLookupPicker, UserLookupPickerProps };
175
182
  export { Checkbox, CheckboxProps };
176
183
  export { IssueTile, IssueTileProps };
177
- export { DropdownButton };
184
+ export { DropdownButton, DropdownButtonItem, DropdownButtonDropdownItem, DROPDOWN_BUTTON };
178
185
  export { Activity };
179
186
  export { ActivityItem, ActivityItemProps, ActivityMessage };
180
187
  export { Image };
@@ -253,3 +260,5 @@ export { FieldValueList };
253
260
  export { SharedItemLinkForm };
254
261
  export { DeleteButton };
255
262
  export { Placeholder };
263
+ export { Filter, FilterLookupPicker };
264
+ export { SlideUpButton, SlideUpButtonDropdownItem, SlideUpButtonItem };
@@ -0,0 +1,20 @@
1
+ export interface Action {
2
+ readonly id?: string;
3
+ readonly code: string;
4
+ readonly contentTypeId?: string;
5
+ readonly isConfirm: boolean;
6
+ readonly isShowAfterAction: boolean;
7
+ readonly isShowProgress: boolean;
8
+ readonly isShowRef?: boolean;
9
+ readonly context: boolean;
10
+ readonly addon: boolean;
11
+ readonly text?: string;
12
+ readonly data?: any;
13
+ childList: Action[];
14
+ readonly image?: string;
15
+ readonly permission?: string;
16
+ processError?: (result: any[]) => any;
17
+ onStart?: () => any;
18
+ confirmText?: string;
19
+ sequence?: number;
20
+ }
@@ -0,0 +1,17 @@
1
+ import { Field } from './Field';
2
+ export interface ContentType {
3
+ readonly description: string;
4
+ readonly fieldList: Field[];
5
+ readonly fieldValueMap: any;
6
+ readonly id: string;
7
+ readonly isFolder: boolean;
8
+ readonly isFile: boolean;
9
+ readonly isReference: boolean;
10
+ readonly name: string;
11
+ readonly parentId: string;
12
+ readonly status: number;
13
+ readonly image: string;
14
+ readonly viewId: string;
15
+ readonly parentContentTypeIdList: string[];
16
+ readonly featureIdList: string[];
17
+ }
@@ -0,0 +1,5 @@
1
+ import { Item } from './Item';
2
+ import { ViewPartList } from './ViewPartList';
3
+ export interface ContentTypeView extends Item {
4
+ list: ViewPartList[];
5
+ }
@@ -0,0 +1,13 @@
1
+ import { FieldType } from './FieldType';
2
+ export interface Field {
3
+ readonly id: string;
4
+ readonly internalName: string;
5
+ readonly name: string;
6
+ readonly data: string;
7
+ readonly fieldType: FieldType;
8
+ readonly fieldValueMap: any;
9
+ readonly isRequired: boolean;
10
+ readonly isReadOnly: boolean;
11
+ readonly component: string;
12
+ readonly key?: string;
13
+ }
@@ -0,0 +1,5 @@
1
+ export interface FieldType {
2
+ readonly id: string;
3
+ readonly name: string;
4
+ readonly reactComponent: string;
5
+ }
@@ -0,0 +1,22 @@
1
+ import { ItemId } from './ItemId';
2
+ import { ItemPath } from './ItemPath';
3
+ import { ContentTypeView } from './ContentTypeView';
4
+ export interface Item extends ItemId {
5
+ readonly fieldValueMap: {
6
+ [key: string]: any;
7
+ };
8
+ readonly sequence: number;
9
+ readonly itemPath: ItemPath;
10
+ readonly insertDate: string;
11
+ readonly updateDate: string;
12
+ readonly deleteDate: string;
13
+ readonly itemId: string;
14
+ readonly insertUserName: string;
15
+ readonly permissionList: string[];
16
+ readonly status: number;
17
+ readonly insertUser: any;
18
+ readonly updateUser: any;
19
+ readonly deleteUser: any;
20
+ view?: ContentTypeView;
21
+ isNew?: boolean;
22
+ }
@@ -0,0 +1,5 @@
1
+ export interface ItemCopyRequest {
2
+ id: string;
3
+ isChildListCopyRequired: boolean;
4
+ childNodeList?: ItemCopyRequest[];
5
+ }
@@ -0,0 +1,7 @@
1
+ export interface ItemId {
2
+ contentTypeId: string;
3
+ readonly id: string;
4
+ readonly listId: string;
5
+ readonly parentId: string;
6
+ readonly siteId: string;
7
+ }
@@ -0,0 +1,5 @@
1
+ export interface ItemPath {
2
+ childCount: number;
3
+ path: string[];
4
+ scopeId: string;
5
+ }
@@ -0,0 +1,8 @@
1
+ export interface ItemUpdateRequest {
2
+ listId: string;
3
+ id?: string;
4
+ contentTypeId?: string;
5
+ parentId?: string;
6
+ file?: File;
7
+ fieldValueMap?: Map<string, any>;
8
+ }
@@ -0,0 +1,25 @@
1
+ import { ContentType } from './ContentType';
2
+ import { ContentTypeView } from './ContentTypeView';
3
+ import { Action } from './Action';
4
+ import { Site } from './Site';
5
+ export interface ListConfig {
6
+ id: string;
7
+ contentTypeList: ContentType[];
8
+ data: string;
9
+ fieldList: any[];
10
+ name: string;
11
+ statusList: any[];
12
+ description: string;
13
+ listAction: {
14
+ [key: string]: Action[];
15
+ };
16
+ siteId: string;
17
+ fieldValueMap: {
18
+ [key: string]: any;
19
+ };
20
+ contentTypeViewList: ContentTypeView[];
21
+ treeListConfig?: ListConfig;
22
+ site: Site;
23
+ isDocumentArchive?: boolean;
24
+ validContentTypeIdList?: string[];
25
+ }
@@ -0,0 +1,10 @@
1
+ export interface Site {
2
+ id: string;
3
+ name: string;
4
+ description: string;
5
+ readonly fieldValueMap: {
6
+ [key: string]: any;
7
+ };
8
+ imageUrl?: string;
9
+ isSelected: boolean;
10
+ }
@@ -0,0 +1,7 @@
1
+ import { Item } from "./Item";
2
+ export interface ViewPart extends Item {
3
+ name: string;
4
+ settings: {
5
+ [key: string]: any;
6
+ };
7
+ }
@@ -0,0 +1,7 @@
1
+ import { ViewPart } from "./ViewPart";
2
+ export interface ViewPartList {
3
+ name: string;
4
+ isAdmin: boolean;
5
+ list: ViewPart[];
6
+ permission: string;
7
+ }
@@ -26,6 +26,7 @@ import { SiteSelectItem as _SiteSelectItem } from './controls/SiteSelect/models/
26
26
  import { QuillRichEditorSettings as _QuillRichEditorSettings } from './controls/Input/models/QuillRichEditorSettings';
27
27
  import { TelerikMediaPlayerSettings as _TelerikMediaPlayerSettings } from './controls/VideoViewer/models/TelerikMediaPlayerSettings';
28
28
  import { FilePickerItem as _FilePickerItem } from './controls/FilePicker/models/FilePickerItem';
29
+ import { SortItem as _SortItem } from './controls/Filter/models/SortItem';
29
30
  export declare namespace models {
30
31
  interface JsTreeViewNode extends _JsTreeViewNode {
31
32
  }
@@ -83,4 +84,6 @@ export declare namespace models {
83
84
  }
84
85
  interface FilePickerItem extends _FilePickerItem {
85
86
  }
87
+ interface SortItem extends _SortItem {
88
+ }
86
89
  }
@@ -0,0 +1,9 @@
1
+ export interface ColumnService {
2
+ getSystemList(): {
3
+ internalName: string;
4
+ name: string;
5
+ component: string;
6
+ }[];
7
+ getName(internalName: string): string;
8
+ isSystemUserLookupPicker(internalName: string): boolean;
9
+ }
@@ -0,0 +1,8 @@
1
+ import { ContentType } from '../models/ContentType';
2
+ export interface ContentTypeService {
3
+ get(contentTypeId: string): Promise<ContentType>;
4
+ getByList(listId: string): Promise<ContentType[]>;
5
+ getListByFeature(feature: {
6
+ id: string;
7
+ }[], contentTypeList: ContentType[]): ContentType[];
8
+ }
@@ -0,0 +1,4 @@
1
+ export interface EventHandlerService {
2
+ readonly id: string;
3
+ process(...params: any[]): unknown;
4
+ }
@@ -0,0 +1,6 @@
1
+ import { EventHandlerService } from './EventHandlerService';
2
+ export interface EventService {
3
+ send<T>(eventId: string, data: T, eventScopeId?: string): void;
4
+ register(eventHandler: EventHandlerService, eventScopeId?: string): void;
5
+ remove(eventHandler: EventHandlerService): void;
6
+ }
@@ -0,0 +1,3 @@
1
+ export interface GuidService {
2
+ get(): string;
3
+ }
@@ -0,0 +1,7 @@
1
+ import type { ContentType } from '../models/ContentType';
2
+ export interface ImageService {
3
+ get(name: string, contentType: ContentType): string;
4
+ getByContentType(contentType: ContentType): string;
5
+ getByFileName(name: string): string;
6
+ getByImageId(imageId: string): string;
7
+ }
@@ -0,0 +1,12 @@
1
+ export interface ItemSelectDialogService {
2
+ show(listId: string, viewId?: string, isMultiSelect?: boolean, isFolderOnly?: boolean, dialogSettings?: {
3
+ title?: string;
4
+ subtitle?: string;
5
+ image?: string;
6
+ buttonText?: string;
7
+ isListSelectEnabled?: boolean;
8
+ isShowSelection?: boolean;
9
+ }, viewSettings?: {
10
+ [key: string]: unknown;
11
+ }): Promise<string[]>;
12
+ }
@@ -0,0 +1,24 @@
1
+ import type { ItemUpdateRequest } from '../models/ItemUpdateRequest';
2
+ import type { ItemCopyRequest } from '../models/ItemCopyRequest';
3
+ import { MOVE_TYPE } from '../constants/MoveType';
4
+ import { Item } from '../models/Item';
5
+ import { ItemId } from '../models/ItemId';
6
+ export interface ItemService {
7
+ get(itemId: string | ItemId, onError?: (response: any) => void): Promise<Item>;
8
+ getListByParentId(listId: string, query?: string, sort?: {
9
+ [internalName: string]: number;
10
+ }): Promise<Array<any>>;
11
+ getList(itemIdList: string[]): Promise<Array<Item>>;
12
+ getParentList(item: Item): Promise<Array<any>>;
13
+ getRecursive(itemId: string): Promise<Array<Item>>;
14
+ createByContentType(listId: string, contentTypeId: string, parentId?: string): Promise<any>;
15
+ update(itemList: ItemUpdateRequest[]): Promise<any>;
16
+ delete(idList: string[] | string): Promise<string[]>;
17
+ restore(deleteTransactionId: string): Promise<void>;
18
+ move(itemId: string, toItemId: string, type: MOVE_TYPE): Promise<any>;
19
+ createItemUpdateRequestMap(item: ItemUpdateRequest, itemList: File[]): {
20
+ [key: string]: string | number | Array<string | number>;
21
+ };
22
+ copy(parentId: any, nodeList: ItemCopyRequest[]): Promise<any>;
23
+ createNewInstance(listId: string, contentTypeId: string, parentId: string, fieldValueMap?: Map<string, string | number>): Promise<Item>;
24
+ }
@@ -0,0 +1,9 @@
1
+ import { Item } from "../models/Item";
2
+ import { ItemId } from "../models/ItemId";
3
+ export interface LookupListItemService {
4
+ getValueList(field: Item, searchValue: string, currentItemRef?: {
5
+ item: ItemId | null;
6
+ changedFieldValueMap?: Map<string, unknown>;
7
+ }): Promise<any>;
8
+ getFilteredItemList(fieldId: string, searchValue: string, query?: string): Promise<Item[]>;
9
+ }
@@ -23,6 +23,7 @@ import { VideoViewerService as _VideoViewerService } from './controls/VideoViewe
23
23
  import { TreeViewService as _TreeViewService } from './controls/TreeView/services/TreeViewService';
24
24
  import { TreeViewEventHandler as _TreeViewEventHandler } from './controls/TreeView/services/TreeViewEventHandler';
25
25
  import { TabGroupService as _TabGroupService } from './controls/TabGroup/services/TabGroupService';
26
+ import { DropdownButtonService as _DropdownButtonService } from './controls/DropdownButton/services/DropdownButtonService';
26
27
  export declare namespace services {
27
28
  interface BimViewerService extends _BimViewerService {
28
29
  }
@@ -74,4 +75,6 @@ export declare namespace services {
74
75
  }
75
76
  interface TabGroupService extends _TabGroupService {
76
77
  }
78
+ interface DropdownButtonService extends _DropdownButtonService {
79
+ }
77
80
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vitrosoftware/common-ui-ts",
3
- "version": "1.1.209",
3
+ "version": "1.1.211",
4
4
  "description": "vitro software common ui ts",
5
5
  "author": "",
6
6
  "license": "MIT",
@@ -1,11 +1,11 @@
1
- import { BIMModel, BIMCommon, BIMAnnotation } from '/resource/bimViewer/js/bim-viewer-models.js?version=1.1.209';
1
+ import { BIMModel, BIMCommon, BIMAnnotation } from '/resource/bimViewer/js/bim-viewer-models.js?version=1.1.211';
2
2
 
3
3
  import {
4
4
  Viewer, XKTLoaderPlugin, NavCubePlugin, SectionPlanesPlugin, math, BCFViewpointsPlugin, AnnotationsPlugin,
5
5
  ContextMenu, TreeViewPlugin, StoreyViewsPlugin, AngleMeasurementsPlugin, CameraMemento, DistanceMeasurementsPlugin,
6
6
  GLTFLoaderPlugin, utils, FastNavPlugin, MetaObject, parsers
7
7
  }
8
- from '/resource/bimViewer/js/xeokit/xeokit-sdk.es.js?version=1.1.209';
8
+ from '/resource/bimViewer/js/xeokit/xeokit-sdk.es.js?version=1.1.211';
9
9
 
10
10
 
11
11
  //----------------------------------------------------------------------------------------------------------------------
@@ -1645,7 +1645,8 @@ function clearSectionPanes() {
1645
1645
  // Load Annotations
1646
1646
  //------------------------------------------------------------------------------------------------------------------
1647
1647
  function loadAnnotations() {
1648
- context.getIssueList().then(issueList => {
1648
+ const searchCriterion = window.searchCriterionList ? window.searchCriterionList : [];
1649
+ context.getIssueList(searchCriterion).then(issueList => {
1649
1650
  issueList.map(issue => {
1650
1651
  let data = getMarkupData(issue.item);
1651
1652
  data.occludable = false;
@@ -3087,7 +3088,11 @@ const fastNavPlugin = new FastNavPlugin(viewer, {
3087
3088
  //
3088
3089
  //------------------------------------------------------------------------------------------------------------------
3089
3090
 
3090
- var notesDescriptionVisibleList = {};
3091
+ const EVENT_SEARCH_ISSUE_LIST = 'vitro.search.issue.list';
3092
+ const EVENT_ISSUE_LIST_REFRESH = 'vitro.issue.list.refresh';
3093
+ const EVENT_ISSUE_LIST_SELECT_ITEM = 'vitro.issue.list.select.item';
3094
+
3095
+ var notesDescriptionVisibleList = {};
3091
3096
 
3092
3097
  BIMAnnotation.GetNote = (callback) => {
3093
3098
  callback([]);
@@ -3296,21 +3301,25 @@ function updatePage(e) {
3296
3301
  annotations.annotations[data.id].setLabelShown(false);
3297
3302
  }
3298
3303
  }, 10);
3304
+ setTimeout(function () { refreshIssueList(); }, 250);
3299
3305
  }
3300
3306
 
3301
3307
  if (e.type === context.deleteIssueEvent) {
3302
3308
 
3303
3309
  let item = e.detail.itemList[0];
3304
3310
  annotations.destroyAnnotation(item.fieldValueMap.item_id);
3305
- if ($('.sidebar').is(':visible')) {
3306
- initSidebarNotes();
3307
- }
3311
+ refreshIssueList();
3308
3312
  if (isNoteDescriptionVisible(item.fieldValueMap.item_id)) {
3309
3313
  removeFromNotesDescriptionVisibleList(item.fieldValueMap.item_id);
3310
3314
  }
3311
3315
  }
3312
3316
  }
3313
3317
 
3318
+ function refreshIssueList() {
3319
+ const event = new CustomEvent(EVENT_ISSUE_LIST_REFRESH, { detail: {} });
3320
+ window.dispatchEvent(event);
3321
+ }
3322
+
3314
3323
  function goToNoteMarker(issue) {
3315
3324
  if (!$('#btnCreateNotes').hasClass('toggled')) {
3316
3325
  hideNotesDescription();
@@ -3898,7 +3907,41 @@ function bindBtnAddModel() {
3898
3907
  });
3899
3908
  }
3900
3909
 
3910
+ function bindUpdateDocumentMarkupList() {
3911
+ window.addEventListener(EVENT_SEARCH_ISSUE_LIST, updateDocumentMarkupList);
3912
+ }
3901
3913
 
3914
+ function updateDocumentMarkupList(e) {
3915
+ annotations.clear();
3916
+ if (e.detail.issueList && e.detail.issueList.length) {
3917
+ e.detail.issueList.map(issue => {
3918
+ let data = getMarkupData(issue.item);
3919
+ data.occludable = false;
3920
+ annotations.createAnnotation(data);
3921
+ });
3922
+ }
3923
+ }
3924
+
3925
+ bindUpdateDocumentMarkupList();
3926
+
3927
+ function highlightSidebarNote(noteId) {
3928
+ var noteWrap = $('#vitro-issue-tile-' + noteId);
3929
+
3930
+ if (!noteWrap.position()) {
3931
+ setTimeout(() => {
3932
+ highlightSidebarNote(noteId);
3933
+ }, 500);
3934
+
3935
+ return;
3936
+ }
3937
+
3938
+ selectIssueListItem(noteId);
3939
+ }
3940
+
3941
+ function selectIssueListItem(itemId) {
3942
+ const event = new CustomEvent(EVENT_ISSUE_LIST_SELECT_ITEM, { detail: { itemId: itemId } });
3943
+ window.dispatchEvent(event);
3944
+ }
3902
3945
 
3903
3946
  //------------------------------------------------------------------------------------------------------------------
3904
3947
  // Do action wherever we click on an object