@vitrosoftware/common-ui-ts 1.1.89 → 1.1.90

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.
Files changed (47) hide show
  1. package/css/std/controls/checkbox/checkbox.css +1 -1
  2. package/css/std/controls/criterion/criterion.css +6 -1
  3. package/css/std/controls/date-picker/date-picker.css +10 -5
  4. package/css/std/controls/image-button/image-button.css +13 -0
  5. package/css/std/controls/input/input.css +16 -11
  6. package/css/std/controls/link/link.css +12 -0
  7. package/css/std/controls/link-input/img/edit.svg +5 -0
  8. package/css/std/controls/link-input/link-input.css +37 -0
  9. package/css/std/controls/login/img/clock.svg +4 -0
  10. package/css/std/controls/login/img/windows-logo.svg +6 -0
  11. package/css/std/controls/login/login-content.css +12 -0
  12. package/css/std/controls/login/login-form.css +161 -0
  13. package/css/std/controls/login/login-go-back-link.css +7 -0
  14. package/css/std/controls/login/login-submit-button.css +10 -0
  15. package/css/std/controls/login/login-title.css +8 -0
  16. package/css/std/controls/login/login.css +12 -144
  17. package/css/std/controls/login/ntlm-authentication-form.css +31 -0
  18. package/css/std/controls/login/two-factor-authentication-form.css +144 -0
  19. package/css/std/controls/lookup-picker/lookup-picker.css +14 -9
  20. package/css/std/controls/time-picker/time-picker.css +18 -13
  21. package/dist/index.css +555 -221
  22. package/dist/index.js +739 -339
  23. package/dist/index.js.map +1 -1
  24. package/dist/src/constants/Control.d.ts +1 -0
  25. package/dist/src/constants/Target.d.ts +4 -0
  26. package/dist/src/controls/Button/Button.d.ts +1 -2
  27. package/dist/src/controls/ImageButton/ImageButton.d.ts +12 -0
  28. package/dist/src/controls/Input/Input.d.ts +1 -0
  29. package/dist/src/controls/Link/Link.d.ts +10 -0
  30. package/dist/src/controls/LinkInput/LinkInput.d.ts +26 -0
  31. package/dist/src/controls/LinkInput/LinkInputConstants.d.ts +4 -0
  32. package/dist/src/controls/LinkInput/LinkInputRef.d.ts +11 -0
  33. package/dist/src/controls/Login/Login.d.ts +3 -7
  34. package/dist/src/controls/Login/LoginConstants.d.ts +19 -4
  35. package/dist/src/controls/Login/LoginContent.d.ts +8 -0
  36. package/dist/src/controls/Login/LoginForm.d.ts +15 -0
  37. package/dist/src/controls/Login/LoginFormRef.d.ts +5 -0
  38. package/dist/src/controls/Login/LoginGoBackLink.d.ts +6 -0
  39. package/dist/src/controls/Login/LoginSubmitButton.d.ts +8 -0
  40. package/dist/src/controls/Login/LoginTitle.d.ts +7 -0
  41. package/dist/src/controls/Login/NTLMAuthenticationForm.d.ts +6 -0
  42. package/dist/src/controls/Login/TwoFactorAuthenticationForm.d.ts +15 -0
  43. package/dist/src/controls/Login/TwoFactorAuthenticationFormRef.d.ts +4 -0
  44. package/dist/src/index.d.ts +14 -3
  45. package/package.json +1 -1
  46. package/src/controls/BimViewer/js/bim-viewer.js +2 -2
  47. package/src/controls/PdfViewer/js/pdf-viewer.js +1 -1
@@ -38,7 +38,7 @@
38
38
  }
39
39
 
40
40
  .vitro-label {
41
- color: #222D44;
41
+ color: #4A556C;
42
42
  font-size: 14px;
43
43
  line-height: 135%;
44
44
  }
@@ -23,8 +23,13 @@
23
23
  }
24
24
 
