@ebuilding/biz-form 2.1.15 → 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.
Files changed (63) hide show
  1. package/advanced/src/main/index.d.ts +1 -1
  2. package/basic/src/basic.d.ts +1 -1
  3. package/basic/src/basic.drawer.d.ts +1 -1
  4. package/basic/src/default/index.d.ts +1 -1
  5. package/basic/src/main/index.d.ts +1 -1
  6. package/custom/src/default/index.d.ts +1 -1
  7. package/custom/src/main/index.d.ts +1 -1
  8. package/design/src/default/index.d.ts +1 -1
  9. package/empInfo/src/children/index.d.ts +1 -1
  10. package/empInfo/src/default/index.d.ts +1 -1
  11. package/fesm2022/advanced.mjs +3 -3
  12. package/fesm2022/advanced.mjs.map +1 -1
  13. package/fesm2022/basic.mjs +4 -4
  14. package/fesm2022/basic.mjs.map +1 -1
  15. package/fesm2022/custom.mjs +4 -4
  16. package/fesm2022/custom.mjs.map +1 -1
  17. package/fesm2022/design.mjs +3 -3
  18. package/fesm2022/design.mjs.map +1 -1
  19. package/fesm2022/empInfo.mjs +4 -4
  20. package/fesm2022/empInfo.mjs.map +1 -1
  21. package/fesm2022/history.mjs +1 -1
  22. package/fesm2022/history.mjs.map +1 -1
  23. package/fesm2022/page.mjs +3 -3
  24. package/fesm2022/page.mjs.map +1 -1
  25. package/fesm2022/preview.mjs +4 -4
  26. package/fesm2022/preview.mjs.map +1 -1
  27. package/fesm2022/service.mjs +1 -1
  28. package/fesm2022/service.mjs.map +1 -1
  29. package/fesm2022/srv.basic.default.mjs +1 -1
  30. package/fesm2022/srv.basic.default.mjs.map +1 -1
  31. package/fesm2022/srv.basic.drawer.mjs +1 -1
  32. package/fesm2022/srv.basic.drawer.mjs.map +1 -1
  33. package/fesm2022/srv.basic.flow.mjs +1 -1
  34. package/fesm2022/srv.basic.flow.mjs.map +1 -1
  35. package/fesm2022/srv.basic.mjs +1 -1
  36. package/fesm2022/srv.basic.mjs.map +1 -1
  37. package/fesm2022/srv.default.service.mjs +1 -1
  38. package/fesm2022/srv.default.service.mjs.map +1 -1
  39. package/fesm2022/srv.form.default.service.mjs +1 -1
  40. package/fesm2022/srv.form.default.service.mjs.map +1 -1
  41. package/fesm2022/srv.form.service.mjs +1 -1
  42. package/fesm2022/srv.form.service.mjs.map +1 -1
  43. package/fesm2022/srv.form.workflow.mjs +1 -1
  44. package/fesm2022/srv.form.workflow.mjs.map +1 -1
  45. package/fesm2022/srv.form2.service.mjs +1 -1
  46. package/fesm2022/srv.form2.service.mjs.map +1 -1
  47. package/fesm2022/srv.formGroup.service.mjs +1 -1
  48. package/fesm2022/srv.formGroup.service.mjs.map +1 -1
  49. package/history/src/default/index.d.ts +1 -1
  50. package/package.json +23 -23
  51. package/page/src/default/index.d.ts +1 -1
  52. package/preview/src/default/index.d.ts +1 -1
  53. package/preview/src/main/index.d.ts +1 -1
  54. package/service/basic/index.d.ts +1 -1
  55. package/service/basic.default/index.d.ts +1 -1
  56. package/service/basic.drawer/index.d.ts +1 -1
  57. package/service/basic.flow/index.d.ts +1 -1
  58. package/service/default.service/index.d.ts +1 -1
  59. package/service/form.default.service/index.d.ts +1 -1
  60. package/service/form.service/index.d.ts +1 -1
  61. package/service/form.workflow/index.d.ts +1 -1
  62. package/service/form2.service/index.d.ts +1 -1
  63. package/service/formGroup.service/index.d.ts +1 -1
@@ -1 +1 @@
1
- {"version":3,"file":"custom.mjs","sources":["../../../../packages/biz-form/custom/src/default/index.ts","../../../../packages/biz-form/custom/src/default/index.html","../../../../packages/biz-form/custom/src/main/index.ts","../../../../packages/biz-form/custom/src/main/index.html","../../../../packages/biz-form/custom/src/index.module.ts","../../../../packages/biz-form/custom/custom.ts"],"sourcesContent":["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 { FormlyModule, FormlyFormBuilder } from '@kre-form/core';\r\nimport { NzMessageService } from 'ng-zorro-antd/message';\r\nimport { NzModalService } from 'ng-zorro-antd/modal';\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 { 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 { NzDrawerRef } from '@ebuilding/base/components/drawer';\r\nimport { CardContentModule } from '@ebuilding/biz-comm/other/card';\r\nimport { GramDeonAntdModule } from '@ebuilding/biz-comm/type';\r\nimport { BasicDrawerService } from '@ebuilding/biz-form/service/basic.drawer';\r\n\r\n@Component({\r\n selector: 'form-custom',\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 CardContentModule,\r\n FormlyModule,\r\n GramDeonAntdModule\r\n ]\r\n})\r\nexport class FormCustomComponent extends BasicDrawerService implements OnInit, AfterContentChecked {\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 drawerRef: NzDrawerRef<any>,\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, drawerRef, dialogService, commAPISrv);\r\n }\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","<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-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\">本条数据为待生效,请谨慎操作</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>","import { 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 { BasicDefaultService } from '@ebuilding/biz-form/service/basic.default';\r\n\r\n@Component({\r\n selector: 'form-custom-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 FormCustomMainComponent 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","<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-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>","import { NgModule } from '@angular/core';\r\nimport { CommonModule } from '@angular/common';\r\nimport { FormCustomComponent } from './default/index';\r\nimport { FormCustomMainComponent } from './main/index';\r\n\r\nconst components: any[] = [FormCustomComponent, FormCustomMainComponent];\r\n@NgModule({\r\n imports: [\r\n CommonModule,\r\n ...components\r\n ],\r\n exports: [...components],\r\n})\r\nexport class FormCustomModule { }\r\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":["i6","i7","i8","i9","i10","i11","i12","i13","i14","i18"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA2CM,MAAO,mBAAoB,SAAQ,kBAAkB,CAAA;AAEvC,IAAA,IAAA;AACA,IAAA,WAAA;AACA,IAAA,YAAA;AACA,IAAA,eAAA;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AGT,uBAAuB,EAAA,UAAA,EAAA,CAAA;kBApBnC,SAAS;AACE,YAAA,IAAA,EAAA,CAAA,EAAA,QAAA,EAAA,kBAAkB,EAGjB,SAAA,EAAA,CAAC,cAAc,CAAC,EAClB,OAAA,EAAA;wBACP,YAAY;wBACZ,WAAW;wBACX,mBAAmB;wBACnB,YAAY;wBACZ,aAAa;wBACb,YAAY;wBACZ,WAAW;wBACX,cAAc;wBACd,YAAY;wBACZ,YAAY;wBACZ,iBAAiB;wBACjB;AACD,qBAAA,EAAA,QAAA,EAAA,y8CAAA,EAAA,MAAA,EAAA,CAAA,sNAAA,CAAA,EAAA;;;AEpCH,MAAM,UAAU,GAAU,CAAC,mBAAmB,EAAE,uBAAuB,CAAC;MAQ3D,gBAAgB,CAAA;wGAAhB,gBAAgB,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,QAAA,EAAA,CAAA;yGAAhB,gBAAgB,EAAA,OAAA,EAAA,CALzB,YAAY,EAHW,mBAAmB,EAAE,uBAAuB,CAAA,EAAA,OAAA,EAAA,CAA5C,mBAAmB,EAAE,uBAAuB,CAAA,EAAA,CAAA;yGAQ1D,gBAAgB,EAAA,OAAA,EAAA,CALzB,YAAY,EACT,UAAU,CAAA,EAAA,CAAA;;4FAIJ,gBAAgB,EAAA,UAAA,EAAA,CAAA;kBAP5B,QAAQ;AAAC,YAAA,IAAA,EAAA,CAAA;AACR,oBAAA,OAAO,EAAE;wBACP,YAAY;AACZ,wBAAA,GAAG;AACJ,qBAAA;AACD,oBAAA,OAAO,EAAE,CAAC,GAAG,UAAU,CAAC;AACzB,iBAAA;;;ACZD;;AAEG;;;;"}
1
+ {"version":3,"file":"custom.mjs","sources":["../../../../packages/biz-form/custom/src/default/index.ts","../../../../packages/biz-form/custom/src/default/index.html","../../../../packages/biz-form/custom/src/main/index.ts","../../../../packages/biz-form/custom/src/main/index.html","../../../../packages/biz-form/custom/src/index.module.ts","../../../../packages/biz-form/custom/custom.ts"],"sourcesContent":["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 { FormlyModule, FormlyFormBuilder } from '@ebuilding-form/core';\r\nimport { NzMessageService } from 'ng-zorro-antd/message';\r\nimport { NzModalService } from 'ng-zorro-antd/modal';\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 { 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 { NzDrawerRef } from '@ebuilding/base/components/drawer';\r\nimport { CardContentModule } from '@ebuilding/biz-comm/other/card';\r\nimport { GramDeonAntdModule } from '@ebuilding/biz-comm/type';\r\nimport { BasicDrawerService } from '@ebuilding/biz-form/service/basic.drawer';\r\n\r\n@Component({\r\n selector: 'form-custom',\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 CardContentModule,\r\n FormlyModule,\r\n GramDeonAntdModule\r\n ]\r\n})\r\nexport class FormCustomComponent extends BasicDrawerService implements OnInit, AfterContentChecked {\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 drawerRef: NzDrawerRef<any>,\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, drawerRef, dialogService, commAPISrv);\r\n }\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","<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-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\">本条数据为待生效,请谨慎操作</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>","import { 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 { BasicDefaultService } from '@ebuilding/biz-form/service/basic.default';\r\n\r\n@Component({\r\n selector: 'form-custom-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 FormCustomMainComponent 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","<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-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>","import { NgModule } from '@angular/core';\r\nimport { CommonModule } from '@angular/common';\r\nimport { FormCustomComponent } from './default/index';\r\nimport { FormCustomMainComponent } from './main/index';\r\n\r\nconst components: any[] = [FormCustomComponent, FormCustomMainComponent];\r\n@NgModule({\r\n imports: [\r\n CommonModule,\r\n ...components\r\n ],\r\n exports: [...components],\r\n})\r\nexport class FormCustomModule { }\r\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n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AuB,EAAA,UAAA,EAAA,CAAA;kBApBnC,SAAS;AACE,YAAA,IAAA,EAAA,CAAA,EAAA,QAAA,EAAA,kBAAkB,EAGjB,SAAA,EAAA,CAAC,cAAc,CAAC,EAClB,OAAA,EAAA;wBACP,YAAY;wBACZ,WAAW;wBACX,mBAAmB;wBACnB,YAAY;wBACZ,aAAa;wBACb,YAAY;wBACZ,WAAW;wBACX,cAAc;wBACd,YAAY;wBACZ,YAAY;wBACZ,iBAAiB;wBACjB;AACD,qBAAA,EAAA,QAAA,EAAA,y8CAAA,EAAA,MAAA,EAAA,CAAA,sNAAA,CAAA,EAAA;;;AEpCH,MAAM,UAAU,GAAU,CAAC,mBAAmB,EAAE,uBAAuB,CAAC;MAQ3D,gBAAgB,CAAA;wGAAhB,gBAAgB,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,QAAA,EAAA,CAAA;yGAAhB,gBAAgB,EAAA,OAAA,EAAA,CALzB,YAAY,EAHW,mBAAmB,EAAE,uBAAuB,CAAA,EAAA,OAAA,EAAA,CAA5C,mBAAmB,EAAE,uBAAuB,CAAA,EAAA,CAAA;yGAQ1D,gBAAgB,EAAA,OAAA,EAAA,CALzB,YAAY,EACT,UAAU,CAAA,EAAA,CAAA;;4FAIJ,gBAAgB,EAAA,UAAA,EAAA,CAAA;kBAP5B,QAAQ;AAAC,YAAA,IAAA,EAAA,CAAA;AACR,oBAAA,OAAO,EAAE;wBACP,YAAY;AACZ,wBAAA,GAAG;AACJ,qBAAA;AACD,oBAAA,OAAO,EAAE,CAAC,GAAG,UAAU,CAAC;AACzB,iBAAA;;;ACZD;;AAEG;;;;"}
@@ -4,8 +4,8 @@ import * as i7 from '@angular/common';
4
4
  import { CommonModule } from '@angular/common';
5
5
  import * as i8 from '@angular/forms';
6
6
  import { FormsModule, ReactiveFormsModule } from '@angular/forms';
7
- import * as i3 from '@kre-form/core';
8
- import { FormlyModule } from '@kre-form/core';
7
+ import * as i3 from '@ebuilding-form/core';
8
+ import { FormlyModule } from '@ebuilding-form/core';
9
9
  import * as i9 from 'ng-zorro-antd/spin';
10
10
  import { NzSpinModule } from 'ng-zorro-antd/spin';
11
11
  import * as i10 from 'ng-zorro-antd/empty';
@@ -70,7 +70,7 @@ class FormDesignComponent extends FormBasicService {
70
70
  return this.http.post(`/${apiName}`);
71
71
  }
72
72
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: FormDesignComponent, deps: [{ token: i1._HttpClient }, { token: i2.DeonFormUtilService }, { token: i3.FormlyFormBuilder }, { token: i4.GramGlobalService }, { token: i5.NzDrawerRef }, { token: i6.NzMessageService }, { token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Component });
73
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.15", type: FormDesignComponent, isStandalone: true, selector: "form-design", 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\">\r\n <ng-container *ngIf=\"type!='view'\">\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 </ng-container>\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: i7.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "ngmodule", type: FormsModule }, { kind: "directive", type: i8.ɵNgNoValidate, selector: "form:not([ngNoForm]):not([ngNativeValidate])" }, { kind: "directive", type: i8.NgControlStatusGroup, selector: "[formGroupName],[formArrayName],[ngModelGroup],[formGroup],form:not([ngNoForm]),[ngForm]" }, { kind: "ngmodule", type: ReactiveFormsModule }, { kind: "directive", type: i8.FormGroupDirective, selector: "[formGroup]", inputs: ["formGroup"], outputs: ["ngSubmit"], exportAs: ["ngForm"] }, { kind: "ngmodule", type: NzSpinModule }, { kind: "component", type: i9.NzSpinComponent, selector: "nz-spin", inputs: ["nzIndicator", "nzSize", "nzTip", "nzDelay", "nzSimple", "nzSpinning"], exportAs: ["nzSpin"] }, { kind: "ngmodule", type: NzEmptyModule }, { kind: "component", type: i10.NzEmptyComponent, selector: "nz-empty", inputs: ["nzNotFoundImage", "nzNotFoundContent", "nzNotFoundFooter"], exportAs: ["nzEmpty"] }, { kind: "ngmodule", type: NzButtonModule }, { kind: "component", type: i11.NzButtonComponent, selector: "button[nz-button], a[nz-button]", inputs: ["nzBlock", "nzGhost", "nzSearch", "nzLoading", "nzDanger", "disabled", "tabIndex", "nzType", "nzShape", "nzSize"], exportAs: ["nzButton"] }, { kind: "directive", type: i12.ɵ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: i13.NzWaveDirective, selector: "[nz-wave],button[nz-button]:not([nzType=\"link\"]):not([nzType=\"text\"])", inputs: ["nzWaveExtraNode"], exportAs: ["nzWave"] }, { kind: "ngmodule", type: FormlyModule }, { kind: "component", type: i3.FormlyForm, selector: "formly-form", inputs: ["form", "model", "fields", "options"], outputs: ["modelChange"] }, { kind: "ngmodule", type: GramDeonAntdModule }] });
73
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.15", type: FormDesignComponent, isStandalone: true, selector: "form-design", 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\">\r\n <ng-container *ngIf=\"type!='view'\">\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 </ng-container>\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: i7.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "ngmodule", type: FormsModule }, { kind: "directive", type: i8.ɵNgNoValidate, selector: "form:not([ngNoForm]):not([ngNativeValidate])" }, { kind: "directive", type: i8.NgControlStatusGroup, selector: "[formGroupName],[formArrayName],[ngModelGroup],[formGroup],form:not([ngNoForm]),[ngForm]" }, { kind: "ngmodule", type: ReactiveFormsModule }, { kind: "directive", type: i8.FormGroupDirective, selector: "[formGroup]", inputs: ["formGroup"], outputs: ["ngSubmit"], exportAs: ["ngForm"] }, { kind: "ngmodule", type: NzSpinModule }, { kind: "component", type: i9.NzSpinComponent, selector: "nz-spin", inputs: ["nzIndicator", "nzSize", "nzTip", "nzDelay", "nzSimple", "nzSpinning"], exportAs: ["nzSpin"] }, { kind: "ngmodule", type: NzEmptyModule }, { kind: "component", type: i10.NzEmptyComponent, selector: "nz-empty", inputs: ["nzNotFoundImage", "nzNotFoundContent", "nzNotFoundFooter"], exportAs: ["nzEmpty"] }, { kind: "ngmodule", type: NzButtonModule }, { kind: "component", type: i11.NzButtonComponent, selector: "button[nz-button], a[nz-button]", inputs: ["nzBlock", "nzGhost", "nzSearch", "nzLoading", "nzDanger", "disabled", "tabIndex", "nzType", "nzShape", "nzSize"], exportAs: ["nzButton"] }, { kind: "directive", type: i12.ɵ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: i13.NzWaveDirective, selector: "[nz-wave],button[nz-button]:not([nzType=\"link\"]):not([nzType=\"text\"])", inputs: ["nzWaveExtraNode"], exportAs: ["nzWave"] }, { kind: "ngmodule", type: FormlyModule }, { kind: "component", type: i3.LegacyFormlyForm, selector: "formly-form" }, { kind: "ngmodule", type: GramDeonAntdModule }] });
74
74
  }
