@vitrosoftware/common-ui-ts 1.1.114 → 1.1.116

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 (42) hide show
  1. package/css/std/controls/button/button.css +2 -1
  2. package/css/std/controls/button-cancel/button-cancel.css +2 -1
  3. package/css/std/controls/command-menu/command-menu-button.css +4 -1
  4. package/css/std/controls/command-menu/command-menu-dropdown-button.css +23 -12
  5. package/css/std/controls/date-picker/date-picker.css +10 -2
  6. package/css/std/controls/pdf-viewer/pdf-viewer-index.css +1 -0
  7. package/css/std/controls/pdf-viewer/pdf-viewer.css +1 -0
  8. package/css/std/controls/tab-group/tab-group.css +18 -0
  9. package/css/std/controls/table-view/table-view.css +13 -0
  10. package/css/std/controls/table-view/treegrid-cell.css +70 -0
  11. package/css/std/controls/table-view/treegrid-cfg-menu.css +208 -0
  12. package/css/std/controls/table-view/treegrid-context-menu.css +164 -0
  13. package/css/std/controls/table-view/treegrid-filter.css +265 -0
  14. package/css/std/controls/table-view/treegrid-gantt.css +66 -0
  15. package/css/std/controls/table-view/treegrid-group.css +59 -0
  16. package/css/std/controls/table-view/treegrid-header.css +30 -0
  17. package/css/std/controls/table-view/treegrid-message.css +41 -0
  18. package/css/std/controls/table-view/treegrid-progress.css +47 -0
  19. package/css/std/controls/table-view/treegrid-scroll.css +55 -0
  20. package/css/std/controls/table-view/treegrid-sort.css +25 -0
  21. package/css/std/controls/table-view/treegrid-tab.css +45 -0
  22. package/css/std/controls/table-view/treegrid-tip.css +23 -0
  23. package/css/std/controls/table-view/treegrid.css +0 -989
  24. package/css/std/controls/uploader/img/error.svg +6 -0
  25. package/css/std/controls/uploader/img/warning.svg +10 -0
  26. package/css/std/controls/uploader/uploader.css +75 -35
  27. package/dist/index.css +146 -53
  28. package/dist/index.js +130 -48
  29. package/dist/index.js.map +1 -1
  30. package/dist/src/constants/KeyCode.d.ts +1 -0
  31. package/dist/src/controls/ActionHandler/ConfirmDialog.d.ts +2 -1
  32. package/dist/src/controls/ButtonGroup/ButtonGroup.d.ts +1 -1
  33. package/dist/src/controls/CommandMenu/CommandMenuItemHeader.d.ts +1 -0
  34. package/dist/src/controls/Dialog/Dialog.d.ts +2 -1
  35. package/dist/src/controls/Dialog/DialogFooter.d.ts +2 -1
  36. package/dist/src/controls/TableView/TableViewConstants.d.ts +5 -1
  37. package/dist/src/controls/TableView/TableViewContext.d.ts +5 -1
  38. package/dist/src/controls/TableView/TreeGridTableViewContextImpl.d.ts +5 -1
  39. package/dist/src/controls/TelerikUploader/TelerikUploaderConstants.d.ts +1 -0
  40. package/package.json +1 -1
  41. package/src/controls/BimViewer/js/bim-viewer.js +2 -2
  42. package/src/controls/PdfViewer/js/pdf-viewer.js +2 -2
@@ -3,4 +3,5 @@ export declare class KEY_CODE {
3
3
  static readonly ESC = 27;
4
4
  static readonly ARROW_RIGHT = 39;
5
5
  static readonly ARROW_LEFT = 37;
6
+ static readonly TAB = 9;
6
7
  }
