@vitrosoftware/common-ui-ts 1.1.25 → 1.1.27

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.
@@ -213,6 +213,7 @@
213
213
  color: #222D44 !important;
214
214
  border: 1px solid #E4E6EC !important;
215
215
  margin-right: 12px !important;
216
+ font-family: 'InterRegular' !important;
216
217
  }
217
218
 
218
219
  .vitro-button-cancel:hover, .vitro-button-cancel:active {
@@ -220,9 +221,9 @@
220
221
  }
221
222
 
222
223
  .vitro-button, .vitro-button-cancel {
223
- min-width: 145px !important;
224
- height: 44px !important;
225
- font-size: 18px !important;
224
+ min-width: 120px !important;
225
+ height: 40px !important;
226
+ font-size: 16px !important;
226
227
  }
227
228
 
228
229
  .vitro-success {
@@ -15,6 +15,7 @@
15
15
  }
16
16
 
17
17
  .vitro-button-close {
18
+ font-family: 'InterRegular' !important;
18
19
  background: #fff !important;
19
20
  color: #222D44 !important;
20
21
  border: none;
@@ -51,13 +51,6 @@
51
51
  color: #4A556C;
52
52
  }
53
53
 
54
- .vitro-icon {
55
- width: 20px;
56
- height: 20px;
57
- background-size: 20px;
58
- margin-right: 12px;
59
- }
60
-
61
54
  .vitro-dropdown-button :global(.dropdown-menu) {
62
55
  box-shadow: 0px 4px 14px 0px rgba(0, 0, 0, 0.18), 0px 0px 4px 0px rgba(0, 0, 0, 0.14);
63
56
  background: #fff;
@@ -94,6 +87,18 @@
94
87
  background-image: url(data:image/svg+xml,%3Csvg viewBox=%270 0 16 11%27 fill=%27none%27 xmlns=%27http://www.w3.org/2000/svg%27%3E%3Cpath d=%27M6.31554 1.65838L0.382812 11H15.6249L9.69214 1.65838C8.90651 0.421336 7.10117 0.421335 6.31554 1.65838Z%27 fill=%27white%27/%3E%3C/svg%3E%0A);
95
88
  }
96
89
 
90
+ .vitro-dropdown-button :global(.dropdown-item) .vitro-icon {
91
+ width: 20px;
92
+ height: 20px;
93
+ margin-right: 12px;
94
+ margin-left: 0;
95
+ }
96
+
97
+ .vitro-dropdown-button :global(.dropdown-item) .vitro-icon img {
98
+ width: 20px;
99
+ height: 20px;
100
+ }
101
+
97
102
  .vitro-dropdown-button :global(.dropdown-item) {
98
103
  display: flex;
99
104
  align-items: center;
@@ -0,0 +1,110 @@
1
+ .vitro-message-input {
2
+ display: flex;
3
+ align-items: flex-start;
4
+ border-top: 1px solid #e0e0e0;
5
+ padding-top: 12px;
6
+ }
7
+
8
+ .vitro-message-input .vitro-control {
9
+ width: 100%;
10
+ position: relative;
11
+ padding: 0;
12
+ border-radius: 4px;
13
+ border: 1px solid #C0CAD5;
14
+ min-height: 40px;
15
+ display: flex;
16
+ justify-content: space-between;
17
+ align-items: center;
18
+ padding: 0 8px;
19
+ margin-left: 8px;
20
+ }
21
+
22
+ .vitro-control textarea {
23
+ border: none;
24
+ resize: none;
25
+ line-height: 20px;
26
+ overflow-y: auto;
27
+ height: 20px;
28
+ width: 90%;
29
+ }
30
+
31
+ .vitro-control span {
32
+ overflow-y: auto;
33
+ width: 90%;
34
+ height: fit-content;
35
+ max-height: 60px;
36
+ }
37
+
38
+ .vitro-button-send {
39
+ height: 24px;
40
+ width: 24px;
41
+ background-color: #fff;
42
+ border: none;
43
+ outline: none;
44
+ 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");
46
+ }
47
+
48
+ .vitro-button-send:hover,
49
+ .vitro-button-send:active {
50
+ background-color: none;
51
+ border: none;
52
+ outline: none;
53
+ }
54
+
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;
89
+ 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
+ }
@@ -1,18 +1,19 @@
1
1
  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
+ CONF_STD = "app.common.msg.action.conf.std",
4
5
  ITEM_COUNT = "app.common.actionHandler.itemCount",
5
6
  ITEM_NAME = "app.common.actionHandler.itemName",
6
7
  SUCCESS_SINGLE = "app.common.msg.action.success.single",
7
8
  SUCCESS_MULTI = "app.common.msg.action.success.multi",
9
+ SUCCESS_STD = "app.common.msg.action.success.std",
8
10
  ERROR_SINGLE = "app.common.msg.action.error.single",
9
11
  ERROR_MULTI = "app.common.msg.action.error.multi",
12
+ ERROR_STD = "app.common.msg.action.error.std",
10
13
  PROGRESS_SINGLE = "app.common.msg.action.progress.single",
11
14
  PROGRESS_MULTI = "app.common.msg.action.progress.multi",
12
- WARNING_SINGLE = "app.common.msg.action.warning.single",
13
- WARNING_MULTI = "app.common.msg.action.warning.multi",
15
+ PROGRESS_STD = "app.common.msg.action.progress.std",
14
16
  ACTION = "app.common.action",
15
- ACTION_MSG = "app.common.msg.action",
16
17
  ERROR_MSG = "app.common.msg.error",
17
18
  SUCCESS = "success",
18
19
  PROGRESS = "progress",
@@ -3,6 +3,7 @@ interface CommandMenuDropdownButtonProps {
3
3
  itemList?: {
4
4
  text: string;
5
5
  onClick: (e: any) => any;
6
+ imageUrl?: string;
6
7
  }[];
7
8
  toggle?: boolean;
8
9
  children: React.ReactNode;
@@ -5,6 +5,7 @@ interface CommandMenuSubItemProps {
5
5
  title?: string;
6
6
  onClick: (e: any) => any;
7
7
  href?: string;
8
+ isShowImage?: boolean;
8
9
  imageUrl?: string;
9
10
  imageHoverUrl?: string;
10
11
  }
@@ -0,0 +1,14 @@
1
+ import React from 'react';
2
+ interface MessageInputProps {
3
+ userName: string;
4
+ userImageUrl?: string;
5
+ placeholder?: string;
6
+ maxRows?: number;
7
+ isDisabled?: boolean;
8
+ onSubmit: (value: string) => any;
9
+ onChange?: (e: any, value: string) => any;
10
+ onDrop?: (e: any) => any;
11
+ children?: React.ReactNode;
12
+ }
13
+ export declare const MessageInput: (props: MessageInputProps) => JSX.Element;
14
+ export {};
@@ -4,7 +4,6 @@ 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
7
  getIssueList(): Promise<any>;
9
8
  onCreateIssue(data: any): any;
10
9
  toggleIssueDetail(show: boolean): any;
@@ -13,6 +13,7 @@ export declare enum EVENT {
13
13
  ON_CUSTOM_END_EDIT = "OnCustomEndEdit",
14
14
  ON_CUSTOM_START_EDIT = "OnCustomStartEdit",
15
15
  ON_ENDED_DRAG = "OnEndedDrag",
16
+ ON_END_DRAG = "OnEndDrag",
16
17
  ON_FILTER_OPERATOR = "OnFilterOperator",
17
18
  ON_FILTER = "OnFilter",
18
19
  ON_GANTT_CHANGED = "OnGanttChanged",
@@ -31,6 +31,7 @@ export declare class TelerikUploaderContextImpl implements TelerikUploaderContex
31
31
  private getProgressInfo;
32
32
  addFile(): void;
33
33
  setAthorizationToken(token: string): void;
34
+ private setErrorMessage;
34
35
  private setFileImage;
35
36
  private setProgressBar;
36
37
  private setFileProgress;
@@ -11,4 +11,5 @@ export interface TelerikUploaderSettings {
11
11
  isAutoReset?: boolean;
12
12
  resetDurationMs?: number;
13
13
  getFileImage?: (name: string) => string;
14
+ handleError?: (response: any) => any;
14
15
  }
@@ -28,7 +28,8 @@ export declare enum EVENT {
28
28
  CLOSE_NODE = "close_node.jstree",
29
29
  SELECT_NODE = "select_node.jstree",
30
30
  LOADED = "loaded.jstree",
31
- MODEL = "model.jstree"
31
+ MODEL = "model.jstree",
32
+ DBLCLICK = "dblclick.jstree"
32
33
  }
33
34
  export declare enum NODE_TYPE {
34
35
  FOLDER = "folder",
package/dist/index.css CHANGED
@@ -1281,6 +1281,7 @@
1281
1281
  color: #222D44 !important;
1282
1282
  border: 1px solid #E4E6EC !important;
1283
1283
  margin-right: 12px !important;
1284
+ font-family: 'InterRegular' !important;
1284
1285
  }
1285
1286
 
1286
1287
  ._action-handler_vitro-button-cancel_GE8JsGp:hover, ._action-handler_vitro-button-cancel_GE8JsGp:active {
@@ -1288,9 +1289,9 @@
1288
1289
  }
1289
1290
 
1290
1291
  ._action-handler_vitro-button_1wSNAYT, ._action-handler_vitro-button-cancel_GE8JsGp {
1291
- min-width: 145px !important;
1292
- height: 44px !important;
1293
- font-size: 18px !important;
1292
+ min-width: 120px !important;
1293
+ height: 40px !important;
1294
+ font-size: 16px !important;
1294
1295
  }
1295
1296
 
1296
1297
  ._action-handler_vitro-success_1bfGHQQ {
@@ -1492,13 +1493,6 @@
1492
1493
  color: #4A556C;
1493
1494
  }
1494
1495
 
1495
- ._dropdown-button_vitro-icon_2NCEoeb {
1496
- width: 20px;
1497
- height: 20px;
1498
- background-size: 20px;
1499
- margin-right: 12px;
1500
- }
1501
-
1502
1496
  ._dropdown-button_vitro-dropdown-button_1myvkhB .dropdown-menu {
1503
1497
  box-shadow: 0px 4px 14px 0px rgba(0, 0, 0, 0.18), 0px 0px 4px 0px rgba(0, 0, 0, 0.14);
1504
1498
  background: #fff;
@@ -1533,6 +1527,18 @@
1533
1527
  background-image: url(data:image/svg+xml,%3Csvg viewBox=%270 0 16 11%27 fill=%27none%27 xmlns=%27http://www.w3.org/2000/svg%27%3E%3Cpath d=%27M6.31554 1.65838L0.382812 11H15.6249L9.69214 1.65838C8.90651 0.421336 7.10117 0.421335 6.31554 1.65838Z%27 fill=%27white%27/%3E%3C/svg%3E%0A);
1534
1528
  }
1535
1529
 
1530
+ ._dropdown-button_vitro-dropdown-button_1myvkhB .dropdown-item ._dropdown-button_vitro-icon_2NCEoeb {
1531
+ width: 20px;
1532
+ height: 20px;
1533
+ margin-right: 12px;
1534
+ margin-left: 0;
1535
+ }
1536
+
1537
+ ._dropdown-button_vitro-dropdown-button_1myvkhB .dropdown-item ._dropdown-button_vitro-icon_2NCEoeb img {
1538
+ width: 20px;
1539
+ height: 20px;
1540
+ }
1541
+
1536
1542
  ._dropdown-button_vitro-dropdown-button_1myvkhB .dropdown-item {
1537
1543
  display: flex;
1538
1544
  align-items: center;
@@ -4094,6 +4100,7 @@ ul > li:last-child > ul > li:last-child ._sidebar-item_vitro-active_7p5iOhY {
4094
4100
  }
4095
4101
 
4096
4102
  ._dialog-button-close_vitro-button-close_2BpzTR0 {
4103
+ font-family: 'InterRegular' !important;
4097
4104
  background: #fff !important;
4098
4105
  color: #222D44 !important;
4099
4106
  border: none;
@@ -4329,3 +4336,115 @@ ul > li:last-child > ul > li:last-child ._sidebar-item_vitro-active_7p5iOhY {
4329
4336
  ._activity-item_vitro-avatar_218ZqAk {
4330
4337
  margin-right: 4px;
4331
4338
  }
4339
+
4340
+ ._message-input_vitro-message-input_3MkcjWD {
4341
+ display: flex;
4342
+ align-items: flex-start;
4343
+ border-top: 1px solid #e0e0e0;
4344
+ padding-top: 12px;
4345
+ }
4346
+
4347
+ ._message-input_vitro-message-input_3MkcjWD ._message-input_vitro-control_1PUSjq9 {
4348
+ width: 100%;
4349
+ position: relative;
4350
+ padding: 0;
4351
+ border-radius: 4px;
4352
+ border: 1px solid #C0CAD5;
4353
+ min-height: 40px;
4354
+ display: flex;
4355
+ justify-content: space-between;
4356
+ align-items: center;
4357
+ padding: 0 8px;
4358
+ margin-left: 8px;
4359
+ }
4360
+
4361
+ ._message-input_vitro-control_1PUSjq9 textarea {
4362
+ border: none;
4363
+ resize: none;
4364
+ line-height: 20px;
4365
+ overflow-y: auto;
4366
+ height: 20px;
4367
+ width: 90%;
4368
+ }
4369
+
4370
+ ._message-input_vitro-control_1PUSjq9 span {
4371
+ overflow-y: auto;
4372
+ width: 90%;
4373
+ height: -moz-fit-content;
4374
+ height: fit-content;
4375
+ max-height: 60px;
4376
+ }
4377
+
4378
+ ._message-input_vitro-button-send_1vktQrZ {
4379
+ height: 24px;
4380
+ width: 24px;
4381
+ background-color: #fff;
4382
+ border: none;
4383
+ outline: none;
4384
+ background-size: 100%;
4385
+ 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");
4386
+ }
4387
+
4388
+ ._message-input_vitro-button-send_1vktQrZ:hover,
4389
+ ._message-input_vitro-button-send_1vktQrZ:active {
4390
+ background-color: none;
4391
+ border: none;
4392
+ outline: none;
4393
+ }
4394
+
4395
+ .vitro-input-upload-file {
4396
+ height: 24px;
4397
+ }
4398
+
4399
+ .vitro-input-upload-file input {
4400
+ display: none;
4401
+ }
4402
+
4403
+ .vitro-input-upload-file label {
4404
+ margin-bottom: 0px;
4405
+ }
4406
+
4407
+ .card-header, textarea.note-codable, .note-statusbar, .note-table-popover.bottom, .note-link-popover.bottom, .note-dropzone {
4408
+ display: none;
4409
+ }
4410
+
4411
+ .note-editor {
4412
+ width: 100%;
4413
+ border: none !important;
4414
+ }
4415
+
4416
+ .note-editable {
4417
+ color: #4F4F4F;
4418
+ }
4419
+
4420
+ .note-editable img {
4421
+ max-width: 200px;
4422
+ display: block;
4423
+ }
4424
+
4425
+ .note-popover.popover {
4426
+ max-width: 440px;
4427
+ max-height: 150px;
4428
+ overflow-y: auto;
4429
+ border: none;
4430
+ background: #fff;
4431
+ box-shadow: 0 4px 16px rgb(0 0 0 / 10%);
4432
+ border-radius: 8px;
4433
+ margin-bottom: 8px;
4434
+ }
4435
+
4436
+ .note-popover.popover div.note-hint-group {
4437
+ padding: 8px 0;
4438
+ }
4439
+
4440
+ .note-hint-item {
4441
+ padding: 4px 8px;
4442
+ font-family: "InterRegular";
4443
+ font-size: 10pt;
4444
+ line-height: 11pt;
4445
+ cursor: pointer;
4446
+ }
4447
+
4448
+ .note-hint-item:hover {
4449
+ background: #F5F6FA;
4450
+ }
package/dist/index.d.ts CHANGED
@@ -61,6 +61,7 @@ import { ActivityItem, ActivityItemProps } from './controls/ActivityItem/Activit
61
61
  import { Icon } from './controls/Icon/Icon';
62
62
  import { EVENT } from './constants/Event';
63
63
  import { ScrollBar } from './controls/ScrollBar/ScrollBar';
64
+ import { MessageInput } from './controls/MessageInput/MessageInput';
64
65
  export { Breadcrumbs };
65
66
  export { TopLevelMenu };
66
67
  export { TreeView, TreeViewContext, TREE_VIEW };
@@ -96,3 +97,4 @@ export { ActivityItem, ActivityItemProps };
96
97
  export { Icon };
97
98
  export { EVENT };
98
99
  export { ScrollBar };
100
+ export { MessageInput };