qms-angular 1.1.40 → 1.1.41
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.
- package/bundles/qms-angular.umd.js +162 -58
- package/bundles/qms-angular.umd.js.map +1 -1
- package/esm2015/lib/common/models/qms-flat-node.model.js +1 -1
- package/esm2015/lib/common/models/qms-tree-node.model.js +1 -1
- package/esm2015/lib/components/select-access-dialog/model/select-access-config.model.js +5 -1
- package/esm2015/lib/components/select-access-dialog/select-access-dialog.component.js +56 -11
- package/esm2015/lib/components/select-department/model/select-department-popup-data.model.js +2 -1
- package/esm2015/lib/components/select-department/select-department.component.js +3 -3
- package/esm2015/lib/components/select-department-tree/select-department-tree.component.js +82 -41
- package/esm2015/lib/components/select-department-tree/service/select-department-tree-global.service.js +7 -1
- package/esm2015/lib/components/treeNew/tree.component.js +1 -3
- package/esm2015/lib/qms-ckeditor-components/qms-ckeditor.component.js +2 -2
- package/fesm2015/qms-angular.js +149 -54
- package/fesm2015/qms-angular.js.map +1 -1
- package/lib/common/models/qms-flat-node.model.d.ts +4 -0
- package/lib/common/models/qms-tree-node.model.d.ts +8 -0
- package/lib/components/select-access-dialog/model/select-access-config.model.d.ts +4 -0
- package/lib/components/select-access-dialog/select-access-dialog.component.d.ts +2 -0
- package/lib/components/select-department/model/select-department-popup-data.model.d.ts +1 -0
- package/lib/components/select-department-tree/select-department-tree.component.d.ts +4 -0
- package/package.json +1 -1
- package/src/lib/components/select-department/select-department.component.scss +1 -0
- package/src/lib/components/select-department-tree/select-department-tree.component.scss +23 -0
@@ -19,6 +19,10 @@ export interface QMSTreeNode {
|
|
19
19
|
selectedChildCount?: number;
|
20
20
|
markedGetChildCountRecurrsive?: boolean;
|
21
21
|
isIncludeChildWhenChecked?: boolean;
|
22
|
+
expandIcon?: {
|
23
|
+
expand?: string;
|
24
|
+
collapse?: string;
|
25
|
+
};
|
22
26
|
}
|
23
27
|
export declare class QMSTreeModel implements QMSTreeNode {
|
24
28
|
id: string;
|
@@ -35,5 +39,9 @@ export declare class QMSTreeModel implements QMSTreeNode {
|
|
35
39
|
tooltip?: string | undefined;
|
36
40
|
isGroup?: boolean;
|
37
41
|
groupId?: string;
|
42
|
+
expandIcon?: {
|
43
|
+
expand?: string;
|
44
|
+
collapse?: string;
|
45
|
+
};
|
38
46
|
constructor(id: string, parentId: string, name: string);
|
39
47
|
}
|
@@ -12,5 +12,9 @@ export declare class QMSSelectAccessDialog {
|
|
12
12
|
data: QMSSelectAccessData;
|
13
13
|
sizeUpdateDefault: string;
|
14
14
|
treeDepartmentConfig: QMSSelectDepartmentTreeConfig;
|
15
|
+
disableSelectedList: boolean;
|
16
|
+
formatTooltip?(item: any): string;
|
17
|
+
formatMsgDisable?(item: any): string;
|
18
|
+
maxWidthNode?: number;
|
15
19
|
constructor();
|
16
20
|
}
|
@@ -81,6 +81,7 @@ export declare class QMSSelectAccessDialogComponent implements OnInit, OnDestroy
|
|
81
81
|
onSelectionTypeChange(event: MatSelectChange): void;
|
82
82
|
setFormControlValue(formControlNames: string[], values: any): void;
|
83
83
|
isCheckAll(type: OptionSelectAccessEnum): boolean;
|
84
|
+
isDisabledSelectAll(type: OptionSelectAccessEnum): boolean;
|
84
85
|
isIndeterminate(type: OptionSelectAccessEnum): boolean;
|
85
86
|
onCheckAll(type: OptionSelectAccessEnum, $event: any): void;
|
86
87
|
onSelectionNodeDepartmentChange({ added, removed, updated }: ISelectionNodeChange<QMSTreeNode>): void;
|
@@ -97,4 +98,5 @@ export declare class QMSSelectAccessDialogComponent implements OnInit, OnDestroy
|
|
97
98
|
updateDepartment(data?: QMSTreeNode[]): void;
|
98
99
|
updateOptionPersonFilter(departmentFilter?: QMSFlatNodeTree[], userGroupFilter?: QMSAccessItem[]): void;
|
99
100
|
setDefaultPageSizeOption(data: number[]): void;
|
101
|
+
allowRemove: (type: OptionSelectAccessEnum, item: any) => boolean;
|
100
102
|
}
|
@@ -37,6 +37,7 @@ export declare class SelectDepartmentTreeComponent implements OnInit, AfterViewI
|
|
37
37
|
set rowsSkeleton(value: number);
|
38
38
|
height: string;
|
39
39
|
config: QMSSelectDepartmentTreeConfig;
|
40
|
+
maxWidthNode: number;
|
40
41
|
isIncludeChildren: boolean;
|
41
42
|
get departmentRoots(): QMSFlatNodeTree[];
|
42
43
|
get isAllDepartmentSelected(): boolean;
|
@@ -97,6 +98,7 @@ export declare class SelectDepartmentTreeComponent implements OnInit, AfterViewI
|
|
97
98
|
private readonly isExpandable;
|
98
99
|
hasChild: (_: number, node: QMSFlatNodeTree) => boolean;
|
99
100
|
private readonly _handlingLazyObject;
|
101
|
+
private lockHandleSelectionChange;
|
100
102
|
constructor(cdRef: ChangeDetectorRef, domSanitizer: DomSanitizer, appIconService: QMSIconRegistryService, iconRegistry: MatIconRegistry, eleRef: ElementRef, trans: TranslateLibraryService, overlay: Overlay, viewContainerRef: ViewContainerRef, treeDepartmentService: QMSSelectDepartmentTreeGlobalService);
|
101
103
|
ngAfterContentInit(): void;
|
102
104
|
ngAfterViewInit(): void;
|
@@ -198,4 +200,6 @@ export declare class SelectDepartmentTreeComponent implements OnInit, AfterViewI
|
|
198
200
|
updateNodeInformation(node: QMSFlatNodeTree): void;
|
199
201
|
updateSelectedResultData(node: QMSFlatNodeTree): void;
|
200
202
|
callCheckNodeOutside(node: QMSFlatNodeTree): void;
|
203
|
+
private execWithoutEmitNodeChangeEvent;
|
204
|
+
isDisabledNode: (nodeId: string) => boolean;
|
201
205
|
}
|
package/package.json
CHANGED
@@ -4,6 +4,7 @@
|
|
4
4
|
@import "../../../themes/qms-icon-font";
|
5
5
|
|
6
6
|
.qms-select-department-tree-container {
|
7
|
+
font-family: 'Open Sans', sans-serif;
|
7
8
|
.mr10 {
|
8
9
|
margin-right: 10px;
|
9
10
|
}
|
@@ -35,6 +36,18 @@
|
|
35
36
|
margin-top: 20px;
|
36
37
|
}
|
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
|
+
|
38
51
|
.text-selected {
|
39
52
|
color: black(0.6);
|
40
53
|
font-size: 12px;
|
@@ -234,6 +247,10 @@
|
|
234
247
|
&:active {
|
235
248
|
background: theme-apply($primary-light-12-opacity);
|
236
249
|
}
|
250
|
+
|
251
|
+
.mat-icon{
|
252
|
+
color: theme-apply($primary);
|
253
|
+
}
|
237
254
|
}
|
238
255
|
.node-without-checkbox{
|
239
256
|
cursor: pointer;
|
@@ -303,6 +320,12 @@
|
|
303
320
|
white-space: normal;
|
304
321
|
}
|
305
322
|
|
323
|
+
.node-text{
|
324
|
+
&> span{
|
325
|
+
display: block;
|
326
|
+
}
|
327
|
+
}
|
328
|
+
|
306
329
|
.mat-checkbox-label {
|
307
330
|
flex-direction: row;
|
308
331
|
align-items: center;
|