@ebuilding/biz-comm 3.3.3 → 3.3.5

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.
@@ -192,7 +192,7 @@ class FormulaMainComponent {
192
192
  });
193
193
  }
194
194
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: FormulaMainComponent, deps: [{ token: i1._HttpClient }, { token: i2.NzDrawerRef }, { token: i3.NzMessageService }, { token: FormulaService }], target: i0.ɵɵFactoryTarget.Component });
195
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.15", type: FormulaMainComponent, isStandalone: true, selector: "formula-main", inputs: { config: "config" }, providers: [FormulaService], ngImport: i0, template: "<div class=\"name\">\r\n <span>*</span>\r\n <label>\u8868\u8FBE\u5F0F\u540D\u79F0</label>\r\n <input nz-input placeholder=\"\u8BF7\u8F93\u5165\u8868\u8FBE\u5F0F\u540D\u79F0\" [(ngModel)]=\"name\" />\r\n</div>\r\n\r\n<div class=\"codemirror\">\r\n <deon-codemirror #codemirror [title]=\"''\" (textChange)=\"textChange($event)\" [fieldData]=\"fieldData\"\r\n [options]=\"codeMirrorOptions\" [(ngModel)]=\"formulaValue\">\r\n </deon-codemirror>\r\n</div>\r\n\r\n<div class=\"deon-button\">\r\n <button nz-button nzType=\"default\" (click)=\"btnCancel()\" type=\"button\"><i nz-icon nzType=\"cancel\"></i>\u53D6\u6D88</button>\r\n <button nz-button nzType=\"primary\" (click)=\"btnSave()\" type=\"button\"><i nz-icon nzType=\"save\"></i>\u4FDD\u5B58</button>\r\n</div>", styles: [":host ::ng-deep{display:flex;flex:1;flex-direction:column;width:100%;height:100%}:host ::ng-deep .name{display:flex;align-items:center;padding:20px}:host ::ng-deep .name span{margin-right:3px;color:red}:host ::ng-deep .name label:after{padding:0 8px 0 5px;content:\":\"}:host ::ng-deep .name input{width:300px}:host ::ng-deep .codemirror{flex:1;padding:0 20px 15px}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "ngmodule", type: FormsModule }, { kind: "directive", type: i5.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { kind: "directive", type: i5.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i5.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "ngmodule", type: NzButtonModule }, { kind: "component", type: i6.NzButtonComponent, selector: "button[nz-button], a[nz-button]", inputs: ["nzBlock", "nzGhost", "nzSearch", "nzLoading", "nzDanger", "disabled", "tabIndex", "nzType", "nzShape", "nzSize"], exportAs: ["nzButton"] }, { kind: "directive", type: i7.ɵ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: i8.NzWaveDirective, selector: "[nz-wave],button[nz-button]:not([nzType=\"link\"]):not([nzType=\"text\"])", inputs: ["nzWaveExtraNode"], exportAs: ["nzWave"] }, { kind: "ngmodule", type: NzInputModule }, { kind: "directive", type: i9.NzInputDirective, selector: "input[nz-input],textarea[nz-input]", inputs: ["nzBorderless", "nzSize", "nzStepperless", "nzStatus", "disabled"], exportAs: ["nzInput"] }, { kind: "ngmodule", type: NzSpinModule }, { kind: "ngmodule", type: GramCodemirrorModule }, { kind: "component", type: i10.GramCodemirrorComponent, selector: "deon-codemirror", inputs: ["title", "name", "autoFocus", "fieldData", "options"], outputs: ["validationResult", "textChange"] }] });
195
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.15", type: FormulaMainComponent, isStandalone: true, selector: "formula-main", inputs: { config: "config" }, providers: [FormulaService], ngImport: i0, template: "<div class=\"name\">\r\n <span>*</span>\r\n <label>\u8868\u8FBE\u5F0F\u540D\u79F0</label>\r\n <input nz-input placeholder=\"\u8BF7\u8F93\u5165\u8868\u8FBE\u5F0F\u540D\u79F0\" [(ngModel)]=\"name\" />\r\n</div>\r\n\r\n<div class=\"codemirror\">\r\n <deon-codemirror #codemirror [title]=\"''\" (textChange)=\"textChange($event)\" [fieldData]=\"fieldData\"\r\n [options]=\"codeMirrorOptions\" [(ngModel)]=\"formulaValue\">\r\n </deon-codemirror>\r\n</div>\r\n\r\n<div class=\"deon-button\">\r\n <button nz-button nzType=\"default\" (click)=\"btnCancel()\" type=\"button\"><i nz-icon nzType=\"cancel\"></i>\u53D6\u6D88</button>\r\n <button nz-button nzType=\"primary\" (click)=\"btnSave()\" type=\"button\"><i nz-icon nzType=\"save\"></i>\u4FDD\u5B58</button>\r\n</div>", styles: [":host ::ng-deep{display:flex;flex:1;flex-direction:column;width:100%;height:100%}:host ::ng-deep .name{display:flex;align-items:center;padding:20px}:host ::ng-deep .name span{margin-right:3px;color:red}:host ::ng-deep .name label:after{padding:0 8px 0 5px;content:\":\"}:host ::ng-deep .name input{width:300px}:host ::ng-deep .codemirror{flex:1;padding:0 20px 15px}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "ngmodule", type: FormsModule }, { kind: "directive", type: i5.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { kind: "directive", type: i5.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i5.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "ngmodule", type: NzButtonModule }, { kind: "component", type: i6.NzButtonComponent, selector: "button[nz-button], a[nz-button]", inputs: ["nzBlock", "nzGhost", "nzSearch", "nzLoading", "nzDanger", "disabled", "tabIndex", "nzType", "nzShape", "nzSize"], exportAs: ["nzButton"] }, { kind: "directive", type: i7.ɵ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: i8.NzWaveDirective, selector: "[nz-wave],button[nz-button]:not([nzType=\"link\"]):not([nzType=\"text\"])", inputs: ["nzWaveExtraNode"], exportAs: ["nzWave"] }, { kind: "ngmodule", type: NzInputModule }, { kind: "directive", type: i9.NzInputDirective, selector: "input[nz-input],textarea[nz-input]", inputs: ["nzBorderless", "nzSize", "nzStepperless", "nzStatus", "disabled"], exportAs: ["nzInput"] }, { kind: "ngmodule", type: NzSpinModule }, { kind: "ngmodule", type: GramCodemirrorModule }, { kind: "component", type: i10.GramCodemirrorComponent, selector: "deon-codemirror", inputs: ["title", "name", "autoFocus", "fieldData", "functionData", "options"], outputs: ["validationResult", "textChange"] }] });
196
196
  }
197
197
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: FormulaMainComponent, decorators: [{
198
198
  type: Component,
@@ -350,7 +350,7 @@ class FormulaFormSettingComponent {
350
350
  });
351
351
  }
352
352
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: FormulaFormSettingComponent, deps: [{ token: i1._HttpClient }, { token: i2.NzDrawerRef }, { token: i3.NzMessageService }], target: i0.ɵɵFactoryTarget.Component });
353
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.15", type: FormulaFormSettingComponent, isStandalone: true, selector: "formula-form-setting", inputs: { config: "config" }, ngImport: i0, template: "<nz-spin [nzSpinning]=\"loading\" nzTip=\"\u62FC\u547D\u52A0\u8F7D\u4E2D...\" class=\"deon-list-spin\">\r\n <div class=\"name\">\r\n <label>\u540D\u79F0</label>\r\n <input nz-input placeholder=\"\u8BF7\u8F93\u5165\u540D\u79F0\" [(ngModel)]=\"name\" />\r\n </div>\r\n <div class=\"codemirror\" *ngIf=\"codeMirrorOptions!!\">\r\n <deon-codemirror #codemirror (textChange)=\"textChange($event)\" [options]=\"codeMirrorOptions\" [fieldData]=\"fieldData\"\r\n [(ngModel)]=\"formulaValue\">\r\n </deon-codemirror>\r\n </div>\r\n\r\n <div class=\"deon-button\" *ngIf=\"!config.isView\">\r\n <button nz-button nzType=\"default\" (click)=\"btnCancel()\" type=\"button\"><i nz-icon nzType=\"close\"></i>\u53D6\u6D88</button>\r\n <button nz-button nzType=\"primary\" (click)=\"btnSave()\" type=\"button\"><i nz-icon nzType=\"save\"></i>\u4FDD\u5B58</button>\r\n </div>\r\n</nz-spin>", styles: [":host ::ng-deep{display:flex;flex:1;flex-direction:column;width:100%;height:100%;padding:15px 0 0;overflow:hidden}:host ::ng-deep .name{display:flex;flex-direction:row;align-items:center;padding:0 0 15px 20px}:host ::ng-deep .name label:before{content:\"*\";color:red;padding:0 5px 0 0}:host ::ng-deep .name label:after{content:\":\";padding:0 8px 0 5px}:host ::ng-deep .name input{width:260px}:host ::ng-deep .codemirror{flex:1;padding:0 20px 15px;overflow-x:overlay;overflow-y:overlay}:host ::ng-deep .codemirror::-webkit-scrollbar{width:8px}:host ::ng-deep .codemirror::-webkit-scrollbar-thumb{background-color:#94949475;border-radius:7px}:host ::ng-deep .codemirror::-webkit-scrollbar-track{background-color:#fff}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i4.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "ngmodule", type: FormsModule }, { kind: "directive", type: i5.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { kind: "directive", type: i5.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i5.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "ngmodule", type: NzButtonModule }, { kind: "component", type: i6.NzButtonComponent, selector: "button[nz-button], a[nz-button]", inputs: ["nzBlock", "nzGhost", "nzSearch", "nzLoading", "nzDanger", "disabled", "tabIndex", "nzType", "nzShape", "nzSize"], exportAs: ["nzButton"] }, { kind: "directive", type: i7.ɵ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: i8.NzWaveDirective, selector: "[nz-wave],button[nz-button]:not([nzType=\"link\"]):not([nzType=\"text\"])", inputs: ["nzWaveExtraNode"], exportAs: ["nzWave"] }, { kind: "ngmodule", type: NzInputModule }, { kind: "directive", type: i9.NzInputDirective, selector: "input[nz-input],textarea[nz-input]", inputs: ["nzBorderless", "nzSize", "nzStepperless", "nzStatus", "disabled"], exportAs: ["nzInput"] }, { kind: "ngmodule", type: NzSpinModule }, { kind: "component", type: i10$1.NzSpinComponent, selector: "nz-spin", inputs: ["nzIndicator", "nzSize", "nzTip", "nzDelay", "nzSimple", "nzSpinning"], exportAs: ["nzSpin"] }, { kind: "ngmodule", type: GramCodemirrorModule }, { kind: "component", type: i10.GramCodemirrorComponent, selector: "deon-codemirror", inputs: ["title", "name", "autoFocus", "fieldData", "options"], outputs: ["validationResult", "textChange"] }] });
353
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.15", type: FormulaFormSettingComponent, isStandalone: true, selector: "formula-form-setting", inputs: { config: "config" }, ngImport: i0, template: "<nz-spin [nzSpinning]=\"loading\" nzTip=\"\u62FC\u547D\u52A0\u8F7D\u4E2D...\" class=\"deon-list-spin\">\r\n <div class=\"name\">\r\n <label>\u540D\u79F0</label>\r\n <input nz-input placeholder=\"\u8BF7\u8F93\u5165\u540D\u79F0\" [(ngModel)]=\"name\" />\r\n </div>\r\n <div class=\"codemirror\" *ngIf=\"codeMirrorOptions!!\">\r\n <deon-codemirror #codemirror (textChange)=\"textChange($event)\" [options]=\"codeMirrorOptions\" [fieldData]=\"fieldData\"\r\n [(ngModel)]=\"formulaValue\">\r\n </deon-codemirror>\r\n </div>\r\n\r\n <div class=\"deon-button\" *ngIf=\"!config.isView\">\r\n <button nz-button nzType=\"default\" (click)=\"btnCancel()\" type=\"button\"><i nz-icon nzType=\"close\"></i>\u53D6\u6D88</button>\r\n <button nz-button nzType=\"primary\" (click)=\"btnSave()\" type=\"button\"><i nz-icon nzType=\"save\"></i>\u4FDD\u5B58</button>\r\n </div>\r\n</nz-spin>", styles: [":host ::ng-deep{display:flex;flex:1;flex-direction:column;width:100%;height:100%;padding:15px 0 0;overflow:hidden}:host ::ng-deep .name{display:flex;flex-direction:row;align-items:center;padding:0 0 15px 20px}:host ::ng-deep .name label:before{content:\"*\";color:red;padding:0 5px 0 0}:host ::ng-deep .name label:after{content:\":\";padding:0 8px 0 5px}:host ::ng-deep .name input{width:260px}:host ::ng-deep .codemirror{flex:1;padding:0 20px 15px;overflow-x:overlay;overflow-y:overlay}:host ::ng-deep .codemirror::-webkit-scrollbar{width:8px}:host ::ng-deep .codemirror::-webkit-scrollbar-thumb{background-color:#94949475;border-radius:7px}:host ::ng-deep .codemirror::-webkit-scrollbar-track{background-color:#fff}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i4.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "ngmodule", type: FormsModule }, { kind: "directive", type: i5.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { kind: "directive", type: i5.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i5.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "ngmodule", type: NzButtonModule }, { kind: "component", type: i6.NzButtonComponent, selector: "button[nz-button], a[nz-button]", inputs: ["nzBlock", "nzGhost", "nzSearch", "nzLoading", "nzDanger", "disabled", "tabIndex", "nzType", "nzShape", "nzSize"], exportAs: ["nzButton"] }, { kind: "directive", type: i7.ɵ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: i8.NzWaveDirective, selector: "[nz-wave],button[nz-button]:not([nzType=\"link\"]):not([nzType=\"text\"])", inputs: ["nzWaveExtraNode"], exportAs: ["nzWave"] }, { kind: "ngmodule", type: NzInputModule }, { kind: "directive", type: i9.NzInputDirective, selector: "input[nz-input],textarea[nz-input]", inputs: ["nzBorderless", "nzSize", "nzStepperless", "nzStatus", "disabled"], exportAs: ["nzInput"] }, { kind: "ngmodule", type: NzSpinModule }, { kind: "component", type: i10$1.NzSpinComponent, selector: "nz-spin", inputs: ["nzIndicator", "nzSize", "nzTip", "nzDelay", "nzSimple", "nzSpinning"], exportAs: ["nzSpin"] }, { kind: "ngmodule", type: GramCodemirrorModule }, { kind: "component", type: i10.GramCodemirrorComponent, selector: "deon-codemirror", inputs: ["title", "name", "autoFocus", "fieldData", "functionData", "options"], outputs: ["validationResult", "textChange"] }] });
354
354
  }
