qms-angular 1.1.15 → 1.1.16

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 (74) hide show
  1. package/bundles/qms-angular.umd.js +1438 -21
  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/components/qms-nav-drawer/qms-nav-drawer.component.js +3 -3
  5. package/esm2015/lib/components/select-access-dialog/common/animation.js +10 -0
  6. package/esm2015/lib/components/select-access-dialog/common/option-select-access.enum.js +7 -0
  7. package/esm2015/lib/components/select-access-dialog/index.js +2 -0
  8. package/esm2015/lib/components/select-access-dialog/model/access-item.model.js +6 -0
  9. package/esm2015/lib/components/select-access-dialog/model/option-select-access.model.js +3 -0
  10. package/esm2015/lib/components/select-access-dialog/model/select-access-data.js +16 -0
  11. package/esm2015/lib/components/select-access-dialog/public-api.js +8 -0
  12. package/esm2015/lib/components/select-access-dialog/select-access-dialog.component.js +314 -0
  13. package/esm2015/lib/components/select-access-dialog/select-access-dialog.module.js +60 -0
  14. package/esm2015/lib/components/select-access-dialog/service/select-access-global.service.js +11 -0
  15. package/esm2015/lib/components/select-department/common/animation.js +30 -0
  16. package/esm2015/lib/components/select-department/index.js +2 -0
  17. package/esm2015/lib/components/select-department/model/select-department-popup-data.model.js +15 -0
  18. package/esm2015/lib/components/select-department/public-api.js +5 -0
  19. package/esm2015/lib/components/select-department/select-department.component.js +98 -0
  20. package/esm2015/lib/components/select-department/select-department.module.js +62 -0
  21. package/esm2015/lib/components/select-department/service/select-department-global.service.js +22 -0
  22. package/esm2015/lib/components/select-department-tree/animation/animation.js +54 -0
  23. package/esm2015/lib/components/select-department-tree/index.js +2 -0
  24. package/esm2015/lib/components/select-department-tree/model/department-search-result.model.js +6 -0
  25. package/esm2015/lib/components/select-department-tree/model/select-department-tree.config.js +10 -0
  26. package/esm2015/lib/components/select-department-tree/public-api.js +7 -0
  27. package/esm2015/lib/components/select-department-tree/select-department-tree.component.js +602 -0
  28. package/esm2015/lib/components/select-department-tree/select-department-tree.module.js +60 -0
  29. package/esm2015/lib/components/select-department-tree/service/select-department-tree-global.service.js +22 -0
  30. package/esm2015/lib/components/select-include-children/services/select-include-children-global.service.js +1 -1
  31. package/esm2015/lib/components/select-one/select-one-next.component.js +1 -1
  32. package/esm2015/lib/components/tree/basic-tree.component.js +1 -1
  33. package/esm2015/lib/model/en.js +18 -2
  34. package/esm2015/lib/model/no.js +17 -1
  35. package/esm2015/lib/services/translation-registry.service.js +2 -2
  36. package/esm2015/public-api.js +4 -1
  37. package/fesm2015/qms-angular.js +1342 -22
  38. package/fesm2015/qms-angular.js.map +1 -1
  39. package/lib/common/models/qms-flat-node.model.d.ts +3 -0
  40. package/lib/components/select-access-dialog/common/animation.d.ts +1 -0
  41. package/lib/components/select-access-dialog/common/option-select-access.enum.d.ts +5 -0
  42. package/lib/components/select-access-dialog/index.d.ts +1 -0
  43. package/lib/components/select-access-dialog/model/access-item.model.d.ts +7 -0
  44. package/lib/components/select-access-dialog/model/option-select-access.model.d.ts +5 -0
  45. package/lib/components/select-access-dialog/model/select-access-data.d.ts +14 -0
  46. package/lib/components/select-access-dialog/public-api.d.ts +7 -0
  47. package/lib/components/select-access-dialog/select-access-dialog.component.d.ts +72 -0
  48. package/lib/components/select-access-dialog/select-access-dialog.module.d.ts +2 -0
  49. package/lib/components/select-access-dialog/service/select-access-global.service.d.ts +2 -0
  50. package/lib/components/select-department/common/animation.d.ts +1 -0
  51. package/lib/components/select-department/index.d.ts +1 -0
  52. package/lib/components/select-department/model/select-department-popup-data.model.d.ts +16 -0
  53. package/lib/components/select-department/public-api.d.ts +4 -0
  54. package/lib/components/select-department/select-department.component.d.ts +37 -0
  55. package/lib/components/select-department/select-department.module.d.ts +2 -0
  56. package/lib/components/select-department/service/select-department-global.service.d.ts +9 -0
  57. package/lib/components/select-department-tree/animation/animation.d.ts +1 -0
  58. package/lib/components/select-department-tree/index.d.ts +1 -0
  59. package/lib/components/select-department-tree/model/department-search-result.model.d.ts +11 -0
  60. package/lib/components/select-department-tree/model/select-department-tree.config.d.ts +9 -0
  61. package/lib/components/select-department-tree/public-api.d.ts +6 -0
  62. package/lib/components/select-department-tree/select-department-tree.component.d.ts +117 -0
  63. package/lib/components/select-department-tree/select-department-tree.module.d.ts +2 -0
  64. package/lib/components/select-department-tree/service/select-department-tree-global.service.d.ts +9 -0
  65. package/lib/model/en.d.ts +16 -0
  66. package/lib/model/no.d.ts +16 -0
  67. package/package.json +1 -1
  68. package/public-api.d.ts +3 -0
  69. package/qms-angular.metadata.json +1 -1
  70. package/src/lib/components/select-access-dialog/select-access-dialog.component.scss +272 -0
  71. package/src/lib/components/select-department/select-department.component.scss +185 -0
  72. package/src/lib/components/select-department-tree/select-department-tree.component.scss +429 -0
  73. package/src/themes/_qms-icon-font.scss +1 -1
  74. package/src/themes/core/_table-pure-gap.scss +0 -1
