qms-angular 1.1.22 → 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.
Files changed (43) hide show
  1. package/bundles/qms-angular.umd.js +518 -365
  2. package/bundles/qms-angular.umd.js.map +1 -1
  3. package/esm2015/lib/common/models/qms-flat-node.model.js +1 -1
  4. package/esm2015/lib/common/models/qms-tree-node.model.js +1 -1
  5. package/esm2015/lib/components/select-access-dialog/model/select-access-config.model.js +3 -6
  6. package/esm2015/lib/components/select-access-dialog/model/select-access-data.js +1 -2
  7. package/esm2015/lib/components/select-access-dialog/select-access-dialog.component.js +34 -11
  8. package/esm2015/lib/components/select-department/model/select-department-popup-data.model.js +3 -10
  9. package/esm2015/lib/components/select-department/select-department.component.js +3 -4
  10. package/esm2015/lib/components/select-department-tree/enum/mode-department-tree-view.enum.js +6 -0
  11. package/esm2015/lib/components/select-department-tree/model/select-department-tree.config.js +16 -2
  12. package/esm2015/lib/components/select-department-tree/public-api.js +2 -1
  13. package/esm2015/lib/components/select-department-tree/select-department-tree.component.js +141 -139
  14. package/esm2015/lib/components/select-department-tree/select-department-tree.module.js +4 -2
  15. package/esm2015/lib/directives/tooltip/tooltip-elipsify.directive.js +1 -2
  16. package/esm2015/lib/model/en.js +2 -1
  17. package/esm2015/lib/model/no.js +2 -1
  18. package/esm2015/lib/qms-ckeditor-components/common/models/qms-ckeditor-url.model.js +1 -1
  19. package/esm2015/lib/qms-ckeditor-components/components/qms-ckeditor-link/qms-ckeditor-link.component.js +173 -79
  20. package/esm2015/lib/qms-ckeditor-components/qms-ckeditor.component.js +137 -123
  21. package/fesm2015/qms-angular.js +498 -360
  22. package/fesm2015/qms-angular.js.map +1 -1
  23. package/lib/common/models/qms-flat-node.model.d.ts +1 -0
  24. package/lib/common/models/qms-tree-node.model.d.ts +1 -0
  25. package/lib/components/select-access-dialog/model/select-access-config.model.d.ts +2 -5
  26. package/lib/components/select-access-dialog/model/select-access-data.d.ts +0 -1
  27. package/lib/components/select-access-dialog/select-access-dialog.component.d.ts +2 -1
  28. package/lib/components/select-department/model/select-department-popup-data.model.d.ts +2 -12
  29. package/lib/components/select-department/select-department.component.d.ts +0 -1
  30. package/lib/components/select-department-tree/enum/mode-department-tree-view.enum.d.ts +4 -0
  31. package/lib/components/select-department-tree/model/select-department-tree.config.d.ts +15 -1
  32. package/lib/components/select-department-tree/public-api.d.ts +1 -0
  33. package/lib/components/select-department-tree/select-department-tree.component.d.ts +21 -19
  34. package/lib/model/en.d.ts +1 -0
  35. package/lib/model/no.d.ts +1 -0
  36. package/lib/qms-ckeditor-components/common/models/qms-ckeditor-url.model.d.ts +2 -0
  37. package/lib/qms-ckeditor-components/components/qms-ckeditor-link/qms-ckeditor-link.component.d.ts +7 -3
  38. package/lib/qms-ckeditor-components/qms-ckeditor.component.d.ts +8 -6
  39. package/package.json +1 -1
  40. package/qms-angular.metadata.json +1 -1
  41. package/src/lib/components/select-access-dialog/select-access-dialog.component.scss +19 -57
  42. package/src/lib/components/select-department/select-department.component.scss +24 -11
  43. package/src/lib/components/select-department-tree/select-department-tree.component.scss +141 -198
@@ -80,7 +80,7 @@
80
80
  }
81
81
 
82
82
  .mat-form-field-wrapper {
83
- padding-bottom: 5px !important;
83
+ padding-bottom: 8px !important;
84
84
  }
85
85
 
86
86
 
@@ -110,7 +110,7 @@
110
110
  }
111
111
 
