@vitrosoftware/common-ui-ts 1.1.16 → 1.1.17
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/common.css +1 -1
- package/css/std/controls/action-handler/action-handler.css +14 -3
- package/css/std/controls/avatar/avatar.css +3 -0
- package/css/std/controls/command-menu/command-menu-dropdown-button.css +9 -4
- package/css/std/controls/dropdown-button/dropdown-button.css +126 -0
- package/css/std/controls/issue-tile/issue-tile-footer.css +31 -0
- package/css/std/controls/issue-tile/issue-tile-header.css +62 -0
- package/css/std/controls/issue-tile/issue-tile.css +24 -0
- package/css/std/controls/lookup-picker/lookup-picker.css +3 -5
- package/css/std/controls/pdf-viewer/compare-side-by-side.css +260 -0
- package/css/std/controls/pdf-viewer/compare.css +504 -0
- package/css/std/controls/pdf-viewer/custom.css +339 -0
- package/css/std/controls/pdf-viewer/debugger.css +113 -0
- package/css/std/controls/pdf-viewer/form.css +133 -0
- package/css/std/controls/pdf-viewer/img/close-compare-viewer.png +0 -0
- package/css/std/controls/pdf-viewer/img/close-compare-viewer_active.png +0 -0
- package/css/std/controls/pdf-viewer/img/compare-overlay.png +0 -0
- package/css/std/controls/pdf-viewer/img/compare-side-by-side.png +0 -0
- package/css/std/controls/pdf-viewer/img/delete-active.png +0 -0
- package/css/std/controls/pdf-viewer/img/delete.png +0 -0
- package/css/std/controls/pdf-viewer/img/dlg-compare-ico.png +0 -0
- package/css/std/controls/pdf-viewer/img/do-compare.png +0 -0
- package/css/std/controls/pdf-viewer/img/draw-annotation.png +0 -0
- package/css/std/controls/pdf-viewer/img/finish-align.png +0 -0
- package/css/std/controls/pdf-viewer/img/finish-align_active.png +0 -0
- package/css/std/controls/pdf-viewer/img/fit-to-view.png +0 -0
- package/css/std/controls/pdf-viewer/img/fit-to-view_active.png +0 -0
- package/css/std/controls/pdf-viewer/img/hide-annotation.png +0 -0
- package/css/std/controls/pdf-viewer/img/hide-colors.png +0 -0
- package/css/std/controls/pdf-viewer/img/hide-colors_active.png +0 -0
- package/css/std/controls/pdf-viewer/img/layer-unvisible.png +0 -0
- package/css/std/controls/pdf-viewer/img/layer-visible.png +0 -0
- package/css/std/controls/pdf-viewer/img/overlay.png +0 -0
- package/css/std/controls/pdf-viewer/img/overlay_active.png +0 -0
- package/css/std/controls/pdf-viewer/img/pan.png +0 -0
- package/css/std/controls/pdf-viewer/img/pan_active.png +0 -0
- package/css/std/controls/pdf-viewer/img/panel-visibility.png +0 -0
- package/css/std/controls/pdf-viewer/img/panel-visibility_active.png +0 -0
- package/css/std/controls/pdf-viewer/img/show-annotation.png +0 -0
- package/css/std/controls/pdf-viewer/img/side-by-side.png +0 -0
- package/css/std/controls/pdf-viewer/img/side-by-side_active.png +0 -0
- package/css/std/controls/pdf-viewer/img/sidebar-notes-toggle.png +0 -0
- package/css/std/controls/pdf-viewer/img/zoom.png +0 -0
- package/css/std/controls/pdf-viewer/img/zoom_active.png +0 -0
- package/css/std/controls/pdf-viewer/pdf-viewer.css +676 -0
- package/css/std/controls/pdf-viewer/print.css +52 -0
- package/css/std/controls/pdf-viewer/sketchpad.css +16 -0
- package/css/std/controls/pdf-viewer/viewer-theme.css +82 -0
- package/css/std/controls/pdf-viewer/viewer.css +3066 -0
- package/css/std/controls/pdf-viewer/zoom.css +14 -0
- package/css/std/controls/table-view/treegrid.css +121 -2
- package/dist/constants/Ctrl.d.ts +2 -0
- package/dist/controls/ActionHandler/ActionHandler.d.ts +1 -1
- package/dist/controls/ActionHandler/ActionHandlerConstants.d.ts +1 -0
- package/dist/controls/Avatar/Avatar.d.ts +1 -0
- package/dist/controls/CommandMenu/CommandMenuDropdownButton.d.ts +1 -1
- package/dist/controls/CommandMenu/CommandMenuSubItem.d.ts +1 -1
- package/dist/controls/DropdownButton/DropdownButton.d.ts +11 -0
- package/dist/controls/DropdownButton/DropdownItem.d.ts +11 -0
- package/dist/controls/IssueTile/IssueTile.d.ts +26 -0
- package/dist/controls/IssueTile/IssueTileConstants.d.ts +3 -0
- package/dist/controls/IssueTile/IssueTileFooter.d.ts +8 -0
- package/dist/controls/IssueTile/IssueTileHeader.d.ts +18 -0
- package/dist/controls/PdfViewer/PdfViewerContext.d.ts +6 -0
- package/dist/controls/TableView/TableViewConstants.d.ts +7 -1
- package/dist/controls/TelerikUploader/TelerikUploader.d.ts +2 -0
- package/dist/controls/TelerikUploader/TelerikUploaderContextImpl.d.ts +2 -1
- package/dist/index.css +296 -35
- package/dist/index.d.ts +5 -0
- package/dist/index.js +1487 -384
- package/dist/index.js.map +1 -1
- package/dist/index.modern.js +1486 -384
- package/dist/index.modern.js.map +1 -1
- package/package.json +2 -2
- package/src/controls/PdfViewer/js/pdf-viewer.js +329 -7
|
@@ -130,7 +130,8 @@
|
|
|
130
130
|
|
|
131
131
|
.TWMenuMain {
|
|
132
132
|
width: 241px !important;
|
|
133
|
-
margin-top:
|
|
133
|
+
margin-top: 24px !important;
|
|
134
|
+
margin-left: -34px;
|
|
134
135
|
border: none;
|
|
135
136
|
border-radius: 4px;
|
|
136
137
|
box-shadow: 0px 4px 14px 0px rgba(0, 0, 0, 0.15), 0px 0px 4px 0px rgba(0, 0, 0, 0.12);
|
|
@@ -145,7 +146,7 @@
|
|
|
145
146
|
background-size: 100%;
|
|
146
147
|
background-repeat: no-repeat;
|
|
147
148
|
position: absolute;
|
|
148
|
-
|
|
149
|
+
left: 24px;
|
|
149
150
|
top: -11px;
|
|
150
151
|
/* dropdown-arrow.svg URL-encoder for SVG */
|
|
151
152
|
background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 16 11' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M6.31554 1.65838L0.382812 11H15.6249L9.69214 1.65838C8.90651 0.421336 7.10117 0.421335 6.31554 1.65838Z' fill='white'/%3E%3C/svg%3E%0A");
|
|
@@ -590,3 +591,121 @@
|
|
|
590
591
|
.TWCell .vitro-flex > div {
|
|
591
592
|
margin-right: 4px;
|
|
592
593
|
}
|
|
594
|
+
|
|
595
|
+
.TWRowAbove {
|
|
596
|
+
margin: 0;
|
|
597
|
+
padding: 0 24px;
|
|
598
|
+
border-bottom: 1px solid #E4E6EC;
|
|
599
|
+
overflow: visible;
|
|
600
|
+
}
|
|
601
|
+
|
|
602
|
+
.TWRowAbove > table {
|
|
603
|
+
border-collapse: separate !important;
|
|
604
|
+
}
|
|
605
|
+
|
|
606
|
+
.TWTabHtmlBase {
|
|
607
|
+
border-radius: 4px 4px 0px 0px;
|
|
608
|
+
padding: 8px 16px !important;
|
|
609
|
+
font-size: 12px;
|
|
610
|
+
line-height: 16px;
|
|
611
|
+
border-top: 1px solid #E4E6EC;
|
|
612
|
+
border-right: 1px solid #E4E6EC;
|
|
613
|
+
border-left: 1px solid #E4E6EC;
|
|
614
|
+
font-weight: unset !important;
|
|
615
|
+
}
|
|
616
|
+
|
|
617
|
+
.TWTabHtmlBase:hover,
|
|
618
|
+
.TWTabHtmlBase:active,
|
|
619
|
+
.TWTabHtml1:hover,
|
|
620
|
+
.TWTabHtml1:active {
|
|
621
|
+
background-color: #F7F9FC !important;
|
|
622
|
+
}
|
|
623
|
+
|
|
624
|
+
.TWTabHtml1 {
|
|
625
|
+
background: #F7F9FC !important;
|
|
626
|
+
font-family: 'InterMedium';
|
|
627
|
+
position: relative;
|
|
628
|
+
}
|
|
629
|
+
|
|
630
|
+
.TWTabHtml1::after {
|
|
631
|
+
content: '';
|
|
632
|
+
position: absolute;
|
|
633
|
+
width: 100%;
|
|
634
|
+
display: block;
|
|
635
|
+
height: 1px;
|
|
636
|
+
background: #F7F9FC;
|
|
637
|
+
top: 100%;
|
|
638
|
+
left: 0;
|
|
639
|
+
}
|
|
640
|
+
|
|
641
|
+
.TWHeaderGroup {
|
|
642
|
+
padding: 0 4px;
|
|
643
|
+
background: #fff;
|
|
644
|
+
}
|
|
645
|
+
|
|
646
|
+
.TWHeaderGroup > div {
|
|
647
|
+
font-family: 'InterMedium';
|
|
648
|
+
font-size: 12px;
|
|
649
|
+
line-height: 16px;
|
|
650
|
+
background: #DCEEFF;
|
|
651
|
+
border-radius: 4px;
|
|
652
|
+
height: 100%;
|
|
653
|
+
width: fit-content !important;
|
|
654
|
+
padding: 4px 8px;
|
|
655
|
+
}
|
|
656
|
+
|
|
657
|
+
.TWSpaceWidthInner {
|
|
658
|
+
height: 100%;
|
|
659
|
+
}
|
|
660
|
+
|
|
661
|
+
.TWDropCols table {
|
|
662
|
+
height: 100%;
|
|
663
|
+
}
|
|
664
|
+
|
|
665
|
+
.TWGroupRow {
|
|
666
|
+
border-right: none !important;
|
|
667
|
+
border-left: none !important;
|
|
668
|
+
border-top: none !important;
|
|
669
|
+
border-bottom: 1px solid #E4E6EC;
|
|
670
|
+
padding: 2px 12px 2px 24px;
|
|
671
|
+
}
|
|
672
|
+
|
|
673
|
+
.TWGroupRow .TWCollapseLeft {
|
|
674
|
+
background-size: 24px;
|
|
675
|
+
padding: 0 28px !important;
|
|
676
|
+
background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='28' height='28' viewBox='0 0 28 28' fill='none'%3E%3Cg filter='url(%23filter0_d_1286_83964)'%3E%3Crect width='24' height='24' rx='4' transform='matrix(1.19249e-08 -1 -1 -1.19249e-08 26 26)' fill='white'/%3E%3Cpath d='M9 12.5L14 17.5L19 12.5' stroke='%234A556C' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/g%3E%3Cdefs%3E%3Cfilter id='filter0_d_1286_83964' x='0' y='0' width='28' height='28' filterUnits='userSpaceOnUse' color-interpolation-filters='sRGB'%3E%3CfeFlood flood-opacity='0' result='BackgroundImageFix'/%3E%3CfeColorMatrix in='SourceAlpha' type='matrix' values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0' result='hardAlpha'/%3E%3CfeMorphology radius='1' operator='dilate' in='SourceAlpha' result='effect1_dropShadow_1286_83964'/%3E%3CfeOffset/%3E%3CfeGaussianBlur stdDeviation='0.5'/%3E%3CfeComposite in2='hardAlpha' operator='out'/%3E%3CfeColorMatrix type='matrix' values='0 0 0 0 0.890196 0 0 0 0 0.898039 0 0 0 0 0.909804 0 0 0 1 0'/%3E%3CfeBlend mode='normal' in2='BackgroundImageFix' result='effect1_dropShadow_1286_83964'/%3E%3CfeBlend mode='normal' in='SourceGraphic' in2='effect1_dropShadow_1286_83964' result='shape'/%3E%3C/filter%3E%3C/defs%3E%3C/svg%3E") !important;
|
|
677
|
+
}
|
|
678
|
+
|
|
679
|
+
.TWGroupRow .TWExpandLeft {
|
|
680
|
+
background-size: 24px;
|
|
681
|
+
padding: 0 28px !important;
|
|
682
|
+
background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='28' height='28' viewBox='0 0 28 28' fill='none'%3E%3Cg filter='url(%23filter0_d_1286_83977)'%3E%3Crect width='24' height='24' rx='4' transform='matrix(-1 0 0 1 26 2)' fill='white'/%3E%3Cpath d='M12.5 19L17.5 14L12.5 9' stroke='%234A556C' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/g%3E%3Cdefs%3E%3Cfilter id='filter0_d_1286_83977' x='0' y='0' width='28' height='28' filterUnits='userSpaceOnUse' color-interpolation-filters='sRGB'%3E%3CfeFlood flood-opacity='0' result='BackgroundImageFix'/%3E%3CfeColorMatrix in='SourceAlpha' type='matrix' values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0' result='hardAlpha'/%3E%3CfeMorphology radius='1' operator='dilate' in='SourceAlpha' result='effect1_dropShadow_1286_83977'/%3E%3CfeOffset/%3E%3CfeGaussianBlur stdDeviation='0.5'/%3E%3CfeComposite in2='hardAlpha' operator='out'/%3E%3CfeColorMatrix type='matrix' values='0 0 0 0 0.890196 0 0 0 0 0.898039 0 0 0 0 0.909804 0 0 0 1 0'/%3E%3CfeBlend mode='normal' in2='BackgroundImageFix' result='effect1_dropShadow_1286_83977'/%3E%3CfeBlend mode='normal' in='SourceGraphic' in2='effect1_dropShadow_1286_83977' result='shape'/%3E%3C/filter%3E%3C/defs%3E%3C/svg%3E") !important;
|
|
683
|
+
}
|
|
684
|
+
|
|
685
|
+
.TWDropCols {
|
|
686
|
+
padding: 0px !important;
|
|
687
|
+
}
|
|
688
|
+
|
|
689
|
+
.group-row {
|
|
690
|
+
background-color: #F7F9FC !important;
|
|
691
|
+
border-bottom: 1px solid #E4E6EC;
|
|
692
|
+
}
|
|
693
|
+
|
|
694
|
+
.group-text {
|
|
695
|
+
color: #4A556C;
|
|
696
|
+
font-family: 'InterMedium';
|
|
697
|
+
font-size: 14px;
|
|
698
|
+
line-height: 16px;
|
|
699
|
+
}
|
|
700
|
+
|
|
701
|
+
.vitro-group-active > div {
|
|
702
|
+
border-radius: 4px;
|
|
703
|
+
border: 1px dashed #8E98A3;
|
|
704
|
+
background: #F3F8FF;
|
|
705
|
+
color: #F3F8FF !important;
|
|
706
|
+
height: 80%;
|
|
707
|
+
}
|
|
708
|
+
|
|
709
|
+
.TWHeaderGroupCustom {
|
|
710
|
+
padding: 0;
|
|
711
|
+
}
|
package/dist/constants/Ctrl.d.ts
CHANGED
|
@@ -10,6 +10,8 @@ export declare class CTRL {
|
|
|
10
10
|
static readonly BRACE_CLOSE = "}";
|
|
11
11
|
static readonly PARENTHESIS_OPEN = "(";
|
|
12
12
|
static readonly PARENTHESIS_CLOSE = ")";
|
|
13
|
+
static readonly SQUARE_BRACKET_OPEN = "[";
|
|
14
|
+
static readonly SQUARE_BRACKET_CLOSE = "]";
|
|
13
15
|
static readonly EQUAL = "=";
|
|
14
16
|
static readonly AMPERSAND = "&";
|
|
15
17
|
static readonly DASH = "-";
|
|
@@ -2,6 +2,7 @@ export declare enum LOCALE {
|
|
|
2
2
|
CONF_SINGLE = "app.common.msg.action.conf.single",
|
|
3
3
|
CONF_MULTI = "app.common.msg.action.conf.multi",
|
|
4
4
|
ITEM_COUNT = "app.common.actionHandler.itemCount",
|
|
5
|
+
ITEM_NAME = "app.common.actionHandler.itemName",
|
|
5
6
|
SUCCESS_SINGLE = "app.common.msg.action.success.single",
|
|
6
7
|
SUCCESS_MULTI = "app.common.msg.action.success.multi",
|
|
7
8
|
ERROR_SINGLE = "app.common.msg.action.error.single",
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { DropdownItem } from './DropdownItem';
|
|
3
|
+
interface DropdownButtonProps {
|
|
4
|
+
itemList: DropdownItem[];
|
|
5
|
+
title?: string;
|
|
6
|
+
isIgnoreOverflow?: boolean;
|
|
7
|
+
onToggle?: (state: any, e: any) => any;
|
|
8
|
+
className?: string;
|
|
9
|
+
}
|
|
10
|
+
export declare const DropdownButton: (props: DropdownButtonProps) => JSX.Element;
|
|
11
|
+
export {};
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
interface IssueTileProps {
|
|
3
|
+
id: string;
|
|
4
|
+
url?: string;
|
|
5
|
+
text: string;
|
|
6
|
+
userName: string;
|
|
7
|
+
userImage?: string;
|
|
8
|
+
date: any;
|
|
9
|
+
fileVersion: number;
|
|
10
|
+
fileVersionUrl?: string;
|
|
11
|
+
status: string;
|
|
12
|
+
statusColor?: string;
|
|
13
|
+
actionList?: {
|
|
14
|
+
key: string;
|
|
15
|
+
text: string;
|
|
16
|
+
value: any;
|
|
17
|
+
onClick: (e: any, value: string) => any;
|
|
18
|
+
}[];
|
|
19
|
+
onClick: () => any;
|
|
20
|
+
onBlur: (e: any) => any;
|
|
21
|
+
onShowMoreClick: (e: any, issue?: any) => any;
|
|
22
|
+
isActive?: boolean;
|
|
23
|
+
createLocale: (key: string) => any;
|
|
24
|
+
}
|
|
25
|
+
export declare const IssueTile: (props: IssueTileProps) => JSX.Element;
|
|
26
|
+
export {};
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
interface IssueTileHeaderProps {
|
|
3
|
+
id: string;
|
|
4
|
+
url?: string;
|
|
5
|
+
userName: string;
|
|
6
|
+
userImage?: string;
|
|
7
|
+
date: any;
|
|
8
|
+
fileVersion: number;
|
|
9
|
+
fileVersionUrl?: string;
|
|
10
|
+
actionList?: {
|
|
11
|
+
key: string;
|
|
12
|
+
text: string;
|
|
13
|
+
value: any;
|
|
14
|
+
onClick: (value: any, e: any) => any;
|
|
15
|
+
}[];
|
|
16
|
+
}
|
|
17
|
+
export declare const IssueTileHeader: (props: IssueTileHeaderProps) => JSX.Element;
|
|
18
|
+
export {};
|
|
@@ -4,4 +4,10 @@ export interface PdfViewerContext {
|
|
|
4
4
|
getFile(id: string): any;
|
|
5
5
|
getFileVersionList(id: string): any;
|
|
6
6
|
createLocale(key: string): any;
|
|
7
|
+
updateIssue(name: string, description: string): any;
|
|
8
|
+
getIssueList(): Promise<any>;
|
|
9
|
+
onCreateIssue(data: any): any;
|
|
10
|
+
toggleIssueDetail(show: boolean): any;
|
|
11
|
+
deleteIssueEvent?: string;
|
|
12
|
+
updateIssueEvent?: string;
|
|
7
13
|
}
|
|
@@ -29,7 +29,9 @@ export declare enum EVENT {
|
|
|
29
29
|
ON_SORT = "OnSort",
|
|
30
30
|
ON_START_DRAG = "OnStartDrag",
|
|
31
31
|
ON_SUGGEST = "OnSuggest",
|
|
32
|
-
ON_VALUE_CHANGED = "OnValueChanged"
|
|
32
|
+
ON_VALUE_CHANGED = "OnValueChanged",
|
|
33
|
+
ON_DRAG_OVER = "OnDragOver",
|
|
34
|
+
ON_DROP = "OnDrop"
|
|
33
35
|
}
|
|
34
36
|
export declare enum URL {
|
|
35
37
|
LAYOUT = "Layout",
|
|
@@ -132,3 +134,7 @@ export declare enum ACTION {
|
|
|
132
134
|
SHOW_POPUP_MENU = "ShowPopupMenu",
|
|
133
135
|
SHOW_MENU = "ShowMenu"
|
|
134
136
|
}
|
|
137
|
+
export declare enum SECTION {
|
|
138
|
+
HEADER = "Header",
|
|
139
|
+
SPACE = "Space"
|
|
140
|
+
}
|
|
@@ -5,5 +5,7 @@ export interface TelerikUploaderProps {
|
|
|
5
5
|
onInit: (uploder: TelerikUploaderContext) => void;
|
|
6
6
|
settings: TelerikUploaderSettings;
|
|
7
7
|
id: string;
|
|
8
|
+
isAutoClose?: boolean;
|
|
9
|
+
durationMs?: number;
|
|
8
10
|
}
|
|
9
11
|
export declare const TelerikUploader: (props: TelerikUploaderProps) => JSX.Element;
|
|
@@ -8,6 +8,7 @@ export declare class TelerikUploaderContextImpl implements TelerikUploaderContex
|
|
|
8
8
|
private token;
|
|
9
9
|
private settings;
|
|
10
10
|
private localeService;
|
|
11
|
+
private onUploadComplete;
|
|
11
12
|
private successCount;
|
|
12
13
|
private errorCount;
|
|
13
14
|
private fileList;
|
|
@@ -15,7 +16,7 @@ export declare class TelerikUploaderContextImpl implements TelerikUploaderContex
|
|
|
15
16
|
private progressBar;
|
|
16
17
|
private title;
|
|
17
18
|
private subtitle;
|
|
18
|
-
constructor(uploader: HTMLInputElement, container: HTMLDivElement, dropZone: HTMLDivElement, settings: TelerikUploaderSettings, localeService: LocaleService);
|
|
19
|
+
constructor(uploader: HTMLInputElement, container: HTMLDivElement, dropZone: HTMLDivElement, settings: TelerikUploaderSettings, localeService: LocaleService, onUploadComplete: () => any);
|
|
19
20
|
clearAllFiles(): void;
|
|
20
21
|
private resetUploader;
|
|
21
22
|
private initAuthorization;
|