@vitrosoftware/common-ui-ts 1.1.214 → 1.1.216
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.
- package/css/std/controls/bim-viewer/bim-viewer-index.css +9 -1
- package/css/std/controls/bim-viewer/prop-inspector.css +2 -0
- package/css/std/controls/bim-viewer/sidebar.css +7 -1
- package/css/std/controls/pdf-viewer/custom.css +6 -0
- package/css/std/controls/pdf-viewer/pdf-viewer-index.css +6 -0
- package/dist/index.js +7 -4
- package/dist/index.js.map +1 -1
- package/dist/src/controls/TableView/TableViewConstants.d.ts +5 -2
- package/dist/src/services/ColumnService.d.ts +3 -2
- package/package.json +1 -1
- package/src/controls/BimViewer/js/bim-viewer.js +8 -8
- package/src/controls/DxfViewer/js/dxf-viewer.js +14 -16
- package/src/controls/PdfViewer/js/pdf-viewer.js +106 -25
|
@@ -60,7 +60,8 @@ export declare enum EVENT {
|
|
|
60
60
|
ON_GET_TYPE = "OnGetType",
|
|
61
61
|
ON_BUTTON_CLICK = "OnButtonClick",
|
|
62
62
|
ON_AFTER_COL_RESIZE = "OnAfterColResize",
|
|
63
|
-
ON_EXPORT = "OnExport"
|
|
63
|
+
ON_EXPORT = "OnExport",
|
|
64
|
+
ON_AFTER_SECTION_RESIZE = "OnAfterSectionResize"
|
|
64
65
|
}
|
|
65
66
|
export declare enum CFG_ATTRIBUTE {
|
|
66
67
|
SELECTING_SINGLE = "SelectingSingle",
|
|
@@ -76,7 +77,9 @@ export declare enum CFG_ATTRIBUTE {
|
|
|
76
77
|
CONST_WIDTH = "ConstWidth",
|
|
77
78
|
CALCULATED_CHANGES = "CalculatedChanges",
|
|
78
79
|
CUSTOM_SCROLL = "CustomScroll",
|
|
79
|
-
SHOW_V_SCROLL = "ShowVScroll"
|
|
80
|
+
SHOW_V_SCROLL = "ShowVScroll",
|
|
81
|
+
MID_WIDTH = "MidWidth",
|
|
82
|
+
RIGHT_WIDTH = "RightWidth"
|
|
80
83
|
}
|
|
81
84
|
export declare enum URL {
|
|
82
85
|
LAYOUT = "Layout",
|
|
@@ -1,9 +1,10 @@
|
|
|
1
|
+
import type { ListConfig } from '../models/ListConfig';
|
|
1
2
|
export interface ColumnService {
|
|
2
|
-
getSystemList(): {
|
|
3
|
+
getSystemList(listConfig: ListConfig): {
|
|
3
4
|
internalName: string;
|
|
4
5
|
name: string;
|
|
5
6
|
component: string;
|
|
6
7
|
}[];
|
|
7
|
-
getName(internalName: string): string;
|
|
8
|
+
getName(internalName: string, listConfig: ListConfig): string;
|
|
8
9
|
isSystemUserLookupPicker(internalName: string): boolean;
|
|
9
10
|
}
|
package/package.json
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { BIMModel, BIMCommon, BIMAnnotation } from '/resource/bimViewer/js/bim-viewer-models.js?version=1.1.
|
|
1
|
+
import { BIMModel, BIMCommon, BIMAnnotation } from '/resource/bimViewer/js/bim-viewer-models.js?version=1.1.216';
|
|
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.
|
|
8
|
+
from '/resource/bimViewer/js/xeokit/xeokit-sdk.es.js?version=1.1.216';
|
|
9
9
|
|
|
10
10
|
|
|
11
11
|
//----------------------------------------------------------------------------------------------------------------------
|
|
@@ -4018,8 +4018,8 @@ function onPaneRightResizeHandler(width) {
|
|
|
4018
4018
|
}
|
|
4019
4019
|
|
|
4020
4020
|
function onIssueDetailResizeEndHandler(event, ui) {
|
|
4021
|
-
$('#propInspector').width(ui.size.width)
|
|
4022
|
-
$('#sidebarWrap').width(ui.size.width)
|
|
4021
|
+
$('#propInspector').width(ui.size.width);
|
|
4022
|
+
$('#sidebarWrap').width(ui.size.width);
|
|
4023
4023
|
setPaneRightSettings(ui.size.width);
|
|
4024
4024
|
}
|
|
4025
4025
|
|
|
@@ -4051,8 +4051,8 @@ function onPropsInspectorResizeHandler(width) {
|
|
|
4051
4051
|
};
|
|
4052
4052
|
|
|
4053
4053
|
function onPropsInspectorResizeEndHandler(event, ui) {
|
|
4054
|
-
$('#issueDetail').width(ui.size.width)
|
|
4055
|
-
$('#sidebarWrap').width(ui.size.width)
|
|
4054
|
+
$('#issueDetail').width(ui.size.width);
|
|
4055
|
+
$('#sidebarWrap').width(ui.size.width);
|
|
4056
4056
|
setPaneRightSettings(ui.size.width);
|
|
4057
4057
|
}
|
|
4058
4058
|
|
|
@@ -4065,8 +4065,8 @@ function onIssueListResizeHandler(width) {
|
|
|
4065
4065
|
}
|
|
4066
4066
|
|
|
4067
4067
|
function onIssueListResizeEndHandler(event, ui) {
|
|
4068
|
-
$('#issueDetail').width(ui.size.width)
|
|
4069
|
-
$('#propInspector').width(ui.size.width)
|
|
4068
|
+
$('#issueDetail').width(ui.size.width);
|
|
4069
|
+
$('#propInspector').width(ui.size.width);
|
|
4070
4070
|
setPaneRightSettings(ui.size.width);
|
|
4071
4071
|
}
|
|
4072
4072
|
|
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
import * as three from '/resource/dxfViewer/js/three/three.module.js?version=1.1.
|
|
2
|
-
import { Matrix3, Vector2 } from '/resource/dxfViewer/js/three/three.module.js?version=1.1.
|
|
3
|
-
import { Batch, DxfViewer, Layer } from '/resource/dxfViewer/js/viewer/DxfViewer.js?version=1.1.
|
|
4
|
-
import { Block as SceneBlock } from '/resource/dxfViewer/js/viewer/DxfScene.js?version=1.1.
|
|
5
|
-
import { Block } from '/resource/dxfViewer/js/viewer/DxfViewer.js?version=1.1.
|
|
6
|
-
import { DxfScene, Entity, ColorCode } from '/resource/dxfViewer/js/viewer/DxfScene.js?version=1.1.
|
|
7
|
-
import { TextRenderer, ParseSpecialChars, HAlign, VAlign } from '/resource/dxfViewer/js/viewer/TextRenderer.js?version=1.1.
|
|
8
|
-
import { DxfWorker } from '/resource/dxfViewer/js/viewer/DxfWorker.js?version=1.1.
|
|
9
|
-
import { DxfFetcher } from '/resource/dxfViewer/js/viewer/DxfFetcher.js?version=1.1.
|
|
10
|
-
import DxfParser from '/resource/dxfViewer/js/viewer/parser/DxfParser.js?version=1.1.
|
|
11
|
-
import { RenderBatch } from '/resource/dxfViewer/js/viewer/DxfScene.js?version=1.1.
|
|
12
|
-
import { DynamicBuffer, NativeType } from '/resource/dxfViewer/js/viewer/DynamicBuffer.js?version=1.1.
|
|
13
|
-
import { OrbitControls } from '/resource/dxfViewer/js/viewer/OrbitControls.js?version=1.1.
|
|
14
|
-
import { CSS2DRenderer, CSS2DObject } from '/resource/dxfViewer/js/three/three.module.js?version=1.1.
|
|
1
|
+
import * as three from '/resource/dxfViewer/js/three/three.module.js?version=1.1.216';
|
|
2
|
+
import { Matrix3, Vector2 } from '/resource/dxfViewer/js/three/three.module.js?version=1.1.216';
|
|
3
|
+
import { Batch, DxfViewer, Layer } from '/resource/dxfViewer/js/viewer/DxfViewer.js?version=1.1.216';
|
|
4
|
+
import { Block as SceneBlock } from '/resource/dxfViewer/js/viewer/DxfScene.js?version=1.1.216';
|
|
5
|
+
import { Block } from '/resource/dxfViewer/js/viewer/DxfViewer.js?version=1.1.216';
|
|
6
|
+
import { DxfScene, Entity, ColorCode } from '/resource/dxfViewer/js/viewer/DxfScene.js?version=1.1.216';
|
|
7
|
+
import { TextRenderer, ParseSpecialChars, HAlign, VAlign } from '/resource/dxfViewer/js/viewer/TextRenderer.js?version=1.1.216';
|
|
8
|
+
import { DxfWorker } from '/resource/dxfViewer/js/viewer/DxfWorker.js?version=1.1.216';
|
|
9
|
+
import { DxfFetcher } from '/resource/dxfViewer/js/viewer/DxfFetcher.js?version=1.1.216';
|
|
10
|
+
import DxfParser from '/resource/dxfViewer/js/viewer/parser/DxfParser.js?version=1.1.216';
|
|
11
|
+
import { RenderBatch } from '/resource/dxfViewer/js/viewer/DxfScene.js?version=1.1.216';
|
|
12
|
+
import { DynamicBuffer, NativeType } from '/resource/dxfViewer/js/viewer/DynamicBuffer.js?version=1.1.216';
|
|
13
|
+
import { OrbitControls } from '/resource/dxfViewer/js/viewer/OrbitControls.js?version=1.1.216';
|
|
14
|
+
import { CSS2DRenderer, CSS2DObject } from '/resource/dxfViewer/js/three/three.module.js?version=1.1.216';
|
|
15
15
|
|
|
16
16
|
let treeViewData = [];
|
|
17
17
|
let notes = [];
|
|
@@ -3303,8 +3303,6 @@ function emit(eventName, event) {
|
|
|
3303
3303
|
createThumbnail(event.detail.space.layout.name, window.dxfViewer.GetSpace());
|
|
3304
3304
|
initNotesBySpaceHandle(spaceHandle);
|
|
3305
3305
|
initLayers();
|
|
3306
|
-
window.dxfViewer.controls.minZoom = 0.1;
|
|
3307
|
-
window.dxfViewer.controls.maxZoom = 10;
|
|
3308
3306
|
}
|
|
3309
3307
|
else if (eventName == 'dxf-drawableCreated') {
|
|
3310
3308
|
const detail = event.detail;
|
|
@@ -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.
|
|
21211
|
+
value: "resource/pdfViewer/js/pdf.worker.js?version=1.1.216",
|
|
21212
21212
|
kind: OptionKind.WORKER
|
|
21213
21213
|
}
|
|
21214
21214
|
};
|
|
@@ -25746,6 +25746,9 @@ class PDFSidebar {
|
|
|
25746
25746
|
getWidth(){
|
|
25747
25747
|
return this.#width;
|
|
25748
25748
|
}
|
|
25749
|
+
mouseUp(evt) {
|
|
25750
|
+
this.#mouseUp(evt);
|
|
25751
|
+
}
|
|
25749
25752
|
}
|
|
25750
25753
|
exports.PDFSidebar = PDFSidebar;
|
|
25751
25754
|
|
|
@@ -37561,9 +37564,6 @@ function initCompare() {
|
|
|
37561
37564
|
}
|
|
37562
37565
|
$('#docAPage').val(1);
|
|
37563
37566
|
$('#docBPage').val(1);
|
|
37564
|
-
|
|
37565
|
-
|
|
37566
|
-
bindPageSelect();
|
|
37567
37567
|
}
|
|
37568
37568
|
|
|
37569
37569
|
function getLoadedVersionId() {
|
|
@@ -37706,24 +37706,6 @@ function createComparePanel(compareObjList) {
|
|
|
37706
37706
|
return wrap;
|
|
37707
37707
|
}
|
|
37708
37708
|
|
|
37709
|
-
function bindPageSelect() {
|
|
37710
|
-
$(document).on('webViewerPageRendered', function (e, pageNr) {
|
|
37711
|
-
$('#docAPageList').html(null);
|
|
37712
|
-
$('#docBPageList').html(null);
|
|
37713
|
-
let pageCount = getPdfPageCount();
|
|
37714
|
-
for (var i = 1; i <= pageCount; i++) {
|
|
37715
|
-
$('#docAPageList').append($('<li>', {
|
|
37716
|
-
value: i,
|
|
37717
|
-
text: i,
|
|
37718
|
-
}));
|
|
37719
|
-
$('#docBPageList').append($('<li>', {
|
|
37720
|
-
value: i,
|
|
37721
|
-
text: i,
|
|
37722
|
-
}));
|
|
37723
|
-
}
|
|
37724
|
-
});
|
|
37725
|
-
}
|
|
37726
|
-
|
|
37727
37709
|
function bindBtnDoCompare() {
|
|
37728
37710
|
$('#btnDoCompare').click(function () {
|
|
37729
37711
|
if ($(this).hasClass('disabled')) {
|
|
@@ -38583,7 +38565,8 @@ function initNotes() {
|
|
|
38583
38565
|
});
|
|
38584
38566
|
const pageLoaded = $('.page[data-loaded="true"]');
|
|
38585
38567
|
pageLoaded?.each((index, item) => {
|
|
38586
|
-
|
|
38568
|
+
const pageNr = $(item).attr('data-page-number');
|
|
38569
|
+
if (!renderedPageList.includes(pageNr)) {
|
|
38587
38570
|
initMarkupByPageNr(pageNr);
|
|
38588
38571
|
}
|
|
38589
38572
|
});
|
|
@@ -38611,6 +38594,7 @@ function initPaneWidth() {
|
|
|
38611
38594
|
}, 50);
|
|
38612
38595
|
}
|
|
38613
38596
|
initItemChangedEventListener();
|
|
38597
|
+
bindOnSidebarToggle();
|
|
38614
38598
|
}
|
|
38615
38599
|
|
|
38616
38600
|
function setWidthPaneLeft(width) {
|
|
@@ -38631,11 +38615,9 @@ function onResizeEndPaneRightHandler(event, ui) {
|
|
|
38631
38615
|
setSettings(settings);
|
|
38632
38616
|
if (ui.element.hasClass('body__sidebar')) {
|
|
38633
38617
|
setWidthSidebarIssueDetail(ui.size.width);
|
|
38634
|
-
$('.vitro-issue-detail').css('left', $('#viewerContainer').width() + 'px');
|
|
38635
38618
|
}
|
|
38636
38619
|
if (ui.element.hasClass('vitro-issue-detail')) {
|
|
38637
38620
|
setWidthSidebarIssueList(ui.size.width);
|
|
38638
|
-
$('.body__sidebar').css('left', $('#viewerContainer').width() + 'px');
|
|
38639
38621
|
}
|
|
38640
38622
|
}
|
|
38641
38623
|
|
|
@@ -38693,6 +38675,105 @@ function onItemChanged() {
|
|
|
38693
38675
|
if (!$('.vitro-issue-detail').resizable('instance')) {
|
|
38694
38676
|
initResizable($('.vitro-issue-detail'));
|
|
38695
38677
|
}
|
|
38678
|
+
}
|
|
38679
|
+
|
|
38680
|
+
function setCompareDlgPageDropdownValues(dropDownId, pageMax, currentPage, docName) {
|
|
38681
|
+
var dropDownElm = $('#' + dropDownId + 'List');
|
|
38682
|
+
dropDownElm.html(null);
|
|
38683
|
+
for (var i = 1; i <= pageMax; i++) {
|
|
38684
|
+
dropDownElm.append($('<li>', {
|
|
38685
|
+
value: i,
|
|
38686
|
+
text: i,
|
|
38687
|
+
}));
|
|
38688
|
+
}
|
|
38689
|
+
}
|
|
38690
|
+
|
|
38691
|
+
function loadDocAObj(pdfUrl) {
|
|
38692
|
+
var thumbContainer = $('.compare-dlg_doc-a_thumb');
|
|
38693
|
+
var dropDownId = 'docAPage';
|
|
38694
|
+
clearThumbContainer(thumbContainer);
|
|
38695
|
+
if (isComparedDocumentCurrentOpened(pdfUrl)) {
|
|
38696
|
+
pdfDocObjA = PDFViewerApplication.pdfDocument;
|
|
38697
|
+
var currentPage = getCurrentPagePreloadedDocument(dropDownId);
|
|
38698
|
+
updateCompareDlg(dropDownId, currentPage, getPdfPageCount(), compareObjList.docA.name, pdfDocObjA, thumbContainer);
|
|
38699
|
+
} else {
|
|
38700
|
+
var loadingTask = pdfjsLib.getDocument(pdfUrl);
|
|
38701
|
+
loadingTask.promise.then(function (pdf) {
|
|
38702
|
+
pdfDocObjA = pdf;
|
|
38703
|
+
var currentPage = getCurrentPageNotPreloadedDocument(dropDownId, pdf.numPages);
|
|
38704
|
+
updateCompareDlg(dropDownId, currentPage, pdf.numPages, compareObjList.docA.name, pdfDocObjA, thumbContainer);
|
|
38705
|
+
});
|
|
38706
|
+
}
|
|
38707
|
+
checkAllowCompare();
|
|
38708
|
+
}
|
|
38709
|
+
|
|
38710
|
+
function loadDocBObj(pdfUrl) {
|
|
38711
|
+
var thumbContainer = $('.compare-dlg_doc-b_thumb');
|
|
38712
|
+
var dropDownId = 'docBPage';
|
|
38713
|
+
clearThumbContainer(thumbContainer);
|
|
38714
|
+
if (isComparedDocumentCurrentOpened(pdfUrl)) {
|
|
38715
|
+
pdfDocObjB = PDFViewerApplication.pdfDocument;
|
|
38716
|
+
var currentPage = getCurrentPagePreloadedDocument(dropDownId);
|
|
38717
|
+
updateCompareDlg(dropDownId, currentPage, getPdfPageCount(), compareObjList.docB.name, pdfDocObjB, thumbContainer);
|
|
38718
|
+
} else {
|
|
38719
|
+
var loadingTask = pdfjsLib.getDocument(pdfUrl);
|
|
38720
|
+
loadingTask.promise.then(function (pdf) {
|
|
38721
|
+
pdfDocObjB = pdf;
|
|
38722
|
+
var currentPage = getCurrentPageNotPreloadedDocument(dropDownId, pdf.numPages);
|
|
38723
|
+
updateCompareDlg(dropDownId, currentPage, pdf.numPages, compareObjList.docB.name, pdfDocObjB, thumbContainer);
|
|
38724
|
+
});
|
|
38725
|
+
}
|
|
38726
|
+
checkAllowCompare();
|
|
38727
|
+
}
|
|
38728
|
+
|
|
38729
|
+
function updateCompareDlg(dropDownId, currentPage, pageCount, docName, pdf, thumbContainer) {
|
|
38730
|
+
$('#' + dropDownId).val(currentPage);
|
|
38731
|
+
setCompareDlgPageDropdownValues(dropDownId, pageCount, currentPage, docName);
|
|
38732
|
+
createThumbnail(pdf, currentPage, thumbContainer);
|
|
38733
|
+
}
|
|
38734
|
+
|
|
38735
|
+
function getCurrentPagePreloadedDocument(dropDownId) {
|
|
38736
|
+
const inputPage = $('#' + dropDownId).val() ? parseInt($('#' + dropDownId).val()) : false;
|
|
38737
|
+
var currentPage = inputPage && inputPage <= getPdfPageCount() ? inputPage : getCurrentPage();
|
|
38738
|
+
return currentPage;
|
|
38739
|
+
}
|
|
38740
|
+
|
|
38741
|
+
function getCurrentPageNotPreloadedDocument(dropDownId, pageCount) {
|
|
38742
|
+
var currentPage = $('#' + dropDownId).val() ? parseInt($('#' + dropDownId).val()) : getCurrentPage();
|
|
38743
|
+
if (currentPage > pageCount || !currentPage) {
|
|
38744
|
+
currentPage = pageNrDefault;
|
|
38745
|
+
}
|
|
38746
|
+
return currentPage;
|
|
38747
|
+
}
|
|
38748
|
+
|
|
38749
|
+
function checkAllowCompare() {
|
|
38750
|
+
if (isNotAllowCompare()) {
|
|
38751
|
+
showComparisonWarning();
|
|
38752
|
+
$('#btnDoCompare').addClass('disabled');
|
|
38753
|
+
}
|
|
38754
|
+
}
|
|
38755
|
+
|
|
38756
|
+
function bindOnSidebarToggle() {
|
|
38757
|
+
$('#btnToggleSidebarNotes').on('click', function () {
|
|
38758
|
+
if (PDFViewerApplication?.pdfSidebar?.isOpen && isScaleModeRelative()) {
|
|
38759
|
+
setTimeout(function () { PDFViewerApplication.pdfSidebar.mouseUp() }, 100);
|
|
38760
|
+
}
|
|
38761
|
+
});
|
|
38762
|
+
$('.body__sidebar-close').on('click', function () {
|
|
38763
|
+
if (PDFViewerApplication?.pdfSidebar?.isOpen && isScaleModeRelative()) {
|
|
38764
|
+
setTimeout(function () { PDFViewerApplication.pdfSidebar.mouseUp() }, 100);
|
|
38765
|
+
}
|
|
38766
|
+
});
|
|
38767
|
+
$('#sidebarToggle').on('click', function () {
|
|
38768
|
+
if (($('.body__sidebar').is(':visible') || $('.vitro-issue-detail').is(':visible')) && isScaleModeRelative()) {
|
|
38769
|
+
setTimeout(function () { PDFViewerApplication.pdfSidebar.mouseUp() }, 100);
|
|
38770
|
+
}
|
|
38771
|
+
});
|
|
38772
|
+
}
|
|
38773
|
+
|
|
38774
|
+
function isScaleModeRelative() {
|
|
38775
|
+
const currentScaleMode = PDFViewerApplication.pdfViewer._currentScaleValue;
|
|
38776
|
+
return currentScaleMode == 'page-width' || currentScaleMode == 'page-fit' || currentScaleMode == 'auto';
|
|
38696
38777
|
}
|
|
38697
38778
|
$(document).ready(function() {
|
|
38698
38779
|
context.openFile();
|