355
355
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: FormulaFormSettingComponent, decorators: [{
356
356
  type: Component,
@@ -447,7 +447,7 @@ class FormulaFormItemComponent {
447
447
  return key && !key.startsWith('d_') ? `d_${key}` : key;
448
448
  }
449
449
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: FormulaFormItemComponent, deps: [{ token: i1._HttpClient }, { token: i2.NzDrawerRef }, { token: i3.NzMessageService }], target: i0.ɵɵFactoryTarget.Component });
450
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.15", type: FormulaFormItemComponent, isStandalone: true, selector: "formula-form-item", inputs: { config: "config" }, providers: [FormulaService], ngImport: i0, template: "<nz-spin [nzSpinning]=\"loading\" nzTip=\"\u62FC\u547D\u52A0\u8F7D\u4E2D...\" class=\"deon-list-spin\">\r\n <div class=\"codemirror\" *ngIf=\"codeMirrorOptions!!\">\r\n <deon-codemirror #codemirror (textChange)=\"textChange($event)\" [options]=\"codeMirrorOptions\" [fieldData]=\"fieldData\"\r\n [(ngModel)]=\"formulaValue\">\r\n </deon-codemirror>\r\n </div>\r\n\r\n <div class=\"deon-button\" *ngIf=\"!config.isView\">\r\n <button nz-button nzType=\"default\" (click)=\"btnCancel()\" type=\"button\"><i nz-icon nzType=\"close\"></i>\u53D6\u6D88</button>\r\n <button nz-button nzType=\"primary\" (click)=\"btnSave()\" type=\"button\"><i nz-icon nzType=\"save\"></i>\u4FDD\u5B58</button>\r\n </div>\r\n</nz-spin>", styles: [":host ::ng-deep{display:flex;flex:1;flex-direction:column;width:100%;height:100%;padding:15px 0 0;overflow:hidden}:host ::ng-deep .codemirror{flex:1;padding:0 20px 15px;overflow-x:overlay;overflow-y:overlay}:host ::ng-deep .codemirror::-webkit-scrollbar{width:8px}:host ::ng-deep .codemirror::-webkit-scrollbar-thumb{background-color:#94949475;border-radius:7px}:host ::ng-deep .codemirror::-webkit-scrollbar-track{background-color:#fff}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i4.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "ngmodule", type: FormsModule }, { kind: "directive", type: i5.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i5.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "ngmodule", type: NzButtonModule }, { kind: "component", type: i6.NzButtonComponent, selector: "button[nz-button], a[nz-button]", inputs: ["nzBlock", "nzGhost", "nzSearch", "nzLoading", "nzDanger", "disabled", "tabIndex", "nzType", "nzShape", "nzSize"], exportAs: ["nzButton"] }, { kind: "directive", type: i7.ɵ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: i8.NzWaveDirective, selector: "[nz-wave],button[nz-button]:not([nzType=\"link\"]):not([nzType=\"text\"])", inputs: ["nzWaveExtraNode"], exportAs: ["nzWave"] }, { kind: "ngmodule", type: NzInputModule }, { kind: "ngmodule", type: NzSpinModule }, { kind: "component", type: i10$1.NzSpinComponent, selector: "nz-spin", inputs: ["nzIndicator", "nzSize", "nzTip", "nzDelay", "nzSimple", "nzSpinning"], exportAs: ["nzSpin"] }, { kind: "ngmodule", type: GramCodemirrorModule }, { kind: "component", type: i10.GramCodemirrorComponent, selector: "deon-codemirror", inputs: ["title", "name", "autoFocus", "fieldData", "options"], outputs: ["validationResult", "textChange"] }] });
450
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.15", type: FormulaFormItemComponent, isStandalone: true, selector: "formula-form-item", inputs: { config: "config" }, providers: [FormulaService], ngImport: i0, template: "<nz-spin [nzSpinning]=\"loading\" nzTip=\"\u62FC\u547D\u52A0\u8F7D\u4E2D...\" class=\"deon-list-spin\">\r\n <div class=\"codemirror\" *ngIf=\"codeMirrorOptions!!\">\r\n <deon-codemirror #codemirror (textChange)=\"textChange($event)\" [options]=\"codeMirrorOptions\" [fieldData]=\"fieldData\"\r\n [(ngModel)]=\"formulaValue\">\r\n </deon-codemirror>\r\n </div>\r\n\r\n <div class=\"deon-button\" *ngIf=\"!config.isView\">\r\n <button nz-button nzType=\"default\" (click)=\"btnCancel()\" type=\"button\"><i nz-icon nzType=\"close\"></i>\u53D6\u6D88</button>\r\n <button nz-button nzType=\"primary\" (click)=\"btnSave()\" type=\"button\"><i nz-icon nzType=\"save\"></i>\u4FDD\u5B58</button>\r\n </div>\r\n</nz-spin>", styles: [":host ::ng-deep{display:flex;flex:1;flex-direction:column;width:100%;height:100%;padding:15px 0 0;overflow:hidden}:host ::ng-deep .codemirror{flex:1;padding:0 20px 15px;overflow-x:overlay;overflow-y:overlay}:host ::ng-deep .codemirror::-webkit-scrollbar{width:8px}:host ::ng-deep .codemirror::-webkit-scrollbar-thumb{background-color:#94949475;border-radius:7px}:host ::ng-deep .codemirror::-webkit-scrollbar-track{background-color:#fff}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i4.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "ngmodule", type: FormsModule }, { kind: "directive", type: i5.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i5.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "ngmodule", type: NzButtonModule }, { kind: "component", type: i6.NzButtonComponent, selector: "button[nz-button], a[nz-button]", inputs: ["nzBlock", "nzGhost", "nzSearch", "nzLoading", "nzDanger", "disabled", "tabIndex", "nzType", "nzShape", "nzSize"], exportAs: ["nzButton"] }, { kind: "directive", type: i7.ɵ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: i8.NzWaveDirective, selector: "[nz-wave],button[nz-button]:not([nzType=\"link\"]):not([nzType=\"text\"])", inputs: ["nzWaveExtraNode"], exportAs: ["nzWave"] }, { kind: "ngmodule", type: NzInputModule }, { kind: "ngmodule", type: NzSpinModule }, { kind: "component", type: i10$1.NzSpinComponent, selector: "nz-spin", inputs: ["nzIndicator", "nzSize", "nzTip", "nzDelay", "nzSimple", "nzSpinning"], exportAs: ["nzSpin"] }, { kind: "ngmodule", type: GramCodemirrorModule }, { kind: "component", type: i10.GramCodemirrorComponent, selector: "deon-codemirror", inputs: ["title", "name", "autoFocus", "fieldData", "functionData", "options"], outputs: ["validationResult", "textChange"] }] });
451
451
  }