75
75
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: FormDesignComponent, decorators: [{
76
76
  type: Component,
@@ -1 +1 @@
1
- {"version":3,"file":"design.mjs","sources":["../../../../packages/biz-form/design/src/default/index.ts","../../../../packages/biz-form/design/src/default/index.html","../../../../packages/biz-form/design/src/index.module.ts","../../../../packages/biz-form/design/design.ts"],"sourcesContent":["import { Component, OnInit, ChangeDetectorRef, AfterContentChecked } 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, FormlyFieldConfig, FormlyFormBuilder } from '@kre-form/core';\r\nimport { NzMessageService } from 'ng-zorro-antd/message';\r\nimport { NzSpinModule } from 'ng-zorro-antd/spin';\r\nimport { NzEmptyModule } from 'ng-zorro-antd/empty';\r\nimport { NzButtonModule } from 'ng-zorro-antd/button';\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 { GramDeonAntdModule } from '@ebuilding/biz-comm/type';\r\nimport { FormBasicService } from '@ebuilding/biz-form/service/default.service';\r\n\r\nimport { forkJoin, of } from 'rxjs';\r\n\r\n@Component({\r\n selector: 'form-design',\r\n styleUrls: ['./index.less'],\r\n templateUrl: './index.html',\r\n imports: [\r\n CommonModule,\r\n FormsModule,\r\n ReactiveFormsModule,\r\n NzSpinModule,\r\n NzEmptyModule,\r\n FormsModule,\r\n NzButtonModule,\r\n FormlyModule,\r\n GramDeonAntdModule\r\n ]\r\n})\r\nexport class FormDesignComponent extends FormBasicService 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 private changeDetector: ChangeDetectorRef,\r\n ) {\r\n super(http, utilService, deonFormBuilder, globalSrv, msg, drawerRef);\r\n }\r\n\r\n ngOnInit() {\r\n this.loading = true;\r\n this.getFieldConfig();\r\n }\r\n\r\n ngAfterContentChecked(): void {\r\n // this.changeDetector.detectChanges();\r\n }\r\n\r\n getFieldConfig() {\r\n forkJoin([this.getFormDefaultField()]).subscribe((res: any) => {\r\n this.model = {};\r\n //传入的值\r\n if (this.formModel != null && Object.keys(this.formModel).length > 0) {\r\n this.model = Object.assign(this.model, this.formModel);\r\n }\r\n let fieldConfigs: FormlyFieldConfig[] = JSON.parse(res[0].data.json);\r\n\r\n this.fields = fieldConfigs;\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\r\n override getFormDefaultField() {\r\n let apiName = `apaas/form/getById/${this.id}`;\r\n return this.http.post(`/${apiName}`);\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\">\r\n <ng-container *ngIf=\"type!='view'\">\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 </ng-container>\r\n </div>\r\n </nz-spin>\r\n</form>","import { NgModule } from '@angular/core';\r\nimport { CommonModule } from '@angular/common';\r\nimport { FormDesignComponent } from './default/index';\r\n\r\nconst components: any[] = [FormDesignComponent];\r\n@NgModule({\r\n imports: [CommonModule, ...components],\r\n exports: [...components],\r\n})\r\nexport class FormDesignModule { }\r\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;AAkCM,MAAO,mBAAoB,SAAQ,gBAAgB,CAAA;AAErC,IAAA,IAAA;AACA,IAAA,WAAA;AACA,IAAA,eAAA;AACA,IAAA,SAAA;AACA,IAAA,SAAA;AACA,IAAA,GAAA;AACR,IAAA,cAAA;AAPV,IAAA,WAAA,CACkB,IAAiB,EACjB,WAAgC,EAChC,eAAkC,EAClC,SAA4B,EAC5B,SAA2B,EAC3B,GAAqB,EAC7B,cAAiC,EAAA;AAEzC,QAAA,KAAK,CAAC,IAAI,EAAE,WAAW,EAAE,eAAe,EAAE,SAAS,EAAE,GAAG,EAAE,SAAS,CAAC;QARpD,IAAI,CAAA,IAAA,GAAJ,IAAI;QACJ,IAAW,CAAA,WAAA,GAAX,WAAW;QACX,IAAe,CAAA,eAAA,GAAf,eAAe;QACf,IAAS,CAAA,SAAA,GAAT,SAAS;QACT,IAAS,CAAA,SAAA,GAAT,SAAS;QACT,IAAG,CAAA,GAAA,GAAH,GAAG;QACX,IAAc,CAAA,cAAA,GAAd,cAAc;;IAKxB,QAAQ,GAAA;AACN,QAAA,IAAI,CAAC,OAAO,GAAG,IAAI;QACnB,IAAI,CAAC,cAAc,EAAE;;IAGvB,qBAAqB,GAAA;;;IAIrB,cAAc,GAAA;AACZ,QAAA,QAAQ,CAAC,CAAC,IAAI,CAAC,mBAAmB,EAAE,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,GAAQ,KAAI;AAC5D,YAAA,IAAI,CAAC,KAAK,GAAG,EAAE;;AAEf,YAAA,IAAI,IAAI,CAAC,SAAS,IAAI,IAAI,IAAI,MAAM,CAAC,IAAI,CAAC,IAAI,CAAC,SAAS,CAAC,CAAC,MAAM,GAAG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EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,SAAA,EAAA,QAAA,EAAA,EAAA,EAAA,IAAA,EAAA,gBAAgB,EAHjB,OAAA,EAAA,CAAA,YAAY,EAFG,mBAAmB,aAAnB,mBAAmB,CAAA,EAAA,CAAA;yGAKjC,gBAAgB,EAAA,OAAA,EAAA,CAHjB,YAAY,EAAK,UAAU,CAAA,EAAA,CAAA;;4FAG1B,gBAAgB,EAAA,UAAA,EAAA,CAAA;kBAJ5B,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;;;ACRD;;AAEG;;;;"}
1
+ {"version":3,"file":"design.mjs","sources":["../../../../packages/biz-form/design/src/default/index.ts","../../../../packages/biz-form/design/src/default/index.html","../../../../packages/biz-form/design/src/index.module.ts","../../../../packages/biz-form/design/design.ts"],"sourcesContent":["import { Component, OnInit, ChangeDetectorRef, AfterContentChecked } 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, FormlyFieldConfig, FormlyFormBuilder } from '@ebuilding-form/core';\r\nimport { NzMessageService } from 'ng-zorro-antd/message';\r\nimport { NzSpinModule } from 'ng-zorro-antd/spin';\r\nimport { NzEmptyModule } from 'ng-zorro-antd/empty';\r\nimport { NzButtonModule } from 'ng-zorro-antd/button';\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 { GramDeonAntdModule } from '@ebuilding/biz-comm/type';\r\nimport { FormBasicService } from '@ebuilding/biz-form/service/default.service';\r\n\r\nimport { forkJoin, of } from 'rxjs';\r\n\r\n@Component({\r\n selector: 'form-design',\r\n styleUrls: ['./index.less'],\r\n templateUrl: './index.html',\r\n imports: [\r\n CommonModule,\r\n FormsModule,\r\n ReactiveFormsModule,\r\n NzSpinModule,\r\n NzEmptyModule,\r\n FormsModule,\r\n NzButtonModule,\r\n FormlyModule,\r\n GramDeonAntdModule\r\n ]\r\n})\r\nexport class FormDesignComponent extends FormBasicService 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 private changeDetector: ChangeDetectorRef,\r\n ) {\r\n super(http, utilService, deonFormBuilder, globalSrv, msg, drawerRef);\r\n }\r\n\r\n ngOnInit() {\r\n this.loading = true;\r\n this.getFieldConfig();\r\n }\r\n\r\n ngAfterContentChecked(): void {\r\n // this.changeDetector.detectChanges();\r\n }\r\n\r\n getFieldConfig() {\r\n forkJoin([this.getFormDefaultField()]).subscribe((res: any) => {\r\n this.model = {};\r\n //传入的值\r\n if (this.formModel != null && Object.keys(this.formModel).length > 0) {\r\n this.model = Object.assign(this.model, this.formModel);\r\n }\r\n let fieldConfigs: FormlyFieldConfig[] = JSON.parse(res[0].data.json);\r\n\r\n this.fields = fieldConfigs;\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\r\n override getFormDefaultField() {\r\n let apiName = `apaas/form/getById/${this.id}`;\r\n return this.http.post(`/${apiName}`);\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\">\r\n <ng-container *ngIf=\"type!='view'\">\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 </ng-container>\r\n </div>\r\n </nz-spin>\r\n</form>","import { NgModule } from '@angular/core';\r\nimport { CommonModule } from '@angular/common';\r\nimport { FormDesignComponent } from './default/index';\r\n\r\nconst components: any[] = [FormDesignComponent];\r\n@NgModule({\r\n imports: [CommonModule, ...components],\r\n exports: [...components],\r\n})\r\nexport class FormDesignModule { }\r\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;AAkCM,MAAO,mBAAoB,SAAQ,gBAAgB,CAAA;AAErC,IAAA,IAAA;AACA,IAAA,WAAA;AACA,IAAA,eAAA;AACA,IAAA,SAAA;AACA,IAAA,SAAA;AACA,IAAA,GAAA;AACR,IAAA,cAAA;AAPV,IAAA,WAAA,CACkB,IAAiB,EACjB,WAAgC,EAChC,eAAkC,EAClC,SAA4B,EAC5B,SAA2B,EAC3B,GAAqB,EAC7B,cAAiC,EAAA;AAEzC,QAAA,KAAK,CAAC,IAAI,EAAE,WAAW,EAAE,eAAe,EAAE,SAAS,EAAE,GAAG,EAAE,SAAS,CAAC;QARpD,IAAI,CAAA,IAAA,GAAJ,IAAI;QACJ,IAAW,CAAA,WAAA,GAAX,WAAW;QACX,IAAe,CAAA,eAAA,GAAf,eAAe;QACf,IA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T,mBAAmB,EAAA,UAAA,EAAA,CAAA;kBAhB/B,SAAS;AACE,YAAA,IAAA,EAAA,CAAA,EAAA,QAAA,EAAA,aAAa,EAGd,OAAA,EAAA;wBACP,YAAY;wBACZ,WAAW;wBACX,mBAAmB;wBACnB,YAAY;wBACZ,aAAa;wBACb,WAAW;wBACX,cAAc;wBACd,YAAY;wBACZ;AACD,qBAAA,EAAA,QAAA,EAAA,ukCAAA,EAAA,MAAA,EAAA,CAAA,6IAAA,CAAA,EAAA;;;AE5BH,MAAM,UAAU,GAAU,CAAC,mBAAmB,CAAC;MAKlC,gBAAgB,CAAA;wGAAhB,gBAAgB,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,QAAA,EAAA,CAAA;AAAhB,IAAA,OAAA,IAAA,GAAA,EAAA,CAAA,mBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,SAAA,EAAA,QAAA,EAAA,EAAA,EAAA,IAAA,EAAA,gBAAgB,EAHjB,OAAA,EAAA,CAAA,YAAY,EAFG,mBAAmB,aAAnB,mBAAmB,CAAA,EAAA,CAAA;yGAKjC,gBAAgB,EAAA,OAAA,EAAA,CAHjB,YAAY,EAAK,UAAU,CAAA,EAAA,CAAA;;4FAG1B,gBAAgB,EAAA,UAAA,EAAA,CAAA;kBAJ5B,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;;;ACRD;;AAEG;;;;"}
@@ -4,8 +4,8 @@ import * as i8 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 i3 from '@kre-form/core';
8
- import { FormlyModule } from '@kre-form/core';
7
+ import * as i3 from '@ebuilding-form/core';
8
+ import { FormlyModule } from '@ebuilding-form/core';
9
9
  import * as i9 from 'ng-zorro-antd/spin';
10
10
  import { NzSpinModule } from 'ng-zorro-antd/spin';
11
11
  import * as i10 from 'ng-zorro-antd/empty';
@@ -117,7 +117,7 @@ class GroupChildrenComponent extends FormGroupBasicService {
117
117
  });
118
118
  }
119
119
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: GroupChildrenComponent, deps: [{ token: i1._HttpClient }, { token: i2.DeonFormUtilService }, { token: i3.FormlyFormBuilder }, { token: i4.GramGlobalService }, { token: i5.NzMessageService }, { token: i6.CommAPIService }, { token: GroupService }], target: i0.ɵɵFactoryTarget.Component });
120
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.15", type: GroupChildrenComponent, isStandalone: true, selector: "group-children", inputs: { formInfo: "formInfo", height: "height" }, usesInheritance: true, usesOnChanges: true, ngImport: i0, template: "<nz-spin [nzSpinning]=\"loading\" nzTip=\"\u62FC\u547D\u52A0\u8F7D\u4E2D...\" class=\"deon-list-spin\">\r\n <ng-container *ngIf=\"pageConfig!!\">\r\n <form [formGroup]=\"form\" (ngSubmit)=\"save()\" #defaultForm>\r\n <div class=\"deon-from\" [ngStyle]=\"{'height':height-68+'px'}\">\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=\"pageConfig.type!='VIEW' && pageConfig.type!='PREVIEW'\">\r\n <button nz-button nzType=\"default\" (click)=\"btnClose()\" type=\"button\"><i nz-icon nzType=\"reload\"></i>\u91CD\u7F6E</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 </form>\r\n </ng-container>\r\n</nz-spin>", 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: "directive", type: i8.NgStyle, selector: "[ngStyle]", inputs: ["ngStyle"] }, { kind: "ngmodule", type: NzSpinModule }, { kind: "component", type: i9.NzSpinComponent, selector: "nz-spin", inputs: ["nzIndicator", "nzSize", "nzTip", "nzDelay", "nzSimple", "nzSpinning"], exportAs: ["nzSpin"] }, { kind: "ngmodule", type: NzEmptyModule }, { kind: "component", type: i10.NzEmptyComponent, selector: "nz-empty", inputs: ["nzNotFoundImage", "nzNotFoundContent", "nzNotFoundFooter"], exportAs: ["nzEmpty"] }, { kind: "ngmodule", type: FormlyModule }, { kind: "component", type: i3.FormlyForm, selector: "formly-form", inputs: ["form", "model", "fields", "options"], outputs: ["modelChange"] }, { 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: 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: NzIconModule }, { kind: "directive", type: i15.NzIconDirective, selector: "nz-icon,[nz-icon]", inputs: ["nzSpin", "nzRotate", "nzType", "nzTheme", "nzTwotoneColor", "nzIconfont"], exportAs: ["nzIcon"] }, { kind: "ngmodule", type: NzFormModule }, { kind: "ngmodule", type: GramDeonAntdModule }] });
120
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.15", type: GroupChildrenComponent, isStandalone: true, selector: "group-children", inputs: { formInfo: "formInfo", height: "height" }, usesInheritance: true, usesOnChanges: true, ngImport: i0, template: "<nz-spin [nzSpinning]=\"loading\" nzTip=\"\u62FC\u547D\u52A0\u8F7D\u4E2D...\" class=\"deon-list-spin\">\r\n <ng-container *ngIf=\"pageConfig!!\">\r\n <form [formGroup]=\"form\" (ngSubmit)=\"save()\" #defaultForm>\r\n <div class=\"deon-from\" [ngStyle]=\"{'height':height-68+'px'}\">\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=\"pageConfig.type!='VIEW' && pageConfig.type!='PREVIEW'\">\r\n <button nz-button nzType=\"default\" (click)=\"btnClose()\" type=\"button\"><i nz-icon nzType=\"reload\"></i>\u91CD\u7F6E</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 </form>\r\n </ng-container>\r\n</nz-spin>", 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: "directive", type: i8.NgStyle, selector: "[ngStyle]", inputs: ["ngStyle"] }, { kind: "ngmodule", type: NzSpinModule }, { kind: "component", type: i9.NzSpinComponent, selector: "nz-spin", inputs: ["nzIndicator", "nzSize", "nzTip", "nzDelay", "nzSimple", "nzSpinning"], exportAs: ["nzSpin"] }, { kind: "ngmodule", type: NzEmptyModule }, { kind: "component", type: i10.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: 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: 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: NzIconModule }, { kind: "directive", type: i15.NzIconDirective, selector: "nz-icon,[nz-icon]", inputs: ["nzSpin", "nzRotate", "nzType", "nzTheme", "nzTwotoneColor", "nzIconfont"], exportAs: ["nzIcon"] }, { kind: "ngmodule", type: NzFormModule }, { kind: "ngmodule", type: GramDeonAntdModule }] });
121
121
  }
