@vitrosoftware/common-ui-ts 1.1.113 → 1.1.115

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 (35) hide show
  1. package/css/std/controls/action-handler/action-result-list.css +34 -0
  2. package/css/std/controls/action-handler/confirm-dialog.css +1 -0
  3. package/css/std/controls/action-handler/result-dialog.css +20 -0
  4. package/css/std/controls/checkbox/checkbox.css +1 -0
  5. package/css/std/controls/criterion/criterion.css +67 -33
  6. package/css/std/controls/dialog/dialog-footer.css +1 -1
  7. package/css/std/controls/image-button/image-button.css +6 -2
  8. package/css/std/controls/list/list.css +10 -0
  9. package/css/std/controls/search/checkbox-list.css +8 -15
  10. package/css/std/controls/search/search.css +113 -22
  11. package/css/std/controls/search-input/img/search-blue.svg +3 -0
  12. package/css/std/controls/search-input/search-input.css +16 -35
  13. package/css/std/controls/table-view/treegrid.css +113 -1
  14. package/css/std/controls/uploader/uploader.css +17 -0
  15. package/dist/index.css +294 -111
  16. package/dist/index.js +396 -379
  17. package/dist/index.js.map +1 -1
  18. package/dist/src/controls/Button/Button.d.ts +2 -2
  19. package/dist/src/controls/Criterion/Criterion.d.ts +1 -0
  20. package/dist/src/controls/Dialog/Dialog.d.ts +1 -0
  21. package/dist/src/controls/Dialog/DialogFooter.d.ts +3 -2
  22. package/dist/src/controls/Label/Label.d.ts +2 -2
  23. package/dist/src/controls/List/List.d.ts +10 -0
  24. package/dist/src/controls/Search/CheckboxList.d.ts +2 -2
  25. package/dist/src/controls/Search/Filter.d.ts +1 -0
  26. package/dist/src/controls/Search/Search.d.ts +2 -1
  27. package/dist/src/controls/SearchInput/SearchInput.d.ts +1 -0
  28. package/dist/src/controls/TableView/TableViewConstants.d.ts +19 -1
  29. package/dist/src/controls/TableView/TableViewContext.d.ts +1 -1
  30. package/dist/src/controls/TableView/TreeGridTableViewContextImpl.d.ts +1 -1
  31. package/dist/src/controls/TelerikUploader/TelerikUploader.d.ts +1 -0
  32. package/dist/src/index.d.ts +2 -0
  33. package/package.json +1 -1
  34. package/src/controls/BimViewer/js/bim-viewer.js +2 -2
  35. package/src/controls/PdfViewer/js/pdf-viewer.js +1 -1
