qms-angular 1.1.14 → 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 (41) hide show
  1. package/bundles/qms-angular.umd.js +510 -154
  2. package/bundles/qms-angular.umd.js.map +1 -1
  3. package/esm2015/lib/components/breadcrumb/breadcrumb.js +3 -3
  4. package/esm2015/lib/components/qms-nav-drawer/qms-nav-drawer.component.js +3 -3
  5. package/esm2015/lib/components/qms-paginator/qms-paginator.component.js +12 -3
  6. package/esm2015/lib/components/select-access-dialog/select-access-dialog.component.js +49 -23
  7. package/esm2015/lib/components/select-access-dialog/select-access-dialog.module.js +5 -1
  8. package/esm2015/lib/components/select-department/common/animation.js +4 -4
  9. package/esm2015/lib/components/select-department/model/select-department-popup-data.model.js +5 -2
  10. package/esm2015/lib/components/select-department/select-department.component.js +28 -14
  11. package/esm2015/lib/components/select-department/select-department.module.js +4 -2
  12. package/esm2015/lib/components/select-department-tree/animation/animation.js +54 -0
  13. package/esm2015/lib/components/select-department-tree/model/department-search-result.model.js +6 -0
  14. package/esm2015/lib/components/select-department-tree/public-api.js +3 -1
  15. package/esm2015/lib/components/select-department-tree/select-department-tree.component.js +296 -73
  16. package/esm2015/lib/components/select-department-tree/select-department-tree.module.js +15 -5
  17. package/esm2015/lib/components/select-department-tree/service/select-department-tree-global.service.js +1 -1
  18. package/esm2015/lib/components/select-one/select-one-next.component.js +1 -1
  19. package/esm2015/lib/components/tree/basic-tree.component.js +1 -1
  20. package/esm2015/lib/model/en.js +5 -2
  21. package/esm2015/lib/model/no.js +4 -1
  22. package/fesm2015/qms-angular.js +494 -153
  23. package/fesm2015/qms-angular.js.map +1 -1
  24. package/lib/components/select-access-dialog/select-access-dialog.component.d.ts +8 -0
  25. package/lib/components/select-department/model/select-department-popup-data.model.d.ts +2 -0
  26. package/lib/components/select-department/select-department.component.d.ts +14 -8
  27. package/lib/components/select-department-tree/animation/animation.d.ts +1 -0
  28. package/lib/components/select-department-tree/model/department-search-result.model.d.ts +11 -0
  29. package/lib/components/select-department-tree/public-api.d.ts +2 -0
  30. package/lib/components/select-department-tree/select-department-tree.component.d.ts +50 -17
  31. package/lib/model/en.d.ts +3 -0
  32. package/lib/model/no.d.ts +3 -0
  33. package/package.json +1 -1
  34. package/qms-angular.metadata.json +1 -1
  35. package/src/lib/components/breadcrumb/breadcrumb.scss +3 -3
  36. package/src/lib/components/qms-paginator/qms-paginator.component.scss +4 -0
  37. package/src/lib/components/select-access-dialog/select-access-dialog.component.scss +69 -2
  38. package/src/lib/components/select-department/select-department.component.scss +1 -9
  39. package/src/lib/components/select-department-tree/select-department-tree.component.scss +166 -2
  40. package/src/themes/_qms-icon-font.scss +1 -1
  41. package/src/themes/core/_table-pure-gap.scss +0 -1
@@ -19,8 +19,8 @@
19
19
  width: 18px;
20
20
  height: 18px;
21
21
  font-size: 18px;
22
- margin-left: 0.5rem;
23
- margin-right: 0.5rem;
22
+ margin-left: 0.25rem;
23
+ margin-right: 0.25rem;
24
24
  }
25
25
  }
26
26
 
@@ -29,7 +29,7 @@
29
29
  }
