@vitrosoftware/common-ui-ts 1.1.19 → 1.1.21

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
@@ -18,7 +18,7 @@
18
18
 
19
19
  :global(.vitro-title) {
20
20
  font-size: 20px;
21
- font-family: 'InterMedium';
21
+ font-family: 'InterRegular';
22
22
  line-height: 24px;
23
23
  margin-right: 24px;
24
24
  margin-bottom: 14px;
@@ -0,0 +1,21 @@
1
+ .vitro-title {
2
+ color: #bdbdbd;
3
+ margin-bottom: 12px;
4
+ text-align: center;
5
+ }
6
+
7
+ .vitro-title > h3 {
8
+ text-transform: uppercase;
9
+ font-size: 12pt;
10
+ margin: 0;
11
+ }
12
+
13
+ .vitro-dropdown-button {
14
+ position: absolute;
15
+ right: 0;
16
+ }
17
+
18
+ .vitro-activity :global(.preview-roller-wrapper) {
19
+ height: 100px;
20
+ position: relative;
21
+ }
@@ -0,0 +1,74 @@
1
+ .vitro-item {
2
+ margin-bottom: 22px;
3
+ min-height: 32px;
4
+ }
5
+
6
+ .vitro-item.vitro-active {
7
+ background: #F3F8FF;
8
+ }
9
+
10
+ .vitro-item > :global(.vitro-flex) {
11
+ width: 100%;
12
+ }
13
+
14
+ .vitro-title span {
15
+ color: #222d44;
16
+ }
17
+
18
+ .vitro-due-date {
19
+ font-size: 8pt;
20
+ color: #bdbdbd;
21
+ float: right;
22
+ white-space: nowrap;
23
+ }
24
+
25
+ .vitro-content {
26
+ margin-top: -1px;
27
+ width: 100%;
28
+ display: flex;
29
+ justify-content: space-between;
30
+ align-items: center;
31
+ margin-right: 4px;
32
+ }
33
+
34
+ .vitro-content p {
35
+ margin-block-start: 0px;
36
+ margin-block-end: 0px;
37
+ margin-bottom: 0px;
38
+ color: #bdbdbd;
39
+ font-size: 9pt;
40
+ line-height: 14px;
41
+ margin-top: 3px;
42
+ }
43
+
44
+ .vitro-content p span {
45
+ font-size: 9pt !important;
46
+ }
47
+
48
+ .vitro-content :global(.vitro-status-changed) {
49
+ font-style: normal;
50
+ color: #27AE60;
51
+ font-size: 9pt;
52
+ }
53
+
54
+ .vitro-message {
55
+ overflow-wrap: anywhere;
56
+ }
57
+
58
+ .vitro-message img {
59
+ max-width: calc(100% - 20px);
60
+ display: block;
61
+ margin: 4px 0;
62
+ }
63
+
64
+ .vitro-flex {
65
+ display: flex;
66
+ }
67
+
68
+ .vitro-dropdown-button {
69
+ align-self: flex-start;
70
+ }
71
+
72
+ .vitro-avatar {
73
+ margin-right: 4px;
74
+ }
@@ -1,5 +1,5 @@
1
1
  .vitro-button {
2
- font-family: 'InterSemiBold';
2
+ font-family: 'InterMeduim';
3
3
  font-size: 14px;
4
4
  outline: none;
5
5
  height: 32px;
@@ -5,7 +5,7 @@
5
5
 
6
6
  li:first-child .vitro-item {
7
7
  background: #347FDE;
8
- font-family: 'InterSemiBold';
8
+ font-family: 'InterMedium';
9
9
  color: #fff;
10
10
  }
11
11
 
@@ -0,0 +1,3 @@
1
+ :global(.vitro-display-none) {
2
+ display: none;
3
+ }
@@ -1,11 +1,3 @@
1
- .vitro-active {
2
- background-color: #DCEEFF;
3
- }
4
-
5
- ul > li:last-child > ul > li:last-child .vitro-active {
6
- background-color: transparent;
7
- }
8
-
9
1
  .vitro-icon-text {
10
2
  display: none;
11
3
  color: #222D44;
@@ -21,6 +13,18 @@ ul > li:last-child > ul > li:last-child .vitro-active {
21
13
  display: none;
22
14
  }
23
15
 
16
+ .vitro-active {
17
+ background-color: #DCEEFF;
18
+ }
19
+
20
+ .vitro-hover .vitro-icon-text {
21
+ color: #326AD6;
22
+ }
23
+
24
+ ul > li:last-child > ul > li:last-child .vitro-active {
25
+ background-color: transparent;
26
+ }
27
+
24
28
  .vitro-active .vitro-icon-text,
25
29
  .vitro-active .vitro-item-text {
26
30
  color: #326AD6;
@@ -54,10 +58,6 @@ ul > li:last-child > ul > li:last-child .vitro-active {
54
58
  display: block;
55
59
  }
56
60
 
57
- .vitro-active {
58
- background-color: #DCEEFF;
59
- }
60
-
61
61
  :global(.vitro-bottom-menu) .vitro-item-text {
62
62
  display: block;
63
63
  color: #4A556C;
@@ -80,6 +80,10 @@
80
80
  font-weight: unset;
81
81
  }
82
82
 
83
+ .TWHeaderText {
84
+ color: #4A556C !important;
85
+ }
86
+
83
87
  .TWInt, .TWFloat, .TWDate {
84
88
  text-align: unset;
85
89
  }
@@ -123,9 +127,9 @@
123
127
  background: #fff !important;
124
128
  }
125
129
 
126
- .TWFocusRowBackground {
130
+ .TWCursorBackground {
127
131
  background: #0085FF !important;
128
- opacity: 0.13 !important;
132
+ opacity: 0.136 !important;
129
133
  }
130
134
 
131
135
  .TWMenuMain {
@@ -525,10 +529,6 @@
525
529
  text-align: center;
526
530
  }
527
531
 
528
- .TWFocusRowBackground {
529
- background: #0083ff !important;
530
- }
531
-
532
532
  .TWFilter0Value u.TWFilter1, .TWFilter0Value u.TWFilter0,
533
533
  .TWCellHeaderPanel .TWPanelDelete {
534
534
  display: none;
@@ -2,7 +2,7 @@
2
2
  bottom: 24px;
3
3
  right: 24px;
4
4
  position: absolute;
5
- transition: all 1s ease;
5
+ transition: all 0.1s ease;
6
6
  width: 241px;
7
7
  height: 96px;
8
8
  z-index: 10000000000000;
@@ -261,9 +261,9 @@
261
261
  background-repeat: no-repeat;
262
262
  border: none;
263
263
  outline: none;
264
- width: 16px;
265
- height: 16px;
266
- top: 16px;
264
+ width: 24px;
265
+ height: 24px;
266
+ top: 12px;
267
267
  }
268
268
 
269
269
  .vitro-uploader .vitro-button-close {
@@ -274,14 +274,14 @@
274
274
 
275
275
  .vitro-button-show {
276
276
  /* show.svg URL-encoder for SVG */
277
- background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none'%3E%3Cpath d='M4.66406 9.66406L7.99739 6.33073L11.3307 9.66406' stroke='%238E98A3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
278
- right: 40px;
277
+ background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none'%3E%3Crect width='24' height='24' rx='4' transform='matrix(0 1 1 0 0 0)' fill='white'/%3E%3Cpath d='M20 15L12 7L4 15' stroke='%234A556C' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
278
+ right: 48px;
279
279
  }
280
280
 
281
281
  .vitro-button-hide {
282
282
  /* hide.svg URL-encoder for SVG */
283
- background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none'%3E%3Cpath d='M11.3359 6.33594L8.0026 9.66927L4.66927 6.33594' stroke='%238E98A3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
284
- right: 40px;
283
+ background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none'%3E%3Crect width='24' height='24' rx='4' transform='matrix(1.19249e-08 -1 -1 -1.19249e-08 24 24)' fill='white'/%3E%3Cpath d='M4 9L12 17L20 9' stroke='%234A556C' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
284
+ right: 48px;
285
285
  }
286
286
 
287
287
  .vitro-uploader :global(.k-upload .k-dropzone .k-upload-status) {
@@ -398,7 +398,8 @@
398
398
 
399
399
  .vitro-uploader :global(#vitro-uploader-title) {
400
400
  display: flex;
401
- width: 176px;
401
+ width: fit-content;
402
+ max-width: 80%;
402
403
  align-items: center;
403
404
  justify-content: space-between;
404
405
  font-family: 'InterMedium';
@@ -414,6 +415,7 @@
414
415
  display: inline-block !important;
415
416
  width: 24px;
416
417
  height: 24px;
418
+ margin-left: 12px;
417
419
  background-position: center;
418
420
  background-size: 100%;
419
421
  display: none;
@@ -423,7 +425,6 @@
423
425
 
424
426
  .vitro-uploader :global(.vitro-upload-complete) :global(#vitro-uploader-title) {
425
427
  display: flex;
426
- width: 176px;
427
428
  align-items: center;
428
429
  justify-content: space-between;
429
430
  margin-bottom: 0;
@@ -0,0 +1,21 @@
1
+ .vitro-title {
2
+ color: #bdbdbd;
3
+ padding: 12px 0 6px 0;
4
+ text-align: center;
5
+ }
6
+
7
+ .vitro-title > h3 {
8
+ text-transform: uppercase;
9
+ font-size: 12pt;
10
+ margin: 4px 0 2px 0;
11
+ }
12
+
13
+ .vitro-dropdown-button {
14
+ position: absolute;
15
+ right: 0;
16
+ }
17
+
18
+ .vitro-activity :global(.preview-roller-wrapper) {
19
+ height: 100px;
20
+ position: relative;
21
+ }
@@ -0,0 +1,65 @@
1
+ .vitro-item {
2
+ margin: 4px 0 0 0;
3
+ min-height: 32px;
4
+ }
5
+
6
+ .vitro-item.vitro-active {
7
+ background: #F5F6FA;
8
+ }
9
+
10
+ .vitro-item > :global(.vitro-flex) {
11
+ width: 100%;
12
+ }
13
+
14
+ .vitro-title span {
15
+ color: #222d44;
16
+ }
17
+
18
+ .vitro-due-date {
19
+ font-size: 8pt;
20
+ color: #bdbdbd;
21
+ float: right;
22
+ white-space: nowrap;
23
+ }
24
+
25
+ .vitro-content {
26
+ margin-top: -1px;
27
+ width: 100%;
28
+ display: flex;
29
+ justify-content: space-between;
30
+ align-items: center;
31
+ }
32
+
33
+ .vitro-content p {
34
+ margin-block-start: 0px;
35
+ margin-block-end: 0px;
36
+ margin-bottom: 0px;
37
+ color: #bdbdbd;
38
+ font-size: 9pt;
39
+ line-height: 14px;
40
+ margin-top: 3px;
41
+ }
42
+
43
+ .vitro-content p span {
44
+ font-size: 9pt !important;
45
+ }
46
+
47
+ .vitro-content :global(.vitro-status-changed) {
48
+ font-style: normal;
49
+ color: #27AE60;
50
+ font-size: 9pt;
51
+ }
52
+
53
+ .vitro-message {
54
+ overflow-wrap: anywhere;
55
+ }
56
+
57
+ .vitro-message img {
58
+ max-width: calc(100% - 20px);
59
+ display: block;
60
+ margin: 4px 0;
61
+ }
62
+
63
+ .vitro-flex {
64
+ display: flex;
65
+ }
@@ -4,5 +4,7 @@ export declare enum EVENT {
4
4
  KEYDOWN = "keydown",
5
5
  RESIZE = "resize",
6
6
  DRAGOVER = "dragover",
7
- DRAGLEAVE = "dragleave"
7
+ DRAGLEAVE = "dragleave",
8
+ HISTORY_UPDATE = "vitro.history.update",
9
+ HISTORY_CHANGED = "vitro.history.changed"
8
10
  }
@@ -0,0 +1,9 @@
1
+ import React from 'react';
2
+ import { DropdownItem } from '../DropdownButton/DropdownItem';
3
+ interface ActivityProps {
4
+ title?: string;
5
+ filterDropdownList?: DropdownItem[];
6
+ children: React.ReactNode;
7
+ }
8
+ export declare const Activity: (props: ActivityProps) => JSX.Element;
9
+ export {};
@@ -0,0 +1,16 @@
1
+ import React from 'react';
2
+ import { DropdownItem } from '../DropdownButton/DropdownItem';
3
+ export interface ActivityItemProps {
4
+ userName: string;
5
+ title?: string;
6
+ userImageUrl?: string;
7
+ message: string;
8
+ date?: any;
9
+ variant?: string;
10
+ dropdownItemList?: DropdownItem[];
11
+ onDropdownToggle?: (state: any, e: any) => any;
12
+ isActive?: boolean;
13
+ isShowDetail?: boolean;
14
+ children?: React.ReactNode;
15
+ }
16
+ export declare const ActivityItem: (props: ActivityItemProps) => JSX.Element;
@@ -0,0 +1,11 @@
1
+ /// <reference types="react" />
2
+ import '../../../css/std/controls/icon/icon.css';
3
+ interface IconProps {
4
+ defaultUrl: string;
5
+ hoverUrl?: string;
6
+ className?: string;
7
+ isHover?: boolean;
8
+ onClick?: () => any;
9
+ }
10
+ export declare const Icon: (props: IconProps) => JSX.Element;
11
+ export {};
@@ -1,5 +1,4 @@
1
1
  export declare enum EVENT {
2
- UPLOAD_START = "vitro.upload.start",
3
2
  ADD_FILE = "vitro.file.add",
4
3
  READY_STATE_CHANGE = "readystatechange"
5
4
  }
@@ -8,7 +8,7 @@ export declare class TelerikUploaderContextImpl implements TelerikUploaderContex
8
8
  private token;
9
9
  private settings;
10
10
  private localeService;
11
- private onUploadComplete;
11
+ private toggleButtons;
12
12
  private successCount;
13
13
  private errorCount;
14
14
  private fileList;
@@ -16,7 +16,7 @@ export declare class TelerikUploaderContextImpl implements TelerikUploaderContex
16
16
  private progressBar;
17
17
  private title;
18
18
  private subtitle;
19
- constructor(uploader: HTMLInputElement, container: HTMLDivElement, dropZone: HTMLDivElement, settings: TelerikUploaderSettings, localeService: LocaleService, onUploadComplete: () => any);
19
+ constructor(uploader: HTMLInputElement, container: HTMLDivElement, dropZone: HTMLDivElement, settings: TelerikUploaderSettings, localeService: LocaleService, toggleButtons: (show: boolean) => any);
20
20
  clearAllFiles(): void;
21
21
  private resetUploader;
22
22
  private initAuthorization;
@@ -1,11 +1,13 @@
1
1
  export interface TelerikUploaderSettings {
2
2
  async: {
3
3
  saveUrl: string;
4
- autoUpload: boolean;
5
- batch: boolean;
6
- concurrent: boolean;
4
+ isAutoUpload: boolean;
5
+ isBatch: boolean;
6
+ isConcurrent: boolean;
7
7
  };
8
8
  upload: (e: any) => void;
9
9
  success?: (e: any) => void | undefined;
10
- directoryDrop: boolean;
10
+ isDirectoryDrop: boolean;
11
+ isAutoReset?: boolean;
12
+ resetDurationMs?: number;
11
13
  }
@@ -20,7 +20,8 @@ export declare enum METHOD {
20
20
  export declare enum EVENT {
21
21
  CLOSE_NODE = "close_node.jstree",
22
22
  SELECT_NODE = "select_node.jstree",
23
- LOADED = "loaded.jstree"
23
+ LOADED = "loaded.jstree",
24
+ MODEL = "model.jstree"
24
25
  }
25
26
  export declare enum NODE_TYPE {
26
27
  FOLDER = "folder",
@@ -3,6 +3,7 @@ interface ViewPartProps {
3
3
  component: any;
4
4
  settings: any;
5
5
  props: any;
6
+ item?: any;
6
7
  }
7
8
  export declare let ViewPart: (props: ViewPartProps) => JSX.Element;
8
9
  export {};