@vitrosoftware/common-ui-ts 1.1.21 → 1.1.24

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
@@ -1,4 +1,5 @@
1
1
  @import url('@vitrosoftware/common-ui-ts/css/third-party/kendo/kendo.css');
2
+ @import url('@vitrosoftware/common-ui-ts/css/third-party/perfect-scrollbar/perfect-scrollbar.css');
2
3
  @import url('@vitrosoftware/common-ui-ts/css/third-party/jstree/style.min.css');
3
4
  @import url('@vitrosoftware/common-ui-ts/css/third-party/jquery-ui/jquery-ui.min.css');
4
5
  @import url('@vitrosoftware/common-ui-ts/css/third-party/jquery-ui/jquery-ui.structure.css');
@@ -3,6 +3,7 @@
3
3
  flex-direction: column;
4
4
  position: relative;
5
5
  margin-bottom: 16px;
6
+ height: 24px;
6
7
  }
7
8
 
8
9
  .vitro-breadcrumbs-list-wrap {
@@ -1,5 +1,8 @@
1
1
  .vitro-selected-item {
2
- display: inline;
2
+ display: inline-block;
3
+ width: fit-content;
3
4
  margin: 0 6px 0 0;
4
5
  white-space: nowrap;
6
+ overflow: hidden;
7
+ text-overflow: ellipsis;
5
8
  }
@@ -19,6 +19,7 @@
19
19
  }
20
20
 
21
21
  .vitro-value-list .vitro-item {
22
+ width: 100%;
22
23
  padding: 8px 12px;
23
24
  cursor: pointer;
24
25
  border-radius: 0px;
@@ -99,7 +99,7 @@
99
99
  border: none;
100
100
  background: transparent;
101
101
  flex: 1 1;
102
- min-width: 100px;
102
+ min-width: 30px;
103
103
  color: #222D44;
104
104
  font-size: 14px;
105
105
  line-height: 16px;
@@ -0,0 +1,54 @@
1
+ .vitro-scrollbar-content {
2
+ height: 100%;
3
+ width: 100%;
4
+ }
5
+
6
+ :global(.ps) {
7
+ position: relative;
8
+ width: 100%;
9
+ height: 100%;
10
+ }
11
+
12
+ :global(.ps__rail-y) {
13
+ background-color: #fff !important;
14
+ width: 12px !important;
15
+ border-left: 1px solid #F7F9FC;
16
+ border-top: 1px solid #F7F9FC;
17
+ opacity: 1 !important;
18
+ }
19
+
20
+ :global(.ps__rail-x) {
21
+ background-color: #fff !important;
22
+ height: 12px !important;
23
+ border-top: 1px solid #F7F9FC;
24
+ opacity: 1 !important;
25
+ }
26
+
27
+ :global(.ps__thumb-x), :global(.ps__thumb-y) {
28
+ background-color: #E4E6EC !important;
29
+ border-radius: 4px;
30
+ }
31
+
32
+ :global(.ps__thumb-y) {
33
+ width: 4px !important;
34
+ right: 3px !important;
35
+ }
36
+
37
+ :global(.ps__thumb-x) {
38
+ height: 4px !important;
39
+ top: 3px !important;
40
+ }
41
+
42
+ :global(.ps .ps__rail-x):hover, :global(.ps .ps__rail-y):hover, :global(.ps .ps__rail-x):focus,
43
+ :global(.ps .ps__rail-y):focus, :global(.ps .ps__rail-x.ps--clicking), :global(.ps .ps__rail-y.ps--clicking) {
44
+ background-color: #fff;
45
+ opacity: 1;
46
+ }
47
+
48
+ :global(.ps__rail-y:hover > .ps__thumb-y), :global(.ps__rail-y:focus > .ps__thumb-y), :global(.ps__rail-y.ps--clicking .ps__thumb-y) {
49
+ background-color: #E4E6EC;
50
+ }
51
+
52
+ :global(.ps__rail-x:hover > .ps__thumb-x), :global(.ps__rail-x:focus > .ps__thumb-x), :global(.ps__rail-x.ps--clicking .ps__thumb-x) {
53
+ background-color: #E4E6EC;
54
+ }
@@ -132,6 +132,10 @@
132
132
  opacity: 0.136 !important;
133
133
  }
134
134
 
