@ebuilding/dialog 2.0.0
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/LICENSE +0 -0
- package/README.md +0 -0
- package/basic/index.d.ts +1 -0
- package/basic/src/default/index.d.ts +42 -0
- package/basic/src/epage/index.d.ts +52 -0
- package/basic/src/index.module.d.ts +8 -0
- package/basic/src/public_api.d.ts +3 -0
- package/common/list/index.d.ts +1 -0
- package/common/list/src/component/card/index.d.ts +18 -0
- package/common/list/src/component/table/index.d.ts +18 -0
- package/common/list/src/component/table-tree/index.d.ts +16 -0
- package/common/list/src/default/index.d.ts +30 -0
- package/common/list/src/index.module.d.ts +10 -0
- package/common/list/src/public_api.d.ts +2 -0
- package/common/list/src/service/list.service.d.ts +38 -0
- package/common/list-tree/index.d.ts +1 -0
- package/common/list-tree/src/component/list/index.d.ts +16 -0
- package/common/list-tree/src/component/tree/index.d.ts +15 -0
- package/common/list-tree/src/default/index.d.ts +26 -0
- package/common/list-tree/src/index.module.d.ts +10 -0
- package/common/list-tree/src/main/index.d.ts +16 -0
- package/common/list-tree/src/public_api.d.ts +3 -0
- package/common/list-tree/src/service/tree.service.d.ts +61 -0
- package/common/page.service/index.d.ts +127 -0
- package/default/index.d.ts +1 -0
- package/default/src/index.module.d.ts +8 -0
- package/default/src/main/index.d.ts +18 -0
- package/default/src/public_api.d.ts +2 -0
- package/default/src/service/dialog.service.d.ts +14 -0
- package/default/src/tag/index.d.ts +14 -0
- package/dict/index.d.ts +1 -0
- package/dict/src/components/etable/index.d.ts +20 -0
- package/dict/src/components/eview/index.d.ts +20 -0
- package/dict/src/default/index.d.ts +21 -0
- package/dict/src/index.module.d.ts +9 -0
- package/dict/src/public_api.d.ts +2 -0
- package/emp/index.d.ts +1 -0
- package/emp/src/default/index.d.ts +16 -0
- package/emp/src/index.module.d.ts +9 -0
- package/emp/src/list/index.d.ts +22 -0
- package/emp/src/org/index.d.ts +45 -0
- package/emp/src/public_api.d.ts +2 -0
- package/epage/index.d.ts +1 -0
- package/epage/src/default/index.d.ts +61 -0
- package/epage/src/index.module.d.ts +7 -0
- package/epage/src/public_api.d.ts +2 -0
- package/fesm2022/basic.mjs +407 -0
- package/fesm2022/basic.mjs.map +1 -0
- package/fesm2022/common.list-tree.mjs +475 -0
- package/fesm2022/common.list-tree.mjs.map +1 -0
- package/fesm2022/common.list.mjs +315 -0
- package/fesm2022/common.list.mjs.map +1 -0
- package/fesm2022/default.mjs +168 -0
- package/fesm2022/default.mjs.map +1 -0
- package/fesm2022/dict.mjs +203 -0
- package/fesm2022/dict.mjs.map +1 -0
- package/fesm2022/ebuilding-dialog.mjs +6 -0
- package/fesm2022/ebuilding-dialog.mjs.map +1 -0
- package/fesm2022/emp.mjs +240 -0
- package/fesm2022/emp.mjs.map +1 -0
- package/fesm2022/epage.mjs +320 -0
- package/fesm2022/epage.mjs.map +1 -0
- package/fesm2022/list.mjs +150 -0
- package/fesm2022/list.mjs.map +1 -0
- package/fesm2022/org.mjs +139 -0
- package/fesm2022/org.mjs.map +1 -0
- package/fesm2022/page.service.mjs +701 -0
- package/fesm2022/page.service.mjs.map +1 -0
- package/fesm2022/position.mjs +316 -0
- package/fesm2022/position.mjs.map +1 -0
- package/fesm2022/ref.mjs +319 -0
- package/fesm2022/ref.mjs.map +1 -0
- package/fesm2022/tree.mjs +165 -0
- package/fesm2022/tree.mjs.map +1 -0
- package/index.d.ts +1 -0
- package/list/index.d.ts +1 -0
- package/list/src/default/index.d.ts +26 -0
- package/list/src/index.module.d.ts +7 -0
- package/list/src/public_api.d.ts +2 -0
- package/org/index.d.ts +1 -0
- package/org/src/default/index.d.ts +19 -0
- package/org/src/index.module.d.ts +8 -0
- package/org/src/info/index.d.ts +21 -0
- package/org/src/public_api.d.ts +2 -0
- package/package.json +72 -0
- package/position/index.d.ts +1 -0
- package/position/src/default/index.d.ts +18 -0
- package/position/src/index.module.d.ts +10 -0
- package/position/src/list/index.d.ts +22 -0
- package/position/src/org/index.d.ts +45 -0
- package/position/src/public_api.d.ts +2 -0
- package/position/src/service.d.ts +5 -0
- package/position/src/tree/index.d.ts +26 -0
- package/ref/index.d.ts +1 -0
- package/ref/src/default/index.d.ts +38 -0
- package/ref/src/index.module.d.ts +8 -0
- package/ref/src/main/index.d.ts +37 -0
- package/ref/src/public_api.d.ts +3 -0
- package/tree/index.d.ts +1 -0
- package/tree/src/default/index.d.ts +23 -0
- package/tree/src/index.module.d.ts +8 -0
- package/tree/src/page-tree/index.d.ts +29 -0
- package/tree/src/public_api.d.ts +3 -0
|
@@ -0,0 +1,315 @@
|
|
|
1
|
+
import * as i0 from '@angular/core';
|
|
2
|
+
import { EventEmitter, Output, Input, Directive, HostListener, Component, ViewContainerRef, ViewChild, NgModule } from '@angular/core';
|
|
3
|
+
import * as i2 from '@angular/common';
|
|
4
|
+
import { CommonModule } from '@angular/common';
|
|
5
|
+
import { FormsModule } from '@angular/forms';
|
|
6
|
+
import * as i3 from '@ebuilding/abc/nz-table';
|
|
7
|
+
import { GramDeonNZTableModule } from '@ebuilding/abc/nz-table';
|
|
8
|
+
import * as i1 from '@ebuilding/dialog/common/page.service';
|
|
9
|
+
import * as i3$1 from '@ebuilding/abc/nz-table-tree';
|
|
10
|
+
import { GramDeonNZTableTreeModule } from '@ebuilding/abc/nz-table-tree';
|
|
11
|
+
import * as i3$2 from '@ebuilding/abc/card';
|
|
12
|
+
import { GramDeonCardModule } from '@ebuilding/abc/card';
|
|
13
|
+
|
|
14
|
+
class ListService {
|
|
15
|
+
pageService;
|
|
16
|
+
constructor(pageService) {
|
|
17
|
+
this.pageService = pageService;
|
|
18
|
+
}
|
|
19
|
+
selectData = [];
|
|
20
|
+
/*
|
|
21
|
+
列表头集合
|
|
22
|
+
*/
|
|
23
|
+
listHeader = [];
|
|
24
|
+
/*
|
|
25
|
+
列表内集合
|
|
26
|
+
*/
|
|
27
|
+
listBody = [];
|
|
28
|
+
/*
|
|
29
|
+
列表总数
|
|
30
|
+
*/
|
|
31
|
+
listTotal = 0;
|
|
32
|
+
operationClick = new EventEmitter();
|
|
33
|
+
selectClick = new EventEmitter();
|
|
34
|
+
componentClick = new EventEmitter();
|
|
35
|
+
sortClick = new EventEmitter();
|
|
36
|
+
rowRuleClick = new EventEmitter();
|
|
37
|
+
/**
|
|
38
|
+
* 列排序事件
|
|
39
|
+
* @param e
|
|
40
|
+
*/
|
|
41
|
+
sortOrderChange(e) {
|
|
42
|
+
this.sortClick.emit(e);
|
|
43
|
+
}
|
|
44
|
+
/**
|
|
45
|
+
* 行-选中事件
|
|
46
|
+
* @param e
|
|
47
|
+
*/
|
|
48
|
+
selectDataChange(e) {
|
|
49
|
+
this.selectClick.emit(e);
|
|
50
|
+
}
|
|
51
|
+
/**
|
|
52
|
+
* 行-普通列点击事件
|
|
53
|
+
* @param e
|
|
54
|
+
*/
|
|
55
|
+
componentEvent(e) {
|
|
56
|
+
this.componentClick.emit(e);
|
|
57
|
+
}
|
|
58
|
+
/**
|
|
59
|
+
* 行-操作列点击事件
|
|
60
|
+
* @param e
|
|
61
|
+
*/
|
|
62
|
+
operationEvent(e) {
|
|
63
|
+
this.operationClick.emit(e);
|
|
64
|
+
}
|
|
65
|
+
rowRuleEvent(e) {
|
|
66
|
+
this.rowRuleClick.emit(e);
|
|
67
|
+
}
|
|
68
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: ListService, deps: "invalid", target: i0.ɵɵFactoryTarget.Directive });
|
|
69
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "19.2.15", type: ListService, isStandalone: true, inputs: { selectData: "selectData", listHeader: "listHeader", listBody: "listBody", listTotal: "listTotal" }, outputs: { operationClick: "operationClick", selectClick: "selectClick", componentClick: "componentClick", sortClick: "sortClick", rowRuleClick: "rowRuleClick" }, ngImport: i0 });
|
|
70
|
+
}
|
|
71
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: ListService, decorators: [{
|
|
72
|
+
type: Directive
|
|
73
|
+
}], ctorParameters: () => [{ type: undefined }], propDecorators: { selectData: [{
|
|
74
|
+
type: Input
|
|
75
|
+
}], listHeader: [{
|
|
76
|
+
type: Input
|
|
77
|
+
}], listBody: [{
|
|
78
|
+
type: Input
|
|
79
|
+
}], listTotal: [{
|
|
80
|
+
type: Input
|
|
81
|
+
}], operationClick: [{
|
|
82
|
+
type: Output
|
|
83
|
+
}], selectClick: [{
|
|
84
|
+
type: Output
|
|
85
|
+
}], componentClick: [{
|
|
86
|
+
type: Output
|
|
87
|
+
}], sortClick: [{
|
|
88
|
+
type: Output
|
|
89
|
+
}], rowRuleClick: [{
|
|
90
|
+
type: Output
|
|
91
|
+
}] } });
|
|
92
|
+
|
|
93
|
+
class ListTableComponent extends ListService {
|
|
94
|
+
elementRef;
|
|
95
|
+
basePageSrv;
|
|
96
|
+
pageLoad = true;
|
|
97
|
+
clientWidth = 0;
|
|
98
|
+
constructor(elementRef, basePageSrv) {
|
|
99
|
+
super(basePageSrv);
|
|
100
|
+
this.elementRef = elementRef;
|
|
101
|
+
this.basePageSrv = basePageSrv;
|
|
102
|
+
}
|
|
103
|
+
ngOnInit() { }
|
|
104
|
+
ngAfterViewInit() {
|
|
105
|
+
setTimeout(() => {
|
|
106
|
+
this.clientWidth = this.elementRef.nativeElement.clientWidth;
|
|
107
|
+
this.pageLoad = false;
|
|
108
|
+
}, 0);
|
|
109
|
+
}
|
|
110
|
+
ngOnChanges(change) { }
|
|
111
|
+
resize() {
|
|
112
|
+
this.resizeTable();
|
|
113
|
+
}
|
|
114
|
+
resizeTable() {
|
|
115
|
+
this.clientWidth = this.elementRef.nativeElement.clientWidth;
|
|
116
|
+
}
|
|
117
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: ListTableComponent, deps: [{ token: i0.ElementRef }, { token: i1.BasePageService }], target: i0.ɵɵFactoryTarget.Component });
|
|
118
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.15", type: ListTableComponent, isStandalone: true, selector: "list-table", host: { listeners: { "window:resize": "resize($event)" } }, usesInheritance: true, usesOnChanges: true, ngImport: i0, template: "<ng-container *ngIf=\"pageLoad==false\">\r\n <gram-nz-table [pageWidth]=\"clientWidth\" [pageConfig]=\"basePageSrv?.pageConfig?.list\"\r\n [header]=\"basePageSrv?.listHeader\" [total]=\"basePageSrv?.listTotal\" [nzData]=\"basePageSrv?.listBody\"\r\n [selectData]=\"basePageSrv?.selectData\" (operationClick)=\"operationEvent($event)\"\r\n (componentClick)=\"componentEvent($event)\" (selectChange)=\"selectDataChange($event)\"\r\n (sortOrderChange)=\"sortOrderChange($event)\" (rowRuleClick)=\"rowRuleEvent($event)\">\r\n </gram-nz-table>\r\n</ng-container>", styles: [""], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i2.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "ngmodule", type: FormsModule }, { kind: "ngmodule", type: GramDeonNZTableModule }, { kind: "component", type: i3.GramDeonNZTableComponent, selector: "gram-nz-table", inputs: ["id", "pageConfig", "header", "total", "nzData", "selectData", "pageWidth"], outputs: ["operationClick", "componentClick", "queryParamsChange", "selectChange", "sortOrderChange", "rowRuleClick"] }] });
|
|
119
|
+
}
|
|
120
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: ListTableComponent, decorators: [{
|
|
121
|
+
type: Component,
|
|
122
|
+
args: [{ selector: 'list-table', imports: [
|
|
123
|
+
CommonModule,
|
|
124
|
+
FormsModule,
|
|
125
|
+
GramDeonNZTableModule
|
|
126
|
+
], template: "<ng-container *ngIf=\"pageLoad==false\">\r\n <gram-nz-table [pageWidth]=\"clientWidth\" [pageConfig]=\"basePageSrv?.pageConfig?.list\"\r\n [header]=\"basePageSrv?.listHeader\" [total]=\"basePageSrv?.listTotal\" [nzData]=\"basePageSrv?.listBody\"\r\n [selectData]=\"basePageSrv?.selectData\" (operationClick)=\"operationEvent($event)\"\r\n (componentClick)=\"componentEvent($event)\" (selectChange)=\"selectDataChange($event)\"\r\n (sortOrderChange)=\"sortOrderChange($event)\" (rowRuleClick)=\"rowRuleEvent($event)\">\r\n </gram-nz-table>\r\n</ng-container>" }]
|
|
127
|
+
}], ctorParameters: () => [{ type: i0.ElementRef }, { type: i1.BasePageService }], propDecorators: { resize: [{
|
|
128
|
+
type: HostListener,
|
|
129
|
+
args: ['window:resize', ['$event']]
|
|
130
|
+
}] } });
|
|
131
|
+
|
|
132
|
+
class ListTableTreeComponent extends ListService {
|
|
133
|
+
elementRef;
|
|
134
|
+
basePageSrv;
|
|
135
|
+
pageLoad = true;
|
|
136
|
+
constructor(elementRef, basePageSrv) {
|
|
137
|
+
super(basePageSrv);
|
|
138
|
+
this.elementRef = elementRef;
|
|
139
|
+
this.basePageSrv = basePageSrv;
|
|
140
|
+
}
|
|
141
|
+
ngOnInit() { }
|
|
142
|
+
ngAfterViewInit() {
|
|
143
|
+
setTimeout(() => {
|
|
144
|
+
this.pageLoad = false;
|
|
145
|
+
}, 0);
|
|
146
|
+
}
|
|
147
|
+
ngOnChanges(change) { }
|
|
148
|
+
get clientWidth() {
|
|
149
|
+
if (this.elementRef &&
|
|
150
|
+
this.elementRef.nativeElement &&
|
|
151
|
+
this.elementRef.nativeElement.clientWidth &&
|
|
152
|
+
this.elementRef.nativeElement.clientWidth > 0) {
|
|
153
|
+
return this.elementRef.nativeElement.clientWidth;
|
|
154
|
+
}
|
|
155
|
+
return 0;
|
|
156
|
+
}
|
|
157
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: ListTableTreeComponent, deps: [{ token: i0.ElementRef }, { token: i1.BasePageService }], target: i0.ɵɵFactoryTarget.Component });
|
|
158
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.15", type: ListTableTreeComponent, isStandalone: true, selector: "list-table-tree", usesInheritance: true, usesOnChanges: true, ngImport: i0, template: "<ng-container *ngIf=\"pageLoad==false\">\r\n <gram-nz-table-tree [pageConfig]=\"basePageSrv?.pageConfig?.list\" [header]=\"basePageSrv?.listHeader\"\r\n [total]=\"basePageSrv?.listTotal\" [nzData]=\"basePageSrv?.listBody\" [selectData]=\"basePageSrv?.selectData\"\r\n (operationClick)=\"operationEvent($event)\" (componentClick)=\"componentEvent($event)\"\r\n (selectChange)=\"selectDataChange($event)\" (sortOrderChange)=\"sortOrderChange($event)\">\r\n </gram-nz-table-tree>\r\n</ng-container>", styles: [""], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i2.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "ngmodule", type: GramDeonNZTableTreeModule }, { kind: "component", type: i3$1.GramDeonNZTableTreeComponent, selector: "gram-nz-table-tree", inputs: ["id", "pageConfig", "header", "total", "nzData", "selectData"], outputs: ["operationClick", "componentClick", "queryParamsChange", "selectChange", "rowDataChange"] }] });
|
|
159
|
+
}
|
|
160
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: ListTableTreeComponent, decorators: [{
|
|
161
|
+
type: Component,
|
|
162
|
+
args: [{ selector: 'list-table-tree', imports: [
|
|
163
|
+
CommonModule,
|
|
164
|
+
GramDeonNZTableTreeModule
|
|
165
|
+
], template: "<ng-container *ngIf=\"pageLoad==false\">\r\n <gram-nz-table-tree [pageConfig]=\"basePageSrv?.pageConfig?.list\" [header]=\"basePageSrv?.listHeader\"\r\n [total]=\"basePageSrv?.listTotal\" [nzData]=\"basePageSrv?.listBody\" [selectData]=\"basePageSrv?.selectData\"\r\n (operationClick)=\"operationEvent($event)\" (componentClick)=\"componentEvent($event)\"\r\n (selectChange)=\"selectDataChange($event)\" (sortOrderChange)=\"sortOrderChange($event)\">\r\n </gram-nz-table-tree>\r\n</ng-container>" }]
|
|
166
|
+
}], ctorParameters: () => [{ type: i0.ElementRef }, { type: i1.BasePageService }] });
|
|
167
|
+
|
|
168
|
+
class ListCardComponent extends ListService {
|
|
169
|
+
elementRef;
|
|
170
|
+
basePageSrv;
|
|
171
|
+
pageLoad = true;
|
|
172
|
+
clientWidth = 0;
|
|
173
|
+
constructor(elementRef, basePageSrv) {
|
|
174
|
+
super(basePageSrv);
|
|
175
|
+
this.elementRef = elementRef;
|
|
176
|
+
this.basePageSrv = basePageSrv;
|
|
177
|
+
}
|
|
178
|
+
ngOnInit() { }
|
|
179
|
+
ngAfterViewInit() {
|
|
180
|
+
setTimeout(() => {
|
|
181
|
+
this.clientWidth = this.elementRef.nativeElement.clientWidth;
|
|
182
|
+
this.pageLoad = false;
|
|
183
|
+
}, 0);
|
|
184
|
+
}
|
|
185
|
+
ngOnChanges(change) { }
|
|
186
|
+
resize() {
|
|
187
|
+
this.resizeTable();
|
|
188
|
+
}
|
|
189
|
+
resizeTable() {
|
|
190
|
+
this.clientWidth = this.elementRef.nativeElement.clientWidth;
|
|
191
|
+
}
|
|
192
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: ListCardComponent, deps: [{ token: i0.ElementRef }, { token: i1.BasePageService }], target: i0.ɵɵFactoryTarget.Component });
|
|
193
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.15", type: ListCardComponent, isStandalone: true, selector: "list-card", host: { listeners: { "window:resize": "resize($event)" } }, usesInheritance: true, usesOnChanges: true, ngImport: i0, template: "<ng-container *ngIf=\"pageLoad==false\">\r\n <gram-card [ngClass]=\"{'card-block': basePageSrv?.pageConfig?.list?.izBlock}\" [loading]=\"basePageSrv?.loading\"\r\n [pageConfig]=\"basePageSrv?.pageConfig?.list\" [cardConfig]=\"basePageSrv?.cardConfig\"\r\n [header]=\"basePageSrv?.listHeader\" [total]=\"basePageSrv?.listTotal\" [nzData]=\"basePageSrv?.listBody\"\r\n [selectData]=\"basePageSrv?.selectData\" (operationClick)=\"operationEvent($event)\"\r\n (componentClick)=\"componentEvent($event)\" (selectChange)=\"selectDataChange($event)\"\r\n (sortOrderChange)=\"sortOrderChange($event)\" (rowRuleClick)=\"rowRuleEvent($event)\">\r\n </gram-card>\r\n</ng-container>", styles: [":host ::ng-deep{display:inline-table;width:100%;height:100%;overflow:auto}:host ::ng-deep gram-card{height:100%}:host ::ng-deep .card-list{padding:0 0 15px;background:#edeff3;border-radius:8px}:host ::ng-deep .card-block card-column{float:left;width:300px;margin-right:0}:host ::ng-deep .card-block card-column+card-column{margin-right:0}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i2.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i2.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "ngmodule", type: FormsModule }, { kind: "ngmodule", type: GramDeonCardModule }, { kind: "component", type: i3$2.GramDeonCardComponent, selector: "gram-card", inputs: ["id", "loading", "pageConfig", "cardConfig", "header", "total", "nzData", "selectData"], outputs: ["operationClick", "rowRuleClick", "componentClick", "selectChange"] }] });
|
|
194
|
+
}
|
|
195
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: ListCardComponent, decorators: [{
|
|
196
|
+
type: Component,
|
|
197
|
+
args: [{ selector: 'list-card', imports: [
|
|
198
|
+
CommonModule,
|
|
199
|
+
FormsModule,
|
|
200
|
+
GramDeonCardModule
|
|
201
|
+
], template: "<ng-container *ngIf=\"pageLoad==false\">\r\n <gram-card [ngClass]=\"{'card-block': basePageSrv?.pageConfig?.list?.izBlock}\" [loading]=\"basePageSrv?.loading\"\r\n [pageConfig]=\"basePageSrv?.pageConfig?.list\" [cardConfig]=\"basePageSrv?.cardConfig\"\r\n [header]=\"basePageSrv?.listHeader\" [total]=\"basePageSrv?.listTotal\" [nzData]=\"basePageSrv?.listBody\"\r\n [selectData]=\"basePageSrv?.selectData\" (operationClick)=\"operationEvent($event)\"\r\n (componentClick)=\"componentEvent($event)\" (selectChange)=\"selectDataChange($event)\"\r\n (sortOrderChange)=\"sortOrderChange($event)\" (rowRuleClick)=\"rowRuleEvent($event)\">\r\n </gram-card>\r\n</ng-container>", styles: [":host ::ng-deep{display:inline-table;width:100%;height:100%;overflow:auto}:host ::ng-deep gram-card{height:100%}:host ::ng-deep .card-list{padding:0 0 15px;background:#edeff3;border-radius:8px}:host ::ng-deep .card-block card-column{float:left;width:300px;margin-right:0}:host ::ng-deep .card-block card-column+card-column{margin-right:0}\n"] }]
|
|
202
|
+
}], ctorParameters: () => [{ type: i0.ElementRef }, { type: i1.BasePageService }], propDecorators: { resize: [{
|
|
203
|
+
type: HostListener,
|
|
204
|
+
args: ['window:resize', ['$event']]
|
|
205
|
+
}] } });
|
|
206
|
+
|
|
207
|
+
const dynamicComponents = {
|
|
208
|
+
table: ListTableComponent,
|
|
209
|
+
table_tree: ListTableTreeComponent,
|
|
210
|
+
card: ListCardComponent
|
|
211
|
+
};
|
|
212
|
+
class ListContentComponent {
|
|
213
|
+
elementRef;
|
|
214
|
+
componentFactoryResolver;
|
|
215
|
+
type = 'table';
|
|
216
|
+
config = null;
|
|
217
|
+
selectChange = new EventEmitter();
|
|
218
|
+
sortClick = new EventEmitter();
|
|
219
|
+
componentClick = new EventEmitter();
|
|
220
|
+
rowRuleClick = new EventEmitter();
|
|
221
|
+
operationClick = new EventEmitter();
|
|
222
|
+
componentHost;
|
|
223
|
+
component;
|
|
224
|
+
constructor(elementRef, componentFactoryResolver) {
|
|
225
|
+
this.elementRef = elementRef;
|
|
226
|
+
this.componentFactoryResolver = componentFactoryResolver;
|
|
227
|
+
}
|
|
228
|
+
ngOnInit() { }
|
|
229
|
+
ngAfterViewInit() { }
|
|
230
|
+
ngOnChanges(change) {
|
|
231
|
+
if (change['config'] && this.config) {
|
|
232
|
+
this.renderComponent();
|
|
233
|
+
}
|
|
234
|
+
}
|
|
235
|
+
onRowMove(e) { }
|
|
236
|
+
onFilter(e) { }
|
|
237
|
+
onSelect(e) { }
|
|
238
|
+
onReorder(e) { }
|
|
239
|
+
onResize(e) { }
|
|
240
|
+
onSort(e) { }
|
|
241
|
+
renderComponent() {
|
|
242
|
+
if (this.config.type) {
|
|
243
|
+
this.type = this.config.type;
|
|
244
|
+
}
|
|
245
|
+
else {
|
|
246
|
+
this.type = 'table';
|
|
247
|
+
}
|
|
248
|
+
if (!dynamicComponents[this.type]) {
|
|
249
|
+
const supportedTypes = Object.keys(dynamicComponents).join(', ');
|
|
250
|
+
}
|
|
251
|
+
if (this.componentHost) {
|
|
252
|
+
this.componentHost.clear();
|
|
253
|
+
const compFactory = this.componentFactoryResolver.resolveComponentFactory(dynamicComponents[this.type]);
|
|
254
|
+
this.component = this.componentHost.createComponent(compFactory);
|
|
255
|
+
this.component.instance.selectClick.subscribe((res) => {
|
|
256
|
+
this.selectChange.emit(res);
|
|
257
|
+
});
|
|
258
|
+
this.component.instance.sortClick.subscribe((res) => {
|
|
259
|
+
this.sortClick.emit(res);
|
|
260
|
+
});
|
|
261
|
+
this.component.instance.componentClick.subscribe((res) => {
|
|
262
|
+
this.componentClick.emit(res);
|
|
263
|
+
});
|
|
264
|
+
this.component.instance.rowRuleClick.subscribe((res) => {
|
|
265
|
+
this.rowRuleClick.emit(res);
|
|
266
|
+
});
|
|
267
|
+
this.component.instance.operationClick.subscribe((res) => {
|
|
268
|
+
this.operationClick.emit(res);
|
|
269
|
+
});
|
|
270
|
+
}
|
|
271
|
+
}
|
|
272
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: ListContentComponent, deps: [{ token: i0.ElementRef }, { token: i0.ComponentFactoryResolver }], target: i0.ɵɵFactoryTarget.Component });
|
|
273
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.15", type: ListContentComponent, isStandalone: true, selector: "list-content", inputs: { config: "config" }, outputs: { selectChange: "selectChange", sortClick: "sortClick", componentClick: "componentClick", rowRuleClick: "rowRuleClick", operationClick: "operationClick" }, viewQueries: [{ propertyName: "componentHost", first: true, predicate: ["componentHost"], descendants: true, read: ViewContainerRef, static: true }], usesOnChanges: true, ngImport: i0, template: "<ng-container #componentHost> </ng-container>\r\n", styles: [""] });
|
|
274
|
+
}
|
|
275
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: ListContentComponent, decorators: [{
|
|
276
|
+
type: Component,
|
|
277
|
+
args: [{ selector: 'list-content', template: "<ng-container #componentHost> </ng-container>\r\n" }]
|
|
278
|
+
}], ctorParameters: () => [{ type: i0.ElementRef }, { type: i0.ComponentFactoryResolver }], propDecorators: { config: [{
|
|
279
|
+
type: Input
|
|
280
|
+
}], selectChange: [{
|
|
281
|
+
type: Output
|
|
282
|
+
}], sortClick: [{
|
|
283
|
+
type: Output
|
|
284
|
+
}], componentClick: [{
|
|
285
|
+
type: Output
|
|
286
|
+
}], rowRuleClick: [{
|
|
287
|
+
type: Output
|
|
288
|
+
}], operationClick: [{
|
|
289
|
+
type: Output
|
|
290
|
+
}], componentHost: [{
|
|
291
|
+
type: ViewChild,
|
|
292
|
+
args: ['componentHost', { read: ViewContainerRef, static: true }]
|
|
293
|
+
}] } });
|
|
294
|
+
|
|
295
|
+
const COMPONENTS = [ListContentComponent];
|
|
296
|
+
const COMPONENTS_NOROUNT = [ListCardComponent, ListTableComponent, ListTableTreeComponent];
|
|
297
|
+
class ListContentModule {
|
|
298
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: ListContentModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
299
|
+
static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "19.2.15", ngImport: i0, type: ListContentModule, imports: [ListContentComponent, ListCardComponent, ListTableComponent, ListTableTreeComponent], exports: [ListContentComponent] });
|
|
300
|
+
static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: ListContentModule, imports: [COMPONENTS_NOROUNT] });
|
|
301
|
+
}
|
|
302
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: ListContentModule, decorators: [{
|
|
303
|
+
type: NgModule,
|
|
304
|
+
args: [{
|
|
305
|
+
imports: [...COMPONENTS, ...COMPONENTS_NOROUNT],
|
|
306
|
+
exports: [...COMPONENTS],
|
|
307
|
+
}]
|
|
308
|
+
}] });
|
|
309
|
+
|
|
310
|
+
/**
|
|
311
|
+
* Generated bundle index. Do not edit.
|
|
312
|
+
*/
|
|
313
|
+
|
|
314
|
+
export { ListContentComponent, ListContentModule };
|
|
315
|
+
//# sourceMappingURL=common.list.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"common.list.mjs","sources":["../../../../packages/dialog/common/list/src/service/list.service.ts","../../../../packages/dialog/common/list/src/component/table/index.ts","../../../../packages/dialog/common/list/src/component/table/index.html","../../../../packages/dialog/common/list/src/component/table-tree/index.ts","../../../../packages/dialog/common/list/src/component/table-tree/index.html","../../../../packages/dialog/common/list/src/component/card/index.ts","../../../../packages/dialog/common/list/src/component/card/index.html","../../../../packages/dialog/common/list/src/default/index.ts","../../../../packages/dialog/common/list/src/default/index.html","../../../../packages/dialog/common/list/src/index.module.ts","../../../../packages/dialog/common/list/common.list.ts"],"sourcesContent":["import { Directive, EventEmitter, Input, Output } from '@angular/core';\r\n\r\n@Directive()\r\nexport abstract class ListService {\r\n constructor(public pageService: any) { }\r\n\r\n @Input() selectData: any[] = [];\r\n /*\r\n 列表头集合\r\n */\r\n @Input() listHeader: any[] = [];\r\n\r\n /*\r\n 列表内集合 \r\n */\r\n @Input() listBody: any[] = [];\r\n\r\n /*\r\n 列表总数 \r\n */\r\n @Input() listTotal = 0;\r\n\r\n @Output() operationClick: EventEmitter<any> = new EventEmitter();\r\n\r\n @Output() selectClick: EventEmitter<any> = new EventEmitter();\r\n\r\n @Output() componentClick: EventEmitter<any> = new EventEmitter();\r\n\r\n @Output() sortClick: EventEmitter<any> = new EventEmitter();\r\n\r\n @Output() rowRuleClick: EventEmitter<any> = new EventEmitter();\r\n\r\n /**\r\n * 列排序事件\r\n * @param e\r\n */\r\n sortOrderChange(e: any) {\r\n this.sortClick.emit(e);\r\n }\r\n\r\n /**\r\n * 行-选中事件\r\n * @param e\r\n */\r\n selectDataChange(e: any) {\r\n this.selectClick.emit(e);\r\n }\r\n\r\n /**\r\n * 行-普通列点击事件\r\n * @param e\r\n */\r\n componentEvent(e: any) {\r\n this.componentClick.emit(e);\r\n }\r\n\r\n /**\r\n * 行-操作列点击事件\r\n * @param e\r\n */\r\n operationEvent(e: any) {\r\n this.operationClick.emit(e);\r\n }\r\n\r\n rowRuleEvent(e: any) {\r\n this.rowRuleClick.emit(e);\r\n }\r\n}\r\n","import { Component, OnInit, AfterViewInit, OnChanges, ElementRef, HostListener } from '@angular/core';\r\nimport { CommonModule } from '@angular/common';\r\nimport { FormsModule } from '@angular/forms';\r\n\r\nimport { GramDeonNZTableModule } from '@ebuilding/abc/nz-table';\r\nimport { BasePageService } from '@ebuilding/dialog/common/page.service';\r\nimport { ListService } from '../../service/list.service';\r\n\r\n@Component({\r\n selector: 'list-table',\r\n templateUrl: './index.html',\r\n styleUrls: ['./index.less'],\r\n imports: [\r\n CommonModule,\r\n FormsModule,\r\n GramDeonNZTableModule\r\n ]\r\n})\r\nexport class ListTableComponent extends ListService implements OnInit, AfterViewInit, OnChanges {\r\n pageLoad: boolean = true;\r\n clientWidth: number = 0;\r\n constructor(public elementRef: ElementRef, public basePageSrv: BasePageService) {\r\n super(basePageSrv);\r\n }\r\n ngOnInit(): void { }\r\n\r\n ngAfterViewInit() {\r\n setTimeout(() => {\r\n this.clientWidth = this.elementRef.nativeElement.clientWidth;\r\n this.pageLoad = false;\r\n }, 0);\r\n }\r\n\r\n ngOnChanges(change: any) { }\r\n\r\n @HostListener('window:resize', ['$event'])\r\n resize() {\r\n this.resizeTable();\r\n }\r\n resizeTable() {\r\n this.clientWidth = this.elementRef.nativeElement.clientWidth;\r\n }\r\n}\r\n","<ng-container *ngIf=\"pageLoad==false\">\r\n <gram-nz-table [pageWidth]=\"clientWidth\" [pageConfig]=\"basePageSrv?.pageConfig?.list\"\r\n [header]=\"basePageSrv?.listHeader\" [total]=\"basePageSrv?.listTotal\" [nzData]=\"basePageSrv?.listBody\"\r\n [selectData]=\"basePageSrv?.selectData\" (operationClick)=\"operationEvent($event)\"\r\n (componentClick)=\"componentEvent($event)\" (selectChange)=\"selectDataChange($event)\"\r\n (sortOrderChange)=\"sortOrderChange($event)\" (rowRuleClick)=\"rowRuleEvent($event)\">\r\n </gram-nz-table>\r\n</ng-container>","import { Component, OnInit, AfterViewInit, OnChanges, ElementRef } from '@angular/core';\r\nimport { CommonModule } from '@angular/common';\r\n\r\nimport { GramDeonNZTableTreeModule } from '@ebuilding/abc/nz-table-tree';\r\nimport { BasePageService } from '@ebuilding/dialog/common/page.service';\r\nimport { ListService } from '../../service/list.service';\r\n\r\n@Component({\r\n selector: 'list-table-tree',\r\n templateUrl: './index.html',\r\n styleUrls: ['./index.less'],\r\n imports: [\r\n CommonModule,\r\n GramDeonNZTableTreeModule\r\n ]\r\n})\r\nexport class ListTableTreeComponent extends ListService implements OnInit, AfterViewInit, OnChanges {\r\n pageLoad: boolean = true;\r\n constructor(public elementRef: ElementRef, public basePageSrv: BasePageService) {\r\n super(basePageSrv);\r\n }\r\n ngOnInit(): void { }\r\n\r\n ngAfterViewInit() {\r\n setTimeout(() => {\r\n this.pageLoad = false;\r\n }, 0);\r\n }\r\n\r\n ngOnChanges(change: any) { }\r\n\r\n get clientWidth() {\r\n if (\r\n this.elementRef!! &&\r\n this.elementRef.nativeElement!! &&\r\n this.elementRef.nativeElement.clientWidth!! &&\r\n this.elementRef.nativeElement.clientWidth > 0\r\n ) {\r\n return this.elementRef.nativeElement.clientWidth;\r\n }\r\n return 0;\r\n }\r\n}\r\n","<ng-container *ngIf=\"pageLoad==false\">\r\n <gram-nz-table-tree [pageConfig]=\"basePageSrv?.pageConfig?.list\" [header]=\"basePageSrv?.listHeader\"\r\n [total]=\"basePageSrv?.listTotal\" [nzData]=\"basePageSrv?.listBody\" [selectData]=\"basePageSrv?.selectData\"\r\n (operationClick)=\"operationEvent($event)\" (componentClick)=\"componentEvent($event)\"\r\n (selectChange)=\"selectDataChange($event)\" (sortOrderChange)=\"sortOrderChange($event)\">\r\n </gram-nz-table-tree>\r\n</ng-container>","import { Component, OnInit, AfterViewInit, OnChanges, ElementRef, HostListener } from '@angular/core';\r\nimport { CommonModule } from '@angular/common';\r\nimport { FormsModule } from '@angular/forms';\r\n\r\nimport { GramDeonCardModule } from '@ebuilding/abc/card';\r\nimport { BasePageService } from '@ebuilding/dialog/common/page.service';\r\nimport { ListService } from '../../service/list.service';\r\n\r\n@Component({\r\n selector: 'list-card',\r\n templateUrl: './index.html',\r\n styleUrls: ['./index.less'],\r\n imports: [\r\n CommonModule,\r\n FormsModule,\r\n GramDeonCardModule\r\n ]\r\n})\r\nexport class ListCardComponent extends ListService implements OnInit, AfterViewInit, OnChanges {\r\n pageLoad: boolean = true;\r\n clientWidth: number = 0;\r\n constructor(public elementRef: ElementRef, public basePageSrv: BasePageService) {\r\n super(basePageSrv);\r\n }\r\n ngOnInit(): void { }\r\n\r\n ngAfterViewInit() {\r\n setTimeout(() => {\r\n this.clientWidth = this.elementRef.nativeElement.clientWidth;\r\n this.pageLoad = false;\r\n }, 0);\r\n }\r\n\r\n ngOnChanges(change: any) { }\r\n\r\n @HostListener('window:resize', ['$event'])\r\n resize() {\r\n this.resizeTable();\r\n }\r\n resizeTable() {\r\n this.clientWidth = this.elementRef.nativeElement.clientWidth;\r\n }\r\n}\r\n","<ng-container *ngIf=\"pageLoad==false\">\r\n <gram-card [ngClass]=\"{'card-block': basePageSrv?.pageConfig?.list?.izBlock}\" [loading]=\"basePageSrv?.loading\"\r\n [pageConfig]=\"basePageSrv?.pageConfig?.list\" [cardConfig]=\"basePageSrv?.cardConfig\"\r\n [header]=\"basePageSrv?.listHeader\" [total]=\"basePageSrv?.listTotal\" [nzData]=\"basePageSrv?.listBody\"\r\n [selectData]=\"basePageSrv?.selectData\" (operationClick)=\"operationEvent($event)\"\r\n (componentClick)=\"componentEvent($event)\" (selectChange)=\"selectDataChange($event)\"\r\n (sortOrderChange)=\"sortOrderChange($event)\" (rowRuleClick)=\"rowRuleEvent($event)\">\r\n </gram-card>\r\n</ng-container>","import {\r\n Component,\r\n OnInit,\r\n ViewChild,\r\n OnChanges,\r\n ElementRef,\r\n ComponentFactoryResolver,\r\n ViewContainerRef,\r\n ComponentRef,\r\n ComponentFactory,\r\n AfterViewInit,\r\n Input,\r\n Output,\r\n EventEmitter,\r\n} from '@angular/core';\r\n\r\nimport { ListTableComponent } from '../component/table';\r\nimport { ListTableTreeComponent } from '../component/table-tree';\r\nimport { ListCardComponent } from '../component/card';\r\nimport _ from 'lodash';\r\n\r\nexport const dynamicComponents: any = {\r\n table: ListTableComponent,\r\n table_tree: ListTableTreeComponent,\r\n card: ListCardComponent\r\n};\r\n\r\n@Component({\r\n selector: 'list-content',\r\n templateUrl: './index.html',\r\n styleUrls: ['./index.less']\r\n})\r\nexport class ListContentComponent implements OnInit, AfterViewInit, OnChanges {\r\n type: string = 'table';\r\n @Input() config: any = null;\r\n\r\n @Output() selectChange: EventEmitter<any> = new EventEmitter();\r\n @Output() sortClick: EventEmitter<any> = new EventEmitter();\r\n @Output() componentClick: EventEmitter<any> = new EventEmitter();\r\n @Output() rowRuleClick: EventEmitter<any> = new EventEmitter();\r\n @Output() operationClick: EventEmitter<any> = new EventEmitter();\r\n\r\n @ViewChild('componentHost', { read: ViewContainerRef, static: true })\r\n componentHost: ViewContainerRef | undefined;\r\n component: ComponentRef<ListTableComponent> | undefined;\r\n\r\n constructor(private elementRef: ElementRef, public componentFactoryResolver: ComponentFactoryResolver) { }\r\n\r\n ngOnInit() { }\r\n\r\n ngAfterViewInit() { }\r\n\r\n ngOnChanges(change: any) {\r\n if (change['config'] && this.config!!) {\r\n this.renderComponent();\r\n }\r\n }\r\n\r\n onRowMove(e: any) { }\r\n\r\n onFilter(e: any) { }\r\n\r\n onSelect(e: any) { }\r\n\r\n onReorder(e: any) { }\r\n\r\n onResize(e: any) { }\r\n\r\n onSort(e: any) { }\r\n\r\n private renderComponent() {\r\n if (this.config.type!!) {\r\n this.type = this.config.type;\r\n } else {\r\n this.type = 'table';\r\n }\r\n\r\n if (!dynamicComponents[this.type]) {\r\n const supportedTypes = Object.keys(dynamicComponents).join(', ');\r\n }\r\n\r\n if (this.componentHost) {\r\n this.componentHost.clear();\r\n const compFactory: ComponentFactory<any> = this.componentFactoryResolver.resolveComponentFactory(dynamicComponents[this.type]);\r\n this.component = this.componentHost.createComponent(compFactory);\r\n\r\n this.component.instance.selectClick.subscribe((res: any) => {\r\n this.selectChange.emit(res);\r\n });\r\n\r\n this.component.instance.sortClick.subscribe((res: any) => {\r\n this.sortClick.emit(res);\r\n });\r\n\r\n this.component.instance.componentClick.subscribe((res: any) => {\r\n this.componentClick.emit(res);\r\n });\r\n\r\n this.component.instance.rowRuleClick.subscribe((res: any) => {\r\n this.rowRuleClick.emit(res);\r\n });\r\n\r\n this.component.instance.operationClick.subscribe((res: any) => {\r\n this.operationClick.emit(res);\r\n });\r\n\r\n }\r\n }\r\n}\r\n","<ng-container #componentHost> </ng-container>\r\n","import { NgModule } from '@angular/core';\r\nimport { ListTableComponent } from './component/table';\r\nimport { ListTableTreeComponent } from './component/table-tree';\r\nimport { ListCardComponent } from './component/card';\r\nimport { ListContentComponent } from './default/index';\r\n\r\nconst COMPONENTS: any[] = [ListContentComponent];\r\n\r\nconst COMPONENTS_NOROUNT: any = [ListCardComponent, ListTableComponent, ListTableTreeComponent];\r\n\r\n@NgModule({\r\n imports: [...COMPONENTS, ...COMPONENTS_NOROUNT],\r\n exports: [...COMPONENTS],\r\n})\r\nexport class ListContentModule { }\r\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":["i3"],"mappings":";;;;;;;;;;;;;MAGsB,WAAW,CAAA;AACZ,IAAA,WAAA;AAAnB,IAAA,WAAA,CAAmB,WAAgB,EAAA;QAAhB,IAAW,CAAA,WAAA,GAAX,WAAW;;IAErB,UAAU,GAAU,EAAE;AAC/B;;AAEE;IACO,UAAU,GAAU,EAAE;AAE/B;;AAEE;IACO,QAAQ,GAAU,EAAE;AAE7B;;AAEE;IACO,SAAS,GAAG,CAAC;AAEZ,IAAA,cAAc,GAAsB,IAAI,YAAY,EAAE;AAEtD,IAAA,WAAW,GAAsB,IAAI,YAAY,EAAE;AAEnD,IAAA,cAAc,GAAsB,IAAI,YAAY,EAAE;AAEtD,IAAA,SAAS,GAAsB,IAAI,YAAY,EAAE;AAEjD,IAAA,YAAY,GAAsB,IAAI,YAAY,EAAE;AAE9D;;;AAGG;AACH,IAAA,eAAe,CAAC,CAAM,EAAA;AACpB,QAAA,IAAI,CAAC,SAAS,CAAC,IAAI,CAAC,CAAC,CAAC;;AAGxB;;;AAGG;AACH,IAAA,gBAAgB,CAAC,CAAM,EAAA;AACrB,QAAA,IAAI,CAAC,WAAW,CAAC,IAAI,CAAC,CAAC,CAAC;;AAG1B;;;AAGG;AACH,IAAA,cAAc,CAAC,CAAM,EAAA;AACnB,QAAA,IAAI,CAAC,cAAc,CAAC,IAAI,CAAC,CAAC,CAAC;;AAG7B;;;AAGG;AACH,IAAA,cAAc,CAAC,CAAM,EAAA;AACnB,QAAA,IAAI,CAAC,cAAc,CAAC,IAAI,CAAC,CAAC,CAAC;;AAG7B,IAAA,YAAY,CAAC,CAAM,EAAA;AACjB,QAAA,IAAI,CAAC,YAAY,CAAC,IAAI,CAAC,CAAC,CAAC;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AC/C,oBAAA,OAAO,EAAE,CAAC,GAAG,UAAU,CAAC;AACzB,iBAAA;;;ACbD;;AAEG;;;;"}
|
|
@@ -0,0 +1,168 @@
|
|
|
1
|
+
import * as i0 from '@angular/core';
|
|
2
|
+
import { Directive, EventEmitter, Output, Component, Input, NgModule } from '@angular/core';
|
|
3
|
+
import * as i2 from '@angular/common';
|
|
4
|
+
import { CommonModule } from '@angular/common';
|
|
5
|
+
import { FormsModule, ReactiveFormsModule } from '@angular/forms';
|
|
6
|
+
import * as i3$1 from 'ng-zorro-antd/spin';
|
|
7
|
+
import { NzSpinModule } from 'ng-zorro-antd/spin';
|
|
8
|
+
import * as i4$1 from '@ebuilding/dialog/list';
|
|
9
|
+
import { DialogListModule } from '@ebuilding/dialog/list';
|
|
10
|
+
import * as i5$1 from '@ebuilding/dialog/org';
|
|
11
|
+
import { DialogOrgModule } from '@ebuilding/dialog/org';
|
|
12
|
+
import * as i6$1 from '@ebuilding/dialog/emp';
|
|
13
|
+
import { DialogEmployeeModule } from '@ebuilding/dialog/emp';
|
|
14
|
+
import * as i7 from '@ebuilding/dialog/position';
|
|
15
|
+
import { DialogPositionModule } from '@ebuilding/dialog/position';
|
|
16
|
+
import * as i8 from '@ebuilding/dialog/tree';
|
|
17
|
+
import { DialogTreeModule } from '@ebuilding/dialog/tree';
|
|
18
|
+
import * as i9 from '@ebuilding/dialog/dict';
|
|
19
|
+
import { DialogDictModule } from '@ebuilding/dialog/dict';
|
|
20
|
+
import * as i10 from '@ebuilding/dialog/ref';
|
|
21
|
+
import { DialogRefModule } from '@ebuilding/dialog/ref';
|
|
22
|
+
import * as i3 from 'ng-zorro-antd/tag';
|
|
23
|
+
import { NzTagModule } from 'ng-zorro-antd/tag';
|
|
24
|
+
import * as i4 from 'ng-zorro-antd/button';
|
|
25
|
+
import { NzButtonModule } from 'ng-zorro-antd/button';
|
|
26
|
+
import _ from 'lodash';
|
|
27
|
+
import * as i5 from 'ng-zorro-antd/core/transition-patch';
|
|
28
|
+
import * as i6 from 'ng-zorro-antd/core/wave';
|
|
29
|
+
|
|
30
|
+
class DialogService {
|
|
31
|
+
//页面类型
|
|
32
|
+
pageType = null;
|
|
33
|
+
//加载中
|
|
34
|
+
loading = true;
|
|
35
|
+
//选中值
|
|
36
|
+
selectData = [];
|
|
37
|
+
pageConfig = null;
|
|
38
|
+
primary = {
|
|
39
|
+
id: 'id',
|
|
40
|
+
name: 'name',
|
|
41
|
+
};
|
|
42
|
+
p_pageId = null;
|
|
43
|
+
p_pageCode = null;
|
|
44
|
+
p_parameter = null;
|
|
45
|
+
initPageData(e) {
|
|
46
|
+
if (e) {
|
|
47
|
+
if (e?.selectData && Array.isArray(e.selectData)) {
|
|
48
|
+
this.selectData = _.cloneDeep(e.selectData);
|
|
49
|
+
}
|
|
50
|
+
this.pageConfig = _.cloneDeep(e);
|
|
51
|
+
this.pageType = this.pageConfig.pageType;
|
|
52
|
+
this.loading = false;
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: DialogService, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
56
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "19.2.15", type: DialogService, isStandalone: true, ngImport: i0 });
|
|
57
|
+
}
|
|
58
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: DialogService, decorators: [{
|
|
59
|
+
type: Directive
|
|
60
|
+
}] });
|
|
61
|
+
|
|
62
|
+
class ListTagComponent {
|
|
63
|
+
dialogSrv;
|
|
64
|
+
tagRemove = new EventEmitter();
|
|
65
|
+
constructor(dialogSrv) {
|
|
66
|
+
this.dialogSrv = dialogSrv;
|
|
67
|
+
}
|
|
68
|
+
ngOnInit() { }
|
|
69
|
+
ngOnChanges(changes) { }
|
|
70
|
+
onClose(e) {
|
|
71
|
+
this.dialogSrv.selectData = this.dialogSrv.selectData.filter((item, index) => {
|
|
72
|
+
return index !== e;
|
|
73
|
+
});
|
|
74
|
+
this.tagRemove.emit();
|
|
75
|
+
}
|
|
76
|
+
onCloseAll() {
|
|
77
|
+
this.dialogSrv.selectData = [];
|
|
78
|
+
this.tagRemove.emit();
|
|
79
|
+
}
|
|
80
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: ListTagComponent, deps: [{ token: DialogService }], target: i0.ɵɵFactoryTarget.Component });
|
|
81
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.15", type: ListTagComponent, isStandalone: true, selector: "list-tag", outputs: { tagRemove: "tagRemove" }, usesOnChanges: true, ngImport: i0, template: "<div class=\"list-select\">\r\n <div class=\"tag-header\">\r\n <label>\u5DF2\u9009<span>({{ dialogSrv.selectData.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 *ngIf=\"dialogSrv.primary!! && dialogSrv.primary?.name!!\">\r\n <ng-container *ngFor=\"let item of dialogSrv.selectData;let i=index\">\r\n <nz-tag nzMode=\"closeable\" (nzOnClose)=\"onClose(i)\">{{item[dialogSrv.primary.name]}}</nz-tag>\r\n </ng-container>\r\n </ng-container>\r\n </div>\r\n</div>\r\n", 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: i2.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i2.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "ngmodule", type: NzTagModule }, { kind: "component", type: i3.NzTagComponent, selector: "nz-tag", inputs: ["nzMode", "nzColor", "nzChecked", "nzBordered"], outputs: ["nzOnClose", "nzCheckedChange"], exportAs: ["nzTag"] }, { kind: "ngmodule", type: NzButtonModule }, { kind: "component", type: i4.NzButtonComponent, selector: "button[nz-button], a[nz-button]", inputs: ["nzBlock", "nzGhost", "nzSearch", "nzLoading", "nzDanger", "disabled", "tabIndex", "nzType", "nzShape", "nzSize"], exportAs: ["nzButton"] }, { kind: "directive", type: i5.ɵ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: i6.NzWaveDirective, selector: "[nz-wave],button[nz-button]:not([nzType=\"link\"]):not([nzType=\"text\"])", inputs: ["nzWaveExtraNode"], exportAs: ["nzWave"] }] });
|
|
82
|
+
}
|
|
83
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: ListTagComponent, decorators: [{
|
|
84
|
+
type: Component,
|
|
85
|
+
args: [{ selector: 'list-tag', imports: [
|
|
86
|
+
CommonModule,
|
|
87
|
+
NzTagModule,
|
|
88
|
+
NzButtonModule
|
|
89
|
+
], template: "<div class=\"list-select\">\r\n <div class=\"tag-header\">\r\n <label>\u5DF2\u9009<span>({{ dialogSrv.selectData.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 *ngIf=\"dialogSrv.primary!! && dialogSrv.primary?.name!!\">\r\n <ng-container *ngFor=\"let item of dialogSrv.selectData;let i=index\">\r\n <nz-tag nzMode=\"closeable\" (nzOnClose)=\"onClose(i)\">{{item[dialogSrv.primary.name]}}</nz-tag>\r\n </ng-container>\r\n </ng-container>\r\n </div>\r\n</div>\r\n", 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"] }]
|
|
90
|
+
}], ctorParameters: () => [{ type: DialogService }], propDecorators: { tagRemove: [{
|
|
91
|
+
type: Output
|
|
92
|
+
}] } });
|
|
93
|
+
|
|
94
|
+
class PageDialogDefaultComponent {
|
|
95
|
+
dialogSrv;
|
|
96
|
+
tagPara = null;
|
|
97
|
+
izTag = true;
|
|
98
|
+
set config(value) {
|
|
99
|
+
if (value && value.isTag != undefined && value.isTag != null && value.isTag == false) {
|
|
100
|
+
this.izTag = false;
|
|
101
|
+
}
|
|
102
|
+
this.dialogSrv.initPageData(value);
|
|
103
|
+
}
|
|
104
|
+
selectEvent = new EventEmitter();
|
|
105
|
+
constructor(dialogSrv) {
|
|
106
|
+
this.dialogSrv = dialogSrv;
|
|
107
|
+
}
|
|
108
|
+
ngOnInit() { }
|
|
109
|
+
ngOnChanges(changes) { }
|
|
110
|
+
itemSelected(e) {
|
|
111
|
+
this.dialogSrv.selectData = _.cloneDeep(e);
|
|
112
|
+
this.selectEvent.emit(_.cloneDeep(e));
|
|
113
|
+
}
|
|
114
|
+
tagChange() {
|
|
115
|
+
this.tagPara = {
|
|
116
|
+
rd: Math.random(),
|
|
117
|
+
selectData: this.dialogSrv.selectData,
|
|
118
|
+
};
|
|
119
|
+
this.selectEvent.emit(_.cloneDeep(this.dialogSrv.selectData));
|
|
120
|
+
}
|
|
121
|
+
getPageSelectData() {
|
|
122
|
+
return this.dialogSrv.selectData;
|
|
123
|
+
}
|
|
124
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: PageDialogDefaultComponent, deps: [{ token: DialogService }], target: i0.ɵɵFactoryTarget.Component });
|
|
125
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.15", type: PageDialogDefaultComponent, isStandalone: true, selector: "page-dialog-default", inputs: { config: "config" }, outputs: { selectEvent: "selectEvent" }, providers: [DialogService], usesOnChanges: true, ngImport: i0, template: "<ng-container *ngIf=\"dialogSrv!!\">\r\n <nz-spin [nzSpinning]=\"dialogSrv.loading\" nzTip=\"\u62FC\u547D\u52A0\u8F7D\u4E2D...\" class=\"deon-list-spin\">\r\n <div class=\"dialog-content\" *ngIf=\"dialogSrv.loading==false\">\r\n <ng-container [ngSwitch]=\"dialogSrv.pageType\">\r\n <ng-container *ngSwitchCase=\"'org'\">\r\n <page-dialog-org [config]=\"dialogSrv.pageConfig\" [tagData]=\"tagPara\" (itemSelected)=\"itemSelected($event)\"></page-dialog-org>\r\n <ng-container *ngIf=\"izTag\">\r\n <list-tag (tagRemove)=\"tagChange()\"></list-tag>\r\n </ng-container>\r\n </ng-container>\r\n <ng-container *ngSwitchCase=\"'position'\">\r\n <dialog-position [config]=\"dialogSrv.pageConfig\" [tagData]=\"tagPara\" (itemSelected)=\"itemSelected($event)\"></dialog-position>\r\n <ng-container *ngIf=\"izTag\">\r\n <list-tag (tagRemove)=\"tagChange()\"></list-tag>\r\n </ng-container>\r\n </ng-container>\r\n <ng-container *ngSwitchCase=\"'emp'\">\r\n <page-dialog-emp [config]=\"dialogSrv.pageConfig\" [tagData]=\"tagPara\" (itemSelected)=\"itemSelected($event)\"></page-dialog-emp>\r\n <ng-container *ngIf=\"izTag\">\r\n <list-tag (tagRemove)=\"tagChange()\"></list-tag>\r\n </ng-container>\r\n </ng-container>\r\n <ng-container *ngSwitchCase=\"'tree'\">\r\n <page-dialog-tree [config]=\"dialogSrv.pageConfig\" [tagData]=\"tagPara\" (itemSelected)=\"itemSelected($event)\"></page-dialog-tree>\r\n <ng-container *ngIf=\"izTag\">\r\n <list-tag (tagRemove)=\"tagChange()\"></list-tag>\r\n </ng-container>\r\n </ng-container>\r\n <ng-container *ngSwitchCase=\"'lookup_tree'\">\r\n <page-dialog-tree2 [config]=\"dialogSrv.pageConfig\" [tagData]=\"tagPara\" (itemSelected)=\"itemSelected($event)\"></page-dialog-tree2>\r\n <ng-container *ngIf=\"izTag\">\r\n <list-tag (tagRemove)=\"tagChange()\"></list-tag>\r\n </ng-container>\r\n </ng-container>\r\n <ng-container *ngSwitchCase=\"'list'\">\r\n <page-dialog-list [config]=\"dialogSrv.pageConfig\" [tagData]=\"tagPara\" (itemSelected)=\"itemSelected($event)\"></page-dialog-list>\r\n <ng-container *ngIf=\"izTag\">\r\n <list-tag (tagRemove)=\"tagChange()\"></list-tag>\r\n </ng-container>\r\n </ng-container>\r\n <ng-container *ngSwitchCase=\"'dict'\">\r\n <page-dialog-dict [config]=\"dialogSrv.pageConfig\" [tagData]=\"tagPara\" (itemSelected)=\"itemSelected($event)\"></page-dialog-dict>\r\n <ng-container *ngIf=\"izTag\">\r\n <list-tag (tagRemove)=\"tagChange()\"></list-tag>\r\n </ng-container>\r\n </ng-container>\r\n <ng-container *ngSwitchCase=\"'other'\">\r\n <page-dialog-list [config]=\"dialogSrv.pageConfig\" [tagData]=\"tagPara\" (itemSelected)=\"itemSelected($event)\"></page-dialog-list>\r\n <ng-container *ngIf=\"izTag\">\r\n <list-tag (tagRemove)=\"tagChange()\"></list-tag>\r\n </ng-container>\r\n </ng-container>\r\n <ng-container *ngSwitchCase=\"'ref'\">\r\n <page-dialog-ref [config]=\"dialogSrv.pageConfig\" [tagData]=\"tagPara\" (itemSelected)=\"itemSelected($event)\"></page-dialog-ref>\r\n <ng-container *ngIf=\"izTag\">\r\n <list-tag (tagRemove)=\"tagChange()\"></list-tag>\r\n </ng-container>\r\n </ng-container>\r\n <ng-container *ngSwitchCase=\"'ref2'\">\r\n <page-dialog-ref2 [config]=\"dialogSrv.pageConfig\" [tagData]=\"tagPara\" (itemSelected)=\"itemSelected($event)\"></page-dialog-ref2>\r\n <ng-container *ngIf=\"izTag\">\r\n <list-tag (tagRemove)=\"tagChange()\"></list-tag>\r\n </ng-container>\r\n </ng-container>\r\n <ng-container *ngSwitchDefault>\r\n <page-dialog-list [config]=\"dialogSrv.pageConfig\" [tagData]=\"tagPara\" (itemSelected)=\"itemSelected($event)\"></page-dialog-list>\r\n <ng-container *ngIf=\"izTag\">\r\n <list-tag (tagRemove)=\"tagChange()\"></list-tag>\r\n </ng-container>\r\n </ng-container>\r\n </ng-container>\r\n </div>\r\n </nz-spin>\r\n</ng-container>\r\n", styles: [":host ::ng-deep{display:flex;flex:1;flex-direction:column;width:100%;height:100%;padding:12px;overflow:hidden}:host ::ng-deep .dialog-content{display:flex;flex:1;flex-direction:column;width:100%;height:100%}:host ::ng-deep .dialog-content page-dialog-org{display:flex;flex:1;overflow:auto}:host ::ng-deep .dialog-content page-dialog-org tree-content{padding:0}:host ::ng-deep .dialog-content page-dialog-org tree-content .query-content{margin:0}:host ::ng-deep .dialog-content page-dialog-org tree-content .gram-tree{padding:0}:host ::ng-deep .dialog-content page-dialog-org nz-tabset{flex:1}:host ::ng-deep .dialog-content page-dialog-org nz-tabset nz-tabs-nav{margin:0!important}:host ::ng-deep .dialog-content page-dialog-org nz-tabset .ant-tabs-content-holder{overflow-x:overlay;overflow-y:overlay}:host ::ng-deep .dialog-content page-dialog-org nz-tabset .ant-tabs-content-holder::-webkit-scrollbar{width:8px}:host ::ng-deep .dialog-content page-dialog-org nz-tabset .ant-tabs-content-holder::-webkit-scrollbar-thumb{background-color:#94949475;border-radius:7px}:host ::ng-deep .dialog-content page-dialog-org nz-tabset .ant-tabs-content-holder::-webkit-scrollbar-track{background-color:#fff}:host ::ng-deep .dialog-content page-dialog-org nz-tabset .ant-tabs-content-holder tree-content{padding:12px 0 0}:host ::ng-deep .dialog-content page-dialog-org nz-tabset .ant-tabs-content-holder .gram-tree{padding:0}:host ::ng-deep .dialog-content page-dialog-position{display:flex;flex:1;overflow:auto}:host ::ng-deep page-dialog-basic,:host ::ng-deep page-dialog-epage{flex:1;overflow:auto}:host ::ng-deep .list-select{display:inline-block;width:100%;height:90px;margin: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: i2.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i2.NgSwitch, selector: "[ngSwitch]", inputs: ["ngSwitch"] }, { kind: "directive", type: i2.NgSwitchCase, selector: "[ngSwitchCase]", inputs: ["ngSwitchCase"] }, { kind: "directive", type: i2.NgSwitchDefault, selector: "[ngSwitchDefault]" }, { kind: "ngmodule", type: FormsModule }, { kind: "ngmodule", type: ReactiveFormsModule }, { kind: "ngmodule", type: NzSpinModule }, { kind: "component", type: i3$1.NzSpinComponent, selector: "nz-spin", inputs: ["nzIndicator", "nzSize", "nzTip", "nzDelay", "nzSimple", "nzSpinning"], exportAs: ["nzSpin"] }, { kind: "ngmodule", type: DialogListModule }, { kind: "component", type: i4$1.PageDialogListComponent, selector: "page-dialog-list", inputs: ["config", "tagData"], outputs: ["itemSelected"] }, { kind: "ngmodule", type: DialogOrgModule }, { kind: "component", type: i5$1.PageDialogOrgComponent, selector: "page-dialog-org", inputs: ["config", "tagData"], outputs: ["itemSelected"] }, { kind: "ngmodule", type: DialogEmployeeModule }, { kind: "component", type: i6$1.PageDialogEmpComponent, selector: "page-dialog-emp", inputs: ["config", "tagData"], outputs: ["itemSelected"] }, { kind: "ngmodule", type: DialogPositionModule }, { kind: "component", type: i7.DialogPositionComponent, selector: "dialog-position", inputs: ["config", "tagData"], outputs: ["itemSelected"] }, { kind: "ngmodule", type: DialogTreeModule }, { kind: "component", type: i8.PageDialogTreeComponent, selector: "page-dialog-tree", inputs: ["config", "tagData"], outputs: ["itemSelected"] }, { kind: "component", type: i8.PageDialogTree2Component, selector: "page-dialog-tree2", inputs: ["config", "tagData"], outputs: ["itemSelected"] }, { kind: "ngmodule", type: DialogDictModule }, { kind: "component", type: i9.PageDialogDictComponent, selector: "page-dialog-dict", inputs: ["config", "tagData"], outputs: ["itemSelected"] }, { kind: "ngmodule", type: DialogRefModule }, { kind: "component", type: i10.PageDialogRefComponent, selector: "page-dialog-ref", inputs: ["config", "tagData"], outputs: ["itemSelected"] }, { kind: "component", type: i10.PageDialogRef2Component, selector: "page-dialog-ref2", inputs: ["config", "tagData"], outputs: ["itemSelected"] }, { kind: "component", type: ListTagComponent, selector: "list-tag", outputs: ["tagRemove"] }] });
|
|
126
|
+
}
|
|
127
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: PageDialogDefaultComponent, decorators: [{
|
|
128
|
+
type: Component,
|
|
129
|
+
args: [{ selector: 'page-dialog-default', providers: [DialogService], imports: [
|
|
130
|
+
CommonModule,
|
|
131
|
+
FormsModule, ReactiveFormsModule,
|
|
132
|
+
NzSpinModule,
|
|
133
|
+
DialogListModule,
|
|
134
|
+
DialogOrgModule,
|
|
135
|
+
DialogEmployeeModule,
|
|
136
|
+
DialogPositionModule,
|
|
137
|
+
DialogTreeModule,
|
|
138
|
+
DialogDictModule,
|
|
139
|
+
DialogRefModule,
|
|
140
|
+
ListTagComponent
|
|
141
|
+
], template: "<ng-container *ngIf=\"dialogSrv!!\">\r\n <nz-spin [nzSpinning]=\"dialogSrv.loading\" nzTip=\"\u62FC\u547D\u52A0\u8F7D\u4E2D...\" class=\"deon-list-spin\">\r\n <div class=\"dialog-content\" *ngIf=\"dialogSrv.loading==false\">\r\n <ng-container [ngSwitch]=\"dialogSrv.pageType\">\r\n <ng-container *ngSwitchCase=\"'org'\">\r\n <page-dialog-org [config]=\"dialogSrv.pageConfig\" [tagData]=\"tagPara\" (itemSelected)=\"itemSelected($event)\"></page-dialog-org>\r\n <ng-container *ngIf=\"izTag\">\r\n <list-tag (tagRemove)=\"tagChange()\"></list-tag>\r\n </ng-container>\r\n </ng-container>\r\n <ng-container *ngSwitchCase=\"'position'\">\r\n <dialog-position [config]=\"dialogSrv.pageConfig\" [tagData]=\"tagPara\" (itemSelected)=\"itemSelected($event)\"></dialog-position>\r\n <ng-container *ngIf=\"izTag\">\r\n <list-tag (tagRemove)=\"tagChange()\"></list-tag>\r\n </ng-container>\r\n </ng-container>\r\n <ng-container *ngSwitchCase=\"'emp'\">\r\n <page-dialog-emp [config]=\"dialogSrv.pageConfig\" [tagData]=\"tagPara\" (itemSelected)=\"itemSelected($event)\"></page-dialog-emp>\r\n <ng-container *ngIf=\"izTag\">\r\n <list-tag (tagRemove)=\"tagChange()\"></list-tag>\r\n </ng-container>\r\n </ng-container>\r\n <ng-container *ngSwitchCase=\"'tree'\">\r\n <page-dialog-tree [config]=\"dialogSrv.pageConfig\" [tagData]=\"tagPara\" (itemSelected)=\"itemSelected($event)\"></page-dialog-tree>\r\n <ng-container *ngIf=\"izTag\">\r\n <list-tag (tagRemove)=\"tagChange()\"></list-tag>\r\n </ng-container>\r\n </ng-container>\r\n <ng-container *ngSwitchCase=\"'lookup_tree'\">\r\n <page-dialog-tree2 [config]=\"dialogSrv.pageConfig\" [tagData]=\"tagPara\" (itemSelected)=\"itemSelected($event)\"></page-dialog-tree2>\r\n <ng-container *ngIf=\"izTag\">\r\n <list-tag (tagRemove)=\"tagChange()\"></list-tag>\r\n </ng-container>\r\n </ng-container>\r\n <ng-container *ngSwitchCase=\"'list'\">\r\n <page-dialog-list [config]=\"dialogSrv.pageConfig\" [tagData]=\"tagPara\" (itemSelected)=\"itemSelected($event)\"></page-dialog-list>\r\n <ng-container *ngIf=\"izTag\">\r\n <list-tag (tagRemove)=\"tagChange()\"></list-tag>\r\n </ng-container>\r\n </ng-container>\r\n <ng-container *ngSwitchCase=\"'dict'\">\r\n <page-dialog-dict [config]=\"dialogSrv.pageConfig\" [tagData]=\"tagPara\" (itemSelected)=\"itemSelected($event)\"></page-dialog-dict>\r\n <ng-container *ngIf=\"izTag\">\r\n <list-tag (tagRemove)=\"tagChange()\"></list-tag>\r\n </ng-container>\r\n </ng-container>\r\n <ng-container *ngSwitchCase=\"'other'\">\r\n <page-dialog-list [config]=\"dialogSrv.pageConfig\" [tagData]=\"tagPara\" (itemSelected)=\"itemSelected($event)\"></page-dialog-list>\r\n <ng-container *ngIf=\"izTag\">\r\n <list-tag (tagRemove)=\"tagChange()\"></list-tag>\r\n </ng-container>\r\n </ng-container>\r\n <ng-container *ngSwitchCase=\"'ref'\">\r\n <page-dialog-ref [config]=\"dialogSrv.pageConfig\" [tagData]=\"tagPara\" (itemSelected)=\"itemSelected($event)\"></page-dialog-ref>\r\n <ng-container *ngIf=\"izTag\">\r\n <list-tag (tagRemove)=\"tagChange()\"></list-tag>\r\n </ng-container>\r\n </ng-container>\r\n <ng-container *ngSwitchCase=\"'ref2'\">\r\n <page-dialog-ref2 [config]=\"dialogSrv.pageConfig\" [tagData]=\"tagPara\" (itemSelected)=\"itemSelected($event)\"></page-dialog-ref2>\r\n <ng-container *ngIf=\"izTag\">\r\n <list-tag (tagRemove)=\"tagChange()\"></list-tag>\r\n </ng-container>\r\n </ng-container>\r\n <ng-container *ngSwitchDefault>\r\n <page-dialog-list [config]=\"dialogSrv.pageConfig\" [tagData]=\"tagPara\" (itemSelected)=\"itemSelected($event)\"></page-dialog-list>\r\n <ng-container *ngIf=\"izTag\">\r\n <list-tag (tagRemove)=\"tagChange()\"></list-tag>\r\n </ng-container>\r\n </ng-container>\r\n </ng-container>\r\n </div>\r\n </nz-spin>\r\n</ng-container>\r\n", styles: [":host ::ng-deep{display:flex;flex:1;flex-direction:column;width:100%;height:100%;padding:12px;overflow:hidden}:host ::ng-deep .dialog-content{display:flex;flex:1;flex-direction:column;width:100%;height:100%}:host ::ng-deep .dialog-content page-dialog-org{display:flex;flex:1;overflow:auto}:host ::ng-deep .dialog-content page-dialog-org tree-content{padding:0}:host ::ng-deep .dialog-content page-dialog-org tree-content .query-content{margin:0}:host ::ng-deep .dialog-content page-dialog-org tree-content .gram-tree{padding:0}:host ::ng-deep .dialog-content page-dialog-org nz-tabset{flex:1}:host ::ng-deep .dialog-content page-dialog-org nz-tabset nz-tabs-nav{margin:0!important}:host ::ng-deep .dialog-content page-dialog-org nz-tabset .ant-tabs-content-holder{overflow-x:overlay;overflow-y:overlay}:host ::ng-deep .dialog-content page-dialog-org nz-tabset .ant-tabs-content-holder::-webkit-scrollbar{width:8px}:host ::ng-deep .dialog-content page-dialog-org nz-tabset .ant-tabs-content-holder::-webkit-scrollbar-thumb{background-color:#94949475;border-radius:7px}:host ::ng-deep .dialog-content page-dialog-org nz-tabset .ant-tabs-content-holder::-webkit-scrollbar-track{background-color:#fff}:host ::ng-deep .dialog-content page-dialog-org nz-tabset .ant-tabs-content-holder tree-content{padding:12px 0 0}:host ::ng-deep .dialog-content page-dialog-org nz-tabset .ant-tabs-content-holder .gram-tree{padding:0}:host ::ng-deep .dialog-content page-dialog-position{display:flex;flex:1;overflow:auto}:host ::ng-deep page-dialog-basic,:host ::ng-deep page-dialog-epage{flex:1;overflow:auto}:host ::ng-deep .list-select{display:inline-block;width:100%;height:90px;margin: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"] }]
|
|
142
|
+
}], ctorParameters: () => [{ type: DialogService }], propDecorators: { config: [{
|
|
143
|
+
type: Input
|
|
144
|
+
}], selectEvent: [{
|
|
145
|
+
type: Output
|
|
146
|
+
}] } });
|
|
147
|
+
|
|
148
|
+
const COMPONENTS = [PageDialogDefaultComponent];
|
|
149
|
+
const COMPONENTS_NOROUNT = [ListTagComponent];
|
|
150
|
+
class PageDialogDefaultModule {
|
|
151
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: PageDialogDefaultModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
152
|
+
static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "19.2.15", ngImport: i0, type: PageDialogDefaultModule, imports: [PageDialogDefaultComponent, ListTagComponent], exports: [PageDialogDefaultComponent] });
|
|
153
|
+
static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: PageDialogDefaultModule, imports: [COMPONENTS, COMPONENTS_NOROUNT] });
|
|
154
|
+
}
|
|
155
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: PageDialogDefaultModule, decorators: [{
|
|
156
|
+
type: NgModule,
|
|
157
|
+
args: [{
|
|
158
|
+
imports: [...COMPONENTS, ...COMPONENTS_NOROUNT],
|
|
159
|
+
exports: [...COMPONENTS],
|
|
160
|
+
}]
|
|
161
|
+
}] });
|
|
162
|
+
|
|
163
|
+
/**
|
|
164
|
+
* Generated bundle index. Do not edit.
|
|
165
|
+
*/
|
|
166
|
+
|
|
167
|
+
export { PageDialogDefaultComponent, PageDialogDefaultModule };
|
|
168
|
+
//# sourceMappingURL=default.mjs.map
|