@@ -1,4 +1,4 @@
1
- /// <reference types="react" />
1
+ import React from 'react';
2
2
  export interface ButtonProps {
3
3
  text: string;
4
4
  isDisabled?: boolean;
@@ -10,4 +10,4 @@ export interface ButtonProps {
10
10
  imageHoverUrl?: string;
11
11
  imageClassName?: string;
12
12
  }
13
- export declare const Button: (props: ButtonProps) => JSX.Element;
13
+ export declare const Button: React.ForwardRefExoticComponent<ButtonProps & React.RefAttributes<HTMLButtonElement>>;
@@ -12,6 +12,7 @@ interface CriterionProps {
12
12
  onDelete: (name: string) => any;
13
13
  className?: string;
14
14
  isShowOperatorSelect: boolean;
15
+ isMobileView?: boolean;
15
16
  content: {
16
17
  component: React.FunctionComponent<any>;
17
18
  props: {
@@ -22,6 +22,7 @@ export interface DialogProps {
22
22
  dialog?: any;
23
23
  className?: string;
24
24
  headerClassName?: string;
25
+ footerClassName?: string;
25
26
  hiddenContent?: React.ReactNode;
26
27
  children?: React.ReactNode;
27
28
  }
@@ -3,11 +3,12 @@ import { ButtonProps } from '../Button/Button';
3
3
  interface DialogFooterProps {
4
4
  buttonList?: ButtonProps[];
5
5
  labelClose?: string;
6
- onClose: () => any;
7
- onClickDetailButton: (isExpanded: boolean) => void;
6
+ onClose?: () => any;
7
+ onClickDetailButton?: (isExpanded: boolean) => void;
8
8
  isDismissible?: boolean;
9
9
  isShowDetailButton?: boolean;
10
10
  dialog?: any;
11
+ className?: string;
11
12
  }
12
13
  export declare const DialogFooter: (props: DialogFooterProps) => JSX.Element;
13
14
  export {};
@@ -1,9 +1,9 @@
1
- /// <reference types="react" />
1
+ import React from 'react';
2
2
  interface LabelProps {
3
3
  text: string;
4
4
  isRequired?: boolean;
5
5
  className?: string;
6
6
  width?: number;
7
7
  }
8
- export declare const Label: (props: LabelProps) => JSX.Element;
8
+ export declare const Label: React.ForwardRefExoticComponent<LabelProps & React.RefAttributes<HTMLDivElement>>;
9
9
  export default Label;
@@ -0,0 +1,10 @@
1
+ import React from 'react';
2
+ interface ListProps {
3
+ itemList: any[];
4
+ itemTemplate: React.FunctionComponent;
5
+ onClick?: (item: any) => void;
6
+ onBlur?: (e: React.FocusEvent<HTMLUListElement>) => void;
7
+ className?: string;
8
+ }
9
+ export declare const List: React.ForwardRefExoticComponent<ListProps & React.RefAttributes<HTMLUListElement>>;
10
+ export {};
@@ -1,4 +1,4 @@
1
- /// <reference types="react" />
1
+ import React from 'react';
2
2
  interface CheckboxListProps {
3
3
  itemList: {
4
4
  id: string;
@@ -8,5 +8,5 @@ interface CheckboxListProps {
8
8
  onChange?: (selectedItemList: string[]) => void;
9
9
  isAllSelected?: boolean;
10
10
  }
11
- export declare const CheckboxList: (props: CheckboxListProps) => JSX.Element;
11
+ export declare const CheckboxList: React.ForwardRefExoticComponent<CheckboxListProps & React.RefAttributes<HTMLDivElement>>;
12
12
  export {};
@@ -16,6 +16,7 @@ interface FilterProps {
16
16
  getConditionList: (componentName: string) => Condition[];
17
17
  getDefaultCondition?: (componentName: string) => number;
18
18
  onDeleteField: (id: string) => any;
19
+ isMobileView?: boolean;
19
20
  }
20
21
  export declare const Filter: (props: FilterProps) => JSX.Element;
21
22
  export {};
@@ -7,7 +7,7 @@ interface SearchProps {
7
7
  visibleFieldList?: any[];
8
8
  searchCriterionList?: SearchCriterion[];
9
9
  onFilterChange?: (searchCriterionList: SearchCriterion[]) => any;
10
- onSubmit: (searchCriterionList: SearchCriterion[]) => any;
10
+ onSearch: (searchCriterionList: SearchCriterion[]) => any;
11
11
  onCancel: () => any;
12
12
  componentMap: {
13
13
  name: string;
@@ -24,6 +24,7 @@ interface SearchProps {
24
24
  defaultSearchFieldName: string;
25
25
  inputPlaceholder?: string;
26
26
  maxFieldCount?: number;
27
+ isMobileView?: boolean;
27
28
  }
28
29
  export declare const Search: (props: SearchProps) => JSX.Element;
29
30
  export {};
@@ -9,6 +9,7 @@ interface SearchInputProps {
9
9
  onChange?: (value: any) => void;
10
10
  onBlur?: () => void;
11
11
  onFocus?: () => void;
12
+ onSearchClick?: () => void;
12
13
  onRemoveValue?: (newItemList: SearchCriterion[]) => void;
13
14
  isMobileView?: boolean;
14
15
  isActive?: boolean;
@@ -1,5 +1,6 @@
1
1
  export declare enum EVENT {
2
2
  ON_SELECT = "OnSelect",
3
+ ON_SHOW_MENU = "OnShowMenu",
3
4
  ON_DATA_SEND = "OnDataSend",
4
5
  ON_LOADED = "OnLoaded",
5
6
  ON_CLICK = "OnClick",
@@ -92,7 +93,8 @@ export declare enum ATTRIBUTE {
92
93
  TIP = "Tip",
93
94
  TIP_POSITION = "TipPosition",
94
95
  HTML = "Html",
95
- CLASS = "Class"
96
+ CLASS = "Class",
97
+ VISIBLE = "Visible"
96
98
  }
97
99
  export declare enum DRAG_ITEM_TYPE {
98
100
  CANNOT_DROP = 0,
@@ -155,3 +157,19 @@ export declare enum OPERATOR {
155
157
  AND = 0,
156
158
  OR = 1
157
159
  }
160
+ export declare enum PARAM {
161
+ EXPORT = "Export",
162
+ EXPORT_NAME = "ExportName",
163
+ EXPORT_FORMAT = "ExportFormat"
164
+ }
165
+ export declare enum COL_ID {
166
+ PANEL = "Panel",
167
+ PAGER = "Pager"
168
+ }
169
+ export declare enum BUTTON {
170
+ CLEAR = "Clear"
171
+ }
172
+ export declare enum MENU_NAME {
173
+ EXPORT = "MenuExport",
174
+ COLUMNS = "MenuColumns"
175
+ }
@@ -46,7 +46,7 @@ export interface TableViewContext {
46
46
  hideCol(col: string): void;
47
47
  addCol(col: string, sec: number, pos: number, param?: any, show?: boolean, type?: string, caption?: string): TableViewCol;
48
48
  reloadBody(): void;
49
- getCols(): string[];
49
+ getCols(attr1?: string, attr2?: string): string[];
50
50
  hasChangeList(): number;
51
51
  getChangeList(): any;
52
52
  moveRow(row: TableViewRow, parent: TableViewRow | null, next: TableViewRow | null, show: boolean): any;
@@ -57,7 +57,7 @@ export declare class TreeGridTableViewContextImpl implements TableViewContext {
57
57
  hideCol(col: string): void;
58
58
  reloadBody(): void;
59
59
  setRowCanExpand(row: TableViewRow, canExpand: boolean): void;
60
- getCols(): string[];
60
+ getCols(attr1?: string, attr2?: string): string[];
61
61
  hasChangeList(): number;
62
62
  getChangeList(): any;
63
63
  moveRow(row: TableViewRow, parent: TableViewRow | null, next: TableViewRow | null, show: boolean): any;
@@ -6,6 +6,7 @@ export interface TelerikUploaderProps {
6
6
  settings: TelerikUploaderSettings;
7
7
  id: string;
8
8
  isAutoClose?: boolean;
9
+ isShowDropzone?: boolean;
9
10
  durationMs?: number;
10
11
  }
11
12
  export declare const TelerikUploader: (props: TelerikUploaderProps) => JSX.Element;
@@ -138,6 +138,7 @@ import { FlexBox } from './controls/FlexBox/FlexBox';
138
138
  import { SlideUpPanel } from './controls/SlideUpPanel/SlideUpPanel';
139
139
  import { BottomAlignControlGroup } from './controls/BottomAlignControlGroup/BottomAlignControlGroup';
140
140
  import { LinearProgress } from './controls/LinearProgress/LinearProgress';
141
+ import { List } from './controls/List/List';
141
142
  export { Breadcrumbs };
142
143
  export { TopLevelMenu };
143
144
  export { TreeView, TreeViewContext, TREE_VIEW, TreeViewProps, JsTreeViewNode };
@@ -221,3 +222,4 @@ export { ScrollView, ScrollViewItem };
221
222
  export { ImageViewer, ImageViewerRef, ImageItem };
222
223
  export { File };
223
224
  export { LinearProgress };
225
+ export { List };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vitrosoftware/common-ui-ts",
3
- "version": "1.1.113",
3
+ "version": "1.1.115",
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.113';
1
+ import { BIMModel, BIMCommon, BIMAnnotation } from '/resource/bimViewer/js/bim-viewer-models.js?version=1.1.115';
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
7
7
  }
8
- from '/resource/bimViewer/js/xeokit/xeokit-sdk.es.js?version=1.1.113';
8
+ from '/resource/bimViewer/js/xeokit/xeokit-sdk.es.js?version=1.1.115';
9
9
 
10
10
 
11
11
  const processByChildIdList = (treeViewNode, event) => {
@@ -21208,7 +21208,7 @@ const defaultOptions = {
21208
21208
  kind: OptionKind.WORKER
21209
21209
  },
21210
21210
  workerSrc: {
21211
- value: "resource/pdfViewer/js/pdf.worker.js?version=1.1.113",
21211
+ value: "resource/pdfViewer/js/pdf.worker.js?version=1.1.115",
21212
21212
  kind: OptionKind.WORKER
21213
21213
  }
21214
21214
  };