135
+ .TWClassSelected td {
136
+ background-color: #DCEEFF !important;
137
+ }
138
+
135
139
  .TWMenuMain {
136
140
  width: 241px !important;
137
141
  margin-top: 24px !important;
@@ -1,5 +1,5 @@
1
1
  :global(#TreeView) {
2
- height: 100%;
2
+ height: calc(100% - 36px);
3
3
  flex: 1 1;
4
4
  }
5
5
 
@@ -92,6 +92,7 @@
92
92
  height: 32px !important;
93
93
  line-height: 32px !important;
94
94
  background-position: center !important;
95
+ background-size: 100% !important;
95
96
  margin-right: 4px;
96
97
  }
97
98
 
@@ -2,7 +2,6 @@
2
2
  bottom: 24px;
3
3
  right: 24px;
4
4
  position: absolute;
5
- transition: all 0.1s ease;
6
5
  width: 241px;
7
6
  height: 96px;
8
7
  z-index: 10000000000000;
@@ -337,7 +336,6 @@
337
336
  flex-direction: column;
338
337
  align-items: center;
339
338
  justify-content: center;
340
- transition: all 1s ease;
341
339
  }
342
340
 
343
341
  .vitro-uploader:global(.vitro-dropzone-active) .vitro-drop-zone {
@@ -473,3 +471,7 @@
473
471
  position: unset !important;
474
472
  }
475
473
 
474
+ :global(.vitro-file-icon) {
475
+ width: 24px;
476
+ height: 24px;
477
+ }
@@ -0,0 +1,116 @@
1
+ /*
2
+ * Container style
3
+ */
4
+ .ps {
5
+ overflow: hidden !important;
6
+ overflow-anchor: none;
7
+ -ms-overflow-style: none;
8
+ touch-action: auto;
9
+ -ms-touch-action: auto;
10
+ }
11
+
12
+ /*
13
+ * Scrollbar rail styles
14
+ */
15
+ .ps__rail-x {
16
+ display: none;
17
+ opacity: 0;
18
+ transition: background-color .2s linear, opacity .2s linear;
19
+ -webkit-transition: background-color .2s linear, opacity .2s linear;
20
+ height: 15px;
21
+ /* there must be 'bottom' or 'top' for ps__rail-x */
22
+ bottom: 0px;
23
+ /* please don't change 'position' */
24
+ position: absolute;
25
+ }
26
+
27
+ .ps__rail-y {
28
+ display: none;
29
+ opacity: 0;
30
+ transition: background-color .2s linear, opacity .2s linear;
31
+ -webkit-transition: background-color .2s linear, opacity .2s linear;
32
+ width: 15px;
33
+ /* there must be 'right' or 'left' for ps__rail-y */
34
+ right: 0;
35
+ /* please don't change 'position' */
36
+ position: absolute;
37
+ }
38
+
39
+ .ps--active-x > .ps__rail-x,
40
+ .ps--active-y > .ps__rail-y {
41
+ display: block;
42
+ background-color: transparent;
43
+ }
44
+
45
+ .ps:hover > .ps__rail-x,
46
+ .ps:hover > .ps__rail-y,
47
+ .ps--focus > .ps__rail-x,
48
+ .ps--focus > .ps__rail-y,
49
+ .ps--scrolling-x > .ps__rail-x,
50
+ .ps--scrolling-y > .ps__rail-y {
51
+ opacity: 0.6;
52
+ }
53
+
54
+ .ps .ps__rail-x:hover,
55
+ .ps .ps__rail-y:hover,
56
+ .ps .ps__rail-x:focus,
57
+ .ps .ps__rail-y:focus,
58
+ .ps .ps__rail-x.ps--clicking,
59
+ .ps .ps__rail-y.ps--clicking {
60
+ background-color: #eee;
61
+ opacity: 0.9;
62
+ }
63
+
64
+ /*
65
+ * Scrollbar thumb styles
66
+ */
67
+ .ps__thumb-x {
68
+ background-color: #aaa;
69
+ border-radius: 6px;
70
+ transition: background-color .2s linear, height .2s ease-in-out;
71
+ -webkit-transition: background-color .2s linear, height .2s ease-in-out;
72
+ height: 6px;
73
+ /* there must be 'bottom' for ps__thumb-x */
74
+ bottom: 2px;
75
+ /* please don't change 'position' */
76
+ position: absolute;
77
+ }
78
+
79
+ .ps__thumb-y {
80
+ background-color: #aaa;
81
+ border-radius: 6px;
82
+ transition: background-color .2s linear, width .2s ease-in-out;
83
+ -webkit-transition: background-color .2s linear, width .2s ease-in-out;
84
+ width: 6px;
85
+ /* there must be 'right' for ps__thumb-y */
86
+ right: 2px;
87
+ /* please don't change 'position' */
88
+ position: absolute;
89
+ }
90
+
91
+ .ps__rail-x:hover > .ps__thumb-x,
92
+ .ps__rail-x:focus > .ps__thumb-x,
93
+ .ps__rail-x.ps--clicking .ps__thumb-x {
94
+ background-color: #999;
95
+ height: 11px;
96
+ }
97
+
98
+ .ps__rail-y:hover > .ps__thumb-y,
99
+ .ps__rail-y:focus > .ps__thumb-y,
100
+ .ps__rail-y.ps--clicking .ps__thumb-y {
101
+ background-color: #999;
102
+ width: 11px;
103
+ }
104
+
105
+ /* MS supports */
106
+ @supports (-ms-overflow-style: none) {
107
+ .ps {
108
+ overflow: auto !important;
109
+ }
110
+ }
111
+
112
+ @media screen and (-ms-high-contrast: active), (-ms-high-contrast: none) {
113
+ .ps {
114
+ overflow: auto !important;
115
+ }
116
+ }
@@ -6,5 +6,6 @@ export declare enum EVENT {
6
6
  DRAGOVER = "dragover",
7
7
  DRAGLEAVE = "dragleave",
8
8
  HISTORY_UPDATE = "vitro.history.update",
9
- HISTORY_CHANGED = "vitro.history.changed"
9
+ HISTORY_CHANGED = "vitro.history.changed",
10
+ DROP = "drop"
10
11
  }