452
452
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: FormulaFormItemComponent, decorators: [{
453
453
  type: Component,
@@ -470,6 +470,7 @@ class FormulaRuleEventComponent {
470
470
  formulaValue = null;
471
471
  formulaTxt = null;
472
472
  fieldData = [];
473
+ functionData = [];
473
474
  codeMirrorOptions = {};
474
475
  set config(value) {
475
476
  this._config = value;
@@ -491,15 +492,20 @@ class FormulaRuleEventComponent {
491
492
  lineNumbers: false,
492
493
  matchBrackets: true,
493
494
  specialChars: /[\u0000-\u001f\u007f\u00ad\u200c-\u200f\u2028\u2029\ufeff]/,
494
- mode: "formula",
495
+ mode: 'formula',
495
496
  labelMap: null,
496
497
  };
497
498
  }
498
499
  getPageData() {
499
500
  this.loading = true;
500
- if (this.config && this.config.sourceField && this.config.sourceField.length > 0) {
501
+ if (this.config &&
502
+ this.config.sourceField &&
503
+ this.config.sourceField.length > 0) {
501
504
  this.fieldData = _.cloneDeep(this.config.sourceField);
502
505
  }
506
+ if (Array.isArray(this.config?.functionData)) {
507
+ this.functionData = _.cloneDeep(this.config.functionData);
508
+ }
503
509
  if (this.config?.value) {
504
510
  this.formulaValue = this.config.value;
505
511
  }
@@ -522,21 +528,16 @@ class FormulaRuleEventComponent {
522
528
  type: 'save',
523
529
  data: {
524
530
  value: this.formulaValue,
525
- text: this.formulaTxt
531
+ text: this.formulaTxt,
526
532
  },
527
533
  });
528
534
  }
529
535
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: FormulaRuleEventComponent, deps: [{ token: i2.NzDrawerRef }], target: i0.ɵɵFactoryTarget.Component });
530
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.15", type: FormulaRuleEventComponent, isStandalone: true, selector: "formula-rule-event", inputs: { config: "config" }, ngImport: i0, template: "<div class=\"codemirror\">\r\n <deon-codemirror #codemirror [title]=\"config?.title\" (textChange)=\"textChange($event)\" [fieldData]=\"fieldData\"\r\n [options]=\"codeMirrorOptions\" [(ngModel)]=\"formulaValue\">\r\n </deon-codemirror>\r\n</div>\r\n\r\n<div class=\"deon-button\">\r\n <button nz-button nzType=\"default\" (click)=\"btnCancel()\" type=\"button\"><i nz-icon nzType=\"cancel\"></i>\u53D6\u6D88</button>\r\n <button nz-button nzType=\"primary\" (click)=\"btnSave()\" type=\"button\"><i nz-icon nzType=\"save\"></i>\u4FDD\u5B58</button>\r\n</div>", styles: [":host ::ng-deep{display:flex;flex:1;flex-direction:column;width:100%;height:100%}:host ::ng-deep .codemirror{flex:1;padding:20px 20px 15px}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "ngmodule", type: FormsModule }, { kind: "directive", type: i5.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i5.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "ngmodule", type: NzButtonModule }, { kind: "component", type: i6.NzButtonComponent, selector: "button[nz-button], a[nz-button]", inputs: ["nzBlock", "nzGhost", "nzSearch", "nzLoading", "nzDanger", "disabled", "tabIndex", "nzType", "nzShape", "nzSize"], exportAs: ["nzButton"] }, { kind: "directive", type: i7.ɵ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: i8.NzWaveDirective, selector: "[nz-wave],button[nz-button]:not([nzType=\"link\"]):not([nzType=\"text\"])", inputs: ["nzWaveExtraNode"], exportAs: ["nzWave"] }, { kind: "ngmodule", type: GramCodemirrorModule }, { kind: "component", type: i10.GramCodemirrorComponent, selector: "deon-codemirror", inputs: ["title", "name", "autoFocus", "fieldData", "options"], outputs: ["validationResult", "textChange"] }] });
536
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.15", type: FormulaRuleEventComponent, isStandalone: true, selector: "formula-rule-event", inputs: { config: "config" }, ngImport: i0, template: "<div class=\"codemirror\">\n <deon-codemirror\n #codemirror\n [title]=\"config?.title\"\n (textChange)=\"textChange($event)\"\n [fieldData]=\"fieldData\"\n [functionData]=\"functionData\"\n [options]=\"codeMirrorOptions\"\n [(ngModel)]=\"formulaValue\"\n >\n </deon-codemirror>\n</div>\n\n<div class=\"deon-button\">\n <button nz-button nzType=\"default\" (click)=\"btnCancel()\" type=\"button\">\n <i nz-icon nzType=\"cancel\"></i>\u53D6\u6D88\n </button>\n <button nz-button nzType=\"primary\" (click)=\"btnSave()\" type=\"button\">\n <i nz-icon nzType=\"save\"></i>\u4FDD\u5B58\n </button>\n</div>\n", styles: [":host ::ng-deep{display:flex;flex:1;flex-direction:column;width:100%;height:100%}:host ::ng-deep .codemirror{flex:1;padding:20px 20px 15px}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "ngmodule", type: FormsModule }, { kind: "directive", type: i5.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i5.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "ngmodule", type: NzButtonModule }, { kind: "component", type: i6.NzButtonComponent, selector: "button[nz-button], a[nz-button]", inputs: ["nzBlock", "nzGhost", "nzSearch", "nzLoading", "nzDanger", "disabled", "tabIndex", "nzType", "nzShape", "nzSize"], exportAs: ["nzButton"] }, { kind: "directive", type: i7.ɵ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: i8.NzWaveDirective, selector: "[nz-wave],button[nz-button]:not([nzType=\"link\"]):not([nzType=\"text\"])", inputs: ["nzWaveExtraNode"], exportAs: ["nzWave"] }, { kind: "ngmodule", type: GramCodemirrorModule }, { kind: "component", type: i10.GramCodemirrorComponent, selector: "deon-codemirror", inputs: ["title", "name", "autoFocus", "fieldData", "functionData", "options"], outputs: ["validationResult", "textChange"] }] });
531
537
  }
532
538
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: FormulaRuleEventComponent, decorators: [{
533
539
  type: Component,
534
- args: [{ selector: 'formula-rule-event', imports: [
535
- CommonModule,
536
- FormsModule,
537
- NzButtonModule,
538
- GramCodemirrorModule
539
- ], template: "<div class=\"codemirror\">\r\n <deon-codemirror #codemirror [title]=\"config?.title\" (textChange)=\"textChange($event)\" [fieldData]=\"fieldData\"\r\n [options]=\"codeMirrorOptions\" [(ngModel)]=\"formulaValue\">\r\n </deon-codemirror>\r\n</div>\r\n\r\n<div class=\"deon-button\">\r\n <button nz-button nzType=\"default\" (click)=\"btnCancel()\" type=\"button\"><i nz-icon nzType=\"cancel\"></i>\u53D6\u6D88</button>\r\n <button nz-button nzType=\"primary\" (click)=\"btnSave()\" type=\"button\"><i nz-icon nzType=\"save\"></i>\u4FDD\u5B58</button>\r\n</div>", styles: [":host ::ng-deep{display:flex;flex:1;flex-direction:column;width:100%;height:100%}:host ::ng-deep .codemirror{flex:1;padding:20px 20px 15px}\n"] }]
540
+ args: [{ selector: 'formula-rule-event', imports: [CommonModule, FormsModule, NzButtonModule, GramCodemirrorModule], template: "<div class=\"codemirror\">\n <deon-codemirror\n #codemirror\n [title]=\"config?.title\"\n (textChange)=\"textChange($event)\"\n [fieldData]=\"fieldData\"\n [functionData]=\"functionData\"\n [options]=\"codeMirrorOptions\"\n [(ngModel)]=\"formulaValue\"\n >\n </deon-codemirror>\n</div>\n\n<div class=\"deon-button\">\n <button nz-button nzType=\"default\" (click)=\"btnCancel()\" type=\"button\">\n <i nz-icon nzType=\"cancel\"></i>\u53D6\u6D88\n </button>\n <button nz-button nzType=\"primary\" (click)=\"btnSave()\" type=\"button\">\n <i nz-icon nzType=\"save\"></i>\u4FDD\u5B58\n </button>\n</div>\n", styles: [":host ::ng-deep{display:flex;flex:1;flex-direction:column;width:100%;height:100%}:host ::ng-deep .codemirror{flex:1;padding:20px 20px 15px}\n"] }]
540
541
  }], ctorParameters: () => [{ type: i2.NzDrawerRef }], propDecorators: { config: [{
541
542
  type: Input
542
543
  }] } });
