@vitrosoftware/common-ui-ts 1.1.28 → 1.1.29

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 CHANGED
@@ -34,7 +34,6 @@
34
34
  margin-right: 12px;
35
35
  margin-bottom: 0;
36
36
  padding-bottom: 12px;
37
- margin-bottom: 8px;
38
37
  }
39
38
 
40
39
  @media (max-width: 800px) {
@@ -43,6 +42,7 @@
43
42
  font-size: 18px;
44
43
  line-height: 27px;
45
44
  margin: 0;
45
+ margin-right: 12px;
46
46
  }
47
47
 
48
48
  :global(.pane) > :global(.vitro-flex) {
@@ -1,6 +1,7 @@
1
1
  .vitro-item {
2
- margin-bottom: 22px;
2
+ margin-bottom: 16px;
3
3
  min-height: 32px;
4
+ width: 100%;
4
5
  }
5
6
 
6
7
  .vitro-item.vitro-active {
@@ -11,24 +12,33 @@
11
12
  width: 100%;
12
13
  }
13
14
 
15
+ .vitro-title {
16
+ white-space: nowrap;
17
+ overflow: hidden;
18
+ text-overflow: ellipsis;
19
+ display: flex;
20
+ align-items: center;
21
+ }
22
+
14
23
  .vitro-title span {
15
24
  color: #222d44;
25
+ font-size: 14px;
26
+ line-height: 16px;
27
+ font-family: 'InterMedium';
28
+ text-overflow: ellipsis;
29
+ overflow: hidden;
16
30
  }
17
31
 
18
32
  .vitro-due-date {
19
- font-size: 8pt;
20
- color: #bdbdbd;
21
- float: right;
22
33
  white-space: nowrap;
34
+ color: #4A556C !important;
35
+ margin-left: 8px;
36
+ font-family: 'InterRegular' !important;
23
37
  }
24
38
 
25
39
  .vitro-content {
26
- margin-top: -1px;
27
40
  width: 100%;
28
- display: flex;
29
- justify-content: space-between;
30
- align-items: center;
31
- margin-right: 4px;
41
+ overflow: hidden;
32
42
  }
33
43
 
34
44
  .vitro-content p {
@@ -38,7 +48,6 @@
38
48
  color: #bdbdbd;
39
49
  font-size: 9pt;
40
50
  line-height: 14px;
41
- margin-top: 3px;
42
51
  }
43
52
 
44
53
  .vitro-content p span {
@@ -66,9 +75,9 @@
66
75
  }
67
76
 
68
77
  .vitro-dropdown-button {
69
- align-self: flex-start;
78
+ margin-left: auto;
70
79
  }
71
80
 
72
81
  .vitro-avatar {
73
- margin-right: 4px;
82
+ margin-right: 8px;
74
83
  }
@@ -0,0 +1,68 @@
1
+ .vitro-activity-message {
2
+ display: flex;
3
+ flex-direction: column;
4
+ background: #F8F9FA;
5
+ border-radius: 4px;
6
+ padding: 4px 8px;
7
+ width: fit-content;
8
+ max-width: 100%;
9
+ }
10
+
11
+ .vitro-item {
12
+ display: flex;
13
+ grid-gap: 4px 0;
14
+ align-items: center;
15
+ white-space: nowrap;
16
+ }
17
+
18
+ .vitro-item > div {
19
+ font-family: 'InterMedium';
20
+ color: #222D44;
21
+ font-size: 14px;
22
+ line-height: 145%;
23
+ width: fit-content;
24
+ text-overflow: ellipsis;
25
+ overflow: hidden;
26
+ }
27
+
28
+ .vitro-item :global(.vitro-flex) > span {
29
+ text-overflow: ellipsis;
30
+ overflow: hidden;
31
+ }
32
+
33
+ .vitro-item > div > :global(.vitro-flex) {
34
+ grid-gap: 4px;
35
+ }
36
+
37
+ .vitro-item > div > :global(.vitro-flex) > div {
38
+ width: 20px;
39
+ min-width: 20px;
40
+ height: 20px;
41
+ font-size: 10px;
42
+ line-height: 20px;
43
+ }
44
+
45
+ .vitro-message {
46
+ font-family: 'InterRegular' !important;
47
+ white-space: normal;
48
+ }
49
+
50
+ .vitro-field-name {
51
+ color: #222D44;
52
+ font-size: 14px;
53
+ line-height: 145%;
54
+ margin-right: 8px;
55
+ }
56
+
57
+ .vitro-separator {
58
+ width: 24px;
59
+ height: 24px;
60
+ min-width: 24px;
61
+ background-size: 100%;
62
+ background-position: center;
63
+ background-repeat: no-repeat;
64
+ margin: 0 4px;
65
+ white-space: nowrap;
66
+ /* activity-arrow.svg URL-encoder for SVG */
67
+ background-image: url("data:image/svg+xml,%3Csvg width='24' height='24' viewBox='0 0 24 24' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M15.1602 7.81641C14.8684 7.5247 14.8671 7.05213 15.1572 6.7588C15.4496 6.46318 15.9267 6.46186 16.2207 6.75587L20.7585 11.2936C21.1487 11.6839 21.149 12.3165 20.7592 12.7071L16.2204 17.255C15.9267 17.5494 15.4494 17.5483 15.157 17.2526C14.867 16.9595 14.8683 16.4871 15.1599 16.1956L18.5937 12.7617L3.2857 12.7729C2.87128 12.7732 2.53516 12.4373 2.53516 12.0229C2.53516 11.6089 2.87061 11.2732 3.28461 11.2729L18.6055 11.2617L15.1602 7.81641Z' fill='%234A556C'/%3E%3C/svg%3E%0A");
68
+ }
@@ -8,7 +8,7 @@
8
8
  }
