qms-angular 1.1.50 → 1.1.52

Sign up to get free protection for your applications and to get access to all the features.
Files changed (39) hide show
  1. package/bundles/qms-angular.umd.js +124 -66
  2. package/bundles/qms-angular.umd.js.map +1 -1
  3. package/esm2015/lib/components/breadcrumb/breadcrumb.js +2 -2
  4. package/esm2015/lib/components/button/button.js +3 -3
  5. package/esm2015/lib/components/dialog/dialog.js +2 -2
  6. package/esm2015/lib/components/qms-nav-drawer/models/qms-nav-drawer.model.js +2 -2
  7. package/esm2015/lib/components/qms-nav-drawer/qms-nav-drawer.component.js +34 -13
  8. package/esm2015/lib/components/qms-navigation-drawer/qms-navigation-drawer.component.js +12 -12
  9. package/esm2015/lib/components/qms-stepper/qms-stepper.component.js +1 -1
  10. package/esm2015/lib/components/related/popup/related-popup.component.js +1 -1
  11. package/esm2015/lib/components/select-access-dialog/select-access-dialog.component.js +1 -1
  12. package/esm2015/lib/components/select-department-tree/select-department-tree.component.js +4 -4
  13. package/esm2015/lib/components/select-include-children/select-include-children.component.js +1 -1
  14. package/esm2015/lib/components/select-process-data-tree/select-process-data-tree.component.js +1 -1
  15. package/esm2015/lib/components/select-process-document/select-process-document.component.js +1 -1
  16. package/esm2015/lib/components/tree/tree.component.js +1 -1
  17. package/esm2015/lib/components/treeNew/tree.component.js +1 -1
  18. package/esm2015/lib/pipe/safe-html.pipe.js +21 -0
  19. package/esm2015/lib/qms-angular.module.js +4 -2
  20. package/esm2015/lib/qms-ckeditor-components/common/helper/checkNullHelper.js +4 -0
  21. package/esm2015/lib/qms-ckeditor-components/services/qms-ckeditor-bpmn-connection.service.js +11 -2
  22. package/esm2015/lib/qms-ckeditor-components/services/qms-ckeditor-tree.service.js +5 -1
  23. package/esm2015/public-api.js +1 -1
  24. package/esm2015/qms-angular.js +23 -22
  25. package/fesm2015/qms-angular.js +100 -44
  26. package/fesm2015/qms-angular.js.map +1 -1
  27. package/lib/components/qms-nav-drawer/models/qms-nav-drawer.model.d.ts +4 -1
  28. package/lib/components/qms-nav-drawer/qms-nav-drawer.component.d.ts +14 -3
  29. package/lib/components/qms-navigation-drawer/qms-navigation-drawer.component.d.ts +5 -5
  30. package/lib/pipe/safe-html.pipe.d.ts +7 -0
  31. package/lib/qms-ckeditor-components/common/helper/checkNullHelper.d.ts +1 -0
  32. package/package.json +1 -1
  33. package/qms-angular.d.ts +22 -21
  34. package/qms-angular.metadata.json +1 -1
  35. package/src/assets/qms-ckeditor-plugin/build/ckeditor.js +1 -1
  36. package/src/lib/components/qms-nav-drawer/qms-nav-drawer.component.scss +25 -5
  37. package/src/lib/components/select-department-tree/select-department-tree.component.scss +4 -0
  38. package/src/themes/core/_table-pure-gap.scss +76 -8
  39. package/src/themes/core/_table.scss +221 -212
@@ -5,10 +5,17 @@
5
5
 