30
30
  .qms-breadcrumb-item {
31
31
  cursor: inherit;
32
- margin: 8px 8px 8px 0;
32
+ margin: 8px 0px 8px 0px;
33
33
 
34
34
  .qms-btn-icon {
35
35
  width: 1.5rem;
@@ -1,3 +1,7 @@
1
+ ::ng-deep .customCDKpanel {
2
+ transform:none !important;
3
+ }
4
+
1
5
  ::ng-deep .qms-paginator {
2
6
  display: block;
3
7
  .qms-paginator-outer-container {
@@ -122,12 +122,12 @@
122
122
  }
123
123
 
124
124
  .result-selected-container {
125
- max-height: 185px;
125
+ max-height: 175px;
126
126
  overflow-y: auto;
127
127
  }
128
128
 
129
129
  .item-list-wrapper {
130
- max-height: 25vh;
130
+ max-height: 28vh;
131
131
  padding-right: 4px;
132
132
  overflow-y: auto;
133
133
  .item{
@@ -202,4 +202,71 @@
202
202
  background: black(.3);
203
203
  }
204
204
  }
205
+
206
+ .qms-paginator{
207
+ .mat-icon{
208
+ display: flex;
209
+ align-items: center;
210
+ justify-content: center;
211
+ }
212
+ .mat-form-field-wrapper{
213
+ padding-bottom: 0;
214
+ }
215
+ .mat-paginator-container{
216
+ min-height: 40px;
217
+ }
218
+ .mat-paginator-container .qms-total-result{
219
+ margin-bottom: 2px;
220
+ margin-right: 12px;
221
+ height: 30px;
222
+ span{
223
+ font-weight: 600;
224
+ font-size: 13px;
225
+ color: black(0.8);
226
+ }
227
+ }
228
+ .mat-paginator-container .qms-paginator-range-actions{
229
+ margin-bottom: 0;
230
+ column-gap: 2px;
231
+ & > .qms-total-result{
232
+ margin-bottom: 0;
233
+ }
234
+ &> .qms-btn-icon{
235
+ width: 30px;
236
+ height: 30px;
237
+ line-height: 30px;
238
+ }
239
+ }
240
+
241
+ &> .qms-btn-icon-wrapper{
242
+ width: 30px;
243
+ height: 30px;
244
+ display: flex;
245
+ justify-content: center;
246
+ align-items: center;
247
+ }
248
+
249
+ .qms-paginator-page-size{
250
+ margin-right: 12px;
251
+ & > .qms-pagesize-label{
252
+ display: none;
253
+ }
254
+ &> .qms-form-page-size .mat-form-field-flex{
255
+ width: 60px !important;
256
+ height: 30px;
257
+ display: flex;
258
+ align-items: center;
259
+ padding: 0 4px;
260
+ .mat-form-field-infix{
261
+ height: 30px;
262
+ }
263
+ }
264
+ }
265
+ .mat-form-field.qms-form .mat-select-min-line, .mat-form-field.qms-form mat-select-trigger{
266
+ font-size: 14px;
267
+ }
268
+ .mat-select-value{
269
+ text-align: center;
270
+ }
271
+ }
205
272
  }
@@ -4,11 +4,7 @@
4
4
  @import "../../../themes/qms-icon-font";
5
5
 
6
6
 
7
-
8
-
9
-
10
7
  .qms-select-department {
11
-
12
8
  .cursor-pointer {
13
9
  cursor: pointer;
14
10
  }
@@ -145,7 +141,7 @@
145
141
  white-space: nowrap;
146
142
  overflow: hidden;
147
143
  text-overflow: ellipsis;
148
- max-width: 320px;
144
+ max-width: 220px;
149
145
 
150
146
  .select__include-children__count {
151
147
  font-size: 0.75rem;
@@ -166,8 +162,6 @@
166
162
  width: 100%;
167
163
  }
168
164
 
169
-
170
-
171
165
  ::ng-deep .mat-checkbox.qms-group-options.flex-direction-row {
172
166
  .mat-checkbox-layout {
173
167
  white-space: normal;
@@ -188,6 +182,4 @@
188
182
  align-items: center;
189
183
  }
190
184
  }
191
-
192
-
193
185
  }
@@ -69,12 +69,16 @@
69
69
 
70
70
  .tree-department-wrapper {
71
71
  height: 375px;
72
+ padding-right: 4px;
72
73
  overflow-y: auto;
74
+ overflow-x: hidden;
75
+ position: relative;
73
76
  }
74
77
 
75
78
  // Tree
76
79
  .mat-tree.select-department-tree {
77
80
  .mat-tree-node {
81
+ border-radius: 4px;
78
82
  &:hover {
79
83
  background: black(0.08);
80
84
  }
@@ -246,8 +250,8 @@
246
250
  cursor: pointer;
247
251
  }
248
252
 
249
- .ml-5 {
250
- margin-left: 10px;
253
+ .ml5 {
254
+ margin-left: 10px !important;
251
255
  }
252
256
 
253
257
  ::ng-deep .mat-checkbox.qms-group-options.flex-direction-row {
@@ -262,4 +266,164 @@
262
266
  padding-bottom: 2px;
263
267
  }
264
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
+ }
265
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
  }