@@ -1,4 +1,4 @@
1
- /// <reference types="react" />
1
+ import { KeyboardEvent } from 'react';
2
2
  interface ConfirmDialogProps {
3
3
  actionName?: string;
4
4
  itemCount: number;
@@ -6,6 +6,7 @@ interface ConfirmDialogProps {
6
6
  labelYes?: string;
7
7
  onCancel: () => void;
8
8
  onConfirm: () => void;
9
+ onKeyDown?: (e: KeyboardEvent<HTMLDivElement>) => void;
9
10
  }
10
11
  export declare const ConfirmDialog: (props: ConfirmDialogProps) => JSX.Element;
11
12
  export {};
@@ -3,5 +3,5 @@ interface ButtonGroupProps {
3
3
  children: React.ReactNode;
4
4
  className?: string;
5
5
  }
6
- export declare const ButtonGroup: (props: ButtonGroupProps) => JSX.Element;
6
+ export declare const ButtonGroup: React.ForwardRefExoticComponent<ButtonGroupProps & React.RefAttributes<HTMLDivElement>>;
7
7
  export {};
@@ -5,6 +5,7 @@ interface CommandMenuItemHeaderProps {
5
5
  isHideChevronDown?: boolean;
6
6
  imageUrl?: string;
7
7
  imageHoverUrl?: string;
8
+ setIsRight: (isRight: boolean) => void;
8
9
  className?: string;
9
10
  }
10
11
  export declare const CommandMenuItemHeader: (props: CommandMenuItemHeaderProps) => JSX.Element;
@@ -1,4 +1,4 @@
1
- import React from 'react';
1
+ import React, { KeyboardEvent } from 'react';
2
2
  import { ButtonProps } from '../Button/Button';
3
3
  export interface DialogProps {
4
4
  title: string;
@@ -9,6 +9,7 @@ export interface DialogProps {
9
9
  labelClose?: string;
10
10
  isDismissible?: boolean;
11
11
  onClose?: (dialog: any) => any;
12
+ onKeyDown?: (e: KeyboardEvent<HTMLDivElement>) => void;
12
13
  width?: number;
13
14
  height?: number;
14
15
  content?: {
@@ -1,4 +1,4 @@
1
- /// <reference types="react" />
1
+ import { RefObject } from 'react';
2
2
  import { ButtonProps } from '../Button/Button';
3
3
  interface DialogFooterProps {
4
4
  buttonList?: ButtonProps[];
@@ -8,6 +8,7 @@ interface DialogFooterProps {
8
8
  isDismissible?: boolean;
9
9
  isShowDetailButton?: boolean;
10
10
  dialog?: any;
11
+ buttonGroupRef?: RefObject<HTMLDivElement>;
11
12
  className?: string;
12
13
  }
13
14
  export declare const DialogFooter: (props: DialogFooterProps) => JSX.Element;
@@ -93,7 +93,8 @@ export declare enum ATTRIBUTE {
93
93
  TIP = "Tip",
94
94
  TIP_POSITION = "TipPosition",
95
95
  HTML = "Html",
96
- CLASS = "Class"
96
+ CLASS = "Class",
97
+ VISIBLE = "Visible"
97
98
  }
98
99
  export declare enum DRAG_ITEM_TYPE {
99
100
  CANNOT_DROP = 0,
@@ -172,3 +173,6 @@ export declare enum MENU_NAME {
172
173
  EXPORT = "MenuExport",
173
174
  COLUMNS = "MenuColumns"
174
175
  }
176
+ export declare enum PART_TYPE {
177
+ SIDE_BUTTON = "SideButton"
178
+ }
@@ -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;
@@ -81,4 +81,8 @@ export interface TableViewContext {
81
81
  getFirstCol(section: number): any;
82
82
  focusRow(row: TableViewRow): any;
83
83
  showPopupMenu(): any;
84
+ closeDialog(): void;
85
+ hideTip(): void;
86
+ showMenu(row: TableViewRow, col: string, menu: any, position?: any, func?: Function): void;
87
+ showPopup(menu: any, func?: Function): void;
84
88
  }
@@ -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;
@@ -92,4 +92,8 @@ export declare class TreeGridTableViewContextImpl implements TableViewContext {
92
92
  getFirstCol(section: number): any;
93
93
  focusRow(row: TableViewRow): any;
94
94
  showPopupMenu(): any;
95
+ closeDialog(): void;
96
+ hideTip(): void;
97
+ showMenu(row: TableViewRow, col: string, menu: any, position?: any, func?: Function): void;
98
+ showPopup(menu: any, func?: Function): void;
95
99
  }
@@ -7,6 +7,7 @@ export declare enum LOCALE {
7
7
  TITLE = "app.common.uploader.title",
8
8
  SUCCESS = "app.common.uploader.action.success",
9
9
  ERROR = "app.common.uploader.action.error",
10
+ WARNING = "app.common.uploader.action.warning",
10
11
  PROGRESS_PERCENT = "app.common.uploader.action.progress.percent",
11
12
  PROGRESS_COUNT = "app.common.uploader.action.progress.count",
12
13
  FILE_SUCCESS = "app.common.uploader.file.action.success",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vitrosoftware/common-ui-ts",
3
- "version": "1.1.114",
3
+ "version": "1.1.116",
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.114';
1
+ import { BIMModel, BIMCommon, BIMAnnotation } from '/resource/bimViewer/js/bim-viewer-models.js?version=1.1.116';
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.114';
8
+ from '/resource/bimViewer/js/xeokit/xeokit-sdk.es.js?version=1.1.116';
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.114",
21211
+ value: "resource/pdfViewer/js/pdf.worker.js?version=1.1.116",
21212
21212
  kind: OptionKind.WORKER
21213
21213
  }
21214
21214
  };
@@ -37612,12 +37612,12 @@ function bindBtnToggleSidebarNotes() {
37612
37612
 
37613
37613
  if ($(this).hasClass('toggled')) {
37614
37614
  if (!$('.body__sidebar').is(':visible')) {
37615
- $('#outerContainer').addClass('sidebarNotesOpen');
37616
37615
  context.toggleIssueDetail(false);
37617
37616
  if ($('#btnDrawAnnotation').hasClass('toggled')) {
37618
37617
  $('#btnDrawAnnotation').click();
37619
37618
  }
37620
37619
  context.initIssueList();
37620
+ $('#outerContainer').addClass('sidebarNotesOpen');
37621
37621
  expandSidebarNotes();
37622
37622
  }
37623
37623
  } else {