qms-angular 1.1.17 → 1.1.18

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 (37) hide show
  1. package/bundles/qms-angular.umd.js +297 -98
  2. package/bundles/qms-angular.umd.js.map +1 -1
  3. package/esm2015/lib/common/models/qms-tree-node.model.js +1 -1
  4. package/esm2015/lib/components/select-access-dialog/common/animation.js +12 -2
  5. package/esm2015/lib/components/select-access-dialog/model/select-access-config.model.js +20 -0
  6. package/esm2015/lib/components/select-access-dialog/model/select-access-data.js +1 -1
  7. package/esm2015/lib/components/select-access-dialog/public-api.js +2 -1
  8. package/esm2015/lib/components/select-access-dialog/select-access-dialog.component.js +141 -51
  9. package/esm2015/lib/components/select-department/select-department.component.js +17 -9
  10. package/esm2015/lib/components/select-department-tree/animation/animation.js +12 -2
  11. package/esm2015/lib/components/select-department-tree/select-department-tree.component.js +18 -32
  12. package/esm2015/lib/model/en.js +2 -1
  13. package/esm2015/lib/model/no.js +2 -1
  14. package/esm2015/lib/qms-ckeditor-components/common/models/qms-ckeditor-plugin.model.js +2 -1
  15. package/esm2015/lib/qms-ckeditor-components/components/qms-ckeditor-link-simple/qms-ckeditor-link-simple.component.js +54 -0
  16. package/esm2015/lib/qms-ckeditor-components/qms-ckeditor.component.js +20 -7
  17. package/esm2015/lib/qms-ckeditor-components/qms-ckeditor.module.js +7 -3
  18. package/esm2015/public-api.js +2 -1
  19. package/fesm2015/qms-angular.js +281 -96
  20. package/fesm2015/qms-angular.js.map +1 -1
  21. package/lib/common/models/qms-tree-node.model.d.ts +1 -0
  22. package/lib/components/select-access-dialog/model/select-access-config.model.d.ts +18 -0
  23. package/lib/components/select-access-dialog/public-api.d.ts +1 -0
  24. package/lib/components/select-access-dialog/select-access-dialog.component.d.ts +11 -9
  25. package/lib/components/select-department/select-department.component.d.ts +4 -4
  26. package/lib/components/select-department-tree/select-department-tree.component.d.ts +1 -1
  27. package/lib/model/en.d.ts +1 -0
  28. package/lib/model/no.d.ts +1 -0
  29. package/lib/qms-ckeditor-components/common/models/qms-ckeditor-plugin.model.d.ts +1 -0
  30. package/lib/qms-ckeditor-components/components/qms-ckeditor-link-simple/qms-ckeditor-link-simple.component.d.ts +17 -0
  31. package/package.json +1 -1
  32. package/public-api.d.ts +1 -0
  33. package/qms-angular.metadata.json +1 -1
  34. package/src/assets/qms-ckeditor-plugin/build/ckeditor.js +1 -1
  35. package/src/lib/components/select-access-dialog/select-access-dialog.component.scss +90 -6
  36. package/src/lib/components/select-department-tree/select-department-tree.component.scss +83 -3
  37. package/src/lib/qms-ckeditor-components/components/qms-ckeditor-link-simple/qms-ckeditor-link-simple.component.scss +1 -0
@@ -48,6 +48,10 @@
48
48
  font-size: 12px;
49
49
  }
50
50
 
