ros.grant.common 2.0.1172 → 2.0.1176
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.
|
Binary file
|
|
@@ -21,6 +21,7 @@ interface IModalSettings {
|
|
|
21
21
|
buttons: IButton[],
|
|
22
22
|
addCancelButton?: boolean,
|
|
23
23
|
closeClick?: () => void,
|
|
24
|
+
color?: ModalTitleColors
|
|
24
25
|
}
|
|
25
26
|
|
|
26
27
|
/**
|
|
@@ -39,6 +40,14 @@ enum ModalSizeClasses {
|
|
|
39
40
|
"xl" = 3
|
|
40
41
|
}
|
|
41
42
|
|
|
43
|
+
enum ModalTitleColors {
|
|
44
|
+
Tenant = "",
|
|
45
|
+
Default = "head-default",
|
|
46
|
+
Success = "success",
|
|
47
|
+
Warning = "head-warning",
|
|
48
|
+
Error = "head-error"
|
|
49
|
+
}
|
|
50
|
+
|
|
42
51
|
/**
|
|
43
52
|
* Компонент модальное окно
|
|
44
53
|
*/
|
|
@@ -123,6 +132,15 @@ class Modal {
|
|
|
123
132
|
subTitleElem.html(settings.subTitle);
|
|
124
133
|
}
|
|
125
134
|
|
|
135
|
+
if (settings.color) {
|
|
136
|
+
let values: string = Object.keys(ModalTitleColors)
|
|
137
|
+
.map(key => ModalTitleColors[key])
|
|
138
|
+
.filter(value => value)
|
|
139
|
+
.join(" ");
|
|
140
|
+
modal.removeClass(values);
|
|
141
|
+
modal.addClass(ModalTitleColors[settings.color]);
|
|
142
|
+
}
|
|
143
|
+
|
|
126
144
|
modal.find(".close-click, .close, .btn-close").on("click", () => {
|
|
127
145
|
($(modal) as any).fadeOut();
|
|
128
146
|
if (settings.closeClick) {
|
|
@@ -62,14 +62,11 @@
|
|
|
62
62
|
text-overflow: ellipsis;
|
|
63
63
|
overflow: hidden;
|
|
64
64
|
display: -webkit-box;
|
|
65
|
-
-webkit-line-clamp:
|
|
65
|
+
-webkit-line-clamp: 1;
|
|
66
66
|
-webkit-box-orient: vertical;
|
|
67
67
|
|
|
68
68
|
@media (max-width: 768px) {
|
|
69
|
-
display: flex;
|
|
70
|
-
align-items: center;
|
|
71
69
|
font-size: 18px!important;
|
|
72
|
-
margin-top: 2px;
|
|
73
70
|
}
|
|
74
71
|
}
|
|
75
72
|
|
|
@@ -103,6 +100,7 @@
|
|
|
103
100
|
display: flex !important;
|
|
104
101
|
align-items: center;
|
|
105
102
|
margin-right: 10px;
|
|
103
|
+
white-space: nowrap;
|
|
106
104
|
margin-top: 0;
|
|
107
105
|
cursor: pointer;
|
|
108
106
|
|
package/package.json
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
{
|
|
2
|
-
"version": "2.0.
|
|
2
|
+
"version": "2.0.1176",
|
|
3
3
|
"name": "ros.grant.common",
|
|
4
4
|
"private": false,
|
|
5
5
|
"scripts": {
|
|
@@ -51,7 +51,7 @@
|
|
|
51
51
|
"pickmeup": "^3.2.1",
|
|
52
52
|
"rimraf": "^3.0.2",
|
|
53
53
|
"ros.grant.telerik": "1.0.22",
|
|
54
|
-
"ros.grant.webshared": "2.0.
|
|
54
|
+
"ros.grant.webshared": "2.0.413",
|
|
55
55
|
"rxjs": "^6.5.4",
|
|
56
56
|
"slick-carousel": "^1.8.1",
|
|
57
57
|
"sticky-sidebar": "^3.3.1",
|