@ebuilding/dialog 2.1.13 → 2.1.14

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.
@@ -0,0 +1,192 @@
1
+ import * as i0 from '@angular/core';
2
+ import { EventEmitter, Output, Input, Component, NgModule } from '@angular/core';
3
+ import * as i1 from '@angular/common';
4
+ import { CommonModule } from '@angular/common';
5
+ import { FormsModule, ReactiveFormsModule } from '@angular/forms';
6
+ import { NzAvatarModule } from 'ng-zorro-antd/avatar';
7
+ import { NzModalModule } from 'ng-zorro-antd/modal';
8
+ import * as i3$1 from '@ebuilding/dialog/common/list-tree';
9
+ import { TreeContentModule } from '@ebuilding/dialog/common/list-tree';
10
+ import * as i4$1 from '@ebuilding/dialog/list';
11
+ import { DialogListModule } from '@ebuilding/dialog/list';
12
+ import { ModuleAPI } from '@ebuilding/base/shared.var/shared.constant';
13
+ import * as i2 from 'ng-zorro-antd/tag';
14
+ import { NzTagModule } from 'ng-zorro-antd/tag';
15
+ import * as i3 from 'ng-zorro-antd/button';
16
+ import { NzButtonModule } from 'ng-zorro-antd/button';
17
+ import * as _ from 'lodash';
18
+ import ___default from 'lodash';
19
+ import * as i4 from 'ng-zorro-antd/core/transition-patch';
20
+ import * as i5 from 'ng-zorro-antd/core/wave';
21
+ import * as i1$1 from '@delon/theme';
22
+
23
+ class ListTagComponent {
24
+ _selectData = [];
25
+ listData = [];
26
+ set selectData(value) {
27
+ this._selectData = value;
28
+ this.listData = _.cloneDeep(value);
29
+ }
30
+ get selectData() {
31
+ return this._selectData;
32
+ }
33
+ tagRemove = new EventEmitter();
34
+ constructor() { }
35
+ ngOnInit() { }
36
+ ngOnChanges(changes) { }
37
+ onClose(e) {
38
+ this.listData = this.listData.filter((item, index) => {
39
+ return index !== e;
40
+ });
41
+ this.tagRemove.emit(this.listData);
42
+ }
43
+ onCloseAll() {
44
+ this.listData = [];
45
+ this.tagRemove.emit(this.listData);
46
+ }
47
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: ListTagComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
48
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.15", type: ListTagComponent, isStandalone: true, selector: "list-tag", inputs: { selectData: "selectData" }, outputs: { tagRemove: "tagRemove" }, usesOnChanges: true, ngImport: i0, template: "<div class=\"list-select\">\r\n <div class=\"tag-header\">\r\n <label>\u5DF2\u9009<span>({{ listData.length }})</span></label>\r\n <button nz-button nzType=\"default\" nzSize=\"small\" (click)=\"onCloseAll()\">\u6E05\u7A7A</button>\r\n </div>\r\n <div class=\"tag-content\">\r\n <ng-container *ngFor=\"let item of listData;let i=index\">\r\n <nz-tag nzMode=\"closeable\" (nzOnClose)=\"onClose(i)\">{{item?.name}}</nz-tag>\r\n </ng-container>\r\n </div>\r\n</div>", styles: [":host ::ng-deep .list-select{display:inline-block;width:100%;height:90px;margin:10px 0 0;border:1px solid #eaeaea;border-radius:4px}:host ::ng-deep .list-select .tag-header{padding:5px 8px 8px;border-bottom:1px solid #eaeaea}:host ::ng-deep .list-select .tag-header button{float:right}:host ::ng-deep .list-select .tag-content{height:45px;padding:8px 8px 0;overflow-x:overlay;overflow-y:overlay}:host ::ng-deep .list-select .tag-content::-webkit-scrollbar{width:8px}:host ::ng-deep .list-select .tag-content::-webkit-scrollbar-thumb{background-color:#94949475;border-radius:7px}:host ::ng-deep .list-select .tag-content::-webkit-scrollbar-track{background-color:#fff}:host ::ng-deep .list-select .ant-tag{margin-bottom:8px;border:1px solid #eaeaea}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "ngmodule", type: NzTagModule }, { kind: "component", type: i2.NzTagComponent, selector: "nz-tag", inputs: ["nzMode", "nzColor", "nzChecked", "nzBordered"], outputs: ["nzOnClose", "nzCheckedChange"], exportAs: ["nzTag"] }, { kind: "ngmodule", type: NzButtonModule }, { kind: "component", type: i3.NzButtonComponent, selector: "button[nz-button], a[nz-button]", inputs: ["nzBlock", "nzGhost", "nzSearch", "nzLoading", "nzDanger", "disabled", "tabIndex", "nzType", "nzShape", "nzSize"], exportAs: ["nzButton"] }, { kind: "directive", type: i4.ɵNzTransitionPatchDirective, selector: "[nz-button], nz-button-group, [nz-icon], nz-icon, [nz-menu-item], [nz-submenu], nz-select-top-control, nz-select-placeholder, nz-input-group", inputs: ["hidden"] }, { kind: "directive", type: i5.NzWaveDirective, selector: "[nz-wave],button[nz-button]:not([nzType=\"link\"]):not([nzType=\"text\"])", inputs: ["nzWaveExtraNode"], exportAs: ["nzWave"] }] });
49
+ }
50
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: ListTagComponent, decorators: [{
51
+ type: Component,
52
+ args: [{ selector: 'list-tag', imports: [
53
+ CommonModule,
54
+ NzTagModule,
55
+ NzButtonModule
56
+ ], template: "<div class=\"list-select\">\r\n <div class=\"tag-header\">\r\n <label>\u5DF2\u9009<span>({{ listData.length }})</span></label>\r\n <button nz-button nzType=\"default\" nzSize=\"small\" (click)=\"onCloseAll()\">\u6E05\u7A7A</button>\r\n </div>\r\n <div class=\"tag-content\">\r\n <ng-container *ngFor=\"let item of listData;let i=index\">\r\n <nz-tag nzMode=\"closeable\" (nzOnClose)=\"onClose(i)\">{{item?.name}}</nz-tag>\r\n </ng-container>\r\n </div>\r\n</div>", styles: [":host ::ng-deep .list-select{display:inline-block;width:100%;height:90px;margin:10px 0 0;border:1px solid #eaeaea;border-radius:4px}:host ::ng-deep .list-select .tag-header{padding:5px 8px 8px;border-bottom:1px solid #eaeaea}:host ::ng-deep .list-select .tag-header button{float:right}:host ::ng-deep .list-select .tag-content{height:45px;padding:8px 8px 0;overflow-x:overlay;overflow-y:overlay}:host ::ng-deep .list-select .tag-content::-webkit-scrollbar{width:8px}:host ::ng-deep .list-select .tag-content::-webkit-scrollbar-thumb{background-color:#94949475;border-radius:7px}:host ::ng-deep .list-select .tag-content::-webkit-scrollbar-track{background-color:#fff}:host ::ng-deep .list-select .ant-tag{margin-bottom:8px;border:1px solid #eaeaea}\n"] }]
57
+ }], ctorParameters: () => [], propDecorators: { selectData: [{
58
+ type: Input
59
+ }], tagRemove: [{
60
+ type: Output
61
+ }] } });
62
+
63
+ class GramSystemEmpComponent {
64
+ http;
65
+ changeDetector;
66
+ _pageConfig = null;
67
+ set pageConfig(value) {
68
+ this._pageConfig = value;
69
+ this.initPageData();
70
+ }
71
+ get pageConfig() {
72
+ return this._pageConfig;
73
+ }
74
+ treeConfig = null;
75
+ listConfig = null;
76
+ tagPara = null;
77
+ listSelectData = [];
78
+ pageTreeId = "1661698411971825665";
79
+ pageListId = "2001595947509002242";
80
+ constructor(http, changeDetector) {
81
+ this.http = http;
82
+ this.changeDetector = changeDetector;
83
+ }
84
+ ngOnInit() { }
85
+ ngOnChanges(changes) {
86
+ }
87
+ ngOnDestroy() {
88
+ }
89
+ getPageSelectData() {
90
+ return this.listSelectData;
91
+ }
92
+ initPageData() {
93
+ this.initPageTree();
94
+ this.initPageList(null);
95
+ }
96
+ initPageTree() {
97
+ this.treeConfig = {
98
+ selectTag: false,
99
+ selectType: "single",
100
+ selectData: [],
101
+ listAPI: {
102
+ url: `${ModuleAPI.user}/user/page/tree/searchByField`,
103
+ param: { id: this.pageTreeId },
104
+ },
105
+ treeAPI: {
106
+ url: `${ModuleAPI.user}/user/page/tree/${this.pageTreeId}`,
107
+ param: null,
108
+ },
109
+ };
110
+ }
111
+ initPageList(orgId) {
112
+ let selectType = "single";
113
+ let selectData = [];
114
+ let parameter = {};
115
+ if (this.pageConfig) {
116
+ if (this.pageConfig?.selectType) {
117
+ selectType = this.pageConfig.selectType;
118
+ }
119
+ if (selectType != "single" && this.pageConfig?.selectData && Array.isArray(this.pageConfig?.selectData)) {
120
+ selectData = this.pageConfig.selectData;
121
+ }
122
+ }
123
+ if (orgId) {
124
+ parameter = {
125
+ "p_employee.org_id": orgId
126
+ };
127
+ }
128
+ this.listConfig = {
129
+ pageId: this.pageListId,
130
+ selectData: selectData,
131
+ argInfo: {},
132
+ parameter: parameter,
133
+ selectType: selectType
134
+ };
135
+ }
136
+ treeChange(e) {
137
+ let treeDataId = null;
138
+ if (e && Array.isArray(e) && e.length > 0) {
139
+ treeDataId = e[0]?.id;
140
+ }
141
+ this.initPageList(treeDataId);
142
+ }
143
+ listSelected(e) {
144
+ this.listSelectData = ___default.cloneDeep(e);
145
+ }
146
+ tagChange(e) {
147
+ if (e && Array.isArray(e)) {
148
+ this.listSelectData = e;
149
+ }
150
+ else {
151
+ this.listSelectData = [];
152
+ }
153
+ if (this.pageConfig?.selectType == 'multiple') {
154
+ this.tagPara = {
155
+ rd: Math.random(),
156
+ selectData: this.listSelectData
157
+ };
158
+ }
159
+ else {
160
+ this.listSelectData = [];
161
+ }
162
+ }
163
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: GramSystemEmpComponent, deps: [{ token: i1$1._HttpClient }, { token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Component });
164
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.15", type: GramSystemEmpComponent, isStandalone: true, selector: "sys_emp", inputs: { pageConfig: "pageConfig" }, usesOnChanges: true, ngImport: i0, template: "<div class=\"org-tree\">\r\n <ng-container *ngIf=\"treeConfig\">\r\n <tree-content [config]=\"treeConfig\" (itemSelected)=\"treeChange($event)\"></tree-content>\r\n </ng-container>\r\n\r\n</div>\r\n<div class=\"emp-list\">\r\n <div class=\"emp-list-data\">\r\n <ng-container *ngIf=\"listConfig\">\r\n <page-dialog-list [config]=\"listConfig\" [tagData]=\"tagPara\"\r\n (itemSelected)=\"listSelected($event)\"></page-dialog-list>\r\n </ng-container>\r\n </div>\r\n\r\n <div class=\"emp-list-tag\">\r\n <list-tag [selectData]=\"listSelectData\" (tagRemove)=\"tagChange($event)\"></list-tag>\r\n </div>\r\n</div>", styles: [":host ::ng-deep{display:flex;flex-direction:row;overflow:auto;width:100%;height:100%}:host ::ng-deep .org-tree{width:200px;display:flex;overflow:auto;padding:12px;border-right:1px solid #eaeaea}:host ::ng-deep .org-tree .query-content nz-input-group{width:100%}:host ::ng-deep .emp-list{display:flex;flex-direction:column;flex:1}:host ::ng-deep .emp-list .emp-list-data{display:flex;flex:1;overflow:auto;padding:6px 12px 0}:host ::ng-deep .emp-list .emp-list-tag{padding:0 12px 10px}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "ngmodule", type: TreeContentModule }, { kind: "component", type: i3$1.TreeContentComponent, selector: "tree-content", inputs: ["config", "tagData"], outputs: ["itemSelected"] }, { kind: "ngmodule", type: DialogListModule }, { kind: "component", type: i4$1.PageDialogListComponent, selector: "page-dialog-list", inputs: ["config", "tagData"], outputs: ["itemSelected"] }, { kind: "component", type: ListTagComponent, selector: "list-tag", inputs: ["selectData"], outputs: ["tagRemove"] }] });
165
+ }
166
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: GramSystemEmpComponent, decorators: [{
167
+ type: Component,
168
+ args: [{ selector: 'sys_emp', imports: [CommonModule, TreeContentModule, DialogListModule, ListTagComponent], template: "<div class=\"org-tree\">\r\n <ng-container *ngIf=\"treeConfig\">\r\n <tree-content [config]=\"treeConfig\" (itemSelected)=\"treeChange($event)\"></tree-content>\r\n </ng-container>\r\n\r\n</div>\r\n<div class=\"emp-list\">\r\n <div class=\"emp-list-data\">\r\n <ng-container *ngIf=\"listConfig\">\r\n <page-dialog-list [config]=\"listConfig\" [tagData]=\"tagPara\"\r\n (itemSelected)=\"listSelected($event)\"></page-dialog-list>\r\n </ng-container>\r\n </div>\r\n\r\n <div class=\"emp-list-tag\">\r\n <list-tag [selectData]=\"listSelectData\" (tagRemove)=\"tagChange($event)\"></list-tag>\r\n </div>\r\n</div>", styles: [":host ::ng-deep{display:flex;flex-direction:row;overflow:auto;width:100%;height:100%}:host ::ng-deep .org-tree{width:200px;display:flex;overflow:auto;padding:12px;border-right:1px solid #eaeaea}:host ::ng-deep .org-tree .query-content nz-input-group{width:100%}:host ::ng-deep .emp-list{display:flex;flex-direction:column;flex:1}:host ::ng-deep .emp-list .emp-list-data{display:flex;flex:1;overflow:auto;padding:6px 12px 0}:host ::ng-deep .emp-list .emp-list-tag{padding:0 12px 10px}\n"] }]
169
+ }], ctorParameters: () => [{ type: i1$1._HttpClient }, { type: i0.ChangeDetectorRef }], propDecorators: { pageConfig: [{
170
+ type: Input
171
+ }] } });
172
+
173
+ const components = [GramSystemEmpComponent];
174
+ class GramSystemEmpModule {
175
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: GramSystemEmpModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
176
+ static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "19.2.15", ngImport: i0, type: GramSystemEmpModule, imports: [CommonModule, FormsModule, ReactiveFormsModule, NzAvatarModule, NzModalModule, GramSystemEmpComponent], exports: [GramSystemEmpComponent] });
177
+ static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: GramSystemEmpModule, imports: [CommonModule, FormsModule, ReactiveFormsModule, NzAvatarModule, NzModalModule, components] });
178
+ }
179
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: GramSystemEmpModule, decorators: [{
180
+ type: NgModule,
181
+ args: [{
182
+ imports: [CommonModule, FormsModule, ReactiveFormsModule, NzAvatarModule, NzModalModule, ...components],
183
+ exports: [...components],
184
+ }]
185
+ }] });
186
+
187
+ /**
188
+ * Generated bundle index. Do not edit.
189
+ */
190
+
191
+ export { GramSystemEmpComponent, GramSystemEmpModule };
192
+ //# sourceMappingURL=sysEmp.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"sysEmp.mjs","sources":["../../../../packages/dialog/sys_emp/src/tag/index.ts","../../../../packages/dialog/sys_emp/src/tag/index.html","../../../../packages/dialog/sys_emp/src/default/index.ts","../../../../packages/dialog/sys_emp/src/default/index.html","../../../../packages/dialog/sys_emp/src/index.module.ts","../../../../packages/dialog/sys_emp/sysEmp.ts"],"sourcesContent":["import { Component, OnInit, OnChanges, SimpleChanges, Output, Input, EventEmitter } from '@angular/core';\r\nimport { CommonModule } from '@angular/common';\r\nimport { NzTagModule } from 'ng-zorro-antd/tag';\r\nimport { NzButtonModule } from 'ng-zorro-antd/button';\r\nimport * as _ from \"lodash\";\r\n\r\n@Component({\r\n selector: 'list-tag',\r\n templateUrl: `./index.html`,\r\n styleUrls: ['./index.less'],\r\n imports: [\r\n CommonModule,\r\n NzTagModule,\r\n NzButtonModule\r\n ]\r\n})\r\nexport class ListTagComponent implements OnInit, OnChanges {\r\n _selectData: any[] = [];\r\n\r\n listData: any[] = [];\r\n\r\n @Input()\r\n set selectData(value: any[]) {\r\n this._selectData = value;\r\n this.listData = _.cloneDeep(value);\r\n }\r\n get selectData() {\r\n return this._selectData;\r\n }\r\n\r\n @Output() tagRemove: EventEmitter<any> = new EventEmitter();\r\n\r\n constructor() { }\r\n\r\n ngOnInit() { }\r\n\r\n ngOnChanges(changes: SimpleChanges): void { }\r\n\r\n onClose(e: any) {\r\n this.listData = this.listData.filter((item: any, index: number) => {\r\n return index !== e;\r\n });\r\n this.tagRemove.emit(this.listData);\r\n }\r\n\r\n onCloseAll() {\r\n this.listData = [];\r\n this.tagRemove.emit(this.listData);\r\n }\r\n}\r\n","<div class=\"list-select\">\r\n <div class=\"tag-header\">\r\n <label>已选<span>({{ listData.length }})</span></label>\r\n <button nz-button nzType=\"default\" nzSize=\"small\" (click)=\"onCloseAll()\">清空</button>\r\n </div>\r\n <div class=\"tag-content\">\r\n <ng-container *ngFor=\"let item of listData;let i=index\">\r\n <nz-tag nzMode=\"closeable\" (nzOnClose)=\"onClose(i)\">{{item?.name}}</nz-tag>\r\n </ng-container>\r\n </div>\r\n</div>","import {\n Component,\n ChangeDetectorRef,\n OnInit,\n ViewChild,\n Input,\n OnChanges,\n SimpleChanges,\n OnDestroy\n} from '@angular/core';\n\nimport { CommonModule } from \"@angular/common\";\nimport { _HttpClient } from '@delon/theme';\nimport { TreeContentModule } from '@ebuilding/dialog/common/list-tree';\nimport { DialogListModule } from '@ebuilding/dialog/list';\nimport { ModuleAPI } from '@ebuilding/base/shared.var/shared.constant';\nimport { ListTagComponent } from \"../tag\";\nimport _ from 'lodash';\n\n@Component({\n selector: 'sys_emp',\n templateUrl: './index.html',\n styleUrls: ['./index.less'],\n imports: [CommonModule, TreeContentModule, DialogListModule, ListTagComponent]\n})\nexport class GramSystemEmpComponent implements OnInit, OnChanges, OnDestroy {\n\n _pageConfig: any = null;\n\n @Input()\n set pageConfig(value: any) {\n this._pageConfig = value;\n this.initPageData();\n }\n\n get pageConfig() {\n return this._pageConfig;\n }\n\n treeConfig = null;\n\n listConfig = null;\n\n tagPara: any = null;\n\n listSelectData: any[] = [];\n\n pageTreeId: any = \"1661698411971825665\";\n pageListId: any = \"2001595947509002242\";\n\n constructor(public http: _HttpClient, private changeDetector: ChangeDetectorRef) { }\n\n ngOnInit() { }\n\n ngOnChanges(changes: SimpleChanges): void {\n\n }\n\n ngOnDestroy(): void {\n\n }\n\n getPageSelectData() {\n return this.listSelectData;\n }\n\n initPageData() {\n this.initPageTree();\n this.initPageList(null);\n }\n\n initPageTree() {\n this.treeConfig = {\n selectTag: false,\n selectType: \"single\",\n selectData: [],\n listAPI: {\n url: `${ModuleAPI.user}/user/page/tree/searchByField`,\n param: { id: this.pageTreeId },\n },\n treeAPI: {\n url: `${ModuleAPI.user}/user/page/tree/${this.pageTreeId}`,\n param: null,\n },\n }\n }\n\n initPageList(orgId: any) {\n let selectType: any = \"single\";\n let selectData: any = [];\n let parameter: any = {};\n if (this.pageConfig) {\n if (this.pageConfig?.selectType) {\n selectType = this.pageConfig.selectType;\n }\n if (selectType != \"single\" && this.pageConfig?.selectData && Array.isArray(this.pageConfig?.selectData)) {\n selectData = this.pageConfig.selectData;\n }\n }\n if (orgId) {\n parameter = {\n \"p_employee.org_id\": orgId\n }\n }\n\n this.listConfig = {\n pageId: this.pageListId,\n selectData: selectData,\n argInfo: {},\n parameter: parameter,\n selectType: selectType\n };\n }\n\n treeChange(e: any) {\n let treeDataId: any = null;\n if (e && Array.isArray(e) && e.length > 0) {\n treeDataId = e[0]?.id;\n }\n this.initPageList(treeDataId);\n }\n\n listSelected(e: any) {\n this.listSelectData = _.cloneDeep(e);\n }\n\n\n tagChange(e: any) {\n if (e && Array.isArray(e)) {\n this.listSelectData = e;\n } else {\n this.listSelectData = [];\n }\n if (this.pageConfig?.selectType == 'multiple') {\n this.tagPara = {\n rd: Math.random(),\n selectData: this.listSelectData\n };\n } else {\n this.listSelectData = [];\n }\n }\n}\n","<div class=\"org-tree\">\r\n <ng-container *ngIf=\"treeConfig\">\r\n <tree-content [config]=\"treeConfig\" (itemSelected)=\"treeChange($event)\"></tree-content>\r\n </ng-container>\r\n\r\n</div>\r\n<div class=\"emp-list\">\r\n <div class=\"emp-list-data\">\r\n <ng-container *ngIf=\"listConfig\">\r\n <page-dialog-list [config]=\"listConfig\" [tagData]=\"tagPara\"\r\n (itemSelected)=\"listSelected($event)\"></page-dialog-list>\r\n </ng-container>\r\n </div>\r\n\r\n <div class=\"emp-list-tag\">\r\n <list-tag [selectData]=\"listSelectData\" (tagRemove)=\"tagChange($event)\"></list-tag>\r\n </div>\r\n</div>","import { NgModule } from '@angular/core';\nimport { CommonModule } from '@angular/common';\nimport { ReactiveFormsModule, FormsModule } from '@angular/forms';\nimport { NzAvatarModule } from 'ng-zorro-antd/avatar';\nimport { NzModalModule } from 'ng-zorro-antd/modal';\n\nimport { GramSystemEmpComponent } from './default/index';\n\nconst components: any[] = [GramSystemEmpComponent];\n\n@NgModule({\n imports: [CommonModule, FormsModule, ReactiveFormsModule, NzAvatarModule, NzModalModule, ...components],\n exports: [...components],\n})\nexport class GramSystemEmpModule { }\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":["_","i1","i3","i4"],"mappings":";;;;;;;;;;;;;;;;;;;;;;MAgBa,gBAAgB,CAAA;IAC3B,WAAW,GAAU,EAAE;IAEvB,QAAQ,GAAU,EAAE;IAEpB,IACI,UAAU,CAAC,KAAY,EAAA;AACzB,QAAA,IAAI,CAAC,WAAW,GAAG,KAAK;QACxB,IAAI,CAAC,QAAQ,GAAG,CAAC,CAAC,SAAS,CAAC,KAAK,CAAC;;AAEpC,IAAA,IAAI,UAAU,GAAA;QACZ,OAAO,IAAI,CAAC,WAAW;;AAGf,IAAA,SAAS,GAAsB,IAAI,YAAY,EAAE;AAE3D,IAAA,WAAA,GAAA;AAEA,IAAA,QAAQ;IAER,WAAW,CAAC,OAAsB,EAAA;AAElC,IAAA,OAAO,CAAC,CAAM,EAAA;AACZ,QAAA,IAAI,CAAC,QAAQ,GAAG,IAAI,CAAC,QAAQ,CAAC,MAAM,CAAC,CAAC,IAAS,EAAE,KAAa,KAAI;YAChE,OAAO,KAAK,KAAK,CAAC;AACpB,SAAC,CAAC;QACF,IAAI,CAAC,SAAS,CAAC,IAAI,CAAC,IAAI,CAAC,QAAQ,CAAC;;IAGpC,UAAU,GAAA;AACR,QAAA,IAAI,CAAC,QAAQ,GAAG,EAAE;QAClB,IAAI,CAAC,SAAS,CAAC,IAAI,CAAC,IAAI,CAAC,QAAQ,CAAC;;wGA/BzB,gBAAgB,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA;AAAhB,IAAA,OAAA,IAAA,GAAA,EAAA,CAAA,oBAAA,CAAA,EAAA,U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AJ/B,QAAQ;AAAC,YAAA,IAAA,EAAA,CAAA;AACR,oBAAA,OAAO,EAAE,CAAC,YAAY,EAAE,WAAW,EAAE,mBAAmB,EAAE,cAAc,EAAE,aAAa,EAAE,GAAG,UAAU,CAAC;AACvG,oBAAA,OAAO,EAAE,CAAC,GAAG,UAAU,CAAC;AACzB,iBAAA;;;ACbD;;AAEG;;;;"}
@@ -0,0 +1,192 @@
1
+ import * as i0 from '@angular/core';
2
+ import { EventEmitter, Output, Input, Component, NgModule } from '@angular/core';
3
+ import * as i1 from '@angular/common';
4
+ import { CommonModule } from '@angular/common';
5
+ import { FormsModule, ReactiveFormsModule } from '@angular/forms';
6
+ import { NzAvatarModule } from 'ng-zorro-antd/avatar';
7
+ import { NzModalModule } from 'ng-zorro-antd/modal';
8
+ import * as i3$1 from '@ebuilding/dialog/common/list-tree';
9
+ import { TreeContentModule } from '@ebuilding/dialog/common/list-tree';
10
+ import * as i4$1 from '@ebuilding/dialog/list';
11
+ import { DialogListModule } from '@ebuilding/dialog/list';
12
+ import { ModuleAPI } from '@ebuilding/base/shared.var/shared.constant';
13
+ import * as i2 from 'ng-zorro-antd/tag';
14
+ import { NzTagModule } from 'ng-zorro-antd/tag';
15
+ import * as i3 from 'ng-zorro-antd/button';
16
+ import { NzButtonModule } from 'ng-zorro-antd/button';
17
+ import * as _ from 'lodash';
18
+ import ___default from 'lodash';
19
+ import * as i4 from 'ng-zorro-antd/core/transition-patch';
20
+ import * as i5 from 'ng-zorro-antd/core/wave';
21
+ import * as i1$1 from '@delon/theme';
22
+
23
+ class ListTagComponent {
24
+ _selectData = [];
25
+ listData = [];
26
+ set selectData(value) {
27
+ this._selectData = value;
28
+ this.listData = _.cloneDeep(value);
29
+ }
30
+ get selectData() {
31
+ return this._selectData;
32
+ }
33
+ tagRemove = new EventEmitter();
34
+ constructor() { }
35
+ ngOnInit() { }
36
+ ngOnChanges(changes) { }
37
+ onClose(e) {
38
+ this.listData = this.listData.filter((item, index) => {
39
+ return index !== e;
40
+ });
41
+ this.tagRemove.emit(this.listData);
42
+ }
43
+ onCloseAll() {
44
+ this.listData = [];
45
+ this.tagRemove.emit(this.listData);
46
+ }
47
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: ListTagComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
48
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.15", type: ListTagComponent, isStandalone: true, selector: "list-tag", inputs: { selectData: "selectData" }, outputs: { tagRemove: "tagRemove" }, usesOnChanges: true, ngImport: i0, template: "<div class=\"list-select\">\r\n <div class=\"tag-header\">\r\n <label>\u5DF2\u9009<span>({{ listData.length }})</span></label>\r\n <button nz-button nzType=\"default\" nzSize=\"small\" (click)=\"onCloseAll()\">\u6E05\u7A7A</button>\r\n </div>\r\n <div class=\"tag-content\">\r\n <ng-container *ngFor=\"let item of listData;let i=index\">\r\n <nz-tag nzMode=\"closeable\" (nzOnClose)=\"onClose(i)\">{{item?.name}}</nz-tag>\r\n </ng-container>\r\n </div>\r\n</div>", styles: [":host ::ng-deep .list-select{display:inline-block;width:100%;height:90px;margin:10px 0 0;border:1px solid #eaeaea;border-radius:4px}:host ::ng-deep .list-select .tag-header{padding:5px 8px 8px;border-bottom:1px solid #eaeaea}:host ::ng-deep .list-select .tag-header button{float:right}:host ::ng-deep .list-select .tag-content{height:45px;padding:8px 8px 0;overflow-x:overlay;overflow-y:overlay}:host ::ng-deep .list-select .tag-content::-webkit-scrollbar{width:8px}:host ::ng-deep .list-select .tag-content::-webkit-scrollbar-thumb{background-color:#94949475;border-radius:7px}:host ::ng-deep .list-select .tag-content::-webkit-scrollbar-track{background-color:#fff}:host ::ng-deep .list-select .ant-tag{margin-bottom:8px;border:1px solid #eaeaea}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "ngmodule", type: NzTagModule }, { kind: "component", type: i2.NzTagComponent, selector: "nz-tag", inputs: ["nzMode", "nzColor", "nzChecked", "nzBordered"], outputs: ["nzOnClose", "nzCheckedChange"], exportAs: ["nzTag"] }, { kind: "ngmodule", type: NzButtonModule }, { kind: "component", type: i3.NzButtonComponent, selector: "button[nz-button], a[nz-button]", inputs: ["nzBlock", "nzGhost", "nzSearch", "nzLoading", "nzDanger", "disabled", "tabIndex", "nzType", "nzShape", "nzSize"], exportAs: ["nzButton"] }, { kind: "directive", type: i4.ɵNzTransitionPatchDirective, selector: "[nz-button], nz-button-group, [nz-icon], nz-icon, [nz-menu-item], [nz-submenu], nz-select-top-control, nz-select-placeholder, nz-input-group", inputs: ["hidden"] }, { kind: "directive", type: i5.NzWaveDirective, selector: "[nz-wave],button[nz-button]:not([nzType=\"link\"]):not([nzType=\"text\"])", inputs: ["nzWaveExtraNode"], exportAs: ["nzWave"] }] });
49
+ }
50
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: ListTagComponent, decorators: [{
51
+ type: Component,
52
+ args: [{ selector: 'list-tag', imports: [
53
+ CommonModule,
54
+ NzTagModule,
55
+ NzButtonModule
56
+ ], template: "<div class=\"list-select\">\r\n <div class=\"tag-header\">\r\n <label>\u5DF2\u9009<span>({{ listData.length }})</span></label>\r\n <button nz-button nzType=\"default\" nzSize=\"small\" (click)=\"onCloseAll()\">\u6E05\u7A7A</button>\r\n </div>\r\n <div class=\"tag-content\">\r\n <ng-container *ngFor=\"let item of listData;let i=index\">\r\n <nz-tag nzMode=\"closeable\" (nzOnClose)=\"onClose(i)\">{{item?.name}}</nz-tag>\r\n </ng-container>\r\n </div>\r\n</div>", styles: [":host ::ng-deep .list-select{display:inline-block;width:100%;height:90px;margin:10px 0 0;border:1px solid #eaeaea;border-radius:4px}:host ::ng-deep .list-select .tag-header{padding:5px 8px 8px;border-bottom:1px solid #eaeaea}:host ::ng-deep .list-select .tag-header button{float:right}:host ::ng-deep .list-select .tag-content{height:45px;padding:8px 8px 0;overflow-x:overlay;overflow-y:overlay}:host ::ng-deep .list-select .tag-content::-webkit-scrollbar{width:8px}:host ::ng-deep .list-select .tag-content::-webkit-scrollbar-thumb{background-color:#94949475;border-radius:7px}:host ::ng-deep .list-select .tag-content::-webkit-scrollbar-track{background-color:#fff}:host ::ng-deep .list-select .ant-tag{margin-bottom:8px;border:1px solid #eaeaea}\n"] }]
57
+ }], ctorParameters: () => [], propDecorators: { selectData: [{
58
+ type: Input
59
+ }], tagRemove: [{
60
+ type: Output
61
+ }] } });
62
+
63
+ class GramSystemOrgComponent {
64
+ http;
65
+ changeDetector;
66
+ _pageConfig = null;
67
+ set pageConfig(value) {
68
+ this._pageConfig = value;
69
+ this.initPageData();
70
+ }
71
+ get pageConfig() {
72
+ return this._pageConfig;
73
+ }
74
+ treeConfig = null;
75
+ listConfig = null;
76
+ tagPara = null;
77
+ listSelectData = [];
78
+ pageTreeId = "1661698411971825665";
79
+ pageListId = "2001589075590688769";
80
+ constructor(http, changeDetector) {
81
+ this.http = http;
82
+ this.changeDetector = changeDetector;
83
+ }
84
+ ngOnInit() { }
85
+ ngOnChanges(changes) {
86
+ }
87
+ ngOnDestroy() {
88
+ }
89
+ getPageSelectData() {
90
+ return this.listSelectData;
91
+ }
92
+ initPageData() {
93
+ this.initPageTree();
94
+ this.initPageList(null);
95
+ }
96
+ initPageTree() {
97
+ this.treeConfig = {
98
+ selectTag: false,
99
+ selectType: "single",
100
+ selectData: [],
101
+ listAPI: {
102
+ url: `${ModuleAPI.user}/user/page/tree/searchByField`,
103
+ param: { id: this.pageTreeId },
104
+ },
105
+ treeAPI: {
106
+ url: `${ModuleAPI.user}/user/page/tree/${this.pageTreeId}`,
107
+ param: null,
108
+ },
109
+ };
110
+ }
111
+ initPageList(orgId) {
112
+ let selectType = "single";
113
+ let selectData = [];
114
+ let parameter = {};
115
+ if (this.pageConfig) {
116
+ if (this.pageConfig?.selectType) {
117
+ selectType = this.pageConfig.selectType;
118
+ }
119
+ if (selectType != "single" && this.pageConfig?.selectData && Array.isArray(this.pageConfig?.selectData)) {
120
+ selectData = this.pageConfig.selectData;
121
+ }
122
+ }
123
+ if (orgId) {
124
+ parameter = {
125
+ "p_org.parent_id": orgId
126
+ };
127
+ }
128
+ this.listConfig = {
129
+ pageId: this.pageListId,
130
+ selectData: selectData,
131
+ argInfo: {},
132
+ parameter: parameter,
133
+ selectType: selectType
134
+ };
135
+ }
136
+ treeChange(e) {
137
+ let treeDataId = null;
138
+ if (e && Array.isArray(e) && e.length > 0) {
139
+ treeDataId = e[0]?.id;
140
+ }
141
+ this.initPageList(treeDataId);
142
+ }
143
+ listSelected(e) {
144
+ this.listSelectData = ___default.cloneDeep(e);
145
+ }
146
+ tagChange(e) {
147
+ if (e && Array.isArray(e)) {
148
+ this.listSelectData = e;
149
+ }
150
+ else {
151
+ this.listSelectData = [];
152
+ }
153
+ if (this.pageConfig?.selectType == 'multiple') {
154
+ this.tagPara = {
155
+ rd: Math.random(),
156
+ selectData: this.listSelectData
157
+ };
158
+ }
159
+ else {
160
+ this.listSelectData = [];
161
+ }
162
+ }
163
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: GramSystemOrgComponent, deps: [{ token: i1$1._HttpClient }, { token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Component });
164
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.15", type: GramSystemOrgComponent, isStandalone: true, selector: "sys_org", inputs: { pageConfig: "pageConfig" }, usesOnChanges: true, ngImport: i0, template: "<div class=\"org-tree\">\r\n <ng-container *ngIf=\"treeConfig\">\r\n <tree-content [config]=\"treeConfig\" (itemSelected)=\"treeChange($event)\"></tree-content>\r\n </ng-container>\r\n\r\n</div>\r\n<div class=\"emp-list\">\r\n <div class=\"emp-list-data\">\r\n <ng-container *ngIf=\"listConfig\">\r\n <page-dialog-list [config]=\"listConfig\" [tagData]=\"tagPara\"\r\n (itemSelected)=\"listSelected($event)\"></page-dialog-list>\r\n </ng-container>\r\n </div>\r\n\r\n <div class=\"emp-list-tag\">\r\n <list-tag [selectData]=\"listSelectData\" (tagRemove)=\"tagChange($event)\"></list-tag>\r\n </div>\r\n</div>", styles: [":host ::ng-deep{display:flex;flex-direction:row;overflow:auto;width:100%;height:100%}:host ::ng-deep .org-tree{width:200px;display:flex;overflow:auto;padding:12px;border-right:1px solid #eaeaea}:host ::ng-deep .org-tree .query-content nz-input-group{width:100%}:host ::ng-deep .emp-list{display:flex;flex-direction:column;flex:1}:host ::ng-deep .emp-list .emp-list-data{display:flex;flex:1;overflow:auto;padding:6px 12px 0}:host ::ng-deep .emp-list .emp-list-tag{padding:0 12px 10px}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "ngmodule", type: TreeContentModule }, { kind: "component", type: i3$1.TreeContentComponent, selector: "tree-content", inputs: ["config", "tagData"], outputs: ["itemSelected"] }, { kind: "ngmodule", type: DialogListModule }, { kind: "component", type: i4$1.PageDialogListComponent, selector: "page-dialog-list", inputs: ["config", "tagData"], outputs: ["itemSelected"] }, { kind: "component", type: ListTagComponent, selector: "list-tag", inputs: ["selectData"], outputs: ["tagRemove"] }] });
165
+ }
166
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: GramSystemOrgComponent, decorators: [{
167
+ type: Component,
168
+ args: [{ selector: 'sys_org', imports: [CommonModule, TreeContentModule, DialogListModule, ListTagComponent], template: "<div class=\"org-tree\">\r\n <ng-container *ngIf=\"treeConfig\">\r\n <tree-content [config]=\"treeConfig\" (itemSelected)=\"treeChange($event)\"></tree-content>\r\n </ng-container>\r\n\r\n</div>\r\n<div class=\"emp-list\">\r\n <div class=\"emp-list-data\">\r\n <ng-container *ngIf=\"listConfig\">\r\n <page-dialog-list [config]=\"listConfig\" [tagData]=\"tagPara\"\r\n (itemSelected)=\"listSelected($event)\"></page-dialog-list>\r\n </ng-container>\r\n </div>\r\n\r\n <div class=\"emp-list-tag\">\r\n <list-tag [selectData]=\"listSelectData\" (tagRemove)=\"tagChange($event)\"></list-tag>\r\n </div>\r\n</div>", styles: [":host ::ng-deep{display:flex;flex-direction:row;overflow:auto;width:100%;height:100%}:host ::ng-deep .org-tree{width:200px;display:flex;overflow:auto;padding:12px;border-right:1px solid #eaeaea}:host ::ng-deep .org-tree .query-content nz-input-group{width:100%}:host ::ng-deep .emp-list{display:flex;flex-direction:column;flex:1}:host ::ng-deep .emp-list .emp-list-data{display:flex;flex:1;overflow:auto;padding:6px 12px 0}:host ::ng-deep .emp-list .emp-list-tag{padding:0 12px 10px}\n"] }]
169
+ }], ctorParameters: () => [{ type: i1$1._HttpClient }, { type: i0.ChangeDetectorRef }], propDecorators: { pageConfig: [{
170
+ type: Input
171
+ }] } });
172
+
173
+ const components = [GramSystemOrgComponent];
174
+ class GramSystemOrgModule {
175
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: GramSystemOrgModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
176
+ static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "19.2.15", ngImport: i0, type: GramSystemOrgModule, imports: [CommonModule, FormsModule, ReactiveFormsModule, NzAvatarModule, NzModalModule, GramSystemOrgComponent], exports: [GramSystemOrgComponent] });
177
+ static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: GramSystemOrgModule, imports: [CommonModule, FormsModule, ReactiveFormsModule, NzAvatarModule, NzModalModule, components] });
178
+ }
179
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: GramSystemOrgModule, decorators: [{
180
+ type: NgModule,
181
+ args: [{
182
+ imports: [CommonModule, FormsModule, ReactiveFormsModule, NzAvatarModule, NzModalModule, ...components],
183
+ exports: [...components],
184
+ }]
185
+ }] });
186
+
187
+ /**
188
+ * Generated bundle index. Do not edit.
189
+ */
190
+
191
+ export { GramSystemOrgComponent, GramSystemOrgModule };
192
+ //# sourceMappingURL=sysOrg.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"sysOrg.mjs","sources":["../../../../packages/dialog/sys-org/src/tag/index.ts","../../../../packages/dialog/sys-org/src/tag/index.html","../../../../packages/dialog/sys-org/src/default/index.ts","../../../../packages/dialog/sys-org/src/default/index.html","../../../../packages/dialog/sys-org/src/index.module.ts","../../../../packages/dialog/sys-org/sysOrg.ts"],"sourcesContent":["import { Component, OnInit, OnChanges, SimpleChanges, Output, Input, EventEmitter } from '@angular/core';\r\nimport { CommonModule } from '@angular/common';\r\nimport { NzTagModule } from 'ng-zorro-antd/tag';\r\nimport { NzButtonModule } from 'ng-zorro-antd/button';\r\nimport * as _ from \"lodash\";\r\n\r\n@Component({\r\n selector: 'list-tag',\r\n templateUrl: `./index.html`,\r\n styleUrls: ['./index.less'],\r\n imports: [\r\n CommonModule,\r\n NzTagModule,\r\n NzButtonModule\r\n ]\r\n})\r\nexport class ListTagComponent implements OnInit, OnChanges {\r\n _selectData: any[] = [];\r\n\r\n listData: any[] = [];\r\n\r\n @Input()\r\n set selectData(value: any[]) {\r\n this._selectData = value;\r\n this.listData = _.cloneDeep(value);\r\n }\r\n get selectData() {\r\n return this._selectData;\r\n }\r\n\r\n @Output() tagRemove: EventEmitter<any> = new EventEmitter();\r\n\r\n constructor() { }\r\n\r\n ngOnInit() { }\r\n\r\n ngOnChanges(changes: SimpleChanges): void { }\r\n\r\n onClose(e: any) {\r\n this.listData = this.listData.filter((item: any, index: number) => {\r\n return index !== e;\r\n });\r\n this.tagRemove.emit(this.listData);\r\n }\r\n\r\n onCloseAll() {\r\n this.listData = [];\r\n this.tagRemove.emit(this.listData);\r\n }\r\n}\r\n","<div class=\"list-select\">\r\n <div class=\"tag-header\">\r\n <label>已选<span>({{ listData.length }})</span></label>\r\n <button nz-button nzType=\"default\" nzSize=\"small\" (click)=\"onCloseAll()\">清空</button>\r\n </div>\r\n <div class=\"tag-content\">\r\n <ng-container *ngFor=\"let item of listData;let i=index\">\r\n <nz-tag nzMode=\"closeable\" (nzOnClose)=\"onClose(i)\">{{item?.name}}</nz-tag>\r\n </ng-container>\r\n </div>\r\n</div>","import {\n Component,\n ChangeDetectorRef,\n OnInit,\n ViewChild,\n Input,\n OnChanges,\n SimpleChanges,\n OnDestroy\n} from '@angular/core';\n\nimport { CommonModule } from \"@angular/common\";\nimport { _HttpClient } from '@delon/theme';\nimport { TreeContentModule } from '@ebuilding/dialog/common/list-tree';\nimport { DialogListModule } from '@ebuilding/dialog/list';\nimport { ModuleAPI } from '@ebuilding/base/shared.var/shared.constant';\nimport { ListTagComponent } from \"../tag\";\nimport _ from 'lodash';\n\n@Component({\n selector: 'sys_org',\n templateUrl: './index.html',\n styleUrls: ['./index.less'],\n imports: [CommonModule, TreeContentModule, DialogListModule, ListTagComponent]\n})\nexport class GramSystemOrgComponent implements OnInit, OnChanges, OnDestroy {\n\n _pageConfig: any = null;\n\n @Input()\n set pageConfig(value: any) {\n this._pageConfig = value;\n this.initPageData();\n }\n\n get pageConfig() {\n return this._pageConfig;\n }\n\n treeConfig = null;\n\n listConfig = null;\n\n tagPara: any = null;\n\n listSelectData: any[] = [];\n\n pageTreeId: any = \"1661698411971825665\";\n pageListId: any = \"2001589075590688769\";\n\n constructor(public http: _HttpClient, private changeDetector: ChangeDetectorRef) { }\n\n ngOnInit() { }\n\n ngOnChanges(changes: SimpleChanges): void {\n\n }\n\n ngOnDestroy(): void {\n\n }\n\n getPageSelectData() {\n return this.listSelectData;\n }\n\n initPageData() {\n this.initPageTree();\n this.initPageList(null);\n }\n\n initPageTree() {\n this.treeConfig = {\n selectTag: false,\n selectType: \"single\",\n selectData: [],\n listAPI: {\n url: `${ModuleAPI.user}/user/page/tree/searchByField`,\n param: { id: this.pageTreeId },\n },\n treeAPI: {\n url: `${ModuleAPI.user}/user/page/tree/${this.pageTreeId}`,\n param: null,\n },\n }\n }\n\n initPageList(orgId: any) {\n let selectType: any = \"single\";\n let selectData: any = [];\n let parameter: any = {};\n if (this.pageConfig) {\n if (this.pageConfig?.selectType) {\n selectType = this.pageConfig.selectType;\n }\n if (selectType != \"single\" && this.pageConfig?.selectData && Array.isArray(this.pageConfig?.selectData)) {\n selectData = this.pageConfig.selectData;\n }\n }\n if (orgId) {\n parameter = {\n \"p_org.parent_id\": orgId\n }\n }\n\n this.listConfig = {\n pageId: this.pageListId,\n selectData: selectData,\n argInfo: {},\n parameter: parameter,\n selectType: selectType\n };\n }\n\n treeChange(e: any) {\n let treeDataId: any = null;\n if (e && Array.isArray(e) && e.length > 0) {\n treeDataId = e[0]?.id;\n }\n this.initPageList(treeDataId);\n }\n\n listSelected(e: any) {\n this.listSelectData = _.cloneDeep(e);\n }\n\n\n tagChange(e: any) {\n if (e && Array.isArray(e)) {\n this.listSelectData = e;\n } else {\n this.listSelectData = [];\n }\n if (this.pageConfig?.selectType == 'multiple') {\n this.tagPara = {\n rd: Math.random(),\n selectData: this.listSelectData\n };\n } else {\n this.listSelectData = [];\n }\n }\n}\n","<div class=\"org-tree\">\r\n <ng-container *ngIf=\"treeConfig\">\r\n <tree-content [config]=\"treeConfig\" (itemSelected)=\"treeChange($event)\"></tree-content>\r\n </ng-container>\r\n\r\n</div>\r\n<div class=\"emp-list\">\r\n <div class=\"emp-list-data\">\r\n <ng-container *ngIf=\"listConfig\">\r\n <page-dialog-list [config]=\"listConfig\" [tagData]=\"tagPara\"\r\n (itemSelected)=\"listSelected($event)\"></page-dialog-list>\r\n </ng-container>\r\n </div>\r\n\r\n <div class=\"emp-list-tag\">\r\n <list-tag [selectData]=\"listSelectData\" (tagRemove)=\"tagChange($event)\"></list-tag>\r\n </div>\r\n</div>","import { NgModule } from '@angular/core';\nimport { CommonModule } from '@angular/common';\nimport { ReactiveFormsModule, FormsModule } from '@angular/forms';\nimport { NzAvatarModule } from 'ng-zorro-antd/avatar';\nimport { NzModalModule } from 'ng-zorro-antd/modal';\n\nimport { GramSystemOrgComponent } from './default/index';\n\nconst components: any[] = [GramSystemOrgComponent];\n\n@NgModule({\n imports: [CommonModule, FormsModule, ReactiveFormsModule, NzAvatarModule, NzModalModule, ...components],\n exports: [...components],\n})\nexport class GramSystemOrgModule { }\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":["_","i1","i3","i4"],"mappings":";;;;;;;;;;;;;;;;;;;;;;MAgBa,gBAAgB,CAAA;IAC3B,WAAW,GAAU,EAAE;IAEvB,QAAQ,GAAU,EAAE;IAEpB,IACI,UAAU,CAAC,KAAY,EAAA;AACzB,QAAA,IAAI,CAAC,WAAW,GAAG,KAAK;QACxB,IAAI,CAAC,QAAQ,GAAG,CAAC,CAAC,SAAS,CAAC,KAAK,CAAC;;AAEpC,IAAA,IAAI,UAAU,GAAA;QACZ,OAAO,IAAI,CAAC,WAAW;;AAGf,IAAA,SAAS,GAAsB,IAAI,YAAY,EAAE;AAE3D,IAAA,WAAA,GAAA;AAEA,IAAA,QAAQ;IAER,WAAW,CAAC,OAAsB,EAAA;AAElC,IAAA,OAAO,CAAC,CAAM,EAAA;AACZ,QAAA,IAAI,CAAC,QAAQ,GAAG,IAAI,CAAC,QAAQ,CAAC,MAAM,CAAC,CAAC,IAAS,EAAE,KAAa,KAAI;YAChE,OAAO,KAAK,KAAK,CAAC;AACpB,SAAC,CAAC;QACF,IAAI,CAAC,SAAS,CAAC,IAAI,CAAC,IAAI,CAAC,QAAQ,CAAC;;IAGpC,UAAU,GAAA;AACR,QAAA,IAAI,CAAC,QAAQ,GAAG,EAAE;QAClB,IAAI,CAAC,SAAS,CAAC,IAAI,CAAC,IAAI,CAAC,QAAQ,CAAC;;wGA/BzB,gBAAgB,EAAA,IAAA,EAAA,EAAA,EAAA,M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AW,EAAE,mBAAmB,EAAE,cAAc,EAAE,aAAa,EAAK,UAAU,CAAA,EAAA,CAAA;;4FAG3F,mBAAmB,EAAA,UAAA,EAAA,CAAA;kBAJ/B,QAAQ;AAAC,YAAA,IAAA,EAAA,CAAA;AACR,oBAAA,OAAO,EAAE,CAAC,YAAY,EAAE,WAAW,EAAE,mBAAmB,EAAE,cAAc,EAAE,aAAa,EAAE,GAAG,UAAU,CAAC;AACvG,oBAAA,OAAO,EAAE,CAAC,GAAG,UAAU,CAAC;AACzB,iBAAA;;;ACbD;;AAEG;;;;"}
@@ -0,0 +1,192 @@
1
+ import * as i0 from '@angular/core';
2
+ import { EventEmitter, Output, Input, Component, NgModule } from '@angular/core';
3
+ import * as i1 from '@angular/common';
4
+ import { CommonModule } from '@angular/common';
5
+ import { FormsModule, ReactiveFormsModule } from '@angular/forms';
6
+ import { NzAvatarModule } from 'ng-zorro-antd/avatar';
7
+ import { NzModalModule } from 'ng-zorro-antd/modal';
8
+ import * as i3$1 from '@ebuilding/dialog/common/list-tree';
9
+ import { TreeContentModule } from '@ebuilding/dialog/common/list-tree';
10
+ import * as i4$1 from '@ebuilding/dialog/list';
11
+ import { DialogListModule } from '@ebuilding/dialog/list';
12
+ import { ModuleAPI } from '@ebuilding/base/shared.var/shared.constant';
13
+ import * as i2 from 'ng-zorro-antd/tag';
14
+ import { NzTagModule } from 'ng-zorro-antd/tag';
15
+ import * as i3 from 'ng-zorro-antd/button';
16
+ import { NzButtonModule } from 'ng-zorro-antd/button';
17
+ import * as _ from 'lodash';
18
+ import ___default from 'lodash';
19
+ import * as i4 from 'ng-zorro-antd/core/transition-patch';
20
+ import * as i5 from 'ng-zorro-antd/core/wave';
21
+ import * as i1$1 from '@delon/theme';
22
+
23
+ class ListTagComponent {
24
+ _selectData = [];
25
+ listData = [];
26
+ set selectData(value) {
27
+ this._selectData = value;
28
+ this.listData = _.cloneDeep(value);
29
+ }
30
+ get selectData() {
31
+ return this._selectData;
32
+ }
33
+ tagRemove = new EventEmitter();
34
+ constructor() { }
35
+ ngOnInit() { }
36
+ ngOnChanges(changes) { }
37
+ onClose(e) {
38
+ this.listData = this.listData.filter((item, index) => {
39
+ return index !== e;
40
+ });
41
+ this.tagRemove.emit(this.listData);
42
+ }
43
+ onCloseAll() {
44
+ this.listData = [];
45
+ this.tagRemove.emit(this.listData);
46
+ }
47
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: ListTagComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
48
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.15", type: ListTagComponent, isStandalone: true, selector: "list-tag", inputs: { selectData: "selectData" }, outputs: { tagRemove: "tagRemove" }, usesOnChanges: true, ngImport: i0, template: "<div class=\"list-select\">\r\n <div class=\"tag-header\">\r\n <label>\u5DF2\u9009<span>({{ listData.length }})</span></label>\r\n <button nz-button nzType=\"default\" nzSize=\"small\" (click)=\"onCloseAll()\">\u6E05\u7A7A</button>\r\n </div>\r\n <div class=\"tag-content\">\r\n <ng-container *ngFor=\"let item of listData;let i=index\">\r\n <nz-tag nzMode=\"closeable\" (nzOnClose)=\"onClose(i)\">{{item?.name}}</nz-tag>\r\n </ng-container>\r\n </div>\r\n</div>", styles: [":host ::ng-deep .list-select{display:inline-block;width:100%;height:90px;margin:10px 0 0;border:1px solid #eaeaea;border-radius:4px}:host ::ng-deep .list-select .tag-header{padding:5px 8px 8px;border-bottom:1px solid #eaeaea}:host ::ng-deep .list-select .tag-header button{float:right}:host ::ng-deep .list-select .tag-content{height:45px;padding:8px 8px 0;overflow-x:overlay;overflow-y:overlay}:host ::ng-deep .list-select .tag-content::-webkit-scrollbar{width:8px}:host ::ng-deep .list-select .tag-content::-webkit-scrollbar-thumb{background-color:#94949475;border-radius:7px}:host ::ng-deep .list-select .tag-content::-webkit-scrollbar-track{background-color:#fff}:host ::ng-deep .list-select .ant-tag{margin-bottom:8px;border:1px solid #eaeaea}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "ngmodule", type: NzTagModule }, { kind: "component", type: i2.NzTagComponent, selector: "nz-tag", inputs: ["nzMode", "nzColor", "nzChecked", "nzBordered"], outputs: ["nzOnClose", "nzCheckedChange"], exportAs: ["nzTag"] }, { kind: "ngmodule", type: NzButtonModule }, { kind: "component", type: i3.NzButtonComponent, selector: "button[nz-button], a[nz-button]", inputs: ["nzBlock", "nzGhost", "nzSearch", "nzLoading", "nzDanger", "disabled", "tabIndex", "nzType", "nzShape", "nzSize"], exportAs: ["nzButton"] }, { kind: "directive", type: i4.ɵNzTransitionPatchDirective, selector: "[nz-button], nz-button-group, [nz-icon], nz-icon, [nz-menu-item], [nz-submenu], nz-select-top-control, nz-select-placeholder, nz-input-group", inputs: ["hidden"] }, { kind: "directive", type: i5.NzWaveDirective, selector: "[nz-wave],button[nz-button]:not([nzType=\"link\"]):not([nzType=\"text\"])", inputs: ["nzWaveExtraNode"], exportAs: ["nzWave"] }] });
49
+ }
50
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: ListTagComponent, decorators: [{
51
+ type: Component,
52
+ args: [{ selector: 'list-tag', imports: [
53
+ CommonModule,
54
+ NzTagModule,
55
+ NzButtonModule
56
+ ], template: "<div class=\"list-select\">\r\n <div class=\"tag-header\">\r\n <label>\u5DF2\u9009<span>({{ listData.length }})</span></label>\r\n <button nz-button nzType=\"default\" nzSize=\"small\" (click)=\"onCloseAll()\">\u6E05\u7A7A</button>\r\n </div>\r\n <div class=\"tag-content\">\r\n <ng-container *ngFor=\"let item of listData;let i=index\">\r\n <nz-tag nzMode=\"closeable\" (nzOnClose)=\"onClose(i)\">{{item?.name}}</nz-tag>\r\n </ng-container>\r\n </div>\r\n</div>", styles: [":host ::ng-deep .list-select{display:inline-block;width:100%;height:90px;margin:10px 0 0;border:1px solid #eaeaea;border-radius:4px}:host ::ng-deep .list-select .tag-header{padding:5px 8px 8px;border-bottom:1px solid #eaeaea}:host ::ng-deep .list-select .tag-header button{float:right}:host ::ng-deep .list-select .tag-content{height:45px;padding:8px 8px 0;overflow-x:overlay;overflow-y:overlay}:host ::ng-deep .list-select .tag-content::-webkit-scrollbar{width:8px}:host ::ng-deep .list-select .tag-content::-webkit-scrollbar-thumb{background-color:#94949475;border-radius:7px}:host ::ng-deep .list-select .tag-content::-webkit-scrollbar-track{background-color:#fff}:host ::ng-deep .list-select .ant-tag{margin-bottom:8px;border:1px solid #eaeaea}\n"] }]
57
+ }], ctorParameters: () => [], propDecorators: { selectData: [{
58
+ type: Input
59
+ }], tagRemove: [{
60
+ type: Output
61
+ }] } });
62
+
63
+ class GramSystemPosComponent {
64
+ http;
65
+ changeDetector;
66
+ _pageConfig = null;
67
+ set pageConfig(value) {
68
+ this._pageConfig = value;
69
+ this.initPageData();
70
+ }
71
+ get pageConfig() {
72
+ return this._pageConfig;
73
+ }
74
+ treeConfig = null;
75
+ listConfig = null;
76
+ tagPara = null;
77
+ listSelectData = [];
78
+ pageTreeId = "1661698411971825665";
79
+ pageListId = "2001596976208195586";
80
+ constructor(http, changeDetector) {
81
+ this.http = http;
82
+ this.changeDetector = changeDetector;
83
+ }
84
+ ngOnInit() { }
85
+ ngOnChanges(changes) {
86
+ }
87
+ ngOnDestroy() {
88
+ }
89
+ getPageSelectData() {
90
+ return this.listSelectData;
91
+ }
92
+ initPageData() {
93
+ this.initPageTree();
94
+ this.initPageList(null);
95
+ }
96
+ initPageTree() {
97
+ this.treeConfig = {
98
+ selectTag: false,
99
+ selectType: "single",
100
+ selectData: [],
101
+ listAPI: {
102
+ url: `${ModuleAPI.user}/user/page/tree/searchByField`,
103
+ param: { id: this.pageTreeId },
104
+ },
105
+ treeAPI: {
106
+ url: `${ModuleAPI.user}/user/page/tree/${this.pageTreeId}`,
107
+ param: null,
108
+ },
109
+ };
110
+ }
111
+ initPageList(orgId) {
112
+ let selectType = "single";
113
+ let selectData = [];
114
+ let parameter = {};
115
+ if (this.pageConfig) {
116
+ if (this.pageConfig?.selectType) {
117
+ selectType = this.pageConfig.selectType;
118
+ }
119
+ if (selectType != "single" && this.pageConfig?.selectData && Array.isArray(this.pageConfig?.selectData)) {
120
+ selectData = this.pageConfig.selectData;
121
+ }
122
+ }
123
+ if (orgId) {
124
+ parameter = {
125
+ "p_position.org_id": orgId
126
+ };
127
+ }
128
+ this.listConfig = {
129
+ pageId: this.pageListId,
130
+ selectData: selectData,
131
+ argInfo: {},
132
+ parameter: parameter,
133
+ selectType: selectType
134
+ };
135
+ }
136
+ treeChange(e) {
137
+ let treeDataId = null;
138
+ if (e && Array.isArray(e) && e.length > 0) {
139
+ treeDataId = e[0]?.id;
140
+ }
141
+ this.initPageList(treeDataId);
142
+ }
143
+ listSelected(e) {
144
+ this.listSelectData = ___default.cloneDeep(e);
145
+ }
146
+ tagChange(e) {
147
+ if (e && Array.isArray(e)) {
148
+ this.listSelectData = e;
149
+ }
150
+ else {
151
+ this.listSelectData = [];
152
+ }
153
+ if (this.pageConfig?.selectType == 'multiple') {
154
+ this.tagPara = {
155
+ rd: Math.random(),
156
+ selectData: this.listSelectData
157
+ };
158
+ }
159
+ else {
160
+ this.listSelectData = [];
161
+ }
162
+ }
163
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: GramSystemPosComponent, deps: [{ token: i1$1._HttpClient }, { token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Component });
164
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.15", type: GramSystemPosComponent, isStandalone: true, selector: "sys_position", inputs: { pageConfig: "pageConfig" }, usesOnChanges: true, ngImport: i0, template: "<div class=\"org-tree\">\r\n <ng-container *ngIf=\"treeConfig\">\r\n <tree-content [config]=\"treeConfig\" (itemSelected)=\"treeChange($event)\"></tree-content>\r\n </ng-container>\r\n\r\n</div>\r\n<div class=\"emp-list\">\r\n <div class=\"emp-list-data\">\r\n <ng-container *ngIf=\"listConfig\">\r\n <page-dialog-list [config]=\"listConfig\" [tagData]=\"tagPara\"\r\n (itemSelected)=\"listSelected($event)\"></page-dialog-list>\r\n </ng-container>\r\n </div>\r\n\r\n <div class=\"emp-list-tag\">\r\n <list-tag [selectData]=\"listSelectData\" (tagRemove)=\"tagChange($event)\"></list-tag>\r\n </div>\r\n</div>", styles: [":host ::ng-deep{display:flex;flex-direction:row;overflow:auto;width:100%;height:100%}:host ::ng-deep .org-tree{width:200px;display:flex;overflow:auto;padding:12px;border-right:1px solid #eaeaea}:host ::ng-deep .org-tree .query-content nz-input-group{width:100%}:host ::ng-deep .emp-list{display:flex;flex-direction:column;flex:1}:host ::ng-deep .emp-list .emp-list-data{display:flex;flex:1;overflow:auto;padding:6px 12px 0}:host ::ng-deep .emp-list .emp-list-tag{padding:0 12px 10px}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "ngmodule", type: TreeContentModule }, { kind: "component", type: i3$1.TreeContentComponent, selector: "tree-content", inputs: ["config", "tagData"], outputs: ["itemSelected"] }, { kind: "ngmodule", type: DialogListModule }, { kind: "component", type: i4$1.PageDialogListComponent, selector: "page-dialog-list", inputs: ["config", "tagData"], outputs: ["itemSelected"] }, { kind: "component", type: ListTagComponent, selector: "list-tag", inputs: ["selectData"], outputs: ["tagRemove"] }] });
165
+ }
166
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: GramSystemPosComponent, decorators: [{
167
+ type: Component,
168
+ args: [{ selector: 'sys_position', imports: [CommonModule, TreeContentModule, DialogListModule, ListTagComponent], template: "<div class=\"org-tree\">\r\n <ng-container *ngIf=\"treeConfig\">\r\n <tree-content [config]=\"treeConfig\" (itemSelected)=\"treeChange($event)\"></tree-content>\r\n </ng-container>\r\n\r\n</div>\r\n<div class=\"emp-list\">\r\n <div class=\"emp-list-data\">\r\n <ng-container *ngIf=\"listConfig\">\r\n <page-dialog-list [config]=\"listConfig\" [tagData]=\"tagPara\"\r\n (itemSelected)=\"listSelected($event)\"></page-dialog-list>\r\n </ng-container>\r\n </div>\r\n\r\n <div class=\"emp-list-tag\">\r\n <list-tag [selectData]=\"listSelectData\" (tagRemove)=\"tagChange($event)\"></list-tag>\r\n </div>\r\n</div>", styles: [":host ::ng-deep{display:flex;flex-direction:row;overflow:auto;width:100%;height:100%}:host ::ng-deep .org-tree{width:200px;display:flex;overflow:auto;padding:12px;border-right:1px solid #eaeaea}:host ::ng-deep .org-tree .query-content nz-input-group{width:100%}:host ::ng-deep .emp-list{display:flex;flex-direction:column;flex:1}:host ::ng-deep .emp-list .emp-list-data{display:flex;flex:1;overflow:auto;padding:6px 12px 0}:host ::ng-deep .emp-list .emp-list-tag{padding:0 12px 10px}\n"] }]
169
+ }], ctorParameters: () => [{ type: i1$1._HttpClient }, { type: i0.ChangeDetectorRef }], propDecorators: { pageConfig: [{
170
+ type: Input
171
+ }] } });
172
+
173
+ const components = [GramSystemPosComponent];
174
+ class GramSystemPosModule {
175
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: GramSystemPosModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
176
+ static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "19.2.15", ngImport: i0, type: GramSystemPosModule, imports: [CommonModule, FormsModule, ReactiveFormsModule, NzAvatarModule, NzModalModule, GramSystemPosComponent], exports: [GramSystemPosComponent] });
177
+ static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: GramSystemPosModule, imports: [CommonModule, FormsModule, ReactiveFormsModule, NzAvatarModule, NzModalModule, components] });
178
+ }
179
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: GramSystemPosModule, decorators: [{
180
+ type: NgModule,
181
+ args: [{
182
+ imports: [CommonModule, FormsModule, ReactiveFormsModule, NzAvatarModule, NzModalModule, ...components],
183
+ exports: [...components],
184
+ }]
185
+ }] });
186
+
187
+ /**
188
+ * Generated bundle index. Do not edit.
189
+ */
190
+
191
+ export { GramSystemPosComponent, GramSystemPosModule };
192
+ //# sourceMappingURL=sysPos.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"sysPos.mjs","sources":["../../../../packages/dialog/sys_pos/src/tag/index.ts","../../../../packages/dialog/sys_pos/src/tag/index.html","../../../../packages/dialog/sys_pos/src/default/index.ts","../../../../packages/dialog/sys_pos/src/default/index.html","../../../../packages/dialog/sys_pos/src/index.module.ts","../../../../packages/dialog/sys_pos/sysPos.ts"],"sourcesContent":["import { Component, OnInit, OnChanges, SimpleChanges, Output, Input, EventEmitter } from '@angular/core';\r\nimport { CommonModule } from '@angular/common';\r\nimport { NzTagModule } from 'ng-zorro-antd/tag';\r\nimport { NzButtonModule } from 'ng-zorro-antd/button';\r\nimport * as _ from \"lodash\";\r\n\r\n@Component({\r\n selector: 'list-tag',\r\n templateUrl: `./index.html`,\r\n styleUrls: ['./index.less'],\r\n imports: [\r\n CommonModule,\r\n NzTagModule,\r\n NzButtonModule\r\n ]\r\n})\r\nexport class ListTagComponent implements OnInit, OnChanges {\r\n _selectData: any[] = [];\r\n\r\n listData: any[] = [];\r\n\r\n @Input()\r\n set selectData(value: any[]) {\r\n this._selectData = value;\r\n this.listData = _.cloneDeep(value);\r\n }\r\n get selectData() {\r\n return this._selectData;\r\n }\r\n\r\n @Output() tagRemove: EventEmitter<any> = new EventEmitter();\r\n\r\n constructor() { }\r\n\r\n ngOnInit() { }\r\n\r\n ngOnChanges(changes: SimpleChanges): void { }\r\n\r\n onClose(e: any) {\r\n this.listData = this.listData.filter((item: any, index: number) => {\r\n return index !== e;\r\n });\r\n this.tagRemove.emit(this.listData);\r\n }\r\n\r\n onCloseAll() {\r\n this.listData = [];\r\n this.tagRemove.emit(this.listData);\r\n }\r\n}\r\n","<div class=\"list-select\">\r\n <div class=\"tag-header\">\r\n <label>已选<span>({{ listData.length }})</span></label>\r\n <button nz-button nzType=\"default\" nzSize=\"small\" (click)=\"onCloseAll()\">清空</button>\r\n </div>\r\n <div class=\"tag-content\">\r\n <ng-container *ngFor=\"let item of listData;let i=index\">\r\n <nz-tag nzMode=\"closeable\" (nzOnClose)=\"onClose(i)\">{{item?.name}}</nz-tag>\r\n </ng-container>\r\n </div>\r\n</div>","import {\n Component,\n ChangeDetectorRef,\n OnInit,\n ViewChild,\n Input,\n OnChanges,\n SimpleChanges,\n OnDestroy\n} from '@angular/core';\n\nimport { CommonModule } from \"@angular/common\";\nimport { _HttpClient } from '@delon/theme';\nimport { TreeContentModule } from '@ebuilding/dialog/common/list-tree';\nimport { DialogListModule } from '@ebuilding/dialog/list';\nimport { ModuleAPI } from '@ebuilding/base/shared.var/shared.constant';\nimport { ListTagComponent } from \"../tag\";\nimport _ from 'lodash';\n\n@Component({\n selector: 'sys_position',\n templateUrl: './index.html',\n styleUrls: ['./index.less'],\n imports: [CommonModule, TreeContentModule, DialogListModule, ListTagComponent]\n})\nexport class GramSystemPosComponent implements OnInit, OnChanges, OnDestroy {\n\n _pageConfig: any = null;\n\n @Input()\n set pageConfig(value: any) {\n this._pageConfig = value;\n this.initPageData();\n }\n\n get pageConfig() {\n return this._pageConfig;\n }\n\n treeConfig = null;\n\n listConfig = null;\n\n tagPara: any = null;\n\n listSelectData: any[] = [];\n\n pageTreeId: any = \"1661698411971825665\";\n pageListId: any = \"2001596976208195586\";\n\n constructor(public http: _HttpClient, private changeDetector: ChangeDetectorRef) { }\n\n ngOnInit() { }\n\n ngOnChanges(changes: SimpleChanges): void {\n\n }\n\n ngOnDestroy(): void {\n\n }\n\n getPageSelectData() {\n return this.listSelectData;\n }\n\n initPageData() {\n this.initPageTree();\n this.initPageList(null);\n }\n\n initPageTree() {\n this.treeConfig = {\n selectTag: false,\n selectType: \"single\",\n selectData: [],\n listAPI: {\n url: `${ModuleAPI.user}/user/page/tree/searchByField`,\n param: { id: this.pageTreeId },\n },\n treeAPI: {\n url: `${ModuleAPI.user}/user/page/tree/${this.pageTreeId}`,\n param: null,\n },\n }\n }\n\n initPageList(orgId: any) {\n let selectType: any = \"single\";\n let selectData: any = [];\n let parameter: any = {};\n if (this.pageConfig) {\n if (this.pageConfig?.selectType) {\n selectType = this.pageConfig.selectType;\n }\n if (selectType != \"single\" && this.pageConfig?.selectData && Array.isArray(this.pageConfig?.selectData)) {\n selectData = this.pageConfig.selectData;\n }\n }\n if (orgId) {\n parameter = {\n \"p_position.org_id\": orgId\n }\n }\n\n this.listConfig = {\n pageId: this.pageListId,\n selectData: selectData,\n argInfo: {},\n parameter: parameter,\n selectType: selectType\n };\n }\n\n treeChange(e: any) {\n let treeDataId: any = null;\n if (e && Array.isArray(e) && e.length > 0) {\n treeDataId = e[0]?.id;\n }\n this.initPageList(treeDataId);\n }\n\n listSelected(e: any) {\n this.listSelectData = _.cloneDeep(e);\n }\n\n\n tagChange(e: any) {\n if (e && Array.isArray(e)) {\n this.listSelectData = e;\n } else {\n this.listSelectData = [];\n }\n if (this.pageConfig?.selectType == 'multiple') {\n this.tagPara = {\n rd: Math.random(),\n selectData: this.listSelectData\n };\n } else {\n this.listSelectData = [];\n }\n }\n}\n","<div class=\"org-tree\">\r\n <ng-container *ngIf=\"treeConfig\">\r\n <tree-content [config]=\"treeConfig\" (itemSelected)=\"treeChange($event)\"></tree-content>\r\n </ng-container>\r\n\r\n</div>\r\n<div class=\"emp-list\">\r\n <div class=\"emp-list-data\">\r\n <ng-container *ngIf=\"listConfig\">\r\n <page-dialog-list [config]=\"listConfig\" [tagData]=\"tagPara\"\r\n (itemSelected)=\"listSelected($event)\"></page-dialog-list>\r\n </ng-container>\r\n </div>\r\n\r\n <div class=\"emp-list-tag\">\r\n <list-tag [selectData]=\"listSelectData\" (tagRemove)=\"tagChange($event)\"></list-tag>\r\n </div>\r\n</div>","import { NgModule } from '@angular/core';\nimport { CommonModule } from '@angular/common';\nimport { ReactiveFormsModule, FormsModule } from '@angular/forms';\nimport { NzAvatarModule } from 'ng-zorro-antd/avatar';\nimport { NzModalModule } from 'ng-zorro-antd/modal';\n\nimport { GramSystemPosComponent } from './default/index';\n\nconst components: any[] = [GramSystemPosComponent];\n\n@NgModule({\n imports: [CommonModule, FormsModule, ReactiveFormsModule, NzAvatarModule, NzModalModule, ...components],\n exports: [...components],\n})\nexport class GramSystemPosModule { }\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":["_","i1","i3","i4"],"mappings":";;;;;;;;;;;;;;;;;;;;;;MAgBa,gBAAgB,CAAA;IAC3B,WAAW,GAAU,EAAE;IAEvB,QAAQ,GAAU,EAAE;IAEpB,IACI,UAAU,CAAC,KAAY,EAAA;AACzB,QAAA,IAAI,CAAC,WAAW,GAAG,KAAK;QACxB,IAAI,CAAC,QAAQ,GAAG,CAAC,CAAC,SAAS,CAAC,KAAK,CAAC;;AAEpC,IAAA,IAAI,UAAU,GAAA;QACZ,OAAO,IAAI,CAAC,WAAW;;AAGf,IAAA,SAAS,GAAsB,IAAI,YAAY,EAAE;AAE3D,IAAA,WAAA,GAAA;AAEA,IAAA,QAAQ;IAER,WAAW,CAAC,OAAsB,EAAA;AAElC,IAAA,OAAO,CAAC,CAAM,EAAA;AACZ,QAAA,IAAI,CAAC,QAAQ,GAAG,IAAI,CAAC,QAAQ,CAAC,MAAM,CAAC,CAAC,IAAS,EAAE,KAAa,KAAI;YAChE,OAAO,KAAK,KAAK,CAAC;AACpB,SAAC,CAAC;QACF,IAAI,CAAC,SAAS,CAAC,IAAI,CAAC,IAAI,CAAC,QAAQ,CAAC;;IAGpC,UAAU,GAAA;AACR,QAAA,IAAI,CAAC,QAAQ,GAAG,EAAE;QAClB,IAAI,CAAC,SAA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AAsB,aAAtB,sBAAsB,CAAA,EAAA,CAAA;yGAMpC,mBAAmB,EAAA,OAAA,EAAA,CAHpB,YAAY,EAAE,WAAW,EAAE,mBAAmB,EAAE,cAAc,EAAE,aAAa,EAAK,UAAU,CAAA,EAAA,CAAA;;4FAG3F,mBAAmB,EAAA,UAAA,EAAA,CAAA;kBAJ/B,QAAQ;AAAC,YAAA,IAAA,EAAA,CAAA;AACR,oBAAA,OAAO,EAAE,CAAC,YAAY,EAAE,WAAW,EAAE,mBAAmB,EAAE,cAAc,EAAE,aAAa,EAAE,GAAG,UAAU,CAAC;AACvG,oBAAA,OAAO,EAAE,CAAC,GAAG,UAAU,CAAC;AACzB,iBAAA;;;ACbD;;AAEG;;;;"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ebuilding/dialog",
3
- "version": "2.1.13",
3
+ "version": "2.1.14",
4
4
  "dependencies": {
5
5
  "extend": "undefined",
6
6
  "tslib": "^2.3.0"
@@ -19,53 +19,65 @@
19
19
  "types": "./basic/index.d.ts",
20
20
  "default": "./fesm2022/basic.mjs"
21
21
  },
