@vitrosoftware/common-ui-ts 1.1.79 → 1.1.81

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.
@@ -1,19 +1,16 @@
1
1
  import { FileVersionItem } from '../FileVersionSelect/FileVersionItem';
2
2
  export interface BimViewerContext {
3
3
  file: any;
4
- filePath: string;
5
4
  versionId?: string;
6
5
  currentVersionId: string;
7
6
  fileVersionList: FileVersionItem[];
8
7
  onCreateIssue(data: any): any;
9
8
  createLocale(key: string): any;
10
9
  getIssueList(): Promise<any>;
10
+ getFilePath: (itemId: string, version?: string) => string;
11
11
  deleteIssueEvent?: string;
12
12
  updateIssueEvent?: string;
13
- getParentIdList: (elementId: string) => Promise<any>;
14
- getPropertyList: (elementId: string) => Promise<any>;
15
- getChildList: (elementId: string, data: any) => Promise<any>;
16
- getChildIdList: (elementId: string, data: any) => Promise<any>;
13
+ getItem: (id: string) => Promise<any>;
17
14
  onChangeFileVersion: (version: FileVersionItem) => any;
18
15
  currentVersionTooltipText?: string;
19
16
  notCurrentVersionTooltipText?: string;
@@ -36,7 +36,8 @@ export declare enum EVENT {
36
36
  ON_DRAG_OVER = "OnDragOver",
37
37
  ON_DROP = "OnDrop",
38
38
  ON_INIT = "OnInit",
39
- ON_CUSTOM_AJAX = "OnCustomAjax"
39
+ ON_CUSTOM_AJAX = "OnCustomAjax",
40
+ ON_CLICK_SIDE_BUTTON = "OnClickSideButton"
40
41
  }
41
42
  export declare enum URL {
42
43
  LAYOUT = "Layout",
@@ -77,6 +78,7 @@ export declare enum CELL_TYPE {
77
78
  }
78
79
  export declare enum ATTRIBUTE {
79
80
  BUTTON = "Button",
81
+ BUTTON_CLASS = "ButtonClass",
80
82
  BUTTON_TEXT = "ButtonText",
81
83
  ON_CLICK_SIDE_BUTTON = "OnClickSideButton",
82
84
  ICON = "Icon",
@@ -79,4 +79,6 @@ export interface TableViewContext {
79
79
  selectRange(row1: any, col1: any, row2: any, col2: any, select: boolean): any;
80
80
  showColumns(): any;
81
81
  getFirstCol(section: number): any;
82
+ focusRow(row: TableViewRow): any;
83
+ showPopupMenu(): any;
82
84
  }
@@ -89,4 +89,6 @@ export declare class TreeGridTableViewContextImpl implements TableViewContext {
89
89
  selectRange(row1: any, col1: any, row2: any, col2: any, select: boolean): any;
90
90
  showColumns(): any;
91
91
  getFirstCol(section: number): any;
92
+ focusRow(row: TableViewRow): any;
93
+ showPopupMenu(): any;
92
94
  }
@@ -4,7 +4,8 @@ import { BIMModel } from '/resource/bimViewer/js/bim-viewer-models.js';
4
4
  const processByChildIdList = (treeViewNode, event) => {
5
5
  viewer.scene.canvas.spinner.processes++;
6
6
 
7
- const callback = (objIds) => {
7
+ const callback = (objIds) => {
8
+ objIds.push(treeViewNode.objectId);
8
9
  event(objIds);
9
10
  viewer.scene.canvas.spinner.processes--;
10
11
  };
@@ -324,37 +325,6 @@ class VitroTreeViewPlugin extends TreeViewPlugin
324
325
 
325
326
  this.setNodeChecked(checkedNode, visible);
326
327
 
327
- /*
328
- this._withNodeTree(checkedNode, (node) => {
329
- const objectId = node.objectId;
330
- const checkBoxId = `checkbox-${node.nodeId}`;
331
- const isLeaf = (node.children.length === 0);
332
- node.numVisibleEntities = visible ? node.numEntities : 0;
333
- if (isLeaf && (visible !== node.checked)) {
334
- numUpdated++;
335
- }
336
- node.checked = visible;
337
- const checkbox2 = document.getElementById(checkBoxId);
338
- if (checkbox2) {
339
- checkbox2.checked = visible;
340
- }
341
- });
342
-
343
- let parent = checkedNode.parent;
344
- while (parent) {
345
- parent.checked = visible;
346
- const checkbox2 = document.getElementById(`checkbox-${parent.nodeId}`);// Parent checkboxes are always in DOM
347
- if (visible) {
348
- parent.numVisibleEntities += numUpdated;
349
- } else {
350
- parent.numVisibleEntities -= numUpdated;
351
- }
352
- const newChecked = (parent.numVisibleEntities > 0);
353
- if (newChecked !== checkbox2.checked) {
354
- checkbox2.checked = newChecked;
355
- }
356
- parent = parent.parent;
357
- }*/
358
328
  this._muteSceneEvents = false;
359
329
  };
360
330
 
@@ -595,7 +565,7 @@ class VitroTreeViewPlugin extends TreeViewPlugin
595
565
  loadChildNodes(objectId, parentElement, switchElement){
596
566
  viewer.scene.canvas.spinner.processes++;
597
567
 
598
- const callback = (metaObjects, status, jqXHR) =>
568
+ const callback = (metaObjects) =>
599
569
  {
600
570
  const metaModel = viewer.metaScene.metaModels[window.model.id];
601
571
  const metaObjectList = this.addObjectsToMetaModel(metaObjects, metaModel);
@@ -627,7 +597,7 @@ class VitroTreeViewPlugin extends TreeViewPlugin
627
597
  viewer.scene.canvas.spinner.processes--;
628
598
  };
629
599
 
630
- BIMModel.GetChildList(objectId, false, null, callback, error);
600
+ BIMModel.GetChildList(objectId, false, null, callback, error, false);
631
601
  }
632
602
 
633
603
  createChildElement(parentElement, childNodes, switchElement){