ros.grant.common 2.0.1063 → 2.0.1067

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.
@@ -0,0 +1,82 @@
1
+ window.ChatSideMenuService = new ChatSideMenuService();
2
+ window.ChatAuthMenuService = new ChatAuthMenuService();
3
+
4
+ function ChatSideMenuService() {
5
+ const _CHAT_APP_SIDE_MENU_FETCHING_URL = '/chat/api/v1/externalsidemenu/ext-app-side-menu-info';
6
+ const _CHAT_USER_SIDE_MENU_FETCHING_URL = '/chat/api/v1/externalsidemenu/ext-user-side-menu-info';
7
+
8
+ var _this = this;
9
+
10
+ _this.renderApplicationSideMenuElem = function (appId, userId, menuRenderer) {
11
+ if (!appId?.trim()) {
12
+ return;
13
+ }
14
+ if (!menuRenderer || (!!menuRenderer && typeof menuRenderer !== 'function')) {
15
+ return;
16
+ }
17
+ fetchApplicationChatSideMenuData(appId, userId).then(res => menuRenderer(res)).catch(err => console.warn('Chat currently offline.'));
18
+ };
19
+
20
+ _this.renderUserSideMenuElem = function (menuRenderer) {
21
+ if (!menuRenderer || (!!menuRenderer && typeof menuRenderer !== 'function')) {
22
+ return;
23
+ }
24
+ fetchUserChatSideMenuData().then(res => menuRenderer(res)).catch(err => console.warn('Chat currently offline.'));
25
+ };
26
+
27
+ // Privates
28
+ function fetchApplicationChatSideMenuData(appId, userId) {
29
+ return new Promise((result, reject) => {
30
+ let url = `${_CHAT_APP_SIDE_MENU_FETCHING_URL}?appId=${appId}`;
31
+ if (userId) {
32
+ url += `${url}&userId=${userId}`;
33
+ }
34
+
35
+ fetch(url).then(res => {
36
+ if (res.ok) {
37
+ return res.json().then(jr => result(jr)).catch(err => reject(err));
38
+ } else {
39
+ return reject(res);
40
+ }
41
+ }).catch(err => reject(err));
42
+ });
43
+ }
44
+
45
+ function fetchUserChatSideMenuData() {
46
+ return new Promise((result, reject) => {
47
+ fetch(_CHAT_USER_SIDE_MENU_FETCHING_URL).then(res => {
48
+ if (res.ok) {
49
+ return res.json().then(jr => result(jr)).catch(err => reject(err));
50
+ } else {
51
+ return reject(res);
52
+ }
53
+ }).catch(err => reject(err));
54
+ });
55
+ }
56
+ }
57
+
58
+ function ChatAuthMenuService() {
59
+ const _CHAT_APP_AUTH_MENU_FETCHING_URL = '/chat/api/v1/externalauthmenu/external-auth-menu-info';
60
+
61
+ var _this = this;
62
+
63
+ _this.renderUserAuthMenuElem = function (menuRenderer) {
64
+ if (!menuRenderer || (!!menuRenderer && typeof menuRenderer !== 'function')) {
65
+ return;
66
+ }
67
+ fetchUserChatAuthMenuData().then(res => menuRenderer(res)).catch(err => console.warn('Chat currently offline.'));
68
+ };
69
+
70
+ // Privates
71
+ function fetchUserChatAuthMenuData() {
72
+ return new Promise((result, reject) => {
73
+ fetch(_CHAT_APP_AUTH_MENU_FETCHING_URL).then(res => {
74
+ if (res.ok) {
75
+ return res.json().then(jr => result(jr)).catch(err => reject(err));
76
+ } else {
77
+ return reject(res);
78
+ }
79
+ }).catch(err => reject(err));
80
+ });
81
+ }
82
+ }
@@ -144,6 +144,22 @@ html {
144
144
  text-align: justify !important;
145
145
  }
146
146
 
147
+ .nowrap {
148
+ white-space: nowrap;
149
+ }
150
+
151
+ .bold {
152
+ font-weight: bold !important;
153
+ }
154
+
155
+ .text-bold {
156
+ font-weight: bold !important;
157
+ }
158
+
159
+ .text-normal {
160
+ font-weight: normal !important;
161
+ }
162
+
147
163
  .text-nowrap {
148
164
  white-space: nowrap !important;
149
165
  }
@@ -56,10 +56,6 @@ span {
56
56
  word-break: break-word;
57
57
  }
58
58
 