112
112
  .item-list-wrapper {
113
- max-height: 45vh;
113
+ max-height: 40vh;
114
114
  padding: 4px 4px 4px 0;
115
115
  overflow-y: auto;
116
116
  &.no-result{
@@ -153,11 +153,11 @@
153
153
  }
154
154
 
155
155
  .qms-dialog-content{
156
- // display: flex;
157
156
  display: grid;
158
157
  column-gap: 8px;
159
158
  &.active{
160
159
  grid-template-columns: 2fr 1fr;
160
+ min-height: 50vh;
161
161
  }
162
162
 
163
163
  .access-dialog-wraper {
@@ -291,31 +291,14 @@
291
291
  }
292
292
 
293
293
  .qms-paginator{
294
- .mat-icon{
295
- display: flex;
296
- align-items: center;
297
- justify-content: center;
298
- }
299
-
300
- .qms-btn-icon{
301
- width: 30px !important;
302
- height: 30px !important;
303
- line-height: 30px !important;
304
- }
305
-
306
- .mat-form-field-wrapper{
307
- padding-bottom: 0;
308
- }
309
- .mat-paginator-container{
310
- min-height: 40px;
311
- }
312
294
  .mat-paginator-container .qms-total-result{
313
- margin-bottom: 2px;
295
+ margin-bottom: 0;
314
296
  margin-right: 12px;
315
- height: 30px;
297
+ height: 100%;
298
+ display: flex;
299
+ align-items: center;
316
300
  span{
317
301
  font-weight: 600;
318
- font-size: 13px;
319
302
  color: black(0.8);
320
303
  }
321
304
  }
@@ -326,38 +309,12 @@
326
309
  margin-bottom: 0;
327
310
  }
328
311
  }
329
-
330
- &> .qms-btn-icon-wrapper{
331
- width: 30px !important;
332
- height: 30px !important;
333
- display: flex;
334
- justify-content: center;
335
- align-items: center;
336
- }
337
-
338
312
  .qms-paginator-page-size{
339
- margin-right: 12px;
340
- & > .qms-pagesize-label{
341
- display: none;
342
- }
343
- &> .qms-form-page-size .mat-form-field-flex{
344
- width: 60px !important;
345
- height: 30px;
346
- display: flex;
347
- align-items: center;
348
- padding: 0 4px;
349
- .mat-form-field-infix{
350
- height: 30px;
351
- }
352
- }
353
- }
354
- .mat-form-field.qms-form .mat-select-min-line, .mat-form-field.qms-form mat-select-trigger{
355
- font-size: 14px;
313
+ align-items: center;
356
314
  }
357
- .mat-select-value{
358
- text-align: center;
315
+ .mat-form-field-wrapper{
316
+ padding-bottom: 0 !important;
359
317
  }
360
-
361
318
  }
362
319
 
363
320
  .mat-checkbox.checkbox-all .mat-checkbox-label{
@@ -383,12 +340,12 @@
383
340
  }
384
341
 
385
342
  // Loading animate
386
- .loading-container{
387
- height: 50vh;
343
+ .qms-loading-container{
344
+ height: 45vh;
388
345
  overflow: hidden;
389
346
  display: grid;
390
- grid-template-rows: repeat(auto-fill, minmax(60px, 60px));
391
- .loader{
347
+ grid-template-rows: repeat(60px);
348
+ .qms-loader{
392
349
  position: relative;
393
350
  width: 100%;
394
351
  height: 100%;
@@ -428,4 +385,9 @@
428
385
  }
429
386
  }
430
387
  }
388
+
389
+ .btn-close-dialog.qms-btn-icon:focus:not(:hover) {
390
+ background-color: unset !important;
391
+ color: unset !important;
392
+ }
431
393
  }
@@ -76,20 +76,20 @@
76
76
 
77
77
  .panel__item {
78
78
  max-height: 175px;
79
- margin-top: 12px;
79
+ margin-top: 4px;
80
80
  overflow-x: hidden;
81
81
  overflow-y: auto;
82
82
  padding-right: 5px;
83
83
  width: 100%;
84
- max-width: 100%;
85
- display: flex;
86
- flex-wrap: wrap;
87
- align-content: flex-start;
88
-
84
+ display: block;
89
85
  .related__item__inline {
90
86
  max-width: 100%;
91
87
  }
92
88
 
89
+ ::ng-deep .mat-chip-list-wrapper{
90
+ margin: 0 -4px !important;
91
+ }
92
+
93
93
  .select__toggle-include {
94
94
  width: 100%;
95
95
 
@@ -135,18 +135,26 @@
135
135
  }
136
136
  }
137
137
 
138
+
138
139
  span.related__item__content_name {
139
- display: inline-block;
140
140
  min-width: calc(100% - 13px);
141
- white-space: nowrap;
142
- overflow: hidden;
143
- text-overflow: ellipsis;
144
- max-width: 220px;
141
+ max-width: 250px;
142
+ display: flex;
143
+ align-items: center;
144
+ & > span:nth-child(1){
145
+ display: inline-block;
146
+ margin-right: 4px;
147
+ white-space: nowrap;
148
+ overflow: hidden;
149
+ text-overflow: ellipsis;
150
+ max-width: 200px;
151
+ }
145
152
 
146
153
  .select__include-children__count {
147
154
  font-size: 0.75rem;
148
155
  color: black(0.5);
149
156
  font-weight: 600;
157
+ line-height: 16px;
150
158
  }
151
159
  }
152
160
  }