@@ -0,0 +1,9 @@
1
+ import React from 'react';
2
+ interface ScrollBarProps {
3
+ isHideScrollX?: boolean;
4
+ isFocusOnScroll?: boolean;
5
+ onInit?: (container: any) => any;
6
+ children: React.ReactNode;
7
+ }
8
+ export declare const ScrollBar: (props: ScrollBarProps) => JSX.Element;
9
+ export {};
@@ -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 setFileImage;
34
35
  private setProgressBar;
35
36
  private setFileProgress;
36
37
  private initOnDrop;
@@ -10,4 +10,5 @@ export interface TelerikUploaderSettings {
10
10
  isDirectoryDrop: boolean;
11
11
  isAutoReset?: boolean;
12
12
  resetDurationMs?: number;
13
+ getFileImage?: (name: string) => string;
13
14
  }
package/dist/index.css CHANGED
@@ -1,4 +1,5 @@
1
1
  @import url('@vitrosoftware/common-ui-ts/css/third-party/kendo/kendo.css');
2
+ @import url('@vitrosoftware/common-ui-ts/css/third-party/perfect-scrollbar/perfect-scrollbar.css');
2
3
  @import url('@vitrosoftware/common-ui-ts/css/third-party/jstree/style.min.css');
3
4
  @import url('@vitrosoftware/common-ui-ts/css/third-party/jquery-ui/jquery-ui.min.css');
4
5
  @import url('@vitrosoftware/common-ui-ts/css/third-party/jquery-ui/jquery-ui.structure.css');
@@ -48,11 +49,66 @@
48
49
  align-items: flex-start;
49
50
  }
50
51
  }
52
+ ._scrollbar_vitro-scrollbar-content_3HXSt5u {
53
+ height: 100%;
54
+ width: 100%;
55
+ }
56
+
57
+ .ps {
58
+ position: relative;
59
+ width: 100%;
60
+ height: 100%;
61
+ }
62
+
63
+ .ps__rail-y {
64
+ background-color: #fff !important;
65
+ width: 12px !important;
66
+ border-left: 1px solid #F7F9FC;
67
+ border-top: 1px solid #F7F9FC;
68
+ opacity: 1 !important;
69
+ }
70
+
71
+ .ps__rail-x {
72
+ background-color: #fff !important;
73
+ height: 12px !important;
74
+ border-top: 1px solid #F7F9FC;
75
+ opacity: 1 !important;
76
+ }
77
+
78
+ .ps__thumb-x, .ps__thumb-y {
79
+ background-color: #E4E6EC !important;
80
+ border-radius: 4px;
81
+ }
82
+
83
+ .ps__thumb-y {
84
+ width: 4px !important;
85
+ right: 3px !important;
86
+ }
87
+
88
+ .ps__thumb-x {
89
+ height: 4px !important;
90
+ top: 3px !important;
91
+ }
92
+
93
+ .ps .ps__rail-x:hover, .ps .ps__rail-y:hover, .ps .ps__rail-x:focus,
94
+ .ps .ps__rail-y:focus, .ps .ps__rail-x.ps--clicking, .ps .ps__rail-y.ps--clicking {
95
+ background-color: #fff;
96
+ opacity: 1;
97
+ }
98
+
99
+ .ps__rail-y:hover > .ps__thumb-y, .ps__rail-y:focus > .ps__thumb-y, .ps__rail-y.ps--clicking .ps__thumb-y {
100
+ background-color: #E4E6EC;
101
+ }
102
+
103
+ .ps__rail-x:hover > .ps__thumb-x, .ps__rail-x:focus > .ps__thumb-x, .ps__rail-x.ps--clicking .ps__thumb-x {
104
+ background-color: #E4E6EC;
105
+ }
51
106
  ._breadcrumbs_vitro-breadcrumbs_3r4NcQY {
52
107
  display: flex;
53
108
  flex-direction: column;
54
109
  position: relative;
55
110
  margin-bottom: 16px;
111
+ height: 24px;
56
112
  }