@@ -0,0 +1,429 @@
1
+ @import "../../../themes/core/variables";
2
+ @import "../../../themes/theme/variable";
3
+ @import "../../../themes/theme/mixins";
4
+ @import "../../../themes/qms-icon-font";
5
+
6
+
7
+ .qms-select-department-tree-container {
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
+
24
+ .text-right {
25
+ text-align: right;
26
+ }
27
+
28
+ .mt20 {
29
+ margin-top: 20px;
30
+ }
31
+
32
+ .text-selected {
33
+ color: black(0.6);
34
+ font-size: 12px;
35
+ line-height: 16px;
36
+ margin-top: 1rem;
37
+ }
38
+
39
+ .input__field {
40
+ display: flex;
41
+ align-items: center;
42
+ position: relative;
43
+
44
+ input.input-search {
45
+ width: 100%;
46
+ padding: 10px;
47
+ outline: none;
48
+ border: none;
49
+ background: theme-apply($background-input-text);
50
+ }
51
+
52
+ .btn-search {
53
+ cursor: pointer;
54
+ vertical-align: middle;
55
+ position: absolute;
56
+ top: 50%;
57
+ right: 10px;
58
+ transform: translateY(-50%);
59
+ }
60
+
61
+ .line__divider {
62
+ border-bottom: 1px solid #ccc;
63
+ height: 1px;
64
+ margin-top: 10px;
65
+ min-width: 300px;
66
+ max-width: 100%;
67
+ }
68
+ }
69
+
70
+ .tree-department-wrapper {
71
+ height: 375px;
72
+ padding-right: 4px;
73
+ overflow-y: auto;
74
+ overflow-x: hidden;
75
+ position: relative;
76
+ }
77
+
78
+ // Tree
79
+ .mat-tree.select-department-tree {
80
+ .mat-tree-node {
81
+ border-radius: 4px;
82
+ &:hover {
83
+ background: black(0.08);
84
+ }
85
+
86
+ &:active {
87
+ background: black(0.12);
88
+ }
89
+
90
+ &.active {
91
+ color: theme-apply($primary);
92
+ background: theme-apply($primary-light-6-opacity);
93
+
94
+ &:active {
95
+ background: theme-apply($primary-light-12-opacity);
96
+ }
97
+
98
+ button,
99
+ .mat-icon-rtl-mirror,
100
+ .type-icon,
101
+ .text-name {
102
+ color: theme-apply($primary);
103
+ }
104
+ }
105
+ }
106
+
107
+ .mat-tree-node.collapse-node {
108
+ &.active {
109
+
110
+ button,
111
+ .mat-icon-rtl-mirror,
112
+ .type-icon,
113
+ .text-name {
114
+ color: theme-apply($primary);
115
+ }
116
+
117
+ &:hover {
118
+ background: theme-apply($primary-light-6-opacity);
119
+ }
120
+
121
+ &:active {
122
+ background: theme-apply($primary-light-12-opacity);
123
+ }
124
+ }
125
+ }
126
+
127
+ .mat-tree-node.expand-node {
128
+ color: theme-apply($primary);
129
+
130
+ button,
131
+ .mat-icon-rtl-mirror,
132
+ .type-icon,
133
+ .text-name {
134
+ color: theme-apply($primary);
135
+ }
136
+
137
+ &:hover {
138
+ background: theme-apply($primary-light-6-opacity);
139
+ }
140
+
141
+ &:active {
142
+ background: theme-apply($primary-light-12-opacity);
143
+ }
144
+ }
145
+
146
+ .type-icon {
147
+ margin-right: 5px;
148
+ color: theme-apply($ws-action-active);
149
+ }
150
+
151
+ .text-name {
152
+ color: theme-apply($default-color);
153
+ }
154
+
155
+ .mat-icon-rtl-mirror {
156
+ color: black(0.6);
157
+ }
158
+
159
+ .mat-icon-button.btn-toggle {
160
+ width: 35px;
161
+ height: 35px;
162
+ line-height: 35px;
163
+ }
164
+
165
+ .mat-tree-node {
166
+ &.mat-tree-node-disabled-all {
167
+ cursor: default !important;
168
+ pointer-events: none;
169
+ user-select: none;
170
+
171
+ button.mat-button-disabled,
172
+ .mat-icon-rtl-mirror,
173
+ .type-icon {
174
+ color: black(0.38);
175
+ }
176
+
177
+ .text-name {
178
+ &.disabled {
179
+ color: black(0.38);
180
+ cursor: default !important;
181
+ pointer-events: none;
182
+ user-select: none;
183
+ }
184
+ }
185
+
186
+ &.active {
187
+ background-color: transparent;
188
+ }
189
+ }
190
+
191
+ &.mat-tree-node-disabled {
192
+
193
+ button.mat-button-disabled,
194
+ .type-icon {
195
+ color: black(0.38);
196
+ }
197
+
198
+ .text-name {
199
+ &.disabled {
200
+ color: black(0.38);
201
+ cursor: default !important;
202
+ pointer-events: none;
203
+ user-select: none;
204
+ }
205
+ }
206
+
207
+ &.active,
208
+ &:hover,
209
+ &:active,
210
+ &.expand-node:hover,
211
+ &.expand-node:active {
212
+ background-color: transparent;
213
+ }
214
+ }
215
+
216
+ &>.node-content-wraper {
217
+ width: fit-content;
218
+ position: relative;
219
+ display: flex;
220
+ justify-content: center;
221
+ align-items: center;
222
+
223
+ &>.mat-progress-bar {
224
+ height: 3px;
225
+ width: 100%;
226
+ position: absolute;
227
+ bottom: 0;
228
+ left: 10px;
229
+
230
+ .mat-progress-bar-fill::after {
231
+ background: theme-apply($primary);
232
+ }
233
+ }
234
+ }
235
+ }
236
+ }
237
+
238
+ .text-name {
239
+ position: relative;
240
+ overflow: hidden;
241
+ text-overflow: ellipsis;
242
+ display: -webkit-box;
243
+ -webkit-line-clamp: 2;
244
+ -webkit-box-orient: vertical;
245
+ cursor: pointer;
246
+ width: 100%;
247
+ }
248
+
249
+ .cursor-pointer {
250
+ cursor: pointer;
251
+ }
252
+
253
+ .ml5 {
254
+ margin-left: 10px !important;
255
+ }
256
+
257
+ ::ng-deep .mat-checkbox.qms-group-options.flex-direction-row {
258
+ .mat-checkbox-layout {
259
+ white-space: normal;
260
+ }
261
+
262
+ .mat-checkbox-label {
263
+ flex-direction: row;
264
+ align-items: center;
265
+ position: relative;
266
+ padding-bottom: 2px;
267
+ }
268
+ }
269
+
270
+ .qms-view-search-result{
271
+ height: 375px;
272
+ width: 100%;
273
+ .result {
274
+ max-height: calc(100% - 44px);
275
+ overflow-y: auto;
276
+ margin-bottom: 4px;
277
+ padding-right: 4px;
278
+ &.active-paging{
279
+ max-height: calc(100% - 104px);
280
+ }
281
+ }
282
+ .result-item{
283
+ border-radius: 4px;
284
+ display: grid;
285
+ grid-template-columns: 45px 1fr;
286
+ align-items: center;
287
+ cursor: pointer;
288
+ transition: background .3s ease;
289
+ &:not(:nth-child(1)){
290
+ margin-top: 4px !important;
291
+ }
292
+ &:hover{
293
+ background: linear-gradient(0deg, rgba(1, 99, 178, 0.12), rgba(1, 99, 178, 0.12)), #FFFFFF;
294
+ }
295
+ &.active{
296
+ background: linear-gradient(0deg, rgba(1, 99, 178, 0.12), rgba(1, 99, 178, 0.12)), #FFFFFF;
297
+ }
298
+ .item-result-content-wraper{
299
+ padding: 5px 15px 5px 15px;
300
+ }
301
+ }
302
+
303
+ ::ng-deep .mat-checkbox.qms-group-options{
304
+ display: flex;
305
+ height: 100%;
306
+ }
307
+ }
308
+
309
+ ::ng-deep .breadcrumb-container{
310
+ flex-wrap: wrap;
311
+ }
312
+ ::ng-deep .mat-button-focus-overlay {
313
+ background-color: transparent;
314
+ }
315
+
316
+ ::ng-deep .qms-breadcrumb-item{
317
+ margin: 0;
318
+ }
319
+
320
+ ::ng-deep .qms-breadcrumb-item-text{
321
+ white-space: nowrap;
322
+ &:not(:last-child){
323
+ max-width: 150px !important;
324
+ }
325
+ text-overflow: ellipsis;
326
+ overflow: hidden;
327
+ transition: color .3s ease;
328
+ &:not(:last-child):hover{
329
+ color : theme-apply($primary)
330
+ }
331
+ }
332
+
333
+ ::ng-deep .qms-paginator{
334
+ .mat-icon{
335
+ display: flex;
336
+ align-items: center;
337
+ justify-content: center;
338
+ }
339
+ .mat-form-field-wrapper{
340
+ padding-bottom: 0;
341
+ }
342
+ .mat-paginator-container{
343
+ min-height: 40px;
344
+ }
345
+ .mat-paginator-container .qms-total-result{
346
+ margin-bottom: 0;
347
+ margin-right: 12px;
348
+ height: 100%;
349
+ display: flex;
350
+ justify-content: center;
351
+ align-items: center;
352
+ span{
353
+ font-weight: 600;
354
+ font-size: 13px;
355
+ color: black(0.8);
356
+ }
357
+ }
358
+ .mat-paginator-container .qms-paginator-range-actions{
359
+ margin-bottom: 0;
360
+ column-gap: 2px;
361
+ & > .qms-total-result{
362
+ margin-bottom: 0;
363
+ }
364
+ &> .qms-btn-icon{
365
+ width: 30px;
366
+ height: 30px;
367
+ line-height: 30px;
368
+ }
369
+ }
370
+
371
+ &> .qms-btn-icon-wrapper{
372
+ width: 30px;
373
+ height: 30px;
374
+ display: flex;
375
+ justify-content: center;
376
+ align-items: center;
377
+ }
378
+
379
+ .qms-paginator-page-size{
380
+ margin-right: 12px;
381
+ height: 100%;
382
+ display: flex;
383
+ align-items: center;
384
+ justify-content: center;
385
+ &> .qms-form-page-size .mat-form-field-flex{
386
+ width: 60px;
387
+ height: 30px;
388
+ display: flex;
389
+ align-items: center;
390
+ padding: 0 4px;
391
+ .mat-form-field-infix{
392
+ height: 30px;
393
+ }
394
+ }
395
+ & > .qms-pagesize-label{
396
+ display: none;
397
+ }
398
+ }
399
+ .mat-form-field.qms-form .mat-select-min-line, .mat-form-field.qms-form mat-select-trigger{
400
+ font-size: 14px;
401
+ }
402
+ .mat-select-value{
403
+ text-align: center;
404
+ }
405
+ }
406
+
407
+ .text-gray{
408
+ color: #242424;
409
+ }
410
+
411
+ .mb0{
412
+ margin-bottom: 0 !important;
413
+ }
414
+
415
+ .fs-base{
416
+ font-size: 14px !important;
417
+ }
418
+
419
+ .user-select-none{
420
+ user-select: none;
421
+ }
422
+
423
+ .item-breadcrumb-disable{
424
+ cursor: not-allowed;
425
+ color: rgba(0, 0, 0, 0.6);
426
+ font-weight: 400;
427
+ font-size: 14px;
428
+ }
429
+ }
@@ -10,7 +10,7 @@
10
10
  font-display: block;
11
11
  }
12
12
 
13
- [class^="icon-"], [class*=" icon-"] {
13
+ [class^="icon-"] {
14
14
  /* use !important to prevent issues with browser extensions that change fonts */
15
15
  font-family: 'icomoon' !important;
16
16
  speak: never;
@@ -72,7 +72,6 @@ table.mat-table {
72
72
  padding: 10px 0 10px 0;
73
73
  border-bottom: 1px solid theme-apply($other-divider);
74
74
  border-top: 1px solid theme-apply($other-divider);
75
- background-color: #fff;
76
75
  color: theme-apply($ws-text-primary);
77
76
  font-weight: 400;
78
77
  }