@ebuilding/biz-form 2.1.14 → 2.2.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/advanced/src/main/index.d.ts +1 -1
- package/basic/src/basic.d.ts +1 -1
- package/basic/src/basic.drawer.d.ts +1 -1
- package/basic/src/default/index.d.ts +1 -1
- package/basic/src/main/index.d.ts +1 -1
- package/custom/src/default/index.d.ts +1 -1
- package/custom/src/main/index.d.ts +1 -1
- package/design/src/default/index.d.ts +1 -1
- package/empInfo/src/children/index.d.ts +1 -1
- package/empInfo/src/default/index.d.ts +1 -1
- package/fesm2022/advanced.mjs +3 -3
- package/fesm2022/advanced.mjs.map +1 -1
- package/fesm2022/basic.mjs +4 -4
- package/fesm2022/basic.mjs.map +1 -1
- package/fesm2022/custom.mjs +4 -4
- package/fesm2022/custom.mjs.map +1 -1
- package/fesm2022/design.mjs +3 -3
- package/fesm2022/design.mjs.map +1 -1
- package/fesm2022/empInfo.mjs +4 -4
- package/fesm2022/empInfo.mjs.map +1 -1
- package/fesm2022/history.mjs +1 -1
- package/fesm2022/history.mjs.map +1 -1
- package/fesm2022/page.mjs +3 -3
- package/fesm2022/page.mjs.map +1 -1
- package/fesm2022/preview.mjs +4 -4
- package/fesm2022/preview.mjs.map +1 -1
- package/fesm2022/service.mjs +1 -1
- package/fesm2022/service.mjs.map +1 -1
- package/fesm2022/srv.basic.default.mjs +1 -1
- package/fesm2022/srv.basic.default.mjs.map +1 -1
- package/fesm2022/srv.basic.drawer.mjs +1 -1
- package/fesm2022/srv.basic.drawer.mjs.map +1 -1
- package/fesm2022/srv.basic.flow.mjs +1 -1
- package/fesm2022/srv.basic.flow.mjs.map +1 -1
- package/fesm2022/srv.basic.mjs +1 -1
- package/fesm2022/srv.basic.mjs.map +1 -1
- package/fesm2022/srv.default.service.mjs +1 -1
- package/fesm2022/srv.default.service.mjs.map +1 -1
- package/fesm2022/srv.form.default.service.mjs +1 -1
- package/fesm2022/srv.form.default.service.mjs.map +1 -1
- package/fesm2022/srv.form.service.mjs +1 -1
- package/fesm2022/srv.form.service.mjs.map +1 -1
- package/fesm2022/srv.form.workflow.mjs +1 -1
- package/fesm2022/srv.form.workflow.mjs.map +1 -1
- package/fesm2022/srv.form2.service.mjs +1 -1
- package/fesm2022/srv.form2.service.mjs.map +1 -1
- package/fesm2022/srv.formGroup.service.mjs +1 -1
- package/fesm2022/srv.formGroup.service.mjs.map +1 -1
- package/history/src/default/index.d.ts +1 -1
- package/package.json +23 -23
- package/page/src/default/index.d.ts +1 -1
- package/preview/src/default/index.d.ts +1 -1
- package/preview/src/main/index.d.ts +1 -1
- package/service/basic/index.d.ts +1 -1
- package/service/basic.default/index.d.ts +1 -1
- package/service/basic.drawer/index.d.ts +1 -1
- package/service/basic.flow/index.d.ts +1 -1
- package/service/default.service/index.d.ts +1 -1
- package/service/form.default.service/index.d.ts +1 -1
- package/service/form.service/index.d.ts +1 -1
- package/service/form.workflow/index.d.ts +1 -1
- package/service/form2.service/index.d.ts +1 -1
- package/service/formGroup.service/index.d.ts +1 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { OnInit } from '@angular/core';
|
|
2
2
|
import { _HttpClient } from '@delon/theme';
|
|
3
|
-
import { FormlyFormBuilder } from '@
|
|
3
|
+
import { FormlyFormBuilder } from '@ebuilding-form/core';
|
|
4
4
|
import { NzMessageService } from 'ng-zorro-antd/message';
|
|
5
5
|
import { NzModalService } from 'ng-zorro-antd/modal';
|
|
6
6
|
import { DeonFormUtilService } from '@ebuilding/base/shared.srv/deon.util';
|
package/basic/src/basic.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { EventEmitter, OnDestroy } from '@angular/core';
|
|
2
2
|
import { FormGroup } from '@angular/forms';
|
|
3
3
|
import { _HttpClient } from '@delon/theme';
|
|
4
|
-
import { FormlyFormOptions, FormlyFieldConfig, FormlyFormBuilder } from '@
|
|
4
|
+
import { FormlyFormOptions, FormlyFieldConfig, FormlyFormBuilder } from '@ebuilding-form/core';
|
|
5
5
|
import { NzMessageService } from 'ng-zorro-antd/message';
|
|
6
6
|
import { DeonFormUtilService } from '@ebuilding/base/shared.srv/deon.util';
|
|
7
7
|
import { GramGlobalService } from '@ebuilding/base/shared.srv/global.event';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { _HttpClient } from '@delon/theme';
|
|
2
|
-
import { FormlyFormBuilder } from '@
|
|
2
|
+
import { FormlyFormBuilder } from '@ebuilding-form/core';
|
|
3
3
|
import { NzMessageService } from 'ng-zorro-antd/message';
|
|
4
4
|
import { NzDrawerRef } from '@ebuilding/base/components/drawer';
|
|
5
5
|
import { DeonFormUtilService } from '@ebuilding/base/shared.srv/deon.util';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { OnInit, AfterContentChecked } from '@angular/core';
|
|
2
2
|
import { _HttpClient } from '@delon/theme';
|
|
3
|
-
import { FormlyFormBuilder } from '@
|
|
3
|
+
import { FormlyFormBuilder } from '@ebuilding-form/core';
|
|
4
4
|
import { NzMessageService } from 'ng-zorro-antd/message';
|
|
5
5
|
import { DeonFormUtilService } from '@ebuilding/base/shared.srv/deon.util';
|
|
6
6
|
import { GramGlobalService } from '@ebuilding/base/shared.srv/global.event';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { OnInit, AfterContentChecked } from '@angular/core';
|
|
2
2
|
import { _HttpClient } from '@delon/theme';
|
|
3
|
-
import { FormlyFormBuilder } from '@
|
|
3
|
+
import { FormlyFormBuilder } from '@ebuilding-form/core';
|
|
4
4
|
import { NzMessageService } from 'ng-zorro-antd/message';
|
|
5
5
|
import { DeonFormUtilService } from '@ebuilding/base/shared.srv/deon.util';
|
|
6
6
|
import { GramGlobalService } from '@ebuilding/base/shared.srv/global.event';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { OnInit, AfterContentChecked } from '@angular/core';
|
|
2
2
|
import { _HttpClient } from '@delon/theme';
|
|
3
|
-
import { FormlyFormBuilder } from '@
|
|
3
|
+
import { FormlyFormBuilder } from '@ebuilding-form/core';
|
|
4
4
|
import { NzMessageService } from 'ng-zorro-antd/message';
|
|
5
5
|
import { NzModalService } from 'ng-zorro-antd/modal';
|
|
6
6
|
import { DeonFormUtilService } from '@ebuilding/base/shared.srv/deon.util';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { OnInit } from '@angular/core';
|
|
2
2
|
import { _HttpClient } from '@delon/theme';
|
|
3
|
-
import { FormlyFormBuilder } from '@
|
|
3
|
+
import { FormlyFormBuilder } from '@ebuilding-form/core';
|
|
4
4
|
import { NzMessageService } from 'ng-zorro-antd/message';
|
|
5
5
|
import { NzModalService } from 'ng-zorro-antd/modal';
|
|
6
6
|
import { DeonFormUtilService } from '@ebuilding/base/shared.srv/deon.util';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { OnInit, ChangeDetectorRef, AfterContentChecked } from '@angular/core';
|
|
2
2
|
import { _HttpClient } from '@delon/theme';
|
|
3
|
-
import { FormlyFormBuilder } from '@
|
|
3
|
+
import { FormlyFormBuilder } from '@ebuilding-form/core';
|
|
4
4
|
import { NzMessageService } from 'ng-zorro-antd/message';
|
|
5
5
|
import { NzDrawerRef } from '@ebuilding/base/components/drawer';
|
|
6
6
|
import { DeonFormUtilService } from '@ebuilding/base/shared.srv/deon.util';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { OnInit, OnChanges, SimpleChanges } from '@angular/core';
|
|
2
2
|
import { _HttpClient } from '@delon/theme';
|
|
3
|
-
import { FormlyFormBuilder } from '@
|
|
3
|
+
import { FormlyFormBuilder } from '@ebuilding-form/core';
|
|
4
4
|
import { NzMessageService } from 'ng-zorro-antd/message';
|
|
5
5
|
import { DeonFormUtilService } from '@ebuilding/base/shared.srv/deon.util';
|
|
6
6
|
import { GramGlobalService } from '@ebuilding/base/shared.srv/global.event';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { OnInit, Renderer2, ElementRef, OnChanges, SimpleChanges } from '@angular/core';
|
|
2
2
|
import { _HttpClient } from '@delon/theme';
|
|
3
|
-
import { FormlyFormBuilder } from '@
|
|
3
|
+
import { FormlyFormBuilder } from '@ebuilding-form/core';
|
|
4
4
|
import { NzMessageService } from 'ng-zorro-antd/message';
|
|
5
5
|
import { DeonFormUtilService } from '@ebuilding/base/shared.srv/deon.util';
|
|
6
6
|
import { GramGlobalService } from '@ebuilding/base/shared.srv/global.event';
|
package/fesm2022/advanced.mjs
CHANGED
|
@@ -4,8 +4,8 @@ import * as i10 from '@angular/common';
|
|
|
4
4
|
import { CommonModule } from '@angular/common';
|
|
5
5
|
import * as i11 from '@angular/forms';
|
|
6
6
|
import { FormsModule, ReactiveFormsModule } from '@angular/forms';
|
|
7
|
-
import * as i4 from '@
|
|
8
|
-
import { FormlyModule } from '@
|
|
7
|
+
import * as i4 from '@ebuilding-form/core';
|
|
8
|
+
import { FormlyModule } from '@ebuilding-form/core';
|
|
9
9
|
import { NzFormModule } from 'ng-zorro-antd/form';
|
|
10
10
|
import * as i12 from 'ng-zorro-antd/spin';
|
|
11
11
|
import { NzSpinModule } from 'ng-zorro-antd/spin';
|
|
@@ -69,7 +69,7 @@ class FormAdvancedMainComponent extends BasicDefaultService {
|
|
|
69
69
|
return null;
|
|
70
70
|
}
|
|
71
71
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: FormAdvancedMainComponent, deps: [{ token: i1._HttpClient }, { token: i2.DeonFormUtilService }, { token: i3.DeonFormResetService }, { token: i4.FormlyFormBuilder }, { token: i5.GramGlobalService }, { token: i6.NzMessageService }, { token: i7.NzModalService }, { token: i8.GramBaseDialogService }, { token: i9.CommAPIService }], target: i0.ɵɵFactoryTarget.Component });
|
|
72
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.15", type: FormAdvancedMainComponent, isStandalone: true, selector: "form-advanced-main", providers: [CommAPIService], usesInheritance: true, ngImport: i0, template: "<form [formGroup]=\"form\" (ngSubmit)=\"btnSubmit()\" #defaultForm>\r\n <nz-spin [nzSpinning]=\"loading\" nzTip=\"\u62FC\u547D\u52A0\u8F7D\u4E2D...\" class=\"deon-list-spin\">\r\n <div class=\"deon-from\">\r\n <div class=\"deon-content\">\r\n <ng-container *ngIf=\"fields && fields.length>0;else emptyPage\">\r\n <formly-form [model]=\"model\" [fields]=\"fields\" [options]=\"options\" [form]=\"form\"> </formly-form>\r\n </ng-container>\r\n <ng-template #emptyPage>\r\n <nz-empty *ngIf=\"loading!==true\"></nz-empty>\r\n </ng-template>\r\n </div>\r\n </div>\r\n\r\n </nz-spin>\r\n</form>", styles: [":host ::ng-deep{display:flex;flex:1;flex-direction:column;width:100%;height:100%;padding:0 5px}:host ::ng-deep form{flex:1;overflow:auto}:host ::ng-deep .left-box .tips{color:red;font-weight:600;font-size:16px}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i10.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "ngmodule", type: FormsModule }, { kind: "directive", type: i11.ɵNgNoValidate, selector: "form:not([ngNoForm]):not([ngNativeValidate])" }, { kind: "directive", type: i11.NgControlStatusGroup, selector: "[formGroupName],[formArrayName],[ngModelGroup],[formGroup],form:not([ngNoForm]),[ngForm]" }, { kind: "ngmodule", type: ReactiveFormsModule }, { kind: "directive", type: i11.FormGroupDirective, selector: "[formGroup]", inputs: ["formGroup"], outputs: ["ngSubmit"], exportAs: ["ngForm"] }, { kind: "ngmodule", type: NzSpinModule }, { kind: "component", type: i12.NzSpinComponent, selector: "nz-spin", inputs: ["nzIndicator", "nzSize", "nzTip", "nzDelay", "nzSimple", "nzSpinning"], exportAs: ["nzSpin"] }, { kind: "ngmodule", type: NzEmptyModule }, { kind: "component", type: i13.NzEmptyComponent, selector: "nz-empty", inputs: ["nzNotFoundImage", "nzNotFoundContent", "nzNotFoundFooter"], exportAs: ["nzEmpty"] }, { kind: "ngmodule", type: NzIconModule }, { kind: "ngmodule", type: NzButtonModule }, { kind: "ngmodule", type: NzFormModule }, { kind: "ngmodule", type: FormlyModule }, { kind: "component", type: i4.
|
|
72
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.15", type: FormAdvancedMainComponent, isStandalone: true, selector: "form-advanced-main", providers: [CommAPIService], usesInheritance: true, ngImport: i0, template: "<form [formGroup]=\"form\" (ngSubmit)=\"btnSubmit()\" #defaultForm>\r\n <nz-spin [nzSpinning]=\"loading\" nzTip=\"\u62FC\u547D\u52A0\u8F7D\u4E2D...\" class=\"deon-list-spin\">\r\n <div class=\"deon-from\">\r\n <div class=\"deon-content\">\r\n <ng-container *ngIf=\"fields && fields.length>0;else emptyPage\">\r\n <formly-form [model]=\"model\" [fields]=\"fields\" [options]=\"options\" [form]=\"form\"> </formly-form>\r\n </ng-container>\r\n <ng-template #emptyPage>\r\n <nz-empty *ngIf=\"loading!==true\"></nz-empty>\r\n </ng-template>\r\n </div>\r\n </div>\r\n\r\n </nz-spin>\r\n</form>", styles: [":host ::ng-deep{display:flex;flex:1;flex-direction:column;width:100%;height:100%;padding:0 5px}:host ::ng-deep form{flex:1;overflow:auto}:host ::ng-deep .left-box .tips{color:red;font-weight:600;font-size:16px}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i10.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "ngmodule", type: FormsModule }, { kind: "directive", type: i11.ɵNgNoValidate, selector: "form:not([ngNoForm]):not([ngNativeValidate])" }, { kind: "directive", type: i11.NgControlStatusGroup, selector: "[formGroupName],[formArrayName],[ngModelGroup],[formGroup],form:not([ngNoForm]),[ngForm]" }, { kind: "ngmodule", type: ReactiveFormsModule }, { kind: "directive", type: i11.FormGroupDirective, selector: "[formGroup]", inputs: ["formGroup"], outputs: ["ngSubmit"], exportAs: ["ngForm"] }, { kind: "ngmodule", type: NzSpinModule }, { kind: "component", type: i12.NzSpinComponent, selector: "nz-spin", inputs: ["nzIndicator", "nzSize", "nzTip", "nzDelay", "nzSimple", "nzSpinning"], exportAs: ["nzSpin"] }, { kind: "ngmodule", type: NzEmptyModule }, { kind: "component", type: i13.NzEmptyComponent, selector: "nz-empty", inputs: ["nzNotFoundImage", "nzNotFoundContent", "nzNotFoundFooter"], exportAs: ["nzEmpty"] }, { kind: "ngmodule", type: NzIconModule }, { kind: "ngmodule", type: NzButtonModule }, { kind: "ngmodule", type: NzFormModule }, { kind: "ngmodule", type: FormlyModule }, { kind: "component", type: i4.LegacyFormlyForm, selector: "formly-form" }, { kind: "ngmodule", type: CardContentModule }, { kind: "ngmodule", type: GramDeonAntdModule }] });
|
|
73
73
|
}
|
|
74
74
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: FormAdvancedMainComponent, decorators: [{
|
|
75
75
|
type: Component,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"advanced.mjs","sources":["../../../../packages/biz-form/advanced/src/main/index.ts","../../../../packages/biz-form/advanced/src/main/index.html","../../../../packages/biz-form/advanced/src/index.module.ts","../../../../packages/biz-form/advanced/advanced.ts"],"sourcesContent":["\r\nimport { Component, OnInit } from '@angular/core';\r\nimport { CommonModule } from '@angular/common';\r\nimport { ReactiveFormsModule, FormsModule } from '@angular/forms';\r\nimport { _HttpClient } from '@delon/theme';\r\nimport { FormlyModule, FormlyFormBuilder } from '@
|
|
1
|
+
{"version":3,"file":"advanced.mjs","sources":["../../../../packages/biz-form/advanced/src/main/index.ts","../../../../packages/biz-form/advanced/src/main/index.html","../../../../packages/biz-form/advanced/src/index.module.ts","../../../../packages/biz-form/advanced/advanced.ts"],"sourcesContent":["\r\nimport { Component, OnInit } from '@angular/core';\r\nimport { CommonModule } from '@angular/common';\r\nimport { ReactiveFormsModule, FormsModule } from '@angular/forms';\r\nimport { _HttpClient } from '@delon/theme';\r\nimport { FormlyModule, FormlyFormBuilder } from '@ebuilding-form/core';\r\nimport { NzFormModule } from 'ng-zorro-antd/form';\r\nimport { NzSpinModule } from 'ng-zorro-antd/spin';\r\nimport { NzButtonModule } from 'ng-zorro-antd/button';\r\nimport { NzEmptyModule } from 'ng-zorro-antd/empty';\r\nimport { NzIconModule } from 'ng-zorro-antd/icon';\r\nimport { NzMessageService } from 'ng-zorro-antd/message';\r\nimport { NzModalService } from 'ng-zorro-antd/modal';\r\n\r\nimport { DeonFormUtilService } from '@ebuilding/base/shared.srv/deon.util';\r\nimport { DeonFormResetService } from '@ebuilding/base/shared.srv/deon2.util';\r\nimport { GramBaseDialogService } from '@ebuilding/base/shared.srv/base-dialog.service';\r\nimport { GramGlobalService } from '@ebuilding/base/shared.srv/global.event';\r\nimport { CommAPIService } from '@ebuilding/base/shared.srv/commApi.service';\r\n\r\nimport { GramDeonAntdModule } from '@ebuilding/biz-comm/type';\r\nimport { CardContentModule } from '@ebuilding/biz-comm/other/card';\r\nimport { ModuleAPI } from '@ebuilding/base/shared.var/shared.constant';\r\n\r\nimport { BasicDefaultService } from '@ebuilding/biz-form/service/basic.default';\r\n\r\n@Component({\r\n selector: 'form-advanced-main',\r\n styleUrls: ['./index.less'],\r\n templateUrl: './index.html',\r\n providers: [CommAPIService],\r\n imports: [\r\n CommonModule,\r\n FormsModule,\r\n ReactiveFormsModule,\r\n NzSpinModule,\r\n NzEmptyModule,\r\n NzIconModule,\r\n FormsModule,\r\n NzButtonModule,\r\n NzFormModule,\r\n FormlyModule,\r\n CardContentModule,\r\n GramDeonAntdModule\r\n ]\r\n})\r\nexport class FormAdvancedMainComponent extends BasicDefaultService implements OnInit {\r\n constructor(\r\n public override http: _HttpClient,\r\n public override utilService: DeonFormUtilService,\r\n public override resetService: DeonFormResetService,\r\n public override deonFormBuilder: FormlyFormBuilder,\r\n public override globalSrv: GramGlobalService,\r\n public override msg: NzMessageService,\r\n public override modal: NzModalService,\r\n public override dialogService: GramBaseDialogService,\r\n public override commAPISrv: CommAPIService,\r\n ) {\r\n super(http, utilService, resetService, deonFormBuilder, globalSrv, msg, modal, dialogService, commAPISrv);\r\n }\r\n\r\n ngOnInit() {\r\n this.loading = true;\r\n this.getPageConfig();\r\n }\r\n\r\n override getFromOtherData() {\r\n return this.http.post(`${ModuleAPI.user}/user/form/getDesignField/${this.config.formId}`);\r\n }\r\n\r\n getModelData() {\r\n if (this.model && this.otherData) {\r\n let result: any = {};\r\n for (let [key, value] of Object.entries(this.model)) {\r\n if (this.otherData[key] && value) {\r\n result[this.otherData[key]] = value;\r\n }\r\n }\r\n return result;\r\n }\r\n return null;\r\n }\r\n}\r\n","<form [formGroup]=\"form\" (ngSubmit)=\"btnSubmit()\" #defaultForm>\r\n <nz-spin [nzSpinning]=\"loading\" nzTip=\"拼命加载中...\" class=\"deon-list-spin\">\r\n <div class=\"deon-from\">\r\n <div class=\"deon-content\">\r\n <ng-container *ngIf=\"fields && fields.length>0;else emptyPage\">\r\n <formly-form [model]=\"model\" [fields]=\"fields\" [options]=\"options\" [form]=\"form\"> </formly-form>\r\n </ng-container>\r\n <ng-template #emptyPage>\r\n <nz-empty *ngIf=\"loading!==true\"></nz-empty>\r\n </ng-template>\r\n </div>\r\n </div>\r\n\r\n </nz-spin>\r\n</form>","import { NgModule } from '@angular/core';\r\nimport { CommonModule } from '@angular/common';\r\nimport { FormAdvancedMainComponent } from './main/index';\r\n\r\nconst components: any[] = [FormAdvancedMainComponent];\r\n@NgModule({\r\n imports: [\r\n CommonModule,\r\n ...components\r\n ],\r\n exports: [...components],\r\n})\r\nexport class FormAdvancedModule { }\r\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA8CM,MAAO,yBAA0B,SAAQ,mBAAmB,CAAA;AAE9C,IAAA,IAAA;AACA,IAAA,WAAA;AACA,IAAA,YAAA;AACA,IAAA,eAAA;AACA,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;AACJ,qBAAA;AACD,oBAAA,OAAO,EAAE,CAAC,GAAG,UAAU,CAAC;AACzB,iBAAA;;;ACXD;;AAEG;;;;"}
|
package/fesm2022/basic.mjs
CHANGED
|
@@ -4,8 +4,8 @@ import * as i8 from '@angular/common';
|
|
|
4
4
|
import { CommonModule } from '@angular/common';
|
|
5
5
|
import * as i9 from '@angular/forms';
|
|
6
6
|
import { FormGroup, FormsModule, ReactiveFormsModule } from '@angular/forms';
|
|
7
|
-
import * as i3 from '@
|
|
8
|
-
import { FormlyModule } from '@
|
|
7
|
+
import * as i3 from '@ebuilding-form/core';
|
|
8
|
+
import { FormlyModule } from '@ebuilding-form/core';
|
|
9
9
|
import { NzFormModule } from 'ng-zorro-antd/form';
|
|
10
10
|
import * as i10 from 'ng-zorro-antd/icon';
|
|
11
11
|
import { NzIconModule } from 'ng-zorro-antd/icon';
|
|
@@ -329,7 +329,7 @@ class FormBasicComponent extends BasicDrawerService {
|
|
|
329
329
|
// this.changeDetector.detectChanges();
|
|
330
330
|
}
|
|
331
331
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: FormBasicComponent, deps: [{ token: i1._HttpClient }, { token: i2.DeonFormUtilService }, { token: i3.FormlyFormBuilder }, { token: i4.GramGlobalService }, { token: i5$1.NzDrawerRef }, { token: i5.NzMessageService }, { token: i7.CommAPIService }], target: i0.ɵɵFactoryTarget.Component });
|
|
332
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.15", type: FormBasicComponent, isStandalone: true, selector: "form-basic", providers: [CommAPIService], usesInheritance: true, ngImport: i0, template: "<form [formGroup]=\"form\" (ngSubmit)=\"save()\" #defaultForm>\r\n <nz-spin [nzSpinning]=\"loading\" nzTip=\"\u62FC\u547D\u52A0\u8F7D\u4E2D...\" class=\"deon-list-spin\">\r\n <div class=\"deon-from\">\r\n <ng-container *ngIf=\"fields && fields.length>0;else emptyPage\">\r\n <formly-form [model]=\"model\" [fields]=\"fields\" [options]=\"options\" [form]=\"form\"> </formly-form>\r\n </ng-container>\r\n <ng-template #emptyPage>\r\n <nz-empty *ngIf=\"loading!==true\"></nz-empty>\r\n </ng-template>\r\n </div>\r\n <div class=\"deon-button\" *ngIf=\"config.type!='VIEW' && config.type!='PREVIEW'\">\r\n <button nz-button nzType=\"default\" (click)=\"btnClose()\" type=\"button\"><i nz-icon nzType=\"close\"></i>\u53D6\u6D88</button>\r\n <!-- <button nz-button nzType=\"primary\" id=\"DRAFT\" *ngIf=\"draft==true\"><i nz-icon nzType=\"hourglass\"></i>\u6682\u5B58</button> -->\r\n <button nz-button nzType=\"primary\" id=\"SAVE\"><i nz-icon nzType=\"save\"></i>\u4FDD\u5B58</button>\r\n </div>\r\n </nz-spin>\r\n</form>", styles: [":host ::ng-deep{display:flex;flex:1;flex-direction:column;width:100%;height:100%;padding:0 5px}:host ::ng-deep form{flex:1;overflow:auto}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i8.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "ngmodule", type: FormsModule }, { kind: "directive", type: i9.ɵNgNoValidate, selector: "form:not([ngNoForm]):not([ngNativeValidate])" }, { kind: "directive", type: i9.NgControlStatusGroup, selector: "[formGroupName],[formArrayName],[ngModelGroup],[formGroup],form:not([ngNoForm]),[ngForm]" }, { kind: "ngmodule", type: ReactiveFormsModule }, { kind: "directive", type: i9.FormGroupDirective, selector: "[formGroup]", inputs: ["formGroup"], outputs: ["ngSubmit"], exportAs: ["ngForm"] }, { kind: "ngmodule", type: NzFormModule }, { kind: "ngmodule", type: NzIconModule }, { kind: "directive", type: i10.NzIconDirective, selector: "nz-icon,[nz-icon]", inputs: ["nzSpin", "nzRotate", "nzType", "nzTheme", "nzTwotoneColor", "nzIconfont"], exportAs: ["nzIcon"] }, { kind: "ngmodule", type: NzSpinModule }, { kind: "component", type: i11.NzSpinComponent, selector: "nz-spin", inputs: ["nzIndicator", "nzSize", "nzTip", "nzDelay", "nzSimple", "nzSpinning"], exportAs: ["nzSpin"] }, { kind: "ngmodule", type: NzButtonModule }, { kind: "component", type: i12.NzButtonComponent, selector: "button[nz-button], a[nz-button]", inputs: ["nzBlock", "nzGhost", "nzSearch", "nzLoading", "nzDanger", "disabled", "tabIndex", "nzType", "nzShape", "nzSize"], exportAs: ["nzButton"] }, { kind: "directive", type: i13.ɵ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: i14.NzWaveDirective, selector: "[nz-wave],button[nz-button]:not([nzType=\"link\"]):not([nzType=\"text\"])", inputs: ["nzWaveExtraNode"], exportAs: ["nzWave"] }, { kind: "ngmodule", type: NzEmptyModule }, { kind: "component", type: i15.NzEmptyComponent, selector: "nz-empty", inputs: ["nzNotFoundImage", "nzNotFoundContent", "nzNotFoundFooter"], exportAs: ["nzEmpty"] }, { kind: "ngmodule", type: FormlyModule }, { kind: "component", type: i3.
|
|
332
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.15", type: FormBasicComponent, isStandalone: true, selector: "form-basic", providers: [CommAPIService], usesInheritance: true, ngImport: i0, template: "<form [formGroup]=\"form\" (ngSubmit)=\"save()\" #defaultForm>\r\n <nz-spin [nzSpinning]=\"loading\" nzTip=\"\u62FC\u547D\u52A0\u8F7D\u4E2D...\" class=\"deon-list-spin\">\r\n <div class=\"deon-from\">\r\n <ng-container *ngIf=\"fields && fields.length>0;else emptyPage\">\r\n <formly-form [model]=\"model\" [fields]=\"fields\" [options]=\"options\" [form]=\"form\"> </formly-form>\r\n </ng-container>\r\n <ng-template #emptyPage>\r\n <nz-empty *ngIf=\"loading!==true\"></nz-empty>\r\n </ng-template>\r\n </div>\r\n <div class=\"deon-button\" *ngIf=\"config.type!='VIEW' && config.type!='PREVIEW'\">\r\n <button nz-button nzType=\"default\" (click)=\"btnClose()\" type=\"button\"><i nz-icon nzType=\"close\"></i>\u53D6\u6D88</button>\r\n <!-- <button nz-button nzType=\"primary\" id=\"DRAFT\" *ngIf=\"draft==true\"><i nz-icon nzType=\"hourglass\"></i>\u6682\u5B58</button> -->\r\n <button nz-button nzType=\"primary\" id=\"SAVE\"><i nz-icon nzType=\"save\"></i>\u4FDD\u5B58</button>\r\n </div>\r\n </nz-spin>\r\n</form>", styles: [":host ::ng-deep{display:flex;flex:1;flex-direction:column;width:100%;height:100%;padding:0 5px}:host ::ng-deep form{flex:1;overflow:auto}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i8.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "ngmodule", type: FormsModule }, { kind: "directive", type: i9.ɵNgNoValidate, selector: "form:not([ngNoForm]):not([ngNativeValidate])" }, { kind: "directive", type: i9.NgControlStatusGroup, selector: "[formGroupName],[formArrayName],[ngModelGroup],[formGroup],form:not([ngNoForm]),[ngForm]" }, { kind: "ngmodule", type: ReactiveFormsModule }, { kind: "directive", type: i9.FormGroupDirective, selector: "[formGroup]", inputs: ["formGroup"], outputs: ["ngSubmit"], exportAs: ["ngForm"] }, { kind: "ngmodule", type: NzFormModule }, { kind: "ngmodule", type: NzIconModule }, { kind: "directive", type: i10.NzIconDirective, selector: "nz-icon,[nz-icon]", inputs: ["nzSpin", "nzRotate", "nzType", "nzTheme", "nzTwotoneColor", "nzIconfont"], exportAs: ["nzIcon"] }, { kind: "ngmodule", type: NzSpinModule }, { kind: "component", type: i11.NzSpinComponent, selector: "nz-spin", inputs: ["nzIndicator", "nzSize", "nzTip", "nzDelay", "nzSimple", "nzSpinning"], exportAs: ["nzSpin"] }, { kind: "ngmodule", type: NzButtonModule }, { kind: "component", type: i12.NzButtonComponent, selector: "button[nz-button], a[nz-button]", inputs: ["nzBlock", "nzGhost", "nzSearch", "nzLoading", "nzDanger", "disabled", "tabIndex", "nzType", "nzShape", "nzSize"], exportAs: ["nzButton"] }, { kind: "directive", type: i13.ɵ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: i14.NzWaveDirective, selector: "[nz-wave],button[nz-button]:not([nzType=\"link\"]):not([nzType=\"text\"])", inputs: ["nzWaveExtraNode"], exportAs: ["nzWave"] }, { kind: "ngmodule", type: NzEmptyModule }, { kind: "component", type: i15.NzEmptyComponent, selector: "nz-empty", inputs: ["nzNotFoundImage", "nzNotFoundContent", "nzNotFoundFooter"], exportAs: ["nzEmpty"] }, { kind: "ngmodule", type: FormlyModule }, { kind: "component", type: i3.LegacyFormlyForm, selector: "formly-form" }, { kind: "ngmodule", type: GramDeonAntdModule }] });
|
|
333
333
|
}
|
|
334
334
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: FormBasicComponent, decorators: [{
|
|
335
335
|
type: Component,
|
|
@@ -407,7 +407,7 @@ class FormBasicMainComponent extends BasicService {
|
|
|
407
407
|
}
|
|
408
408
|
}
|
|
409
409
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: FormBasicMainComponent, deps: [{ token: i1._HttpClient }, { token: i2.DeonFormUtilService }, { token: i3.FormlyFormBuilder }, { token: i4.GramGlobalService }, { token: i5$1.NzDrawerRef, optional: true }, { token: i5.NzMessageService }, { token: i7.CommAPIService }], target: i0.ɵɵFactoryTarget.Component });
|
|
410
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.15", type: FormBasicMainComponent, isStandalone: true, selector: "form-basic-main", providers: [CommAPIService], usesInheritance: true, ngImport: i0, template: "<form [formGroup]=\"form\" (ngSubmit)=\"save()\" #defaultForm>\r\n <nz-spin [nzSpinning]=\"loading\" nzTip=\"\u62FC\u547D\u52A0\u8F7D\u4E2D...\" class=\"deon-list-spin\">\r\n <div class=\"deon-from\">\r\n <ng-container *ngIf=\"fields && fields.length>0;else emptyPage\">\r\n <formly-form [model]=\"model\" [fields]=\"fields\" [options]=\"options\" [form]=\"form\"> </formly-form>\r\n </ng-container>\r\n <ng-template #emptyPage>\r\n <nz-empty *ngIf=\"loading!==true\"></nz-empty>\r\n </ng-template>\r\n </div>\r\n <div class=\"deon-button\" *ngIf=\"config.type!='VIEW' && config.type!='PREVIEW'\">\r\n <button nz-button nzType=\"default\" (click)=\"btnClose()\" type=\"button\"><i nz-icon nzType=\"close\"></i>\u53D6\u6D88</button>\r\n <!-- <button nz-button nzType=\"primary\" id=\"DRAFT\" *ngIf=\"draft==true\"><i nz-icon nzType=\"hourglass\"></i>\u6682\u5B58</button> -->\r\n <button nz-button nzType=\"primary\" id=\"SAVE\"><i nz-icon nzType=\"save\"></i>\u4FDD\u5B58</button>\r\n </div>\r\n </nz-spin>\r\n</form>", styles: [":host ::ng-deep{display:flex;flex:1;flex-direction:column;width:100%;height:100%;padding:0 5px}:host ::ng-deep form{flex:1;overflow:auto}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i8.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "ngmodule", type: FormsModule }, { kind: "directive", type: i9.ɵNgNoValidate, selector: "form:not([ngNoForm]):not([ngNativeValidate])" }, { kind: "directive", type: i9.NgControlStatusGroup, selector: "[formGroupName],[formArrayName],[ngModelGroup],[formGroup],form:not([ngNoForm]),[ngForm]" }, { kind: "ngmodule", type: ReactiveFormsModule }, { kind: "directive", type: i9.FormGroupDirective, selector: "[formGroup]", inputs: ["formGroup"], outputs: ["ngSubmit"], exportAs: ["ngForm"] }, { kind: "ngmodule", type: NzFormModule }, { kind: "ngmodule", type: NzIconModule }, { kind: "directive", type: i10.NzIconDirective, selector: "nz-icon,[nz-icon]", inputs: ["nzSpin", "nzRotate", "nzType", "nzTheme", "nzTwotoneColor", "nzIconfont"], exportAs: ["nzIcon"] }, { kind: "ngmodule", type: NzSpinModule }, { kind: "component", type: i11.NzSpinComponent, selector: "nz-spin", inputs: ["nzIndicator", "nzSize", "nzTip", "nzDelay", "nzSimple", "nzSpinning"], exportAs: ["nzSpin"] }, { kind: "ngmodule", type: NzButtonModule }, { kind: "component", type: i12.NzButtonComponent, selector: "button[nz-button], a[nz-button]", inputs: ["nzBlock", "nzGhost", "nzSearch", "nzLoading", "nzDanger", "disabled", "tabIndex", "nzType", "nzShape", "nzSize"], exportAs: ["nzButton"] }, { kind: "directive", type: i13.ɵ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: i14.NzWaveDirective, selector: "[nz-wave],button[nz-button]:not([nzType=\"link\"]):not([nzType=\"text\"])", inputs: ["nzWaveExtraNode"], exportAs: ["nzWave"] }, { kind: "ngmodule", type: NzEmptyModule }, { kind: "component", type: i15.NzEmptyComponent, selector: "nz-empty", inputs: ["nzNotFoundImage", "nzNotFoundContent", "nzNotFoundFooter"], exportAs: ["nzEmpty"] }, { kind: "ngmodule", type: FormlyModule }, { kind: "component", type: i3.
|
|
410
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.15", type: FormBasicMainComponent, isStandalone: true, selector: "form-basic-main", providers: [CommAPIService], usesInheritance: true, ngImport: i0, template: "<form [formGroup]=\"form\" (ngSubmit)=\"save()\" #defaultForm>\r\n <nz-spin [nzSpinning]=\"loading\" nzTip=\"\u62FC\u547D\u52A0\u8F7D\u4E2D...\" class=\"deon-list-spin\">\r\n <div class=\"deon-from\">\r\n <ng-container *ngIf=\"fields && fields.length>0;else emptyPage\">\r\n <formly-form [model]=\"model\" [fields]=\"fields\" [options]=\"options\" [form]=\"form\"> </formly-form>\r\n </ng-container>\r\n <ng-template #emptyPage>\r\n <nz-empty *ngIf=\"loading!==true\"></nz-empty>\r\n </ng-template>\r\n </div>\r\n <div class=\"deon-button\" *ngIf=\"config.type!='VIEW' && config.type!='PREVIEW'\">\r\n <button nz-button nzType=\"default\" (click)=\"btnClose()\" type=\"button\"><i nz-icon nzType=\"close\"></i>\u53D6\u6D88</button>\r\n <!-- <button nz-button nzType=\"primary\" id=\"DRAFT\" *ngIf=\"draft==true\"><i nz-icon nzType=\"hourglass\"></i>\u6682\u5B58</button> -->\r\n <button nz-button nzType=\"primary\" id=\"SAVE\"><i nz-icon nzType=\"save\"></i>\u4FDD\u5B58</button>\r\n </div>\r\n </nz-spin>\r\n</form>", styles: [":host ::ng-deep{display:flex;flex:1;flex-direction:column;width:100%;height:100%;padding:0 5px}:host ::ng-deep form{flex:1;overflow:auto}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i8.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "ngmodule", type: FormsModule }, { kind: "directive", type: i9.ɵNgNoValidate, selector: "form:not([ngNoForm]):not([ngNativeValidate])" }, { kind: "directive", type: i9.NgControlStatusGroup, selector: "[formGroupName],[formArrayName],[ngModelGroup],[formGroup],form:not([ngNoForm]),[ngForm]" }, { kind: "ngmodule", type: ReactiveFormsModule }, { kind: "directive", type: i9.FormGroupDirective, selector: "[formGroup]", inputs: ["formGroup"], outputs: ["ngSubmit"], exportAs: ["ngForm"] }, { kind: "ngmodule", type: NzFormModule }, { kind: "ngmodule", type: NzIconModule }, { kind: "directive", type: i10.NzIconDirective, selector: "nz-icon,[nz-icon]", inputs: ["nzSpin", "nzRotate", "nzType", "nzTheme", "nzTwotoneColor", "nzIconfont"], exportAs: ["nzIcon"] }, { kind: "ngmodule", type: NzSpinModule }, { kind: "component", type: i11.NzSpinComponent, selector: "nz-spin", inputs: ["nzIndicator", "nzSize", "nzTip", "nzDelay", "nzSimple", "nzSpinning"], exportAs: ["nzSpin"] }, { kind: "ngmodule", type: NzButtonModule }, { kind: "component", type: i12.NzButtonComponent, selector: "button[nz-button], a[nz-button]", inputs: ["nzBlock", "nzGhost", "nzSearch", "nzLoading", "nzDanger", "disabled", "tabIndex", "nzType", "nzShape", "nzSize"], exportAs: ["nzButton"] }, { kind: "directive", type: i13.ɵ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: i14.NzWaveDirective, selector: "[nz-wave],button[nz-button]:not([nzType=\"link\"]):not([nzType=\"text\"])", inputs: ["nzWaveExtraNode"], exportAs: ["nzWave"] }, { kind: "ngmodule", type: NzEmptyModule }, { kind: "component", type: i15.NzEmptyComponent, selector: "nz-empty", inputs: ["nzNotFoundImage", "nzNotFoundContent", "nzNotFoundFooter"], exportAs: ["nzEmpty"] }, { kind: "ngmodule", type: FormlyModule }, { kind: "component", type: i3.LegacyFormlyForm, selector: "formly-form" }, { kind: "ngmodule", type: GramDeonAntdModule }] });
|
|
411
411
|
}
|
|
412
412
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: FormBasicMainComponent, decorators: [{
|
|
413
413
|
type: Component,
|
package/fesm2022/basic.mjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"basic.mjs","sources":["../../../../packages/biz-form/basic/src/basic.ts","../../../../packages/biz-form/basic/src/basic.drawer.ts","../../../../packages/biz-form/basic/src/default/index.ts","../../../../packages/biz-form/basic/src/default/index.html","../../../../packages/biz-form/basic/src/main/index.ts","../../../../packages/biz-form/basic/src/main/index.html","../../../../packages/biz-form/basic/src/index.module.ts","../../../../packages/biz-form/basic/basic.ts"],"sourcesContent":["import { Directive, Input, Output, EventEmitter, OnDestroy } from '@angular/core';\r\nimport { FormGroup } from '@angular/forms';\r\nimport { _HttpClient } from '@delon/theme';\r\nimport { FormlyFormOptions, FormlyFieldConfig, FormlyFormBuilder } from '@kre-form/core';\r\nimport { NzMessageService } from 'ng-zorro-antd/message';\r\n\r\nimport { DeonFormUtilService } from '@ebuilding/base/shared.srv/deon.util';\r\nimport { GramGlobalService } from '@ebuilding/base/shared.srv/global.event';\r\nimport { CommAPIService } from '@ebuilding/base/shared.srv/commApi.service';\r\nimport { GetFormConfig } from '@ebuilding/base/shared.config/form';\r\n\r\nimport _ from 'lodash';\r\nimport { of, Subject, zip } from 'rxjs';\r\n\r\n@Directive()\r\nexport abstract class BasicService implements OnDestroy {\r\n loading: boolean = true;\r\n form = new FormGroup({});\r\n model: any = {};\r\n options: FormlyFormOptions = {};\r\n fields: FormlyFieldConfig[] = [];\r\n\r\n /**\r\n * 销毁\r\n */\r\n onDestroy$ = new Subject<void>();\r\n\r\n @Input() config: any = null;\r\n @Output() btnCloseEvent: EventEmitter<any> = new EventEmitter();\r\n @Output() btnSaveEvent: EventEmitter<any> = new EventEmitter();\r\n\r\n constructor(\r\n public http: _HttpClient,\r\n public utilService: DeonFormUtilService,\r\n public deonFormBuilder: FormlyFormBuilder,\r\n public globalSrv: GramGlobalService,\r\n public msg: NzMessageService,\r\n public commAPISrv: CommAPIService,\r\n ) {\r\n this.globalSrv.subscribe('deon-field-repeat', (res: any) => {\r\n if (res != undefined && res.field != undefined && res.data != undefined && res.type != undefined) {\r\n if (res.type == 'delete') {\r\n (<any>this.options)._buildForm(true);\r\n }\r\n }\r\n });\r\n }\r\n\r\n ngOnDestroy() {\r\n this.onDestroy$.next();\r\n this.onDestroy$.complete();\r\n }\r\n\r\n /*\r\n 获取设计\r\n */\r\n getDesign() {\r\n let config: any[] = GetFormConfig(this, this.config?.formId, this.form, this.model, this.options, this.fields);\r\n if (config == undefined || config == null) {\r\n config = [];\r\n }\r\n return of(_.cloneDeep(config));\r\n }\r\n\r\n /*\r\n 获取角色\r\n */\r\n getRole() {\r\n let params: any = {\r\n formId: this.config.formId,\r\n type: this.config.type,\r\n };\r\n let apiName: any = this.commAPISrv.getFormRole(this.config?.moduleCode);\r\n return this.http.post(`${apiName}`, params);\r\n }\r\n\r\n /*\r\n 获取配置-下拉选项\r\n */\r\n getDropDown() {\r\n let apiName: any = this.commAPISrv.getFormDropDown(this.config?.moduleCode, this.config.formId);\r\n return this.http.post(`${apiName}`);\r\n }\r\n\r\n /*\r\n 获取配置-表单数据\r\n */\r\n getFromModel() {\r\n if (this.config.type != 'ADD' && this.config.id!!) {\r\n if (this.config.api!! && this.config.api.modelAPI!!) {\r\n return this.http.post(`${this.config.api.modelAPI}/${this.config.id}`);\r\n } else {\r\n let apiName: any = this.commAPISrv.getFormModel(this.config.moduleCode);\r\n return this.http.post(`${apiName}`, {\r\n formId: this.config.formId,\r\n id: this.config.id,\r\n });\r\n }\r\n } else {\r\n return of(null);\r\n }\r\n }\r\n\r\n /*\r\n 获取配置-表单默认值\r\n */\r\n getFromDefaultModel() {\r\n if (this.config.type == 'ADD' && this.config.formId!!) {\r\n let apiName: any = null;\r\n if (this.config.api!! && this.config.api.modelDefaultAPI!!) {\r\n apiName = this.config.api.modelDefaultAPI;\r\n } else {\r\n apiName = this.commAPISrv.getFormDefaultModel(this.config.moduleCode);\r\n }\r\n return this.http.post(`${apiName}/${this.config.formId}`);\r\n } else {\r\n return of(null);\r\n }\r\n }\r\n\r\n /**\r\n * 组装配置\r\n */\r\n getPageConfig() {\r\n new Promise((resolve: any) => {\r\n zip(this.getDesign(), this.getRole(), this.getDropDown(), this.getFromModel(), this.getFromDefaultModel()).subscribe(\r\n ([design, role, drop, d, m]) => {\r\n this.model = {};\r\n let fieldConfigs: FormlyFieldConfig[] = design;\r\n let fieldRole: any = {};\r\n let fieldOptions: any = {};\r\n\r\n //传入的值\r\n if (this.config.model != undefined && this.config.model != null) {\r\n this.model = Object.assign(this.model, this.config.model);\r\n }\r\n //传入的权限\r\n if (this.config.role != undefined && this.config.role != null) {\r\n fieldRole = Object.assign(fieldRole, this.config.role);\r\n }\r\n\r\n //字段权限\r\n if (role.success == true && role.result!!) {\r\n fieldRole = Object.assign(fieldRole, role.result);\r\n }\r\n\r\n //字段Options\r\n if (drop.success == true && drop.result!!) {\r\n fieldOptions = drop.result;\r\n }\r\n\r\n //默认值\r\n if (d!! && d.success == true && d.result!!) {\r\n this.model = Object.assign(this.model, d.result);\r\n }\r\n\r\n //获取的表单值\r\n if (m!! && m.success == true && m.result!!) {\r\n this.model = Object.assign(this.model, m.result);\r\n }\r\n\r\n this.utilService.initConfig(fieldConfigs, fieldRole, fieldOptions, this.model, null, null, this, (e: any, field: any) => { });\r\n this.fields = fieldConfigs;\r\n\r\n setTimeout(() => {\r\n if (this.options != undefined && this.options != null && this.options?.resetModel) {\r\n this.options?.resetModel();\r\n }\r\n }, 0);\r\n this.loading = false;\r\n },\r\n () => {\r\n this.loading = false;\r\n },\r\n () => {\r\n this.loading = false;\r\n resolve();\r\n },\r\n );\r\n });\r\n }\r\n\r\n save() {\r\n if (!this.form.valid) {\r\n return;\r\n }\r\n if (this.config.saveEvent != undefined && this.config.saveEvent != null && this.config.saveEvent == false) {\r\n this.btnSave(this.model);\r\n } else {\r\n this.loading = true;\r\n let apiName = null;\r\n if (this.config.type == 'ADD') {\r\n if (this.config.api!! && this.config.api.addAPI!!) {\r\n apiName = this.config.api.addAPI;\r\n } else {\r\n apiName = this.commAPISrv.getFormAdd(this.config.moduleCode);\r\n }\r\n } else if (this.config.type == 'EDIT') {\r\n if (this.config.api!! && this.config.api.editAPI!!) {\r\n apiName = this.config.api.editAPI;\r\n } else {\r\n apiName = this.commAPISrv.getFormUpdate(this.config.moduleCode);\r\n }\r\n }\r\n this.http.post(`${apiName}`, this.model).subscribe(\r\n (res: any) => {\r\n this.loading = false;\r\n if (res && res.success == true) {\r\n this.msg.success('保存成功!');\r\n this.btnSave(res.data);\r\n }\r\n },\r\n () => {\r\n this.loading = false;\r\n },\r\n );\r\n }\r\n }\r\n\r\n /**\r\n * 取消-关闭\r\n */\r\n btnClose() {\r\n // this.drawerRef.close({\r\n // type: 'close',\r\n // data: null,\r\n // });\r\n this.btnCloseEvent.emit({\r\n type: 'close',\r\n data: null,\r\n });\r\n }\r\n\r\n /**\r\n * 保存-关闭\r\n * @param e\r\n */\r\n btnSave(e: any) {\r\n this.btnSaveEvent.emit({\r\n type: 'save',\r\n data: e,\r\n });\r\n }\r\n}\r\n","import { Directive } from '@angular/core';\r\nimport { _HttpClient } from '@delon/theme';\r\nimport { FormlyFormBuilder } from '@kre-form/core';\r\nimport { NzMessageService } from 'ng-zorro-antd/message'; \r\n\r\nimport { NzDrawerRef } from '@ebuilding/base/components/drawer';\r\nimport { DeonFormUtilService } from '@ebuilding/base/shared.srv/deon.util';\r\nimport { GramGlobalService } from '@ebuilding/base/shared.srv/global.event';\r\nimport { CommAPIService } from '@ebuilding/base/shared.srv/commApi.service';\r\n\r\nimport { BasicService } from \"./basic\";\r\n\r\n@Directive()\r\nexport abstract class BasicDrawerService extends BasicService {\r\n\r\n constructor(\r\n public override http: _HttpClient,\r\n public override utilService: DeonFormUtilService,\r\n public override deonFormBuilder: FormlyFormBuilder,\r\n public override globalSrv: GramGlobalService,\r\n public override msg: NzMessageService,\r\n public drawerRef: NzDrawerRef<any>,\r\n public override commAPISrv: CommAPIService,\r\n\r\n ) {\r\n super(http, utilService, deonFormBuilder, globalSrv, msg, commAPISrv);\r\n }\r\n\r\n /**\r\n * 关闭\r\n * @param e \r\n */\r\n override btnSave(e: any) {\r\n this.drawerRef.close({\r\n type: 'save',\r\n data: e,\r\n });\r\n }\r\n\r\n /**\r\n * 取消\r\n */\r\n override btnClose() {\r\n this.drawerRef.close({\r\n type: 'close',\r\n data: null,\r\n });\r\n }\r\n\r\n}\r\n","import { Component, OnInit, AfterContentChecked } from '@angular/core';\r\nimport { CommonModule } from '@angular/common';\r\nimport { FormsModule, ReactiveFormsModule } from '@angular/forms';\r\nimport { _HttpClient } from '@delon/theme';\r\nimport { FormlyFormBuilder, FormlyModule } from '@kre-form/core';\r\nimport { NzMessageService } from 'ng-zorro-antd/message';\r\nimport { NzFormModule } from 'ng-zorro-antd/form';\r\nimport { NzIconModule } from 'ng-zorro-antd/icon';\r\nimport { NzSpinModule } from 'ng-zorro-antd/spin';\r\nimport { NzButtonModule } from 'ng-zorro-antd/button';\r\nimport { NzEmptyModule } from 'ng-zorro-antd/empty';\r\n\r\nimport { DeonFormUtilService } from '@ebuilding/base/shared.srv/deon.util';\r\nimport { GramGlobalService } from '@ebuilding/base/shared.srv/global.event';\r\nimport { CommAPIService } from '@ebuilding/base/shared.srv/commApi.service';\r\nimport { NzDrawerRef } from '@ebuilding/base/components/drawer';\r\nimport { GramDeonAntdModule } from '@ebuilding/biz-comm/type';\r\n\r\nimport { BasicDrawerService } from '../basic.drawer';\r\n\r\n/**\r\n * 固定表单 - 弹框\r\n */\r\n@Component({\r\n selector: 'form-basic',\r\n styleUrls: ['./index.less'],\r\n templateUrl: './index.html',\r\n providers: [CommAPIService],\r\n imports: [\r\n CommonModule,\r\n FormsModule,\r\n ReactiveFormsModule,\r\n NzFormModule,\r\n NzIconModule,\r\n NzSpinModule,\r\n NzButtonModule,\r\n NzEmptyModule,\r\n FormlyModule,\r\n GramDeonAntdModule\r\n ]\r\n})\r\nexport class FormBasicComponent extends BasicDrawerService implements OnInit, AfterContentChecked {\r\n constructor(\r\n public override http: _HttpClient,\r\n public override utilService: DeonFormUtilService,\r\n public override deonFormBuilder: FormlyFormBuilder,\r\n public override globalSrv: GramGlobalService,\r\n public override drawerRef: NzDrawerRef<any>,\r\n public override msg: NzMessageService,\r\n public override commAPISrv: CommAPIService,\r\n ) {\r\n super(http, utilService, deonFormBuilder, globalSrv, msg, drawerRef, commAPISrv);\r\n }\r\n\r\n ngOnInit() {\r\n this.loading = true;\r\n this.getPageConfig();\r\n }\r\n\r\n ngAfterContentChecked(): void {\r\n // this.changeDetector.detectChanges();\r\n }\r\n\r\n}\r\n","<form [formGroup]=\"form\" (ngSubmit)=\"save()\" #defaultForm>\r\n <nz-spin [nzSpinning]=\"loading\" nzTip=\"拼命加载中...\" class=\"deon-list-spin\">\r\n <div class=\"deon-from\">\r\n <ng-container *ngIf=\"fields && fields.length>0;else emptyPage\">\r\n <formly-form [model]=\"model\" [fields]=\"fields\" [options]=\"options\" [form]=\"form\"> </formly-form>\r\n </ng-container>\r\n <ng-template #emptyPage>\r\n <nz-empty *ngIf=\"loading!==true\"></nz-empty>\r\n </ng-template>\r\n </div>\r\n <div class=\"deon-button\" *ngIf=\"config.type!='VIEW' && config.type!='PREVIEW'\">\r\n <button nz-button nzType=\"default\" (click)=\"btnClose()\" type=\"button\"><i nz-icon nzType=\"close\"></i>取消</button>\r\n <!-- <button nz-button nzType=\"primary\" id=\"DRAFT\" *ngIf=\"draft==true\"><i nz-icon nzType=\"hourglass\"></i>暂存</button> -->\r\n <button nz-button nzType=\"primary\" id=\"SAVE\"><i nz-icon nzType=\"save\"></i>保存</button>\r\n </div>\r\n </nz-spin>\r\n</form>","import { Component, OnInit, AfterContentChecked, Optional } from '@angular/core';\r\nimport { CommonModule } from '@angular/common';\r\nimport { FormsModule, ReactiveFormsModule } from '@angular/forms';\r\nimport { _HttpClient } from '@delon/theme';\r\nimport { FormlyModule, FormlyFormBuilder } from '@kre-form/core';\r\nimport { NzMessageService } from 'ng-zorro-antd/message';\r\nimport { NzFormModule } from 'ng-zorro-antd/form';\r\nimport { NzIconModule } from 'ng-zorro-antd/icon';\r\nimport { NzSpinModule } from 'ng-zorro-antd/spin';\r\nimport { NzButtonModule } from 'ng-zorro-antd/button';\r\nimport { NzEmptyModule } from 'ng-zorro-antd/empty';\r\n\r\nimport { DeonFormUtilService } from '@ebuilding/base/shared.srv/deon.util';\r\nimport { GramGlobalService } from '@ebuilding/base/shared.srv/global.event';\r\nimport { CommAPIService } from '@ebuilding/base/shared.srv/commApi.service';\r\nimport { NzDrawerRef } from '@ebuilding/base/components/drawer';\r\nimport { GramDeonAntdModule } from '@ebuilding/biz-comm/type';\r\n\r\nimport { BasicService } from '../basic';\r\n\r\n/**\r\n * 固定表单 - 非弹窗\r\n */\r\n@Component({\r\n selector: 'form-basic-main',\r\n styleUrls: ['./index.less'],\r\n templateUrl: './index.html',\r\n providers: [CommAPIService],\r\n imports: [\r\n CommonModule,\r\n FormsModule,\r\n ReactiveFormsModule,\r\n NzFormModule,\r\n NzIconModule,\r\n NzSpinModule,\r\n NzButtonModule,\r\n NzEmptyModule,\r\n FormlyModule,\r\n GramDeonAntdModule\r\n ]\r\n})\r\nexport class FormBasicMainComponent extends BasicService implements OnInit, AfterContentChecked {\r\n constructor(\r\n public override http: _HttpClient,\r\n public override utilService: DeonFormUtilService,\r\n public override deonFormBuilder: FormlyFormBuilder,\r\n public override globalSrv: GramGlobalService,\r\n @Optional() public drawerRef: NzDrawerRef<any>,\r\n public override msg: NzMessageService,\r\n public override commAPISrv: CommAPIService,\r\n ) {\r\n super(http, utilService, deonFormBuilder, globalSrv, msg, commAPISrv);\r\n }\r\n\r\n ngOnInit() {\r\n this.loading = true;\r\n this.getPageConfig();\r\n }\r\n\r\n ngAfterContentChecked(): void {\r\n // this.changeDetector.detectChanges();\r\n }\r\n\r\n /**\r\n * 取消-关闭\r\n */\r\n override btnClose() {\r\n if (this.drawerRef) {\r\n this.drawerRef.close({\r\n type: 'close',\r\n data: null,\r\n });\r\n } else {\r\n this.btnCloseEvent.emit({\r\n type: 'close',\r\n data: null,\r\n });\r\n }\r\n }\r\n\r\n override btnSave(e: any) {\r\n if (this.drawerRef) {\r\n this.drawerRef.close({\r\n type: 'save',\r\n data: null,\r\n });\r\n } else {\r\n this.btnSaveEvent.emit({\r\n type: 'save',\r\n data: e,\r\n });\r\n }\r\n }\r\n}\r\n","<form [formGroup]=\"form\" (ngSubmit)=\"save()\" #defaultForm>\r\n <nz-spin [nzSpinning]=\"loading\" nzTip=\"拼命加载中...\" class=\"deon-list-spin\">\r\n <div class=\"deon-from\">\r\n <ng-container *ngIf=\"fields && fields.length>0;else emptyPage\">\r\n <formly-form [model]=\"model\" [fields]=\"fields\" [options]=\"options\" [form]=\"form\"> </formly-form>\r\n </ng-container>\r\n <ng-template #emptyPage>\r\n <nz-empty *ngIf=\"loading!==true\"></nz-empty>\r\n </ng-template>\r\n </div>\r\n <div class=\"deon-button\" *ngIf=\"config.type!='VIEW' && config.type!='PREVIEW'\">\r\n <button nz-button nzType=\"default\" (click)=\"btnClose()\" type=\"button\"><i nz-icon nzType=\"close\"></i>取消</button>\r\n <!-- <button nz-button nzType=\"primary\" id=\"DRAFT\" *ngIf=\"draft==true\"><i nz-icon nzType=\"hourglass\"></i>暂存</button> -->\r\n <button nz-button nzType=\"primary\" id=\"SAVE\"><i nz-icon nzType=\"save\"></i>保存</button>\r\n </div>\r\n </nz-spin>\r\n</form>","import { NgModule } from '@angular/core';\r\nimport { CommonModule } from '@angular/common';\r\nimport { FormBasicComponent } from './default/index';\r\nimport { FormBasicMainComponent } from './main/index';\r\n\r\nconst components: any[] = [FormBasicComponent, FormBasicMainComponent];\r\n@NgModule({\r\n imports: [CommonModule, ...components],\r\n exports: [...components],\r\n})\r\nexport class FormBasicModule { }\r\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":["i6","i5"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MAesB,YAAY,CAAA;AAiBvB,IAAA,IAAA;AACA,IAAA,WAAA;AACA,IAAA,eAAA;AACA,IAAA,SAAA;AACA,IAAA,GAAA;AACA,IAAA,UAAA;IArBT,OAAO,GAAY,IAAI;AACvB,IAAA,IAAI,GAAG,IAAI,SAAS,CAAC,EAAE,CAAC;IACxB,KAAK,GAAQ,EAAE;IACf,OAAO,GAAsB,EAAE;IAC/B,MAAM,GAAwB,EAAE;AAEhC;;AAEG;AACH,IAAA,UAAU,GAAG,IAAI,OAAO,EAAQ;IAEvB,MAAM,GAAQ,IAAI;AACjB,IAAA,aAAa,GAAsB,IAAI,YAAY,EAAE;AACrD,IAAA,YAAY,G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AAA,CAAA,EAAA,QAAA,EAAA,iBAAiB,EAGhB,SAAA,EAAA,CAAC,cAAc,CAAC,EAClB,OAAA,EAAA;wBACP,YAAY;wBACZ,WAAW;wBACX,mBAAmB;wBACnB,YAAY;wBACZ,YAAY;wBACZ,YAAY;wBACZ,cAAc;wBACd,aAAa;wBACb,YAAY;wBACZ;AACD,qBAAA,EAAA,QAAA,EAAA,0jCAAA,EAAA,MAAA,EAAA,CAAA,6IAAA,CAAA,EAAA;;0BAQE;;;AE1CL,MAAM,UAAU,GAAU,CAAC,kBAAkB,EAAE,sBAAsB,CAAC;MAKzD,eAAe,CAAA;wGAAf,eAAe,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,QAAA,EAAA,CAAA;yGAAf,eAAe,EAAA,OAAA,EAAA,CAHhB,YAAY,EAFG,kBAAkB,EAAE,sBAAsB,CAAA,EAAA,OAAA,EAAA,CAA1C,kBAAkB,EAAE,sBAAsB,CAAA,EAAA,CAAA;yGAKxD,eAAe,EAAA,OAAA,EAAA,CAHhB,YAAY,EAAK,UAAU,CAAA,EAAA,CAAA;;4FAG1B,eAAe,EAAA,UAAA,EAAA,CAAA;kBAJ3B,QAAQ;AAAC,YAAA,IAAA,EAAA,CAAA;AACR,oBAAA,OAAO,EAAE,CAAC,YAAY,EAAE,GAAG,UAAU,CAAC;AACtC,oBAAA,OAAO,EAAE,CAAC,GAAG,UAAU,CAAC;AACzB,iBAAA;;;ACTD;;AAEG;;;;"}
|
|
1
|
+
{"version":3,"file":"basic.mjs","sources":["../../../../packages/biz-form/basic/src/basic.ts","../../../../packages/biz-form/basic/src/basic.drawer.ts","../../../../packages/biz-form/basic/src/default/index.ts","../../../../packages/biz-form/basic/src/default/index.html","../../../../packages/biz-form/basic/src/main/index.ts","../../../../packages/biz-form/basic/src/main/index.html","../../../../packages/biz-form/basic/src/index.module.ts","../../../../packages/biz-form/basic/basic.ts"],"sourcesContent":["import { Directive, Input, Output, EventEmitter, OnDestroy } from '@angular/core';\r\nimport { FormGroup } from '@angular/forms';\r\nimport { _HttpClient } from '@delon/theme';\r\nimport { FormlyFormOptions, FormlyFieldConfig, FormlyFormBuilder } from '@ebuilding-form/core';\r\nimport { NzMessageService } from 'ng-zorro-antd/message';\r\n\r\nimport { DeonFormUtilService } from '@ebuilding/base/shared.srv/deon.util';\r\nimport { GramGlobalService } from '@ebuilding/base/shared.srv/global.event';\r\nimport { CommAPIService } from '@ebuilding/base/shared.srv/commApi.service';\r\nimport { GetFormConfig } from '@ebuilding/base/shared.config/form';\r\n\r\nimport _ from 'lodash';\r\nimport { of, Subject, zip } from 'rxjs';\r\n\r\n@Directive()\r\nexport abstract class BasicService implements OnDestroy {\r\n loading: boolean = true;\r\n form = new FormGroup({});\r\n model: any = {};\r\n options: FormlyFormOptions = {};\r\n fields: FormlyFieldConfig[] = [];\r\n\r\n /**\r\n * 销毁\r\n */\r\n onDestroy$ = new Subject<void>();\r\n\r\n @Input() config: any = null;\r\n @Output() btnCloseEvent: EventEmitter<any> = new EventEmitter();\r\n @Output() btnSaveEvent: EventEmitter<any> = new EventEmitter();\r\n\r\n constructor(\r\n public http: _HttpClient,\r\n public utilService: DeonFormUtilService,\r\n public deonFormBuilder: FormlyFormBuilder,\r\n public globalSrv: GramGlobalService,\r\n public msg: NzMessageService,\r\n public commAPISrv: CommAPIService,\r\n ) {\r\n this.globalSrv.subscribe('deon-field-repeat', (res: any) => {\r\n if (res != undefined && res.field != undefined && res.data != undefined && res.type != undefined) {\r\n if (res.type == 'delete') {\r\n (<any>this.options)._buildForm(true);\r\n }\r\n }\r\n });\r\n }\r\n\r\n ngOnDestroy() {\r\n this.onDestroy$.next();\r\n this.onDestroy$.complete();\r\n }\r\n\r\n /*\r\n 获取设计\r\n */\r\n getDesign() {\r\n let config: any[] = GetFormConfig(this, this.config?.formId, this.form, this.model, this.options, this.fields);\r\n if (config == undefined || config == null) {\r\n config = [];\r\n }\r\n return of(_.cloneDeep(config));\r\n }\r\n\r\n /*\r\n 获取角色\r\n */\r\n getRole() {\r\n let params: any = {\r\n formId: this.config.formId,\r\n type: this.config.type,\r\n };\r\n let apiName: any = this.commAPISrv.getFormRole(this.config?.moduleCode);\r\n return this.http.post(`${apiName}`, params);\r\n }\r\n\r\n /*\r\n 获取配置-下拉选项\r\n */\r\n getDropDown() {\r\n let apiName: any = this.commAPISrv.getFormDropDown(this.config?.moduleCode, this.config.formId);\r\n return this.http.post(`${apiName}`);\r\n }\r\n\r\n /*\r\n 获取配置-表单数据\r\n */\r\n getFromModel() {\r\n if (this.config.type != 'ADD' && this.config.id!!) {\r\n if (this.config.api!! && this.config.api.modelAPI!!) {\r\n return this.http.post(`${this.config.api.modelAPI}/${this.config.id}`);\r\n } else {\r\n let apiName: any = this.commAPISrv.getFormModel(this.config.moduleCode);\r\n return this.http.post(`${apiName}`, {\r\n formId: this.config.formId,\r\n id: this.config.id,\r\n });\r\n }\r\n } else {\r\n return of(null);\r\n }\r\n }\r\n\r\n /*\r\n 获取配置-表单默认值\r\n */\r\n getFromDefaultModel() {\r\n if (this.config.type == 'ADD' && this.config.formId!!) {\r\n let apiName: any = null;\r\n if (this.config.api!! && this.config.api.modelDefaultAPI!!) {\r\n apiName = this.config.api.modelDefaultAPI;\r\n } else {\r\n apiName = this.commAPISrv.getFormDefaultModel(this.config.moduleCode);\r\n }\r\n return this.http.post(`${apiName}/${this.config.formId}`);\r\n } else {\r\n return of(null);\r\n }\r\n }\r\n\r\n /**\r\n * 组装配置\r\n */\r\n getPageConfig() {\r\n new Promise((resolve: any) => {\r\n zip(this.getDesign(), this.getRole(), this.getDropDown(), this.getFromModel(), this.getFromDefaultModel()).subscribe(\r\n ([design, role, drop, d, m]) => {\r\n this.model = {};\r\n let fieldConfigs: FormlyFieldConfig[] = design;\r\n let fieldRole: any = {};\r\n let fieldOptions: any = {};\r\n\r\n //传入的值\r\n if (this.config.model != undefined && this.config.model != null) {\r\n this.model = Object.assign(this.model, this.config.model);\r\n }\r\n //传入的权限\r\n if (this.config.role != undefined && this.config.role != null) {\r\n fieldRole = Object.assign(fieldRole, this.config.role);\r\n }\r\n\r\n //字段权限\r\n if (role.success == true && role.result!!) {\r\n fieldRole = Object.assign(fieldRole, role.result);\r\n }\r\n\r\n //字段Options\r\n if (drop.success == true && drop.result!!) {\r\n fieldOptions = drop.result;\r\n }\r\n\r\n //默认值\r\n if (d!! && d.success == true && d.result!!) {\r\n this.model = Object.assign(this.model, d.result);\r\n }\r\n\r\n //获取的表单值\r\n if (m!! && m.success == true && m.result!!) {\r\n this.model = Object.assign(this.model, m.result);\r\n }\r\n\r\n this.utilService.initConfig(fieldConfigs, fieldRole, fieldOptions, this.model, null, null, this, (e: any, field: any) => { });\r\n this.fields = fieldConfigs;\r\n\r\n setTimeout(() => {\r\n if (this.options != undefined && this.options != null && this.options?.resetModel) {\r\n this.options?.resetModel();\r\n }\r\n }, 0);\r\n this.loading = false;\r\n },\r\n () => {\r\n this.loading = false;\r\n },\r\n () => {\r\n this.loading = false;\r\n resolve();\r\n },\r\n );\r\n });\r\n }\r\n\r\n save() {\r\n if (!this.form.valid) {\r\n return;\r\n }\r\n if (this.config.saveEvent != undefined && this.config.saveEvent != null && this.config.saveEvent == false) {\r\n this.btnSave(this.model);\r\n } else {\r\n this.loading = true;\r\n let apiName = null;\r\n if (this.config.type == 'ADD') {\r\n if (this.config.api!! && this.config.api.addAPI!!) {\r\n apiName = this.config.api.addAPI;\r\n } else {\r\n apiName = this.commAPISrv.getFormAdd(this.config.moduleCode);\r\n }\r\n } else if (this.config.type == 'EDIT') {\r\n if (this.config.api!! && this.config.api.editAPI!!) {\r\n apiName = this.config.api.editAPI;\r\n } else {\r\n apiName = this.commAPISrv.getFormUpdate(this.config.moduleCode);\r\n }\r\n }\r\n this.http.post(`${apiName}`, this.model).subscribe(\r\n (res: any) => {\r\n this.loading = false;\r\n if (res && res.success == true) {\r\n this.msg.success('保存成功!');\r\n this.btnSave(res.data);\r\n }\r\n },\r\n () => {\r\n this.loading = false;\r\n },\r\n );\r\n }\r\n }\r\n\r\n /**\r\n * 取消-关闭\r\n */\r\n btnClose() {\r\n // this.drawerRef.close({\r\n // type: 'close',\r\n // data: null,\r\n // });\r\n this.btnCloseEvent.emit({\r\n type: 'close',\r\n data: null,\r\n });\r\n }\r\n\r\n /**\r\n * 保存-关闭\r\n * @param e\r\n */\r\n btnSave(e: any) {\r\n this.btnSaveEvent.emit({\r\n type: 'save',\r\n data: e,\r\n });\r\n }\r\n}\r\n","import { Directive } from '@angular/core';\r\nimport { _HttpClient } from '@delon/theme';\r\nimport { FormlyFormBuilder } from '@ebuilding-form/core';\r\nimport { NzMessageService } from 'ng-zorro-antd/message';\r\n\r\nimport { NzDrawerRef } from '@ebuilding/base/components/drawer';\r\nimport { DeonFormUtilService } from '@ebuilding/base/shared.srv/deon.util';\r\nimport { GramGlobalService } from '@ebuilding/base/shared.srv/global.event';\r\nimport { CommAPIService } from '@ebuilding/base/shared.srv/commApi.service';\r\n\r\nimport { BasicService } from \"./basic\";\r\n\r\n@Directive()\r\nexport abstract class BasicDrawerService extends BasicService {\r\n\r\n constructor(\r\n public override http: _HttpClient,\r\n public override utilService: DeonFormUtilService,\r\n public override deonFormBuilder: FormlyFormBuilder,\r\n public override globalSrv: GramGlobalService,\r\n public override msg: NzMessageService,\r\n public drawerRef: NzDrawerRef<any>,\r\n public override commAPISrv: CommAPIService,\r\n\r\n ) {\r\n super(http, utilService, deonFormBuilder, globalSrv, msg, commAPISrv);\r\n }\r\n\r\n /**\r\n * 关闭\r\n * @param e \r\n */\r\n override btnSave(e: any) {\r\n this.drawerRef.close({\r\n type: 'save',\r\n data: e,\r\n });\r\n }\r\n\r\n /**\r\n * 取消\r\n */\r\n override btnClose() {\r\n this.drawerRef.close({\r\n type: 'close',\r\n data: null,\r\n });\r\n }\r\n\r\n}\r\n","import { Component, OnInit, AfterContentChecked } from '@angular/core';\r\nimport { CommonModule } from '@angular/common';\r\nimport { FormsModule, ReactiveFormsModule } from '@angular/forms';\r\nimport { _HttpClient } from '@delon/theme';\r\nimport { FormlyFormBuilder, FormlyModule } from '@ebuilding-form/core';\r\nimport { NzMessageService } from 'ng-zorro-antd/message';\r\nimport { NzFormModule } from 'ng-zorro-antd/form';\r\nimport { NzIconModule } from 'ng-zorro-antd/icon';\r\nimport { NzSpinModule } from 'ng-zorro-antd/spin';\r\nimport { NzButtonModule } from 'ng-zorro-antd/button';\r\nimport { NzEmptyModule } from 'ng-zorro-antd/empty';\r\n\r\nimport { DeonFormUtilService } from '@ebuilding/base/shared.srv/deon.util';\r\nimport { GramGlobalService } from '@ebuilding/base/shared.srv/global.event';\r\nimport { CommAPIService } from '@ebuilding/base/shared.srv/commApi.service';\r\nimport { NzDrawerRef } from '@ebuilding/base/components/drawer';\r\nimport { GramDeonAntdModule } from '@ebuilding/biz-comm/type';\r\n\r\nimport { BasicDrawerService } from '../basic.drawer';\r\n\r\n/**\r\n * 固定表单 - 弹框\r\n */\r\n@Component({\r\n selector: 'form-basic',\r\n styleUrls: ['./index.less'],\r\n templateUrl: './index.html',\r\n providers: [CommAPIService],\r\n imports: [\r\n CommonModule,\r\n FormsModule,\r\n ReactiveFormsModule,\r\n NzFormModule,\r\n NzIconModule,\r\n NzSpinModule,\r\n NzButtonModule,\r\n NzEmptyModule,\r\n FormlyModule,\r\n GramDeonAntdModule\r\n ]\r\n})\r\nexport class FormBasicComponent extends BasicDrawerService implements OnInit, AfterContentChecked {\r\n constructor(\r\n public override http: _HttpClient,\r\n public override utilService: DeonFormUtilService,\r\n public override deonFormBuilder: FormlyFormBuilder,\r\n public override globalSrv: GramGlobalService,\r\n public override drawerRef: NzDrawerRef<any>,\r\n public override msg: NzMessageService,\r\n public override commAPISrv: CommAPIService,\r\n ) {\r\n super(http, utilService, deonFormBuilder, globalSrv, msg, drawerRef, commAPISrv);\r\n }\r\n\r\n ngOnInit() {\r\n this.loading = true;\r\n this.getPageConfig();\r\n }\r\n\r\n ngAfterContentChecked(): void {\r\n // this.changeDetector.detectChanges();\r\n }\r\n\r\n}\r\n","<form [formGroup]=\"form\" (ngSubmit)=\"save()\" #defaultForm>\r\n <nz-spin [nzSpinning]=\"loading\" nzTip=\"拼命加载中...\" class=\"deon-list-spin\">\r\n <div class=\"deon-from\">\r\n <ng-container *ngIf=\"fields && fields.length>0;else emptyPage\">\r\n <formly-form [model]=\"model\" [fields]=\"fields\" [options]=\"options\" [form]=\"form\"> </formly-form>\r\n </ng-container>\r\n <ng-template #emptyPage>\r\n <nz-empty *ngIf=\"loading!==true\"></nz-empty>\r\n </ng-template>\r\n </div>\r\n <div class=\"deon-button\" *ngIf=\"config.type!='VIEW' && config.type!='PREVIEW'\">\r\n <button nz-button nzType=\"default\" (click)=\"btnClose()\" type=\"button\"><i nz-icon nzType=\"close\"></i>取消</button>\r\n <!-- <button nz-button nzType=\"primary\" id=\"DRAFT\" *ngIf=\"draft==true\"><i nz-icon nzType=\"hourglass\"></i>暂存</button> -->\r\n <button nz-button nzType=\"primary\" id=\"SAVE\"><i nz-icon nzType=\"save\"></i>保存</button>\r\n </div>\r\n </nz-spin>\r\n</form>","import { Component, OnInit, AfterContentChecked, Optional } from '@angular/core';\r\nimport { CommonModule } from '@angular/common';\r\nimport { FormsModule, ReactiveFormsModule } from '@angular/forms';\r\nimport { _HttpClient } from '@delon/theme';\r\nimport { FormlyModule, FormlyFormBuilder } from '@ebuilding-form/core';\r\nimport { NzMessageService } from 'ng-zorro-antd/message';\r\nimport { NzFormModule } from 'ng-zorro-antd/form';\r\nimport { NzIconModule } from 'ng-zorro-antd/icon';\r\nimport { NzSpinModule } from 'ng-zorro-antd/spin';\r\nimport { NzButtonModule } from 'ng-zorro-antd/button';\r\nimport { NzEmptyModule } from 'ng-zorro-antd/empty';\r\n\r\nimport { DeonFormUtilService } from '@ebuilding/base/shared.srv/deon.util';\r\nimport { GramGlobalService } from '@ebuilding/base/shared.srv/global.event';\r\nimport { CommAPIService } from '@ebuilding/base/shared.srv/commApi.service';\r\nimport { NzDrawerRef } from '@ebuilding/base/components/drawer';\r\nimport { GramDeonAntdModule } from '@ebuilding/biz-comm/type';\r\n\r\nimport { BasicService } from '../basic';\r\n\r\n/**\r\n * 固定表单 - 非弹窗\r\n */\r\n@Component({\r\n selector: 'form-basic-main',\r\n styleUrls: ['./index.less'],\r\n templateUrl: './index.html',\r\n providers: [CommAPIService],\r\n imports: [\r\n CommonModule,\r\n FormsModule,\r\n ReactiveFormsModule,\r\n NzFormModule,\r\n NzIconModule,\r\n NzSpinModule,\r\n NzButtonModule,\r\n NzEmptyModule,\r\n FormlyModule,\r\n GramDeonAntdModule\r\n ]\r\n})\r\nexport class FormBasicMainComponent extends BasicService implements OnInit, AfterContentChecked {\r\n constructor(\r\n public override http: _HttpClient,\r\n public override utilService: DeonFormUtilService,\r\n public override deonFormBuilder: FormlyFormBuilder,\r\n public override globalSrv: GramGlobalService,\r\n @Optional() public drawerRef: NzDrawerRef<any>,\r\n public override msg: NzMessageService,\r\n public override commAPISrv: CommAPIService,\r\n ) {\r\n super(http, utilService, deonFormBuilder, globalSrv, msg, commAPISrv);\r\n }\r\n\r\n ngOnInit() {\r\n this.loading = true;\r\n this.getPageConfig();\r\n }\r\n\r\n ngAfterContentChecked(): void {\r\n // this.changeDetector.detectChanges();\r\n }\r\n\r\n /**\r\n * 取消-关闭\r\n */\r\n override btnClose() {\r\n if (this.drawerRef) {\r\n this.drawerRef.close({\r\n type: 'close',\r\n data: null,\r\n });\r\n } else {\r\n this.btnCloseEvent.emit({\r\n type: 'close',\r\n data: null,\r\n });\r\n }\r\n }\r\n\r\n override btnSave(e: any) {\r\n if (this.drawerRef) {\r\n this.drawerRef.close({\r\n type: 'save',\r\n data: null,\r\n });\r\n } else {\r\n this.btnSaveEvent.emit({\r\n type: 'save',\r\n data: e,\r\n });\r\n }\r\n }\r\n}\r\n","<form [formGroup]=\"form\" (ngSubmit)=\"save()\" #defaultForm>\r\n <nz-spin [nzSpinning]=\"loading\" nzTip=\"拼命加载中...\" class=\"deon-list-spin\">\r\n <div class=\"deon-from\">\r\n <ng-container *ngIf=\"fields && fields.length>0;else emptyPage\">\r\n <formly-form [model]=\"model\" [fields]=\"fields\" [options]=\"options\" [form]=\"form\"> </formly-form>\r\n </ng-container>\r\n <ng-template #emptyPage>\r\n <nz-empty *ngIf=\"loading!==true\"></nz-empty>\r\n </ng-template>\r\n </div>\r\n <div class=\"deon-button\" *ngIf=\"config.type!='VIEW' && config.type!='PREVIEW'\">\r\n <button nz-button nzType=\"default\" (click)=\"btnClose()\" type=\"button\"><i nz-icon nzType=\"close\"></i>取消</button>\r\n <!-- <button nz-button nzType=\"primary\" id=\"DRAFT\" *ngIf=\"draft==true\"><i nz-icon nzType=\"hourglass\"></i>暂存</button> -->\r\n <button nz-button nzType=\"primary\" id=\"SAVE\"><i nz-icon nzType=\"save\"></i>保存</button>\r\n </div>\r\n </nz-spin>\r\n</form>","import { NgModule } from '@angular/core';\r\nimport { CommonModule } from '@angular/common';\r\nimport { FormBasicComponent } from './default/index';\r\nimport { FormBasicMainComponent } from './main/index';\r\n\r\nconst components: any[] = [FormBasicComponent, FormBasicMainComponent];\r\n@NgModule({\r\n imports: [CommonModule, ...components],\r\n exports: [...components],\r\n})\r\nexport class FormBasicModule { }\r\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":["i6","i5"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MAesB,YAAY,CAAA;AAiBvB,IAAA,IAAA;AACA,IAAA,WAAA;AACA,IAAA,eAAA;AACA,IAAA,SAAA;AACA,IAAA,GAAA;AACA,IAAA,UAAA;IArBT,OAAO,GAAY,IAAI;AACvB,IAAA,IAAI,GAAG,IAAI,SAAS,CAAC,EAAE,CAAC;IACxB,KAAK,GAAQ,EAAE;IACf,OAAO,GAAsB,EAAE;IAC/B,MAAM,GAAwB,EAAE;AAEhC;;AAEG;AACH,IAAA,UAAU,GAAG,IAAI,OAAO,EAAQ;IAEvB,MAAM,GAAQ,IAA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Z,YAAY;wBACZ,YAAY;wBACZ,cAAc;wBACd,aAAa;wBACb,YAAY;wBACZ;AACD,qBAAA,EAAA,QAAA,EAAA,0jCAAA,EAAA,MAAA,EAAA,CAAA,6IAAA,CAAA,EAAA;;0BAQE;;;AE1CL,MAAM,UAAU,GAAU,CAAC,kBAAkB,EAAE,sBAAsB,CAAC;MAKzD,eAAe,CAAA;wGAAf,eAAe,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,QAAA,EAAA,CAAA;yGAAf,eAAe,EAAA,OAAA,EAAA,CAHhB,YAAY,EAFG,kBAAkB,EAAE,sBAAsB,CAAA,EAAA,OAAA,EAAA,CAA1C,kBAAkB,EAAE,sBAAsB,CAAA,EAAA,CAAA;yGAKxD,eAAe,EAAA,OAAA,EAAA,CAHhB,YAAY,EAAK,UAAU,CAAA,EAAA,CAAA;;4FAG1B,eAAe,EAAA,UAAA,EAAA,CAAA;kBAJ3B,QAAQ;AAAC,YAAA,IAAA,EAAA,CAAA;AACR,oBAAA,OAAO,EAAE,CAAC,YAAY,EAAE,GAAG,UAAU,CAAC;AACtC,oBAAA,OAAO,EAAE,CAAC,GAAG,UAAU,CAAC;AACzB,iBAAA;;;ACTD;;AAEG;;;;"}
|
package/fesm2022/custom.mjs
CHANGED
|
@@ -4,8 +4,8 @@ import * as i11 from '@angular/common';
|
|
|
4
4
|
import { CommonModule } from '@angular/common';
|
|
5
5
|
import * as i12 from '@angular/forms';
|
|
6
6
|
import { FormsModule, ReactiveFormsModule } from '@angular/forms';
|
|
7
|
-
import * as i4 from '@
|
|
8
|
-
import { FormlyModule } from '@
|
|
7
|
+
import * as i4 from '@ebuilding-form/core';
|
|
8
|
+
import { FormlyModule } from '@ebuilding-form/core';
|
|
9
9
|
import { NzFormModule } from 'ng-zorro-antd/form';
|
|
10
10
|
import * as i13 from 'ng-zorro-antd/icon';
|
|
11
11
|
import { NzIconModule } from 'ng-zorro-antd/icon';
|
|
@@ -65,7 +65,7 @@ class FormCustomComponent extends BasicDrawerService {
|
|
|
65
65
|
// this.changeDetector.detectChanges();
|
|
66
66
|
}
|
|
67
67
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: FormCustomComponent, deps: [{ token: i1._HttpClient }, { token: i2.DeonFormUtilService }, { token: i3.DeonFormResetService }, { token: i4.FormlyFormBuilder }, { token: i5.GramGlobalService }, { token: i6.NzDrawerRef }, { token: i7.NzMessageService }, { token: i8.NzModalService }, { token: i9.GramBaseDialogService }, { token: i10.CommAPIService }], target: i0.ɵɵFactoryTarget.Component });
|
|
68
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.15", type: FormCustomComponent, isStandalone: true, selector: "form-custom", providers: [CommAPIService], usesInheritance: true, ngImport: i0, template: "<form [formGroup]=\"form\" (ngSubmit)=\"btnSubmit()\" #defaultForm>\r\n <nz-spin [nzSpinning]=\"loading\" nzTip=\"\u62FC\u547D\u52A0\u8F7D\u4E2D...\" class=\"deon-list-spin\">\r\n <div class=\"deon-from\">\r\n <div class=\"deon-header\" *ngIf=\"isHeader == true && headerConfig != null\">\r\n <card-user [config]=\"headerConfig\" (pageLoadAfter)=\"headerLoadAfter($event)\"></card-user>\r\n </div>\r\n <div class=\"deon-content\">\r\n <ng-container *ngIf=\"fields && fields.length>0;else emptyPage\">\r\n <formly-form [model]=\"model\" [fields]=\"fields\" [options]=\"options\" [form]=\"form\"> </formly-form>\r\n </ng-container>\r\n <ng-template #emptyPage>\r\n <nz-empty *ngIf=\"loading!==true\"></nz-empty>\r\n </ng-template>\r\n </div>\r\n </div>\r\n <ng-container *ngIf=\"izEffect==true;else tmpButton\">\r\n <ng-container *ngIf=\"config.type!='VIEW' && config.type!='PREVIEW'\">\r\n <ng-container [ngSwitch]=\" effectStatus\">\r\n <ng-container *ngSwitchCase=\"'WAITING'\">\r\n <div class=\"deon-button\">\r\n <div class=\"left-box\">\r\n <label class=\"tips\">\u672C\u6761\u6570\u636E\u4E3A\u5F85\u751F\u6548\uFF0C\u8BF7\u8C28\u614E\u64CD\u4F5C</label>\r\n </div>\r\n <div class=\"right-box\">\r\n <button nz-button nzType=\"default\" (click)=\"btnClose()\" type=\"button\">\r\n <i nz-icon nzType=\"close\"></i>{{buttons.cancel.text}}\r\n </button>\r\n <button nz-button nzType=\"primary\" id=\"save\" [disabled]=\"loading\">\r\n <i nz-icon nzType=\"save\"></i>{{buttons.save.text}}\r\n </button>\r\n </div>\r\n </div>\r\n </ng-container>\r\n <ng-container *ngSwitchCase=\"'RUNNING'\"> </ng-container>\r\n <ng-container *ngSwitchCase=\"'ERROR'\"> </ng-container>\r\n <ng-container *ngSwitchCase=\"'SUCCESS'\"> </ng-container>\r\n\r\n <ng-container *ngSwitchDefault>\r\n <div class=\"deon-button\">\r\n <div class=\"left-box\"></div>\r\n <div class=\"right-box\">\r\n <ng-container *ngIf=\"buttons.cancel.hide==false\">\r\n <button nz-button nzType=\"default\" (click)=\"btnClose()\" type=\"button\">\r\n <i nz-icon nzType=\"close\"></i>{{buttons.cancel.text}}\r\n </button>\r\n </ng-container>\r\n <ng-container *ngIf=\"buttons.save.hide==false\">\r\n <button nz-button nzType=\"primary\" id=\"confirm\" [disabled]=\"loading\">\r\n <i nz-icon nzType=\"save\"></i>{{buttons.save.text}}\r\n </button>\r\n </ng-container>\r\n </div>\r\n </div>\r\n </ng-container>\r\n </ng-container>\r\n </ng-container>\r\n </ng-container>\r\n\r\n <ng-template #tmpButton>\r\n <ng-container *ngIf=\"loading==false\">\r\n <div class=\"left-box\"></div>\r\n <div class=\"right-box\">\r\n <div class=\"deon-button\" *ngIf=\"config.type!='VIEW' && config.type!='PREVIEW'\">\r\n <button nz-button nzType=\"default\" (click)=\"btnClose()\" type=\"button\">\r\n <i nz-icon nzType=\"close\"></i>{{buttons.cancel.text}}\r\n </button>\r\n <button nz-button nzType=\"primary\" id=\"save\" [disabled]=\"loading\"><i nz-icon\r\n nzType=\"save\"></i>{{buttons.save.text}}</button>\r\n </div>\r\n </div>\r\n </ng-container>\r\n </ng-template>\r\n </nz-spin>\r\n</form>", styles: [":host ::ng-deep{display:flex;flex:1;flex-direction:column;width:100%;height:100%;padding:0 5px}:host ::ng-deep form{flex:1;overflow:auto}:host ::ng-deep .left-box .tips{color:red;font-weight:600;font-size:16px}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i11.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i11.NgSwitch, selector: "[ngSwitch]", inputs: ["ngSwitch"] }, { kind: "directive", type: i11.NgSwitchCase, selector: "[ngSwitchCase]", inputs: ["ngSwitchCase"] }, { kind: "directive", type: i11.NgSwitchDefault, selector: "[ngSwitchDefault]" }, { kind: "ngmodule", type: FormsModule }, { kind: "directive", type: i12.ɵNgNoValidate, selector: "form:not([ngNoForm]):not([ngNativeValidate])" }, { kind: "directive", type: i12.NgControlStatusGroup, selector: "[formGroupName],[formArrayName],[ngModelGroup],[formGroup],form:not([ngNoForm]),[ngForm]" }, { kind: "ngmodule", type: ReactiveFormsModule }, { kind: "directive", type: i12.FormGroupDirective, selector: "[formGroup]", inputs: ["formGroup"], outputs: ["ngSubmit"], exportAs: ["ngForm"] }, { kind: "ngmodule", type: NzFormModule }, { kind: "ngmodule", type: NzIconModule }, { kind: "directive", type: i13.NzIconDirective, selector: "nz-icon,[nz-icon]", inputs: ["nzSpin", "nzRotate", "nzType", "nzTheme", "nzTwotoneColor", "nzIconfont"], exportAs: ["nzIcon"] }, { kind: "ngmodule", type: NzSpinModule }, { kind: "component", type: i14.NzSpinComponent, selector: "nz-spin", inputs: ["nzIndicator", "nzSize", "nzTip", "nzDelay", "nzSimple", "nzSpinning"], exportAs: ["nzSpin"] }, { kind: "ngmodule", type: NzButtonModule }, { kind: "component", type: i15.NzButtonComponent, selector: "button[nz-button], a[nz-button]", inputs: ["nzBlock", "nzGhost", "nzSearch", "nzLoading", "nzDanger", "disabled", "tabIndex", "nzType", "nzShape", "nzSize"], exportAs: ["nzButton"] }, { kind: "directive", type: i16.ɵ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: i17.NzWaveDirective, selector: "[nz-wave],button[nz-button]:not([nzType=\"link\"]):not([nzType=\"text\"])", inputs: ["nzWaveExtraNode"], exportAs: ["nzWave"] }, { kind: "ngmodule", type: NzEmptyModule }, { kind: "component", type: i18.NzEmptyComponent, selector: "nz-empty", inputs: ["nzNotFoundImage", "nzNotFoundContent", "nzNotFoundFooter"], exportAs: ["nzEmpty"] }, { kind: "ngmodule", type: CardContentModule }, { kind: "component", type: i19.CardUserComponent, selector: "card-user", inputs: ["config"], outputs: ["pageLoadAfter"] }, { kind: "ngmodule", type: FormlyModule }, { kind: "component", type: i4.
|
|
68
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.15", type: FormCustomComponent, isStandalone: true, selector: "form-custom", providers: [CommAPIService], usesInheritance: true, ngImport: i0, template: "<form [formGroup]=\"form\" (ngSubmit)=\"btnSubmit()\" #defaultForm>\r\n <nz-spin [nzSpinning]=\"loading\" nzTip=\"\u62FC\u547D\u52A0\u8F7D\u4E2D...\" class=\"deon-list-spin\">\r\n <div class=\"deon-from\">\r\n <div class=\"deon-header\" *ngIf=\"isHeader == true && headerConfig != null\">\r\n <card-user [config]=\"headerConfig\" (pageLoadAfter)=\"headerLoadAfter($event)\"></card-user>\r\n </div>\r\n <div class=\"deon-content\">\r\n <ng-container *ngIf=\"fields && fields.length>0;else emptyPage\">\r\n <formly-form [model]=\"model\" [fields]=\"fields\" [options]=\"options\" [form]=\"form\"> </formly-form>\r\n </ng-container>\r\n <ng-template #emptyPage>\r\n <nz-empty *ngIf=\"loading!==true\"></nz-empty>\r\n </ng-template>\r\n </div>\r\n </div>\r\n <ng-container *ngIf=\"izEffect==true;else tmpButton\">\r\n <ng-container *ngIf=\"config.type!='VIEW' && config.type!='PREVIEW'\">\r\n <ng-container [ngSwitch]=\" effectStatus\">\r\n <ng-container *ngSwitchCase=\"'WAITING'\">\r\n <div class=\"deon-button\">\r\n <div class=\"left-box\">\r\n <label class=\"tips\">\u672C\u6761\u6570\u636E\u4E3A\u5F85\u751F\u6548\uFF0C\u8BF7\u8C28\u614E\u64CD\u4F5C</label>\r\n </div>\r\n <div class=\"right-box\">\r\n <button nz-button nzType=\"default\" (click)=\"btnClose()\" type=\"button\">\r\n <i nz-icon nzType=\"close\"></i>{{buttons.cancel.text}}\r\n </button>\r\n <button nz-button nzType=\"primary\" id=\"save\" [disabled]=\"loading\">\r\n <i nz-icon nzType=\"save\"></i>{{buttons.save.text}}\r\n </button>\r\n </div>\r\n </div>\r\n </ng-container>\r\n <ng-container *ngSwitchCase=\"'RUNNING'\"> </ng-container>\r\n <ng-container *ngSwitchCase=\"'ERROR'\"> </ng-container>\r\n <ng-container *ngSwitchCase=\"'SUCCESS'\"> </ng-container>\r\n\r\n <ng-container *ngSwitchDefault>\r\n <div class=\"deon-button\">\r\n <div class=\"left-box\"></div>\r\n <div class=\"right-box\">\r\n <ng-container *ngIf=\"buttons.cancel.hide==false\">\r\n <button nz-button nzType=\"default\" (click)=\"btnClose()\" type=\"button\">\r\n <i nz-icon nzType=\"close\"></i>{{buttons.cancel.text}}\r\n </button>\r\n </ng-container>\r\n <ng-container *ngIf=\"buttons.save.hide==false\">\r\n <button nz-button nzType=\"primary\" id=\"confirm\" [disabled]=\"loading\">\r\n <i nz-icon nzType=\"save\"></i>{{buttons.save.text}}\r\n </button>\r\n </ng-container>\r\n </div>\r\n </div>\r\n </ng-container>\r\n </ng-container>\r\n </ng-container>\r\n </ng-container>\r\n\r\n <ng-template #tmpButton>\r\n <ng-container *ngIf=\"loading==false\">\r\n <div class=\"left-box\"></div>\r\n <div class=\"right-box\">\r\n <div class=\"deon-button\" *ngIf=\"config.type!='VIEW' && config.type!='PREVIEW'\">\r\n <button nz-button nzType=\"default\" (click)=\"btnClose()\" type=\"button\">\r\n <i nz-icon nzType=\"close\"></i>{{buttons.cancel.text}}\r\n </button>\r\n <button nz-button nzType=\"primary\" id=\"save\" [disabled]=\"loading\"><i nz-icon\r\n nzType=\"save\"></i>{{buttons.save.text}}</button>\r\n </div>\r\n </div>\r\n </ng-container>\r\n </ng-template>\r\n </nz-spin>\r\n</form>", styles: [":host ::ng-deep{display:flex;flex:1;flex-direction:column;width:100%;height:100%;padding:0 5px}:host ::ng-deep form{flex:1;overflow:auto}:host ::ng-deep .left-box .tips{color:red;font-weight:600;font-size:16px}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i11.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i11.NgSwitch, selector: "[ngSwitch]", inputs: ["ngSwitch"] }, { kind: "directive", type: i11.NgSwitchCase, selector: "[ngSwitchCase]", inputs: ["ngSwitchCase"] }, { kind: "directive", type: i11.NgSwitchDefault, selector: "[ngSwitchDefault]" }, { kind: "ngmodule", type: FormsModule }, { kind: "directive", type: i12.ɵNgNoValidate, selector: "form:not([ngNoForm]):not([ngNativeValidate])" }, { kind: "directive", type: i12.NgControlStatusGroup, selector: "[formGroupName],[formArrayName],[ngModelGroup],[formGroup],form:not([ngNoForm]),[ngForm]" }, { kind: "ngmodule", type: ReactiveFormsModule }, { kind: "directive", type: i12.FormGroupDirective, selector: "[formGroup]", inputs: ["formGroup"], outputs: ["ngSubmit"], exportAs: ["ngForm"] }, { kind: "ngmodule", type: NzFormModule }, { kind: "ngmodule", type: NzIconModule }, { kind: "directive", type: i13.NzIconDirective, selector: "nz-icon,[nz-icon]", inputs: ["nzSpin", "nzRotate", "nzType", "nzTheme", "nzTwotoneColor", "nzIconfont"], exportAs: ["nzIcon"] }, { kind: "ngmodule", type: NzSpinModule }, { kind: "component", type: i14.NzSpinComponent, selector: "nz-spin", inputs: ["nzIndicator", "nzSize", "nzTip", "nzDelay", "nzSimple", "nzSpinning"], exportAs: ["nzSpin"] }, { kind: "ngmodule", type: NzButtonModule }, { kind: "component", type: i15.NzButtonComponent, selector: "button[nz-button], a[nz-button]", inputs: ["nzBlock", "nzGhost", "nzSearch", "nzLoading", "nzDanger", "disabled", "tabIndex", "nzType", "nzShape", "nzSize"], exportAs: ["nzButton"] }, { kind: "directive", type: i16.ɵ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: i17.NzWaveDirective, selector: "[nz-wave],button[nz-button]:not([nzType=\"link\"]):not([nzType=\"text\"])", inputs: ["nzWaveExtraNode"], exportAs: ["nzWave"] }, { kind: "ngmodule", type: NzEmptyModule }, { kind: "component", type: i18.NzEmptyComponent, selector: "nz-empty", inputs: ["nzNotFoundImage", "nzNotFoundContent", "nzNotFoundFooter"], exportAs: ["nzEmpty"] }, { kind: "ngmodule", type: CardContentModule }, { kind: "component", type: i19.CardUserComponent, selector: "card-user", inputs: ["config"], outputs: ["pageLoadAfter"] }, { kind: "ngmodule", type: FormlyModule }, { kind: "component", type: i4.LegacyFormlyForm, selector: "formly-form" }, { kind: "ngmodule", type: GramDeonAntdModule }] });
|
|
69
69
|
}
|
|
70
70
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: FormCustomComponent, decorators: [{
|
|
71
71
|
type: Component,
|
|
@@ -111,7 +111,7 @@ class FormCustomMainComponent extends BasicDefaultService {
|
|
|
111
111
|
this.getPageConfig();
|
|
112
112
|
}
|
|
113
113
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: FormCustomMainComponent, deps: [{ token: i1._HttpClient }, { token: i2.DeonFormUtilService }, { token: i3.DeonFormResetService }, { token: i4.FormlyFormBuilder }, { token: i5.GramGlobalService }, { token: i7.NzMessageService }, { token: i8.NzModalService }, { token: i9.GramBaseDialogService }, { token: i10.CommAPIService }], target: i0.ɵɵFactoryTarget.Component });
|
|
114
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.15", type: FormCustomMainComponent, isStandalone: true, selector: "form-custom-main", providers: [CommAPIService], usesInheritance: true, ngImport: i0, template: "<form [formGroup]=\"form\" (ngSubmit)=\"btnSubmit()\" #defaultForm>\r\n <nz-spin [nzSpinning]=\"loading\" nzTip=\"\u62FC\u547D\u52A0\u8F7D\u4E2D...\" class=\"deon-list-spin\">\r\n <div class=\"deon-from\">\r\n <div class=\"deon-header\" *ngIf=\"isHeader == true && headerConfig != null\">\r\n <card-user [config]=\"headerConfig\" (pageLoadAfter)=\"headerLoadAfter($event)\"></card-user>\r\n </div>\r\n <div class=\"deon-content\">\r\n <ng-container *ngIf=\"fields && fields.length>0;else emptyPage\">\r\n <formly-form [model]=\"model\" [fields]=\"fields\" [options]=\"options\" [form]=\"form\"> </formly-form>\r\n </ng-container>\r\n <ng-template #emptyPage>\r\n <nz-empty *ngIf=\"loading!==true\"></nz-empty>\r\n </ng-template>\r\n </div>\r\n </div>\r\n <ng-container *ngIf=\"loading==false\">\r\n <div class=\"left-box\"></div>\r\n <div class=\"right-box\">\r\n <div class=\"deon-button\" *ngIf=\"config.type!='VIEW' && config.type!='PREVIEW'\">\r\n <button nz-button nzType=\"default\" (click)=\"btnClose()\" type=\"button\">\r\n <i nz-icon nzType=\"close\"></i>{{buttons.cancel.text}}\r\n </button>\r\n <button nz-button nzType=\"primary\" id=\"save\" [disabled]=\"loading\"><i nz-icon\r\n nzType=\"save\"></i>{{buttons.save.text}}</button>\r\n </div>\r\n </div>\r\n </ng-container>\r\n </nz-spin>\r\n</form>", styles: [":host ::ng-deep{display:flex;flex:1;flex-direction:column;width:100%;height:100%;padding:0 5px}:host ::ng-deep form{flex:1;overflow:auto}:host ::ng-deep .left-box .tips{color:red;font-weight:600;font-size:16px}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i11.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "ngmodule", type: FormsModule }, { kind: "directive", type: i12.ɵNgNoValidate, selector: "form:not([ngNoForm]):not([ngNativeValidate])" }, { kind: "directive", type: i12.NgControlStatusGroup, selector: "[formGroupName],[formArrayName],[ngModelGroup],[formGroup],form:not([ngNoForm]),[ngForm]" }, { kind: "ngmodule", type: ReactiveFormsModule }, { kind: "directive", type: i12.FormGroupDirective, selector: "[formGroup]", inputs: ["formGroup"], outputs: ["ngSubmit"], exportAs: ["ngForm"] }, { kind: "ngmodule", type: NzSpinModule }, { kind: "component", type: i14.NzSpinComponent, selector: "nz-spin", inputs: ["nzIndicator", "nzSize", "nzTip", "nzDelay", "nzSimple", "nzSpinning"], exportAs: ["nzSpin"] }, { kind: "ngmodule", type: NzEmptyModule }, { kind: "component", type: i18.NzEmptyComponent, selector: "nz-empty", inputs: ["nzNotFoundImage", "nzNotFoundContent", "nzNotFoundFooter"], exportAs: ["nzEmpty"] }, { kind: "ngmodule", type: NzIconModule }, { kind: "directive", type: i13.NzIconDirective, selector: "nz-icon,[nz-icon]", inputs: ["nzSpin", "nzRotate", "nzType", "nzTheme", "nzTwotoneColor", "nzIconfont"], exportAs: ["nzIcon"] }, { kind: "ngmodule", type: NzButtonModule }, { kind: "component", type: i15.NzButtonComponent, selector: "button[nz-button], a[nz-button]", inputs: ["nzBlock", "nzGhost", "nzSearch", "nzLoading", "nzDanger", "disabled", "tabIndex", "nzType", "nzShape", "nzSize"], exportAs: ["nzButton"] }, { kind: "directive", type: i16.ɵ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: i17.NzWaveDirective, selector: "[nz-wave],button[nz-button]:not([nzType=\"link\"]):not([nzType=\"text\"])", inputs: ["nzWaveExtraNode"], exportAs: ["nzWave"] }, { kind: "ngmodule", type: NzFormModule }, { kind: "ngmodule", type: FormlyModule }, { kind: "component", type: i4.
|
|
114
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.15", type: FormCustomMainComponent, isStandalone: true, selector: "form-custom-main", providers: [CommAPIService], usesInheritance: true, ngImport: i0, template: "<form [formGroup]=\"form\" (ngSubmit)=\"btnSubmit()\" #defaultForm>\r\n <nz-spin [nzSpinning]=\"loading\" nzTip=\"\u62FC\u547D\u52A0\u8F7D\u4E2D...\" class=\"deon-list-spin\">\r\n <div class=\"deon-from\">\r\n <div class=\"deon-header\" *ngIf=\"isHeader == true && headerConfig != null\">\r\n <card-user [config]=\"headerConfig\" (pageLoadAfter)=\"headerLoadAfter($event)\"></card-user>\r\n </div>\r\n <div class=\"deon-content\">\r\n <ng-container *ngIf=\"fields && fields.length>0;else emptyPage\">\r\n <formly-form [model]=\"model\" [fields]=\"fields\" [options]=\"options\" [form]=\"form\"> </formly-form>\r\n </ng-container>\r\n <ng-template #emptyPage>\r\n <nz-empty *ngIf=\"loading!==true\"></nz-empty>\r\n </ng-template>\r\n </div>\r\n </div>\r\n <ng-container *ngIf=\"loading==false\">\r\n <div class=\"left-box\"></div>\r\n <div class=\"right-box\">\r\n <div class=\"deon-button\" *ngIf=\"config.type!='VIEW' && config.type!='PREVIEW'\">\r\n <button nz-button nzType=\"default\" (click)=\"btnClose()\" type=\"button\">\r\n <i nz-icon nzType=\"close\"></i>{{buttons.cancel.text}}\r\n </button>\r\n <button nz-button nzType=\"primary\" id=\"save\" [disabled]=\"loading\"><i nz-icon\r\n nzType=\"save\"></i>{{buttons.save.text}}</button>\r\n </div>\r\n </div>\r\n </ng-container>\r\n </nz-spin>\r\n</form>", styles: [":host ::ng-deep{display:flex;flex:1;flex-direction:column;width:100%;height:100%;padding:0 5px}:host ::ng-deep form{flex:1;overflow:auto}:host ::ng-deep .left-box .tips{color:red;font-weight:600;font-size:16px}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i11.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "ngmodule", type: FormsModule }, { kind: "directive", type: i12.ɵNgNoValidate, selector: "form:not([ngNoForm]):not([ngNativeValidate])" }, { kind: "directive", type: i12.NgControlStatusGroup, selector: "[formGroupName],[formArrayName],[ngModelGroup],[formGroup],form:not([ngNoForm]),[ngForm]" }, { kind: "ngmodule", type: ReactiveFormsModule }, { kind: "directive", type: i12.FormGroupDirective, selector: "[formGroup]", inputs: ["formGroup"], outputs: ["ngSubmit"], exportAs: ["ngForm"] }, { kind: "ngmodule", type: NzSpinModule }, { kind: "component", type: i14.NzSpinComponent, selector: "nz-spin", inputs: ["nzIndicator", "nzSize", "nzTip", "nzDelay", "nzSimple", "nzSpinning"], exportAs: ["nzSpin"] }, { kind: "ngmodule", type: NzEmptyModule }, { kind: "component", type: i18.NzEmptyComponent, selector: "nz-empty", inputs: ["nzNotFoundImage", "nzNotFoundContent", "nzNotFoundFooter"], exportAs: ["nzEmpty"] }, { kind: "ngmodule", type: NzIconModule }, { kind: "directive", type: i13.NzIconDirective, selector: "nz-icon,[nz-icon]", inputs: ["nzSpin", "nzRotate", "nzType", "nzTheme", "nzTwotoneColor", "nzIconfont"], exportAs: ["nzIcon"] }, { kind: "ngmodule", type: NzButtonModule }, { kind: "component", type: i15.NzButtonComponent, selector: "button[nz-button], a[nz-button]", inputs: ["nzBlock", "nzGhost", "nzSearch", "nzLoading", "nzDanger", "disabled", "tabIndex", "nzType", "nzShape", "nzSize"], exportAs: ["nzButton"] }, { kind: "directive", type: i16.ɵ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: i17.NzWaveDirective, selector: "[nz-wave],button[nz-button]:not([nzType=\"link\"]):not([nzType=\"text\"])", inputs: ["nzWaveExtraNode"], exportAs: ["nzWave"] }, { kind: "ngmodule", type: NzFormModule }, { kind: "ngmodule", type: FormlyModule }, { kind: "component", type: i4.LegacyFormlyForm, selector: "formly-form" }, { kind: "ngmodule", type: CardContentModule }, { kind: "component", type: i19.CardUserComponent, selector: "card-user", inputs: ["config"], outputs: ["pageLoadAfter"] }, { kind: "ngmodule", type: GramDeonAntdModule }] });
|
|
115
115
|
}
|
|
116
116
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: FormCustomMainComponent, decorators: [{
|
|
117
117
|
type: Component,
|