22
- "./default": {
23
- "types": "./default/index.d.ts",
24
- "default": "./fesm2022/default.mjs"
25
- },
26
- "./epage": {
27
- "types": "./epage/index.d.ts",
28
- "default": "./fesm2022/epage.mjs"
29
- },
30
22
  "./dict": {
31
23
  "types": "./dict/index.d.ts",
32
24
  "default": "./fesm2022/dict.mjs"
33
25
  },
26
+ "./default": {
27
+ "types": "./default/index.d.ts",
28
+ "default": "./fesm2022/default.mjs"
29
+ },
34
30
  "./emp": {
35
31
  "types": "./emp/index.d.ts",
36
32
  "default": "./fesm2022/emp.mjs"
37
33
  },
34
+ "./epage": {
35
+ "types": "./epage/index.d.ts",
36
+ "default": "./fesm2022/epage.mjs"
37
+ },
38
38
  "./list": {
39
39
  "types": "./list/index.d.ts",
40
40
  "default": "./fesm2022/list.mjs"
41
41
  },
42
- "./org": {
43
- "types": "./org/index.d.ts",
44
- "default": "./fesm2022/org.mjs"
45
- },
46
42
  "./position": {
47
43
  "types": "./position/index.d.ts",
48
44
  "default": "./fesm2022/position.mjs"
49
45
  },