@@ -1 +1 @@
1
- {"version":3,"file":"other.formula.mjs","sources":["../../../../packages/biz-comm/other/formula/src/formula.service.ts","../../../../packages/biz-comm/other/formula/src/default/index.ts","../../../../packages/biz-comm/other/formula/src/default/index.html","../../../../packages/biz-comm/other/formula/src/form-setting/index.ts","../../../../packages/biz-comm/other/formula/src/form-setting/index.html","../../../../packages/biz-comm/other/formula/src/form-item/index.ts","../../../../packages/biz-comm/other/formula/src/form-item/index.html","../../../../packages/biz-comm/other/formula/src/rule-event/index.ts","../../../../packages/biz-comm/other/formula/src/rule-event/index.html","../../../../packages/biz-comm/other/formula/src/index.module.ts","../../../../packages/biz-comm/other/formula/other.formula.ts"],"sourcesContent":["import { Directive } from '@angular/core';\r\nimport { _HttpClient } from '@delon/theme';\r\n@Directive()\r\nexport class FormulaService {\r\n\r\n loading: boolean = true;\r\n\r\n codeMirrorOptions: any = null;\r\n\r\n /**\r\n * ID \r\n */\r\n formulaValue: any = null;\r\n\r\n /**\r\n * Name\r\n */\r\n formulaTxt: any = null;\r\n\r\n /**\r\n * 左边项目集合\r\n */\r\n fieldData: any[] = [];\r\n\r\n initOptions() {\r\n this.codeMirrorOptions = {\r\n autoCloseBrackets: true,\r\n keywords: [],\r\n textWrapping: true,\r\n lineWrapping: true,\r\n lineNumbers: false,\r\n matchBrackets: true,\r\n specialChars:\r\n /[\\u0000-\\u001f\\u007f\\u00ad\\u200c-\\u200f\\u2028\\u2029\\ufeff]/,\r\n mode: \"formula\",\r\n labelMap: null,\r\n };\r\n }\r\n}","\r\nimport { Component, OnInit, Input, AfterViewInit } from '@angular/core';\r\nimport { CommonModule } from '@angular/common';\r\nimport { FormsModule } from '@angular/forms';\r\nimport { _HttpClient } from '@delon/theme';\r\nimport { NzMessageService } from 'ng-zorro-antd/message';\r\nimport { NzButtonModule } from 'ng-zorro-antd/button';\r\nimport { NzInputModule } from 'ng-zorro-antd/input';\r\nimport { NzSpinModule } from 'ng-zorro-antd/spin';\r\n\r\nimport { NzDrawerRef } from '@ebuilding/base/components/drawer';\r\nimport { ModuleAPI } from '@ebuilding/base/shared.var/shared.constant';\r\nimport { GramCodemirrorModule } from '@ebuilding/base/components/codemirror';\r\n\r\nimport { FormulaService } from \"../formula.service\";\r\nimport _ from 'lodash';\r\n\r\n@Component({\r\n selector: 'formula-main',\r\n templateUrl: './index.html',\r\n styleUrls: ['./index.less'],\r\n providers: [FormulaService],\r\n imports: [\r\n CommonModule,\r\n FormsModule,\r\n NzButtonModule,\r\n NzInputModule,\r\n NzSpinModule,\r\n GramCodemirrorModule\r\n ]\r\n})\r\nexport class FormulaMainComponent implements OnInit, AfterViewInit {\r\n _config: any = null;\r\n\r\n loading: boolean = true;\r\n name: any = null;\r\n formulaValue: any = null;\r\n formulaTxt: any = null;\r\n fieldData: any[] = [];\r\n codeMirrorOptions: any = {};\r\n dataInfo: any = null;\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(public http: _HttpClient, public drawerRef: NzDrawerRef<any>, public msg: NzMessageService, public formulaSrv: FormulaService) { }\r\n\r\n ngOnInit(): void { }\r\n\r\n ngAfterViewInit(): void {\r\n this.formulaSrv.codeMirrorOptions = {\r\n autoCloseBrackets: true,\r\n keywords: [],\r\n textWrapping: true,\r\n lineWrapping: true,\r\n lineNumbers: false,\r\n matchBrackets: true,\r\n specialChars:\r\n /[\\u0000-\\u001f\\u007f\\u00ad\\u200c-\\u200f\\u2028\\u2029\\ufeff]/,\r\n mode: \"formula\",\r\n labelMap: null,\r\n };\r\n this.codeMirrorOptions = {\r\n autoCloseBrackets: true,\r\n keywords: [],\r\n textWrapping: true,\r\n lineWrapping: true,\r\n lineNumbers: false,\r\n matchBrackets: true,\r\n specialChars:\r\n /[\\u0000-\\u001f\\u007f\\u00ad\\u200c-\\u200f\\u2028\\u2029\\ufeff]/,\r\n mode: \"formula\",\r\n labelMap: null,\r\n };\r\n }\r\n\r\n getPageData() {\r\n this.loading = true;\r\n if (this.config!! && this.config.sourceField!! && this.config.sourceField.length > 0) {\r\n this.fieldData = _.cloneDeep(this.config.sourceField);\r\n }\r\n if (this.config.type == \"EDIT\") {\r\n this.http.post(`${ModuleAPI.rule}/rule/formula/getInfoById/${this.config.formulaId}`).subscribe((res: any) => {\r\n if (res!! && res.success && res.result!!) {\r\n this.dataInfo = res.result;\r\n this.formulaValue = res.result.actualFormula;\r\n this.formulaTxt = res.result.actualFormulaTxt;\r\n }\r\n this.loading = false;\r\n });\r\n } else {\r\n this.loading = false;\r\n }\r\n }\r\n\r\n textChange(e: any) {\r\n this.formulaTxt = e;\r\n }\r\n\r\n btnCancel() {\r\n this.drawerRef.close({\r\n type: 'close',\r\n data: null,\r\n });\r\n }\r\n\r\n btnSave() {\r\n if (this.name == null || this.name == \"\") {\r\n this.msg.warning(\"请输入表达式名称\");\r\n return;\r\n }\r\n if (this.config.type == \"ADD\") {\r\n this.saveAdd();\r\n } else {\r\n this.saveUpdate();\r\n }\r\n }\r\n\r\n saveAdd() {\r\n this.http.post(`${ModuleAPI.rule}/rule/formula/addInfo`, {\r\n sourceId: this.config.sourceId,\r\n sourceType: this.config.sourceType,\r\n name: this.name,\r\n actualFormula: this.formulaValue,\r\n actualFormulaTxt: this.formulaTxt\r\n }).subscribe((res: any) => {\r\n if (res.success) {\r\n this.msg.success(\"保存成功\");\r\n this.config[\"id\"] = res.result;\r\n this.drawerRef.close({\r\n type: 'save',\r\n data: {\r\n formulaId: this.config[\"id\"],\r\n formulaValue: this.formulaValue\r\n },\r\n });\r\n }\r\n this.loading = false;\r\n });\r\n }\r\n\r\n saveUpdate() {\r\n this.http.post(`${ModuleAPI.rule}/rule/formula/updateInfo`, {\r\n id: this.config.id,\r\n sourceId: this.config.sourceId,\r\n sourceType: this.config.sourceType,\r\n name: this.name,\r\n actualFormula: this.formulaValue,\r\n actualFormulaTxt: this.formulaTxt\r\n }).subscribe((res: any) => {\r\n if (res.success) {\r\n this.msg.success(\"保存成功\");\r\n this.drawerRef.close({\r\n type: 'save',\r\n data: {\r\n formulaId: this.config[\"id\"],\r\n formulaValue: this.formulaValue\r\n },\r\n });\r\n }\r\n this.loading = false;\r\n });\r\n }\r\n\r\n}","<div class=\"name\">\r\n <span>*</span>\r\n <label>表达式名称</label>\r\n <input nz-input placeholder=\"请输入表达式名称\" [(ngModel)]=\"name\" />\r\n</div>\r\n\r\n<div class=\"codemirror\">\r\n <deon-codemirror #codemirror [title]=\"''\" (textChange)=\"textChange($event)\" [fieldData]=\"fieldData\"\r\n [options]=\"codeMirrorOptions\" [(ngModel)]=\"formulaValue\">\r\n </deon-codemirror>\r\n</div>\r\n\r\n<div class=\"deon-button\">\r\n <button nz-button nzType=\"default\" (click)=\"btnCancel()\" type=\"button\"><i nz-icon nzType=\"cancel\"></i>取消</button>\r\n <button nz-button nzType=\"primary\" (click)=\"btnSave()\" type=\"button\"><i nz-icon nzType=\"save\"></i>保存</button>\r\n</div>","import { Component, OnInit, Input, AfterViewInit } from '@angular/core';\r\nimport { CommonModule } from '@angular/common';\r\nimport { FormsModule } from '@angular/forms';\r\nimport { _HttpClient } from '@delon/theme';\r\nimport { NzButtonModule } from 'ng-zorro-antd/button';\r\nimport { NzInputModule } from 'ng-zorro-antd/input';\r\nimport { NzSpinModule } from 'ng-zorro-antd/spin';\r\nimport { NzMessageService } from 'ng-zorro-antd/message';\r\n\r\nimport { NzDrawerRef } from '@ebuilding/base/components/drawer';\r\nimport { ModuleAPI } from '@ebuilding/base/shared.var/shared.constant';\r\nimport { GramCodemirrorModule } from '@ebuilding/base/components/codemirror';\r\n\r\nimport { of, zip } from 'rxjs';\r\nimport _ from 'lodash';\r\n\r\n@Component({\r\n selector: 'formula-form-setting',\r\n templateUrl: './index.html',\r\n styleUrls: ['./index.less'],\r\n imports: [\r\n CommonModule,\r\n FormsModule,\r\n NzButtonModule,\r\n NzInputModule,\r\n NzSpinModule,\r\n GramCodemirrorModule\r\n ]\r\n})\r\nexport class FormulaFormSettingComponent implements OnInit, AfterViewInit {\r\n _config: any = null;\r\n\r\n loading: boolean = true;\r\n name: any = null;\r\n formulaValue: any = null;\r\n formulaTxt: any = null;\r\n fieldData: any[] = [];\r\n codeMirrorOptions: any = {};\r\n dataInfo: any = null;\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(public http: _HttpClient, public drawerRef: NzDrawerRef<any>, public msg: NzMessageService) { }\r\n\r\n ngOnInit(): void { }\r\n\r\n ngAfterViewInit(): void {\r\n this.codeMirrorOptions = {\r\n autoCloseBrackets: true,\r\n keywords: [],\r\n textWrapping: true,\r\n lineWrapping: true,\r\n lineNumbers: false,\r\n matchBrackets: true,\r\n specialChars: /[\\u0000-\\u001f\\u007f\\u00ad\\u200c-\\u200f\\u2028\\u2029\\ufeff]/,\r\n mode: 'formula',\r\n labelMap: null,\r\n };\r\n }\r\n\r\n getFormulaInfo() {\r\n if (this.config.type == 'EDIT') {\r\n return this.http.post(`${ModuleAPI.rule}/rule/formula/getInfoById/${this.config.id}`);\r\n } else {\r\n return of(null);\r\n }\r\n }\r\n\r\n getPageData() {\r\n this.loading = true;\r\n new Promise((resolve: any) => {\r\n zip(this.getFormulaInfo(), this.http.post(`${ModuleAPI.paas}/apaas/form/rule/${this.config.sourceId}`)).subscribe(\r\n ([a, b]) => {\r\n if (a!! && a.success && a.result!!) {\r\n this.dataInfo = a.result;\r\n this.name = this.dataInfo?.name;\r\n this.formulaValue = this.dataInfo?.actualFormula;\r\n this.formulaTxt = this.dataInfo?.actualFormulaTxt;\r\n }\r\n if (b.success && b.result!!) {\r\n this.fieldData = [\r\n {\r\n label: '表单字段',\r\n listField: b.result.map((res: any) => {\r\n return {\r\n key: res.itemKey,\r\n label: `[${res.tableName}]-${res.itemLabel}`,\r\n };\r\n }),\r\n },\r\n ];\r\n }\r\n this.loading = false;\r\n },\r\n () => {\r\n this.loading = false;\r\n },\r\n () => {\r\n this.loading = false;\r\n resolve();\r\n },\r\n );\r\n });\r\n }\r\n\r\n textChange(e: any) {\r\n this.formulaTxt = e;\r\n }\r\n\r\n btnCancel() {\r\n this.drawerRef.close({\r\n type: 'close',\r\n data: null,\r\n });\r\n }\r\n\r\n btnSave() {\r\n if (this.name == null || this.name == '') {\r\n this.msg.warning('请输入表达式名称');\r\n return;\r\n }\r\n if (this.config.type == 'ADD') {\r\n this.saveAdd();\r\n } else {\r\n this.saveUpdate();\r\n }\r\n }\r\n\r\n saveAdd() {\r\n this.http\r\n .post(`${ModuleAPI.rule}/rule/formula/addInfo`, {\r\n sourceId: this.config.sourceId,\r\n sourceType: 'FORM',\r\n name: this.name,\r\n actualFormula: this.formulaValue,\r\n actualFormulaTxt: this.formulaTxt,\r\n })\r\n .subscribe((res: any) => {\r\n if (res.success) {\r\n this.msg.success('保存成功');\r\n this.config['id'] = res.result;\r\n\r\n this.drawerRef.close({\r\n type: 'save',\r\n data: null,\r\n });\r\n }\r\n this.loading = false;\r\n });\r\n }\r\n\r\n saveUpdate() {\r\n this.http\r\n .post(`${ModuleAPI.rule}/rule/formula/updateInfo`, {\r\n id: this.config.id,\r\n sourceId: this.config.sourceId,\r\n sourceType: 'FORM',\r\n name: this.name,\r\n actualFormula: this.formulaValue,\r\n actualFormulaTxt: this.formulaTxt,\r\n })\r\n .subscribe((res: any) => {\r\n if (res.success) {\r\n this.msg.success('保存成功');\r\n\r\n this.drawerRef.close({\r\n type: 'save',\r\n data: null,\r\n });\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 <div class=\"name\">\r\n <label>名称</label>\r\n <input nz-input placeholder=\"请输入名称\" [(ngModel)]=\"name\" />\r\n </div>\r\n <div class=\"codemirror\" *ngIf=\"codeMirrorOptions!!\">\r\n <deon-codemirror #codemirror (textChange)=\"textChange($event)\" [options]=\"codeMirrorOptions\" [fieldData]=\"fieldData\"\r\n [(ngModel)]=\"formulaValue\">\r\n </deon-codemirror>\r\n </div>\r\n\r\n <div class=\"deon-button\" *ngIf=\"!config.isView\">\r\n <button nz-button nzType=\"default\" (click)=\"btnCancel()\" type=\"button\"><i nz-icon nzType=\"close\"></i>取消</button>\r\n <button nz-button nzType=\"primary\" (click)=\"btnSave()\" type=\"button\"><i nz-icon nzType=\"save\"></i>保存</button>\r\n </div>\r\n</nz-spin>","\r\nimport { Component, OnInit, Input, AfterViewInit } from '@angular/core';\r\nimport { CommonModule } from '@angular/common';\r\nimport { FormsModule } from '@angular/forms';\r\nimport { _HttpClient } from '@delon/theme';\r\nimport { NzButtonModule } from 'ng-zorro-antd/button';\r\nimport { NzInputModule } from 'ng-zorro-antd/input';\r\nimport { NzSpinModule } from 'ng-zorro-antd/spin';\r\nimport { NzMessageService } from 'ng-zorro-antd/message';\r\n\r\nimport { NzDrawerRef } from '@ebuilding/base/components/drawer';\r\nimport { GramCodemirrorModule } from '@ebuilding/base/components/codemirror';\r\nimport { FormulaService } from \"../formula.service\";\r\n\r\n/**\r\n * 为表单字段内部服务\r\n */\r\n@Component({\r\n selector: 'formula-form-item',\r\n templateUrl: './index.html',\r\n styleUrls: ['./index.less'],\r\n providers: [FormulaService],\r\n imports: [\r\n CommonModule,\r\n FormsModule,\r\n NzButtonModule,\r\n NzInputModule,\r\n NzSpinModule,\r\n GramCodemirrorModule\r\n ]\r\n})\r\nexport class FormulaFormItemComponent implements OnInit, AfterViewInit {\r\n _config: any = null;\r\n\r\n loading: boolean = true;\r\n name: any = null;\r\n formulaValue: any = null;\r\n formulaTxt: any = null;\r\n fieldData: any[] = [];\r\n codeMirrorOptions: any = {};\r\n dataInfo: any = null;\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(public http: _HttpClient, public drawerRef: NzDrawerRef<any>, public msg: NzMessageService) { }\r\n\r\n ngOnInit(): void { }\r\n\r\n ngAfterViewInit(): void {\r\n this.codeMirrorOptions = {\r\n autoCloseBrackets: true,\r\n keywords: [],\r\n textWrapping: true,\r\n lineWrapping: true,\r\n lineNumbers: false,\r\n matchBrackets: true,\r\n specialChars:\r\n /[\\u0000-\\u001f\\u007f\\u00ad\\u200c-\\u200f\\u2028\\u2029\\ufeff]/,\r\n mode: \"formula\",\r\n labelMap: null,\r\n };\r\n }\r\n\r\n getPageData() {\n if (this.config!! && this.config.data!! && this.config.data.id!!) {\n this.formulaValue = this.payrollItemKey(this.config.data.id);\n this.formulaTxt = this.config.data.name;\n }\n this.loading = false;\n }\n\r\n textChange(e: any) {\r\n if (!this.config.isView) {\r\n this.formulaTxt = e;\r\n }\r\n }\r\n\r\n btnCancel() {\r\n this.drawerRef.close({\r\n type: 'close',\r\n data: null,\r\n });\r\n }\r\n\r\n btnSave() {\n if (this.formulaValue!!) {\n this.drawerRef.close({\n type: 'save',\n data: {\n id: this.payrollItemKey(this.formulaValue),\n name: this.formulaTxt\n }\n });\n } else {\r\n this.drawerRef.close({\r\n type: 'save',\r\n data: null\r\n });\r\n }\n }\n\n private payrollItemKey(value: any) {\n const key = `${value || ''}`;\n return key && !key.startsWith('d_') ? `d_${key}` : key;\n }\n\n}\n","<nz-spin [nzSpinning]=\"loading\" nzTip=\"拼命加载中...\" class=\"deon-list-spin\">\r\n <div class=\"codemirror\" *ngIf=\"codeMirrorOptions!!\">\r\n <deon-codemirror #codemirror (textChange)=\"textChange($event)\" [options]=\"codeMirrorOptions\" [fieldData]=\"fieldData\"\r\n [(ngModel)]=\"formulaValue\">\r\n </deon-codemirror>\r\n </div>\r\n\r\n <div class=\"deon-button\" *ngIf=\"!config.isView\">\r\n <button nz-button nzType=\"default\" (click)=\"btnCancel()\" type=\"button\"><i nz-icon nzType=\"close\"></i>取消</button>\r\n <button nz-button nzType=\"primary\" (click)=\"btnSave()\" type=\"button\"><i nz-icon nzType=\"save\"></i>保存</button>\r\n </div>\r\n</nz-spin>","\r\nimport { Component, OnInit, Input, AfterViewInit } from '@angular/core';\r\nimport { CommonModule } from '@angular/common';\r\nimport { FormsModule } from '@angular/forms';\r\nimport { NzButtonModule } from 'ng-zorro-antd/button';\r\n\r\nimport { NzDrawerRef } from '@ebuilding/base/components/drawer';\r\nimport { GramCodemirrorModule } from '@ebuilding/base/components/codemirror';\r\nimport _ from 'lodash';\r\n\r\n@Component({\r\n selector: 'formula-rule-event',\r\n templateUrl: './index.html',\r\n styleUrls: ['./index.less'],\r\n imports: [\r\n CommonModule,\r\n FormsModule,\r\n NzButtonModule,\r\n GramCodemirrorModule\r\n ]\r\n})\r\nexport class FormulaRuleEventComponent implements OnInit, AfterViewInit {\r\n _config: any = null;\r\n\r\n loading: boolean = true;\r\n formulaValue: any = null;\r\n formulaTxt: any = null;\r\n fieldData: any[] = [];\r\n codeMirrorOptions: 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(public drawerRef: NzDrawerRef<any>) { }\r\n\r\n ngOnInit(): void { }\r\n\r\n ngAfterViewInit(): void {\r\n this.codeMirrorOptions = {\r\n autoCloseBrackets: true,\r\n keywords: [],\r\n textWrapping: true,\r\n lineWrapping: true,\r\n lineNumbers: false,\r\n matchBrackets: true,\r\n specialChars:\r\n /[\\u0000-\\u001f\\u007f\\u00ad\\u200c-\\u200f\\u2028\\u2029\\ufeff]/,\r\n mode: \"formula\",\r\n labelMap: null,\r\n };\r\n }\r\n\r\n getPageData() {\r\n this.loading = true;\r\n if (this.config!! && this.config.sourceField!! && this.config.sourceField.length > 0) {\r\n this.fieldData = _.cloneDeep(this.config.sourceField);\r\n }\r\n if (this.config?.value) {\r\n this.formulaValue = this.config.value;\r\n }\r\n if (this.config?.text) {\r\n this.formulaTxt = this.config.text;\r\n }\r\n this.loading = false;\r\n }\r\n\r\n textChange(e: any) {\r\n this.formulaTxt = e;\r\n }\r\n\r\n btnCancel() {\r\n this.drawerRef.close({\r\n type: 'close',\r\n data: null,\r\n });\r\n }\r\n\r\n btnSave() {\r\n this.drawerRef.close({\r\n type: 'save',\r\n data: {\r\n value: this.formulaValue,\r\n text: this.formulaTxt\r\n },\r\n });\r\n }\r\n\r\n}","<div class=\"codemirror\">\r\n <deon-codemirror #codemirror [title]=\"config?.title\" (textChange)=\"textChange($event)\" [fieldData]=\"fieldData\"\r\n [options]=\"codeMirrorOptions\" [(ngModel)]=\"formulaValue\">\r\n </deon-codemirror>\r\n</div>\r\n\r\n<div class=\"deon-button\">\r\n <button nz-button nzType=\"default\" (click)=\"btnCancel()\" type=\"button\"><i nz-icon nzType=\"cancel\"></i>取消</button>\r\n <button nz-button nzType=\"primary\" (click)=\"btnSave()\" type=\"button\"><i nz-icon nzType=\"save\"></i>保存</button>\r\n</div>","import { NgModule } from '@angular/core';\r\nimport { FormulaMainComponent } from './default/index';\r\nimport { FormulaFormSettingComponent } from './form-setting/index';\r\nimport { FormulaFormItemComponent } from './form-item/index';\r\nimport { FormulaRuleEventComponent } from './rule-event/index';\r\nconst components: any[] = [FormulaMainComponent, FormulaFormSettingComponent, FormulaFormItemComponent, FormulaRuleEventComponent];\r\n\r\n@NgModule({\r\n imports: [...components],\r\n exports: [...components],\r\n})\r\nexport class FormulaModule { }\r\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":["i4.FormulaService","i11","i1","i2","i3","i4","i5","i6"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;MAGa,cAAc,CAAA;IAEvB,OAAO,GAAY,IAAI;IAEvB,iBAAiB,GAAQ,IAAI;AAE7B;;AAEG;IACH,YAAY,GAAQ,IAAI;AAExB;;AAEG;IACH,UAAU,GAAQ,IAAI;AAEtB;;AAEG;IACH,SAAS,GAAU,EAAE;IAErB,WAAW,GAAA;QACP,IAAI,CAAC,iBAAiB,GAAG;AACrB,YAAA,iBAAiB,EAAE,IAAI;AACvB,YAAA,QAAQ,EAAE,EAAE;AACZ,YAAA,YAAY,EAAE,IAAI;AAClB,YAAA,YAAY,EAAE,IAAI;AAClB,YAAA,WAAW,EAAE,KAAK;AAClB,YAAA,aAAa,EAAE,IAAI;AACnB,YAAA,YAAY,EACR,4DAA4D;AAChE,YAAA,IAAI,EAAE,SAAS;AACf,YAAA,QAAQ,EAAE,IAAI;SACjB;;wGAjCI,cAAc,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA;4FAAd,cAAc,EAAA,YAAA,EAAA,IAAA,EAAA,QAAA,EAAA,EAAA,EAAA,CAAA;;4FAAd,cAAc,EAAA,UAAA,EAAA,CAAA;kBAD1B;;;MC6BY,oBAAoB,CAAA;AAoBZ,IAAA,IAAA;AAA0B,IAAA,SAAA;AAAoC,IAAA,GAAA;AAA8B,IAAA,UAAA;IAnB/G,OAAO,GAAQ,IAAI;IAEnB,O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A,+IAAA,CAAA,EAAA;gFAYG,MAAM,EAAA,CAAA;sBADT;;;AEzBH,MAAM,UAAU,GAAU,CAAC,oBAAoB,EAAE,2BAA2B,EAAE,wBAAwB,EAAE,yBAAyB,CAAC;MAMrH,aAAa,CAAA;wGAAb,aAAa,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,QAAA,EAAA,CAAA;AAAb,IAAA,OAAA,IAAA,GAAA,EAAA,CAAA,mBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,SAAA,EAAA,QAAA,EAAA,EAAA,EAAA,IAAA,EAAA,aAAa,EANC,OAAA,EAAA,CAAA,oBAAoB,EAAE,2BAA2B,EAAE,wBAAwB,EAAE,yBAAyB,CAAA,EAAA,OAAA,EAAA,CAAtG,oBAAoB,EAAE,2BAA2B,EAAE,wBAAwB,EAAE,yBAAyB,CAAA,EAAA,CAAA;AAMpH,IAAA,OAAA,IAAA,GAAA,EAAA,CAAA,mBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,SAAA,EAAA,QAAA,EAAA,EAAA,EAAA,IAAA,EAAA,aAAa,YAHX,UAAU,CAAA,EAAA,CAAA;;4FAGZ,aAAa,EAAA,UAAA,EAAA,CAAA;kBAJzB,QAAQ;AAAC,YAAA,IAAA,EAAA,CAAA;AACR,oBAAA,OAAO,EAAE,CAAC,GAAG,UAAU,CAAC;AACxB,oBAAA,OAAO,EAAE,CAAC,GAAG,UAAU,CAAC;AACzB,iBAAA;;;ACVD;;AAEG;;;;"}
1
+ {"version":3,"file":"other.formula.mjs","sources":["../../../../packages/biz-comm/other/formula/src/formula.service.ts","../../../../packages/biz-comm/other/formula/src/default/index.ts","../../../../packages/biz-comm/other/formula/src/default/index.html","../../../../packages/biz-comm/other/formula/src/form-setting/index.ts","../../../../packages/biz-comm/other/formula/src/form-setting/index.html","../../../../packages/biz-comm/other/formula/src/form-item/index.ts","../../../../packages/biz-comm/other/formula/src/form-item/index.html","../../../../packages/biz-comm/other/formula/src/rule-event/index.ts","../../../../packages/biz-comm/other/formula/src/rule-event/index.html","../../../../packages/biz-comm/other/formula/src/index.module.ts","../../../../packages/biz-comm/other/formula/other.formula.ts"],"sourcesContent":["import { Directive } from '@angular/core';\r\nimport { _HttpClient } from '@delon/theme';\r\n@Directive()\r\nexport class FormulaService {\r\n\r\n loading: boolean = true;\r\n\r\n codeMirrorOptions: any = null;\r\n\r\n /**\r\n * ID \r\n */\r\n formulaValue: any = null;\r\n\r\n /**\r\n * Name\r\n */\r\n formulaTxt: any = null;\r\n\r\n /**\r\n * 左边项目集合\r\n */\r\n fieldData: any[] = [];\r\n\r\n initOptions() {\r\n this.codeMirrorOptions = {\r\n autoCloseBrackets: true,\r\n keywords: [],\r\n textWrapping: true,\r\n lineWrapping: true,\r\n lineNumbers: false,\r\n matchBrackets: true,\r\n specialChars:\r\n /[\\u0000-\\u001f\\u007f\\u00ad\\u200c-\\u200f\\u2028\\u2029\\ufeff]/,\r\n mode: \"formula\",\r\n labelMap: null,\r\n };\r\n }\r\n}","\r\nimport { Component, OnInit, Input, AfterViewInit } from '@angular/core';\r\nimport { CommonModule } from '@angular/common';\r\nimport { FormsModule } from '@angular/forms';\r\nimport { _HttpClient } from '@delon/theme';\r\nimport { NzMessageService } from 'ng-zorro-antd/message';\r\nimport { NzButtonModule } from 'ng-zorro-antd/button';\r\nimport { NzInputModule } from 'ng-zorro-antd/input';\r\nimport { NzSpinModule } from 'ng-zorro-antd/spin';\r\n\r\nimport { NzDrawerRef } from '@ebuilding/base/components/drawer';\r\nimport { ModuleAPI } from '@ebuilding/base/shared.var/shared.constant';\r\nimport { GramCodemirrorModule } from '@ebuilding/base/components/codemirror';\r\n\r\nimport { FormulaService } from \"../formula.service\";\r\nimport _ from 'lodash';\r\n\r\n@Component({\r\n selector: 'formula-main',\r\n templateUrl: './index.html',\r\n styleUrls: ['./index.less'],\r\n providers: [FormulaService],\r\n imports: [\r\n CommonModule,\r\n FormsModule,\r\n NzButtonModule,\r\n NzInputModule,\r\n NzSpinModule,\r\n GramCodemirrorModule\r\n ]\r\n})\r\nexport class FormulaMainComponent implements OnInit, AfterViewInit {\r\n _config: any = null;\r\n\r\n loading: boolean = true;\r\n name: any = null;\r\n formulaValue: any = null;\r\n formulaTxt: any = null;\r\n fieldData: any[] = [];\r\n codeMirrorOptions: any = {};\r\n dataInfo: any = null;\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(public http: _HttpClient, public drawerRef: NzDrawerRef<any>, public msg: NzMessageService, public formulaSrv: FormulaService) { }\r\n\r\n ngOnInit(): void { }\r\n\r\n ngAfterViewInit(): void {\r\n this.formulaSrv.codeMirrorOptions = {\r\n autoCloseBrackets: true,\r\n keywords: [],\r\n textWrapping: true,\r\n lineWrapping: true,\r\n lineNumbers: false,\r\n matchBrackets: true,\r\n specialChars:\r\n /[\\u0000-\\u001f\\u007f\\u00ad\\u200c-\\u200f\\u2028\\u2029\\ufeff]/,\r\n mode: \"formula\",\r\n labelMap: null,\r\n };\r\n this.codeMirrorOptions = {\r\n autoCloseBrackets: true,\r\n keywords: [],\r\n textWrapping: true,\r\n lineWrapping: true,\r\n lineNumbers: false,\r\n matchBrackets: true,\r\n specialChars:\r\n /[\\u0000-\\u001f\\u007f\\u00ad\\u200c-\\u200f\\u2028\\u2029\\ufeff]/,\r\n mode: \"formula\",\r\n labelMap: null,\r\n };\r\n }\r\n\r\n getPageData() {\r\n this.loading = true;\r\n if (this.config!! && this.config.sourceField!! && this.config.sourceField.length > 0) {\r\n this.fieldData = _.cloneDeep(this.config.sourceField);\r\n }\r\n if (this.config.type == \"EDIT\") {\r\n this.http.post(`${ModuleAPI.rule}/rule/formula/getInfoById/${this.config.formulaId}`).subscribe((res: any) => {\r\n if (res!! && res.success && res.result!!) {\r\n this.dataInfo = res.result;\r\n this.formulaValue = res.result.actualFormula;\r\n this.formulaTxt = res.result.actualFormulaTxt;\r\n }\r\n this.loading = false;\r\n });\r\n } else {\r\n this.loading = false;\r\n }\r\n }\r\n\r\n textChange(e: any) {\r\n this.formulaTxt = e;\r\n }\r\n\r\n btnCancel() {\r\n this.drawerRef.close({\r\n type: 'close',\r\n data: null,\r\n });\r\n }\r\n\r\n btnSave() {\r\n if (this.name == null || this.name == \"\") {\r\n this.msg.warning(\"请输入表达式名称\");\r\n return;\r\n }\r\n if (this.config.type == \"ADD\") {\r\n this.saveAdd();\r\n } else {\r\n this.saveUpdate();\r\n }\r\n }\r\n\r\n saveAdd() {\r\n this.http.post(`${ModuleAPI.rule}/rule/formula/addInfo`, {\r\n sourceId: this.config.sourceId,\r\n sourceType: this.config.sourceType,\r\n name: this.name,\r\n actualFormula: this.formulaValue,\r\n actualFormulaTxt: this.formulaTxt\r\n }).subscribe((res: any) => {\r\n if (res.success) {\r\n this.msg.success(\"保存成功\");\r\n this.config[\"id\"] = res.result;\r\n this.drawerRef.close({\r\n type: 'save',\r\n data: {\r\n formulaId: this.config[\"id\"],\r\n formulaValue: this.formulaValue\r\n },\r\n });\r\n }\r\n this.loading = false;\r\n });\r\n }\r\n\r\n saveUpdate() {\r\n this.http.post(`${ModuleAPI.rule}/rule/formula/updateInfo`, {\r\n id: this.config.id,\r\n sourceId: this.config.sourceId,\r\n sourceType: this.config.sourceType,\r\n name: this.name,\r\n actualFormula: this.formulaValue,\r\n actualFormulaTxt: this.formulaTxt\r\n }).subscribe((res: any) => {\r\n if (res.success) {\r\n this.msg.success(\"保存成功\");\r\n this.drawerRef.close({\r\n type: 'save',\r\n data: {\r\n formulaId: this.config[\"id\"],\r\n formulaValue: this.formulaValue\r\n },\r\n });\r\n }\r\n this.loading = false;\r\n });\r\n }\r\n\r\n}","<div class=\"name\">\r\n <span>*</span>\r\n <label>表达式名称</label>\r\n <input nz-input placeholder=\"请输入表达式名称\" [(ngModel)]=\"name\" />\r\n</div>\r\n\r\n<div class=\"codemirror\">\r\n <deon-codemirror #codemirror [title]=\"''\" (textChange)=\"textChange($event)\" [fieldData]=\"fieldData\"\r\n [options]=\"codeMirrorOptions\" [(ngModel)]=\"formulaValue\">\r\n </deon-codemirror>\r\n</div>\r\n\r\n<div class=\"deon-button\">\r\n <button nz-button nzType=\"default\" (click)=\"btnCancel()\" type=\"button\"><i nz-icon nzType=\"cancel\"></i>取消</button>\r\n <button nz-button nzType=\"primary\" (click)=\"btnSave()\" type=\"button\"><i nz-icon nzType=\"save\"></i>保存</button>\r\n</div>","import { Component, OnInit, Input, AfterViewInit } from '@angular/core';\r\nimport { CommonModule } from '@angular/common';\r\nimport { FormsModule } from '@angular/forms';\r\nimport { _HttpClient } from '@delon/theme';\r\nimport { NzButtonModule } from 'ng-zorro-antd/button';\r\nimport { NzInputModule } from 'ng-zorro-antd/input';\r\nimport { NzSpinModule } from 'ng-zorro-antd/spin';\r\nimport { NzMessageService } from 'ng-zorro-antd/message';\r\n\r\nimport { NzDrawerRef } from '@ebuilding/base/components/drawer';\r\nimport { ModuleAPI } from '@ebuilding/base/shared.var/shared.constant';\r\nimport { GramCodemirrorModule } from '@ebuilding/base/components/codemirror';\r\n\r\nimport { of, zip } from 'rxjs';\r\nimport _ from 'lodash';\r\n\r\n@Component({\r\n selector: 'formula-form-setting',\r\n templateUrl: './index.html',\r\n styleUrls: ['./index.less'],\r\n imports: [\r\n CommonModule,\r\n FormsModule,\r\n NzButtonModule,\r\n NzInputModule,\r\n NzSpinModule,\r\n GramCodemirrorModule\r\n ]\r\n})\r\nexport class FormulaFormSettingComponent implements OnInit, AfterViewInit {\r\n _config: any = null;\r\n\r\n loading: boolean = true;\r\n name: any = null;\r\n formulaValue: any = null;\r\n formulaTxt: any = null;\r\n fieldData: any[] = [];\r\n codeMirrorOptions: any = {};\r\n dataInfo: any = null;\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(public http: _HttpClient, public drawerRef: NzDrawerRef<any>, public msg: NzMessageService) { }\r\n\r\n ngOnInit(): void { }\r\n\r\n ngAfterViewInit(): void {\r\n this.codeMirrorOptions = {\r\n autoCloseBrackets: true,\r\n keywords: [],\r\n textWrapping: true,\r\n lineWrapping: true,\r\n lineNumbers: false,\r\n matchBrackets: true,\r\n specialChars: /[\\u0000-\\u001f\\u007f\\u00ad\\u200c-\\u200f\\u2028\\u2029\\ufeff]/,\r\n mode: 'formula',\r\n labelMap: null,\r\n };\r\n }\r\n\r\n getFormulaInfo() {\r\n if (this.config.type == 'EDIT') {\r\n return this.http.post(`${ModuleAPI.rule}/rule/formula/getInfoById/${this.config.id}`);\r\n } else {\r\n return of(null);\r\n }\r\n }\r\n\r\n getPageData() {\r\n this.loading = true;\r\n new Promise((resolve: any) => {\r\n zip(this.getFormulaInfo(), this.http.post(`${ModuleAPI.paas}/apaas/form/rule/${this.config.sourceId}`)).subscribe(\r\n ([a, b]) => {\r\n if (a!! && a.success && a.result!!) {\r\n this.dataInfo = a.result;\r\n this.name = this.dataInfo?.name;\r\n this.formulaValue = this.dataInfo?.actualFormula;\r\n this.formulaTxt = this.dataInfo?.actualFormulaTxt;\r\n }\r\n if (b.success && b.result!!) {\r\n this.fieldData = [\r\n {\r\n label: '表单字段',\r\n listField: b.result.map((res: any) => {\r\n return {\r\n key: res.itemKey,\r\n label: `[${res.tableName}]-${res.itemLabel}`,\r\n };\r\n }),\r\n },\r\n ];\r\n }\r\n this.loading = false;\r\n },\r\n () => {\r\n this.loading = false;\r\n },\r\n () => {\r\n this.loading = false;\r\n resolve();\r\n },\r\n );\r\n });\r\n }\r\n\r\n textChange(e: any) {\r\n this.formulaTxt = e;\r\n }\r\n\r\n btnCancel() {\r\n this.drawerRef.close({\r\n type: 'close',\r\n data: null,\r\n });\r\n }\r\n\r\n btnSave() {\r\n if (this.name == null || this.name == '') {\r\n this.msg.warning('请输入表达式名称');\r\n return;\r\n }\r\n if (this.config.type == 'ADD') {\r\n this.saveAdd();\r\n } else {\r\n this.saveUpdate();\r\n }\r\n }\r\n\r\n saveAdd() {\r\n this.http\r\n .post(`${ModuleAPI.rule}/rule/formula/addInfo`, {\r\n sourceId: this.config.sourceId,\r\n sourceType: 'FORM',\r\n name: this.name,\r\n actualFormula: this.formulaValue,\r\n actualFormulaTxt: this.formulaTxt,\r\n })\r\n .subscribe((res: any) => {\r\n if (res.success) {\r\n this.msg.success('保存成功');\r\n this.config['id'] = res.result;\r\n\r\n this.drawerRef.close({\r\n type: 'save',\r\n data: null,\r\n });\r\n }\r\n this.loading = false;\r\n });\r\n }\r\n\r\n saveUpdate() {\r\n this.http\r\n .post(`${ModuleAPI.rule}/rule/formula/updateInfo`, {\r\n id: this.config.id,\r\n sourceId: this.config.sourceId,\r\n sourceType: 'FORM',\r\n name: this.name,\r\n actualFormula: this.formulaValue,\r\n actualFormulaTxt: this.formulaTxt,\r\n })\r\n .subscribe((res: any) => {\r\n if (res.success) {\r\n this.msg.success('保存成功');\r\n\r\n this.drawerRef.close({\r\n type: 'save',\r\n data: null,\r\n });\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 <div class=\"name\">\r\n <label>名称</label>\r\n <input nz-input placeholder=\"请输入名称\" [(ngModel)]=\"name\" />\r\n </div>\r\n <div class=\"codemirror\" *ngIf=\"codeMirrorOptions!!\">\r\n <deon-codemirror #codemirror (textChange)=\"textChange($event)\" [options]=\"codeMirrorOptions\" [fieldData]=\"fieldData\"\r\n [(ngModel)]=\"formulaValue\">\r\n </deon-codemirror>\r\n </div>\r\n\r\n <div class=\"deon-button\" *ngIf=\"!config.isView\">\r\n <button nz-button nzType=\"default\" (click)=\"btnCancel()\" type=\"button\"><i nz-icon nzType=\"close\"></i>取消</button>\r\n <button nz-button nzType=\"primary\" (click)=\"btnSave()\" type=\"button\"><i nz-icon nzType=\"save\"></i>保存</button>\r\n </div>\r\n</nz-spin>","\r\nimport { Component, OnInit, Input, AfterViewInit } from '@angular/core';\r\nimport { CommonModule } from '@angular/common';\r\nimport { FormsModule } from '@angular/forms';\r\nimport { _HttpClient } from '@delon/theme';\r\nimport { NzButtonModule } from 'ng-zorro-antd/button';\r\nimport { NzInputModule } from 'ng-zorro-antd/input';\r\nimport { NzSpinModule } from 'ng-zorro-antd/spin';\r\nimport { NzMessageService } from 'ng-zorro-antd/message';\r\n\r\nimport { NzDrawerRef } from '@ebuilding/base/components/drawer';\r\nimport { GramCodemirrorModule } from '@ebuilding/base/components/codemirror';\r\nimport { FormulaService } from \"../formula.service\";\r\n\r\n/**\r\n * 为表单字段内部服务\r\n */\r\n@Component({\r\n selector: 'formula-form-item',\r\n templateUrl: './index.html',\r\n styleUrls: ['./index.less'],\r\n providers: [FormulaService],\r\n imports: [\r\n CommonModule,\r\n FormsModule,\r\n NzButtonModule,\r\n NzInputModule,\r\n NzSpinModule,\r\n GramCodemirrorModule\r\n ]\r\n})\r\nexport class FormulaFormItemComponent implements OnInit, AfterViewInit {\r\n _config: any = null;\r\n\r\n loading: boolean = true;\r\n name: any = null;\r\n formulaValue: any = null;\r\n formulaTxt: any = null;\r\n fieldData: any[] = [];\r\n codeMirrorOptions: any = {};\r\n dataInfo: any = null;\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(public http: _HttpClient, public drawerRef: NzDrawerRef<any>, public msg: NzMessageService) { }\r\n\r\n ngOnInit(): void { }\r\n\r\n ngAfterViewInit(): void {\r\n this.codeMirrorOptions = {\r\n autoCloseBrackets: true,\r\n keywords: [],\r\n textWrapping: true,\r\n lineWrapping: true,\r\n lineNumbers: false,\r\n matchBrackets: true,\r\n specialChars:\r\n /[\\u0000-\\u001f\\u007f\\u00ad\\u200c-\\u200f\\u2028\\u2029\\ufeff]/,\r\n mode: \"formula\",\r\n labelMap: null,\r\n };\r\n }\r\n\r\n getPageData() {\n if (this.config!! && this.config.data!! && this.config.data.id!!) {\n this.formulaValue = this.payrollItemKey(this.config.data.id);\n this.formulaTxt = this.config.data.name;\n }\n this.loading = false;\n }\n\r\n textChange(e: any) {\r\n if (!this.config.isView) {\r\n this.formulaTxt = e;\r\n }\r\n }\r\n\r\n btnCancel() {\r\n this.drawerRef.close({\r\n type: 'close',\r\n data: null,\r\n });\r\n }\r\n\r\n btnSave() {\n if (this.formulaValue!!) {\n this.drawerRef.close({\n type: 'save',\n data: {\n id: this.payrollItemKey(this.formulaValue),\n name: this.formulaTxt\n }\n });\n } else {\r\n this.drawerRef.close({\r\n type: 'save',\r\n data: null\r\n });\r\n }\n }\n\n private payrollItemKey(value: any) {\n const key = `${value || ''}`;\n return key && !key.startsWith('d_') ? `d_${key}` : key;\n }\n\n}\n","<nz-spin [nzSpinning]=\"loading\" nzTip=\"拼命加载中...\" class=\"deon-list-spin\">\r\n <div class=\"codemirror\" *ngIf=\"codeMirrorOptions!!\">\r\n <deon-codemirror #codemirror (textChange)=\"textChange($event)\" [options]=\"codeMirrorOptions\" [fieldData]=\"fieldData\"\r\n [(ngModel)]=\"formulaValue\">\r\n </deon-codemirror>\r\n </div>\r\n\r\n <div class=\"deon-button\" *ngIf=\"!config.isView\">\r\n <button nz-button nzType=\"default\" (click)=\"btnCancel()\" type=\"button\"><i nz-icon nzType=\"close\"></i>取消</button>\r\n <button nz-button nzType=\"primary\" (click)=\"btnSave()\" type=\"button\"><i nz-icon nzType=\"save\"></i>保存</button>\r\n </div>\r\n</nz-spin>","import { Component, OnInit, Input, AfterViewInit } from '@angular/core';\nimport { CommonModule } from '@angular/common';\nimport { FormsModule } from '@angular/forms';\nimport { NzButtonModule } from 'ng-zorro-antd/button';\n\nimport { NzDrawerRef } from '@ebuilding/base/components/drawer';\nimport {\n FormulaFunctionGroup,\n GramCodemirrorModule,\n} from '@ebuilding/base/components/codemirror';\nimport _ from 'lodash';\n\n@Component({\n selector: 'formula-rule-event',\n templateUrl: './index.html',\n styleUrls: ['./index.less'],\n imports: [CommonModule, FormsModule, NzButtonModule, GramCodemirrorModule],\n})\nexport class FormulaRuleEventComponent implements OnInit, AfterViewInit {\n _config: any = null;\n\n loading: boolean = true;\n formulaValue: any = null;\n formulaTxt: any = null;\n fieldData: any[] = [];\n functionData: FormulaFunctionGroup[] = [];\n codeMirrorOptions: any = {};\n\n @Input()\n set config(value: any) {\n this._config = value;\n this.getPageData();\n }\n get config() {\n return this._config;\n }\n\n constructor(public drawerRef: NzDrawerRef<any>) {}\n\n ngOnInit(): void {}\n\n ngAfterViewInit(): void {\n this.codeMirrorOptions = {\n autoCloseBrackets: true,\n keywords: [],\n textWrapping: true,\n lineWrapping: true,\n lineNumbers: false,\n matchBrackets: true,\n specialChars:\n /[\\u0000-\\u001f\\u007f\\u00ad\\u200c-\\u200f\\u2028\\u2029\\ufeff]/,\n mode: 'formula',\n labelMap: null,\n };\n }\n\n getPageData() {\n this.loading = true;\n if (\n this.config!! &&\n this.config.sourceField!! &&\n this.config.sourceField.length > 0\n ) {\n this.fieldData = _.cloneDeep(this.config.sourceField);\n }\n if (Array.isArray(this.config?.functionData)) {\n this.functionData = _.cloneDeep(this.config.functionData);\n }\n if (this.config?.value) {\n this.formulaValue = this.config.value;\n }\n if (this.config?.text) {\n this.formulaTxt = this.config.text;\n }\n this.loading = false;\n }\n\n textChange(e: any) {\n this.formulaTxt = e;\n }\n\n btnCancel() {\n this.drawerRef.close({\n type: 'close',\n data: null,\n });\n }\n\n btnSave() {\n this.drawerRef.close({\n type: 'save',\n data: {\n value: this.formulaValue,\n text: this.formulaTxt,\n },\n });\n }\n}\n","<div class=\"codemirror\">\n <deon-codemirror\n #codemirror\n [title]=\"config?.title\"\n (textChange)=\"textChange($event)\"\n [fieldData]=\"fieldData\"\n [functionData]=\"functionData\"\n [options]=\"codeMirrorOptions\"\n [(ngModel)]=\"formulaValue\"\n >\n </deon-codemirror>\n</div>\n\n<div class=\"deon-button\">\n <button nz-button nzType=\"default\" (click)=\"btnCancel()\" type=\"button\">\n <i nz-icon nzType=\"cancel\"></i>取消\n </button>\n <button nz-button nzType=\"primary\" (click)=\"btnSave()\" type=\"button\">\n <i nz-icon nzType=\"save\"></i>保存\n </button>\n</div>\n","import { NgModule } from '@angular/core';\r\nimport { FormulaMainComponent } from './default/index';\r\nimport { FormulaFormSettingComponent } from './form-setting/index';\r\nimport { FormulaFormItemComponent } from './form-item/index';\r\nimport { FormulaRuleEventComponent } from './rule-event/index';\r\nconst components: any[] = [FormulaMainComponent, FormulaFormSettingComponent, FormulaFormItemComponent, FormulaRuleEventComponent];\r\n\r\n@NgModule({\r\n imports: [...components],\r\n exports: [...components],\r\n})\r\nexport class FormulaModule { }\r\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":["i4.FormulaService","i11","i1","i2","i3","i4","i5","i6"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;MAGa,cAAc,CAAA;IAEvB,OAAO,GAAY,IAAI;IAEvB,iBAAiB,GAAQ,IAAI;AAE7B;;AAEG;IACH,YAAY,GAAQ,IAAI;AAExB;;AAEG;IACH,UAAU,GAAQ,IAAI;AAEtB;;AAEG;IACH,SAAS,GAAU,EAAE;IAErB,WAAW,GAAA;QACP,IAAI,CAAC,iBAAiB,GAAG;AACrB,YAAA,iBAAiB,EAAE,IAAI;AACvB,YAAA,QAAQ,EAAE,EAAE;AACZ,YAAA,YAAY,EAAE,IAAI;AAClB,YAAA,YAAY,EAAE,IAAI;AAClB,YAAA,WAAW,EAAE,KAAK;AAClB,YAAA,aAAa,EAAE,IAAI;AACnB,YAAA,YAAY,EACR,4DAA4D;AAChE,YAAA,IAAI,EAAE,SAAS;AACf,YAAA,QAAQ,EAAE,IAAI;SACjB;;wGAjCI,cAAc,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA;4FAAd,cAAc,EAAA,YAAA,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,aAAa,EAAA,UAAA,EAAA,CAAA;kBAJzB,QAAQ;AAAC,YAAA,IAAA,EAAA,CAAA;AACR,oBAAA,OAAO,EAAE,CAAC,GAAG,UAAU,CAAC;AACxB,oBAAA,OAAO,EAAE,CAAC,GAAG,UAAU,CAAC;AACzB,iBAAA;;;ACVD;;AAEG;;;;"}
@@ -1,5 +1,6 @@
1
1
  import { OnInit, AfterViewInit } from '@angular/core';
2
2
  import { NzDrawerRef } from '@ebuilding/base/components/drawer';
3
+ import { FormulaFunctionGroup } from '@ebuilding/base/components/codemirror';
3
4
  import * as i0 from "@angular/core";
4
5
  export declare class FormulaRuleEventComponent implements OnInit, AfterViewInit {
5
6
  drawerRef: NzDrawerRef<any>;
@@ -8,6 +9,7 @@ export declare class FormulaRuleEventComponent implements OnInit, AfterViewInit
8
9
  formulaValue: any;
9
10
  formulaTxt: any;
10
11
  fieldData: any[];
12
+ functionData: FormulaFunctionGroup[];
11
13
  codeMirrorOptions: any;
12
14
  set config(value: any);
13
15
  get config(): any;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ebuilding/biz-comm",
3
- "version": "3.3.3",
3
+ "version": "3.3.5",
4
4
  "dependencies": {
5
5
  "extend": "^3.0.2",
6
6
  "tslib": "^2.3.0"
@@ -19,25 +19,25 @@
19
19
  "types": "./type/index.d.ts",
20
20
  "default": "./fesm2022/type.mjs"
21
21
  },
22
- "./components/filter": {
23
- "types": "./components/filter/index.d.ts",
24
- "default": "./fesm2022/components.filter.mjs"
25
- },
26
- "./components/lookup": {
27
- "types": "./components/lookup/index.d.ts",
28
- "default": "./fesm2022/components.lookup.mjs"
29
- },
30
22
  "./components/formula": {
31
23
  "types": "./components/formula/index.d.ts",
32
24
  "default": "./fesm2022/components.formula.mjs"
33
25
  },
26
+ "./other/card": {
27
+ "types": "./other/card/index.d.ts",
28
+ "default": "./fesm2022/other.card.mjs"
29
+ },
34
30
  "./other/control": {
35
31
  "types": "./other/control/index.d.ts",
36
32
  "default": "./fesm2022/other.control.mjs"
37
33
  },
38
- "./other/card": {
39
- "types": "./other/card/index.d.ts",
40
- "default": "./fesm2022/other.card.mjs"
34
+ "./components/filter": {
35
+ "types": "./components/filter/index.d.ts",
36
+ "default": "./fesm2022/components.filter.mjs"
37
+ },
38
+ "./components/lookup": {
39
+ "types": "./components/lookup/index.d.ts",
40
+ "default": "./fesm2022/components.lookup.mjs"
41
41
  },
42
42
  "./other/dict": {
43
43
  "types": "./other/dict/index.d.ts",
@@ -55,10 +55,6 @@
55
55
  "types": "./type/lookup/index.d.ts",
56
56
  "default": "./fesm2022/type.lookup.mjs"
57
57
  },
58
- "./other/tree": {
59
- "types": "./other/tree/index.d.ts",
60
- "default": "./fesm2022/other.tree.mjs"
61
- },
62
58
  "./type/tree": {
63
59
  "types": "./type/tree/index.d.ts",
64
60
  "default": "./fesm2022/type.tree.mjs"
@@ -71,22 +67,26 @@
71
67
  "types": "./other/source/index.d.ts",
72
68
  "default": "./fesm2022/other.source.mjs"
73
69
  },
74
- "./other/source/args": {
75
- "types": "./other/source/args/index.d.ts",
76
- "default": "./fesm2022/other.source.args.mjs"
70
+ "./other/tree": {
71
+ "types": "./other/tree/index.d.ts",
72
+ "default": "./fesm2022/other.tree.mjs"
77
73
  },
78
74
  "./other/source/field-map": {
79
75
  "types": "./other/source/field-map/index.d.ts",
80
76
  "default": "./fesm2022/other.source.field-map.mjs"
81
77
  },
82
- "./other/source/filter": {
83
- "types": "./other/source/filter/index.d.ts",
84
- "default": "./fesm2022/other.source.filter.mjs"
78
+ "./other/source/args": {
79
+ "types": "./other/source/args/index.d.ts",
80
+ "default": "./fesm2022/other.source.args.mjs"
85
81
  },
86
82
  "./other/source/field-select": {
87
83
  "types": "./other/source/field-select/index.d.ts",
88
84
  "default": "./fesm2022/other.source.field.select.mjs"
89
85
  },
86
+ "./other/source/filter": {
87
+ "types": "./other/source/filter/index.d.ts",
88
+ "default": "./fesm2022/other.source.filter.mjs"
89
+ },
90
90
  "./other/source/group": {
91
91
  "types": "./other/source/group/index.d.ts",
92
92
  "default": "./fesm2022/other.source.group.mjs"