@ebuilding/biz-form 2.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +0 -0
- package/README.md +0 -0
- package/advanced/index.d.ts +1 -0
- package/advanced/src/index.module.d.ts +8 -0
- package/advanced/src/main/index.d.ts +29 -0
- package/advanced/src/public_api.d.ts +2 -0
- package/basic/index.d.ts +1 -0
- package/basic/src/basic.d.ts +53 -0
- package/basic/src/basic.drawer.d.ts +30 -0
- package/basic/src/default/index.d.ts +27 -0
- package/basic/src/index.module.d.ts +9 -0
- package/basic/src/main/index.d.ts +32 -0
- package/basic/src/public_api.d.ts +3 -0
- package/custom/index.d.ts +1 -0
- package/custom/src/default/index.d.ts +30 -0
- package/custom/src/index.module.d.ts +9 -0
- package/custom/src/main/index.d.ts +27 -0
- package/custom/src/public_api.d.ts +3 -0
- package/design/index.d.ts +1 -0
- package/design/src/default/index.d.ts +25 -0
- package/design/src/index.module.d.ts +8 -0
- package/design/src/public_api.d.ts +2 -0
- package/empInfo/index.d.ts +1 -0
- package/empInfo/src/children/index.d.ts +28 -0
- package/empInfo/src/default/index.d.ts +34 -0
- package/empInfo/src/index.module.d.ts +9 -0
- package/empInfo/src/public_api.d.ts +2 -0
- package/empInfo/src/service.d.ts +14 -0
- package/fesm2022/advanced.mjs +114 -0
- package/fesm2022/advanced.mjs.map +1 -0
- package/fesm2022/basic.mjs +431 -0
- package/fesm2022/basic.mjs.map +1 -0
- package/fesm2022/custom.mjs +156 -0
- package/fesm2022/custom.mjs.map +1 -0
- package/fesm2022/design.mjs +109 -0
- package/fesm2022/design.mjs.map +1 -0
- package/fesm2022/ebuilding-biz-form.mjs +7 -0
- package/fesm2022/ebuilding-biz-form.mjs.map +1 -0
- package/fesm2022/empInfo.mjs +273 -0
- package/fesm2022/empInfo.mjs.map +1 -0
- package/fesm2022/history.mjs +119 -0
- package/fesm2022/history.mjs.map +1 -0
- package/fesm2022/page.mjs +200 -0
- package/fesm2022/page.mjs.map +1 -0
- package/fesm2022/preview.mjs +317 -0
- package/fesm2022/preview.mjs.map +1 -0
- package/fesm2022/rule.mjs +204 -0
- package/fesm2022/rule.mjs.map +1 -0
- package/fesm2022/service.mjs +813 -0
- package/fesm2022/service.mjs.map +1 -0
- package/fesm2022/srv.basic.default.mjs +48 -0
- package/fesm2022/srv.basic.default.mjs.map +1 -0
- package/fesm2022/srv.basic.drawer.mjs +70 -0
- package/fesm2022/srv.basic.drawer.mjs.map +1 -0
- package/fesm2022/srv.basic.flow.mjs +353 -0
- package/fesm2022/srv.basic.flow.mjs.map +1 -0
- package/fesm2022/srv.basic.mjs +813 -0
- package/fesm2022/srv.basic.mjs.map +1 -0
- package/fesm2022/srv.default.service.mjs +186 -0
- package/fesm2022/srv.default.service.mjs.map +1 -0
- package/fesm2022/srv.form.default.service.mjs +224 -0
- package/fesm2022/srv.form.default.service.mjs.map +1 -0
- package/fesm2022/srv.form.service.mjs +502 -0
- package/fesm2022/srv.form.service.mjs.map +1 -0
- package/fesm2022/srv.form.workflow.mjs +573 -0
- package/fesm2022/srv.form.workflow.mjs.map +1 -0
- package/fesm2022/srv.form2.service.mjs +238 -0
- package/fesm2022/srv.form2.service.mjs.map +1 -0
- package/fesm2022/srv.formGroup.service.mjs +242 -0
- package/fesm2022/srv.formGroup.service.mjs.map +1 -0
- package/history/index.d.ts +1 -0
- package/history/src/default/index.d.ts +34 -0
- package/history/src/index.module.d.ts +8 -0
- package/history/src/public_api.d.ts +2 -0
- package/index.d.ts +2 -0
- package/package.json +100 -0
- package/page/index.d.ts +1 -0
- package/page/src/default/index.d.ts +35 -0
- package/page/src/index.module.d.ts +8 -0
- package/page/src/public_api.d.ts +2 -0
- package/preview/index.d.ts +1 -0
- package/preview/src/default/index.d.ts +37 -0
- package/preview/src/index.module.d.ts +9 -0
- package/preview/src/main/index.d.ts +38 -0
- package/preview/src/public_api.d.ts +3 -0
- package/rule/index.d.ts +1 -0
- package/rule/src/default/index.d.ts +39 -0
- package/rule/src/index.module.d.ts +8 -0
- package/rule/src/public_api.d.ts +2 -0
- package/service/basic/index.d.ts +166 -0
- package/service/basic.default/index.d.ts +25 -0
- package/service/basic.drawer/index.d.ts +36 -0
- package/service/basic.flow/index.d.ts +103 -0
- package/service/default.service/index.d.ts +59 -0
- package/service/form.default.service/index.d.ts +45 -0
- package/service/form.service/index.d.ts +77 -0
- package/service/form.workflow/index.d.ts +139 -0
- package/service/form2.service/index.d.ts +51 -0
- package/service/formGroup.service/index.d.ts +52 -0
- package/service/index.d.ts +1 -0
package/LICENSE
ADDED
|
File without changes
|
package/README.md
ADDED
|
File without changes
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './src/public_api';
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
import * as i1 from "@angular/common";
|
|
3
|
+
import * as i2 from "./main/index";
|
|
4
|
+
export declare class FormAdvancedModule {
|
|
5
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<FormAdvancedModule, never>;
|
|
6
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<FormAdvancedModule, never, [typeof i1.CommonModule, typeof i2.FormAdvancedMainComponent], [typeof i2.FormAdvancedMainComponent]>;
|
|
7
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<FormAdvancedModule>;
|
|
8
|
+
}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { OnInit } from '@angular/core';
|
|
2
|
+
import { _HttpClient } from '@delon/theme';
|
|
3
|
+
import { FormlyFormBuilder } from '@kre-form/core';
|
|
4
|
+
import { NzMessageService } from 'ng-zorro-antd/message';
|
|
5
|
+
import { NzModalService } from 'ng-zorro-antd/modal';
|
|
6
|
+
import { DeonFormUtilService } from '@ebuilding/base/shared.srv/deon.util';
|
|
7
|
+
import { DeonFormResetService } from '@ebuilding/base/shared.srv/deon2.util';
|
|
8
|
+
import { GramBaseDialogService } from '@ebuilding/base/shared.srv/base-dialog.service';
|
|
9
|
+
import { GramGlobalService } from '@ebuilding/base/shared.srv/global.event';
|
|
10
|
+
import { CommAPIService } from '@ebuilding/base/shared.srv/commApi.service';
|
|
11
|
+
import { BasicDefaultService } from '@ebuilding/biz-form/service/basic.default';
|
|
12
|
+
import * as i0 from "@angular/core";
|
|
13
|
+
export declare class FormAdvancedMainComponent extends BasicDefaultService implements OnInit {
|
|
14
|
+
http: _HttpClient;
|
|
15
|
+
utilService: DeonFormUtilService;
|
|
16
|
+
resetService: DeonFormResetService;
|
|
17
|
+
deonFormBuilder: FormlyFormBuilder;
|
|
18
|
+
globalSrv: GramGlobalService;
|
|
19
|
+
msg: NzMessageService;
|
|
20
|
+
modal: NzModalService;
|
|
21
|
+
dialogService: GramBaseDialogService;
|
|
22
|
+
commAPISrv: CommAPIService;
|
|
23
|
+
constructor(http: _HttpClient, utilService: DeonFormUtilService, resetService: DeonFormResetService, deonFormBuilder: FormlyFormBuilder, globalSrv: GramGlobalService, msg: NzMessageService, modal: NzModalService, dialogService: GramBaseDialogService, commAPISrv: CommAPIService);
|
|
24
|
+
ngOnInit(): void;
|
|
25
|
+
getFromOtherData(): import("rxjs").Observable<any>;
|
|
26
|
+
getModelData(): any;
|
|
27
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<FormAdvancedMainComponent, never>;
|
|
28
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<FormAdvancedMainComponent, "form-advanced-main", never, {}, {}, never, never, true, never>;
|
|
29
|
+
}
|
package/basic/index.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './src/public_api';
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
import { EventEmitter, OnDestroy } from '@angular/core';
|
|
2
|
+
import { FormGroup } from '@angular/forms';
|
|
3
|
+
import { _HttpClient } from '@delon/theme';
|
|
4
|
+
import { FormlyFormOptions, FormlyFieldConfig, FormlyFormBuilder } from '@kre-form/core';
|
|
5
|
+
import { NzMessageService } from 'ng-zorro-antd/message';
|
|
6
|
+
import { DeonFormUtilService } from '@ebuilding/base/shared.srv/deon.util';
|
|
7
|
+
import { GramGlobalService } from '@ebuilding/base/shared.srv/global.event';
|
|
8
|
+
import { CommAPIService } from '@ebuilding/base/shared.srv/commApi.service';
|
|
9
|
+
import { Subject } from 'rxjs';
|
|
10
|
+
import * as i0 from "@angular/core";
|
|
11
|
+
export declare abstract class BasicService implements OnDestroy {
|
|
12
|
+
http: _HttpClient;
|
|
13
|
+
utilService: DeonFormUtilService;
|
|
14
|
+
deonFormBuilder: FormlyFormBuilder;
|
|
15
|
+
globalSrv: GramGlobalService;
|
|
16
|
+
msg: NzMessageService;
|
|
17
|
+
commAPISrv: CommAPIService;
|
|
18
|
+
loading: boolean;
|
|
19
|
+
form: FormGroup<{}>;
|
|
20
|
+
model: any;
|
|
21
|
+
options: FormlyFormOptions;
|
|
22
|
+
fields: FormlyFieldConfig[];
|
|
23
|
+
/**
|
|
24
|
+
* 销毁
|
|
25
|
+
*/
|
|
26
|
+
onDestroy$: Subject<void>;
|
|
27
|
+
config: any;
|
|
28
|
+
btnCloseEvent: EventEmitter<any>;
|
|
29
|
+
btnSaveEvent: EventEmitter<any>;
|
|
30
|
+
constructor(http: _HttpClient, utilService: DeonFormUtilService, deonFormBuilder: FormlyFormBuilder, globalSrv: GramGlobalService, msg: NzMessageService, commAPISrv: CommAPIService);
|
|
31
|
+
ngOnDestroy(): void;
|
|
32
|
+
getDesign(): import("rxjs").Observable<any[]>;
|
|
33
|
+
getRole(): import("rxjs").Observable<any>;
|
|
34
|
+
getDropDown(): import("rxjs").Observable<any>;
|
|
35
|
+
getFromModel(): import("rxjs").Observable<any>;
|
|
36
|
+
getFromDefaultModel(): import("rxjs").Observable<any>;
|
|
37
|
+
/**
|
|
38
|
+
* 组装配置
|
|
39
|
+
*/
|
|
40
|
+
getPageConfig(): void;
|
|
41
|
+
save(): void;
|
|
42
|
+
/**
|
|
43
|
+
* 取消-关闭
|
|
44
|
+
*/
|
|
45
|
+
btnClose(): void;
|
|
46
|
+
/**
|
|
47
|
+
* 保存-关闭
|
|
48
|
+
* @param e
|
|
49
|
+
*/
|
|
50
|
+
btnSave(e: any): void;
|
|
51
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<BasicService, never>;
|
|
52
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<BasicService, never, never, { "config": { "alias": "config"; "required": false; }; }, { "btnCloseEvent": "btnCloseEvent"; "btnSaveEvent": "btnSaveEvent"; }, never, never, true, never>;
|
|
53
|
+
}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { _HttpClient } from '@delon/theme';
|
|
2
|
+
import { FormlyFormBuilder } from '@kre-form/core';
|
|
3
|
+
import { NzMessageService } from 'ng-zorro-antd/message';
|
|
4
|
+
import { NzDrawerRef } from '@ebuilding/base/components/drawer';
|
|
5
|
+
import { DeonFormUtilService } from '@ebuilding/base/shared.srv/deon.util';
|
|
6
|
+
import { GramGlobalService } from '@ebuilding/base/shared.srv/global.event';
|
|
7
|
+
import { CommAPIService } from '@ebuilding/base/shared.srv/commApi.service';
|
|
8
|
+
import { BasicService } from "./basic";
|
|
9
|
+
import * as i0 from "@angular/core";
|
|
10
|
+
export declare abstract class BasicDrawerService extends BasicService {
|
|
11
|
+
http: _HttpClient;
|
|
12
|
+
utilService: DeonFormUtilService;
|
|
13
|
+
deonFormBuilder: FormlyFormBuilder;
|
|
14
|
+
globalSrv: GramGlobalService;
|
|
15
|
+
msg: NzMessageService;
|
|
16
|
+
drawerRef: NzDrawerRef<any>;
|
|
17
|
+
commAPISrv: CommAPIService;
|
|
18
|
+
constructor(http: _HttpClient, utilService: DeonFormUtilService, deonFormBuilder: FormlyFormBuilder, globalSrv: GramGlobalService, msg: NzMessageService, drawerRef: NzDrawerRef<any>, commAPISrv: CommAPIService);
|
|
19
|
+
/**
|
|
20
|
+
* 关闭
|
|
21
|
+
* @param e
|
|
22
|
+
*/
|
|
23
|
+
btnSave(e: any): void;
|
|
24
|
+
/**
|
|
25
|
+
* 取消
|
|
26
|
+
*/
|
|
27
|
+
btnClose(): void;
|
|
28
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<BasicDrawerService, never>;
|
|
29
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<BasicDrawerService, never, never, {}, {}, never, never, true, never>;
|
|
30
|
+
}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { OnInit, AfterContentChecked } from '@angular/core';
|
|
2
|
+
import { _HttpClient } from '@delon/theme';
|
|
3
|
+
import { FormlyFormBuilder } from '@kre-form/core';
|
|
4
|
+
import { NzMessageService } from 'ng-zorro-antd/message';
|
|
5
|
+
import { DeonFormUtilService } from '@ebuilding/base/shared.srv/deon.util';
|
|
6
|
+
import { GramGlobalService } from '@ebuilding/base/shared.srv/global.event';
|
|
7
|
+
import { CommAPIService } from '@ebuilding/base/shared.srv/commApi.service';
|
|
8
|
+
import { NzDrawerRef } from '@ebuilding/base/components/drawer';
|
|
9
|
+
import { BasicDrawerService } from '../basic.drawer';
|
|
10
|
+
import * as i0 from "@angular/core";
|
|
11
|
+
/**
|
|
12
|
+
* 固定表单 - 弹框
|
|
13
|
+
*/
|
|
14
|
+
export declare class FormBasicComponent extends BasicDrawerService implements OnInit, AfterContentChecked {
|
|
15
|
+
http: _HttpClient;
|
|
16
|
+
utilService: DeonFormUtilService;
|
|
17
|
+
deonFormBuilder: FormlyFormBuilder;
|
|
18
|
+
globalSrv: GramGlobalService;
|
|
19
|
+
drawerRef: NzDrawerRef<any>;
|
|
20
|
+
msg: NzMessageService;
|
|
21
|
+
commAPISrv: CommAPIService;
|
|
22
|
+
constructor(http: _HttpClient, utilService: DeonFormUtilService, deonFormBuilder: FormlyFormBuilder, globalSrv: GramGlobalService, drawerRef: NzDrawerRef<any>, msg: NzMessageService, commAPISrv: CommAPIService);
|
|
23
|
+
ngOnInit(): void;
|
|
24
|
+
ngAfterContentChecked(): void;
|
|
25
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<FormBasicComponent, never>;
|
|
26
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<FormBasicComponent, "form-basic", never, {}, {}, never, never, true, never>;
|
|
27
|
+
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
import * as i1 from "@angular/common";
|
|
3
|
+
import * as i2 from "./default/index";
|
|
4
|
+
import * as i3 from "./main/index";
|
|
5
|
+
export declare class FormBasicModule {
|
|
6
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<FormBasicModule, never>;
|
|
7
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<FormBasicModule, never, [typeof i1.CommonModule, typeof i2.FormBasicComponent, typeof i3.FormBasicMainComponent], [typeof i2.FormBasicComponent, typeof i3.FormBasicMainComponent]>;
|
|
8
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<FormBasicModule>;
|
|
9
|
+
}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { OnInit, AfterContentChecked } from '@angular/core';
|
|
2
|
+
import { _HttpClient } from '@delon/theme';
|
|
3
|
+
import { FormlyFormBuilder } from '@kre-form/core';
|
|
4
|
+
import { NzMessageService } from 'ng-zorro-antd/message';
|
|
5
|
+
import { DeonFormUtilService } from '@ebuilding/base/shared.srv/deon.util';
|
|
6
|
+
import { GramGlobalService } from '@ebuilding/base/shared.srv/global.event';
|
|
7
|
+
import { CommAPIService } from '@ebuilding/base/shared.srv/commApi.service';
|
|
8
|
+
import { NzDrawerRef } from '@ebuilding/base/components/drawer';
|
|
9
|
+
import { BasicService } from '../basic';
|
|
10
|
+
import * as i0 from "@angular/core";
|
|
11
|
+
/**
|
|
12
|
+
* 固定表单 - 非弹窗
|
|
13
|
+
*/
|
|
14
|
+
export declare class FormBasicMainComponent extends BasicService implements OnInit, AfterContentChecked {
|
|
15
|
+
http: _HttpClient;
|
|
16
|
+
utilService: DeonFormUtilService;
|
|
17
|
+
deonFormBuilder: FormlyFormBuilder;
|
|
18
|
+
globalSrv: GramGlobalService;
|
|
19
|
+
drawerRef: NzDrawerRef<any>;
|
|
20
|
+
msg: NzMessageService;
|
|
21
|
+
commAPISrv: CommAPIService;
|
|
22
|
+
constructor(http: _HttpClient, utilService: DeonFormUtilService, deonFormBuilder: FormlyFormBuilder, globalSrv: GramGlobalService, drawerRef: NzDrawerRef<any>, msg: NzMessageService, commAPISrv: CommAPIService);
|
|
23
|
+
ngOnInit(): void;
|
|
24
|
+
ngAfterContentChecked(): void;
|
|
25
|
+
/**
|
|
26
|
+
* 取消-关闭
|
|
27
|
+
*/
|
|
28
|
+
btnClose(): void;
|
|
29
|
+
btnSave(): void;
|
|
30
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<FormBasicMainComponent, never>;
|
|
31
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<FormBasicMainComponent, "form-basic-main", never, {}, {}, never, never, true, never>;
|
|
32
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './src/public_api';
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { OnInit, AfterContentChecked } from '@angular/core';
|
|
2
|
+
import { _HttpClient } from '@delon/theme';
|
|
3
|
+
import { FormlyFormBuilder } from '@kre-form/core';
|
|
4
|
+
import { NzMessageService } from 'ng-zorro-antd/message';
|
|
5
|
+
import { NzModalService } from 'ng-zorro-antd/modal';
|
|
6
|
+
import { DeonFormUtilService } from '@ebuilding/base/shared.srv/deon.util';
|
|
7
|
+
import { DeonFormResetService } from '@ebuilding/base/shared.srv/deon2.util';
|
|
8
|
+
import { GramBaseDialogService } from '@ebuilding/base/shared.srv/base-dialog.service';
|
|
9
|
+
import { GramGlobalService } from '@ebuilding/base/shared.srv/global.event';
|
|
10
|
+
import { CommAPIService } from '@ebuilding/base/shared.srv/commApi.service';
|
|
11
|
+
import { NzDrawerRef } from '@ebuilding/base/components/drawer';
|
|
12
|
+
import { BasicDrawerService } from '@ebuilding/biz-form/service/basic.drawer';
|
|
13
|
+
import * as i0 from "@angular/core";
|
|
14
|
+
export declare class FormCustomComponent extends BasicDrawerService implements OnInit, AfterContentChecked {
|
|
15
|
+
http: _HttpClient;
|
|
16
|
+
utilService: DeonFormUtilService;
|
|
17
|
+
resetService: DeonFormResetService;
|
|
18
|
+
deonFormBuilder: FormlyFormBuilder;
|
|
19
|
+
globalSrv: GramGlobalService;
|
|
20
|
+
drawerRef: NzDrawerRef<any>;
|
|
21
|
+
msg: NzMessageService;
|
|
22
|
+
modal: NzModalService;
|
|
23
|
+
dialogService: GramBaseDialogService;
|
|
24
|
+
commAPISrv: CommAPIService;
|
|
25
|
+
constructor(http: _HttpClient, utilService: DeonFormUtilService, resetService: DeonFormResetService, deonFormBuilder: FormlyFormBuilder, globalSrv: GramGlobalService, drawerRef: NzDrawerRef<any>, msg: NzMessageService, modal: NzModalService, dialogService: GramBaseDialogService, commAPISrv: CommAPIService);
|
|
26
|
+
ngOnInit(): void;
|
|
27
|
+
ngAfterContentChecked(): void;
|
|
28
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<FormCustomComponent, never>;
|
|
29
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<FormCustomComponent, "form-custom", never, {}, {}, never, never, true, never>;
|
|
30
|
+
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
import * as i1 from "@angular/common";
|
|
3
|
+
import * as i2 from "./default/index";
|
|
4
|
+
import * as i3 from "./main/index";
|
|
5
|
+
export declare class FormCustomModule {
|
|
6
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<FormCustomModule, never>;
|
|
7
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<FormCustomModule, never, [typeof i1.CommonModule, typeof i2.FormCustomComponent, typeof i3.FormCustomMainComponent], [typeof i2.FormCustomComponent, typeof i3.FormCustomMainComponent]>;
|
|
8
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<FormCustomModule>;
|
|
9
|
+
}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { OnInit } from '@angular/core';
|
|
2
|
+
import { _HttpClient } from '@delon/theme';
|
|
3
|
+
import { FormlyFormBuilder } from '@kre-form/core';
|
|
4
|
+
import { NzMessageService } from 'ng-zorro-antd/message';
|
|
5
|
+
import { NzModalService } from 'ng-zorro-antd/modal';
|
|
6
|
+
import { DeonFormUtilService } from '@ebuilding/base/shared.srv/deon.util';
|
|
7
|
+
import { DeonFormResetService } from '@ebuilding/base/shared.srv/deon2.util';
|
|
8
|
+
import { GramBaseDialogService } from '@ebuilding/base/shared.srv/base-dialog.service';
|
|
9
|
+
import { GramGlobalService } from '@ebuilding/base/shared.srv/global.event';
|
|
10
|
+
import { CommAPIService } from '@ebuilding/base/shared.srv/commApi.service';
|
|
11
|
+
import { BasicDefaultService } from '@ebuilding/biz-form/service/basic.default';
|
|
12
|
+
import * as i0 from "@angular/core";
|
|
13
|
+
export declare class FormCustomMainComponent extends BasicDefaultService implements OnInit {
|
|
14
|
+
http: _HttpClient;
|
|
15
|
+
utilService: DeonFormUtilService;
|
|
16
|
+
resetService: DeonFormResetService;
|
|
17
|
+
deonFormBuilder: FormlyFormBuilder;
|
|
18
|
+
globalSrv: GramGlobalService;
|
|
19
|
+
msg: NzMessageService;
|
|
20
|
+
modal: NzModalService;
|
|
21
|
+
dialogService: GramBaseDialogService;
|
|
22
|
+
commAPISrv: CommAPIService;
|
|
23
|
+
constructor(http: _HttpClient, utilService: DeonFormUtilService, resetService: DeonFormResetService, deonFormBuilder: FormlyFormBuilder, globalSrv: GramGlobalService, msg: NzMessageService, modal: NzModalService, dialogService: GramBaseDialogService, commAPISrv: CommAPIService);
|
|
24
|
+
ngOnInit(): void;
|
|
25
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<FormCustomMainComponent, never>;
|
|
26
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<FormCustomMainComponent, "form-custom-main", never, {}, {}, never, never, true, never>;
|
|
27
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './src/public_api';
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { OnInit, ChangeDetectorRef, AfterContentChecked } from '@angular/core';
|
|
2
|
+
import { _HttpClient } from '@delon/theme';
|
|
3
|
+
import { FormlyFormBuilder } from '@kre-form/core';
|
|
4
|
+
import { NzMessageService } from 'ng-zorro-antd/message';
|
|
5
|
+
import { NzDrawerRef } from '@ebuilding/base/components/drawer';
|
|
6
|
+
import { DeonFormUtilService } from '@ebuilding/base/shared.srv/deon.util';
|
|
7
|
+
import { GramGlobalService } from '@ebuilding/base/shared.srv/global.event';
|
|
8
|
+
import { FormBasicService } from '@ebuilding/biz-form/service/default.service';
|
|
9
|
+
import * as i0 from "@angular/core";
|
|
10
|
+
export declare class FormDesignComponent extends FormBasicService implements OnInit, AfterContentChecked {
|
|
11
|
+
http: _HttpClient;
|
|
12
|
+
utilService: DeonFormUtilService;
|
|
13
|
+
deonFormBuilder: FormlyFormBuilder;
|
|
14
|
+
globalSrv: GramGlobalService;
|
|
15
|
+
drawerRef: NzDrawerRef<any>;
|
|
16
|
+
msg: NzMessageService;
|
|
17
|
+
private changeDetector;
|
|
18
|
+
constructor(http: _HttpClient, utilService: DeonFormUtilService, deonFormBuilder: FormlyFormBuilder, globalSrv: GramGlobalService, drawerRef: NzDrawerRef<any>, msg: NzMessageService, changeDetector: ChangeDetectorRef);
|
|
19
|
+
ngOnInit(): void;
|
|
20
|
+
ngAfterContentChecked(): void;
|
|
21
|
+
getFieldConfig(): void;
|
|
22
|
+
getFormDefaultField(): import("rxjs").Observable<any>;
|
|
23
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<FormDesignComponent, never>;
|
|
24
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<FormDesignComponent, "form-design", never, {}, {}, never, never, true, never>;
|
|
25
|
+
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
import * as i1 from "@angular/common";
|
|
3
|
+
import * as i2 from "./default/index";
|
|
4
|
+
export declare class FormDesignModule {
|
|
5
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<FormDesignModule, never>;
|
|
6
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<FormDesignModule, never, [typeof i1.CommonModule, typeof i2.FormDesignComponent], [typeof i2.FormDesignComponent]>;
|
|
7
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<FormDesignModule>;
|
|
8
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './src/public_api';
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { OnInit, OnChanges, SimpleChanges } from '@angular/core';
|
|
2
|
+
import { _HttpClient } from '@delon/theme';
|
|
3
|
+
import { FormlyFormBuilder } from '@kre-form/core';
|
|
4
|
+
import { NzMessageService } from 'ng-zorro-antd/message';
|
|
5
|
+
import { DeonFormUtilService } from '@ebuilding/base/shared.srv/deon.util';
|
|
6
|
+
import { GramGlobalService } from '@ebuilding/base/shared.srv/global.event';
|
|
7
|
+
import { CommAPIService } from '@ebuilding/base/shared.srv/commApi.service';
|
|
8
|
+
import { FormGroupBasicService } from '@ebuilding/biz-form/service/formGroup.service';
|
|
9
|
+
import { GroupService } from '../service';
|
|
10
|
+
import * as i0 from "@angular/core";
|
|
11
|
+
export declare class GroupChildrenComponent extends FormGroupBasicService implements OnInit, OnChanges {
|
|
12
|
+
http: _HttpClient;
|
|
13
|
+
utilService: DeonFormUtilService;
|
|
14
|
+
deonFormBuilder: FormlyFormBuilder;
|
|
15
|
+
globalSrv: GramGlobalService;
|
|
16
|
+
msg: NzMessageService;
|
|
17
|
+
commAPISrv: CommAPIService;
|
|
18
|
+
groupSrv: GroupService;
|
|
19
|
+
formInfo: any;
|
|
20
|
+
height: number;
|
|
21
|
+
constructor(http: _HttpClient, utilService: DeonFormUtilService, deonFormBuilder: FormlyFormBuilder, globalSrv: GramGlobalService, msg: NzMessageService, commAPISrv: CommAPIService, groupSrv: GroupService);
|
|
22
|
+
ngOnInit(): void;
|
|
23
|
+
ngOnChanges(changes: SimpleChanges): void;
|
|
24
|
+
getFromModel(): import("rxjs").Observable<any>;
|
|
25
|
+
save(): void;
|
|
26
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<GroupChildrenComponent, never>;
|
|
27
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<GroupChildrenComponent, "group-children", never, { "formInfo": { "alias": "formInfo"; "required": false; }; "height": { "alias": "height"; "required": false; }; }, {}, never, never, true, never>;
|
|
28
|
+
}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { OnInit, Renderer2, ElementRef, OnChanges, SimpleChanges } from '@angular/core';
|
|
2
|
+
import { _HttpClient } from '@delon/theme';
|
|
3
|
+
import { FormlyFormBuilder } from '@kre-form/core';
|
|
4
|
+
import { NzMessageService } from 'ng-zorro-antd/message';
|
|
5
|
+
import { DeonFormUtilService } from '@ebuilding/base/shared.srv/deon.util';
|
|
6
|
+
import { GramGlobalService } from '@ebuilding/base/shared.srv/global.event';
|
|
7
|
+
import { CommAPIService } from '@ebuilding/base/shared.srv/commApi.service';
|
|
8
|
+
import { FormGroupBasicService } from '@ebuilding/biz-form/service/formGroup.service';
|
|
9
|
+
import { GroupService } from '../service';
|
|
10
|
+
import * as i0 from "@angular/core";
|
|
11
|
+
export declare class EmpFormGroupComponent extends FormGroupBasicService implements OnInit, OnChanges {
|
|
12
|
+
http: _HttpClient;
|
|
13
|
+
elementRef: ElementRef;
|
|
14
|
+
renderer: Renderer2;
|
|
15
|
+
utilService: DeonFormUtilService;
|
|
16
|
+
deonFormBuilder: FormlyFormBuilder;
|
|
17
|
+
globalSrv: GramGlobalService;
|
|
18
|
+
msg: NzMessageService;
|
|
19
|
+
commAPISrv: CommAPIService;
|
|
20
|
+
groupSrv: GroupService;
|
|
21
|
+
_config: any;
|
|
22
|
+
set config(value: any);
|
|
23
|
+
get config(): any;
|
|
24
|
+
height: number;
|
|
25
|
+
constructor(http: _HttpClient, elementRef: ElementRef, renderer: Renderer2, utilService: DeonFormUtilService, deonFormBuilder: FormlyFormBuilder, globalSrv: GramGlobalService, msg: NzMessageService, commAPISrv: CommAPIService, groupSrv: GroupService);
|
|
26
|
+
ngOnInit(): void;
|
|
27
|
+
ngOnChanges(changes: SimpleChanges): void;
|
|
28
|
+
getPageData(): void;
|
|
29
|
+
getPageConfigAfter(): void;
|
|
30
|
+
resize(): void;
|
|
31
|
+
resizeTable(): void;
|
|
32
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<EmpFormGroupComponent, never>;
|
|
33
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<EmpFormGroupComponent, "emp-group-default", never, { "config": { "alias": "config"; "required": false; }; }, {}, never, never, true, never>;
|
|
34
|
+
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
import * as i1 from "@angular/common";
|
|
3
|
+
import * as i2 from "./default/index";
|
|
4
|
+
import * as i3 from "./children/index";
|
|
5
|
+
export declare class EmpFormGroupModule {
|
|
6
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<EmpFormGroupModule, never>;
|
|
7
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<EmpFormGroupModule, never, [typeof i1.CommonModule, typeof i2.EmpFormGroupComponent, typeof i3.GroupChildrenComponent], [typeof i2.EmpFormGroupComponent]>;
|
|
8
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<EmpFormGroupModule>;
|
|
9
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
export declare class GroupService {
|
|
3
|
+
/**
|
|
4
|
+
* 外部传入的配置
|
|
5
|
+
*/
|
|
6
|
+
sourceConfig: any;
|
|
7
|
+
/**
|
|
8
|
+
* 头部配置 */
|
|
9
|
+
headerConfig: any;
|
|
10
|
+
groupForm: any;
|
|
11
|
+
groupData: any;
|
|
12
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<GroupService, never>;
|
|
13
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<GroupService>;
|
|
14
|
+
}
|
|
@@ -0,0 +1,114 @@
|
|
|
1
|
+
import * as i0 from '@angular/core';
|
|
2
|
+
import { Component, NgModule } from '@angular/core';
|
|
3
|
+
import * as i10 from '@angular/common';
|
|
4
|
+
import { CommonModule } from '@angular/common';
|
|
5
|
+
import * as i11 from '@angular/forms';
|
|
6
|
+
import { FormsModule, ReactiveFormsModule } from '@angular/forms';
|
|
7
|
+
import * as i4 from '@kre-form/core';
|
|
8
|
+
import { FormlyModule } from '@kre-form/core';
|
|
9
|
+
import { NzFormModule } from 'ng-zorro-antd/form';
|
|
10
|
+
import * as i12 from 'ng-zorro-antd/spin';
|
|
11
|
+
import { NzSpinModule } from 'ng-zorro-antd/spin';
|
|
12
|
+
import { NzButtonModule } from 'ng-zorro-antd/button';
|
|
13
|
+
import * as i13 from 'ng-zorro-antd/empty';
|
|
14
|
+
import { NzEmptyModule } from 'ng-zorro-antd/empty';
|
|
15
|
+
import { NzIconModule } from 'ng-zorro-antd/icon';
|
|
16
|
+
import * as i9 from '@ebuilding/base/shared.srv/commApi.service';
|
|
17
|
+
import { CommAPIService } from '@ebuilding/base/shared.srv/commApi.service';
|
|
18
|
+
import { GramDeonAntdModule } from '@ebuilding/biz-comm/type';
|
|
19
|
+
import { CardContentModule } from '@ebuilding/biz-comm/other/card';
|
|
20
|
+
import { ModuleAPI } from '@ebuilding/base/shared.var/shared.constant';
|
|
21
|
+
import { BasicDefaultService } from '@ebuilding/biz-form/service/basic.default';
|
|
22
|
+
import * as i1 from '@delon/theme';
|
|
23
|
+
import * as i2 from '@ebuilding/base/shared.srv/deon.util';
|
|
24
|
+
import * as i3 from '@ebuilding/base/shared.srv/deon2.util';
|
|
25
|
+
import * as i5 from '@ebuilding/base/shared.srv/global.event';
|
|
26
|
+
import * as i6 from 'ng-zorro-antd/message';
|
|
27
|
+
import * as i7 from 'ng-zorro-antd/modal';
|
|
28
|
+
import * as i8 from '@ebuilding/base/shared.srv/base-dialog.service';
|
|
29
|
+
|
|
30
|
+
class FormAdvancedMainComponent extends BasicDefaultService {
|
|
31
|
+
http;
|
|
32
|
+
utilService;
|
|
33
|
+
resetService;
|
|
34
|
+
deonFormBuilder;
|
|
35
|
+
globalSrv;
|
|
36
|
+
msg;
|
|
37
|
+
modal;
|
|
38
|
+
dialogService;
|
|
39
|
+
commAPISrv;
|
|
40
|
+
constructor(http, utilService, resetService, deonFormBuilder, globalSrv, msg, modal, dialogService, commAPISrv) {
|
|
41
|
+
super(http, utilService, resetService, deonFormBuilder, globalSrv, msg, modal, dialogService, commAPISrv);
|
|
42
|
+
this.http = http;
|
|
43
|
+
this.utilService = utilService;
|
|
44
|
+
this.resetService = resetService;
|
|
45
|
+
this.deonFormBuilder = deonFormBuilder;
|
|
46
|
+
this.globalSrv = globalSrv;
|
|
47
|
+
this.msg = msg;
|
|
48
|
+
this.modal = modal;
|
|
49
|
+
this.dialogService = dialogService;
|
|
50
|
+
this.commAPISrv = commAPISrv;
|
|
51
|
+
}
|
|
52
|
+
ngOnInit() {
|
|
53
|
+
this.loading = true;
|
|
54
|
+
this.getPageConfig();
|
|
55
|
+
}
|
|
56
|
+
getFromOtherData() {
|
|
57
|
+
return this.http.post(`${ModuleAPI.user}/user/form/getDesignField/${this.config.formId}`);
|
|
58
|
+
}
|
|
59
|
+
getModelData() {
|
|
60
|
+
if (this.model && this.otherData) {
|
|
61
|
+
let result = {};
|
|
62
|
+
for (let [key, value] of Object.entries(this.model)) {
|
|
63
|
+
if (this.otherData[key] && value) {
|
|
64
|
+
result[this.otherData[key]] = value;
|
|
65
|
+
}
|
|
66
|
+
}
|
|
67
|
+
return result;
|
|
68
|
+
}
|
|
69
|
+
return null;
|
|
70
|
+
}
|
|
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.FormlyForm, selector: "formly-form", inputs: ["form", "model", "fields", "options"], outputs: ["modelChange"] }, { kind: "ngmodule", type: CardContentModule }, { kind: "ngmodule", type: GramDeonAntdModule }] });
|
|
73
|
+
}
|
|
74
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: FormAdvancedMainComponent, decorators: [{
|
|
75
|
+
type: Component,
|
|
76
|
+
args: [{ selector: 'form-advanced-main', providers: [CommAPIService], imports: [
|
|
77
|
+
CommonModule,
|
|
78
|
+
FormsModule,
|
|
79
|
+
ReactiveFormsModule,
|
|
80
|
+
NzSpinModule,
|
|
81
|
+
NzEmptyModule,
|
|
82
|
+
NzIconModule,
|
|
83
|
+
FormsModule,
|
|
84
|
+
NzButtonModule,
|
|
85
|
+
NzFormModule,
|
|
86
|
+
FormlyModule,
|
|
87
|
+
CardContentModule,
|
|
88
|
+
GramDeonAntdModule
|
|
89
|
+
], 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"] }]
|
|
90
|
+
}], ctorParameters: () => [{ type: i1._HttpClient }, { type: i2.DeonFormUtilService }, { type: i3.DeonFormResetService }, { type: i4.FormlyFormBuilder }, { type: i5.GramGlobalService }, { type: i6.NzMessageService }, { type: i7.NzModalService }, { type: i8.GramBaseDialogService }, { type: i9.CommAPIService }] });
|
|
91
|
+
|
|
92
|
+
const components = [FormAdvancedMainComponent];
|
|
93
|
+
class FormAdvancedModule {
|
|
94
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: FormAdvancedModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
95
|
+
static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "19.2.15", ngImport: i0, type: FormAdvancedModule, imports: [CommonModule, FormAdvancedMainComponent], exports: [FormAdvancedMainComponent] });
|
|
96
|
+
static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: FormAdvancedModule, imports: [CommonModule, components] });
|
|
97
|
+
}
|
|
98
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: FormAdvancedModule, decorators: [{
|
|
99
|
+
type: NgModule,
|
|
100
|
+
args: [{
|
|
101
|
+
imports: [
|
|
102
|
+
CommonModule,
|
|
103
|
+
...components
|
|
104
|
+
],
|
|
105
|
+
exports: [...components],
|
|
106
|
+
}]
|
|
107
|
+
}] });
|
|
108
|
+
|
|
109
|
+
/**
|
|
110
|
+
* Generated bundle index. Do not edit.
|
|
111
|
+
*/
|
|
112
|
+
|
|
113
|
+
export { FormAdvancedMainComponent, FormAdvancedModule };
|
|
114
|
+
//# sourceMappingURL=advanced.mjs.map
|
|
@@ -0,0 +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 '@kre-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,IAAA,SAAA;AACA,IAAA,GAAA;AACA,IAAA,KAAA;AACA,IAAA,aAAA;AACA,IAAA,UAAA;AATlB,IAAA,WAAA,CACkB,IAAiB,EACjB,WAAgC,EAChC,YAAkC,EAClC,eAAkC,EAClC,SAA4B,EAC5B,GAAqB,EACrB,KAAqB,EACrB,aAAoC,EACpC,UAA0B,EAAA;AAE1C,QAAA,KAAK,CAAC,IAAI,EAAE,WAAW,EAAE,YAAY,EAAE,eAAe,EAAE,SAAS,EAAE,GAAG,EAAE,KAAK,EAAE,aAAa,EAAE,UAAU,CAAC;QAVzF,IAAI,CAAA,IAAA,GAAJ,IAAI;QACJ,IAAW,CAAA,WAAA,GAAX,WAAW;QACX,IAAY,CAAA,YAAA,GAAZ,YAAY;QACZ,IAAe,CAAA,eAAA,GAAf,eAAe;QACf,IAAS,CAAA,SAAA,GAAT,SAAS;QACT,IAAG,CAAA,GAAA,GAAH,GAAG;QACH,IAAK,CAAA,KAAA,GAAL,KAAK;QACL,IAAa,CAAA,aAAA,GAAb,aAAa;QACb,IAAU,CAAA,UAAA,GAAV,UAAU;;IAK5B,QAAQ,GAAA;AACN,QAAA,IAAI,CAAC,OAAO,GAAG,IAAI;QACnB,IAAI,CAAC,aAAa,EAAE;;IAGb,gBAAgB,GAAA;A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