6
6
  .mat-tree.qms-nav-drawer-container {
7
7
  font-family: Open Sans;
8
-
8
+
9
9
  .mat-tree-node {
10
- &:hover {
10
+ &:hover,
11
+ &:active,
12
+ &:focus {
11
13
  background: black(0.08);
14
+ padding-right: 5px;
15
+
16
+ .btn-action {
17
+ display: block;
18
+ }
12
19
  }
13
20
 
14
21
  &:active {
@@ -71,15 +78,23 @@
71
78
  .type-icon {
72
79
  margin-right: 5px;
73
80
  color: theme-apply($ws-action-active);
81
+ font-size: 18px;
74
82
  }
75
83
 
76
84
  .text-name {
77
85
  color: theme-apply($default-color);
78
86
  }
79
87
 
80
- .mat-icon-rtl-mirror {
88
+ .mat-icon-rtl-mirror,
89
+ .mat-icon {
81
90
  color: black(0.6);
82
91
  }
92
+
93
+ button.qms-btn-icon {
94
+ width: 40px;
95
+ height: 40px;
96
+ line-height: 40px;
97
+ }
83
98
  }
84
99
 
85
100
  .text-name {
@@ -91,12 +106,17 @@
91
106
  -webkit-box-orient: vertical;
92
107
  cursor: pointer;
93
108
  width: 100%;
109
+ min-width: 20px;
94
110
  }
95
111
 
96
112
  .cursor-pointer {
97
113
  cursor: pointer;
98
114
  }
99
115
 
100
- .ml-5 {
101
- margin-left: 10px;
116
+ .btn-action {
117
+ display: none;
118
+
119
+ .material-icons-outlined.primary {
120
+ color: theme-apply($checkbox-color);
121
+ }
102
122
  }
@@ -630,5 +630,9 @@
630
630
  }
631
631
  }
632
632
  }
633
+
634
+ ::ng-deep .qms-paginator {
635
+ margin-top: 0px;
636
+ }
633
637
  }
634
638
 
@@ -20,7 +20,6 @@ table.mat-table {
20
20
  border-collapse: separate;
21
21
  border-spacing: 0 8px;
22
22
  margin-top: -16px;
23
- padding-right: 5px;
24
23
  background-color: transparent;
25
24
  font-family: Open Sans;
26
25
  overflow-x: auto;
@@ -66,7 +65,7 @@ table.mat-table {
66
65
  }
67
66
 
68
67
  td.mat-cell {
69
- padding: 10px 0 10px 0;
68
+ // padding: 10px 0 10px 0;
70
69
  border-bottom: 1px solid theme-apply($other-divider);
71
70
  border-top: 1px solid theme-apply($other-divider);
72
71
  color: theme-apply($ws-text-primary);
@@ -94,13 +93,13 @@ table.mat-table {
94
93
  th.mat-header-cell:last-of-type,
95
94
  td.mat-cell:last-of-type,
96
95
  td.mat-footer-cell:last-of-type {
97
- padding-right: 16px;
96
+ padding-right: 0;
98
97
  }
99
98
 
100
99
  th.mat-header-cell:first-of-type,
101
100
  td.mat-cell:first-of-type,
102
101
  td.mat-footer-cell:first-of-type {
103
- padding-left: 16px;
102
+ padding-left: 0;
104
103
  }
105
104
  }
106
105
  }
@@ -210,10 +209,6 @@ table.mat-table {
210
209
  height: 16px;
211
210
  }
212
211
 
213
- .spacer {
214
- height: 8px;
215
- }
216
-
217
212
  tr.mat-row.spacer td.mat-cell {
218
213
  background-color: transparent;
219
214
  }
@@ -223,3 +218,76 @@ table.mat-table {
223
218
  }
224
219
  }
225
220
  }
