qms-angular 1.1.45 → 1.1.47

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 (42) hide show
  1. package/bundles/qms-angular.umd.js +1703 -37
  2. package/bundles/qms-angular.umd.js.map +1 -1
  3. package/esm2015/lib/components/select-process-data/index.js +2 -0
  4. package/esm2015/lib/components/select-process-data/public-api.js +3 -0
  5. package/esm2015/lib/components/select-process-data/select-process-data.component.js +275 -0
  6. package/esm2015/lib/components/select-process-data/select-process-data.module.js +64 -0
  7. package/esm2015/lib/components/select-process-data-tree/index.js +2 -0
  8. package/esm2015/lib/components/select-process-data-tree/public-api.js +3 -0
  9. package/esm2015/lib/components/select-process-data-tree/select-process-data-tree.component.js +1134 -0
  10. package/esm2015/lib/components/select-process-data-tree/select-process-data-tree.module.js +64 -0
  11. package/esm2015/lib/model/en.js +2 -1
  12. package/esm2015/lib/model/no.js +2 -1
  13. package/esm2015/lib/qms-ckeditor-components/components/qms-ckeditor-bpmn/qms-ckeditor-bpmn.component.js +7 -4
  14. package/esm2015/lib/qms-ckeditor-components/components/qms-ckeditor-imagemap/qms-ckeditor-imagemap.component.js +5 -4
  15. package/esm2015/lib/qms-ckeditor-components/components/qms-ckeditor-link/qms-ckeditor-link.component.js +2 -2
  16. package/esm2015/lib/qms-ckeditor-components/components/qms-ckeditor-tooltip/qms-ckeditor-tooltip.component.js +2 -2
  17. package/esm2015/lib/qms-ckeditor-components/models/qms-ckeditor-imagemap.model.js +1 -1
  18. package/esm2015/lib/qms-ckeditor-components/qms-ckeditor.component.js +2 -1
  19. package/esm2015/lib/qms-ckeditor-components/services/qms-ckeditor-bpmn-connection.service.js +3 -3
  20. package/esm2015/lib/qms-ckeditor-components/services/qms-ckeditor-bpmn.service.js +13 -10
  21. package/esm2015/lib/qms-ckeditor-components/services/qms-ckeditor-tree.service.js +4 -4
  22. package/esm2015/public-api.js +3 -1
  23. package/fesm2015/qms-angular.js +1507 -38
  24. package/fesm2015/qms-angular.js.map +1 -1
  25. package/lib/components/select-process-data/index.d.ts +1 -0
  26. package/lib/components/select-process-data/public-api.d.ts +2 -0
  27. package/lib/components/select-process-data/select-process-data.component.d.ts +120 -0
  28. package/lib/components/select-process-data/select-process-data.module.d.ts +2 -0
  29. package/lib/components/select-process-data-tree/index.d.ts +1 -0
  30. package/lib/components/select-process-data-tree/public-api.d.ts +2 -0
  31. package/lib/components/select-process-data-tree/select-process-data-tree.component.d.ts +196 -0
  32. package/lib/components/select-process-data-tree/select-process-data-tree.module.d.ts +2 -0
  33. package/lib/model/en.d.ts +1 -0
  34. package/lib/model/no.d.ts +1 -0
  35. package/lib/qms-ckeditor-components/models/qms-ckeditor-imagemap.model.d.ts +1 -0
  36. package/lib/qms-ckeditor-components/services/qms-ckeditor-bpmn-connection.service.d.ts +1 -1
  37. package/package.json +1 -1
  38. package/public-api.d.ts +2 -0
  39. package/qms-angular.metadata.json +1 -1
  40. package/src/assets/jointjs/scss/rappid.scss +12 -1
  41. package/src/lib/components/select-process-data/select-process-data.component.scss +241 -0
  42. package/src/lib/components/select-process-data-tree/select-process-data-tree.component.scss +634 -0
