@vitrosoftware/common-ui-ts 1.1.209 → 1.1.210

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 (65) 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/filter/filter.css +85 -0
  4. package/css/std/controls/pdf-viewer/custom.css +1 -5
  5. package/css/std/controls/pdf-viewer/pdf-viewer-index.css +1 -24
  6. package/css/std/controls/pdf-viewer/pdf-viewer.css +0 -19
  7. package/css/std/controls/search/search-dialog.css +202 -0
  8. package/css/std/controls/search/search.css +0 -185
  9. package/css/std/controls/viewer-issue-list/viewer-issue-list.css +49 -0
  10. package/dist/index.css +3292 -3140
  11. package/dist/index.js +11815 -10479
  12. package/dist/index.js.map +1 -1
  13. package/dist/src/constants/Event.d.ts +5 -1
  14. package/dist/src/constants/Factory.d.ts +8 -0
  15. package/dist/src/constants/MoveType.d.ts +5 -0
  16. package/dist/src/controls/BimViewer/services/BimViewerService.d.ts +10 -1
  17. package/dist/src/controls/DxfViewer/services/DxfViewerService.d.ts +10 -1
  18. package/dist/src/controls/Filter/CriterionFilter.d.ts +26 -0
  19. package/dist/src/controls/Filter/Filter.d.ts +28 -0
  20. package/dist/src/controls/Filter/FilterConstants.d.ts +54 -0
  21. package/dist/src/controls/Filter/Inputs/BaseLookupPicker.d.ts +35 -0
  22. package/dist/src/controls/Filter/Inputs/Checkbox.d.ts +10 -0
  23. package/dist/src/controls/Filter/Inputs/DatePicker.d.ts +8 -0
  24. package/dist/src/controls/Filter/Inputs/Input.d.ts +10 -0
  25. package/dist/src/controls/Filter/Inputs/LookupPicker.d.ts +2 -0
  26. package/dist/src/controls/Filter/Inputs/NumberInput.d.ts +13 -0
  27. package/dist/src/controls/Filter/Inputs/TimePicker.d.ts +8 -0
  28. package/dist/src/controls/Filter/Inputs/UserLookupPicker.d.ts +3 -0
  29. package/dist/src/controls/Filter/SortFilter.d.ts +14 -0
  30. package/dist/src/controls/Filter/models/SortCriterion.d.ts +7 -0
  31. package/dist/src/controls/Filter/models/SortItem.d.ts +4 -0
  32. package/dist/src/controls/PdfViewer/services/PdfViewerService.d.ts +10 -1
  33. package/dist/src/controls/Search/Search.d.ts +11 -24
  34. package/dist/src/controls/Search/SearchConstants.d.ts +12 -0
  35. package/dist/src/controls/Search/SearchDialog.d.ts +23 -0
  36. package/dist/src/controls/ViewerIssueList/ViewerIssueList.d.ts +28 -0
  37. package/dist/src/index.d.ts +3 -0
  38. package/dist/src/models/Action.d.ts +20 -0
  39. package/dist/src/models/ContentType.d.ts +17 -0
  40. package/dist/src/models/ContentTypeView.d.ts +5 -0
  41. package/dist/src/models/Field.d.ts +13 -0
  42. package/dist/src/models/FieldType.d.ts +5 -0
  43. package/dist/src/models/Item.d.ts +22 -0
  44. package/dist/src/models/ItemCopyRequest.d.ts +5 -0
  45. package/dist/src/models/ItemId.d.ts +7 -0
  46. package/dist/src/models/ItemPath.d.ts +5 -0
  47. package/dist/src/models/ItemUpdateRequest.d.ts +8 -0
  48. package/dist/src/models/ListConfig.d.ts +25 -0
  49. package/dist/src/models/Site.d.ts +10 -0
  50. package/dist/src/models/ViewPart.d.ts +7 -0
  51. package/dist/src/models/ViewPartList.d.ts +7 -0
  52. package/dist/src/models.d.ts +3 -0
  53. package/dist/src/services/ColumnService.d.ts +9 -0
  54. package/dist/src/services/ContentTypeService.d.ts +8 -0
  55. package/dist/src/services/EventHandlerService.d.ts +4 -0
  56. package/dist/src/services/EventService.d.ts +6 -0
  57. package/dist/src/services/GuidService.d.ts +3 -0
  58. package/dist/src/services/ImageService.d.ts +7 -0
  59. package/dist/src/services/ItemSelectDialogService.d.ts +12 -0
  60. package/dist/src/services/ItemService.d.ts +24 -0
  61. package/dist/src/services/LookupListItemService.d.ts +9 -0
  62. package/package.json +1 -1
  63. package/src/controls/BimViewer/js/bim-viewer.js +50 -7
  64. package/src/controls/DxfViewer/js/dxf-viewer.js +78 -21
  65. package/src/controls/PdfViewer/js/pdf-viewer.js +136 -23
@@ -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
+ }
@@ -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
  }
@@ -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
  }
@@ -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
+ }
@@ -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 {};
@@ -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 {};
@@ -143,6 +143,8 @@ import { FieldValueList } from './controls/FieldValueList/FieldValueList';
143
143
  import { SharedItemLinkForm } from './controls/SharedItemLinkForm/SharedItemLinkForm';
144
144
  import { DeleteButton } from './controls/DeleteButton/DeleteButton';
145
145
  import { Placeholder } from './controls/Placeholder/Placeholder';
146
+ import { Filter } from './controls/Filter/Filter';
147
+ import { LookupPicker as FilterLookupPicker } from './controls/Filter/Inputs/LookupPicker';
146
148
  export { Breadcrumbs };
147
149
  export { TopLevelMenu };
148
150
  export { TreeView, TREE_VIEW, TreeViewProps };
@@ -253,3 +255,4 @@ export { FieldValueList };
253
255
  export { SharedItemLinkForm };
254
256
  export { DeleteButton };
255
257
  export { Placeholder };
258
+ export { Filter, FilterLookupPicker };
@@ -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
+ }