@@ -194,4 +202,9 @@
194
202
  height: calc(100% - 40px) !important;
195
203
  }
196
204
  }
205
+
206
+ ::ng-deep.btn-close-dialog.qms-btn-icon:focus:not(:hover) {
207
+ background-color: unset !important;
208
+ color: unset !important;
209
+ }
197
210
  }
@@ -20,6 +20,9 @@
20
20
  .w100 {
21
21
  width: 100%;
22
22
  }
23
+ .h100{
24
+ height: 100%;
25
+ }
23
26
 
24
27
  .fw500{
25
28
  font-weight: 500 !important;
@@ -78,107 +81,154 @@
78
81
  }
79
82
  }
80
83
 
84
+ .header-title {
85
+ font-weight: 500;
86
+ color: theme-apply($ws-text-primary);
87
+ font-size: 16px;
88
+ .header-view{
89
+ padding: 4px 0;
90
+ }
91
+ }
92
+
93
+ .sticky-position{
94
+ position: sticky;
95
+ top: 0;
96
+ left: 0;
97
+ z-index: 1;
98
+ background: #FFFFFF;
99
+ }
100
+
101
+ .header-view-tree{
102
+ display: grid;
103
+ grid-template-columns: 1fr 200px;
104
+ column-gap: 2px;
105
+ padding: 4px 12px 4px 0;
106
+ }
107
+
81
108
  .tree-department-wrapper {
82
- height: 375px;
83
109
  padding-right: 4px;
84
- overflow-y: auto;
85
- overflow-x: hidden;
110
+ overflow: hidden;
86
111
  position: relative;
112
+ transition: height .3s ease-in-out;
113
+ .tree-view{
114
+ &.active-mode-external-view{
115
+ width: 100%;
116
+ display: grid;
117
+ grid-template-columns: 1fr 200px;
118
+ column-gap: 2px;
119
+ .tree-view-main{
120
+ &> .separate{
121
+ height: 38px;
122
+ &.h-0{
123
+ height: 0;
124
+ }
125
+ }
126
+ &:last-child{
127
+ height: 100%;
128
+ padding-left: 4px;
129
+ position: relative;
130
+ &::after{
131
+ position: absolute;
132
+ content: "";
133
+ top: 0;
134
+ bottom: -38px;
135
+ left: 0;
136
+ width: 1px;
137
+ background: rgba(0, 0, 0, 0.12);
138
+ }
139
+ }
140
+ .external-list-item-container{
141
+ .node-external{
142
+ overflow: hidden;
143
+ transition: all .1s ease-in-out;
144
+ .node-external-content {
145
+ padding: 5px 15px 5px 15px;
146
+ height: calc(100% - 2px);
147
+ color: theme-apply($default-color);
148
+ font-size: 14px;
149
+ display: flex;
150
+ align-items: center;
151
+ span{
152
+ overflow: hidden;
153
+ text-overflow: ellipsis;
154
+ white-space: nowrap;
155
+ }
156
+ }
157
+ }
158
+ }
159
+ }
160
+ }
161
+ }
87
162
  }