51
+ .color-primary{
52
+ color: theme-apply($primary-light) !important;
53
+ }
54
+
51
55
  .header-title {
52
56
  font-weight: 600;
53
57
  color: theme-apply($ws-text-primary);
@@ -124,11 +128,12 @@
124
128
  .result-selected-container {
125
129
  max-height: 175px;
126
130
  overflow-y: auto;
131
+ padding-right: 4px;
127
132
  }
128
133
 
129
134
  .item-list-wrapper {
130
135
  max-height: 28vh;
131
- padding-right: 4px;
136
+ padding: 4px 4px 4px 0;
132
137
  overflow-y: auto;
133
138
  &.no-result{
134
139
  height: 28vh;
@@ -136,9 +141,35 @@
136
141
  justify-content: center;
137
142
  align-items: center;
138
143
  }
144
+ &.no-result{
145
+ height: 28vh;
146
+ display: flex;
147
+ justify-content: center;
148
+ align-items: center;
149
+ }
139
150
  .item{
140
151
  min-height: 40px;
141
152
  }
153
+ .item-without-checkbox{
154
+ min-height: 45px;
155
+ display: flex;
156
+ justify-content: space-between;
157
+ align-items: center;
158
+ padding: 4px 8px;
159
+ cursor: pointer;
160
+ user-select: none;
161
+ border-radius: 4px;
162
+ transition: background .3s ease;
163
+ &.active{
164
+ background: theme-apply($primary-light-12-opacity);
165
+ }
166
+ &:hover{
167
+ background: theme-apply($primary-light-6-opacity);
168
+ }
169
+ .mat-icon{
170
+ color: theme-apply($primary-light) !important;
171
+ }
172
+ }
142
173
  }
143
174
 
144
175
  .confirm__button__groups {
@@ -237,11 +268,6 @@
237
268
  & > .qms-total-result{
238
269
  margin-bottom: 0;
239
270
  }
240
- &> .qms-btn-icon{
241
- width: 30px;
242
- height: 30px;
243
- line-height: 30px;
244
- }
245
271
  }
246
272
 
247
273
  &> .qms-btn-icon-wrapper{
@@ -282,4 +308,62 @@
282
308
  align-items: center !important;
283
309
  column-gap: 4px !important;
284
310
  }
311
+ .mat-expansion-panel.qms-expansion{
312
+ margin: 0 !important;
313
+ }
314
+
315
+ .qms-btn-icon{
316
+ width: 30px !important;
317
+ height: 30px !important;
318
+ line-height: 30px !important;
319
+ }
320
+
321
+ // Loading animate
322
+ .loading-container{
323
+ height: 25vh;
324
+ display: grid;
325
+ grid-template-rows: repeat(auto-fill, minmax(60px, 60px));
326
+ .loader{
327
+ position: relative;
328
+ width: 100%;
329
+ height: 100%;
330
+ padding: 10px 0;
331
+ overflow: hidden;
332
+ &::after {
333
+ content: "";
334
+ position: absolute;
335
+ width: 100%;
336
+ height: 100%;
337
+ top: 0;
338
+ left: 0;
339
+ background: linear-gradient(110deg, rgba(233, 233, 233, 0) 0%, rgba(227, 227, 227, 0) 40%, rgba(227, 227, 227, 0.5) 50%, rgba(227, 227, 227, 0) 60%, rgba(227, 227, 227, 0) 100%);
340
+ animation: animate-loading 1.2s linear infinite;
341
+ }
342
+ &__wrapper{
343
+ position: relative;
344
+ width: 100%;
345
+ height: 100%;
346
+ .row-loader{
347
+ background-color: #eeeeee;
348
+ position: absolute;
349
+ left: 0;
350
+ width: 100%;
351
+ height: 40px;
352
+ overflow: hidden;
353
+ }
354
+ }
355
+ @keyframes animate-loading {
356
+ 0% {
357
+ transform: translateX(-100%);
358
+ }
359
+
360
+ 100% {
361
+ transform: translateX(100%);
362
+ }
363
+ }
364
+ }
365
+ }
366
+
285
367
  }
368
+
369
+
@@ -45,6 +45,13 @@
45
45
  align-items: center;
46
46
  position: relative;
47
47
 