9
9
 
10
10
  .vitro-dialog-content :global(.ps) {
11
- padding-top: 12px;
11
+ padding-top: 12px !important;
12
12
  padding-left: 16px;
13
13
  }
14
14
 
@@ -1,8 +1,9 @@
1
1
  .vitro-selected-item {
2
- display: inline-block;
2
+ display: inline-flex;
3
3
  width: fit-content;
4
4
  margin: 0 6px 0 0;
5
5
  white-space: nowrap;
6
6
  overflow: hidden;
7
7
  text-overflow: ellipsis;
8
+ align-items: center;
8
9
  }
@@ -1,110 +1,94 @@
1
1
  .vitro-message-input {
2
2
  display: flex;
3
- align-items: flex-start;
4
- border-top: 1px solid #e0e0e0;
5
- padding-top: 12px;
3
+ position: absolute;
4
+ width: calc(100% - 32px);
5
+ max-width: calc(100% - 32px);
6
+ bottom: 0;
7
+ align-items: end;
8
+ background: #fff;
9
+ bottom: 1px;
6
10
  }
7
11
 
8
12
  .vitro-message-input .vitro-control {
13
+ cursor: text;
9
14
  width: 100%;
10
15
  position: relative;
11
- padding: 0;
12
16
  border-radius: 4px;
13
17
  border: 1px solid #C0CAD5;
14
- min-height: 40px;
18
+ min-height: 36px;
15
19
  display: flex;
16
20
  justify-content: space-between;
17
21
  align-items: center;
18
- padding: 0 8px;
19
- margin-left: 8px;
22
+ word-break: break-all;
20
23
  }
21
24
 