88
-
89
- // Tree
90
- .mat-tree.select-department-tree {
91
- .mat-tree-node {
163
+ //Custom tree
164
+ .select-department-tree{
165
+ & > .cdk-virtual-scroll-orientation-vertical .cdk-virtual-scroll-content-wrapper{
166
+ padding: 0 4px !important;
167
+ }
168
+ .qms-tree-node{
169
+ display: flex;
170
+ align-items: center;
92
171
  border-radius: 4px;
93
- &:hover {
94
- background: black(0.08);
172
+ &:hover{
173
+ background-color: rgba(0,0,0,.08);
95
174
  }
96
-
97
- &:active {
98
- background: black(0.12);
175
+ &> .node-expand-area{
176
+ width: 48px;
177
+ height: 48px;
99
178
  }
100
-
101
- &.active {
102
- color: theme-apply($primary);
103
- background: theme-apply($primary-light-6-opacity);
104
-
105
- &:active {
106
- background: theme-apply($primary-light-12-opacity);
107
- }
108
-
109
- button,
110
- .mat-icon-rtl-mirror,
111
- .type-icon,
112
- .text-name {
113
- color: theme-apply($primary);
179
+ &.active-external-view{
180
+ .mat-checkbox.qms-group-options{
181
+ width: calc(100% - 250px) !important;
114
182
  }
115
183
  }
116
- }
117
-
118
- .mat-tree-node.collapse-node:not(.selected-theme) {
119
- &.active {
120
- button,
121
- .mat-icon-rtl-mirror,
122
- .type-icon,
123
- .text-name {
124
- color: theme-apply($primary);
184
+ &> .external-view-node{
185
+ flex-basis: 200px;
186
+ overflow: hidden;
187
+ .node-external{
188
+ overflow: hidden;
189
+ transition: all .1s ease-in-out;
190
+ display: block;
191
+ .node-external-content {
192
+ padding: 5px 15px 5px 15px;
193
+ height: calc(100% - 2px);
194
+ color: theme-apply($default-color);
195
+ font-size: 14px;
196
+ display: flex;
197
+ align-items: center;
198
+ span{
199
+ overflow: hidden;
200
+ text-overflow: ellipsis;
201
+ white-space: nowrap;
202
+ }
203
+ }
125
204
  }
126
-
127
- &:hover {
128
- background: theme-apply($primary-light-6-opacity);
205
+ }
206
+ &.expand-node {
207
+ color: theme-apply($primary);
208
+ &:hover {
209
+ background: theme-apply($primary-light-6-opacity);
210
+ }
211
+
212
+ &:active {
213
+ background: theme-apply($primary-light-12-opacity);
214
+ }
129
215
  }
130
-
131
- &:active {
132
- background: theme-apply($primary-light-12-opacity);
216
+ .node-without-checkbox{
217
+ cursor: pointer;
218
+ width: 100%;
219
+ display: flex;
220
+ justify-content: space-between;
221
+ align-items: center;
222
+ .mat-icon{
223
+ color: theme-apply($primary);
224
+ margin-right: 4px;
133
225
  }
134
226
  }
135
- }
136
-
137
- .mat-tree-node.selected-theme{
138
- background: theme-apply($primary-light-12-opacity);
139
- }
140
-
141
- .mat-tree-node.expand-node {
142
- color: theme-apply($primary);
143
-
144
- button,
145
- .mat-icon-rtl-mirror,
146
- .type-icon,
147
- .text-name {
148
- color: theme-apply($primary);
149
- }
150
-
151
- &:hover {
152
- background: theme-apply($primary-light-6-opacity);
153
- }
154
-
155
- &:active {
227
+ &.selected-theme{
156
228
  background: theme-apply($primary-light-12-opacity);
157
229
  }
158
- }
159
-
160
- .type-icon {
161
- margin-right: 5px;
162
- color: theme-apply($ws-action-active);
163
- }
164
230
 
165
- .text-name {
166
- color: theme-apply($default-color);
167
- }
168
-
169
- .mat-icon-rtl-mirror {
170
- color: black(0.6);
171
- }
172
-
173
- .mat-icon-button.btn-toggle {
174
- width: 35px;
175
- height: 35px;
176
- line-height: 35px;
177
- }
178
-
179
-
180
- .mat-tree-node {
181
- &.mat-tree-node-disabled-all {
231
+ &.mat-tree-node-disabled-all {
182
232
  cursor: default !important;
183
233
  pointer-events: none;
184
234
  user-select: none;
@@ -202,66 +252,8 @@
202
252
  background-color: transparent;
203
253
  }
204
254
  }
205
-
206
- &.mat-tree-node-disabled {
207
-
208
- button.mat-button-disabled,
209
- .type-icon {
210
- color: black(0.38);
211
- }
212
-
213
- .text-name {
214
- &.disabled {
215
- color: black(0.38);
216
- cursor: default !important;
217
- pointer-events: none;
218
- user-select: none;
219
- }
220
- }
221
-
222
- &.active,
223
- &:hover,
224
- &:active,
225
- &.expand-node:hover,
226
- &.expand-node:active {
227
- background-color: transparent;
228
- }
229
- }
230
-
231
- .node-without-checkbox{
232
- cursor: pointer;
233
- width: 100%;
234
- display: flex;
235
- justify-content: space-between;
236
- align-items: center;
237
- .mat-icon{
238
- color: theme-apply($primary);
239
- margin-right: 4px;
240
- }
241
- }
242
-
243
- &>.node-content-wraper {
244
- width: fit-content;
245
- position: relative;
246
- display: flex;
247
- justify-content: center;
248
- align-items: center;
249
-
250
- &>.mat-progress-bar {
251
- height: 3px;
252
- width: 100%;
253
- position: absolute;
254
- bottom: 0;
255
- left: 10px;
256
-
257
- .mat-progress-bar-fill::after {
258
- background: theme-apply($primary);
259
- }
260
- }
261
- }
262
255
  }
263
256
  }
264
-
265
257
  .text-name {
266
258
  position: relative;
267
259
  overflow: hidden;
@@ -295,7 +287,6 @@
295
287
  }
296
288
 
297
289
  .qms-view-search-result{
298
- height: 375px;
299
290
  width: 100%;
300
291
  overflow: hidden;
301
292
  .result {
@@ -304,7 +295,7 @@
304
295
  margin-bottom: 4px;
305
296
  padding-right: 4px;
306
297
  &.active-paging{
307
- max-height: calc(100% - 80px);
298
+ max-height: calc(100% - 95px);
308
299
  }
309
300
  &.no-result{
310
301
  height: 100%;
@@ -371,27 +362,14 @@
371
362
  }
372
363
 
373
364
  ::ng-deep .qms-paginator{
374
- .mat-icon{
375
- display: flex;
376
- align-items: center;
377
- justify-content: center;
378
- }
379
- .mat-form-field-wrapper{
380
- padding-bottom: 0;
381
- }
382
- .mat-paginator-container{
383
- min-height: 40px;
384
- }
385
365
  .mat-paginator-container .qms-total-result{
386
366
  margin-bottom: 0;
387
367
  margin-right: 12px;
388
368
  height: 100%;
389
369
  display: flex;
390
- justify-content: center;
391
370
  align-items: center;
392
371
  span{
393
372
  font-weight: 600;
394
- font-size: 13px;
395
373
  color: black(0.8);
396
374
  }
397
375
  }
@@ -401,46 +379,12 @@
401
379
  & > .qms-total-result{
402
380
  margin-bottom: 0;
403
381
  }
404
- &> .qms-btn-icon{
405
- width: 30px;
406
- height: 30px;
407
- line-height: 30px;
408
- }
409
382
  }
410
-
411
- &> .qms-btn-icon-wrapper{
412
- width: 30px;
413
- height: 30px;
414
- display: flex;
415
- justify-content: center;
416
- align-items: center;
383
+ .mat-form-field-wrapper{
384
+ padding-bottom: 0;
417
385
  }
418
-
419
386
  .qms-paginator-page-size{
420
- margin-right: 12px;
421
- height: 100%;
422
- display: flex;
423
387
  align-items: center;
424
- justify-content: center;
425
- &> .qms-form-page-size .mat-form-field-flex{
426
- width: 60px;
427
- height: 30px;
428
- display: flex;
429
- align-items: center;
430
- padding: 0 4px;
431
- .mat-form-field-infix{
432
- height: 30px;
433
- }
434
- }
435
- & > .qms-pagesize-label{
436
- display: none;
437
- }
438
- }
439
- .mat-form-field.qms-form .mat-select-min-line, .mat-form-field.qms-form mat-select-trigger{
440
- font-size: 14px;
441
- }
442
- .mat-select-value{
443
- text-align: center;
444
388
  }
445
389
  }
446
390
 
@@ -478,12 +422,11 @@
478
422
  line-height: 40px;
479
423
  }
480
424
 
481
- .loading-container{
425
+ .qms-loading-container{
482
426
  overflow: hidden;
483
- height: 100%;
484
427
  display: grid;
485
- grid-template-rows: repeat(auto-fit, minmax(60px, 60px));
486
- .loader{
428
+ grid-template-rows: repeat(60px);
429
+ .qms-loader{
487
430
  position: relative;
488
431
  width: 100%;
489
432
  height: 100%;