48
+ ::ng-deep .mat-form-field-wrapper{
49
+ padding-bottom: 8px !important;
50
+ }
51
+ ::ng-deep .mat-form-field-underline{
52
+ bottom: 8px !important;
53
+ }
54
+
48
55
  input.input-search {
49
56
  width: 100%;
50
57
  padding: 10px;
@@ -108,9 +115,8 @@
108
115
  }
109
116
  }
110
117
 
111
- .mat-tree-node.collapse-node {
118
+ .mat-tree-node.collapse-node:not(.selected-theme) {
112
119
  &.active {
113
-
114
120
  button,
115
121
  .mat-icon-rtl-mirror,
116
122
  .type-icon,
@@ -128,6 +134,10 @@
128
134
  }
129
135
  }
130
136
 
137
+ .mat-tree-node.selected-theme{
138
+ background: theme-apply($primary-light-12-opacity);
139
+ }
140
+
131
141
  .mat-tree-node.expand-node {
132
142
  color: theme-apply($primary);
133
143
 
@@ -166,6 +176,7 @@
166
176
  line-height: 35px;
167
177
  }
168
178
 
179
+
169
180
  .mat-tree-node {
170
181
  &.mat-tree-node-disabled-all {
171
182
  cursor: default !important;
@@ -217,6 +228,18 @@
217
228
  }
218
229
  }
219
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
+
220
243
  &>.node-content-wraper {
221
244
  width: fit-content;
222
245
  position: relative;
@@ -274,13 +297,20 @@
274
297
  .qms-view-search-result{
275
298
  height: 375px;
276
299
  width: 100%;
300
+ overflow: hidden;
277
301
  .result {
278
302
  max-height: calc(100% - 44px);
279
303
  overflow-y: auto;
280
304
  margin-bottom: 4px;
281
305
  padding-right: 4px;
282
306
  &.active-paging{
283
- max-height: calc(100% - 104px);
307
+ max-height: calc(100% - 80px);
308
+ }
309
+ &.no-result{
310
+ height: 100%;
311
+ display: flex;
312
+ justify-content: center;
313
+ align-items: center;
284
314
  }
285
315
  &.no-result{
286
316
  height: 100%;
@@ -442,4 +472,54 @@
442
472
  align-items: center;
443
473
  column-gap: 4px;
444
474
  }
475
+ ::ng-deep .btn-arrow{
476
+ width: 40px;
477
+ height: 40px;
478
+ line-height: 40px;
479
+ }
480
+
481
+ .loading-container{
482
+ overflow: hidden;
483
+ height: 100%;
484
+ display: grid;
485
+ grid-template-rows: repeat(auto-fill, minmax(60px, 60px));
486
+ .loader{
487
+ position: relative;
488
+ width: 100%;
489
+ height: 100%;
490
+ padding: 10px 0;
491
+ overflow: hidden;
492
+ &::after {
493
+ content: "";
494
+ position: absolute;
495
+ width: 100%;
496
+ height: 100%;
497
+ top: 0;
498
+ left: 0;
499
+ background: linear-gradient(110deg, rgba(233, 233, 233, 0) 0%, rgba(227, 227, 227, 0) 40%, rgba(227, 227, 227, 0.5) 50%, rgba(227, 227, 227, 0) 60%, rgba(227, 227, 227, 0) 100%);
500
+ animation: animate-loading 1.2s linear infinite;
501
+ }
502
+ &__wrapper{
503
+ position: relative;
504
+ width: 100%;
505
+ height: 100%;
506
+ .row-loader{
507
+ background-color: #eeeeee;
508
+ position: absolute;
509
+ left: 0;
510
+ width: 100%;
511
+ height: 40px;
512
+ }
513
+ }
514
+ @keyframes animate-loading {
515
+ 0% {
516
+ transform: translateX(-100%);
517
+ }
518
+
519
+ 100% {
520
+ transform: translateX(100%);
521
+ }
522
+ }
523
+ }
524
+ }
445
525
  }