221
+
222
+ table.mat-table.qms-table.qms-expanded-table {
223
+ border-spacing: 0;
224
+ }
225
+
226
+ tr.qms-detail-row {
227
+ &:not(.child-row) {
228
+ &:hover {
229
+ background: rgba(0, 0, 0, 0.08);
230
+ cursor: pointer;
231
+ }
232
+ }
233
+ }
234
+
235
+ tr.qms-detail-row.toggle-row {
236
+ height: 37px;
237
+ }
238
+
239
+ table.mat-table.qms-table td.mat-cell.mat-column-expandedChildrenTemplate {
240
+ padding: 0;
241
+ border: none;
242
+ }
243
+
244
+ tr.mat-row.hidden {
245
+ display: none;
246
+ }
247
+
248
+ table.mat-table.qms-table tr.spacer {
249
+ height: 8px;
250
+ border: none;
251
+ background: transparent;
252
+
253
+ td.mat-cell {
254
+ border: none;
255
+ }
256
+ }
257
+
258
+ table.mat-table.qms-table {
259
+ td.mat-column-detailTemplate,
260
+ td.mat-column-toggleGroupTemplate,
261
+ td.mat-column-detailChildTemplate {
262
+ border-top: none !important;
263
+ border-top-right-radius: 0 !important;
264
+ border-top-left-radius: 0 !important;
265
+ }
266
+ }
267
+
268
+ div.expand-children-row {
269
+ padding-top: 16px;
270
+ }
271
+
272
+ .qms-collapse-group {
273
+ display: flex;
274
+ align-items: center;
275
+ vertical-align: super;
276
+ color: theme-apply($primary);
277
+
278
+ .qms-text-collapse {
279
+ font-weight: 600;
280
+ font-size: 12px;
281
+ line-height: 16px;
282
+ }
283
+ }
284
+
285
+ table.mat-table.qms-table tr.expanded-row td.mat-cell:first-child {
286
+ border-left: 4px solid theme-apply($primary-light-32-opacity);
287
+ }
288
+
289
+ table.mat-table.qms-table td.mat-cell.mat-column-toggleGroupTemplate {
290
+ background-color: theme-apply($background-area);
291
+ cursor: pointer;
292
+ border-left: 4px solid theme-apply($primary-light-32-opacity);
293
+ }
@@ -3,261 +3,270 @@
3
3
  @import "typography";
4
4
 
