@ebuilding/biz-comm 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/components/filter/index.d.ts +1 -0
- package/components/filter/src/compare-filter/index.d.ts +44 -0
- package/components/filter/src/default/index.d.ts +41 -0
- package/components/filter/src/index.module.d.ts +8 -0
- package/components/filter/src/public_api.d.ts +3 -0
- package/components/lookup/index.d.ts +1 -0
- package/components/lookup/src/default/index.d.ts +28 -0
- package/components/lookup/src/index.module.d.ts +8 -0
- package/components/lookup/src/public_api.d.ts +2 -0
- package/fesm2022/components.filter.mjs +411 -0
- package/fesm2022/components.filter.mjs.map +1 -0
- package/fesm2022/components.lookup.mjs +161 -0
- package/fesm2022/components.lookup.mjs.map +1 -0
- package/fesm2022/ebuilding-biz-comm.mjs +7 -0
- package/fesm2022/ebuilding-biz-comm.mjs.map +1 -0
- package/fesm2022/other.card.mjs +419 -0
- package/fesm2022/other.card.mjs.map +1 -0
- package/fesm2022/other.control.mjs +176 -0
- package/fesm2022/other.control.mjs.map +1 -0
- package/fesm2022/other.dict.mjs +1181 -0
- package/fesm2022/other.dict.mjs.map +1 -0
- package/fesm2022/other.formula.mjs +558 -0
- package/fesm2022/other.formula.mjs.map +1 -0
- package/fesm2022/other.rule.mjs +735 -0
- package/fesm2022/other.rule.mjs.map +1 -0
- package/fesm2022/other.source.args.mjs +290 -0
- package/fesm2022/other.source.args.mjs.map +1 -0
- package/fesm2022/other.source.field-map.mjs +245 -0
- package/fesm2022/other.source.field-map.mjs.map +1 -0
- package/fesm2022/other.source.filter.mjs +295 -0
- package/fesm2022/other.source.filter.mjs.map +1 -0
- package/fesm2022/other.source.group.mjs +219 -0
- package/fesm2022/other.source.group.mjs.map +1 -0
- package/fesm2022/other.source.mjs +1485 -0
- package/fesm2022/other.source.mjs.map +1 -0
- package/fesm2022/other.source.order.mjs +243 -0
- package/fesm2022/other.source.order.mjs.map +1 -0
- package/fesm2022/other.source.table.mjs +326 -0
- package/fesm2022/other.source.table.mjs.map +1 -0
- package/fesm2022/other.tree.mjs +441 -0
- package/fesm2022/other.tree.mjs.map +1 -0
- package/fesm2022/type.formula.mjs +133 -0
- package/fesm2022/type.formula.mjs.map +1 -0
- package/fesm2022/type.lookup.mjs +256 -0
- package/fesm2022/type.lookup.mjs.map +1 -0
- package/fesm2022/type.mjs +674 -0
- package/fesm2022/type.mjs.map +1 -0
- package/fesm2022/type.tree.mjs +225 -0
- package/fesm2022/type.tree.mjs.map +1 -0
- package/index.d.ts +2 -0
- package/other/card/index.d.ts +1 -0
- package/other/card/src/card-user/index.d.ts +31 -0
- package/other/card/src/card.service.d.ts +28 -0
- package/other/card/src/components/emp/index.d.ts +13 -0
- package/other/card/src/default/index.d.ts +48 -0
- package/other/card/src/index.module.d.ts +9 -0
- package/other/card/src/public_api.d.ts +3 -0
- package/other/control/index.d.ts +1 -0
- package/other/control/src/dict/index.d.ts +26 -0
- package/other/control/src/index.module.d.ts +7 -0
- package/other/control/src/public_api.d.ts +2 -0
- package/other/dict/index.d.ts +1 -0
- package/other/dict/src/field/index.d.ts +45 -0
- package/other/dict/src/field-info/index.d.ts +38 -0
- package/other/dict/src/field-read/index.d.ts +26 -0
- package/other/dict/src/index.module.d.ts +9 -0
- package/other/dict/src/public_api.d.ts +4 -0
- package/other/formula/index.d.ts +1 -0
- package/other/formula/src/default/index.d.ts +33 -0
- package/other/formula/src/form-item/index.d.ts +32 -0
- package/other/formula/src/form-setting/index.d.ts +32 -0
- package/other/formula/src/formula.service.d.ts +20 -0
- package/other/formula/src/index.module.d.ts +10 -0
- package/other/formula/src/public_api.d.ts +5 -0
- package/other/formula/src/rule-event/index.d.ts +23 -0
- package/other/rule/index.d.ts +1 -0
- package/other/rule/src/index.module.d.ts +16 -0
- package/other/rule/src/main/index.component.d.ts +34 -0
- package/other/rule/src/public_api.d.ts +2 -0
- package/other/rule/src/rule-change/index.component.d.ts +9 -0
- package/other/rule/src/rule-change-boolean/index.component.d.ts +13 -0
- package/other/rule/src/rule-change-date/index.component.d.ts +13 -0
- package/other/rule/src/rule-change-item/index.component.d.ts +13 -0
- package/other/rule/src/rule-change-number/index.component.d.ts +13 -0
- package/other/rule/src/rule-change-ref/index.component.d.ts +19 -0
- package/other/rule/src/rule-change-text/index.component.d.ts +13 -0
- package/other/rule/src/rule-change-upload/index.component.d.ts +11 -0
- package/other/rule/src/rule-fixed/index.component.d.ts +13 -0
- package/other/rule/src/service/config.service.d.ts +43 -0
- package/other/rule/src/service/rule.service.d.ts +11 -0
- package/other/source/args/index.d.ts +1 -0
- package/other/source/args/src/basic.d.ts +49 -0
- package/other/source/args/src/default/index.d.ts +24 -0
- package/other/source/args/src/index.module.d.ts +7 -0
- package/other/source/args/src/public_api.d.ts +2 -0
- package/other/source/field-map/index.d.ts +1 -0
- package/other/source/field-map/src/basic.d.ts +39 -0
- package/other/source/field-map/src/default/index.d.ts +26 -0
- package/other/source/field-map/src/index.module.d.ts +7 -0
- package/other/source/field-map/src/public_api.d.ts +2 -0
- package/other/source/filter/index.d.ts +1 -0
- package/other/source/filter/src/basic.d.ts +45 -0
- package/other/source/filter/src/default/index.d.ts +26 -0
- package/other/source/filter/src/index.module.d.ts +8 -0
- package/other/source/filter/src/public_api.d.ts +3 -0
- package/other/source/filter/src/second/index.d.ts +30 -0
- package/other/source/group/index.d.ts +1 -0
- package/other/source/group/src/basic.d.ts +32 -0
- package/other/source/group/src/default/index.d.ts +26 -0
- package/other/source/group/src/index.module.d.ts +7 -0
- package/other/source/group/src/public_api.d.ts +2 -0
- package/other/source/index.d.ts +6 -0
- package/other/source/order/index.d.ts +1 -0
- package/other/source/order/src/basic.d.ts +39 -0
- package/other/source/order/src/default/index.d.ts +26 -0
- package/other/source/order/src/index.module.d.ts +7 -0
- package/other/source/order/src/public_api.d.ts +2 -0
- package/other/source/table/index.d.ts +1 -0
- package/other/source/table/src/basic.d.ts +62 -0
- package/other/source/table/src/default/index.d.ts +26 -0
- package/other/source/table/src/index.module.d.ts +7 -0
- package/other/source/table/src/public_api.d.ts +2 -0
- package/other/tree/index.d.ts +1 -0
- package/other/tree/src/components/form/index.d.ts +17 -0
- package/other/tree/src/components/tree/index.d.ts +19 -0
- package/other/tree/src/default/index.d.ts +18 -0
- package/other/tree/src/index.module.d.ts +9 -0
- package/other/tree/src/public_api.d.ts +4 -0
- package/other/tree/src/treeService.d.ts +59 -0
- package/package.json +96 -0
- package/type/formula/index.d.ts +1 -0
- package/type/formula/src/default/index.d.ts +19 -0
- package/type/formula/src/index.module.d.ts +8 -0
- package/type/formula/src/public_api.d.ts +2 -0
- package/type/index.d.ts +1 -0
- package/type/index.module.d.ts +11 -0
- package/type/lookup/index.d.ts +1 -0
- package/type/lookup/src/default/index.d.ts +31 -0
- package/type/lookup/src/index.module.d.ts +8 -0
- package/type/lookup/src/public_api.d.ts +2 -0
- package/type/tree/index.d.ts +1 -0
- package/type/tree/src/default/index.d.ts +31 -0
- package/type/tree/src/index.module.d.ts +8 -0
- package/type/tree/src/public_api.d.ts +2 -0
|
@@ -0,0 +1,674 @@
|
|
|
1
|
+
import * as i0 from '@angular/core';
|
|
2
|
+
import { ChangeDetectionStrategy, Component, NgModule, ElementRef, ViewChild } from '@angular/core';
|
|
3
|
+
import * as i2 from '@angular/common';
|
|
4
|
+
import { CommonModule } from '@angular/common';
|
|
5
|
+
import * as i1$1 from '@kre-form/core';
|
|
6
|
+
import { FieldType, FormlyModule } from '@kre-form/core';
|
|
7
|
+
import { ReactiveFormsModule, FormsModule } from '@angular/forms';
|
|
8
|
+
import * as i3 from 'ng-zorro-antd/input';
|
|
9
|
+
import { NzInputModule } from 'ng-zorro-antd/input';
|
|
10
|
+
import * as i4 from 'ng-zorro-antd/button';
|
|
11
|
+
import { NzButtonModule } from 'ng-zorro-antd/button';
|
|
12
|
+
import * as i7 from 'ng-zorro-antd/icon';
|
|
13
|
+
import { NzIconModule } from 'ng-zorro-antd/icon';
|
|
14
|
+
import { NzDropDownModule } from 'ng-zorro-antd/dropdown';
|
|
15
|
+
import * as i1 from '@ebuilding/base/shared.srv/base-dialog.service';
|
|
16
|
+
import { GramBaseDialogService } from '@ebuilding/base/shared.srv/base-dialog.service';
|
|
17
|
+
import * as i5 from 'ng-zorro-antd/core/transition-patch';
|
|
18
|
+
import * as i6 from 'ng-zorro-antd/core/wave';
|
|
19
|
+
import * as i1$2 from '@ebuilding/base/shared.srv';
|
|
20
|
+
import { GramBaseDialogService as GramBaseDialogService$1 } from '@ebuilding/base/shared.srv';
|
|
21
|
+
import { PageDialogDefaultComponent, PageDialogDefaultModule } from '@ebuilding/dialog/default';
|
|
22
|
+
import _ from 'lodash';
|
|
23
|
+
import { DeonNzFormFieldModule } from '@ebuilding/form/form-field';
|
|
24
|
+
import { DeonNzCheckboxModule, DeonNzCheckboxGroupModule, DeonNzColorModule, DeonNzDateTimeModule, DeonNzDescModule, DeonNzDimModule, DeonNzDimIndicatorModule, DeonNzGridModule, DeonNzGroupModule, DeonNzHtmlModule, DeonNzIconModule, DeonNzLabelModule, DeonNzLineModule, DeonNzListModule, DeonNzNumberModule, DeonNzOverTimeModule, DeonNzPanelModule, DeonNzRadioModule, DeonNzRadioGroupModule, DeonNzReformModule, DeonNzRepeatModule, DeonNzRepeatCardModule, DeonNzSelectModule, DeonNzSwitchModule, DeonNzTabsModule, DeonNzTextModule, DeonNzTextAreaModule, DeonNzTextCodeModule } from '@ebuilding/form';
|
|
25
|
+
|
|
26
|
+
class DeonNzFieldFormula extends FieldType {
|
|
27
|
+
cdr;
|
|
28
|
+
dialogService;
|
|
29
|
+
defaultOptions = {
|
|
30
|
+
props: {},
|
|
31
|
+
};
|
|
32
|
+
_textName = null;
|
|
33
|
+
get textName() {
|
|
34
|
+
this.setTextName();
|
|
35
|
+
return this._textName;
|
|
36
|
+
}
|
|
37
|
+
constructor(cdr, dialogService) {
|
|
38
|
+
super();
|
|
39
|
+
this.cdr = cdr;
|
|
40
|
+
this.dialogService = dialogService;
|
|
41
|
+
}
|
|
42
|
+
setTextName() {
|
|
43
|
+
this._textName = null;
|
|
44
|
+
if (this.key && this.model && this.model && this.model.hasOwnProperty(this.key)) {
|
|
45
|
+
if (this.model[this.key] && this.model[this.key]) {
|
|
46
|
+
this._textName = this.model[this.key]['name'];
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
setBackValue(res) {
|
|
51
|
+
if (res) {
|
|
52
|
+
this.model[this.key] = res;
|
|
53
|
+
}
|
|
54
|
+
else {
|
|
55
|
+
this.model[this.key] = null;
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
btnOpenConfig(e) {
|
|
59
|
+
let isView = true;
|
|
60
|
+
if (e == 'setting') {
|
|
61
|
+
isView = false;
|
|
62
|
+
}
|
|
63
|
+
let config = {
|
|
64
|
+
data: null,
|
|
65
|
+
isView: isView,
|
|
66
|
+
type: this.props?.type
|
|
67
|
+
};
|
|
68
|
+
if (this.model && this.model[this.key]) {
|
|
69
|
+
config.data = this.model[this.key];
|
|
70
|
+
}
|
|
71
|
+
this.dialogService.CreateDrawerDialog({
|
|
72
|
+
nzTitle: isView ? `查看 - ${this.props?.label}` : `设置 - ${this.props?.label}`,
|
|
73
|
+
size: 'large',
|
|
74
|
+
nzContent: null //FormulaMainComponent,
|
|
75
|
+
}, {
|
|
76
|
+
config: config,
|
|
77
|
+
}, (instance) => {
|
|
78
|
+
if (instance && instance.type && instance.type == 'save') {
|
|
79
|
+
this.setBackValue(instance.data);
|
|
80
|
+
this.setTextName();
|
|
81
|
+
this.formControl.patchValue(this.model[this.key]);
|
|
82
|
+
this.formControl.markAsTouched();
|
|
83
|
+
}
|
|
84
|
+
});
|
|
85
|
+
}
|
|
86
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: DeonNzFieldFormula, deps: [{ token: i0.ChangeDetectorRef }, { token: i1.GramBaseDialogService }], target: i0.ɵɵFactoryTarget.Component });
|
|
87
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.15", type: DeonNzFieldFormula, isStandalone: true, selector: "deon-nz-field-formula", providers: [GramBaseDialogService], usesInheritance: true, ngImport: i0, template: "<ng-container *ngIf=\"editor == true;else tmpView\">\r\n <nz-input-group [nzAddOnAfter]=\"addOnAfterTemplate\">\r\n <input type=\"text\" nz-input [value]=\"textName\" [disabled]=\"true\" />\r\n </nz-input-group>\r\n\r\n <ng-template #addOnAfterTemplate>\r\n <button nz-button nzType=\"primary\" nzSearch type=\"button\" (click)=\"btnOpenConfig('setting')\">\r\n <i nz-icon nzType=\"setting\"></i>\u914D\u7F6E\r\n </button>\r\n </ng-template>\r\n</ng-container>\r\n<ng-template #tmpView>\r\n <nz-input-group [nzAddOnAfter]=\"addOnAfterTemplate2\">\r\n <input type=\"text\" nz-input [value]=\"textName\" [disabled]=\"true\" />\r\n </nz-input-group>\r\n\r\n <ng-template #addOnAfterTemplate2>\r\n <button nz-button nzType=\"primary\" nzSearch type=\"button\" (click)=\"btnOpenConfig('view')\">\r\n <i nz-icon nzType=\"eye\"></i>\u67E5\u770B\r\n </button>\r\n </ng-template>\r\n</ng-template>", styles: [":host ::ng-deep .ant-input-group-addon{padding:0}:host ::ng-deep .ant-input-group-addon label{cursor:pointer}:host ::ng-deep .ant-input-group-addon i{margin-right:4px}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i2.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "ngmodule", type: ReactiveFormsModule }, { kind: "ngmodule", type: NzInputModule }, { kind: "directive", type: i3.NzInputDirective, selector: "input[nz-input],textarea[nz-input]", inputs: ["nzBorderless", "nzSize", "nzStepperless", "nzStatus", "disabled"], exportAs: ["nzInput"] }, { kind: "component", type: i3.NzInputGroupComponent, selector: "nz-input-group", inputs: ["nzAddOnBeforeIcon", "nzAddOnAfterIcon", "nzPrefixIcon", "nzSuffixIcon", "nzAddOnBefore", "nzAddOnAfter", "nzPrefix", "nzStatus", "nzSuffix", "nzSize", "nzSearch", "nzCompact"], exportAs: ["nzInputGroup"] }, { 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"] }, { kind: "ngmodule", type: NzIconModule }, { kind: "directive", type: i7.NzIconDirective, selector: "nz-icon,[nz-icon]", inputs: ["nzSpin", "nzRotate", "nzType", "nzTheme", "nzTwotoneColor", "nzIconfont"], exportAs: ["nzIcon"] }, { kind: "ngmodule", type: NzDropDownModule }, { kind: "ngmodule", type: FormlyModule }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
88
|
+
}
|
|
89
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: DeonNzFieldFormula, decorators: [{
|
|
90
|
+
type: Component,
|
|
91
|
+
args: [{ selector: 'deon-nz-field-formula', providers: [GramBaseDialogService], changeDetection: ChangeDetectionStrategy.OnPush, imports: [
|
|
92
|
+
CommonModule,
|
|
93
|
+
ReactiveFormsModule,
|
|
94
|
+
NzInputModule,
|
|
95
|
+
NzButtonModule,
|
|
96
|
+
NzIconModule,
|
|
97
|
+
NzDropDownModule,
|
|
98
|
+
FormlyModule
|
|
99
|
+
], template: "<ng-container *ngIf=\"editor == true;else tmpView\">\r\n <nz-input-group [nzAddOnAfter]=\"addOnAfterTemplate\">\r\n <input type=\"text\" nz-input [value]=\"textName\" [disabled]=\"true\" />\r\n </nz-input-group>\r\n\r\n <ng-template #addOnAfterTemplate>\r\n <button nz-button nzType=\"primary\" nzSearch type=\"button\" (click)=\"btnOpenConfig('setting')\">\r\n <i nz-icon nzType=\"setting\"></i>\u914D\u7F6E\r\n </button>\r\n </ng-template>\r\n</ng-container>\r\n<ng-template #tmpView>\r\n <nz-input-group [nzAddOnAfter]=\"addOnAfterTemplate2\">\r\n <input type=\"text\" nz-input [value]=\"textName\" [disabled]=\"true\" />\r\n </nz-input-group>\r\n\r\n <ng-template #addOnAfterTemplate2>\r\n <button nz-button nzType=\"primary\" nzSearch type=\"button\" (click)=\"btnOpenConfig('view')\">\r\n <i nz-icon nzType=\"eye\"></i>\u67E5\u770B\r\n </button>\r\n </ng-template>\r\n</ng-template>", styles: [":host ::ng-deep .ant-input-group-addon{padding:0}:host ::ng-deep .ant-input-group-addon label{cursor:pointer}:host ::ng-deep .ant-input-group-addon i{margin-right:4px}\n"] }]
|
|
100
|
+
}], ctorParameters: () => [{ type: i0.ChangeDetectorRef }, { type: i1.GramBaseDialogService }] });
|
|
101
|
+
|
|
102
|
+
class DeonNzFormulaModule {
|
|
103
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: DeonNzFormulaModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
104
|
+
static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "19.2.15", ngImport: i0, type: DeonNzFormulaModule, imports: [CommonModule, i1$1.FormlyModule] });
|
|
105
|
+
static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: DeonNzFormulaModule, imports: [CommonModule,
|
|
106
|
+
FormlyModule.forChild({
|
|
107
|
+
types: [
|
|
108
|
+
{
|
|
109
|
+
name: 'formula',
|
|
110
|
+
component: DeonNzFieldFormula,
|
|
111
|
+
wrappers: ['formly-form-field'],
|
|
112
|
+
},
|
|
113
|
+
],
|
|
114
|
+
})] });
|
|
115
|
+
}
|
|
116
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: DeonNzFormulaModule, decorators: [{
|
|
117
|
+
type: NgModule,
|
|
118
|
+
args: [{
|
|
119
|
+
imports: [
|
|
120
|
+
CommonModule,
|
|
121
|
+
FormlyModule.forChild({
|
|
122
|
+
types: [
|
|
123
|
+
{
|
|
124
|
+
name: 'formula',
|
|
125
|
+
component: DeonNzFieldFormula,
|
|
126
|
+
wrappers: ['formly-form-field'],
|
|
127
|
+
},
|
|
128
|
+
],
|
|
129
|
+
}),
|
|
130
|
+
],
|
|
131
|
+
}]
|
|
132
|
+
}] });
|
|
133
|
+
|
|
134
|
+
class DeonNzFieldLookUp extends FieldType {
|
|
135
|
+
dialogService;
|
|
136
|
+
globalSrv;
|
|
137
|
+
defualtClass = '';
|
|
138
|
+
defaultOptions = {
|
|
139
|
+
props: {
|
|
140
|
+
type: '',
|
|
141
|
+
},
|
|
142
|
+
};
|
|
143
|
+
get selectType() {
|
|
144
|
+
let result = 'single';
|
|
145
|
+
if (this.props && this.props.selectType) {
|
|
146
|
+
result = this.props.selectType;
|
|
147
|
+
}
|
|
148
|
+
return result;
|
|
149
|
+
}
|
|
150
|
+
get valueType() {
|
|
151
|
+
let result = 'single';
|
|
152
|
+
if (this.props && this.props["valueType"]) {
|
|
153
|
+
result = this.props["valueType"];
|
|
154
|
+
}
|
|
155
|
+
return result;
|
|
156
|
+
}
|
|
157
|
+
_textValue = null;
|
|
158
|
+
get textValue() {
|
|
159
|
+
this.setTextValue();
|
|
160
|
+
return this._textValue;
|
|
161
|
+
}
|
|
162
|
+
placeholder = '请选择';
|
|
163
|
+
activeButton;
|
|
164
|
+
constructor(dialogService, globalSrv) {
|
|
165
|
+
super();
|
|
166
|
+
this.dialogService = dialogService;
|
|
167
|
+
this.globalSrv = globalSrv;
|
|
168
|
+
}
|
|
169
|
+
openLookPage() {
|
|
170
|
+
let pageType = null;
|
|
171
|
+
switch (this.props["pageType"]) {
|
|
172
|
+
case 'LIST':
|
|
173
|
+
pageType = 'list';
|
|
174
|
+
break;
|
|
175
|
+
case 'TREE':
|
|
176
|
+
pageType = 'lookup_tree';
|
|
177
|
+
break;
|
|
178
|
+
}
|
|
179
|
+
let parameterData = {};
|
|
180
|
+
if (this.props["defaultParameter"]) {
|
|
181
|
+
parameterData = Object.assign(parameterData, this.props["defaultParameter"]);
|
|
182
|
+
}
|
|
183
|
+
if (this.props["parameter"]) {
|
|
184
|
+
Object.keys(this.props["parameter"]).forEach((key) => {
|
|
185
|
+
if (this.model) {
|
|
186
|
+
parameterData[key] = _.get(this.model, this.props["parameter"][key]);
|
|
187
|
+
}
|
|
188
|
+
});
|
|
189
|
+
}
|
|
190
|
+
let config = {
|
|
191
|
+
pageType: pageType,
|
|
192
|
+
pageId: this.props["pageId"],
|
|
193
|
+
pageCode: this.props["pageCode"],
|
|
194
|
+
selectData: this.getSelectData(),
|
|
195
|
+
selectType: this.props.selectType ? this.props.selectType : 'single',
|
|
196
|
+
parameter: parameterData,
|
|
197
|
+
mold: this.props["mold"],
|
|
198
|
+
};
|
|
199
|
+
this.dialogService.CreateModelDialog({
|
|
200
|
+
nzTitle: '选择 - ' + this.props?.label,
|
|
201
|
+
size: 'large',
|
|
202
|
+
nzContent: PageDialogDefaultComponent,
|
|
203
|
+
}, {
|
|
204
|
+
config: config,
|
|
205
|
+
}, (type, instance, modal) => {
|
|
206
|
+
let res = instance.getPageSelectData();
|
|
207
|
+
this.setBackValue(res);
|
|
208
|
+
modal.destroy();
|
|
209
|
+
this.setTextValue();
|
|
210
|
+
this.formControl.patchValue(this.model[this.key]);
|
|
211
|
+
this.formControl.markAsTouched();
|
|
212
|
+
this.globalSrv.notifyDataChanged('deon-field-lookup', {
|
|
213
|
+
field: this.field,
|
|
214
|
+
data: this.model[this.key],
|
|
215
|
+
});
|
|
216
|
+
});
|
|
217
|
+
}
|
|
218
|
+
setBackValue(res) {
|
|
219
|
+
this.model[this.key] = null;
|
|
220
|
+
if (_.get(this.field, 'props.selectType') == 'multiple' || this.valueType == 'multiple') {
|
|
221
|
+
if (res && Array.isArray(res)) {
|
|
222
|
+
if (res && res != null && res.length > 0) {
|
|
223
|
+
this.model[this.key] = res.map((item) => {
|
|
224
|
+
return { id: item.id, name: item.name };
|
|
225
|
+
});
|
|
226
|
+
}
|
|
227
|
+
}
|
|
228
|
+
}
|
|
229
|
+
else {
|
|
230
|
+
if (res && res != null && res.length > 0) {
|
|
231
|
+
if (res && Array.isArray(res)) {
|
|
232
|
+
this.model[this.key] = { id: res[0].id, name: res[0].name };
|
|
233
|
+
}
|
|
234
|
+
}
|
|
235
|
+
}
|
|
236
|
+
}
|
|
237
|
+
setTextValue() {
|
|
238
|
+
this._textValue = null;
|
|
239
|
+
if (this.key && this.model && this.model && this.model.hasOwnProperty(this.key)) {
|
|
240
|
+
if (this.model[this.key] && this.model[this.key]) {
|
|
241
|
+
if (_.get(this.field, 'props.selectType') == 'multiple' || this.valueType == 'multiple') {
|
|
242
|
+
this.getModelArray();
|
|
243
|
+
}
|
|
244
|
+
else {
|
|
245
|
+
this.getModelObject();
|
|
246
|
+
}
|
|
247
|
+
}
|
|
248
|
+
}
|
|
249
|
+
if (_.get(this.field, 'props.selectType') != 'multiple') {
|
|
250
|
+
this.defualtClass = 'single';
|
|
251
|
+
}
|
|
252
|
+
}
|
|
253
|
+
getSelectData() {
|
|
254
|
+
let res = [];
|
|
255
|
+
if (this.model && this.model && this.model.hasOwnProperty(this.key)) {
|
|
256
|
+
if (this.model[this.key] && this.model[this.key]) {
|
|
257
|
+
if (_.get(this.field, 'props.selectType') == 'multiple' || this.valueType == 'multiple') {
|
|
258
|
+
res = this.model[this.key].map((item) => {
|
|
259
|
+
let obj = {};
|
|
260
|
+
obj['id'] = item['id'];
|
|
261
|
+
obj['name'] = item['name'];
|
|
262
|
+
return obj;
|
|
263
|
+
});
|
|
264
|
+
}
|
|
265
|
+
else {
|
|
266
|
+
res.push(this.model[this.key]);
|
|
267
|
+
}
|
|
268
|
+
}
|
|
269
|
+
}
|
|
270
|
+
return res;
|
|
271
|
+
}
|
|
272
|
+
/**
|
|
273
|
+
* 获取对象数据
|
|
274
|
+
*/
|
|
275
|
+
getModelObject() {
|
|
276
|
+
if (this.model[this.key]['name']) {
|
|
277
|
+
this._textValue = this.model[this.key]['name'];
|
|
278
|
+
}
|
|
279
|
+
else {
|
|
280
|
+
this.model[this.key] = null;
|
|
281
|
+
this._textValue = '';
|
|
282
|
+
}
|
|
283
|
+
}
|
|
284
|
+
/**
|
|
285
|
+
* 获取数组数据
|
|
286
|
+
*/
|
|
287
|
+
getModelArray() {
|
|
288
|
+
if (this.model[this.key].length > 0) {
|
|
289
|
+
this._textValue = this.model[this.key]
|
|
290
|
+
.map((item) => {
|
|
291
|
+
return item['name'];
|
|
292
|
+
})
|
|
293
|
+
.join('、');
|
|
294
|
+
}
|
|
295
|
+
}
|
|
296
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: DeonNzFieldLookUp, deps: [{ token: i1$2.GramBaseDialogService }, { token: i1$2.GramGlobalService }], target: i0.ɵɵFactoryTarget.Component });
|
|
297
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.15", type: DeonNzFieldLookUp, isStandalone: true, selector: "deon-nz-field-lookup", providers: [GramBaseDialogService$1], viewQueries: [{ propertyName: "activeButton", first: true, predicate: ["button"], descendants: true, read: ElementRef, static: true }], usesInheritance: true, ngImport: i0, template: "<ng-container *ngIf=\"editor == false\">\r\n <div class=\"field-text deon-text\" [ngClass]=\"selectType =='single'?' deon-text-lookup':' deon-text-lookup-multiple'\">\r\n {{ textValue }}</div>\r\n</ng-container>\r\n<ng-container *ngIf=\"editor == true\">\r\n <nz-input-group nzSearch [nzAddOnAfter]=\"suffixIconButton\">\r\n <input type=\"text\" nz-input [placeholder]=\"placeholder\" [disabled]=\"true\" [value]=\"textValue\" />\r\n </nz-input-group>\r\n <ng-template #suffixIconButton>\r\n <button nz-button nzType=\"primary\" nzSearch type=\"button\" (click)=\"openLookPage()\"><i nz-icon\r\n nzType=\"plus\"></i></button>\r\n </ng-template>\r\n</ng-container>", styles: [""], 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: ReactiveFormsModule }, { kind: "ngmodule", type: NzInputModule }, { kind: "directive", type: i3.NzInputDirective, selector: "input[nz-input],textarea[nz-input]", inputs: ["nzBorderless", "nzSize", "nzStepperless", "nzStatus", "disabled"], exportAs: ["nzInput"] }, { kind: "component", type: i3.NzInputGroupComponent, selector: "nz-input-group", inputs: ["nzAddOnBeforeIcon", "nzAddOnAfterIcon", "nzPrefixIcon", "nzSuffixIcon", "nzAddOnBefore", "nzAddOnAfter", "nzPrefix", "nzStatus", "nzSuffix", "nzSize", "nzSearch", "nzCompact"], exportAs: ["nzInputGroup"] }, { 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"] }, { kind: "ngmodule", type: NzIconModule }, { kind: "directive", type: i7.NzIconDirective, selector: "nz-icon,[nz-icon]", inputs: ["nzSpin", "nzRotate", "nzType", "nzTheme", "nzTwotoneColor", "nzIconfont"], exportAs: ["nzIcon"] }, { kind: "ngmodule", type: FormlyModule }, { kind: "ngmodule", type: PageDialogDefaultModule }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
298
|
+
}
|
|
299
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: DeonNzFieldLookUp, decorators: [{
|
|
300
|
+
type: Component,
|
|
301
|
+
args: [{ selector: 'deon-nz-field-lookup', providers: [GramBaseDialogService$1], changeDetection: ChangeDetectionStrategy.OnPush, imports: [
|
|
302
|
+
CommonModule,
|
|
303
|
+
FormsModule,
|
|
304
|
+
ReactiveFormsModule,
|
|
305
|
+
NzInputModule,
|
|
306
|
+
NzButtonModule,
|
|
307
|
+
NzIconModule,
|
|
308
|
+
FormlyModule,
|
|
309
|
+
PageDialogDefaultModule
|
|
310
|
+
], template: "<ng-container *ngIf=\"editor == false\">\r\n <div class=\"field-text deon-text\" [ngClass]=\"selectType =='single'?' deon-text-lookup':' deon-text-lookup-multiple'\">\r\n {{ textValue }}</div>\r\n</ng-container>\r\n<ng-container *ngIf=\"editor == true\">\r\n <nz-input-group nzSearch [nzAddOnAfter]=\"suffixIconButton\">\r\n <input type=\"text\" nz-input [placeholder]=\"placeholder\" [disabled]=\"true\" [value]=\"textValue\" />\r\n </nz-input-group>\r\n <ng-template #suffixIconButton>\r\n <button nz-button nzType=\"primary\" nzSearch type=\"button\" (click)=\"openLookPage()\"><i nz-icon\r\n nzType=\"plus\"></i></button>\r\n </ng-template>\r\n</ng-container>" }]
|
|
311
|
+
}], ctorParameters: () => [{ type: i1$2.GramBaseDialogService }, { type: i1$2.GramGlobalService }], propDecorators: { activeButton: [{
|
|
312
|
+
type: ViewChild,
|
|
313
|
+
args: ['button', { read: ElementRef, static: true }]
|
|
314
|
+
}] } });
|
|
315
|
+
|
|
316
|
+
class DeonNzLookUpModule {
|
|
317
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: DeonNzLookUpModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
318
|
+
static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "19.2.15", ngImport: i0, type: DeonNzLookUpModule, imports: [CommonModule, i1$1.FormlyModule] });
|
|
319
|
+
static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: DeonNzLookUpModule, imports: [CommonModule,
|
|
320
|
+
FormlyModule.forChild({
|
|
321
|
+
types: [
|
|
322
|
+
{
|
|
323
|
+
name: 'lookup',
|
|
324
|
+
component: DeonNzFieldLookUp,
|
|
325
|
+
wrappers: ['formly-form-field'],
|
|
326
|
+
},
|
|
327
|
+
{
|
|
328
|
+
name: 'one2many',
|
|
329
|
+
extends: 'lookup',
|
|
330
|
+
},
|
|
331
|
+
{
|
|
332
|
+
name: 'lookup_tree',
|
|
333
|
+
extends: 'lookup',
|
|
334
|
+
},
|
|
335
|
+
],
|
|
336
|
+
})] });
|
|
337
|
+
}
|
|
338
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: DeonNzLookUpModule, decorators: [{
|
|
339
|
+
type: NgModule,
|
|
340
|
+
args: [{
|
|
341
|
+
imports: [
|
|
342
|
+
CommonModule,
|
|
343
|
+
FormlyModule.forChild({
|
|
344
|
+
types: [
|
|
345
|
+
{
|
|
346
|
+
name: 'lookup',
|
|
347
|
+
component: DeonNzFieldLookUp,
|
|
348
|
+
wrappers: ['formly-form-field'],
|
|
349
|
+
},
|
|
350
|
+
{
|
|
351
|
+
name: 'one2many',
|
|
352
|
+
extends: 'lookup',
|
|
353
|
+
},
|
|
354
|
+
{
|
|
355
|
+
name: 'lookup_tree',
|
|
356
|
+
extends: 'lookup',
|
|
357
|
+
},
|
|
358
|
+
],
|
|
359
|
+
})
|
|
360
|
+
],
|
|
361
|
+
}]
|
|
362
|
+
}] });
|
|
363
|
+
|
|
364
|
+
class DeonNzFieldTree extends FieldType {
|
|
365
|
+
dialogService;
|
|
366
|
+
globalSrv;
|
|
367
|
+
defualtClass = '';
|
|
368
|
+
defaultOptions = {
|
|
369
|
+
props: {
|
|
370
|
+
type: '',
|
|
371
|
+
},
|
|
372
|
+
};
|
|
373
|
+
get selectType() {
|
|
374
|
+
let result = 'single';
|
|
375
|
+
if (this.props && this.props?.selectType) {
|
|
376
|
+
result = this.props.selectType;
|
|
377
|
+
}
|
|
378
|
+
return result;
|
|
379
|
+
}
|
|
380
|
+
get valueType() {
|
|
381
|
+
let result = 'single';
|
|
382
|
+
if (this.props && this.props["valueType"]) {
|
|
383
|
+
result = this.props["valueType"];
|
|
384
|
+
}
|
|
385
|
+
return result;
|
|
386
|
+
}
|
|
387
|
+
_textValue = null;
|
|
388
|
+
get textValue() {
|
|
389
|
+
this.setTextValue();
|
|
390
|
+
return this._textValue;
|
|
391
|
+
}
|
|
392
|
+
placeholder = '请选择';
|
|
393
|
+
activeButton;
|
|
394
|
+
constructor(dialogService, globalSrv) {
|
|
395
|
+
super();
|
|
396
|
+
this.dialogService = dialogService;
|
|
397
|
+
this.globalSrv = globalSrv;
|
|
398
|
+
}
|
|
399
|
+
openLookPage() {
|
|
400
|
+
let parameterData = {};
|
|
401
|
+
if (this.props["defaultParameter"]) {
|
|
402
|
+
parameterData = Object.assign(parameterData, this.props["defaultParameter"]);
|
|
403
|
+
}
|
|
404
|
+
if (this.props["parameter"]) {
|
|
405
|
+
Object.keys(this.props["parameter"]).forEach((key) => {
|
|
406
|
+
if (this.model) {
|
|
407
|
+
parameterData[key] = _.get(this.model, this.props["parameter"][key]);
|
|
408
|
+
}
|
|
409
|
+
});
|
|
410
|
+
}
|
|
411
|
+
let config = {
|
|
412
|
+
type: 'tree',
|
|
413
|
+
key: this.key,
|
|
414
|
+
treeId: this.props["treeId"],
|
|
415
|
+
pageCode: this.props["pageCode"],
|
|
416
|
+
selectData: this.getSelectData(),
|
|
417
|
+
selectType: this.props.selectType ? this.props.selectType : 'single',
|
|
418
|
+
parameter: parameterData,
|
|
419
|
+
};
|
|
420
|
+
this.dialogService.CreateModelDialog({
|
|
421
|
+
nzTitle: '选择 - ' + this.props?.label,
|
|
422
|
+
size: 'large',
|
|
423
|
+
nzContent: PageDialogDefaultComponent,
|
|
424
|
+
}, {
|
|
425
|
+
config: config,
|
|
426
|
+
}, (type, instance, modal) => {
|
|
427
|
+
let res = instance.getPageSelectData();
|
|
428
|
+
this.setBackValue(res);
|
|
429
|
+
modal.destroy();
|
|
430
|
+
this.setTextValue();
|
|
431
|
+
this.formControl.patchValue(this.model[this.key]);
|
|
432
|
+
this.formControl.markAsTouched();
|
|
433
|
+
this.globalSrv.notifyDataChanged('deon-field-lookup', {
|
|
434
|
+
field: this.field,
|
|
435
|
+
data: this.model[this.key],
|
|
436
|
+
});
|
|
437
|
+
});
|
|
438
|
+
}
|
|
439
|
+
setBackValue(res) {
|
|
440
|
+
if (_.get(this.field, 'props.selectType') == 'multiple' || this.valueType == 'multiple') {
|
|
441
|
+
if (res && res != null && res.length > 0) {
|
|
442
|
+
this.model[this.key] = res;
|
|
443
|
+
}
|
|
444
|
+
else {
|
|
445
|
+
this.model[this.key] = [];
|
|
446
|
+
}
|
|
447
|
+
}
|
|
448
|
+
else {
|
|
449
|
+
if (res && res != null && res.length > 0) {
|
|
450
|
+
this.model[this.key] = res[0];
|
|
451
|
+
}
|
|
452
|
+
else {
|
|
453
|
+
this.model[this.key] = null;
|
|
454
|
+
}
|
|
455
|
+
}
|
|
456
|
+
}
|
|
457
|
+
setTextValue() {
|
|
458
|
+
this._textValue = null;
|
|
459
|
+
if (this.key && this.model && this.model && this.model.hasOwnProperty(this.key)) {
|
|
460
|
+
if (this.model[this.key] && this.model[this.key]) {
|
|
461
|
+
if (_.get(this.field, 'props.selectType') == 'multiple' || this.valueType == 'multiple') {
|
|
462
|
+
this.getModelArray();
|
|
463
|
+
}
|
|
464
|
+
else {
|
|
465
|
+
this.getModelObject();
|
|
466
|
+
}
|
|
467
|
+
}
|
|
468
|
+
}
|
|
469
|
+
if (_.get(this.field, 'props.selectType') != 'multiple') {
|
|
470
|
+
this.defualtClass = 'single';
|
|
471
|
+
}
|
|
472
|
+
}
|
|
473
|
+
getSelectData() {
|
|
474
|
+
let res = [];
|
|
475
|
+
if (this.model && this.model && this.model.hasOwnProperty(this.key)) {
|
|
476
|
+
if (this.model[this.key] && this.model[this.key]) {
|
|
477
|
+
if (_.get(this.field, 'props.selectType') == 'multiple' || this.valueType == 'multiple') {
|
|
478
|
+
res = this.model[this.key].map((item) => {
|
|
479
|
+
let obj = {};
|
|
480
|
+
obj['id'] = item['id'];
|
|
481
|
+
obj['name'] = item['name'];
|
|
482
|
+
return obj;
|
|
483
|
+
});
|
|
484
|
+
}
|
|
485
|
+
else {
|
|
486
|
+
res.push(this.model[this.key]);
|
|
487
|
+
}
|
|
488
|
+
}
|
|
489
|
+
}
|
|
490
|
+
return res;
|
|
491
|
+
}
|
|
492
|
+
/**
|
|
493
|
+
* 获取对象数据
|
|
494
|
+
*/
|
|
495
|
+
getModelObject() {
|
|
496
|
+
this._textValue = this.model[this.key]['name'];
|
|
497
|
+
}
|
|
498
|
+
/**
|
|
499
|
+
* 获取数组数据
|
|
500
|
+
*/
|
|
501
|
+
getModelArray() {
|
|
502
|
+
if (this.model[this.key].length > 0) {
|
|
503
|
+
this._textValue = this.model[this.key]
|
|
504
|
+
.map((item) => {
|
|
505
|
+
return item['name'];
|
|
506
|
+
})
|
|
507
|
+
.join('、');
|
|
508
|
+
}
|
|
509
|
+
}
|
|
510
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: DeonNzFieldTree, deps: [{ token: i1$2.GramBaseDialogService }, { token: i1$2.GramGlobalService }], target: i0.ɵɵFactoryTarget.Component });
|
|
511
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.15", type: DeonNzFieldTree, isStandalone: true, selector: "deon-nz-field-tree", providers: [GramBaseDialogService$1], viewQueries: [{ propertyName: "activeButton", first: true, predicate: ["button"], descendants: true, read: ElementRef, static: true }], usesInheritance: true, ngImport: i0, template: "<ng-container *ngIf=\"editor == false\">\r\n <div class=\"field-text deon-text\">{{ textValue }}</div>\r\n</ng-container>\r\n<ng-container *ngIf=\"editor == true\">\r\n <nz-input-group nzSearch [nzAddOnAfter]=\"suffixIconButton\">\r\n <input type=\"text\" nz-input [placeholder]=\"placeholder\" [disabled]=\"true\" [value]=\"textValue\" />\r\n </nz-input-group>\r\n <ng-template #suffixIconButton>\r\n <button nz-button nzType=\"primary\" nzSearch type=\"button\" (click)=\"openLookPage()\"><i nz-icon nzType=\"plus\"></i></button>\r\n </ng-template>\r\n</ng-container> \r\n", styles: [""], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i2.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "ngmodule", type: FormsModule }, { kind: "ngmodule", type: ReactiveFormsModule }, { kind: "ngmodule", type: DeonNzFormFieldModule }, { kind: "ngmodule", type: NzIconModule }, { kind: "directive", type: i7.NzIconDirective, selector: "nz-icon,[nz-icon]", inputs: ["nzSpin", "nzRotate", "nzType", "nzTheme", "nzTwotoneColor", "nzIconfont"], exportAs: ["nzIcon"] }, { kind: "ngmodule", type: NzInputModule }, { kind: "directive", type: i3.NzInputDirective, selector: "input[nz-input],textarea[nz-input]", inputs: ["nzBorderless", "nzSize", "nzStepperless", "nzStatus", "disabled"], exportAs: ["nzInput"] }, { kind: "component", type: i3.NzInputGroupComponent, selector: "nz-input-group", inputs: ["nzAddOnBeforeIcon", "nzAddOnAfterIcon", "nzPrefixIcon", "nzSuffixIcon", "nzAddOnBefore", "nzAddOnAfter", "nzPrefix", "nzStatus", "nzSuffix", "nzSize", "nzSearch", "nzCompact"], exportAs: ["nzInputGroup"] }, { 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"] }, { kind: "ngmodule", type: PageDialogDefaultModule }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
512
|
+
}
|
|
513
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: DeonNzFieldTree, decorators: [{
|
|
514
|
+
type: Component,
|
|
515
|
+
args: [{ selector: 'deon-nz-field-tree', providers: [GramBaseDialogService$1], changeDetection: ChangeDetectionStrategy.OnPush, imports: [
|
|
516
|
+
CommonModule,
|
|
517
|
+
FormsModule,
|
|
518
|
+
ReactiveFormsModule,
|
|
519
|
+
DeonNzFormFieldModule,
|
|
520
|
+
NzIconModule,
|
|
521
|
+
NzInputModule,
|
|
522
|
+
NzButtonModule,
|
|
523
|
+
PageDialogDefaultModule,
|
|
524
|
+
], template: "<ng-container *ngIf=\"editor == false\">\r\n <div class=\"field-text deon-text\">{{ textValue }}</div>\r\n</ng-container>\r\n<ng-container *ngIf=\"editor == true\">\r\n <nz-input-group nzSearch [nzAddOnAfter]=\"suffixIconButton\">\r\n <input type=\"text\" nz-input [placeholder]=\"placeholder\" [disabled]=\"true\" [value]=\"textValue\" />\r\n </nz-input-group>\r\n <ng-template #suffixIconButton>\r\n <button nz-button nzType=\"primary\" nzSearch type=\"button\" (click)=\"openLookPage()\"><i nz-icon nzType=\"plus\"></i></button>\r\n </ng-template>\r\n</ng-container> \r\n" }]
|
|
525
|
+
}], ctorParameters: () => [{ type: i1$2.GramBaseDialogService }, { type: i1$2.GramGlobalService }], propDecorators: { activeButton: [{
|
|
526
|
+
type: ViewChild,
|
|
527
|
+
args: ['button', { read: ElementRef, static: true }]
|
|
528
|
+
}] } });
|
|
529
|
+
|
|
530
|
+
class DeonNzTreeModule {
|
|
531
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: DeonNzTreeModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
532
|
+
static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "19.2.15", ngImport: i0, type: DeonNzTreeModule, imports: [CommonModule, i1$1.FormlyModule] });
|
|
533
|
+
static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: DeonNzTreeModule, imports: [CommonModule,
|
|
534
|
+
FormlyModule.forChild({
|
|
535
|
+
types: [
|
|
536
|
+
{
|
|
537
|
+
name: 'tree',
|
|
538
|
+
component: DeonNzFieldTree,
|
|
539
|
+
wrappers: ['formly-form-field'],
|
|
540
|
+
},
|
|
541
|
+
],
|
|
542
|
+
})] });
|
|
543
|
+
}
|
|
544
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: DeonNzTreeModule, decorators: [{
|
|
545
|
+
type: NgModule,
|
|
546
|
+
args: [{
|
|
547
|
+
imports: [
|
|
548
|
+
CommonModule,
|
|
549
|
+
FormlyModule.forChild({
|
|
550
|
+
types: [
|
|
551
|
+
{
|
|
552
|
+
name: 'tree',
|
|
553
|
+
component: DeonNzFieldTree,
|
|
554
|
+
wrappers: ['formly-form-field'],
|
|
555
|
+
},
|
|
556
|
+
],
|
|
557
|
+
})
|
|
558
|
+
],
|
|
559
|
+
}]
|
|
560
|
+
}] });
|
|
561
|
+
|
|
562
|
+
class GramDeonAntdModule {
|
|
563
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: GramDeonAntdModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
564
|
+
static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "19.2.15", ngImport: i0, type: GramDeonAntdModule, imports: [DeonNzCheckboxModule,
|
|
565
|
+
DeonNzCheckboxGroupModule,
|
|
566
|
+
DeonNzColorModule,
|
|
567
|
+
DeonNzDateTimeModule,
|
|
568
|
+
DeonNzDescModule,
|
|
569
|
+
DeonNzDimModule,
|
|
570
|
+
DeonNzDimIndicatorModule,
|
|
571
|
+
DeonNzFormFieldModule,
|
|
572
|
+
DeonNzFormulaModule,
|
|
573
|
+
DeonNzGridModule,
|
|
574
|
+
DeonNzGroupModule,
|
|
575
|
+
DeonNzHtmlModule,
|
|
576
|
+
DeonNzIconModule,
|
|
577
|
+
DeonNzLabelModule,
|
|
578
|
+
DeonNzLineModule,
|
|
579
|
+
DeonNzListModule,
|
|
580
|
+
DeonNzLookUpModule,
|
|
581
|
+
DeonNzNumberModule,
|
|
582
|
+
DeonNzOverTimeModule,
|
|
583
|
+
DeonNzPanelModule,
|
|
584
|
+
DeonNzRadioModule,
|
|
585
|
+
DeonNzRadioGroupModule,
|
|
586
|
+
DeonNzReformModule,
|
|
587
|
+
DeonNzRepeatModule,
|
|
588
|
+
DeonNzRepeatCardModule,
|
|
589
|
+
DeonNzSelectModule,
|
|
590
|
+
DeonNzSwitchModule,
|
|
591
|
+
DeonNzTabsModule,
|
|
592
|
+
DeonNzTextModule,
|
|
593
|
+
DeonNzTextAreaModule,
|
|
594
|
+
DeonNzTextCodeModule,
|
|
595
|
+
DeonNzTreeModule] });
|
|
596
|
+
static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: GramDeonAntdModule, imports: [DeonNzCheckboxModule,
|
|
597
|
+
DeonNzCheckboxGroupModule,
|
|
598
|
+
DeonNzColorModule,
|
|
599
|
+
DeonNzDateTimeModule,
|
|
600
|
+
DeonNzDescModule,
|
|
601
|
+
DeonNzDimModule,
|
|
602
|
+
DeonNzDimIndicatorModule,
|
|
603
|
+
DeonNzFormFieldModule,
|
|
604
|
+
DeonNzFormulaModule,
|
|
605
|
+
DeonNzGridModule,
|
|
606
|
+
DeonNzGroupModule,
|
|
607
|
+
DeonNzHtmlModule,
|
|
608
|
+
DeonNzIconModule,
|
|
609
|
+
DeonNzLabelModule,
|
|
610
|
+
DeonNzLineModule,
|
|
611
|
+
DeonNzListModule,
|
|
612
|
+
DeonNzLookUpModule,
|
|
613
|
+
DeonNzNumberModule,
|
|
614
|
+
DeonNzOverTimeModule,
|
|
615
|
+
DeonNzPanelModule,
|
|
616
|
+
DeonNzRadioModule,
|
|
617
|
+
DeonNzRadioGroupModule,
|
|
618
|
+
DeonNzReformModule,
|
|
619
|
+
DeonNzRepeatModule,
|
|
620
|
+
DeonNzRepeatCardModule,
|
|
621
|
+
DeonNzSelectModule,
|
|
622
|
+
DeonNzSwitchModule,
|
|
623
|
+
DeonNzTabsModule,
|
|
624
|
+
DeonNzTextModule,
|
|
625
|
+
DeonNzTextAreaModule,
|
|
626
|
+
DeonNzTextCodeModule,
|
|
627
|
+
DeonNzTreeModule] });
|
|
628
|
+
}
|
|
629
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: GramDeonAntdModule, decorators: [{
|
|
630
|
+
type: NgModule,
|
|
631
|
+
args: [{
|
|
632
|
+
imports: [
|
|
633
|
+
DeonNzCheckboxModule,
|
|
634
|
+
DeonNzCheckboxGroupModule,
|
|
635
|
+
DeonNzColorModule,
|
|
636
|
+
DeonNzDateTimeModule,
|
|
637
|
+
DeonNzDescModule,
|
|
638
|
+
DeonNzDimModule,
|
|
639
|
+
DeonNzDimIndicatorModule,
|
|
640
|
+
DeonNzFormFieldModule,
|
|
641
|
+
DeonNzFormulaModule,
|
|
642
|
+
DeonNzGridModule,
|
|
643
|
+
DeonNzGroupModule,
|
|
644
|
+
DeonNzHtmlModule,
|
|
645
|
+
DeonNzIconModule,
|
|
646
|
+
DeonNzLabelModule,
|
|
647
|
+
DeonNzLineModule,
|
|
648
|
+
DeonNzListModule,
|
|
649
|
+
DeonNzLookUpModule,
|
|
650
|
+
DeonNzNumberModule,
|
|
651
|
+
DeonNzOverTimeModule,
|
|
652
|
+
DeonNzPanelModule,
|
|
653
|
+
DeonNzRadioModule,
|
|
654
|
+
DeonNzRadioGroupModule,
|
|
655
|
+
DeonNzReformModule,
|
|
656
|
+
DeonNzRepeatModule,
|
|
657
|
+
DeonNzRepeatCardModule,
|
|
658
|
+
DeonNzSelectModule,
|
|
659
|
+
DeonNzSwitchModule,
|
|
660
|
+
DeonNzTabsModule,
|
|
661
|
+
DeonNzTextModule,
|
|
662
|
+
DeonNzTextAreaModule,
|
|
663
|
+
DeonNzTextCodeModule,
|
|
664
|
+
DeonNzTreeModule
|
|
665
|
+
],
|
|
666
|
+
}]
|
|
667
|
+
}] });
|
|
668
|
+
|
|
669
|
+
/**
|
|
670
|
+
* Generated bundle index. Do not edit.
|
|
671
|
+
*/
|
|
672
|
+
|
|
673
|
+
export { GramDeonAntdModule };
|
|
674
|
+
//# sourceMappingURL=type.mjs.map
|