122
122
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: GroupChildrenComponent, decorators: [{
123
123
  type: Component,
@@ -225,7 +225,7 @@ class EmpFormGroupComponent extends FormGroupBasicService {
225
225
  }
226
226
  }
227
227
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: EmpFormGroupComponent, deps: [{ token: i1._HttpClient }, { token: i0.ElementRef }, { token: i0.Renderer2 }, { token: i2.DeonFormUtilService }, { token: i3.FormlyFormBuilder }, { token: i4.GramGlobalService }, { token: i5.NzMessageService }, { token: i6.CommAPIService }, { token: GroupService }], target: i0.ɵɵFactoryTarget.Component });
228
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.15", type: EmpFormGroupComponent, isStandalone: true, selector: "emp-group-default", inputs: { config: "config" }, host: { listeners: { "window:resize": "resize($event)" } }, providers: [CommAPIService, GroupService], usesInheritance: true, usesOnChanges: true, ngImport: i0, template: "<nz-spin [nzSpinning]=\"loading\" class=\"deon-list-spin\">\r\n <div class=\"basic\" *ngIf=\"this.groupSrv.groupData!! && this.groupSrv.groupData.basic!!\">\r\n <ng-container *ngIf=\"this.groupSrv.groupData.basic?.izHeader==true && this.groupSrv.headerConfig!!\">\r\n <div class=\"basic-info\">\r\n <card-main [defaultConfig]=\"this.groupSrv.headerConfig\" (pageLoadAfter)=\"resizeTable()\"></card-main>\r\n </div>\r\n </ng-container>\r\n <div class=\"basic-tabset\">\r\n <nz-tabset>\r\n <ng-container *ngFor=\"let item of groupSrv.groupData.listChildren;let i=index;\">\r\n <nz-tab [nzTitle]=\"item.formInfo.name\">\r\n <ng-template nz-tab>\r\n <ng-container *ngIf=\"i==0\">\r\n <div class=\"basic-form\" [ngStyle]=\"{'height':height+'px'}\">\r\n <form [formGroup]=\"form\" (ngSubmit)=\"save()\" #defaultForm>\r\n <div class=\"deon-from\" [ngStyle]=\"{'height':height-68+'px'}\">\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=\"pageConfig.type!='VIEW' && pageConfig.type!='PREVIEW'\">\r\n <button nz-button nzType=\"default\" (click)=\"btnClose()\" type=\"button\"><i nz-icon\r\n nzType=\"reload\"></i>\u91CD\u7F6E</button>\r\n <!-- <button nz-button nzType=\"primary\" id=\"DRAFT\" *ngIf=\"draft==true\"><i nz-icon\r\n 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 </form>\r\n </div>\r\n </ng-container>\r\n <ng-container *ngIf=\"i>0\">\r\n <group-children [formInfo]=\"item.formInfo\" [height]=\"height\"\r\n [ngStyle]=\"{'height':height+'px'}\"></group-children>\r\n </ng-container>\r\n </ng-template>\r\n </nz-tab>\r\n </ng-container>\r\n </nz-tabset>\r\n </div>\r\n </div>\r\n</nz-spin>", styles: [":host ::ng-deep{display:flex;flex:1;flex-direction:column;width:100%;height:100%}:host ::ng-deep .basic{display:flex;flex:1;flex-direction:column;width:100%;height:100%}:host ::ng-deep .basic-info{display:inline-block;display:flex;align-items:center;width:100%}:host ::ng-deep .basic-info ul{display:flex;flex-direction:row;align-items:center;margin:0;padding:0 20px;list-style:none}:host ::ng-deep .basic-info ul li{margin:0;padding:0 20px 0 0}:host ::ng-deep .basic-info ul li:nth-last-child(1){padding:0 0 0 130px}:host ::ng-deep .basic-info ul .name{height:35px;color:#262626;font-weight:600;font-size:20px;line-height:28px}:host ::ng-deep .basic-info ul .position{color:#262626;font-weight:400;font-size:14px;line-height:20px}:host ::ng-deep .basic-info ul .org,:host ::ng-deep .basic-info ul .code{color:#262626;font-weight:400;font-size:14px;line-height:20px;line-height:35px}:host ::ng-deep .basic-info ul .org i,:host ::ng-deep .basic-info ul .code i{margin-right:3px;color:#8c8c8c}:host ::ng-deep .basic-tabset{display:flex;flex:1;padding:8px 20px;overflow:auto}:host ::ng-deep .basic-tabset nz-tabset{width:100%}:host ::ng-deep .basic-tabset form{position:relative;flex:1}:host ::ng-deep .basic-tabset form .deon-from{padding:0;overflow:auto}:host ::ng-deep .basic-tabset form .deon-button{position:fixed;right:0;bottom:0;width:auto;line-height:68px;text-align:inherit}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i8.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i8.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i8.NgStyle, selector: "[ngStyle]", inputs: ["ngStyle"] }, { kind: "ngmodule", type: NzSpinModule }, { kind: "component", type: i9.NzSpinComponent, selector: "nz-spin", inputs: ["nzIndicator", "nzSize", "nzTip", "nzDelay", "nzSimple", "nzSpinning"], exportAs: ["nzSpin"] }, { kind: "ngmodule", type: NzEmptyModule }, { kind: "component", type: i10.NzEmptyComponent, selector: "nz-empty", inputs: ["nzNotFoundImage", "nzNotFoundContent", "nzNotFoundFooter"], exportAs: ["nzEmpty"] }, { kind: "ngmodule", type: FormlyModule }, { kind: "component", type: i3.FormlyForm, selector: "formly-form", inputs: ["form", "model", "fields", "options"], outputs: ["modelChange"] }, { 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: 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: NzIconModule }, { kind: "directive", type: i15.NzIconDirective, selector: "nz-icon,[nz-icon]", inputs: ["nzSpin", "nzRotate", "nzType", "nzTheme", "nzTwotoneColor", "nzIconfont"], exportAs: ["nzIcon"] }, { kind: "ngmodule", type: NzTabsModule }, { kind: "component", type: i16.NzTabSetComponent, selector: "nz-tabset", inputs: ["nzSelectedIndex", "nzTabPosition", "nzTabBarExtraContent", "nzCanDeactivate", "nzAddIcon", "nzTabBarStyle", "nzType", "nzSize", "nzAnimated", "nzTabBarGutter", "nzHideAdd", "nzCentered", "nzHideAll", "nzLinkRouter", "nzLinkExact", "nzDestroyInactiveTabPane"], outputs: ["nzSelectChange", "nzSelectedIndexChange", "nzTabListScroll", "nzClose", "nzAdd"], exportAs: ["nzTabset"] }, { kind: "component", type: i16.NzTabComponent, selector: "nz-tab", inputs: ["nzTitle", "nzClosable", "nzCloseIcon", "nzDisabled", "nzForceRender"], outputs: ["nzSelect", "nzDeselect", "nzClick", "nzContextmenu"], exportAs: ["nzTab"] }, { kind: "directive", type: i16.NzTabDirective, selector: "[nz-tab]", exportAs: ["nzTab"] }, { kind: "ngmodule", type: NzFormModule }, { kind: "ngmodule", type: CardContentModule }, { kind: "component", type: i17.CardMainComponent, selector: "card-main", inputs: ["dynamicConfig", "defaultConfig", "defaultData"], outputs: ["pageLoadAfter"] }, { kind: "component", type: GroupChildrenComponent, selector: "group-children", inputs: ["formInfo", "height"] }, { kind: "ngmodule", type: GramDeonAntdModule }] });
228
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.15", type: EmpFormGroupComponent, isStandalone: true, selector: "emp-group-default", inputs: { config: "config" }, host: { listeners: { "window:resize": "resize($event)" } }, providers: [CommAPIService, GroupService], usesInheritance: true, usesOnChanges: true, ngImport: i0, template: "<nz-spin [nzSpinning]=\"loading\" class=\"deon-list-spin\">\r\n <div class=\"basic\" *ngIf=\"this.groupSrv.groupData!! && this.groupSrv.groupData.basic!!\">\r\n <ng-container *ngIf=\"this.groupSrv.groupData.basic?.izHeader==true && this.groupSrv.headerConfig!!\">\r\n <div class=\"basic-info\">\r\n <card-main [defaultConfig]=\"this.groupSrv.headerConfig\" (pageLoadAfter)=\"resizeTable()\"></card-main>\r\n </div>\r\n </ng-container>\r\n <div class=\"basic-tabset\">\r\n <nz-tabset>\r\n <ng-container *ngFor=\"let item of groupSrv.groupData.listChildren;let i=index;\">\r\n <nz-tab [nzTitle]=\"item.formInfo.name\">\r\n <ng-template nz-tab>\r\n <ng-container *ngIf=\"i==0\">\r\n <div class=\"basic-form\" [ngStyle]=\"{'height':height+'px'}\">\r\n <form [formGroup]=\"form\" (ngSubmit)=\"save()\" #defaultForm>\r\n <div class=\"deon-from\" [ngStyle]=\"{'height':height-68+'px'}\">\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=\"pageConfig.type!='VIEW' && pageConfig.type!='PREVIEW'\">\r\n <button nz-button nzType=\"default\" (click)=\"btnClose()\" type=\"button\"><i nz-icon\r\n nzType=\"reload\"></i>\u91CD\u7F6E</button>\r\n <!-- <button nz-button nzType=\"primary\" id=\"DRAFT\" *ngIf=\"draft==true\"><i nz-icon\r\n 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 </form>\r\n </div>\r\n </ng-container>\r\n <ng-container *ngIf=\"i>0\">\r\n <group-children [formInfo]=\"item.formInfo\" [height]=\"height\"\r\n [ngStyle]=\"{'height':height+'px'}\"></group-children>\r\n </ng-container>\r\n </ng-template>\r\n </nz-tab>\r\n </ng-container>\r\n </nz-tabset>\r\n </div>\r\n </div>\r\n</nz-spin>", styles: [":host ::ng-deep{display:flex;flex:1;flex-direction:column;width:100%;height:100%}:host ::ng-deep .basic{display:flex;flex:1;flex-direction:column;width:100%;height:100%}:host ::ng-deep .basic-info{display:inline-block;display:flex;align-items:center;width:100%}:host ::ng-deep .basic-info ul{display:flex;flex-direction:row;align-items:center;margin:0;padding:0 20px;list-style:none}:host ::ng-deep .basic-info ul li{margin:0;padding:0 20px 0 0}:host ::ng-deep .basic-info ul li:nth-last-child(1){padding:0 0 0 130px}:host ::ng-deep .basic-info ul .name{height:35px;color:#262626;font-weight:600;font-size:20px;line-height:28px}:host ::ng-deep .basic-info ul .position{color:#262626;font-weight:400;font-size:14px;line-height:20px}:host ::ng-deep .basic-info ul .org,:host ::ng-deep .basic-info ul .code{color:#262626;font-weight:400;font-size:14px;line-height:20px;line-height:35px}:host ::ng-deep .basic-info ul .org i,:host ::ng-deep .basic-info ul .code i{margin-right:3px;color:#8c8c8c}:host ::ng-deep .basic-tabset{display:flex;flex:1;padding:8px 20px;overflow:auto}:host ::ng-deep .basic-tabset nz-tabset{width:100%}:host ::ng-deep .basic-tabset form{position:relative;flex:1}:host ::ng-deep .basic-tabset form .deon-from{padding:0;overflow:auto}:host ::ng-deep .basic-tabset form .deon-button{position:fixed;right:0;bottom:0;width:auto;line-height:68px;text-align:inherit}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i8.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i8.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i8.NgStyle, selector: "[ngStyle]", inputs: ["ngStyle"] }, { kind: "ngmodule", type: NzSpinModule }, { kind: "component", type: i9.NzSpinComponent, selector: "nz-spin", inputs: ["nzIndicator", "nzSize", "nzTip", "nzDelay", "nzSimple", "nzSpinning"], exportAs: ["nzSpin"] }, { kind: "ngmodule", type: NzEmptyModule }, { kind: "component", type: i10.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: 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: 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: NzIconModule }, { kind: "directive", type: i15.NzIconDirective, selector: "nz-icon,[nz-icon]", inputs: ["nzSpin", "nzRotate", "nzType", "nzTheme", "nzTwotoneColor", "nzIconfont"], exportAs: ["nzIcon"] }, { kind: "ngmodule", type: NzTabsModule }, { kind: "component", type: i16.NzTabSetComponent, selector: "nz-tabset", inputs: ["nzSelectedIndex", "nzTabPosition", "nzTabBarExtraContent", "nzCanDeactivate", "nzAddIcon", "nzTabBarStyle", "nzType", "nzSize", "nzAnimated", "nzTabBarGutter", "nzHideAdd", "nzCentered", "nzHideAll", "nzLinkRouter", "nzLinkExact", "nzDestroyInactiveTabPane"], outputs: ["nzSelectChange", "nzSelectedIndexChange", "nzTabListScroll", "nzClose", "nzAdd"], exportAs: ["nzTabset"] }, { kind: "component", type: i16.NzTabComponent, selector: "nz-tab", inputs: ["nzTitle", "nzClosable", "nzCloseIcon", "nzDisabled", "nzForceRender"], outputs: ["nzSelect", "nzDeselect", "nzClick", "nzContextmenu"], exportAs: ["nzTab"] }, { kind: "directive", type: i16.NzTabDirective, selector: "[nz-tab]", exportAs: ["nzTab"] }, { kind: "ngmodule", type: NzFormModule }, { kind: "ngmodule", type: CardContentModule }, { kind: "component", type: i17.CardMainComponent, selector: "card-main", inputs: ["dynamicConfig", "defaultConfig", "defaultData"], outputs: ["pageLoadAfter"] }, { kind: "component", type: GroupChildrenComponent, selector: "group-children", inputs: ["formInfo", "height"] }, { kind: "ngmodule", type: GramDeonAntdModule }] });
229
229
  }
230
230
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: EmpFormGroupComponent, decorators: [{
231
231
  type: Component,
@@ -1 +1 @@
1
- {"version":3,"file":"empInfo.mjs","sources":["../../../../packages/biz-form/empInfo/src/service.ts","../../../../packages/biz-form/empInfo/src/children/index.ts","../../../../packages/biz-form/empInfo/src/children/index.html","../../../../packages/biz-form/empInfo/src/default/index.ts","../../../../packages/biz-form/empInfo/src/default/index.html","../../../../packages/biz-form/empInfo/src/index.module.ts","../../../../packages/biz-form/empInfo/empInfo.ts"],"sourcesContent":["import { Injectable } from '@angular/core';\r\n@Injectable()\r\nexport class GroupService {\r\n /**\r\n * 外部传入的配置\r\n */\r\n sourceConfig: any = null;\r\n\r\n /**\r\n * 头部配置 */\r\n headerConfig: any = null;\r\n\r\n groupForm: any = null;\r\n\r\n groupData: any = null;\r\n}\r\n","import { Component, OnInit, Input, OnChanges, SimpleChanges } 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 { NzSpinModule } from 'ng-zorro-antd/spin';\r\nimport { NzEmptyModule } from 'ng-zorro-antd/empty';\r\nimport { NzButtonModule } from 'ng-zorro-antd/button';\r\nimport { NzIconModule } from 'ng-zorro-antd/icon';\r\nimport { NzFormModule } from 'ng-zorro-antd/form';\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\n\r\nimport { GramDeonAntdModule } from '@ebuilding/biz-comm/type';\r\nimport { FormGroupBasicService } from '@ebuilding/biz-form/service/formGroup.service';\r\n\r\nimport { GroupService } from '../service';\r\nimport _ from 'lodash';\r\n\r\n@Component({\r\n selector: 'group-children',\r\n styleUrls: ['./index.less'],\r\n templateUrl: './index.html',\r\n imports: [\r\n CommonModule,\r\n NzSpinModule,\r\n NzEmptyModule,\r\n FormlyModule,\r\n FormsModule, ReactiveFormsModule,\r\n NzButtonModule,\r\n NzIconModule,\r\n NzFormModule,\r\n GramDeonAntdModule\r\n ],\r\n})\r\nexport class GroupChildrenComponent extends FormGroupBasicService implements OnInit, OnChanges {\r\n @Input() formInfo: any = null;\r\n @Input() height: number = 0;\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 override commAPISrv: CommAPIService,\r\n public groupSrv: GroupService,\r\n ) {\r\n super(http, utilService, deonFormBuilder, globalSrv, msg, commAPISrv);\r\n }\r\n\r\n ngOnInit() { }\r\n\r\n ngOnChanges(changes: SimpleChanges): void {\r\n if (changes['formInfo']) {\r\n if (this.formInfo!!) {\r\n this.pageConfig = {\r\n type: 'ADD',\r\n id: null,\r\n formId: this.formInfo.id,\r\n moduleCode: this.groupSrv.sourceConfig.moduleCode, //buttonConfig.moduleCode,\r\n api: this.groupSrv.sourceConfig.api,\r\n argInfo: this.groupSrv.sourceConfig.argInfo,\r\n };\r\n\r\n this.getPageConfig();\r\n }\r\n }\r\n }\r\n\r\n /*\r\n 获取配置-表单数据\r\n */\r\n override getFromModel() {\r\n let params: any = {\r\n formId: this.pageConfig.formId,\r\n id: this.groupSrv.sourceConfig.id,\r\n };\r\n\r\n let apiName: any = this.commAPISrv.getFormModelChildren(this.pageConfig.moduleCode);\r\n\r\n return this.http.post(`${apiName}`, params);\r\n }\r\n\r\n override save() {\r\n if (!this.form.valid) {\r\n return;\r\n }\r\n this.loading = true;\r\n let apiName = this.commAPISrv.getFormSaveChildren(this.pageConfig.moduleCode);\r\n this.http\r\n .post(`${apiName}`, {\r\n id: this.groupSrv.sourceConfig.id,\r\n formId: this.pageConfig.formId,\r\n modelJson: this.model,\r\n })\r\n .subscribe(\r\n (res: any) => {\r\n this.loading = false;\r\n if (res && res.success == true) {\r\n this.msg.success('保存成功!');\r\n }\r\n },\r\n () => {\r\n this.loading = false;\r\n },\r\n );\r\n }\r\n}\r\n","<nz-spin [nzSpinning]=\"loading\" nzTip=\"拼命加载中...\" class=\"deon-list-spin\">\r\n <ng-container *ngIf=\"pageConfig!!\">\r\n <form [formGroup]=\"form\" (ngSubmit)=\"save()\" #defaultForm>\r\n <div class=\"deon-from\" [ngStyle]=\"{'height':height-68+'px'}\">\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=\"pageConfig.type!='VIEW' && pageConfig.type!='PREVIEW'\">\r\n <button nz-button nzType=\"default\" (click)=\"btnClose()\" type=\"button\"><i nz-icon nzType=\"reload\"></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 </form>\r\n </ng-container>\r\n</nz-spin>","import { Component, OnInit, HostListener, Input, Renderer2, ElementRef, OnChanges, SimpleChanges } 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 { NzSpinModule } from 'ng-zorro-antd/spin';\r\nimport { NzEmptyModule } from 'ng-zorro-antd/empty';\r\nimport { NzButtonModule } from 'ng-zorro-antd/button';\r\nimport { NzIconModule } from 'ng-zorro-antd/icon';\r\nimport { NzFormModule } from 'ng-zorro-antd/form';\r\nimport { NzTabsModule } from 'ng-zorro-antd/tabs';\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\n\r\nimport { GramDeonAntdModule } from '@ebuilding/biz-comm/type';\r\nimport { CardContentModule } from '@ebuilding/biz-comm/other/card';\r\nimport { FormGroupBasicService } from '@ebuilding/biz-form/service/formGroup.service';\r\n\r\nimport { GroupChildrenComponent } from \"../children\";\r\nimport { GroupService } from '../service';\r\nimport _ from 'lodash';\r\n\r\n\r\n@Component({\r\n selector: 'emp-group-default',\r\n styleUrls: ['./index.less'],\r\n templateUrl: './index.html',\r\n providers: [CommAPIService, GroupService],\r\n imports: [\r\n CommonModule,\r\n NzSpinModule,\r\n NzEmptyModule,\r\n FormlyModule,\r\n FormsModule, ReactiveFormsModule,\r\n NzButtonModule,\r\n NzIconModule,\r\n NzTabsModule,\r\n NzFormModule,\r\n CardContentModule,\r\n GroupChildrenComponent,\r\n GramDeonAntdModule\r\n ],\r\n})\r\nexport class EmpFormGroupComponent extends FormGroupBasicService implements OnInit, OnChanges {\r\n _config: any = null;\r\n\r\n @Input()\r\n set config(value: any) {\r\n this._config = value;\r\n if (value!!) {\r\n this.getPageData();\r\n }\r\n }\r\n get config() {\r\n return this._config;\r\n }\r\n\r\n height: number = 0;\r\n\r\n constructor(\r\n public override http: _HttpClient,\r\n public elementRef: ElementRef,\r\n public renderer: Renderer2,\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 override commAPISrv: CommAPIService,\r\n public groupSrv: GroupService,\r\n ) {\r\n super(http, utilService, deonFormBuilder, globalSrv, msg, commAPISrv);\r\n }\r\n\r\n ngOnInit() { }\r\n\r\n ngOnChanges(changes: SimpleChanges): void { }\r\n\r\n getPageData() {\r\n this.loading = true;\r\n this.groupSrv.groupData = null;\r\n let apiName: any = this.commAPISrv.getFormDesign(this.config.moduleCode, this.config.formId);\r\n this.http.post(`${apiName}`).subscribe((res: any) => {\r\n this.groupSrv.sourceConfig = _.cloneDeep(this.config);\r\n if (res.success) {\r\n this.groupSrv.groupData = res.result;\r\n }\r\n if (\r\n this.groupSrv.groupData!! &&\r\n this.groupSrv.groupData.listChildren!! &&\r\n Array.isArray(this.groupSrv.groupData.listChildren) &&\r\n this.groupSrv.groupData.listChildren.length > 0\r\n ) {\r\n let firstData: any = this.groupSrv.groupData.listChildren[0];\r\n\r\n this.pageConfig = {\r\n type: this.groupSrv.sourceConfig.type,\r\n id: this.groupSrv.sourceConfig.id,\r\n formId: firstData.formInfo.id,\r\n moduleCode: this.groupSrv.sourceConfig.moduleCode,\r\n api: this.groupSrv.sourceConfig.api,\r\n argInfo: this.groupSrv.sourceConfig.argInfo,\r\n };\r\n\r\n this.getPageConfig();\r\n } else {\r\n this.loading = false;\r\n }\r\n });\r\n }\r\n\r\n getPageConfigAfter() {\r\n if (this.groupSrv.headerConfig == null) {\r\n if (this.groupSrv.groupData!! && this.groupSrv.groupData.basic!! && this.groupSrv.groupData.basic.izHeader == true) {\r\n this.groupSrv.headerConfig = { headerId: this.groupSrv.groupData.basic.headerId, dataId: this.groupSrv.sourceConfig.id };\r\n } else {\r\n this.groupSrv.headerConfig = null;\r\n }\r\n }\r\n setTimeout(() => {\r\n this.resizeTable();\r\n }, 0);\r\n }\r\n\r\n @HostListener('window:resize', ['$event'])\r\n resize() {\r\n this.resizeTable();\r\n }\r\n resizeTable() {\r\n if (this.elementRef.nativeElement.querySelector('.basic-info')!!) {\r\n let header: number = this.elementRef.nativeElement.querySelector('.basic-info').clientHeight;\r\n this.height = this.elementRef.nativeElement.clientHeight - header - 65;\r\n }\r\n }\r\n}\r\n","<nz-spin [nzSpinning]=\"loading\" class=\"deon-list-spin\">\r\n <div class=\"basic\" *ngIf=\"this.groupSrv.groupData!! && this.groupSrv.groupData.basic!!\">\r\n <ng-container *ngIf=\"this.groupSrv.groupData.basic?.izHeader==true && this.groupSrv.headerConfig!!\">\r\n <div class=\"basic-info\">\r\n <card-main [defaultConfig]=\"this.groupSrv.headerConfig\" (pageLoadAfter)=\"resizeTable()\"></card-main>\r\n </div>\r\n </ng-container>\r\n <div class=\"basic-tabset\">\r\n <nz-tabset>\r\n <ng-container *ngFor=\"let item of groupSrv.groupData.listChildren;let i=index;\">\r\n <nz-tab [nzTitle]=\"item.formInfo.name\">\r\n <ng-template nz-tab>\r\n <ng-container *ngIf=\"i==0\">\r\n <div class=\"basic-form\" [ngStyle]=\"{'height':height+'px'}\">\r\n <form [formGroup]=\"form\" (ngSubmit)=\"save()\" #defaultForm>\r\n <div class=\"deon-from\" [ngStyle]=\"{'height':height-68+'px'}\">\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=\"pageConfig.type!='VIEW' && pageConfig.type!='PREVIEW'\">\r\n <button nz-button nzType=\"default\" (click)=\"btnClose()\" type=\"button\"><i nz-icon\r\n nzType=\"reload\"></i>重置</button>\r\n <!-- <button nz-button nzType=\"primary\" id=\"DRAFT\" *ngIf=\"draft==true\"><i nz-icon\r\n 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 </form>\r\n </div>\r\n </ng-container>\r\n <ng-container *ngIf=\"i>0\">\r\n <group-children [formInfo]=\"item.formInfo\" [height]=\"height\"\r\n [ngStyle]=\"{'height':height+'px'}\"></group-children>\r\n </ng-container>\r\n </ng-template>\r\n </nz-tab>\r\n </ng-container>\r\n </nz-tabset>\r\n </div>\r\n </div>\r\n</nz-spin>","import { NgModule } from '@angular/core';\r\nimport { CommonModule } from '@angular/common';\r\nimport { EmpFormGroupComponent } from './default/index';\r\nimport { GroupChildrenComponent } from './children/index';\r\n\r\nconst COMPONENTS: any[] = [EmpFormGroupComponent];\r\n\r\nconst COMPONENTS_NOROUNT: any = [GroupChildrenComponent];\r\n\r\n@NgModule({\r\n imports: [CommonModule, ...COMPONENTS, ...COMPONENTS_NOROUNT],\r\n exports: [...COMPONENTS],\r\n})\r\nexport class EmpFormGroupModule { }\r\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":["i7.GroupService"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MAEa,YAAY,CAAA;AACvB;;AAEG;IACH,YAAY,GAAQ,IAAI;AAExB;AACU;IACV,YAAY,GAAQ,IAAI;IAExB,SAAS,GAAQ,IAAI;IAErB,SAAS,GAAQ,IAAI;wGAZV,YAAY,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,UAAA,EAAA,CAAA;4G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CAAA,CAAA,EAAA;uTAMG,MAAM,EAAA,CAAA;sBADT;gBA8ED,MAAM,EAAA,CAAA;sBADL,YAAY;uBAAC,eAAe,EAAE,CAAC,QAAQ,CAAC;;;AEzH3C,MAAM,UAAU,GAAU,CAAC,qBAAqB,CAAC;AAEjD,MAAM,kBAAkB,GAAQ,CAAC,sBAAsB,CAAC;MAM3C,kBAAkB,CAAA;wGAAlB,kBAAkB,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,QAAA,EAAA,CAAA;AAAlB,IAAA,OAAA,IAAA,GAAA,EAAA,CAAA,mBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,SAAA,EAAA,QAAA,EAAA,EAAA,EAAA,IAAA,EAAA,kBAAkB,YAHnB,YAAY,EALG,qBAAqB,EAEf,sBAAsB,aAF5B,qBAAqB,CAAA,EAAA,CAAA;AAQnC,IAAA,OAAA,IAAA,GAAA,EAAA,CAAA,mBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,SAAA,EAAA,QAAA,EAAA,EAAA,EAAA,IAAA,EAAA,kBAAkB,EAHnB,OAAA,EAAA,CAAA,YAAY,EAAK,UAAU,EAAK,kBAAkB,CAAA,EAAA,CAAA;;4FAGjD,kBAAkB,EAAA,UAAA,EAAA,CAAA;kBAJ9B,QAAQ;AAAC,YAAA,IAAA,EAAA,CAAA;oBACR,OAAO,EAAE,CAAC,YAAY,EAAE,GAAG,UAAU,EAAE,GAAG,kBAAkB,CAAC;AAC7D,oBAAA,OAAO,EAAE,CAAC,GAAG,UAAU,CAAC;AACzB,iBAAA;;;ACZD;;AAEG;;;;"}
1
+ {"version":3,"file":"empInfo.mjs","sources":["../../../../packages/biz-form/empInfo/src/service.ts","../../../../packages/biz-form/empInfo/src/children/index.ts","../../../../packages/biz-form/empInfo/src/children/index.html","../../../../packages/biz-form/empInfo/src/default/index.ts","../../../../packages/biz-form/empInfo/src/default/index.html","../../../../packages/biz-form/empInfo/src/index.module.ts","../../../../packages/biz-form/empInfo/empInfo.ts"],"sourcesContent":["import { Injectable } from '@angular/core';\r\n@Injectable()\r\nexport class GroupService {\r\n /**\r\n * 外部传入的配置\r\n */\r\n sourceConfig: any = null;\r\n\r\n /**\r\n * 头部配置 */\r\n headerConfig: any = null;\r\n\r\n groupForm: any = null;\r\n\r\n groupData: any = null;\r\n}\r\n","import { Component, OnInit, Input, OnChanges, SimpleChanges } 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 { NzSpinModule } from 'ng-zorro-antd/spin';\r\nimport { NzEmptyModule } from 'ng-zorro-antd/empty';\r\nimport { NzButtonModule } from 'ng-zorro-antd/button';\r\nimport { NzIconModule } from 'ng-zorro-antd/icon';\r\nimport { NzFormModule } from 'ng-zorro-antd/form';\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\n\r\nimport { GramDeonAntdModule } from '@ebuilding/biz-comm/type';\r\nimport { FormGroupBasicService } from '@ebuilding/biz-form/service/formGroup.service';\r\n\r\nimport { GroupService } from '../service';\r\nimport _ from 'lodash';\r\n\r\n@Component({\r\n selector: 'group-children',\r\n styleUrls: ['./index.less'],\r\n templateUrl: './index.html',\r\n imports: [\r\n CommonModule,\r\n NzSpinModule,\r\n NzEmptyModule,\r\n FormlyModule,\r\n FormsModule, ReactiveFormsModule,\r\n NzButtonModule,\r\n NzIconModule,\r\n NzFormModule,\r\n GramDeonAntdModule\r\n ],\r\n})\r\nexport class GroupChildrenComponent extends FormGroupBasicService implements OnInit, OnChanges {\r\n @Input() formInfo: any = null;\r\n @Input() height: number = 0;\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 override commAPISrv: CommAPIService,\r\n public groupSrv: GroupService,\r\n ) {\r\n super(http, utilService, deonFormBuilder, globalSrv, msg, commAPISrv);\r\n }\r\n\r\n ngOnInit() { }\r\n\r\n ngOnChanges(changes: SimpleChanges): void {\r\n if (changes['formInfo']) {\r\n if (this.formInfo!!) {\r\n this.pageConfig = {\r\n type: 'ADD',\r\n id: null,\r\n formId: this.formInfo.id,\r\n moduleCode: this.groupSrv.sourceConfig.moduleCode, //buttonConfig.moduleCode,\r\n api: this.groupSrv.sourceConfig.api,\r\n argInfo: this.groupSrv.sourceConfig.argInfo,\r\n };\r\n\r\n this.getPageConfig();\r\n }\r\n }\r\n }\r\n\r\n /*\r\n 获取配置-表单数据\r\n */\r\n override getFromModel() {\r\n let params: any = {\r\n formId: this.pageConfig.formId,\r\n id: this.groupSrv.sourceConfig.id,\r\n };\r\n\r\n let apiName: any = this.commAPISrv.getFormModelChildren(this.pageConfig.moduleCode);\r\n\r\n return this.http.post(`${apiName}`, params);\r\n }\r\n\r\n override save() {\r\n if (!this.form.valid) {\r\n return;\r\n }\r\n this.loading = true;\r\n let apiName = this.commAPISrv.getFormSaveChildren(this.pageConfig.moduleCode);\r\n this.http\r\n .post(`${apiName}`, {\r\n id: this.groupSrv.sourceConfig.id,\r\n formId: this.pageConfig.formId,\r\n modelJson: this.model,\r\n })\r\n .subscribe(\r\n (res: any) => {\r\n this.loading = false;\r\n if (res && res.success == true) {\r\n this.msg.success('保存成功!');\r\n }\r\n },\r\n () => {\r\n this.loading = false;\r\n },\r\n );\r\n }\r\n}\r\n","<nz-spin [nzSpinning]=\"loading\" nzTip=\"拼命加载中...\" class=\"deon-list-spin\">\r\n <ng-container *ngIf=\"pageConfig!!\">\r\n <form [formGroup]=\"form\" (ngSubmit)=\"save()\" #defaultForm>\r\n <div class=\"deon-from\" [ngStyle]=\"{'height':height-68+'px'}\">\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=\"pageConfig.type!='VIEW' && pageConfig.type!='PREVIEW'\">\r\n <button nz-button nzType=\"default\" (click)=\"btnClose()\" type=\"button\"><i nz-icon nzType=\"reload\"></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 </form>\r\n </ng-container>\r\n</nz-spin>","import { Component, OnInit, HostListener, Input, Renderer2, ElementRef, OnChanges, SimpleChanges } 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 { NzSpinModule } from 'ng-zorro-antd/spin';\r\nimport { NzEmptyModule } from 'ng-zorro-antd/empty';\r\nimport { NzButtonModule } from 'ng-zorro-antd/button';\r\nimport { NzIconModule } from 'ng-zorro-antd/icon';\r\nimport { NzFormModule } from 'ng-zorro-antd/form';\r\nimport { NzTabsModule } from 'ng-zorro-antd/tabs';\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\n\r\nimport { GramDeonAntdModule } from '@ebuilding/biz-comm/type';\r\nimport { CardContentModule } from '@ebuilding/biz-comm/other/card';\r\nimport { FormGroupBasicService } from '@ebuilding/biz-form/service/formGroup.service';\r\n\r\nimport { GroupChildrenComponent } from \"../children\";\r\nimport { GroupService } from '../service';\r\nimport _ from 'lodash';\r\n\r\n\r\n@Component({\r\n selector: 'emp-group-default',\r\n styleUrls: ['./index.less'],\r\n templateUrl: './index.html',\r\n providers: [CommAPIService, GroupService],\r\n imports: [\r\n CommonModule,\r\n NzSpinModule,\r\n NzEmptyModule,\r\n FormlyModule,\r\n FormsModule, ReactiveFormsModule,\r\n NzButtonModule,\r\n NzIconModule,\r\n NzTabsModule,\r\n NzFormModule,\r\n CardContentModule,\r\n GroupChildrenComponent,\r\n GramDeonAntdModule\r\n ],\r\n})\r\nexport class EmpFormGroupComponent extends FormGroupBasicService implements OnInit, OnChanges {\r\n _config: any = null;\r\n\r\n @Input()\r\n set config(value: any) {\r\n this._config = value;\r\n if (value!!) {\r\n this.getPageData();\r\n }\r\n }\r\n get config() {\r\n return this._config;\r\n }\r\n\r\n height: number = 0;\r\n\r\n constructor(\r\n public override http: _HttpClient,\r\n public elementRef: ElementRef,\r\n public renderer: Renderer2,\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 override commAPISrv: CommAPIService,\r\n public groupSrv: GroupService,\r\n ) {\r\n super(http, utilService, deonFormBuilder, globalSrv, msg, commAPISrv);\r\n }\r\n\r\n ngOnInit() { }\r\n\r\n ngOnChanges(changes: SimpleChanges): void { }\r\n\r\n getPageData() {\r\n this.loading = true;\r\n this.groupSrv.groupData = null;\r\n let apiName: any = this.commAPISrv.getFormDesign(this.config.moduleCode, this.config.formId);\r\n this.http.post(`${apiName}`).subscribe((res: any) => {\r\n this.groupSrv.sourceConfig = _.cloneDeep(this.config);\r\n if (res.success) {\r\n this.groupSrv.groupData = res.result;\r\n }\r\n if (\r\n this.groupSrv.groupData!! &&\r\n this.groupSrv.groupData.listChildren!! &&\r\n Array.isArray(this.groupSrv.groupData.listChildren) &&\r\n this.groupSrv.groupData.listChildren.length > 0\r\n ) {\r\n let firstData: any = this.groupSrv.groupData.listChildren[0];\r\n\r\n this.pageConfig = {\r\n type: this.groupSrv.sourceConfig.type,\r\n id: this.groupSrv.sourceConfig.id,\r\n formId: firstData.formInfo.id,\r\n moduleCode: this.groupSrv.sourceConfig.moduleCode,\r\n api: this.groupSrv.sourceConfig.api,\r\n argInfo: this.groupSrv.sourceConfig.argInfo,\r\n };\r\n\r\n this.getPageConfig();\r\n } else {\r\n this.loading = false;\r\n }\r\n });\r\n }\r\n\r\n getPageConfigAfter() {\r\n if (this.groupSrv.headerConfig == null) {\r\n if (this.groupSrv.groupData!! && this.groupSrv.groupData.basic!! && this.groupSrv.groupData.basic.izHeader == true) {\r\n this.groupSrv.headerConfig = { headerId: this.groupSrv.groupData.basic.headerId, dataId: this.groupSrv.sourceConfig.id };\r\n } else {\r\n this.groupSrv.headerConfig = null;\r\n }\r\n }\r\n setTimeout(() => {\r\n this.resizeTable();\r\n }, 0);\r\n }\r\n\r\n @HostListener('window:resize', ['$event'])\r\n resize() {\r\n this.resizeTable();\r\n }\r\n resizeTable() {\r\n if (this.elementRef.nativeElement.querySelector('.basic-info')!!) {\r\n let header: number = this.elementRef.nativeElement.querySelector('.basic-info').clientHeight;\r\n this.height = this.elementRef.nativeElement.clientHeight - header - 65;\r\n }\r\n }\r\n}\r\n","<nz-spin [nzSpinning]=\"loading\" class=\"deon-list-spin\">\r\n <div class=\"basic\" *ngIf=\"this.groupSrv.groupData!! && this.groupSrv.groupData.basic!!\">\r\n <ng-container *ngIf=\"this.groupSrv.groupData.basic?.izHeader==true && this.groupSrv.headerConfig!!\">\r\n <div class=\"basic-info\">\r\n <card-main [defaultConfig]=\"this.groupSrv.headerConfig\" (pageLoadAfter)=\"resizeTable()\"></card-main>\r\n </div>\r\n </ng-container>\r\n <div class=\"basic-tabset\">\r\n <nz-tabset>\r\n <ng-container *ngFor=\"let item of groupSrv.groupData.listChildren;let i=index;\">\r\n <nz-tab [nzTitle]=\"item.formInfo.name\">\r\n <ng-template nz-tab>\r\n <ng-container *ngIf=\"i==0\">\r\n <div class=\"basic-form\" [ngStyle]=\"{'height':height+'px'}\">\r\n <form [formGroup]=\"form\" (ngSubmit)=\"save()\" #defaultForm>\r\n <div class=\"deon-from\" [ngStyle]=\"{'height':height-68+'px'}\">\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=\"pageConfig.type!='VIEW' && pageConfig.type!='PREVIEW'\">\r\n <button nz-button nzType=\"default\" (click)=\"btnClose()\" type=\"button\"><i nz-icon\r\n nzType=\"reload\"></i>重置</button>\r\n <!-- <button nz-button nzType=\"primary\" id=\"DRAFT\" *ngIf=\"draft==true\"><i nz-icon\r\n 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 </form>\r\n </div>\r\n </ng-container>\r\n <ng-container *ngIf=\"i>0\">\r\n <group-children [formInfo]=\"item.formInfo\" [height]=\"height\"\r\n [ngStyle]=\"{'height':height+'px'}\"></group-children>\r\n </ng-container>\r\n </ng-template>\r\n </nz-tab>\r\n </ng-container>\r\n </nz-tabset>\r\n </div>\r\n </div>\r\n</nz-spin>","import { NgModule } from '@angular/core';\r\nimport { CommonModule } from '@angular/common';\r\nimport { EmpFormGroupComponent } from './default/index';\r\nimport { GroupChildrenComponent } from './children/index';\r\n\r\nconst COMPONENTS: any[] = [EmpFormGroupComponent];\r\n\r\nconst COMPONENTS_NOROUNT: any = [GroupChildrenComponent];\r\n\r\n@NgModule({\r\n imports: [CommonModule, ...COMPONENTS, ...COMPONENTS_NOROUNT],\r\n exports: [...COMPONENTS],\r\n})\r\nexport class EmpFormGroupModule { }\r\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":["i7.GroupService"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MAEa,YAAY,CAAA;AACvB;;AAEG;IACH,YAAY,GAAQ,IAAI;AAExB;AACU;IACV,YAAY,GAAQ,IAAI;IAExB,SAAS,GAAQ,IAAI;IAErB,SAAS,GAAQ,IAAI;wGAZV,YAAY,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,UAAA,EAAA,CAAA;4GAAZ,YAAY,EAAA,CAAA;;4FAAZ,YAAY,EAAA,UAAA,EAAA,CAAA;kBADxB;;;ACqCK,MAAO,sBAAuB,SAAQ,qBAAqB,CAAA;AAI7C,IAAA,IAAA;AACA,IAAA,WAAA;AACA,IAAA,eAAA;AACA,IAAA,SAAA;AACA,IAAA,GAAA;AACA,IAAA,UAAA;AACT,IAAA,QAAA;IATA,QAAQ,GAAQ,IAAI;IACpB,MAAM,GAAW,CAAC;AAC3B,IAAA,WAAA,CACkB,IAAiB,EACjB,WAAgC,EAChC,eAAkC,EAClC,SAA4B,EAC5B,GAAqB,EACrB,UAA0B,EACnC,QAAsB,EAAA;AAE7B,QAAA,KAAK,CAAC,IAAI,EAAE,WAAW,EAAE,eAAe,EAAE,SAAS,EAAE,GAAG,EAAE,UAAU,CAAC;QARrD,IAAI,CAAA,IAAA,GAAJ,IAAI;QACJ,IAAW,CAAA,WAAA,GAAX,WAAW;QACX,IAAe,CAAA,eAAA,GAAf,eAAe;QACf,IAAS,CAAA,SAAA,GAAT,SAAS;QACT,IAAG,CAAA,GAAA,GAAH,GAAG;QACH,IAAU,CAAA,UAAA,GAAV,UAAU;QACnB,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AA,UAAA,EAAA,CAAA;kBAJ9B,QAAQ;AAAC,YAAA,IAAA,EAAA,CAAA;oBACR,OAAO,EAAE,CAAC,YAAY,EAAE,GAAG,UAAU,EAAE,GAAG,kBAAkB,CAAC;AAC7D,oBAAA,OAAO,EAAE,CAAC,GAAG,UAAU,CAAC;AACzB,iBAAA;;;ACZD;;AAEG;;;;"}
@@ -18,7 +18,7 @@ import { GramDeonAntdModule } from '@ebuilding/biz-comm/type';
18
18
  import * as i1 from '@delon/theme';
19
19
  import * as i2 from '@ebuilding/base/shared.srv/deon.util';
20
20
  import * as i3 from '@ebuilding/base/shared.srv/deon2.util';
21
- import * as i4 from '@kre-form/core';
21
+ import * as i4 from '@ebuilding-form/core';
22
22
  import * as i5 from '@ebuilding/base/shared.srv/global.event';
23
23
  import * as i6 from '@ebuilding/base/components/drawer';
24
24
  import * as i7 from 'ng-zorro-antd/message';
@@ -1 +1 @@
1
- {"version":3,"file":"history.mjs","sources":["../../../../packages/biz-form/history/src/default/index.ts","../../../../packages/biz-form/history/src/default/index.html","../../../../packages/biz-form/history/src/index.module.ts","../../../../packages/biz-form/history/history.ts"],"sourcesContent":["import { Component, OnInit, Input, ChangeDetectorRef, AfterContentChecked } from '@angular/core';\r\nimport { CommonModule } from '@angular/common';\r\nimport { _HttpClient } from '@delon/theme';\r\nimport { FormlyFormBuilder } from '@kre-form/core';\r\nimport { NzSpinModule } from 'ng-zorro-antd/spin';\r\nimport { NzIconModule } from 'ng-zorro-antd/icon';\r\nimport { NzTimelineModule } from 'ng-zorro-antd/timeline';\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 { GramGlobalService } from '@ebuilding/base/shared.srv/global.event';\r\nimport { CommAPIService } from '@ebuilding/base/shared.srv/commApi.service';\r\n\r\nimport { NzDrawerRef } from '@ebuilding/base/components/drawer';\r\nimport { GramPipeModule } from '@ebuilding/base/shared.pipe';\r\nimport { ModuleAPI } from '@ebuilding/base/shared.var/shared.constant';\r\nimport { GramDeonEmptyModule } from '@ebuilding/abc/empty';\r\nimport { GramDeonAntdModule } from '@ebuilding/biz-comm/type';\r\n\r\nimport _ from 'lodash';\r\n\r\n@Component({\r\n selector: 'form-history',\r\n styleUrls: ['./index.less'],\r\n templateUrl: './index.html',\r\n providers: [CommAPIService],\r\n imports: [\r\n CommonModule,\r\n NzSpinModule,\r\n NzIconModule,\r\n NzTimelineModule,\r\n GramPipeModule,\r\n GramDeonEmptyModule,\r\n GramDeonAntdModule\r\n ]\r\n})\r\nexport class FormHistoryComponent implements OnInit, AfterContentChecked {\r\n _config: any = null;\r\n\r\n loading: boolean = true;\r\n\r\n data: any[] = [];\r\n\r\n @Input()\r\n set config(value: any) {\r\n this._config = value;\r\n this.getPageData();\r\n }\r\n get config() {\r\n return this._config;\r\n }\r\n\r\n constructor(\r\n public http: _HttpClient,\r\n public utilService: DeonFormUtilService,\r\n public resetService: DeonFormResetService,\r\n public deonFormBuilder: FormlyFormBuilder,\r\n public globalSrv: GramGlobalService,\r\n public drawerRef: NzDrawerRef<any>,\r\n public msg: NzMessageService,\r\n public modal: NzModalService,\r\n private changeDetector: ChangeDetectorRef,\r\n public commAPISrv: CommAPIService,\r\n ) {\r\n }\r\n\r\n ngOnInit() {\r\n this.loading = true;\r\n }\r\n\r\n ngAfterContentChecked(): void {\r\n // this.changeDetector.detectChanges();\r\n }\r\n\r\n getPageData() {\r\n this.loading = true;\r\n let url: any = `${ModuleAPI.user}/user/form/history`;\r\n if (this.config.api!! && this.config.api?.historyAPI!!) {\r\n url = this.config.api.historyAPI;\r\n }\r\n this.http.post(url, {\r\n pageId: this.config.pageId,\r\n id: this.config.dataId\r\n }).subscribe((res: any) => {\r\n if (res.success && res.result!!) {\r\n this.data = res.result;\r\n }\r\n this.loading = false;\r\n });\r\n }\r\n}\r\n","<nz-spin [nzSpinning]=\"loading\" nzTip=\"拼命加载中...\" class=\"deon-list-spin\">\r\n\r\n <nz-timeline>\r\n <ng-container *ngFor=\"let item of data\">\r\n <nz-timeline-item>\r\n <ul class=\"header\">\r\n <li><label>操作日期</label>{{item?.createDate | date:'YYYY/MM/dd HH:mm'}}</li>\r\n <li><label>操作人员</label>{{item?.createEmp}}</li>\r\n </ul>\r\n <div class=\"body\">\r\n <div class=\"item-box\" *ngFor=\"let h of item.listHistory\">\r\n <ul class=\"item\">\r\n <li>\r\n <div class=\"label\">【{{h.fieldLabel}}】字段变更前</div>\r\n <div class=\"value\">\r\n <div [innerHtml]=\"h.beforeText | safeHtml\"></div>\r\n </div>\r\n </li>\r\n <li>\r\n <div class=\"label\">【{{h.fieldLabel}}】字段变更后</div>\r\n <div class=\"value\">\r\n <div [innerHtml]=\"h.afterText | safeHtml\"></div>\r\n </div>\r\n </li>\r\n </ul>\r\n </div>\r\n </div>\r\n </nz-timeline-item>\r\n </ng-container>\r\n </nz-timeline>\r\n\r\n <ng-container *ngIf=\"loading==false && (data==null || data.length==0)\">\r\n <gram-empty></gram-empty>\r\n </ng-container>\r\n</nz-spin>","import { NgModule } from '@angular/core';\r\nimport { CommonModule } from '@angular/common';\r\n\r\nimport { FormHistoryComponent } from './default/index';\r\n\r\nconst components: any[] = [FormHistoryComponent];\r\n@NgModule({\r\n imports: [CommonModule, ...components],\r\n exports: [...components],\r\n})\r\nexport class FormHistoryModule { }\r\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;MAsCa,oBAAoB,CAAA;AAiBtB,IAAA,IAAA;AACA,IAAA,WAAA;AACA,IAAA,YAAA;AACA,IAAA,eAAA;AACA,IAAA,SAAA;AACA,IAAA,SAAA;AACA,IAAA,GAAA;AACA,IAAA,KAAA;AACC,IAAA,cAAA;AACD,IAAA,UAAA;IAzBT,OAAO,GAAQ,IAAI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/history/src/default/index.html","../../../../packages/biz-form/history/src/index.module.ts","../../../../packages/biz-form/history/history.ts"],"sourcesContent":["import { Component, OnInit, Input, ChangeDetectorRef, AfterContentChecked } from '@angular/core';\r\nimport { CommonModule } from '@angular/common';\r\nimport { _HttpClient } from '@delon/theme';\r\nimport { FormlyFormBuilder } from '@ebuilding-form/core';\r\nimport { NzSpinModule } from 'ng-zorro-antd/spin';\r\nimport { NzIconModule } from 'ng-zorro-antd/icon';\r\nimport { NzTimelineModule } from 'ng-zorro-antd/timeline';\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 { GramGlobalService } from '@ebuilding/base/shared.srv/global.event';\r\nimport { CommAPIService } from '@ebuilding/base/shared.srv/commApi.service';\r\n\r\nimport { NzDrawerRef } from '@ebuilding/base/components/drawer';\r\nimport { GramPipeModule } from '@ebuilding/base/shared.pipe';\r\nimport { ModuleAPI } from '@ebuilding/base/shared.var/shared.constant';\r\nimport { GramDeonEmptyModule } from '@ebuilding/abc/empty';\r\nimport { GramDeonAntdModule } from '@ebuilding/biz-comm/type';\r\n\r\nimport _ from 'lodash';\r\n\r\n@Component({\r\n selector: 'form-history',\r\n styleUrls: ['./index.less'],\r\n templateUrl: './index.html',\r\n providers: [CommAPIService],\r\n imports: [\r\n CommonModule,\r\n NzSpinModule,\r\n NzIconModule,\r\n NzTimelineModule,\r\n GramPipeModule,\r\n GramDeonEmptyModule,\r\n GramDeonAntdModule\r\n ]\r\n})\r\nexport class FormHistoryComponent implements OnInit, AfterContentChecked {\r\n _config: any = null;\r\n\r\n loading: boolean = true;\r\n\r\n data: any[] = [];\r\n\r\n @Input()\r\n set config(value: any) {\r\n this._config = value;\r\n this.getPageData();\r\n }\r\n get config() {\r\n return this._config;\r\n }\r\n\r\n constructor(\r\n public http: _HttpClient,\r\n public utilService: DeonFormUtilService,\r\n public resetService: DeonFormResetService,\r\n public deonFormBuilder: FormlyFormBuilder,\r\n public globalSrv: GramGlobalService,\r\n public drawerRef: NzDrawerRef<any>,\r\n public msg: NzMessageService,\r\n public modal: NzModalService,\r\n private changeDetector: ChangeDetectorRef,\r\n public commAPISrv: CommAPIService,\r\n ) {\r\n }\r\n\r\n ngOnInit() {\r\n this.loading = true;\r\n }\r\n\r\n ngAfterContentChecked(): void {\r\n // this.changeDetector.detectChanges();\r\n }\r\n\r\n getPageData() {\r\n this.loading = true;\r\n let url: any = `${ModuleAPI.user}/user/form/history`;\r\n if (this.config.api!! && this.config.api?.historyAPI!!) {\r\n url = this.config.api.historyAPI;\r\n }\r\n this.http.post(url, {\r\n pageId: this.config.pageId,\r\n id: this.config.dataId\r\n }).subscribe((res: any) => {\r\n if (res.success && res.result!!) {\r\n this.data = res.result;\r\n }\r\n this.loading = false;\r\n });\r\n }\r\n}\r\n","<nz-spin [nzSpinning]=\"loading\" nzTip=\"拼命加载中...\" class=\"deon-list-spin\">\r\n\r\n <nz-timeline>\r\n <ng-container *ngFor=\"let item of data\">\r\n <nz-timeline-item>\r\n <ul class=\"header\">\r\n <li><label>操作日期</label>{{item?.createDate | date:'YYYY/MM/dd HH:mm'}}</li>\r\n <li><label>操作人员</label>{{item?.createEmp}}</li>\r\n </ul>\r\n <div class=\"body\">\r\n <div class=\"item-box\" *ngFor=\"let h of item.listHistory\">\r\n <ul class=\"item\">\r\n <li>\r\n <div class=\"label\">【{{h.fieldLabel}}】字段变更前</div>\r\n <div class=\"value\">\r\n <div [innerHtml]=\"h.beforeText | safeHtml\"></div>\r\n </div>\r\n </li>\r\n <li>\r\n <div class=\"label\">【{{h.fieldLabel}}】字段变更后</div>\r\n <div class=\"value\">\r\n <div [innerHtml]=\"h.afterText | safeHtml\"></div>\r\n </div>\r\n </li>\r\n </ul>\r\n </div>\r\n </div>\r\n </nz-timeline-item>\r\n </ng-container>\r\n </nz-timeline>\r\n\r\n <ng-container *ngIf=\"loading==false && (data==null || data.length==0)\">\r\n <gram-empty></gram-empty>\r\n </ng-container>\r\n</nz-spin>","import { NgModule } from '@angular/core';\r\nimport { CommonModule } from '@angular/common';\r\n\r\nimport { FormHistoryComponent } from './default/index';\r\n\r\nconst components: any[] = [FormHistoryComponent];\r\n@NgModule({\r\n imports: [CommonModule, ...components],\r\n exports: [...components],\r\n})\r\nexport class FormHistoryModule { }\r\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;MAsCa,oBAAoB,CAAA;AAiBtB,IAAA,IAAA;AACA,IAAA,WAAA;AACA,IAAA,YAAA;AACA,IAAA,eAAA;AACA,IAAA,SAAA;AACA,IAAA,SAAA;AACA,IAAA,GAAA;AACA,IAAA,KAAA;AACC,IAAA,cAAA;AACD,IAAA,UAAA;IAzBT,OAAO,GAAQ,IAAI;IAEnB,OAAO,GAAY,IAAI;IAEvB,IAAI,GAAU,EAAE;IAEhB,IACI,MAAM,CAAC,KAAU,EAAA;AACnB,QAAA,IAAI,CAAC,OAAO,GAAG,KAAK;QACpB,IAAI,CAAC,WAAW,EAAE;;AAEpB,IAAA,IAAI,MAAM,GAAA;QACR,OAAO,IAAI,CAAC,OAAO;;AAGrB,IAAA,WAAA,CACS,IAAiB,EACjB,WAAgC,EAChC,YAAkC,EAClC,eAAkC,EAClC,SAA4B,EAC5B,SAA2B,EAC3B,GAAqB,EACrB,KAAqB,EACpB,cAAiC,EAClC,UAA0B,EAAA;QAT1B,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,IAAS,CAAA,SAAA,GAAT,SAAS;QACT,IAAG,CAAA,GAAA,GAAH,GAAG;Q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,IAAA,GAAA,EAAA,CAAA,mBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,SAAA,EAAA,QAAA,EAAA,EAAA,EAAA,IAAA,EAAA,iBAAiB,EAHlB,OAAA,EAAA,CAAA,YAAY,EAFG,oBAAoB,aAApB,oBAAoB,CAAA,EAAA,CAAA;yGAKlC,iBAAiB,EAAA,OAAA,EAAA,CAHlB,YAAY,EAAK,UAAU,CAAA,EAAA,CAAA;;4FAG1B,iBAAiB,EAAA,UAAA,EAAA,CAAA;kBAJ7B,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/page.mjs CHANGED
@@ -4,8 +4,8 @@ import * as i6 from '@angular/common';
4
4
  import { CommonModule } from '@angular/common';
5
5
  import * as i7 from '@angular/forms';
6
6
  import { FormGroup, FormsModule, ReactiveFormsModule } from '@angular/forms';
7
- import * as i3 from '@kre-form/core';
8
- import { FormlyModule } from '@kre-form/core';
7
+ import * as i3 from '@ebuilding-form/core';
8
+ import { FormlyModule } from '@ebuilding-form/core';
9
9
  import * as i8 from 'ng-zorro-antd/spin';
10
10
  import { NzSpinModule } from 'ng-zorro-antd/spin';
11
11
  import * as i9 from 'ng-zorro-antd/empty';
@@ -158,7 +158,7 @@ class FormPageComponent {
158
158
  });
159
159
  }
160
160
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: FormPageComponent, deps: [{ token: i1._HttpClient }, { token: i2.DeonFormUtilService }, { token: i3.FormlyFormBuilder }, { token: i4.GramGlobalService }, { token: i5.NzMessageService }], target: i0.ɵɵFactoryTarget.Component });
161
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.15", type: FormPageComponent, isStandalone: true, selector: "form-page", inputs: { config: "config" }, outputs: { buttonEvent: "buttonEvent" }, usesOnChanges: 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-button\" *ngIf=\"config.type!='view'\">\r\n <button nz-button nzType=\"default\" (click)=\"btnClose()\" type=\"button\"><i nz-icon nzType=\"reload\"></i>\u91CD\u7F6E</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 <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 </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 .deon-button{height:auto;margin-bottom:15px;padding:0;border:0}:host ::ng-deep .formly-form{padding:00 0 0}:host ::ng-deep form{flex:1;overflow:auto}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i6.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "ngmodule", type: FormsModule }, { kind: "directive", type: i7.ɵNgNoValidate, selector: "form:not([ngNoForm]):not([ngNativeValidate])" }, { kind: "directive", type: i7.NgControlStatusGroup, selector: "[formGroupName],[formArrayName],[ngModelGroup],[formGroup],form:not([ngNoForm]),[ngForm]" }, { kind: "ngmodule", type: ReactiveFormsModule }, { kind: "directive", type: i7.FormGroupDirective, selector: "[formGroup]", inputs: ["formGroup"], outputs: ["ngSubmit"], exportAs: ["ngForm"] }, { kind: "ngmodule", type: NzSpinModule }, { kind: "component", type: i8.NzSpinComponent, selector: "nz-spin", inputs: ["nzIndicator", "nzSize", "nzTip", "nzDelay", "nzSimple", "nzSpinning"], exportAs: ["nzSpin"] }, { kind: "ngmodule", type: NzEmptyModule }, { kind: "component", type: i9.NzEmptyComponent, selector: "nz-empty", inputs: ["nzNotFoundImage", "nzNotFoundContent", "nzNotFoundFooter"], exportAs: ["nzEmpty"] }, { kind: "ngmodule", type: NzFormModule }, { kind: "ngmodule", type: FormlyModule }, { kind: "component", type: i3.FormlyForm, selector: "formly-form", inputs: ["form", "model", "fields", "options"], outputs: ["modelChange"] }, { kind: "ngmodule", type: GramDeonAntdModule }] });
161
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.15", type: FormPageComponent, isStandalone: true, selector: "form-page", inputs: { config: "config" }, outputs: { buttonEvent: "buttonEvent" }, usesOnChanges: 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-button\" *ngIf=\"config.type!='view'\">\r\n <button nz-button nzType=\"default\" (click)=\"btnClose()\" type=\"button\"><i nz-icon nzType=\"reload\"></i>\u91CD\u7F6E</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 <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 </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 .deon-button{height:auto;margin-bottom:15px;padding:0;border:0}:host ::ng-deep .formly-form{padding:00 0 0}:host ::ng-deep form{flex:1;overflow:auto}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i6.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "ngmodule", type: FormsModule }, { kind: "directive", type: i7.ɵNgNoValidate, selector: "form:not([ngNoForm]):not([ngNativeValidate])" }, { kind: "directive", type: i7.NgControlStatusGroup, selector: "[formGroupName],[formArrayName],[ngModelGroup],[formGroup],form:not([ngNoForm]),[ngForm]" }, { kind: "ngmodule", type: ReactiveFormsModule }, { kind: "directive", type: i7.FormGroupDirective, selector: "[formGroup]", inputs: ["formGroup"], outputs: ["ngSubmit"], exportAs: ["ngForm"] }, { kind: "ngmodule", type: NzSpinModule }, { kind: "component", type: i8.NzSpinComponent, selector: "nz-spin", inputs: ["nzIndicator", "nzSize", "nzTip", "nzDelay", "nzSimple", "nzSpinning"], exportAs: ["nzSpin"] }, { kind: "ngmodule", type: NzEmptyModule }, { kind: "component", type: i9.NzEmptyComponent, selector: "nz-empty", inputs: ["nzNotFoundImage", "nzNotFoundContent", "nzNotFoundFooter"], exportAs: ["nzEmpty"] }, { kind: "ngmodule", type: NzFormModule }, { kind: "ngmodule", type: FormlyModule }, { kind: "component", type: i3.LegacyFormlyForm, selector: "formly-form" }, { kind: "ngmodule", type: GramDeonAntdModule }] });
162
162
  }
163
163
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: FormPageComponent, decorators: [{
164
164
  type: Component,