57
113
 
58
114
  ._breadcrumbs_vitro-breadcrumbs-list-wrap_1_JBrw0 {
@@ -283,7 +339,7 @@
283
339
  }
284
340
 
285
341
  #TreeView {
286
- height: 100%;
342
+ height: calc(100% - 36px);
287
343
  flex: 1 1;
288
344
  }
289
345
 
@@ -378,6 +434,7 @@
378
434
  height: 32px !important;
379
435
  line-height: 32px !important;
380
436
  background-position: center !important;
437
+ background-size: 100% !important;
381
438
  margin-right: 4px;
382
439
  }
383
440
 
@@ -445,7 +502,6 @@
445
502
  bottom: 24px;
446
503
  right: 24px;
447
504
  position: absolute;
448
- transition: all 0.1s ease;
449
505
  width: 241px;
450
506
  height: 96px;
451
507
  z-index: 10000000000000;
@@ -780,7 +836,6 @@
780
836
  flex-direction: column;
781
837
  align-items: center;
782
838
  justify-content: center;
783
- transition: all 1s ease;
784
839
  }
785
840
 
786
841
  ._uploader_vitro-uploader_237vX7T.vitro-dropzone-active ._uploader_vitro-drop-zone_3w2dluc {
@@ -917,7 +972,10 @@
917
972
  position: unset !important;
918
973
  }
919
974
 
920
-
975
+ .vitro-file-icon {
976
+ width: 24px;
977
+ height: 24px;
978
+ }
921
979
  .vitro-display-none {
922
980
  display: none;
923
981
  }
@@ -2905,9 +2963,13 @@
2905
2963
  line-height: 21px;
2906
2964
  }
2907
2965
  ._lookup-picker-selected-item_vitro-selected-item_hw-euth {
2908
- display: inline;
2966
+ display: inline-block;
2967
+ width: -moz-fit-content;
2968
+ width: fit-content;
2909
2969
  margin: 0 6px 0 0;
2910
2970
  white-space: nowrap;
2971
+ overflow: hidden;
2972
+ text-overflow: ellipsis;
2911
2973
  }
2912
2974
 
2913
2975
  ._lookup-picker-html-value_vitro-item-html-value_2QBoTey {
@@ -2941,6 +3003,7 @@
2941
3003
  }
2942
3004
 
2943
3005
  ._lookup-picker-value-list_vitro-value-list_LSdCMjq ._lookup-picker-value-list_vitro-item_7yZBz5u {
3006
+ width: 100%;
2944
3007
  padding: 8px 12px;
2945
3008
  cursor: pointer;
2946
3009
  border-radius: 0px;
@@ -3098,7 +3161,7 @@
3098
3161
  border: none;
3099
3162
  background: transparent;
3100
3163
  flex: 1 1;
3101
- min-width: 100px;
3164
+ min-width: 30px;
3102
3165
  color: #222D44;
3103
3166
  font-size: 14px;
3104
3167
  line-height: 16px;
package/dist/index.d.ts CHANGED
@@ -60,6 +60,7 @@ import { Activity } from './controls/Activity/Activity';
60
60
  import { ActivityItem, ActivityItemProps } from './controls/ActivityItem/ActivityItem';
61
61
  import { Icon } from './controls/Icon/Icon';
62
62
  import { EVENT } from './constants/Event';
63
+ import { ScrollBar } from './controls/ScrollBar/ScrollBar';
63
64
  export { Breadcrumbs };
64
65
  export { TopLevelMenu };
65
66
  export { TreeView, TreeViewContext, TREE_VIEW };
@@ -94,3 +95,4 @@ export { Activity };
94
95
  export { ActivityItem, ActivityItemProps };
95
96
  export { Icon };
96
97
  export { EVENT };
98
+ export { ScrollBar };