qms-angular 1.1.25 → 1.1.26

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.
@@ -16,6 +16,7 @@ export declare class QMSSelectDepartmentTreeConfig {
16
16
  headerName: {
17
17
  treeName: string;
18
18
  externalName: string;
19
+ resultSearchName: string;
19
20
  };
20
21
  activeSelectAllNode: boolean;
21
22
  modeView: ModeDepartmentTreeeViewEnum;
@@ -32,7 +32,7 @@ export declare class SelectDepartmentTreeComponent implements OnInit, AfterViewI
32
32
  overlay: Overlay;
33
33
  viewContainerRef: ViewContainerRef;
34
34
  LANG: any;
35
- spinnerArr: any[];
35
+ readonly spinnerArr: any[];
36
36
  arrSkeleton: any[];
37
37
  set rowsSkeleton(value: number);
38
38
  height: string;
@@ -50,41 +50,41 @@ export declare class SelectDepartmentTreeComponent implements OnInit, AfterViewI
50
50
  onLoadMoreEvent: EventEmitter<void>;
51
51
  cdkVirtualScrollViewport: CdkVirtualScrollViewport;
52
52
  paginatorSearch: QMSPaginatorComponent;
53
- MODE_VIEW_ENUM: typeof ModeDepartmentTreeeViewEnum;
53
+ readonly MODE_VIEW_ENUM: typeof ModeDepartmentTreeeViewEnum;
54
54
  ITEM_SIZE: number;
55
- ngUnsubscribe: Subject<void>;
55
+ readonly ngUnsubscribe: Subject<void>;
56
56
  resultSearchSelected: QMSTreeNode[];
57
57
  resultSelected: QMSTreeNode[];
58
- getDataTree$: BehaviorSubject<QMSTreeNode[]>;
59
- searchDepartment$: BehaviorSubject<QMSDepartmentPagingModel<QMSFlatNodeTree>>;
58
+ readonly getDataTree$: BehaviorSubject<QMSTreeNode[]>;
59
+ readonly searchDepartment$: BehaviorSubject<QMSDepartmentPagingModel<QMSFlatNodeTree>>;
60
60
  resultSearch: DepartmentSearchResultModel[];
61
61
  get currentTreeData(): QMSTreeNode[];
62
62
  get isSelectAllResultSearch(): boolean;
63
63
  get indeterminateSearchResult(): boolean;
64
64
  indexView: number;
65
- scrollToNodeEvent$: Subject<string>;
65
+ readonly scrollToNodeEvent$: Subject<string>;
66
+ readonly getActiveNodeEvent$: Subject<string>;
66
67
  activeNode: string;
67
- getActiveNodeEvent$: Subject<string>;
68
- PAGINATION_SIZE: typeof PaginationSize;
68
+ readonly PAGINATION_SIZE: typeof PaginationSize;
69
69
  PAGE_SIZE_OPTION: number[];
70
- nestedTreeNodeMap: Map<QMSTreeNode, QMSFlatNodeTree>;
71
- flatTreeNodeMap: Map<QMSFlatNodeTree, QMSTreeNode>;
72
- checkListSelection: SelectionModel<QMSFlatNodeTree>;
73
- checkListSelectionSearch: SelectionModel<DepartmentSearchResultModel>;
70
+ readonly nestedTreeNodeMap: Map<QMSTreeNode, QMSFlatNodeTree>;
71
+ readonly flatTreeNodeMap: Map<QMSFlatNodeTree, QMSTreeNode>;
72
+ readonly checkListSelection: SelectionModel<QMSFlatNodeTree>;
73
+ readonly checkListSelectionSearch: SelectionModel<DepartmentSearchResultModel>;
74
74
  treeControl: FlatTreeControl<QMSFlatNodeTree>;
75
75
  treeFlattener: MatTreeFlattener<QMSTreeNode, QMSFlatNodeTree>;
76
76
  dataSource: MatTreeFlatDataSource<QMSTreeNode, QMSFlatNodeTree>;
77
77
  dataSourceTreeSearch: MatTreeFlatDataSource<QMSTreeNode, QMSFlatNodeTree>;
78
78
  formSearchControl: FormControl;
79
- getLoading$: BehaviorSubject<boolean>;
80
- getLoadingMore$: BehaviorSubject<boolean>;
81
- afterOnCheckNode: Subject<QMSFlatNodeTree>;
79
+ readonly getLoading$: BehaviorSubject<boolean>;
80
+ readonly getLoadingMore$: BehaviorSubject<boolean>;
81
+ readonly afterOnCheckNode: Subject<QMSFlatNodeTree>;
82
82
  textResultSearch: string;
83
83
  itemIconType: typeof ItemIconType;
84
- _transformer: (node: QMSTreeNode, level: number) => QMSFlatNodeTree;
85
- private getLevel;
86
- private _getChild;
87
- private isExpandable;
84
+ private readonly _transformer;
85
+ private readonly getLevel;
86
+ private readonly _getChild;
87
+ private readonly isExpandable;
88
88
  hasChild: (_: number, node: QMSFlatNodeTree) => boolean;
89
89
  constructor(cdRef: ChangeDetectorRef, domSanitizer: DomSanitizer, appIconService: QMSIconRegistryService, iconRegistry: MatIconRegistry, eleRef: ElementRef, trans: TranslateLibraryService, treeDepartmentGlobalService: QMSSelectDepartmentTreeGlobalService, overlay: Overlay, viewContainerRef: ViewContainerRef);
90
90
  ngAfterContentInit(): void;
@@ -143,6 +143,7 @@ export declare class SelectDepartmentTreeComponent implements OnInit, AfterViewI
143
143
  getHeightStyleRefNode(nodeId: string): string;
144
144
  private getSelectedNodeStorage;
145
145
  private setSelectedNodeStorage;
146
+ setDefaultPaginatorSize(options: number[]): void;
146
147
  trackBy(index: number, item: QMSFlatNodeTree): QMSFlatNodeTree;
147
148
  /**
148
149
  * This function use for lazy load children of node
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "qms-angular",
3
- "version": "1.1.25",
3
+ "version": "1.1.26",
4
4
  "dependencies": {
5
5
  "tslib": "^2.0.0"
6
6
  },
@@ -104,6 +104,9 @@
104
104
  grid-template-columns: 1fr 200px;
105
105
  column-gap: 2px;
106
106
  padding: 4px 12px 4px 0;
107
+ .header-view:nth-child(1){
108
+ padding-left: 12px;
109
+ }
107
110
  }
108
111
 
109
112
  .tree-department-wrapper {
@@ -328,7 +331,10 @@
328
331
  }
329
332
 
330
333
  .ml5 {
331
- margin-left: 10px !important;
334
+ margin-left: 15px !important;
335
+ }
336
+ .pl-10{
337
+ padding-left: 10px;
332
338
  }
333
339
 
334
340
  ::ng-deep .mat-checkbox.qms-group-options.flex-direction-row {
@@ -347,48 +353,88 @@
347
353
  .qms-view-search-result{
348
354
  width: 100%;
349
355
  overflow: hidden;
350
- .result {
351
- max-height: calc(100% - 44px);
352
- overflow-y: auto;
353
- margin-bottom: 4px;
354
- padding-right: 4px;
355
- &.active-paging{
356
- max-height: calc(100% - 95px);
357
- }
358
- &.no-result{
359
- height: 100%;
360
- display: flex;
361
- justify-content: center;
362
- align-items: center;
356
+ &__header{
357
+ position: relative;
358
+ &::after{
359
+ position: absolute;
360
+ content: "";
361
+ bottom: 0;
362
+ left: 0;
363
+ width: 100%;
364
+ height: 1px;
365
+ background-color: black(.1);
363
366
  }
364
- &.no-result{
365
- height: 100%;
366
- display: flex;
367
- justify-content: center;
368
- align-items: center;
367
+ .header-title{
368
+ padding: 8px 0;
369
+ display: inline-block;
370
+ &:nth-child(1){
371
+ padding-left: 12px;
372
+ }
373
+ &:nth-child(2){
374
+ flex-basis: 200px;
375
+ }
369
376
  }
370
377
  }
371
- .result-item{
372
- border-radius: 4px;
373
- display: grid;
374
- grid-template-columns: 45px 1fr;
375
- align-items: center;
376
- cursor: pointer;
377
- transition: background .3s ease;
378
- &:not(:nth-child(1)){
379
- margin-top: 4px !important;
380
- }
381
- &:hover{
382
- background: linear-gradient(0deg, rgba(1, 99, 178, 0.12), rgba(1, 99, 178, 0.12)), #FFFFFF;
378
+ &__wrapper{
379
+ height: calc(100% - 50px);
380
+ &.active-external{
381
+ height: calc(100% - 90px) !important;
383
382
  }
384
- &.active{
385
- background: linear-gradient(0deg, rgba(1, 99, 178, 0.12), rgba(1, 99, 178, 0.12)), #FFFFFF;
383
+ width: 100%;
384
+ .result {
385
+ max-height: calc(100% - 44px);
386
+ overflow-y: auto;
387
+ margin-bottom: 4px;
388
+ padding-right: 4px;
389
+ &.active-paging{
390
+ max-height: calc(100% - 40px);
391
+ }
392
+ &.no-result{
393
+ height: 100%;
394
+ display: flex;
395
+ justify-content: center;
396
+ align-items: center;
397
+ }
398
+ &.no-result{
399
+ height: 100%;
400
+ display: flex;
401
+ justify-content: center;
402
+ align-items: center;
403
+ }
386
404
  }
387
- .item-result-content-wraper{
388
- padding: 5px 15px 5px 15px;
405
+ .result-item{
406
+ border-radius: 4px;
407
+ display: grid;
408
+ grid-template-columns: 45px 1fr;
409
+ align-items: center;
410
+ cursor: pointer;
411
+ transition: background .3s ease;
412
+ &:not(:nth-child(1)){
413
+ margin-top: 4px !important;
414
+ }
415
+ &:hover{
416
+ background: linear-gradient(0deg, rgba(1, 99, 178, 0.12), rgba(1, 99, 178, 0.12)), #FFFFFF;
417
+ }
418
+ &.active{
419
+ background: linear-gradient(0deg, rgba(1, 99, 178, 0.12), rgba(1, 99, 178, 0.12)), #FFFFFF;
420
+ }
421
+ &__content{
422
+ display: flex;
423
+ align-items: center;
424
+ .item-result-content-wraper{
425
+ padding: 5px 15px 5px 15px;
426
+ width: 100%;
427
+ }
428
+ .external-name{
429
+ flex-basis: 200px;
430
+ span{
431
+ width: 200px;
432
+ display: inline-block;
433
+ }
434
+ }
435
+ }
389
436
  }
390
437
  }
391
-
392
438
  ::ng-deep .mat-checkbox.qms-group-options{
393
439
  display: flex;
394
440
  height: 100%;
@@ -467,6 +513,7 @@
467
513
  color: rgba(0, 0, 0, 0.6);
468
514
  font-weight: 400;
469
515
  font-size: 14px;
516
+ max-width: 250px;
470
517
  }
471
518
 
472
519
  ::ng-deep .mat-checkbox.checkbox-all .mat-checkbox-label{
@@ -677,6 +724,35 @@
677
724
  line-height: 30px;
678
725
  }
679
726
  }
727
+ .fs-base{
728
+ font-size: 12px !important;
729
+ }
730
+ .qms-select-department-tree-container .breadcrumb-container{
731
+ flex-wrap: nowrap !important;
732
+ }
733
+ ::ng-deep .qms-breadcrumb-item-text{
734
+ font-size: 12px !important;
735
+ max-width: 175px !important;
736
+ }
737
+
738
+ ::ng-deep .qms-paginator .mat-paginator-container .qms-total-result{
739
+ display: none !important;
740
+ }
741
+
742
+ ::ng-deep .qms-paginator .size-small .mat-paginator-container{
743
+ justify-content: center !important;
744
+ }
745
+
746
+ .qms-view-search-result__header > .header-title:nth-child(2){
747
+ flex-basis: 120px !important;
748
+ }
749
+
750
+ .result-item__content .external-name{
751
+ flex-basis: 75px !important;
752
+ span{
753
+ width: 75px !important;
754
+ }
755
+ }
680
756
  }
681
757
  }
682
758