59
- .nowrap {
60
- white-space: nowrap;
61
- }
62
-
63
59
  p {
64
60
  padding: 0;
65
61
  margin: 0;
@@ -143,10 +139,6 @@ h6 {
143
139
  font-size: 12px;
144
140
  }
145
141
 
146
- .bold {
147
- font-weight: bold;
148
- }
149
-
150
142
  .color-accent {
151
143
  color: var(--Main2) !important;
152
144
  }
@@ -334,7 +334,7 @@
334
334
  &.info-baner {
335
335
  display: flex;
336
336
  align-items: center;
337
- justify-content: space-between;
337
+ justify-content: center;
338
338
  padding-top: 8px;
339
339
  padding-bottom: 0;
340
340
  margin: 0 -24px;
@@ -250,10 +250,8 @@
250
250
  width: 100%;
251
251
  height: 100%;
252
252
  font-size: 14px;
253
- background-color: var(--Bg1);
254
253
  border: 1px solid var(--Stroke);
255
254
  border-radius: 4px;
256
- padding: 15px;
257
255
  }
258
256
 
259
257
  label {
@@ -7,7 +7,7 @@
7
7
  input {
8
8
  font-size: 14px;
9
9
  border-radius: 4px;
10
- padding: 12px 16px;
10
+ padding: 8px 16px;
11
11
  border: 1px solid var(--Stroke);
12
12
  width: 100%;
13
13
  height: 48px;
@@ -43,13 +43,92 @@
43
43
  }
44
44
  }
45
45
 
46
- .label {
47
- display: flex;
48
- align-items: center;
49
- width: 100%;
50
- height: 14px;
51
- line-height: 1;
52
- margin-bottom: 6px;
46
+ &.inputbox-md {
47
+ input {
48
+ font-size: 14px;
49
+ padding: 8px 12px;
50
+ height: 40px;
51
+ }
52
+
53
+ textarea {
54
+ font-size: 14px;
55
+ padding: 8px 12px;
56
+ min-height: 40px;
57
+ }
58
+
59
+ .ng-select {
60
+ .ng-select-container {
61
+ min-height: 40px !important;
62
+
63
+ .ng-value-container {
64
+ padding-left: 12px !important;
65
+
66
+ .ng-input {
67
+ padding-left: 12px !important;
68
+ height: 28px;
69
+
70
+ >input {
71
+ padding-top: 10px;
72
+ transform: translateY(-5px);
73
+ }
74
+ }
75
+ }
76
+ }
77
+
78
+ .ng-arrow-wrapper {
79
+ min-height: 38px;
80
+ }
81
+
82
+ &.ng-select-multiple {
83
+ .ng-select-container {
84
+ .ng-value-container {
85
+ padding-left: 8px !important;
86
+ padding-top: 8px !important;
87
+
88
+ .ng-input {
89
+ padding-left: 8px !important;
90
+ padding: 0 0 0px 3px !important;
91
+
92
+ input {
93
+ transform: translateY(-10px) !important;
94
+ }
95
+ }
96
+
97
+ .ng-value {
98
+ min-height: 24px;
99
+ padding: 2px 8px;
100
+ padding-right: 32px;
101
+ margin-right: 8px;
102
+ margin-bottom: 8px;
103
+
104
+ .ng-value-icon {
105
+ width: 30px;
106
+ font-size: 32px;
107
+ }
108
+ }
109
+
110
+ .ng-placeholder {
111
+ top: 9px !important;
112
+ padding-left: 8px !important;
113
+ }
114
+ }
115
+ }
116
+ }
117
+ }
118
+ }
119
+
120
+ &.inputbox-sm {
121
+ input {
122
+ font-size: 12px;
123
+ padding: 8px;
124
+ height: 32px;
125
+ }
126
+
127
+ textarea {
128
+ font-size: 12px;
129
+ padding: 8px;
130
+ min-height: 32px;
131
+ }
53
132
  }
54
133
 
55
134
  .user_label {
package/package.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "2.0.1063",
2
+ "version": "2.0.1067",
3
3
  "name": "ros.grant.common",
4
4
  "private": false,
5
5
  "description": "Collection of static files used by RosGrant awesome team",
@@ -45,7 +45,7 @@
45
45
  "pickmeup": "^3.2.1",
46
46
  "rimraf": "^3.0.2",
47
47
  "ros.grant.telerik": "1.0.22",
48
- "ros.grant.webshared": "2.0.404",
48
+ "ros.grant.webshared": "2.0.405",
49
49
  "rxjs": "^6.5.4",
50
50
  "slick-carousel": "^1.8.1",
51
51
  "sticky-sidebar": "^3.3.1",