25
25
  .vitro-label {
26
+ color: #4A556C;
26
27
  padding: 0 6px;
27
- background: #fff;
28
+ background: transparent;
29
+ background-image: linear-gradient(#fff, #fff);
30
+ background-size: 100% 2px;
31
+ background-position: 0 calc(50% + 3px);
32
+ background-repeat: no-repeat;
28
33
  z-index: 1;
29
34
  position: absolute;
30
35
  left: 10px;
@@ -48,10 +48,6 @@
48
48
  line-height: 16px;
49
49
  }
50
50
 
51
- .vitro-focus .vitro-label {
52
- color: #3274E0;
53
- }
54
-
55
51
  .vitro-read-only input {
56
52
  color: #4A556C;
57
53
  font-size: 12px;
@@ -67,13 +63,22 @@
67
63
  display: none !important;
68
64
  }
69
65
 
66
+ .vitro-focus .vitro-label {
67
+ color: #3274E0;
68
+ }
69
+
70
70
  .vitro-error .vitro-label {
71
71
  color: #D13438;
72
72
  }
73
73
 
74
74
  .vitro-label {
75
+ color: #4A556C;
75
76
  padding: 0 6px;
76
- background: #fff;
77
+ background: transparent;
78
+ background-image: linear-gradient(#fff, #fff);
79
+ background-size: 100% 2px;
80
+ background-position: 0 calc(50% + 3px);
81
+ background-repeat: no-repeat;
77
82
  z-index: 1;
78
83
  position: absolute;
79
84
  left: 10px;
@@ -0,0 +1,13 @@
1
+ .vitro-image-button,
2
+ .vitro-image-button:hover,
3
+ .vitro-image-button:active {
4
+ width: 20px;
5
+ height: 20px;
6
+ flex-shrink: 0;
7
+ background-position: center;
8
+ background-size: 100%;
9
+ background-repeat: no-repeat;
10
+ border: none;
11
+ outline: none;
12
+ background-color: transparent;
13
+ }
@@ -54,15 +54,6 @@
54
54
  line-height: 16px;
55
55
  }
56
56
 
57
- .vitro-focus input,
58
- .vitro-focus textarea {
59
- border-color: #3274E0;
60
- }
61
-
62
- .vitro-focus .vitro-label {
63
- color: #3274E0;
64
- }
65
-
66
57
  .vitro-read-only input,
67
58
  .vitro-read-only textarea {
68
59
  color: #4A556C;
@@ -81,18 +72,32 @@
81
72
  color: #8E98A3;
82
73
  }
83
74
 
75
+ .vitro-focus input,
76
+ .vitro-focus textarea {
77
+ border-color: #3274E0;
78
+ }
79
+
80
+ .vitro-focus .vitro-label {
81
+ color: #3274E0 !important;
82
+ }
83
+
84
84
  .vitro-error input,
85
85
  .vitro-error textarea {
86
86
  border-color: #D13438;
87
87
  }
88
88
 
89
89
  .vitro-error .vitro-label {
90
- color: #D13438;
90
+ color: #D13438 !important;
91
91
  }
92
92
 
93
93
  .vitro-label {
94
+ color: #4A556C;
94
95
  padding: 0 6px;
95
- background: #fff;
96
+ background: transparent;
97
+ background-image: linear-gradient(#fff, #fff);
98
+ background-size: 100% 2px;
99
+ background-position: 0 calc(50% + 3px);
100
+ background-repeat: no-repeat;
96
101
  z-index: 1;
97
102
  position: absolute;
98
103
  left: 10px;
@@ -0,0 +1,12 @@
1
+ .vitro-link, .vitro-link:visited {
2
+ color: #347FDE;
3
+ text-align: center;
4
+ font-size: 16px;
5
+ line-height: 135%;
6
+ white-space: nowrap;
7
+ cursor: pointer;
8
+ }
9
+
10
+ .vitro-link:hover {
11
+ color: #3274E0;
12
+ }
@@ -0,0 +1,5 @@
1
+ <svg width="20" height="20" viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg">
2
+ <path d="M13.8465 3.81686C14.1564 3.50706 14.5765 3.33301 15.0147 3.33301C15.2316 3.33301 15.4464 3.37574 15.6469 3.45876C15.8473 3.54178 16.0294 3.66346 16.1828 3.81686C16.3362 3.97027 16.4579 4.15238 16.5409 4.35281C16.6239 4.55324 16.6667 4.76806 16.6667 4.985C16.6667 5.20194 16.6239 5.41676 16.5409 5.61719C16.4579 5.81762 16.3362 5.99973 16.1828 6.15313L7.10122 15.2347C6.67402 15.6619 6.13876 15.965 5.55265 16.1115L3.33334 16.6663L3.88816 14.447C4.03469 13.8609 4.33775 13.3257 4.76495 12.8985L13.8465 3.81686Z" stroke="#4A556C" stroke-linecap="round" stroke-linejoin="round"/>
3
+ <path d="M11.6667 5.83301L14.1667 8.33301" stroke="#4A556C" stroke-linejoin="round"/>
4
+ <path d="M10.8333 16.667L16.6667 16.667" stroke="#4A556C" stroke-linecap="round" stroke-linejoin="round"/>
5
+ </svg>
@@ -0,0 +1,37 @@
1
+ .vitro-link-input {
2
+ position: relative;
3
+ }
4
+
5
+ .vitro-link-input input {
6
+ color: #2A63F6;
7
+ font-size: 14px;
8
+ line-height: 16px;
9
+ overflow: hidden;
10
+ text-overflow: ellipsis;
11
+ cursor: pointer;
12
+ }
13
+
14
+ .vitro-edit-mode input {
15
+ overflow: unset;
16
+ cursor: text;
17
+ }
18
+
19
+ .vitro-read-only input {
20
+ padding: 8px 16px;
21
+ }
22
+
23
+ .vitro-control > div:first-child {
24
+ color: #4A556C;
25
+ }
26
+
27
+ .vitro-read-only .vitro-control > div:first-child {
28
+ color: #8E98A3;
29
+ }
30
+
31
+ .vitro-edit-button {
32
+ display: inline-block;
33
+ position: absolute;
34
+ right: 16px;
35
+ top: 10px;
36
+ background-image: url('@vitrosoftware/common-ui-ts/css/std/controls/link-input/img/edit.svg');
37
+ }
@@ -0,0 +1,4 @@
1
+ <svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
2
+ <path d="M12.0003 23.1431C18.1543 23.1431 23.1431 18.1543 23.1431 12.0003C23.1431 5.84625 18.1543 0.857422 12.0003 0.857422C5.84625 0.857422 0.857422 5.84625 0.857422 12.0003C0.857422 18.1543 5.84625 23.1431 12.0003 23.1431Z" fill="white" stroke="#6C757D" stroke-linecap="round" stroke-linejoin="round"/>
3
+ <path d="M11.1426 5.14258V13.714L16.2854 16.2854" stroke="#6C757D" stroke-linecap="round" stroke-linejoin="round"/>
4
+ </svg>
@@ -0,0 +1,6 @@
1
+ <svg width="48" height="48" viewBox="0 0 48 48" fill="none" xmlns="http://www.w3.org/2000/svg">
2
+ <rect x="2" y="2" width="21" height="21" fill="#0078D4"/>
3
+ <rect x="25" y="2" width="21" height="21" fill="#0078D4"/>
4
+ <rect x="25" y="25" width="21" height="21" fill="#0078D4"/>
5
+ <rect x="2" y="25" width="21" height="21" fill="#0078D4"/>
6
+ </svg>
@@ -0,0 +1,12 @@
1
+ .vitro-login-content {
2
+ height: 100%;
3
+ width: 100%;
4
+ transition: flex-basis 0.3s ease;
5
+ display: flex;
6
+ flex-direction: column;
7
+ align-items: center;
8
+ }
9
+
10
+ .vitro-login-content > div {
11
+ width: 100%;
12
+ }
@@ -0,0 +1,161 @@
1
+ .vitro-title {
2
+ margin-bottom: 45px;
3
+ }
4
+
5
+ .vitro-flex {
6
+ width: 100%;
7
+ display: flex;
8
+ justify-content: space-between;
9
+ align-items: center;
10
+ margin-bottom: 24px;
11
+ margin-top: 32px;
12
+ height: 24px;
13
+ }
14
+
15
+ .vitro-flex.vitro-error {
16
+ margin-top: 11px;
17
+ }
18
+
19
+ .vitro-link, vitro-link-register, .vitro-link:visited {
20
+ color: #347FDE;
21
+ text-align: center;
22
+ font-size: 16px;
23
+ line-height: 135%;
24
+ white-space: nowrap;
25
+ cursor: pointer;
26
+ }
27
+
28
+ .vitro-link:hover {
29
+ color: #3274E0;
30
+ }
31
+
32
+ .vitro-separator {
33
+ margin: 24px 0;
34
+ color: #4A556C;
35
+ text-align: center;
36
+ font-size: 18px;
37
+ line-height: 135%;
38
+ width: fit-content;
39
+ }
40
+
41
+ .vitro-separator::before,
42
+ .vitro-separator::after {
43
+ content: '';
44
+ display: inline-block;
45
+ height: 1px;
46
+ width: 150px;
47
+ background: #E4E6EC;
48
+ vertical-align: middle;
49
+ }
50
+
51
+ .vitro-separator::before {
52
+ margin-right: 30px;
53
+ }
54
+
55
+ .vitro-separator::after {
56
+ margin-left: 30px;
57
+ }
58
+
59
+ .vitro-control,
60
+ .vitro-password-control {
61
+ margin-bottom: 0;
62
+ margin-top: 20px;
63
+ max-height: 69px;
64
+ }
65
+
66
+ .vitro-control > div {
67
+ font-size: 16px !important;
68
+ line-height: 27px !important;
69
+ top: -16px !important;
70
+ }
71
+
72
+ .vitro-control input {
73
+ height: 48px !important;
74
+ font-size: 18px !important;
75
+ line-height: 135% !important;
76
+ padding: 12px 44px 12px 20px !important;
77
+ box-shadow: 0px 2px 6px 0px rgba(19, 18, 66, 0.07);
78
+ }
79
+
80
+ .vitro-control input::placeholder {
81
+ color: #6C757D;
82
+ font-family: 'InterRegular';
83
+ font-size: 18px;
84
+ font-weight: 400;
85
+ line-height: 135%;
86
+ }
87
+
88
+ .vitro-login-checkbox {
89
+ margin-bottom: 0;
90
+ }
91
+
92
+ .vitro-login-checkbox div {
93
+ font-size: 16px;
94
+ }
95
+
96
+ .vitro-button-list {
97
+ width: 100%;
98
+ display: flex;
99
+ flex-direction: column;
100
+ grid-gap: 12px;
101
+ margin-bottom: 12px;
102
+ }
103
+
104
+ .vitro-button {
105
+ min-height: 48px;
106
+ height: 48px;
107
+ width: 100%;
108
+ font-family: 'InterRegular';
109
+ color: #222D44;
110
+ font-size: 18px;
111
+ line-height: 135%;
112
+ background-color: #fff;
113
+ outline: none;
114
+ border-radius: 4px;
115
+ border: 1px solid #C0CAD5;
116
+ display: flex;
117
+ align-items: center;
118
+ justify-content: center;
119
+ grid-gap: 12px;
120
+ }
121
+
122
+ .vitro-button :global(.vitro-image) {
123
+ margin-right: 12px;
124
+ }
125
+
126
+ .vitro-button:hover,
127
+ .vitro-button:active {
128
+ background-color: #F3F8FF;
129
+ }
130
+
131
+ @media (max-width: 800px) {
132
+ .vitro-login-checkbox div {
133
+ font-size: 14px !important;
134
+ }
135
+
136
+ .vitro-link {
137
+ font-size: 14px !important;
138
+ }
139
+
140
+ .vitro-link-register {
141
+ font-size: 16px !important;
142
+ }
143
+
144
+ .vitro-separator::before,
145
+ .vitro-separator::after {
146
+ width: calc((100% - 93px) / 2) !important;
147
+ }
148
+
149
+ .vitro-separator {
150
+ width: 100% !important;
151
+ }
152
+
153
+ .vitro-control input {
154
+ -webkit-box-shadow: inset 0 0 0 50px white;
155
+ }
156
+
157
+ .vitro-title {
158
+ margin-bottom: 16px;
159
+ font-size: 24px;
160
+ }
161
+ }
@@ -0,0 +1,7 @@
1
+ .vitro-link {
2
+ font-family: 'InterMedium';
3
+ }
4
+
5
+ .vitro-link:hover {
6
+ color: #3274E0;
7
+ }
@@ -0,0 +1,10 @@
1
+ .vitro-submit-button {
2
+ font-family: 'InterMedium' !important;
3
+ width: 100%;
4
+ min-height: 48px;
5
+ height: 48px !important;
6
+ font-size: 18px !important;
7
+ line-height: 135%;
8
+ margin-top: 20px;
9
+ box-shadow: 0px 4px 16px 0px rgba(52, 117, 199, 0.15);
10
+ }
@@ -0,0 +1,8 @@
1
+ .vitro-login-title {
2
+ color: #222D44;
3
+ text-align: center;
4
+ font-family: 'InterMedium';
5
+ font-size: 32px;
6
+ line-height: 135%;
7
+ margin-bottom: 25px;
8
+ }
@@ -3,6 +3,9 @@
3
3
  height: 100%;
4
4
  background: #347FDE;
5
5
  position: relative;
6
+ display: flex;
7
+ align-items: center;
8
+ justify-content: center;
6
9
  background-size: cover;
7
10
  background-position: center;
8
11
  background-image: url('@vitrosoftware/common-ui-ts/css/std/controls/login/img/login-background.png');
@@ -20,20 +23,18 @@
20
23
  background: #000;
21
24
  }
22
25
 
23
- .vitro-form-login {
26
+ .vitro-login {
24
27
  width: 468px;
25
- min-height: 506px;
28
+ overflow: hidden;
26
29
  padding: 71px 36px 24px 36px;
27
30
  border-radius: 8px;
28
31
  display: flex;
29
32
  flex-direction: column;
30
33
  align-items: center;
31
34
  background: #fff;
32
- position: absolute;
33
35
  z-index: 100;
34
- top: calc(50% - 253px);
35
- left: calc(50% - 234px);
36
36
  box-shadow: 0px 4px 14px 0px rgba(0, 0, 0, 0.18), 0px 0px 4px 0px rgba(0, 0, 0, 0.14);
37
+ transition: max-height 1s ease;
37
38
  }
38
39
 
39
40
  .vitro-logo {
@@ -42,117 +43,6 @@
42
43
  margin-bottom: 34px;
43
44
  }
44
45
 
45
- .vitro-title {
46
- color: #222D44;
47
- text-align: center;
48
- font-family: 'InterMedium';
49
- font-size: 32px;
50
- line-height: 135%;
51
- margin-bottom: 25px;
52
- }
53
-
54
- .vitro-flex {
55
- width: 100%;
56
- display: flex;
57
- justify-content: space-between;
58
- align-items: center;
59
- margin-bottom: 24px;
60
- margin-top: 32px;
61
- height: 24px;
62
- }
63
-
64
- .vitro-flex.vitro-error {
65
- margin-top: 11px;
66
- }
67
-
68
- .vitro-link, vitro-link-register, .vitro-link:visited {
69
- color: #347FDE;
70
- text-align: center;
71
- font-size: 16px;
72
- line-height: 135%;
73
- white-space: nowrap;
74
- cursor: pointer;
75
- }
76
-
77
- .vitro-link:hover {
78
- color: #3274E0;
79
- }
80
-
81
- .vitro-separator {
82
- margin-bottom: 20px;
83
- color: #4A556C;
84
- text-align: center;
85
- font-size: 18px;
86
- line-height: 135%;
87
- width: fit-content;
88
- margin-top: auto;
89
- }
90
-
91
- .vitro-separator::before,
92
- .vitro-separator::after {
93
- content: '';
94
- display: inline-block;
95
- height: 1px;
96
- width: 150px;
97
- background: #E4E6EC;
98
- vertical-align: middle;
99
- }
100
-
101
- .vitro-separator::before {
102
- margin-right: 30px;
103
- }
104
-
105
- .vitro-separator::after {
106
- margin-left: 30px;
107
- }
108
-
109
- .vitro-control,
110
- .vitro-password-control {
111
- margin-bottom: 0;
112
- margin-top: 20px;
113
- max-height: 69px;
114
- }
115
-
116
- .vitro-control > div {
117
- font-size: 16px !important;
118
- line-height: 27px !important;
119
- top: -16px !important;
120
- }
121
-
122
- .vitro-control input {
123
- height: 48px !important;
124
- font-size: 18px !important;
125
- line-height: 135% !important;
126
- padding: 12px 44px 12px 20px !important;
127
- box-shadow: 0px 2px 6px 0px rgba(19, 18, 66, 0.07);
128
- }
129
-
130
- .vitro-control input::placeholder {
131
- color: #6C757D;
132
- font-family: 'InterRegular';
133
- font-size: 18px;
134
- font-weight: 400;
135
- line-height: 135%;
136
- }
137
-
138
- .vitro-login-checkbox {
139
- margin-bottom: 0;
140
- }
141
-
142
- .vitro-login-checkbox div {
143
- font-size: 16px;
144
- }
145
-
146
- .vitro-button {
147
- font-family: 'InterMedium' !important;
148
- width: 100%;
149
- height: 48px !important;
150
- font-size: 18px !important;
151
- line-height: 135%;
152
- margin-top: 20px;
153
- box-shadow: 0px 4px 16px 0px rgba(52, 117, 199, 0.15);
154
- }
155
-
156
46
  .vitro-footer {
157
47
  position: absolute;
158
48
  bottom: 12px;
@@ -176,7 +66,7 @@
176
66
  color: #fff;
177
67
  text-align: center;
178
68
  font-size: 14px;
179
- line-height: 135%;
69
+ line-height: 135%;
180
70
  white-space: nowrap;
181
71
  margin-right: 24px;
182
72
  display: flex;
@@ -184,7 +74,7 @@
184
74
  }
185
75
 
186
76
  .vitro-link-list a,
187
- .vitro-link-list a:visited,
77
+ .vitro-link-list a:visited,
188
78
  .vitro-link-list a:hover {
189
79
  color: #fff;
190
80
  cursor: pointer;
@@ -213,37 +103,15 @@
213
103
  }
214
104
 
215
105
  @media (max-width: 800px) {
216
- .vitro-login-checkbox div {
217
- font-size: 14px !important;
218
- }
219
-
220
- .vitro-link {
221
- font-size: 14px !important;
222
- }
223
-
224
- .vitro-link-register {
225
- font-size: 16px !important;
226
- }
227
-
228
- .vitro-separator::before,
229
- .vitro-separator::after {
230
- width: calc((100% - 93px) / 2) !important;
231
- }
232
-
233
- .vitro-separator {
234
- width: 100% !important;
235
- }
236
-
237
- .vitro-form-login {
106
+ .vitro-login {
238
107
  margin: 0 16px;
239
108
  width: -moz-available !important;
240
109
  width: -webkit-fill-available !important;
241
110
  width: stretch !important;
242
- left: 0 !important;
243
- padding: 71px 12px 24px 12px !important;
111
+ padding: 48px 12px 24px 12px !important;
244
112
  }
245
113
 
246
- .vitro-control input {
247
- -webkit-box-shadow: inset 0 0 0 50px white;
114
+ .vitro-logo {
115
+ margin-bottom: 28px;
248
116
  }
249
117
  }
@@ -0,0 +1,31 @@
1
+ .vitro-ntlm-authentication-form {
2
+ width: 100%;
3
+ height: 289px;
4
+ display: flex;
5
+ flex-direction: column;
6
+ align-items: center;
7
+ }
8
+
9
+ .vitro-content {
10
+ display: flex;
11
+ flex-direction: column;
12
+ align-items: center;
13
+ grid-gap: 16px;
14
+ margin-top: 20px;
15
+ margin-bottom: auto;
16
+ }
17
+
18
+ .vitro-content span {
19
+ font-size: 18px;
20
+ line-height: 135%;
21
+ text-align: center;
22
+ }
23
+
24
+ .vitro-image {
25
+ width: 48px;
26
+ height: 48px;
27
+ background-size: 100%;
28
+ background-position: center;
29
+ background-repeat: no-repeat;
30
+ background-image: url('@vitrosoftware/common-ui-ts/css/std/controls/login/img/windows-logo.svg');
31
+ }