@@ -0,0 +1,634 @@
1
+ @import "../../../themes/core/variables";
2
+ @import "../../../themes/theme/variable";
3
+ @import "../../../themes/theme/mixins";
4
+ @import "../../../themes/qms-icon-font";
5
+
6
+ .qms-select-department-tree-container {
7
+ font-family: 'Open Sans', sans-serif;
8
+ .mr10 {
9
+ margin-right: 10px;
10
+ }
11
+
12
+ .mt5 {
13
+ margin-bottom: 5px;
14
+ }
15
+
16
+ .mb5 {
17
+ margin-top: 5px;
18
+ }
19
+
20
+ .w100 {
21
+ width: 100%;
22
+ }
23
+ .h100{
24
+ height: 100%;
25
+ }
26
+
27
+ .fw500{
28
+ font-weight: 500 !important;
29
+ }
30
+
31
+ .text-right {
32
+ text-align: right;
33
+ }
34
+
35
+ .mt20 {
36
+ margin-top: 20px;
37
+ }
38
+
39
+ .d-flex{
40
+ display: flex;
41
+ }
42
+
43
+ .align-items-center{
44
+ align-items: center;
45
+ }
46
+
47
+ .justify-content-end {
48
+ justify-content: flex-end;
49
+ }
50
+
51
+ .text-selected {
52
+ color: black(0.6);
53
+ font-size: 12px;
54
+ line-height: 16px;
55
+ margin-top: 1rem;
56
+ }
57
+
58
+ .input-field {
59
+ display: flex;
60
+ align-items: center;
61
+ position: relative;
62
+
63
+ ::ng-deep .mat-form-field-wrapper{
64
+ padding-bottom: 8px !important;
65
+ }
66
+ ::ng-deep .mat-form-field-underline{
67
+ bottom: 8px !important;
68
+ }
69
+
70
+ input.input-search {
71
+ width: 100%;
72
+ padding: 10px;
73
+ outline: none;
74
+ border: none;
75
+ background: theme-apply($background-input-text);
76
+ }
77
+
78
+ .btn-search {
79
+ cursor: pointer;
80
+ vertical-align: middle;
81
+ position: absolute;
82
+ top: 50%;
83
+ right: 10px;
84
+ transform: translateY(-50%);
85
+ }
86
+
87
+ .line__divider {
88
+ border-bottom: 1px solid #ccc;
89
+ height: 1px;
90
+ margin-top: 10px;
91
+ min-width: 300px;
92
+ max-width: 100%;
93
+ }
94
+ }
95
+
96
+ .header-title {
97
+ font-weight: 500;
98
+ color: theme-apply($ws-text-primary);
99
+ font-size: 16px;
100
+ display: flex;
101
+ align-items: center;
102
+ .header-view{
103
+ padding: 4px 0;
104
+ }
105
+ }
106
+
107
+ .sticky-position{
108
+ position: sticky;
109
+ top: 0;
110
+ left: 0;
111
+ z-index: 1;
112
+ background: #FFFFFF;
113
+ }
114
+
115
+ .header-view-tree{
116
+ display: grid;
117
+ grid-template-columns: 1fr 200px;
118
+ column-gap: 2px;
119
+ padding: 4px 12px 4px 0;
120
+ .header-view:nth-child(1){
121
+ padding-left: 12px;
122
+ }
123
+ }
124
+
125
+ .tree-department-wrapper {
126
+ padding-right: 4px;
127
+ overflow: hidden;
128
+ position: relative;
129
+ transition: height .3s ease-in-out;
130
+ .tree-view{
131
+ &.active-mode-external-view{
132
+ width: 100%;
133
+ display: grid;
134
+ grid-template-columns: 1fr 200px;
135
+ column-gap: 2px;
136
+ .tree-view-main{
137
+ &> .separate{
138
+ height: 38px;
139
+ &.h-0{
140
+ height: 0;
141
+ }
142
+ }
143
+ &:last-child{
144
+ height: 100%;
145
+ padding-left: 4px;
146
+ position: relative;
147
+ &::after{
148
+ position: absolute;
149
+ content: "";
150
+ top: 0;
151
+ bottom: -38px;
152
+ left: 0;
153
+ width: 1px;
154
+ background: rgba(0, 0, 0, 0.12);
155
+ }
156
+ }
157
+ .external-list-item-container{
158
+ .node-external{
159
+ overflow: hidden;
160
+ transition: all .1s ease-in-out;
161
+ .node-external-content {
162
+ padding: 5px 15px 5px 15px;
163
+ height: calc(100% - 2px);
164
+ color: theme-apply($default-color);
165
+ font-size: 14px;
166
+ display: flex;
167
+ align-items: center;
168
+ span{
169
+ overflow: hidden;
170
+ text-overflow: ellipsis;
171
+ white-space: nowrap;
172
+ }
173
+ }
174
+ }
175
+ }
176
+ }
177
+ }
178
+ }
179
+ }
180
+
181
+ .mask-overlay{
182
+ z-index: 1000;
183
+ background-color: rgba(34, 33, 33, 0.1);
184
+ position: absolute;
185
+ top: 0;
186
+ left: 0;
187
+ width: 100%;
188
+ height: 100%;
189
+ border-radius: 4px;
190
+ overflow: hidden;
191
+ display: grid;
192
+ place-items: center;
193
+ }
194
+ //Custom tree
195
+ .select-department-tree{
196
+ & > .cdk-virtual-scroll-orientation-vertical .cdk-virtual-scroll-content-wrapper{
197
+ padding: 0 4px !important;
198
+ }
199
+ .qms-tree-node{
200
+ display: flex;
201
+ align-items: center;
202
+ border-radius: 4px;
203
+ &:hover{
204
+ background-color: rgba(0,0,0,.08);
205
+ }
206
+ &> .node-expand-area{
207
+ width: 48px;
208
+ height: 48px;
209
+ position: relative;
210
+ }
211
+ &.active-external-view{
212
+ .mat-checkbox.qms-group-options{
213
+ width: calc(100% - 250px) ;
214
+ }
215
+ }
216
+ &.node-loading{
217
+ background: theme-apply($primary-light-6-opacity);
218
+ }
219
+ &> .external-view-node{
220
+ flex-basis: 200px;
221
+ overflow: hidden;
222
+ .node-external{
223
+ overflow: hidden;
224
+ transition: all .1s ease-in-out;
225
+ display: block;
226
+ .node-external-content {
227
+ padding: 5px 15px 5px 15px;
228
+ height: calc(100% - 2px);
229
+ color: theme-apply($default-color);
230
+ font-size: 14px;
231
+ display: flex;
232
+ align-items: center;
233
+ span{
234
+ overflow: hidden;
235
+ text-overflow: ellipsis;
236
+ white-space: nowrap;
237
+ }
238
+ }
239
+ }
240
+ }
241
+ &.expand-node {
242
+ color: theme-apply($primary);
243
+ &:hover {
244
+ background: theme-apply($primary-light-6-opacity);
245
+ }
246
+
247
+ &:active {
248
+ background: theme-apply($primary-light-12-opacity);
249
+ }
250
+
251
+ .mat-icon{
252
+ color: theme-apply($primary);
253
+ }
254
+ }
255
+ .node-without-checkbox{
256
+ cursor: pointer;
257
+ width: 100%;
258
+ display: flex;
259
+ justify-content: space-between;
260
+ align-items: center;
261
+ .mat-icon{
262
+ color: theme-apply($primary);
263
+ margin-right: 4px;
264
+ }
265
+ }
266
+ &.selected-theme{
267
+ background: theme-apply($primary-light-12-opacity);
268
+ }
269
+
270
+ &.mat-tree-node-disabled-all {
271
+ cursor: default !important;
272
+ pointer-events: none;
273
+ user-select: none;
274
+
275
+ button.mat-button-disabled,
276
+ .mat-icon-rtl-mirror,
277
+ .type-icon {
278
+ color: black(0.38);
279
+ }
280
+
281
+ .text-name {
282
+ &.disabled {
283
+ color: black(0.38);
284
+ cursor: default !important;
285
+ pointer-events: none;
286
+ user-select: none;
287
+ }
288
+ }
289
+
290
+ &.active {
291
+ background-color: transparent;
292
+ }
293
+ }
294
+ }
295
+ }
296
+ .text-name {
297
+ position: relative;
298
+ overflow: hidden;
299
+ text-overflow: ellipsis;
300
+ display: -webkit-box;
301
+ -webkit-line-clamp: 2;
302
+ -webkit-box-orient: vertical;
303
+ cursor: pointer;
304
+ width: 100%;
305
+ }
306
+
307
+ .cursor-pointer {
308
+ cursor: pointer;
309
+ }
310
+
311
+ .ml5 {
312
+ margin-left: 15px !important;
313
+ }
314
+ .pl-10{
315
+ padding-left: 10px;
316
+ }
317
+
318
+ ::ng-deep .mat-checkbox.qms-group-options.flex-direction-row {
319
+ .mat-checkbox-layout {
320
+ white-space: normal;
321
+ }
322
+
323
+ .node-text{
324
+ &> span{
325
+ display: block;
326
+ }
327
+ }
328
+
329
+ .mat-checkbox-label {
330
+ flex-direction: row;
331
+ align-items: center;
332
+ position: relative;
333
+ padding-bottom: 2px;
334
+ }
335
+ }
336
+
337
+ .qms-view-search-result{
338
+ width: 100%;
339
+ overflow: hidden;
340
+ &__header{
341
+ position: relative;
342
+ &::after{
343
+ position: absolute;
344
+ content: "";
345
+ bottom: 0;
346
+ left: 0;
347
+ width: 100%;
348
+ height: 1px;
349
+ background-color: black(.1);
350
+ }
351
+ .header-title{
352
+ padding: 8px 0;
353
+ display: inline-block;
354
+ &:nth-child(1){
355
+ padding-left: 12px;
356
+ }
357
+ &:nth-child(2){
358
+ flex-basis: 200px;
359
+ }
360
+ }
361
+ }
362
+ &> .no-result{
363
+ height: 100%;
364
+ display: flex;
365
+ justify-content: center;
366
+ align-items: center;
367
+ }
368
+ &__wrapper{
369
+ height: calc(100% - 50px);
370
+ &.active-external{
371
+ height: calc(100% - 90px) !important;
372
+ }
373
+ width: 100%;
374
+ .result {
375
+ max-height: calc(100% - 44px);
376
+ overflow-y: auto;
377
+ margin-bottom: 4px;
378
+ padding-right: 4px;
379
+ &.active-paging{
380
+ max-height: calc(100% - 40px);
381
+ }
382
+ }
383
+ .result-item{
384
+ border-radius: 4px;
385
+ display: grid;
386
+ grid-template-columns: 45px 1fr;
387
+ align-items: center;
388
+ cursor: pointer;
389
+ transition: background .3s ease;
390
+ min-height: 40px;
391
+ &:not(:nth-child(1)){
392
+ margin-top: 4px !important;
393
+ }
394
+ &:hover{
395
+ background: linear-gradient(0deg, rgba(1, 99, 178, 0.12), rgba(1, 99, 178, 0.12)), #FFFFFF;
396
+ }
397
+ &.active{
398
+ background: linear-gradient(0deg, rgba(1, 99, 178, 0.12), rgba(1, 99, 178, 0.12)), #FFFFFF;
399
+ }
400
+ &__content{
401
+ display: flex;
402
+ align-items: center;
403
+ .item-result-content-wraper{
404
+ padding: 5px 15px 5px 15px;
405
+ width: 100%;
406
+ }
407
+ .external-name{
408
+ flex-basis: 200px;
409
+ span{
410
+ width: 200px;
411
+ display: inline-block;
412
+ }
413
+ }
414
+ }
415
+ }
416
+ }
417
+ ::ng-deep .mat-checkbox.qms-group-options{
418
+ display: flex;
419
+ height: 100%;
420
+ }
421
+ }
422
+
423
+ ::ng-deep .breadcrumb-container{
424
+ flex-wrap: wrap;
425
+ }
426
+ ::ng-deep .mat-button-focus-overlay {
427
+ background-color: transparent;
428
+ }
429
+
430
+ ::ng-deep .qms-breadcrumb-item{
431
+ margin: 0;
432
+ }
433
+
434
+ ::ng-deep .qms-breadcrumb-item-text{
435
+ white-space: nowrap;
436
+ &:not(:last-child){
437
+ max-width: 150px !important;
438
+ }
439
+ text-overflow: ellipsis;
440
+ overflow: hidden;
441
+ transition: color .3s ease;
442
+ &:not(:last-child):hover{
443
+ // color : theme-apply($primary)
444
+ }
445
+ }
446
+
447
+ ::ng-deep .qms-paginator{
448
+ .mat-paginator-container .qms-total-result{
449
+ margin-bottom: 0;
450
+ margin-right: 12px;
451
+ height: 100%;
452
+ display: flex;
453
+ align-items: center;
454
+ span{
455
+ font-weight: 600;
456
+ color: black(0.8);
457
+ }
458
+ }
459
+ .mat-paginator-container .qms-paginator-range-actions{
460
+ margin-bottom: 0;
461
+ column-gap: 2px;
462
+ & > .qms-total-result{
463
+ margin-bottom: 0;
464
+ }
465
+ }
466
+ .mat-form-field-wrapper{
467
+ padding-bottom: 0;
468
+ }
469
+ .qms-paginator-page-size{
470
+ align-items: center;
471
+ }
472
+ }
473
+
474
+ .text-gray{
475
+ color: #242424;
476
+ }
477
+
478
+ .mb0{
479
+ margin-bottom: 0 !important;
480
+ }
481
+
482
+ .fs-base{
483
+ font-size: 14px !important;
484
+ }
485
+
486
+ .user-select-none{
487
+ user-select: none;
488
+ }
489
+
490
+ .item-breadcrumb-disable{
491
+ cursor: not-allowed;
492
+ color: rgba(0, 0, 0, 0.6);
493
+ font-weight: 400;
494
+ font-size: 14px;
495
+ max-width: 250px;
496
+ }
497
+
498
+ ::ng-deep .mat-checkbox.checkbox-all .mat-checkbox-label{
499
+ flex-direction: row;
500
+ align-items: center;
501
+ column-gap: 4px;
502
+ }
503
+ ::ng-deep .btn-arrow{
504
+ width: 40px;
505
+ height: 40px;
506
+ line-height: 40px;
507
+ }
508
+
509
+ .qms-loading-container{
510
+ overflow: hidden;
511
+ display: grid;
512
+ grid-template-rows: repeat(60px);
513
+ .qms-loader{
514
+ position: relative;
515
+ width: 100%;
516
+ height: 100%;
517
+ padding: 10px 0;
518
+ overflow: hidden;
519
+ &::after {
520
+ content: "";
521
+ position: absolute;
522
+ width: 100%;
523
+ height: 100%;
524
+ top: 0;
525
+ left: 0;
526
+ 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%);
527
+ animation: animate-loading 1.2s linear infinite;
528
+ }
529
+ &__wrapper{
530
+ position: relative;
531
+ width: 100%;
532
+ height: 100%;
533
+ .row-loader{
534
+ background-color: #eeeeee;
535
+ position: absolute;
536
+ left: 0;
537
+ width: 100%;
538
+ height: 40px;
539
+ }
540
+ }
541
+ @keyframes animate-loading {
542
+ 0% {
543
+ transform: translateX(-100%);
544
+ }
545
+
546
+ 100% {
547
+ transform: translateX(100%);
548
+ }
549
+ }
550
+ }
551
+ }
552
+
553
+ .qms-spinner {
554
+ font-size: 20px;
555
+ position: relative;
556
+ display: inline-block;
557
+ width: 1em;
558
+ height: 1em;
559
+ &.center {
560
+ position: absolute;
561
+ left: 0;
562
+ right: 0;
563
+ top: 0;
564
+ bottom: 0;
565
+ margin: auto;
566
+ }
567
+ }
568
+ ::ng-deep .mat-progress-spinner circle, .mat-spinner circle{
569
+ stroke: #1b75be !important;
570
+ }
571
+ // Responsive
572
+ @media screen and (max-width: 600px) {
573
+ .external-view-node {
574
+ flex-basis: 65px !important;
575
+ }
576
+
577
+ .qms-tree-node.active-external-view .mat-checkbox.qms-group-options {
578
+ width: calc(100% - 110px)!important ;
579
+ }
580
+
581
+ .header-view-tree {
582
+ grid-template-columns: 1fr 80px !important;
583
+ }
584
+
585
+ ::ng-deep .cdk-virtual-scroll-content-wrapper{
586
+ right: 0 !important;
587
+ }
588
+ .header-title{
589
+ font-size: 14px !important;
590
+ }
591
+ .text-name, .node-external, .text-label, .text-label+span{
592
+ font-size: 12px;
593
+ }
594
+ .node-expand-area{
595
+ width: 30px !important;
596
+ height: 30px !important;
597
+ .qms-btn-icon{
598
+ width: 30px;
599
+ height: 30px;
600
+ line-height: 30px;
601
+ }
602
+ }
603
+ .fs-base{
604
+ font-size: 12px !important;
605
+ }
606
+ .qms-select-department-tree-container .breadcrumb-container{
607
+ flex-wrap: nowrap !important;
608
+ }
609
+ ::ng-deep .qms-breadcrumb-item-text{
610
+ font-size: 12px !important;
611
+ max-width: 175px !important;
612
+ }
613
+
614
+ ::ng-deep .qms-paginator .mat-paginator-container .qms-total-result{
615
+ display: none !important;
616
+ }
617
+
618
+ ::ng-deep .qms-paginator .size-small .mat-paginator-container{
619
+ justify-content: center !important;
620
+ }
621
+
622
+ .qms-view-search-result__header > .header-title:nth-child(2){
623
+ flex-basis: 120px !important;
624
+ }
625
+
626
+ .result-item__content .external-name{
627
+ flex-basis: 75px !important;
628
+ span{
629
+ width: 75px !important;
630
+ }
631
+ }
632
+ }
633
+ }
634
+