46
+ "./org": {
47
+ "types": "./org/index.d.ts",
48
+ "default": "./fesm2022/org.mjs"
49
+ },
50
50
  "./ref": {
51
51
  "types": "./ref/index.d.ts",
52
52
  "default": "./fesm2022/ref.mjs"
53
53
  },
54
- "./tree": {
55
- "types": "./tree/index.d.ts",
56
- "default": "./fesm2022/tree.mjs"
54
+ "./sys-org": {
55
+ "types": "./sys-org/index.d.ts",
56
+ "default": "./fesm2022/sysOrg.mjs"
57
57
  },
58
58
  "./common/list": {
59
59
  "types": "./common/list/index.d.ts",
60
60
  "default": "./fesm2022/common.list.mjs"
61
61
  },
62
+ "./common/list-tree": {
63
+ "types": "./common/list-tree/index.d.ts",
64
+ "default": "./fesm2022/common.list-tree.mjs"
65
+ },
62
66
  "./common/page.service": {
63
67
  "types": "./common/page.service/index.d.ts",
64
68
  "default": "./fesm2022/page.service.mjs"
65
69
  },
66
- "./common/list-tree": {
67
- "types": "./common/list-tree/index.d.ts",
68
- "default": "./fesm2022/common.list-tree.mjs"
70
+ "./sys_pos": {
71
+ "types": "./sys_pos/index.d.ts",
72
+ "default": "./fesm2022/sysPos.mjs"
73
+ },
74
+ "./sys_emp": {
75
+ "types": "./sys_emp/index.d.ts",
76
+ "default": "./fesm2022/sysEmp.mjs"
77
+ },
78
+ "./tree": {
79
+ "types": "./tree/index.d.ts",
80
+ "default": "./fesm2022/tree.mjs"
69
81
  }
70
82
  },
71
83
  "sideEffects": false
@@ -0,0 +1 @@
1
+ export * from './src/public_api';
@@ -0,0 +1,29 @@
1
+ import { ChangeDetectorRef, OnInit, OnChanges, SimpleChanges, OnDestroy } from '@angular/core';
2
+ import { _HttpClient } from '@delon/theme';
3
+ import * as i0 from "@angular/core";
4
+ export declare class GramSystemOrgComponent implements OnInit, OnChanges, OnDestroy {
5
+ http: _HttpClient;
6
+ private changeDetector;
7
+ _pageConfig: any;
8
+ set pageConfig(value: any);
9
+ get pageConfig(): any;
10
+ treeConfig: any;
11
+ listConfig: any;
12
+ tagPara: any;
13
+ listSelectData: any[];
14
+ pageTreeId: any;
15
+ pageListId: any;
16
+ constructor(http: _HttpClient, changeDetector: ChangeDetectorRef);
17
+ ngOnInit(): void;
18
+ ngOnChanges(changes: SimpleChanges): void;
19
+ ngOnDestroy(): void;
20
+ getPageSelectData(): any[];
21
+ initPageData(): void;
22
+ initPageTree(): void;
23
+ initPageList(orgId: any): void;
24
+ treeChange(e: any): void;
25
+ listSelected(e: any): void;
26
+ tagChange(e: any): void;
27
+ static ɵfac: i0.ɵɵFactoryDeclaration<GramSystemOrgComponent, never>;
28
+ static ɵcmp: i0.ɵɵComponentDeclaration<GramSystemOrgComponent, "sys_org", never, { "pageConfig": { "alias": "pageConfig"; "required": false; }; }, {}, never, never, true, never>;
29
+ }
@@ -0,0 +1,11 @@
1
+ import * as i0 from "@angular/core";
2
+ import * as i1 from "@angular/common";
3
+ import * as i2 from "@angular/forms";
4
+ import * as i3 from "ng-zorro-antd/avatar";
5
+ import * as i4 from "ng-zorro-antd/modal";
6
+ import * as i5 from "./default/index";
7
+ export declare class GramSystemOrgModule {
8
+ static ɵfac: i0.ɵɵFactoryDeclaration<GramSystemOrgModule, never>;
9
+ static ɵmod: i0.ɵɵNgModuleDeclaration<GramSystemOrgModule, never, [typeof i1.CommonModule, typeof i2.FormsModule, typeof i2.ReactiveFormsModule, typeof i3.NzAvatarModule, typeof i4.NzModalModule, typeof i5.GramSystemOrgComponent], [typeof i5.GramSystemOrgComponent]>;
10
+ static ɵinj: i0.ɵɵInjectorDeclaration<GramSystemOrgModule>;
11
+ }
@@ -0,0 +1,2 @@
1
+ export { GramSystemOrgModule } from './index.module';
2
+ export { GramSystemOrgComponent } from './default/index';
@@ -0,0 +1,16 @@
1
+ import { OnInit, OnChanges, SimpleChanges, EventEmitter } from '@angular/core';
2
+ import * as i0 from "@angular/core";
3
+ export declare class ListTagComponent implements OnInit, OnChanges {
4
+ _selectData: any[];
5
+ listData: any[];
6
+ set selectData(value: any[]);
7
+ get selectData(): any[];
8
+ tagRemove: EventEmitter<any>;
9
+ constructor();
10
+ ngOnInit(): void;
11
+ ngOnChanges(changes: SimpleChanges): void;
12
+ onClose(e: any): void;
13
+ onCloseAll(): void;
14
+ static ɵfac: i0.ɵɵFactoryDeclaration<ListTagComponent, never>;
15
+ static ɵcmp: i0.ɵɵComponentDeclaration<ListTagComponent, "list-tag", never, { "selectData": { "alias": "selectData"; "required": false; }; }, { "tagRemove": "tagRemove"; }, never, never, true, never>;
16
+ }
@@ -0,0 +1 @@
1
+ export * from './src/public_api';
@@ -0,0 +1,29 @@
1
+ import { ChangeDetectorRef, OnInit, OnChanges, SimpleChanges, OnDestroy } from '@angular/core';
2
+ import { _HttpClient } from '@delon/theme';
3
+ import * as i0 from "@angular/core";
4
+ export declare class GramSystemEmpComponent implements OnInit, OnChanges, OnDestroy {
5
+ http: _HttpClient;
6
+ private changeDetector;
7
+ _pageConfig: any;
8
+ set pageConfig(value: any);
9
+ get pageConfig(): any;
10
+ treeConfig: any;
11
+ listConfig: any;
12
+ tagPara: any;
13
+ listSelectData: any[];
14
+ pageTreeId: any;
15
+ pageListId: any;
16
+ constructor(http: _HttpClient, changeDetector: ChangeDetectorRef);
17
+ ngOnInit(): void;
18
+ ngOnChanges(changes: SimpleChanges): void;
19
+ ngOnDestroy(): void;
20
+ getPageSelectData(): any[];
21
+ initPageData(): void;
22
+ initPageTree(): void;
23
+ initPageList(orgId: any): void;
24
+ treeChange(e: any): void;
25
+ listSelected(e: any): void;
26
+ tagChange(e: any): void;
27
+ static ɵfac: i0.ɵɵFactoryDeclaration<GramSystemEmpComponent, never>;
28
+ static ɵcmp: i0.ɵɵComponentDeclaration<GramSystemEmpComponent, "sys_emp", never, { "pageConfig": { "alias": "pageConfig"; "required": false; }; }, {}, never, never, true, never>;
29
+ }
@@ -0,0 +1,11 @@
1
+ import * as i0 from "@angular/core";
2
+ import * as i1 from "@angular/common";
3
+ import * as i2 from "@angular/forms";
4
+ import * as i3 from "ng-zorro-antd/avatar";
5
+ import * as i4 from "ng-zorro-antd/modal";
6
+ import * as i5 from "./default/index";
7
+ export declare class GramSystemEmpModule {
8
+ static ɵfac: i0.ɵɵFactoryDeclaration<GramSystemEmpModule, never>;
9
+ static ɵmod: i0.ɵɵNgModuleDeclaration<GramSystemEmpModule, never, [typeof i1.CommonModule, typeof i2.FormsModule, typeof i2.ReactiveFormsModule, typeof i3.NzAvatarModule, typeof i4.NzModalModule, typeof i5.GramSystemEmpComponent], [typeof i5.GramSystemEmpComponent]>;
10
+ static ɵinj: i0.ɵɵInjectorDeclaration<GramSystemEmpModule>;
11
+ }
@@ -0,0 +1,2 @@
1
+ export { GramSystemEmpModule } from './index.module';
2
+ export { GramSystemEmpComponent } from './default/index';
@@ -0,0 +1,16 @@
1
+ import { OnInit, OnChanges, SimpleChanges, EventEmitter } from '@angular/core';
2
+ import * as i0 from "@angular/core";
3
+ export declare class ListTagComponent implements OnInit, OnChanges {
4
+ _selectData: any[];
5
+ listData: any[];
6
+ set selectData(value: any[]);
7
+ get selectData(): any[];
8
+ tagRemove: EventEmitter<any>;
9
+ constructor();
10
+ ngOnInit(): void;
11
+ ngOnChanges(changes: SimpleChanges): void;
12
+ onClose(e: any): void;
13
+ onCloseAll(): void;
14
+ static ɵfac: i0.ɵɵFactoryDeclaration<ListTagComponent, never>;
15
+ static ɵcmp: i0.ɵɵComponentDeclaration<ListTagComponent, "list-tag", never, { "selectData": { "alias": "selectData"; "required": false; }; }, { "tagRemove": "tagRemove"; }, never, never, true, never>;
16
+ }
@@ -0,0 +1 @@
1
+ export * from './src/public_api';
@@ -0,0 +1,29 @@
1
+ import { ChangeDetectorRef, OnInit, OnChanges, SimpleChanges, OnDestroy } from '@angular/core';
2
+ import { _HttpClient } from '@delon/theme';
3
+ import * as i0 from "@angular/core";
4
+ export declare class GramSystemPosComponent implements OnInit, OnChanges, OnDestroy {
5
+ http: _HttpClient;
6
+ private changeDetector;
7
+ _pageConfig: any;
8
+ set pageConfig(value: any);
9
+ get pageConfig(): any;
10
+ treeConfig: any;
11
+ listConfig: any;
12
+ tagPara: any;
13
+ listSelectData: any[];
14
+ pageTreeId: any;
15
+ pageListId: any;
16
+ constructor(http: _HttpClient, changeDetector: ChangeDetectorRef);
17
+ ngOnInit(): void;
18
+ ngOnChanges(changes: SimpleChanges): void;
19
+ ngOnDestroy(): void;
20
+ getPageSelectData(): any[];
21
+ initPageData(): void;
22
+ initPageTree(): void;
23
+ initPageList(orgId: any): void;
24
+ treeChange(e: any): void;
25
+ listSelected(e: any): void;
26
+ tagChange(e: any): void;
27
+ static ɵfac: i0.ɵɵFactoryDeclaration<GramSystemPosComponent, never>;
28
+ static ɵcmp: i0.ɵɵComponentDeclaration<GramSystemPosComponent, "sys_position", never, { "pageConfig": { "alias": "pageConfig"; "required": false; }; }, {}, never, never, true, never>;
29
+ }
@@ -0,0 +1,11 @@
1
+ import * as i0 from "@angular/core";
2
+ import * as i1 from "@angular/common";
3
+ import * as i2 from "@angular/forms";
4
+ import * as i3 from "ng-zorro-antd/avatar";
5
+ import * as i4 from "ng-zorro-antd/modal";
6
+ import * as i5 from "./default/index";
7
+ export declare class GramSystemPosModule {
8
+ static ɵfac: i0.ɵɵFactoryDeclaration<GramSystemPosModule, never>;
9
+ static ɵmod: i0.ɵɵNgModuleDeclaration<GramSystemPosModule, never, [typeof i1.CommonModule, typeof i2.FormsModule, typeof i2.ReactiveFormsModule, typeof i3.NzAvatarModule, typeof i4.NzModalModule, typeof i5.GramSystemPosComponent], [typeof i5.GramSystemPosComponent]>;
10
+ static ɵinj: i0.ɵɵInjectorDeclaration<GramSystemPosModule>;
11
+ }
@@ -0,0 +1,2 @@
1
+ export { GramSystemPosModule } from './index.module';
2
+ export { GramSystemPosComponent } from './default/index';
@@ -0,0 +1,16 @@
1
+ import { OnInit, OnChanges, SimpleChanges, EventEmitter } from '@angular/core';
2
+ import * as i0 from "@angular/core";
3
+ export declare class ListTagComponent implements OnInit, OnChanges {
4
+ _selectData: any[];
5
+ listData: any[];
6
+ set selectData(value: any[]);
7
+ get selectData(): any[];
8
+ tagRemove: EventEmitter<any>;
9
+ constructor();
10
+ ngOnInit(): void;
11
+ ngOnChanges(changes: SimpleChanges): void;
12
+ onClose(e: any): void;
13
+ onCloseAll(): void;
14
+ static ɵfac: i0.ɵɵFactoryDeclaration<ListTagComponent, never>;
15
+ static ɵcmp: i0.ɵɵComponentDeclaration<ListTagComponent, "list-tag", never, { "selectData": { "alias": "selectData"; "required": false; }; }, { "tagRemove": "tagRemove"; }, never, never, true, never>;
16
+ }