22
- .vitro-control textarea {
23
- border: none;
24
- resize: none;
25
- line-height: 20px;
26
- overflow-y: auto;
27
- height: 20px;
28
- width: 90%;
25
+ .vitro-message-input :global(.ps) > div:first-child {
26
+ padding: 0;
27
+ padding: 6px 16px 6px 8px !important;
28
+ }
29
+
30
+ .vitro-message-input :global(.ps__rail-y) {
31
+ background: transparent !important;
32
+ border-top: none !important;
29
33
  }
30
34
 
31
- .vitro-control span {
32
- overflow-y: auto;
33
- width: 90%;
35
+ .vitro-message {
36
+ font-size: 14px;
37
+ line-height: 16px;
34
38
  height: fit-content;
35
- max-height: 60px;
39
+ width: 100%;
40
+ min-height: 16px;
41
+ max-height: 82px;
36
42
  }
37
43
 
38
- .vitro-button-send {
44
+ .vitro-placeholder {
45
+ color: #8E98A3;
46
+ font-weight: unset;
47
+ font-size: 12px;
48
+ line-height: 16px;
49
+ pointer-events: none;
50
+ text-overflow: ellipsis;
51
+ overflow: hidden;
52
+ }
53
+
54
+ .vitro-button-add-file {
39
55
  height: 24px;
40
56
  width: 24px;
57
+ min-width: 24px;
58
+ min-height: 24px;
41
59
  background-color: #fff;
42
60
  border: none;
43
61
  outline: none;
44
62
  background-size: 100%;
45
- background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' version='1.1' id='Layer_1' x='0px' y='0px' viewBox='0 0 20 20' style='enable-background:new 0 0 20 20;' xml:space='preserve'%3E%3Cstyle type='text/css'%3E .st0%7Bfill:none;stroke:%23BDBDBD;stroke-miterlimit:10;%7D%0A%3C/style%3E%3Cpath class='st0' d='M18,10L1.5,8.5l0-5.9L18,10c-5.5,2.5-11,5-16.5,7.5v-6L18,10'/%3E%3C/svg%3E");
63
+ background-position: center;
64
+ background-repeat: no-repeat;
65
+ /* paperclip.svg URL-encoder for SVG */
66
+ background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none'%3E%3Cpath d='M15.9969 6.24219L7.15809 15.081C6.5723 15.6668 6.5723 16.6166 7.15809 17.2023C7.74388 17.7881 8.69362 17.7881 9.27941 17.2023L18.1182 8.36351C19.2898 7.19193 19.2898 5.29244 18.1182 4.12087C16.9467 2.94929 15.0472 2.94929 13.8756 4.12087L5.03677 12.9597C3.27941 14.7171 3.27941 17.5663 5.03677 19.3237C6.79413 21.081 9.64337 21.081 11.4007 19.3237L20.4969 10.2275' stroke='%238E98A3' stroke-linecap='round'/%3E%3C/svg%3E");
46
67
  }
47
68
 
48
- .vitro-button-send:hover,
49
- .vitro-button-send:active {
50
- background-color: none;
69
+ .vitro-button-send {
70
+ height: 36px;
71
+ width: 36px;
72
+ min-width: 36px;
73
+ min-height: 36px;
74
+ background-color: #fff;
75
+ border-radius: 50%;
51
76
  border: none;
52
77
  outline: none;
78
+ background-size: 24px;
79
+ background-position: center;
80
+ background-repeat: no-repeat;
81
+ box-shadow: 0px 0px 4px 0px rgba(19, 43, 74, 0.18);
82
+ margin-left: 12px;
83
+ /* send.svg URL-encoder for SVG */
84
+ background-image: url("data:image/svg+xml,%3Csvg width='24' height='24' viewBox='0 0 24 24' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cg id='icon_line/Send'%3E%3Cg id='Group 33514'%3E%3Cpath id='Vector' d='M21.7365 10.9623C22.4909 11.3814 22.4909 12.4664 21.7365 12.8855L9.00978 19.9559C7.64603 20.7135 6.02992 19.4959 6.38207 17.9761L7.5752 12.8268C7.71285 12.2327 7.71285 11.6151 7.5752 11.021L6.38207 5.87172C6.02992 4.35191 7.64603 3.13428 9.00977 3.89192L21.7365 10.9623Z' fill='%23347FDE'/%3E%3Cpath id='Vector 15' d='M8.46875 11.9219L13.4687 11.9219' stroke='white' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E%0A");
53
85
  }
54
86
 
55
- :global(.vitro-input-upload-file) {
56
- height: 24px;
57
- }
58
-
59
- :global(.vitro-input-upload-file) input {
60
- display: none;
61
- }
62
-
63
- :global(.vitro-input-upload-file) label {
64
- margin-bottom: 0px;
65
- }
66
-
67
- :global(.card-header), textarea:global(.note-codable), :global(.note-statusbar), :global(.note-table-popover.bottom), :global(.note-link-popover.bottom), :global(.note-dropzone) {
68
- display: none;
69
- }
70
-
71
- :global(.note-editor) {
72
- width: 100%;
73
- border: none !important;
74
- }
75
-
76
- :global(.note-editable) {
77
- color: #4F4F4F;
78
- }
79
-
80
- :global(.note-editable) img {
81
- max-width: 200px;
82
- display: block;
83
- }
84
-
85
- :global(.note-popover.popover) {
86
- max-width: 440px;
87
- max-height: 150px;
88
- overflow-y: auto;
87
+ .vitro-button-send:hover,
88
+ .vitro-button-send:active,
89
+ .vitro-button-add-file:hover,
90
+ .vitro-button-add-file:active {
91
+ background-color: none;
89
92
  border: none;
90
- background: #fff;
91
- box-shadow: 0 4px 16px rgb(0 0 0 / 10%);
92
- border-radius: 8px;
93
- margin-bottom: 8px;
94
- }
95
-
96
- :global(.note-popover.popover div.note-hint-group) {
97
- padding: 8px 0;
98
- }
99
-
100
- :global(.note-hint-item) {
101
- padding: 4px 8px;
102
- font-family: "InterRegular";
103
- font-size: 10pt;
104
- line-height: 11pt;
105
- cursor: pointer;
106
- }
107
-
108
- :global(.note-hint-item):hover {
109
- background: #F5F6FA;
110
- }
93
+ outline: none;
94
+ }
@@ -10,8 +10,8 @@
10
10
  }
11
11
 
12
12
  .vitro-tab > :global(.vitro-content) {
13
- position: relative;
14
- height: 100%;
13
+ position: relative;
14
+ height: calc(100% - 37px);
15
15
  }
16
16
 
17
17
  .vitro-tab > :global(.vitro-content) > :global(.container),
@@ -607,6 +607,8 @@ div.TWMenuItemText {
607
607
 
608
608
  .TWCell .vitro-flex > div {
609
609
  margin-right: 4px;
610
+ font-size: 12px;
611
+ line-height: 24px;
610
612
  }
611
613
 
612
614
  .TWRowAbove {
@@ -5,6 +5,7 @@
5
5
 
6
6
  :global(#TreeView) :global(.ps) {
7
7
  padding-right: 12px;
8
+ padding-top: 8px;
8
9
  }
9
10
 
10
11
  .vitro-tree-view {
@@ -95,7 +96,7 @@
95
96
  height: 32px !important;
96
97
  line-height: 32px !important;
97
98
  background-position: center !important;
98
- background-size: 100%;
99
+ background-size: 100% !important;
99
100
  margin-right: 4px;
100
101
  }
101
102
 
@@ -0,0 +1,6 @@
1
+ /// <reference types="react" />
2
+ import { ChangedValue } from './ChangedValue';
3
+ export interface ActivityMessageProps {
4
+ changedValueList: ChangedValue[];
5
+ }
6
+ export declare const ActivityMessage: (props: ActivityMessageProps) => JSX.Element;
@@ -0,0 +1,6 @@
1
+ export interface ChangedValue {
2
+ fieldName?: string;
3
+ newValue: any;
4
+ oldValue?: any;
5
+ isMessage?: boolean;
6
+ }
@@ -1,12 +1,10 @@
1
1
  import React from 'react';
2
2
  interface MessageInputProps {
3
- userName: string;
4
- userImageUrl?: string;
5
3
  placeholder?: string;
6
- maxRows?: number;
7
4
  isDisabled?: boolean;
8
5
  onSubmit: (value: string) => any;
9
- onChange?: (e: any, value: string) => any;
6
+ onAddFile?: () => any;
7
+ onChange?: (value: string) => any;
10
8
  onDrop?: (e: any) => any;
11
9
  children?: React.ReactNode;
12
10
  }
@@ -0,0 +1,3 @@
1
+ export declare enum LOCALE {
2
+ PLACEHOLDER = "app.common.messageInput.placeholder"
3
+ }
@@ -49,6 +49,8 @@ export interface TableViewContext {
49
49
  getFirst(row?: TableViewRow, type?: number): TableViewRow;
50
50
  endEdit(editResult: boolean): any;
51
51
  expandRow(row: TableViewRow): void;
52
+ collapseRow(row: TableViewRow): void;
53
+ expandParents(row: TableViewRow): void;
52
54
  getCell(row: TableViewRow, col: TableViewCol | string): any;
53
55
  getFRow(): TableViewRow;
54
56
  getFCol(): TableViewCol;
@@ -57,6 +57,8 @@ export declare class TreeGridTableViewContextImpl implements TableViewContext {
57
57
  setEventHandler(eventHandler: TableViewEventHandler): void;
58
58
  endEdit(success: boolean): any;
59
59
  expandRow(row: TableViewRow): void;
60
+ collapseRow(row: TableViewRow): void;
61
+ expandParents(row: TableViewRow): void;
60
62
  getCell(row: TableViewRow, col: TableViewCol | string): any;
61
63
  getFRow(): TableViewRow;
62
64
  getFCol(): TableViewCol;