5
5
  .qms-table {
6
- .mat-checkbox.qms-group-options {
7
-
8
- .mat-checkbox-inner-container {
9
- width: 18px;
10
- height: 18px;
11
- margin: 0 !important;
12
- }
6
+ .mat-checkbox.qms-group-options {
7
+ .mat-checkbox-inner-container {
8
+ width: 18px;
9
+ height: 18px;
10
+ margin: 0 !important;
11
+ }
13
12
 
14
- &.mat-checkbox-indeterminate .mat-checkbox-background, &.mat-checkbox-checked .mat-checkbox-background {
15
- background-color: theme-apply($primary) !important;
16
- }
13
+ &.mat-checkbox-indeterminate .mat-checkbox-background,
14
+ &.mat-checkbox-checked .mat-checkbox-background {
15
+ background-color: theme-apply($primary) !important;
16
+ }
17
17
 
18
- &.mat-checkbox-checked {
19
- background: unset;
20
- }
18
+ &.mat-checkbox-checked {
19
+ background: unset;
21
20
  }
21
+ }
22
+
23
+ .mat-header-cell:first-child {
24
+ padding-left: 20px;
25
+ }
26
+
27
+ a {
28
+ text-decoration: none;
29
+ color: #323232;
30
+ word-break: break-word;
31
+ margin: -9px -2px;
32
+ padding: 9px 2px;
33
+
34
+ &:hover,
35
+ &:focus-visible {
36
+ outline: unset;
37
+ color: theme-apply($primary);
38
+ text-decoration: underline;
39
+ }
40
+ }
22
41
 
23
- .mat-header-cell:first-child {
24
- padding-left: 20px;
42
+ .clickable-container {
43
+ margin: -9px 0;
44
+ padding: 9px 0 !important;
45
+ }
46
+
47
+ .clickable-content {
48
+ padding: 8px 6px;
49
+ border-radius: 5px;
50
+ cursor: pointer;
51
+
52
+ &:hover {
53
+ outline: unset;
54
+ background: rgba(0, 0, 0, 0.12);
55
+ }
56
+ }
57
+
58
+ .qms-table-row {
59
+ padding: 8px 0 8px 20px;
60
+ background: #ffffff;
61
+ border: 1px solid theme-apply($other-divider);
62
+ border-radius: 4px;
63
+ margin-top: 8px;
64
+ min-height: 40px;
65
+ font-size: 14px;
66
+ line-height: 20px;
67
+ font-family: "Open Sans";
68
+ font-weight: normal;
69
+ color: #323232;
70
+ align-items: stretch;
71
+ cursor: pointer;
72
+ transition: background 0.2s;
73
+
74
+ mat-cell:first-of-type {
75
+ padding: 0;
25
76
  }
26
77
 
27
- a {
28
- text-decoration: none;
29
- color: #323232;
30
- word-break: break-word;
31
- margin: -9px -2px;
32
- padding: 9px 2px;
33
-
34
- &:hover, &:focus-visible {
35
- outline: unset;
36
- color: theme-apply($primary);
37
- text-decoration: underline;
38
- }
78
+ mat-cell:last-of-type {
79
+ padding-right: 16px;
39
80
  }
40
81
 
41
- .clickable-container {
42
- margin: -9px 0;
43
- padding: 9px 0!important;
82
+ &[tabindex]:focus-visible {
83
+ outline: 2px auto theme-apply($primary);
44
84
  }
45
85
 
46
- .clickable-content {
47
- padding: 8px 6px;
48
- border-radius: 5px;
49
- cursor: pointer;
86
+ &:hover {
87
+ background: rgba(0, 0, 0, 0.08);
88
+ }
50
89
 
51
- &:hover {
52
- outline: unset;
53
- background: rgba(0, 0, 0, 0.12);
54
- }
90
+ &:active {
91
+ background: theme-apply($primary-light-24-opacity);
55
92
  }
56
93
 
57
- .qms-table-row {
58
- padding: 8px 0 8px 20px;
59
- background: #FFFFFF;
60
- border: 1px solid theme-apply($other-divider);;
61
- border-radius: 4px;
62
- margin-top: 8px;
63
- min-height: 40px;
64
- font-size: 14px;
65
- line-height: 20px;
66
- font-family: 'Open Sans';
67
- font-weight: normal;
68
- color: #323232;
69
- align-items: stretch;
70
- cursor: pointer;
71
- transition: background 0.2s;
94
+ &-selected {
95
+ background: theme-apply($tab-focus-background);
96
+ transition: background 0.2s;
72
97
 
73
- mat-cell:first-of-type {
74
- padding: 0;
75
- }
98
+ &:hover {
99
+ background: rgba(40, 115, 223, 0.06);
100
+ }
76
101
 
77
- mat-cell:last-of-type {
78
- padding-right: 16px;
79
- }
102
+ &:active {
103
+ background: rgba(40, 115, 223, 0.16);
104
+ }
105
+ }
80
106
 
81
- &[tabindex]:focus-visible {
82
- outline: 2px auto theme-apply($primary);
83
- }
107
+ &-disabled {
108
+ background: theme-apply($disabled);
109
+ color: rgba(0, 0, 0, 0.38);
110
+ pointer-events: none;
84
111
 
85
- &:hover {
86
- background: rgba(0, 0, 0, 0.08);
87
- }
112
+ mat-cell {
113
+ opacity: 0.38;
114
+ }
115
+ }
88
116
 
89
- &:active {
90
- background: theme-apply($primary-light-24-opacity);
91
- }
117
+ &-draft {
118
+ border: 2px dashed rgba(0, 0, 0, 0.12);
119
+ }
92
120
 
93
- &-selected {
94
- background: theme-apply($tab-focus-background);
95
- transition: background 0.2s;
121
+ .qms-btn-icon {
122
+ width: 40px;
123
+ height: 40px;
124
+ line-height: 40px;
96
125
 
97
- &:hover {
98
- background: rgba(40, 115, 223, 0.06);
99
- }
126
+ .qms-btn-icon-wrapper .mat-icon {
127
+ line-height: 20px;
128
+ }
129
+ }
130
+ }
100
131
 
101
- &:active {
102
- background: rgba(40, 115, 223, 0.16);
103
- }
104
- }
132
+ //padding for table types
133
+ &.qms-checkbox-table {
134
+ .mat-header-cell:first-child {
135
+ align-items: stretch !important;
136
+ flex: unset;
137
+ padding-left: 4px;
138
+
139
+ .qms-row-checkbox {
140
+ padding: 0 19px;
141
+ display: flex;
142
+ align-items: center;
143
+ }
144
+ }
105
145
 
106
- &-disabled {
107
- background: theme-apply($disabled);
108
- color: rgba(0, 0, 0, 0.38);
109
- pointer-events: none;
146
+ .qms-table-row {
147
+ padding-left: 4px;
110
148
 
111
- mat-cell {
112
- opacity: 0.38;
113
- }
114
- }
149
+ .qms-row-checkbox-container:first-child {
150
+ align-items: stretch !important;
151
+ flex: unset;
115
152
 
116
- &-draft {
117
- border: 2px dashed rgba(0, 0, 0, 0.12);
153
+ .qms-row-checkbox {
154
+ padding: 0 19px;
155
+ display: flex;
156
+ align-items: center;
118
157
  }
158
+ }
159
+ }
160
+ }
119
161
 
120
- .qms-btn-icon {
121
- width: 40px;
122
- height: 40px;
123
- line-height: 40px;
162
+ &.qms-expand-table {
163
+ .mat-header-cell {
164
+ padding-left: 0;
124
165
 
125
- .qms-btn-icon-wrapper .mat-icon {
126
- line-height: 20px;
127
- }
128
- }
166
+ .expand-icon-header {
167
+ margin-left: 15px;
168
+ }
129
169
  }
130
170
 
131
- //padding for table types
132
- &.qms-checkbox-table {
133
- .mat-header-cell:first-child {
134
- align-items: stretch!important;
135
- flex: unset;
136
- padding-left: 4px;
137
-
138
- .qms-row-checkbox {
139
- padding: 0 19px;
140
- display: flex;
141
- align-items: center;
142
- }
171
+ .qms-table-row {
172
+ padding-left: 3px;
173
+
174
+ .expand-icon {
175
+ user-select: none;
176
+ transition: transform 0.2s;
177
+ margin: 0 10px;
178
+ }
179
+
180
+ &.qms-row-expanded {
181
+ background: #f2f7fd;
182
+ border-bottom-left-radius: 0;
183
+ border-bottom-right-radius: 0;
184
+ transition: background 0.2s;
185
+
186
+ &:hover {
187
+ background: #e6effb;
143
188
  }
144
189
 
145
- .qms-table-row {
146
- padding-left: 4px;
190
+ &:active {
191
+ background: rgba(40, 115, 223, 0.16);
192
+ }
147
193
 
148
- .qms-row-checkbox-container:first-child {
149
- align-items: stretch!important;
150
- flex: unset;
194
+ .expand-icon {
195
+ user-select: none;
196
+ transition: transform 0.2s;
197
+ transform: rotate(180deg);
198
+ }
151
199
 
152
- .qms-row-checkbox {
153
- padding: 0 19px;
154
- display: flex;
155
- align-items: center;
156
- }
157
- }
200
+ mat-icon {
201
+ color: theme-apply($primary);
158
202
  }
203
+ }
159
204
  }
160
205
 
161
- &.qms-expand-table {
162
- .mat-header-cell {
163
- padding-left: 0;
164
-
165
- .expand-icon-header {
166
- margin-left: 15px;
167
- }
168
- }
206
+ .qms-row-detail {
207
+ border: 1px solid theme-apply($other-divider);
208
+ border-top: none;
209
+ }
169
210
 
170
- .qms-table-row {
171
- padding-left: 3px;
172
-
173
- .expand-icon {
174
- user-select: none;
175
- transition: transform 0.2s;
176
- margin: 0 10px;
177
- }
178
-
179
- &.qms-row-expanded {
180
- background: #F2F7FD;
181
- border-bottom-left-radius: 0;
182
- border-bottom-right-radius: 0;
183
- transition: background 0.2s;
184
-
185
- &:hover {
186
- background: #E6EFFB;
187
- }
188
-
189
- &:active {
190
- background: rgba(40, 115, 223, 0.16);
191
- }
192
-
193
- .expand-icon {
194
- user-select: none;
195
- transition: transform 0.2s;
196
- transform: rotate(180deg);
197
- }
198
-
199
- mat-icon {
200
- color: theme-apply($primary);
201
- }
202
- }
203
- }
211
+ .qms-row-child {
212
+ flex: 1;
213
+ }
214
+ }
204
215
 
205
- .qms-row-detail {
206
- border: 1px solid theme-apply($other-divider);;
207
- border-top: none;
208
- }
216
+ &.qms-group-table {
217
+ .mat-row {
218
+ min-height: 0;
209
219
  }
210
220
 
211
- &.qms-group-table {
212
- .qms-table-row {
213
- &.expandable-group {
214
- padding-left: 0!important;
215
- border-left: 4px solid theme-apply($primary-light-32-opacity);
216
- border-radius: 4px 4px 0 0;
217
- }
218
- }
221
+ .qms-table-row {
222
+ &.expandable-group {
223
+ padding-left: 0 !important;
224
+ border-left: 4px solid theme-apply($primary-light-32-opacity);
225
+ border-radius: 4px 4px 0 0;
226
+ }
227
+ }
219
228
 
220
- .qms-collapse-group {
221
- border: 1px solid theme-apply($other-divider);;
222
- border-left: 4px solid theme-apply($primary-light-32-opacity);
223
- border-bottom-left-radius: 4px;
224
- border-bottom-right-radius: 4px;
225
- border-top: none;
226
- padding-left: 12px;
227
- padding-top: 6px;
228
- background: theme-apply($background-area);
229
-
230
- cursor: pointer;
231
-
232
- &[tabindex]:focus-visible {
233
- outline: 2px auto theme-apply($primary);
234
- }
235
-
236
- .mat-icon {
237
- color: theme-apply($primary);
238
- }
239
- .qms-text-collapse {
240
- vertical-align: super;
241
- color: theme-apply($primary);
242
- font-weight: 600;
243
- font-size: 12px;
244
- line-height: 16px;
245
- font-family: Open Sans;
246
- }
247
- }
229
+ .qms-collapse-group {
230
+ border: 1px solid theme-apply($other-divider);
231
+ border-left: 4px solid theme-apply($primary-light-32-opacity);
232
+ border-bottom-left-radius: 4px;
233
+ border-bottom-right-radius: 4px;
234
+ border-top: none;
235
+ padding-left: 12px;
236
+ padding-top: 6px;
237
+ background: theme-apply($background-area);
238
+
239
+ cursor: pointer;
240
+
241
+ &[tabindex]:focus-visible {
242
+ outline: 2px auto theme-apply($primary);
243
+ }
244
+
245
+ .mat-icon {
246
+ color: theme-apply($primary);
247
+ }
248
+ .qms-text-collapse {
249
+ vertical-align: super;
250
+ color: theme-apply($primary);
251
+ font-weight: 600;
252
+ font-size: 12px;
253
+ line-height: 16px;
254
+ font-family: Open Sans;
255
+ }
256
+ }
248
257
 
249
- .qms-row-children {
250
- margin-top: unset;
251
- border-radius: unset;
252
- padding-left: 0!important;
253
- border-left: 4px solid theme-apply($primary-light-32-opacity);
254
- }
258
+ .qms-row-children {
259
+ margin-top: unset;
260
+ border-radius: unset;
261
+ padding-left: 0 !important;
262
+ border-left: 4px solid theme-apply($primary-light-32-opacity);
255
263
  }
264
+ }
256
265
 
257
- &.qms-checkbox-table.qms-expand-table {
258
- .qms-table-row .qms-row-checkbox {
259
- border-right: 1px solid rgba(0, 0, 0, 0.12);
260
- border-radius: 0;
261
- }
266
+ &.qms-checkbox-table.qms-expand-table {
267
+ .qms-table-row .qms-row-checkbox {
268
+ border-right: 1px solid rgba(0, 0, 0, 0.12);
269
+ border-radius: 0;
262
270
  }
271
+ }
263
272
  }