@ebuilding/form 2.1.14 → 2.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/checkbox/src/app.config.d.ts +2 -0
- package/checkbox/src/checkbox.module.d.ts +1 -1
- package/checkbox/src/checkbox.type.d.ts +1 -1
- package/checkbox/src/public_api.d.ts +1 -0
- package/checkboxgroup/src/app.config.d.ts +2 -0
- package/checkboxgroup/src/checkboxgroup.module.d.ts +1 -1
- package/checkboxgroup/src/checkboxgroup.type.d.ts +1 -1
- package/checkboxgroup/src/public_api.d.ts +1 -0
- package/colors/src/app.config.d.ts +2 -0
- package/colors/src/default/index.d.ts +1 -1
- package/colors/src/index.module.d.ts +3 -2
- package/colors/src/public_api.d.ts +1 -0
- package/datetime/src/app.config.d.ts +2 -0
- package/datetime/src/datetime.module.d.ts +1 -1
- package/datetime/src/datetime.type.d.ts +1 -1
- package/datetime/src/public_api.d.ts +1 -0
- package/desc/src/app.config.d.ts +2 -0
- package/desc/src/desc.module.d.ts +1 -1
- package/desc/src/desc.type.d.ts +1 -1
- package/desc/src/public_api.d.ts +1 -0
- package/dim/src/app.config.d.ts +2 -0
- package/dim/src/default/index.d.ts +1 -1
- package/dim/src/dim.module.d.ts +1 -1
- package/dim/src/public_api.d.ts +1 -0
- package/dim-indicator/src/app.config.d.ts +2 -0
- package/dim-indicator/src/assess/index.d.ts +1 -1
- package/dim-indicator/src/default/index.d.ts +1 -1
- package/dim-indicator/src/finish/index.d.ts +1 -1
- package/dim-indicator/src/indicator.module.d.ts +1 -1
- package/dim-indicator/src/public_api.d.ts +1 -0
- package/fesm2022/ebuilding-form.mjs +472 -604
- package/fesm2022/ebuilding-form.mjs.map +1 -1
- package/fesm2022/type.checkbox.mjs +22 -30
- package/fesm2022/type.checkbox.mjs.map +1 -1
- package/fesm2022/type.checkboxgroup.mjs +18 -22
- package/fesm2022/type.checkboxgroup.mjs.map +1 -1
- package/fesm2022/type.colors.mjs +23 -23
- package/fesm2022/type.colors.mjs.map +1 -1
- package/fesm2022/type.datetime.mjs +18 -22
- package/fesm2022/type.datetime.mjs.map +1 -1
- package/fesm2022/type.desc.mjs +16 -19
- package/fesm2022/type.desc.mjs.map +1 -1
- package/fesm2022/type.dim-indicator.mjs +27 -38
- package/fesm2022/type.dim-indicator.mjs.map +1 -1
- package/fesm2022/type.dim.mjs +17 -20
- package/fesm2022/type.dim.mjs.map +1 -1
- package/fesm2022/type.form-field.mjs +17 -20
- package/fesm2022/type.form-field.mjs.map +1 -1
- package/fesm2022/type.grid.mjs +17 -20
- package/fesm2022/type.grid.mjs.map +1 -1
- package/fesm2022/type.group.mjs +21 -28
- package/fesm2022/type.group.mjs.map +1 -1
- package/fesm2022/type.html.mjs +17 -21
- package/fesm2022/type.html.mjs.map +1 -1
- package/fesm2022/type.icon.mjs +17 -21
- package/fesm2022/type.icon.mjs.map +1 -1
- package/fesm2022/type.label.mjs +16 -19
- package/fesm2022/type.label.mjs.map +1 -1
- package/fesm2022/type.line.mjs +16 -19
- package/fesm2022/type.line.mjs.map +1 -1
- package/fesm2022/type.list.mjs +16 -19
- package/fesm2022/type.list.mjs.map +1 -1
- package/fesm2022/type.number.mjs +26 -37
- package/fesm2022/type.number.mjs.map +1 -1
- package/fesm2022/type.overtime.mjs +17 -21
- package/fesm2022/type.overtime.mjs.map +1 -1
- package/fesm2022/type.panel.mjs +17 -20
- package/fesm2022/type.panel.mjs.map +1 -1
- package/fesm2022/type.radio.mjs +18 -22
- package/fesm2022/type.radio.mjs.map +1 -1
- package/fesm2022/type.radiogroup.mjs +17 -21
- package/fesm2022/type.radiogroup.mjs.map +1 -1
- package/fesm2022/type.reform.mjs +17 -20
- package/fesm2022/type.reform.mjs.map +1 -1
- package/fesm2022/type.repeat-card.mjs +17 -20
- package/fesm2022/type.repeat-card.mjs.map +1 -1
- package/fesm2022/type.repeat.mjs +21 -28
- package/fesm2022/type.repeat.mjs.map +1 -1
- package/fesm2022/type.select.mjs +21 -28
- package/fesm2022/type.select.mjs.map +1 -1
- package/fesm2022/type.switch.mjs +18 -22
- package/fesm2022/type.switch.mjs.map +1 -1
- package/fesm2022/type.tabs.mjs +42 -49
- package/fesm2022/type.tabs.mjs.map +1 -1
- package/fesm2022/type.text.mjs +29 -35
- package/fesm2022/type.text.mjs.map +1 -1
- package/fesm2022/type.textarea.mjs +18 -22
- package/fesm2022/type.textarea.mjs.map +1 -1
- package/fesm2022/type.textcode.mjs +18 -22
- package/fesm2022/type.textcode.mjs.map +1 -1
- package/form-field/src/form-field.config.d.ts +2 -0
- package/form-field/src/form-field.module.d.ts +1 -1
- package/form-field/src/form-field.wrapper.d.ts +1 -1
- package/form-field/src/public_api.d.ts +1 -0
- package/grid/src/app.config.d.ts +2 -0
- package/grid/src/grid.module.d.ts +1 -1
- package/grid/src/grid.type.d.ts +1 -1
- package/grid/src/public_api.d.ts +1 -0
- package/group/src/app.config.d.ts +2 -0
- package/group/src/group.module.d.ts +1 -1
- package/group/src/group.type.d.ts +1 -1
- package/group/src/public_api.d.ts +1 -0
- package/html/src/app.config.d.ts +2 -0
- package/html/src/html.module.d.ts +1 -1
- package/html/src/html.type.d.ts +1 -1
- package/html/src/public_api.d.ts +1 -0
- package/icon/src/app.config.d.ts +2 -0
- package/icon/src/default/index.d.ts +1 -1
- package/icon/src/index.module.d.ts +1 -1
- package/icon/src/public_api.d.ts +1 -0
- package/index.d.ts +28 -28
- package/label/src/app.config.d.ts +2 -0
- package/label/src/label.module.d.ts +1 -1
- package/label/src/label.type.d.ts +1 -1
- package/label/src/public_api.d.ts +1 -0
- package/line/src/app.config.d.ts +2 -0
- package/line/src/line.module.d.ts +1 -1
- package/line/src/line.type.d.ts +1 -1
- package/line/src/public_api.d.ts +1 -0
- package/list/src/app.config.d.ts +2 -0
- package/list/src/list.module.d.ts +1 -1
- package/list/src/list.type.d.ts +1 -1
- package/list/src/public_api.d.ts +1 -0
- package/number/src/app.config.d.ts +2 -0
- package/number/src/number.module.d.ts +1 -1
- package/number/src/number.type.d.ts +1 -1
- package/number/src/number_rate.type.d.ts +1 -1
- package/number/src/public_api.d.ts +1 -0
- package/overtime/src/app.config.d.ts +2 -0
- package/overtime/src/default/index.d.ts +1 -1
- package/overtime/src/index.module.d.ts +1 -1
- package/overtime/src/public_api.d.ts +1 -0
- package/package.json +38 -38
- package/panel/src/app.config.d.ts +2 -0
- package/panel/src/panel.module.d.ts +1 -1
- package/panel/src/panel.type.d.ts +1 -1
- package/panel/src/public_api.d.ts +1 -0
- package/radio/src/app.config.d.ts +2 -0
- package/radio/src/public_api.d.ts +1 -0
- package/radio/src/radio.module.d.ts +1 -1
- package/radio/src/radio.type.d.ts +1 -1
- package/radiogroup/src/app.config.d.ts +2 -0
- package/radiogroup/src/public_api.d.ts +1 -0
- package/radiogroup/src/radiogroup.module.d.ts +1 -1
- package/radiogroup/src/radiogroup.type.d.ts +1 -1
- package/reform/src/app.config.d.ts +2 -0
- package/reform/src/public_api.d.ts +1 -0
- package/reform/src/reform.module.d.ts +1 -1
- package/reform/src/reform.type.d.ts +1 -1
- package/repeat/src/app.config.d.ts +2 -0
- package/repeat/src/default/index.d.ts +1 -1
- package/repeat/src/index.module.d.ts +1 -1
- package/repeat/src/public_api.d.ts +1 -0
- package/repeat-card/src/app.config.d.ts +2 -0
- package/repeat-card/src/default/index.d.ts +1 -1
- package/repeat-card/src/index.module.d.ts +1 -1
- package/repeat-card/src/public_api.d.ts +1 -0
- package/select/src/app.config.d.ts +2 -0
- package/select/src/public_api.d.ts +1 -0
- package/select/src/select.module.d.ts +1 -1
- package/select/src/select.type.d.ts +1 -1
- package/switch/src/app.config.d.ts +2 -0
- package/switch/src/default/index.d.ts +1 -1
- package/switch/src/index.module.d.ts +1 -1
- package/switch/src/public_api.d.ts +1 -0
- package/tabs/src/app.config.d.ts +2 -0
- package/tabs/src/default/index.d.ts +1 -1
- package/tabs/src/index.module.d.ts +1 -1
- package/tabs/src/public_api.d.ts +1 -0
- package/tabs/src/tab/index.d.ts +1 -1
- package/text/src/public_api.d.ts +1 -0
- package/text/src/text.config.d.ts +2 -0
- package/text/src/text.module.d.ts +3 -2
- package/text/src/text.type.d.ts +1 -1
- package/text/src/text_ind.type.d.ts +1 -1
- package/textarea/src/app.config.d.ts +2 -0
- package/textarea/src/public_api.d.ts +1 -0
- package/textarea/src/textarea.module.d.ts +1 -1
- package/textarea/src/textarea.type.d.ts +1 -1
- package/textcode/src/app.config.d.ts +2 -0
- package/textcode/src/public_api.d.ts +1 -0
- package/textcode/src/text.module.d.ts +1 -1
- package/textcode/src/text.type.d.ts +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"type.desc.mjs","sources":["../../../../packages/form/desc/src/desc.type.ts","../../../../packages/form/desc/src/desc.module.ts","../../../../packages/form/desc/type.desc.ts"],"sourcesContent":["import { Component, ChangeDetectionStrategy } from '@angular/core';\nimport { CommonModule } from '@angular/common';\nimport { FieldType } from '@
|
|
1
|
+
{"version":3,"file":"type.desc.mjs","sources":["../../../../packages/form/desc/src/desc.type.ts","../../../../packages/form/desc/src/app.config.ts","../../../../packages/form/desc/src/desc.module.ts","../../../../packages/form/desc/type.desc.ts"],"sourcesContent":["import { Component, ChangeDetectionStrategy } from '@angular/core';\nimport { CommonModule } from '@angular/common';\nimport { FieldType } from '@ebuilding-form/core';\nimport { ReactiveFormsModule } from '@angular/forms';\nimport { GramPipeModule } from '@ebuilding/base/shared.pipe';\n\n@Component({\n selector: 'deon-field-nz-desc',\n template: `<div [innerHtml]=\"props?.label | safeHtml\"></div>`,\n changeDetection: ChangeDetectionStrategy.OnPush,\n imports: [\n CommonModule,\n ReactiveFormsModule,\n GramPipeModule\n ]\n})\nexport class DeonNzFieldDesc extends FieldType { }\n","import { ConfigOption } from '@ebuilding-form/core';\nimport { DeonNzFieldDesc } from './desc.type';\n\nexport function withFormlyFieldDesc(): ConfigOption {\n return {\n types: [\n {\n name: 'desc',\n component: DeonNzFieldDesc,\n }\n ],\n };\n}\n","import { NgModule } from '@angular/core';\nimport { CommonModule } from '@angular/common';\nimport { FormlyModule } from '@ebuilding-form/core';\nimport { DeonNzFormFieldModule } from '@ebuilding/form/form-field';\nimport { withFormlyFieldDesc } from './app.config';\n\n@NgModule({\n imports: [\n CommonModule,\n DeonNzFormFieldModule,\n FormlyModule.forChild(withFormlyFieldDesc()),\n ]\n})\nexport class DeonNzDescModule { }\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":["i1"],"mappings":";;;;;;;;;;AAgBM,MAAO,eAAgB,SAAQ,SAAS,CAAA;wGAAjC,eAAe,EAAA,IAAA,EAAA,IAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA;AAAf,IAAA,OAAA,IAAA,GAAA,EAAA,CAAA,oBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,SAAA,EAAA,IAAA,EAAA,eAAe,qGARhB,CAAmD,iDAAA,CAAA,EAAA,QAAA,EAAA,IAAA,EAAA,YAAA,EAAA,CAAA,EAAA,IAAA,EAAA,UAAA,EAAA,IAAA,EAG3D,YAAY,EACZ,EAAA,EAAA,IAAA,EAAA,UAAA,EAAA,IAAA,EAAA,mBAAmB,8BACnB,cAAc,EAAA,EAAA,EAAA,IAAA,EAAA,MAAA,EAAA,IAAA,EAAA,EAAA,CAAA,YAAA,EAAA,IAAA,EAAA,UAAA,EAAA,CAAA,EAAA,eAAA,EAAA,EAAA,CAAA,uBAAA,CAAA,MAAA,EAAA,CAAA;;4FAGL,eAAe,EAAA,UAAA,EAAA,CAAA;kBAV3B,SAAS;AAAC,YAAA,IAAA,EAAA,CAAA;AACT,oBAAA,QAAQ,EAAE,oBAAoB;AAC9B,oBAAA,QAAQ,EAAE,CAAmD,iDAAA,CAAA;oBAC7D,eAAe,EAAE,uBAAuB,CAAC,MAAM;AAC/C,oBAAA,OAAO,EAAE;wBACP,YAAY;wBACZ,mBAAmB;wBACnB;AACD;AACF,iBAAA;;;SCZe,mBAAmB,GAAA;IACjC,OAAO;AACL,QAAA,KAAK,EAAE;AACL,YAAA;AACE,gBAAA,IAAI,EAAE,MAAM;AACZ,gBAAA,SAAS,EAAE,eAAe;AAC3B;AACF,SAAA;KACF;AACH;;MCCa,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,YALzB,YAAY;YACZ,qBAAqB,EAAAA,IAAA,CAAA,YAAA,CAAA,EAAA,CAAA;AAIZ,IAAA,OAAA,IAAA,GAAA,EAAA,CAAA,mBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,SAAA,EAAA,QAAA,EAAA,EAAA,EAAA,IAAA,EAAA,gBAAgB,YALzB,YAAY;YACZ,qBAAqB;AACrB,YAAA,YAAY,CAAC,QAAQ,CAAC,mBAAmB,EAAE,CAAC,CAAA,EAAA,CAAA;;4FAGnC,gBAAgB,EAAA,UAAA,EAAA,CAAA;kBAP5B,QAAQ;AAAC,YAAA,IAAA,EAAA,CAAA;AACR,oBAAA,OAAO,EAAE;wBACP,YAAY;wBACZ,qBAAqB;AACrB,wBAAA,YAAY,CAAC,QAAQ,CAAC,mBAAmB,EAAE,CAAC;AAC7C;AACF,iBAAA;;;ACZD;;AAEG;;;;"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as i0 from '@angular/core';
|
|
2
2
|
import { ChangeDetectionStrategy, Component, NgModule } from '@angular/core';
|
|
3
|
-
import * as i9 from '@
|
|
4
|
-
import { FieldType, FormlyModule } from '@
|
|
3
|
+
import * as i9 from '@ebuilding-form/core';
|
|
4
|
+
import { FieldType, FormlyModule } from '@ebuilding-form/core';
|
|
5
5
|
import { DeonNzFormFieldModule } from '@ebuilding/form/form-field';
|
|
6
6
|
import * as i4 from '@angular/common';
|
|
7
7
|
import { CommonModule } from '@angular/common';
|
|
@@ -55,7 +55,7 @@ class DeonNzFieldDimIndicator extends FieldType {
|
|
|
55
55
|
});
|
|
56
56
|
}
|
|
57
57
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: DeonNzFieldDimIndicator, deps: [{ token: i1.NzModalService }, { token: i2.NzMessageService }, { token: i3.GramGlobalService }], target: i0.ɵɵFactoryTarget.Component });
|
|
58
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.15", type: DeonNzFieldDimIndicator, isStandalone: true, selector: "deon-nz-field-indicator", usesInheritance: true, ngImport: i0, template: "<ng-container *ngIf=\"props && props['isTable']==true;else tmpDefault\">\n <div class=\"ind-list\">\n <div class=\"ind-item\">\n <ng-container *ngFor=\"let f of field.fieldGroup;let index=index;\">\n <div style=\"padding: 0 8px;\"\n [ngStyle]=\"props['tableConfig'][index].widthAuto ? {'flex': '1'} : {'width': props['tableConfig'][index]?.width+'px'}\">\n <formly-field [field]=\"f\" [hideLabel]=\"true\"></formly-field>\n </div>\n </ng-container>\n </div>\n <div class=\"ind-operate\" *ngIf=\"field?.editor == true\">\n <a (click)=\"btnUp()\">\n <i nz-icon nzType=\"arrow-up\"></i>\n </a>\n <a (click)=\"btnDown()\">\n <i nz-icon nzType=\"arrow-down\"></i>\n </a>\n <a (click)=\"btnDelete()\" *ngIf=\"props?.['indConfig']?.['izAllowDel'] == true\">\n <i nz-icon nzType=\"delete\"></i>\n </a>\n </div>\n </div>\n</ng-container>\n<ng-template #tmpDefault>\n <div class=\"ind-button\" *ngIf=\"field?.editor == true\">\n <button nz-button nzType=\"default\" type=\"button\" (click)=\"btnUp()\">\n <i nz-icon nzType=\"arrow-up\"></i>\u4E0A\u79FB\n </button>\n <button nz-button nzType=\"default\" type=\"button\" (click)=\"btnDown()\">\n <i nz-icon nzType=\"arrow-down\"></i>\u4E0B\u79FB\n </button>\n <button nz-button nzType=\"default\" type=\"button\" (click)=\"btnDelete()\"\n *ngIf=\"props?.['indConfig']?.['izAllowDel'] == true\">\n <i nz-icon nzType=\"delete\"></i>\u5220\u9664\n </button>\n </div>\n\n <div class=\"ind-content\">\n <ng-container *ngIf=\"field?.fieldGroup && (field?.fieldGroup?.length ?? 0) > 0\">\n <div class=\"table-box\" *ngIf=\"props?.['indConfig']?.['izIndTable'] == true; else tmpDefault2\">\n <table>\n <thead>\n <tr>\n <ng-container *ngFor=\"let f of field.fieldGroup\">\n <th [attr.width]=\"\n f?.key == 'name'\n ? '300px'\n : f?.key == 'desc'\n ? ''\n : '130px'\n \">\n <ng-container *ngIf=\"f?.props?.required == true\">\n <label class=\"label-required\">*</label>\n </ng-container>\n {{ f.props?.label }}\n </th>\n </ng-container>\n </tr>\n </thead>\n <tbody>\n <tr>\n <ng-container *ngFor=\"let f of field.fieldGroup\">\n <td>\n <formly-field [field]=\"f\" [hideLabel]=\"true\"></formly-field>\n </td>\n </ng-container>\n </tr>\n </tbody>\n </table>\n </div>\n </ng-container>\n </div>\n</ng-template>\n<ng-template #tmpDefault2>\n <ng-container *ngFor=\"let f of field.fieldGroup\">\n <formly-field [field]=\"f\"></formly-field>\n </ng-container>\n</ng-template>", styles: [":host ::ng-deep{width:100%;border:1px solid #eaeaea;border-radius:4px;padding:0;display:flex;flex-direction:column}:host ::ng-deep .ind-button{text-align:right;padding:8px 15px 6px;border-bottom:1px solid #eaeaea}:host ::ng-deep .ind-content{flex:1;padding:15px 15px 0}:host ::ng-deep .table-box{padding:0 0 15px}:host ::ng-deep .table-box table tr th{padding:0 8px}:host ::ng-deep .table-box table tr td{padding:10px 8px;vertical-align:top}:host ::ng-deep .table-box .ant-form-item{margin-bottom:0}:host ::ng-deep .table-box .label-required{color:red;margin-right:2px}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i4.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i4.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i4.NgStyle, selector: "[ngStyle]", inputs: ["ngStyle"] }, { kind: "ngmodule", type: ReactiveFormsModule }, { kind: "ngmodule", type: NzIconModule }, { kind: "directive", type: i5.NzIconDirective, selector: "nz-icon,[nz-icon]", inputs: ["nzSpin", "nzRotate", "nzType", "nzTheme", "nzTwotoneColor", "nzIconfont"], exportAs: ["nzIcon"] }, { 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: FormlyModule }, { kind: "component", type: i9.
|
|
58
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.15", type: DeonNzFieldDimIndicator, isStandalone: true, selector: "deon-nz-field-indicator", usesInheritance: true, ngImport: i0, template: "<ng-container *ngIf=\"props && props['isTable']==true;else tmpDefault\">\n <div class=\"ind-list\">\n <div class=\"ind-item\">\n <ng-container *ngFor=\"let f of field.fieldGroup;let index=index;\">\n <div style=\"padding: 0 8px;\"\n [ngStyle]=\"props['tableConfig'][index].widthAuto ? {'flex': '1'} : {'width': props['tableConfig'][index]?.width+'px'}\">\n <formly-field [field]=\"f\" [hideLabel]=\"true\"></formly-field>\n </div>\n </ng-container>\n </div>\n <div class=\"ind-operate\" *ngIf=\"field?.editor == true\">\n <a (click)=\"btnUp()\">\n <i nz-icon nzType=\"arrow-up\"></i>\n </a>\n <a (click)=\"btnDown()\">\n <i nz-icon nzType=\"arrow-down\"></i>\n </a>\n <a (click)=\"btnDelete()\" *ngIf=\"props?.['indConfig']?.['izAllowDel'] == true\">\n <i nz-icon nzType=\"delete\"></i>\n </a>\n </div>\n </div>\n</ng-container>\n<ng-template #tmpDefault>\n <div class=\"ind-button\" *ngIf=\"field?.editor == true\">\n <button nz-button nzType=\"default\" type=\"button\" (click)=\"btnUp()\">\n <i nz-icon nzType=\"arrow-up\"></i>\u4E0A\u79FB\n </button>\n <button nz-button nzType=\"default\" type=\"button\" (click)=\"btnDown()\">\n <i nz-icon nzType=\"arrow-down\"></i>\u4E0B\u79FB\n </button>\n <button nz-button nzType=\"default\" type=\"button\" (click)=\"btnDelete()\"\n *ngIf=\"props?.['indConfig']?.['izAllowDel'] == true\">\n <i nz-icon nzType=\"delete\"></i>\u5220\u9664\n </button>\n </div>\n\n <div class=\"ind-content\">\n <ng-container *ngIf=\"field?.fieldGroup && (field?.fieldGroup?.length ?? 0) > 0\">\n <div class=\"table-box\" *ngIf=\"props?.['indConfig']?.['izIndTable'] == true; else tmpDefault2\">\n <table>\n <thead>\n <tr>\n <ng-container *ngFor=\"let f of field.fieldGroup\">\n <th [attr.width]=\"\n f?.key == 'name'\n ? '300px'\n : f?.key == 'desc'\n ? ''\n : '130px'\n \">\n <ng-container *ngIf=\"f?.props?.required == true\">\n <label class=\"label-required\">*</label>\n </ng-container>\n {{ f.props?.label }}\n </th>\n </ng-container>\n </tr>\n </thead>\n <tbody>\n <tr>\n <ng-container *ngFor=\"let f of field.fieldGroup\">\n <td>\n <formly-field [field]=\"f\" [hideLabel]=\"true\"></formly-field>\n </td>\n </ng-container>\n </tr>\n </tbody>\n </table>\n </div>\n </ng-container>\n </div>\n</ng-template>\n<ng-template #tmpDefault2>\n <ng-container *ngFor=\"let f of field.fieldGroup\">\n <formly-field [field]=\"f\"></formly-field>\n </ng-container>\n</ng-template>", styles: [":host ::ng-deep{width:100%;border:1px solid #eaeaea;border-radius:4px;padding:0;display:flex;flex-direction:column}:host ::ng-deep .ind-button{text-align:right;padding:8px 15px 6px;border-bottom:1px solid #eaeaea}:host ::ng-deep .ind-content{flex:1;padding:15px 15px 0}:host ::ng-deep .table-box{padding:0 0 15px}:host ::ng-deep .table-box table tr th{padding:0 8px}:host ::ng-deep .table-box table tr td{padding:10px 8px;vertical-align:top}:host ::ng-deep .table-box .ant-form-item{margin-bottom:0}:host ::ng-deep .table-box .label-required{color:red;margin-right:2px}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i4.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i4.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i4.NgStyle, selector: "[ngStyle]", inputs: ["ngStyle"] }, { kind: "ngmodule", type: ReactiveFormsModule }, { kind: "ngmodule", type: NzIconModule }, { kind: "directive", type: i5.NzIconDirective, selector: "nz-icon,[nz-icon]", inputs: ["nzSpin", "nzRotate", "nzType", "nzTheme", "nzTwotoneColor", "nzIconfont"], exportAs: ["nzIcon"] }, { 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: FormlyModule }, { kind: "component", type: i9.LegacyFormlyField, selector: "formly-field" }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
59
59
|
}
|
|
60
60
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: DeonNzFieldDimIndicator, decorators: [{
|
|
61
61
|
type: Component,
|
|
@@ -82,7 +82,7 @@ class DeonNzFieldDimIndicatorFinish extends FieldType {
|
|
|
82
82
|
this.globalSrv = globalSrv;
|
|
83
83
|
}
|
|
84
84
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: DeonNzFieldDimIndicatorFinish, deps: [{ token: i1.NzModalService }, { token: i2.NzMessageService }, { token: i3.GramGlobalService }], target: i0.ɵɵFactoryTarget.Component });
|
|
85
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.15", type: DeonNzFieldDimIndicatorFinish, isStandalone: true, selector: "deon-nz-field-indicator-finish", usesInheritance: true, ngImport: i0, template: "<div class=\"ind-finish\">\n <ng-container *ngFor=\"let f of field.fieldGroup\">\n <ng-container *ngIf=\"f?.key == 'finishValue'\">\n <formly-field [field]=\"f\"></formly-field>\n </ng-container>\n </ng-container>\n</div>\n\n<div class=\"ind-content\">\n <ng-container *ngIf=\"field?.fieldGroup && (field?.fieldGroup?.length ?? 0) > 0\">\n <div class=\"table-box\" *ngIf=\"props?.['indConfig']?.['izIndTable'] == true; else tmpDefault\">\n <table>\n <thead>\n <tr>\n <ng-container *ngFor=\"let f of field.fieldGroup\">\n <th [attr.width]=\"f?.key == 'name' ? '300px' : f?.key == 'desc' ? '' : '130px'\"\n *ngIf=\"f?.key != 'finishValue'\">\n <ng-container *ngIf=\"f?.props?.required == true\">\n <label class=\"label-required\">*</label>\n </ng-container>\n {{ f.props?.label }}\n </th>\n </ng-container>\n </tr>\n </thead>\n <tbody>\n <tr>\n <ng-container *ngFor=\"let f of field.fieldGroup\">\n <td *ngIf=\"f?.key != 'finishValue'\">\n <formly-field [field]=\"f\" [hideLabel]=\"true\"></formly-field>\n </td>\n </ng-container>\n </tr>\n </tbody>\n </table>\n </div>\n\n <ng-template #tmpDefault>\n <ng-container *ngFor=\"let f of field.fieldGroup\">\n <formly-field [field]=\"f\" *ngIf=\"f?.key != 'finishValue'\"></formly-field>\n </ng-container>\n </ng-template>\n </ng-container>\n</div>", styles: [":host ::ng-deep{width:100%;border:1px solid #eaeaea;border-radius:4px;padding:0;display:flex;flex-direction:column}:host ::ng-deep .ind-finish{padding:8px 15px 6px;border-bottom:1px solid #eaeaea}:host ::ng-deep .ind-finish nz-form-label{width:auto!important;max-width:none!important}:host ::ng-deep .ind-finish nz-form-item{margin-bottom:0!important}:host ::ng-deep .ind-finish nz-input-number{max-width:150px}:host ::ng-deep .ind-content{flex:1;padding:15px 15px 0}:host ::ng-deep .table-box{padding:0 0 15px}:host ::ng-deep .table-box table tr th{padding:0 8px}:host ::ng-deep .table-box table tr td{padding:10px 8px;vertical-align:top}:host ::ng-deep .table-box .ant-form-item{margin-bottom:0}:host ::ng-deep .table-box .label-required{color:red;margin-right:2px}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i4.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i4.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "ngmodule", type: ReactiveFormsModule }, { kind: "ngmodule", type: NzIconModule }, { kind: "ngmodule", type: NzButtonModule }, { kind: "ngmodule", type: FormlyModule }, { kind: "component", type: i9.
|
|
85
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.15", type: DeonNzFieldDimIndicatorFinish, isStandalone: true, selector: "deon-nz-field-indicator-finish", usesInheritance: true, ngImport: i0, template: "<div class=\"ind-finish\">\n <ng-container *ngFor=\"let f of field.fieldGroup\">\n <ng-container *ngIf=\"f?.key == 'finishValue'\">\n <formly-field [field]=\"f\"></formly-field>\n </ng-container>\n </ng-container>\n</div>\n\n<div class=\"ind-content\">\n <ng-container *ngIf=\"field?.fieldGroup && (field?.fieldGroup?.length ?? 0) > 0\">\n <div class=\"table-box\" *ngIf=\"props?.['indConfig']?.['izIndTable'] == true; else tmpDefault\">\n <table>\n <thead>\n <tr>\n <ng-container *ngFor=\"let f of field.fieldGroup\">\n <th [attr.width]=\"f?.key == 'name' ? '300px' : f?.key == 'desc' ? '' : '130px'\"\n *ngIf=\"f?.key != 'finishValue'\">\n <ng-container *ngIf=\"f?.props?.required == true\">\n <label class=\"label-required\">*</label>\n </ng-container>\n {{ f.props?.label }}\n </th>\n </ng-container>\n </tr>\n </thead>\n <tbody>\n <tr>\n <ng-container *ngFor=\"let f of field.fieldGroup\">\n <td *ngIf=\"f?.key != 'finishValue'\">\n <formly-field [field]=\"f\" [hideLabel]=\"true\"></formly-field>\n </td>\n </ng-container>\n </tr>\n </tbody>\n </table>\n </div>\n\n <ng-template #tmpDefault>\n <ng-container *ngFor=\"let f of field.fieldGroup\">\n <formly-field [field]=\"f\" *ngIf=\"f?.key != 'finishValue'\"></formly-field>\n </ng-container>\n </ng-template>\n </ng-container>\n</div>", styles: [":host ::ng-deep{width:100%;border:1px solid #eaeaea;border-radius:4px;padding:0;display:flex;flex-direction:column}:host ::ng-deep .ind-finish{padding:8px 15px 6px;border-bottom:1px solid #eaeaea}:host ::ng-deep .ind-finish nz-form-label{width:auto!important;max-width:none!important}:host ::ng-deep .ind-finish nz-form-item{margin-bottom:0!important}:host ::ng-deep .ind-finish nz-input-number{max-width:150px}:host ::ng-deep .ind-content{flex:1;padding:15px 15px 0}:host ::ng-deep .table-box{padding:0 0 15px}:host ::ng-deep .table-box table tr th{padding:0 8px}:host ::ng-deep .table-box table tr td{padding:10px 8px;vertical-align:top}:host ::ng-deep .table-box .ant-form-item{margin-bottom:0}:host ::ng-deep .table-box .label-required{color:red;margin-right:2px}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i4.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i4.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "ngmodule", type: ReactiveFormsModule }, { kind: "ngmodule", type: NzIconModule }, { kind: "ngmodule", type: NzButtonModule }, { kind: "ngmodule", type: FormlyModule }, { kind: "component", type: i9.LegacyFormlyField, selector: "formly-field" }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
86
86
|
}
|
|
87
87
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: DeonNzFieldDimIndicatorFinish, decorators: [{
|
|
88
88
|
type: Component,
|
|
@@ -120,7 +120,7 @@ class DeonNzFieldDimIndicatorAssess extends FieldType {
|
|
|
120
120
|
}
|
|
121
121
|
}
|
|
122
122
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: DeonNzFieldDimIndicatorAssess, deps: [{ token: i1.NzModalService }, { token: i2.NzMessageService }, { token: i3.GramGlobalService }], target: i0.ɵɵFactoryTarget.Component });
|
|
123
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.15", type: DeonNzFieldDimIndicatorAssess, isStandalone: true, selector: "deon-nz-field-indicator-assess", usesInheritance: true, ngImport: i0, template: "<ng-container *ngIf=\"props && props['isTable']==true;else tmpDefault\">\n <div class=\"ind-list\">\n <div class=\"ind-item\">\n <ng-container *ngFor=\"let f of field.fieldGroup;let i=index;\">\n\n\n <ng-container *ngIf=\"f?.key!='indScoreSelect' && f?.key!='indScoreEnter';else tmpScore\">\n <div style=\"padding: 0 8px;\"\n [ngStyle]=\"props?.['tableConfig']?.[i]?.widthAuto ? {'flex': '1'} : {'width': props['tableConfig'][i]?.width+'px'}\">\n <formly-field [field]=\"f\" [hideLabel]=\"true\"></formly-field>\n </div>\n </ng-container>\n\n <ng-template #tmpScore>\n <ng-container *ngIf=\"props?.['expandInfo'] && props?.['expandInfo']?.length>0\">\n <ng-container *ngFor=\"let item of props?.['expandInfo']\">\n <div style=\"padding: 0 8px; width: 150px;\">{{item?.nodeData}}</div>\n </ng-container>\n </ng-container>\n <div style=\"padding: 0 8px; width: 150px;\">\n <formly-field [field]=\"f\" [hideLabel]=\"true\"></formly-field>\n </div>\n </ng-template>\n\n\n </ng-container>\n <ng-container *ngIf=\"props['tableConfig'].length > totalRenderedColumns\">\n <ng-container *ngFor=\"let f of props['tableConfig'].slice(totalRenderedColumns);let j=index;\">\n <div style=\"padding: 0 8px; width: 150px;\">\n <ng-container\n *ngIf=\"totalRenderedColumns==(field?.fieldGroup?.length ?? 0) &&props?.['expandInfo'] && props?.['expandInfo']?.length>j;else tmpEmptyData\">\n {{props?.[\"expandInfo\"]?.[j]?.nodeData}}\n </ng-container>\n <ng-template #tmpEmptyData>---</ng-template>\n </div>\n </ng-container>\n </ng-container>\n </div>\n </div>\n</ng-container>\n\n<ng-template #tmpDefault>\n <div class=\"ind-content\">\n <ng-container *ngIf=\"field?.fieldGroup && (field?.fieldGroup?.length ?? 0) > 0\">\n <div class=\"table-box\" *ngIf=\"props?.['indConfig']?.['izIndTable'] == true; else tmpCard\">\n <table>\n <thead>\n <tr>\n <ng-container *ngFor=\"let f of field.fieldGroup\">\n <th [attr.width]=\"\n f?.key == 'name'\n ? '300px'\n : f?.key == 'desc'\n ? ''\n : '130px'\n \" *ngIf=\"f?.key != 'indScoreEnter' && f?.key != 'indScoreSelect'\">\n <ng-container *ngIf=\"f?.props?.required == true\">\n <label class=\"label-required\">*</label>\n </ng-container>\n {{ f.props?.label }}\n </th>\n </ng-container>\n </tr>\n </thead>\n <tbody>\n <tr>\n <ng-container *ngFor=\"let f of field.fieldGroup\">\n <td *ngIf=\"f?.key != 'indScoreEnter' && f?.key != 'indScoreSelect'\">\n <formly-field [field]=\"f\" [hideLabel]=\"true\"></formly-field>\n </td>\n </ng-container>\n </tr>\n <tr>\n <td [attr.colspan]=\"(field?.fieldGroup?.length ?? 0)\">\n <div class=\"ind-assess\">\n <div class=\"assess-nodes\" *ngIf=\"\n props?.['expandInfo'] &&\n props?.['expandInfo']?.length > 0\n \">\n <div class=\"node-title\">\n <label><span nz-icon nzType=\"bars\"></span>\u8BC4\u4F30\u8BB0\u5F55</label>\n </div>\n <div class=\"node-box\" *ngFor=\"let item of props?.['expandInfo']\">\n <label class=\"title\">{{ item?.nodeName }}</label>\n <label class=\"value\">{{ item?.nodeData }}</label>\n </div>\n </div>\n <div class=\"assess-info\">\n <ng-container *ngFor=\"let f of field.fieldGroup\">\n <ng-container *ngIf=\"\n f?.key == 'indScoreEnter' || f?.key == 'indScoreSelect'\n \">\n <formly-field [field]=\"f\"></formly-field>\n </ng-container>\n </ng-container>\n </div>\n </div>\n </td>\n </tr>\n </tbody>\n </table>\n </div>\n </ng-container>\n </div>\n</ng-template>\n\n<ng-template #tmpCard>\n <div class=\"card-ind\">\n <div class=\"ind-info\">\n <ng-container *ngFor=\"let f of field.fieldGroup\">\n <formly-field [field]=\"f\" *ngIf=\"f?.key != 'indScoreEnter' && f?.key != 'indScoreSelect'\"></formly-field>\n </ng-container>\n </div>\n <div class=\"ind-assess\">\n <div class=\"assess-nodes\" *ngIf=\"\n props?.['expandInfo'] && props?.['expandInfo']?.length > 0\n \">\n <div class=\"node-title\">\n <label><span nz-icon nzType=\"bars\"></span>\u8BC4\u4F30\u8BB0\u5F55</label>\n </div>\n <div class=\"node-box\" *ngFor=\"let item of props?.['expandInfo']\">\n <label class=\"title\">{{ item?.nodeName }}</label>\n <label class=\"value\">{{ item?.nodeData }}</label>\n </div>\n </div>\n <div class=\"assess-info\">\n <ng-container *ngFor=\"let f of field.fieldGroup\">\n <ng-container *ngIf=\"f?.key == 'indScoreEnter' || f?.key == 'indScoreSelect'\">\n <formly-field [field]=\"f\"></formly-field>\n </ng-container>\n </ng-container>\n </div>\n </div>\n </div>\n</ng-template>", styles: [":host ::ng-deep{width:100%;border:0;border-radius:4px;padding:0;display:flex;flex-direction:column}:host ::ng-deep .ind-finish{padding:8px 15px 6px;border-bottom:1px solid #eaeaea}:host ::ng-deep .ind-finish nz-form-label{width:auto!important;max-width:none!important}:host ::ng-deep .ind-finish nz-form-item{margin-bottom:0!important}:host ::ng-deep .ind-finish nz-input-number{max-width:150px}:host ::ng-deep .ind-content{flex:1;padding:15px 15px 0}:host ::ng-deep .ind-assess{padding:0 15px 0 0;display:flex;flex-direction:column}:host ::ng-deep .ind-assess .assess-nodes{display:flex;flex-direction:row;align-items:center;padding:0;margin:0}:host ::ng-deep .ind-assess .assess-nodes .node-title{display:flex;flex-direction:row;align-items:center;padding:0 20px 0 0}:host ::ng-deep .ind-assess .assess-nodes .node-title label{line-height:normal}:host ::ng-deep .ind-assess .assess-nodes .node-box{display:flex;flex-direction:row;align-items:center;padding:0 15px 0 0}:host ::ng-deep .ind-assess .assess-nodes .node-box label{line-height:normal}:host ::ng-deep .ind-assess .assess-nodes .node-box .title:after{content:\":\";padding:0 5px 0 3px}:host ::ng-deep .ind-assess .assess-nodes .node-box .value{font-size:14px;font-weight:600}:host ::ng-deep .ind-assess .assess-info{display:flex;padding:0}:host ::ng-deep .ind-assess .assess-info nz-form-label{width:auto!important;max-width:none!important;padding:0 15px 0 0!important}:host ::ng-deep .ind-assess .assess-info nz-form-item{margin-bottom:0!important}:host ::ng-deep .ind-assess .assess-info nz-input-number{max-width:150px;height:26px;min-height:26px}:host ::ng-deep .ind-assess .assess-info nz-input-number .ant-input-number-input{height:24px;line-height:24px}:host ::ng-deep .ind-assess .assess-nodes+.assess-info{padding:8px 0 0}:host ::ng-deep .table-box{padding:0 0 20px}:host ::ng-deep .table-box table tr th{padding:0 8px}:host ::ng-deep .table-box table tr td{padding:10px 8px;vertical-align:top}:host ::ng-deep .table-box .ant-form-item{margin-bottom:0}:host ::ng-deep .table-box .label-required{color:red;margin-right:2px}:host ::ng-deep .card-ind{padding:10px 15px;border:1px solid #eaeaea;border-radius:4px;margin-bottom:15px}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i4.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i4.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i4.NgStyle, selector: "[ngStyle]", inputs: ["ngStyle"] }, { kind: "ngmodule", type: ReactiveFormsModule }, { kind: "ngmodule", type: NzIconModule }, { kind: "directive", type: i5.NzIconDirective, selector: "nz-icon,[nz-icon]", inputs: ["nzSpin", "nzRotate", "nzType", "nzTheme", "nzTwotoneColor", "nzIconfont"], exportAs: ["nzIcon"] }, { kind: "ngmodule", type: NzButtonModule }, { 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: "ngmodule", type: FormlyModule }, { kind: "component", type: i9.
|
|
123
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.15", type: DeonNzFieldDimIndicatorAssess, isStandalone: true, selector: "deon-nz-field-indicator-assess", usesInheritance: true, ngImport: i0, template: "<ng-container *ngIf=\"props && props['isTable']==true;else tmpDefault\">\n <div class=\"ind-list\">\n <div class=\"ind-item\">\n <ng-container *ngFor=\"let f of field.fieldGroup;let i=index;\">\n\n\n <ng-container *ngIf=\"f?.key!='indScoreSelect' && f?.key!='indScoreEnter';else tmpScore\">\n <div style=\"padding: 0 8px;\"\n [ngStyle]=\"props?.['tableConfig']?.[i]?.widthAuto ? {'flex': '1'} : {'width': props['tableConfig'][i]?.width+'px'}\">\n <formly-field [field]=\"f\" [hideLabel]=\"true\"></formly-field>\n </div>\n </ng-container>\n\n <ng-template #tmpScore>\n <ng-container *ngIf=\"props?.['expandInfo'] && props?.['expandInfo']?.length>0\">\n <ng-container *ngFor=\"let item of props?.['expandInfo']\">\n <div style=\"padding: 0 8px; width: 150px;\">{{item?.nodeData}}</div>\n </ng-container>\n </ng-container>\n <div style=\"padding: 0 8px; width: 150px;\">\n <formly-field [field]=\"f\" [hideLabel]=\"true\"></formly-field>\n </div>\n </ng-template>\n\n\n </ng-container>\n <ng-container *ngIf=\"props['tableConfig'].length > totalRenderedColumns\">\n <ng-container *ngFor=\"let f of props['tableConfig'].slice(totalRenderedColumns);let j=index;\">\n <div style=\"padding: 0 8px; width: 150px;\">\n <ng-container\n *ngIf=\"totalRenderedColumns==(field?.fieldGroup?.length ?? 0) &&props?.['expandInfo'] && props?.['expandInfo']?.length>j;else tmpEmptyData\">\n {{props?.[\"expandInfo\"]?.[j]?.nodeData}}\n </ng-container>\n <ng-template #tmpEmptyData>---</ng-template>\n </div>\n </ng-container>\n </ng-container>\n </div>\n </div>\n</ng-container>\n\n<ng-template #tmpDefault>\n <div class=\"ind-content\">\n <ng-container *ngIf=\"field?.fieldGroup && (field?.fieldGroup?.length ?? 0) > 0\">\n <div class=\"table-box\" *ngIf=\"props?.['indConfig']?.['izIndTable'] == true; else tmpCard\">\n <table>\n <thead>\n <tr>\n <ng-container *ngFor=\"let f of field.fieldGroup\">\n <th [attr.width]=\"\n f?.key == 'name'\n ? '300px'\n : f?.key == 'desc'\n ? ''\n : '130px'\n \" *ngIf=\"f?.key != 'indScoreEnter' && f?.key != 'indScoreSelect'\">\n <ng-container *ngIf=\"f?.props?.required == true\">\n <label class=\"label-required\">*</label>\n </ng-container>\n {{ f.props?.label }}\n </th>\n </ng-container>\n </tr>\n </thead>\n <tbody>\n <tr>\n <ng-container *ngFor=\"let f of field.fieldGroup\">\n <td *ngIf=\"f?.key != 'indScoreEnter' && f?.key != 'indScoreSelect'\">\n <formly-field [field]=\"f\" [hideLabel]=\"true\"></formly-field>\n </td>\n </ng-container>\n </tr>\n <tr>\n <td [attr.colspan]=\"(field?.fieldGroup?.length ?? 0)\">\n <div class=\"ind-assess\">\n <div class=\"assess-nodes\" *ngIf=\"\n props?.['expandInfo'] &&\n props?.['expandInfo']?.length > 0\n \">\n <div class=\"node-title\">\n <label><span nz-icon nzType=\"bars\"></span>\u8BC4\u4F30\u8BB0\u5F55</label>\n </div>\n <div class=\"node-box\" *ngFor=\"let item of props?.['expandInfo']\">\n <label class=\"title\">{{ item?.nodeName }}</label>\n <label class=\"value\">{{ item?.nodeData }}</label>\n </div>\n </div>\n <div class=\"assess-info\">\n <ng-container *ngFor=\"let f of field.fieldGroup\">\n <ng-container *ngIf=\"\n f?.key == 'indScoreEnter' || f?.key == 'indScoreSelect'\n \">\n <formly-field [field]=\"f\"></formly-field>\n </ng-container>\n </ng-container>\n </div>\n </div>\n </td>\n </tr>\n </tbody>\n </table>\n </div>\n </ng-container>\n </div>\n</ng-template>\n\n<ng-template #tmpCard>\n <div class=\"card-ind\">\n <div class=\"ind-info\">\n <ng-container *ngFor=\"let f of field.fieldGroup\">\n <formly-field [field]=\"f\" *ngIf=\"f?.key != 'indScoreEnter' && f?.key != 'indScoreSelect'\"></formly-field>\n </ng-container>\n </div>\n <div class=\"ind-assess\">\n <div class=\"assess-nodes\" *ngIf=\"\n props?.['expandInfo'] && props?.['expandInfo']?.length > 0\n \">\n <div class=\"node-title\">\n <label><span nz-icon nzType=\"bars\"></span>\u8BC4\u4F30\u8BB0\u5F55</label>\n </div>\n <div class=\"node-box\" *ngFor=\"let item of props?.['expandInfo']\">\n <label class=\"title\">{{ item?.nodeName }}</label>\n <label class=\"value\">{{ item?.nodeData }}</label>\n </div>\n </div>\n <div class=\"assess-info\">\n <ng-container *ngFor=\"let f of field.fieldGroup\">\n <ng-container *ngIf=\"f?.key == 'indScoreEnter' || f?.key == 'indScoreSelect'\">\n <formly-field [field]=\"f\"></formly-field>\n </ng-container>\n </ng-container>\n </div>\n </div>\n </div>\n</ng-template>", styles: [":host ::ng-deep{width:100%;border:0;border-radius:4px;padding:0;display:flex;flex-direction:column}:host ::ng-deep .ind-finish{padding:8px 15px 6px;border-bottom:1px solid #eaeaea}:host ::ng-deep .ind-finish nz-form-label{width:auto!important;max-width:none!important}:host ::ng-deep .ind-finish nz-form-item{margin-bottom:0!important}:host ::ng-deep .ind-finish nz-input-number{max-width:150px}:host ::ng-deep .ind-content{flex:1;padding:15px 15px 0}:host ::ng-deep .ind-assess{padding:0 15px 0 0;display:flex;flex-direction:column}:host ::ng-deep .ind-assess .assess-nodes{display:flex;flex-direction:row;align-items:center;padding:0;margin:0}:host ::ng-deep .ind-assess .assess-nodes .node-title{display:flex;flex-direction:row;align-items:center;padding:0 20px 0 0}:host ::ng-deep .ind-assess .assess-nodes .node-title label{line-height:normal}:host ::ng-deep .ind-assess .assess-nodes .node-box{display:flex;flex-direction:row;align-items:center;padding:0 15px 0 0}:host ::ng-deep .ind-assess .assess-nodes .node-box label{line-height:normal}:host ::ng-deep .ind-assess .assess-nodes .node-box .title:after{content:\":\";padding:0 5px 0 3px}:host ::ng-deep .ind-assess .assess-nodes .node-box .value{font-size:14px;font-weight:600}:host ::ng-deep .ind-assess .assess-info{display:flex;padding:0}:host ::ng-deep .ind-assess .assess-info nz-form-label{width:auto!important;max-width:none!important;padding:0 15px 0 0!important}:host ::ng-deep .ind-assess .assess-info nz-form-item{margin-bottom:0!important}:host ::ng-deep .ind-assess .assess-info nz-input-number{max-width:150px;height:26px;min-height:26px}:host ::ng-deep .ind-assess .assess-info nz-input-number .ant-input-number-input{height:24px;line-height:24px}:host ::ng-deep .ind-assess .assess-nodes+.assess-info{padding:8px 0 0}:host ::ng-deep .table-box{padding:0 0 20px}:host ::ng-deep .table-box table tr th{padding:0 8px}:host ::ng-deep .table-box table tr td{padding:10px 8px;vertical-align:top}:host ::ng-deep .table-box .ant-form-item{margin-bottom:0}:host ::ng-deep .table-box .label-required{color:red;margin-right:2px}:host ::ng-deep .card-ind{padding:10px 15px;border:1px solid #eaeaea;border-radius:4px;margin-bottom:15px}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i4.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i4.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i4.NgStyle, selector: "[ngStyle]", inputs: ["ngStyle"] }, { kind: "ngmodule", type: ReactiveFormsModule }, { kind: "ngmodule", type: NzIconModule }, { kind: "directive", type: i5.NzIconDirective, selector: "nz-icon,[nz-icon]", inputs: ["nzSpin", "nzRotate", "nzType", "nzTheme", "nzTwotoneColor", "nzIconfont"], exportAs: ["nzIcon"] }, { kind: "ngmodule", type: NzButtonModule }, { 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: "ngmodule", type: FormlyModule }, { kind: "component", type: i9.LegacyFormlyField, selector: "formly-field" }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
124
124
|
}
|
|
125
125
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: DeonNzFieldDimIndicatorAssess, decorators: [{
|
|
126
126
|
type: Component,
|
|
@@ -133,48 +133,37 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.15", ngImpo
|
|
|
133
133
|
], template: "<ng-container *ngIf=\"props && props['isTable']==true;else tmpDefault\">\n <div class=\"ind-list\">\n <div class=\"ind-item\">\n <ng-container *ngFor=\"let f of field.fieldGroup;let i=index;\">\n\n\n <ng-container *ngIf=\"f?.key!='indScoreSelect' && f?.key!='indScoreEnter';else tmpScore\">\n <div style=\"padding: 0 8px;\"\n [ngStyle]=\"props?.['tableConfig']?.[i]?.widthAuto ? {'flex': '1'} : {'width': props['tableConfig'][i]?.width+'px'}\">\n <formly-field [field]=\"f\" [hideLabel]=\"true\"></formly-field>\n </div>\n </ng-container>\n\n <ng-template #tmpScore>\n <ng-container *ngIf=\"props?.['expandInfo'] && props?.['expandInfo']?.length>0\">\n <ng-container *ngFor=\"let item of props?.['expandInfo']\">\n <div style=\"padding: 0 8px; width: 150px;\">{{item?.nodeData}}</div>\n </ng-container>\n </ng-container>\n <div style=\"padding: 0 8px; width: 150px;\">\n <formly-field [field]=\"f\" [hideLabel]=\"true\"></formly-field>\n </div>\n </ng-template>\n\n\n </ng-container>\n <ng-container *ngIf=\"props['tableConfig'].length > totalRenderedColumns\">\n <ng-container *ngFor=\"let f of props['tableConfig'].slice(totalRenderedColumns);let j=index;\">\n <div style=\"padding: 0 8px; width: 150px;\">\n <ng-container\n *ngIf=\"totalRenderedColumns==(field?.fieldGroup?.length ?? 0) &&props?.['expandInfo'] && props?.['expandInfo']?.length>j;else tmpEmptyData\">\n {{props?.[\"expandInfo\"]?.[j]?.nodeData}}\n </ng-container>\n <ng-template #tmpEmptyData>---</ng-template>\n </div>\n </ng-container>\n </ng-container>\n </div>\n </div>\n</ng-container>\n\n<ng-template #tmpDefault>\n <div class=\"ind-content\">\n <ng-container *ngIf=\"field?.fieldGroup && (field?.fieldGroup?.length ?? 0) > 0\">\n <div class=\"table-box\" *ngIf=\"props?.['indConfig']?.['izIndTable'] == true; else tmpCard\">\n <table>\n <thead>\n <tr>\n <ng-container *ngFor=\"let f of field.fieldGroup\">\n <th [attr.width]=\"\n f?.key == 'name'\n ? '300px'\n : f?.key == 'desc'\n ? ''\n : '130px'\n \" *ngIf=\"f?.key != 'indScoreEnter' && f?.key != 'indScoreSelect'\">\n <ng-container *ngIf=\"f?.props?.required == true\">\n <label class=\"label-required\">*</label>\n </ng-container>\n {{ f.props?.label }}\n </th>\n </ng-container>\n </tr>\n </thead>\n <tbody>\n <tr>\n <ng-container *ngFor=\"let f of field.fieldGroup\">\n <td *ngIf=\"f?.key != 'indScoreEnter' && f?.key != 'indScoreSelect'\">\n <formly-field [field]=\"f\" [hideLabel]=\"true\"></formly-field>\n </td>\n </ng-container>\n </tr>\n <tr>\n <td [attr.colspan]=\"(field?.fieldGroup?.length ?? 0)\">\n <div class=\"ind-assess\">\n <div class=\"assess-nodes\" *ngIf=\"\n props?.['expandInfo'] &&\n props?.['expandInfo']?.length > 0\n \">\n <div class=\"node-title\">\n <label><span nz-icon nzType=\"bars\"></span>\u8BC4\u4F30\u8BB0\u5F55</label>\n </div>\n <div class=\"node-box\" *ngFor=\"let item of props?.['expandInfo']\">\n <label class=\"title\">{{ item?.nodeName }}</label>\n <label class=\"value\">{{ item?.nodeData }}</label>\n </div>\n </div>\n <div class=\"assess-info\">\n <ng-container *ngFor=\"let f of field.fieldGroup\">\n <ng-container *ngIf=\"\n f?.key == 'indScoreEnter' || f?.key == 'indScoreSelect'\n \">\n <formly-field [field]=\"f\"></formly-field>\n </ng-container>\n </ng-container>\n </div>\n </div>\n </td>\n </tr>\n </tbody>\n </table>\n </div>\n </ng-container>\n </div>\n</ng-template>\n\n<ng-template #tmpCard>\n <div class=\"card-ind\">\n <div class=\"ind-info\">\n <ng-container *ngFor=\"let f of field.fieldGroup\">\n <formly-field [field]=\"f\" *ngIf=\"f?.key != 'indScoreEnter' && f?.key != 'indScoreSelect'\"></formly-field>\n </ng-container>\n </div>\n <div class=\"ind-assess\">\n <div class=\"assess-nodes\" *ngIf=\"\n props?.['expandInfo'] && props?.['expandInfo']?.length > 0\n \">\n <div class=\"node-title\">\n <label><span nz-icon nzType=\"bars\"></span>\u8BC4\u4F30\u8BB0\u5F55</label>\n </div>\n <div class=\"node-box\" *ngFor=\"let item of props?.['expandInfo']\">\n <label class=\"title\">{{ item?.nodeName }}</label>\n <label class=\"value\">{{ item?.nodeData }}</label>\n </div>\n </div>\n <div class=\"assess-info\">\n <ng-container *ngFor=\"let f of field.fieldGroup\">\n <ng-container *ngIf=\"f?.key == 'indScoreEnter' || f?.key == 'indScoreSelect'\">\n <formly-field [field]=\"f\"></formly-field>\n </ng-container>\n </ng-container>\n </div>\n </div>\n </div>\n</ng-template>", styles: [":host ::ng-deep{width:100%;border:0;border-radius:4px;padding:0;display:flex;flex-direction:column}:host ::ng-deep .ind-finish{padding:8px 15px 6px;border-bottom:1px solid #eaeaea}:host ::ng-deep .ind-finish nz-form-label{width:auto!important;max-width:none!important}:host ::ng-deep .ind-finish nz-form-item{margin-bottom:0!important}:host ::ng-deep .ind-finish nz-input-number{max-width:150px}:host ::ng-deep .ind-content{flex:1;padding:15px 15px 0}:host ::ng-deep .ind-assess{padding:0 15px 0 0;display:flex;flex-direction:column}:host ::ng-deep .ind-assess .assess-nodes{display:flex;flex-direction:row;align-items:center;padding:0;margin:0}:host ::ng-deep .ind-assess .assess-nodes .node-title{display:flex;flex-direction:row;align-items:center;padding:0 20px 0 0}:host ::ng-deep .ind-assess .assess-nodes .node-title label{line-height:normal}:host ::ng-deep .ind-assess .assess-nodes .node-box{display:flex;flex-direction:row;align-items:center;padding:0 15px 0 0}:host ::ng-deep .ind-assess .assess-nodes .node-box label{line-height:normal}:host ::ng-deep .ind-assess .assess-nodes .node-box .title:after{content:\":\";padding:0 5px 0 3px}:host ::ng-deep .ind-assess .assess-nodes .node-box .value{font-size:14px;font-weight:600}:host ::ng-deep .ind-assess .assess-info{display:flex;padding:0}:host ::ng-deep .ind-assess .assess-info nz-form-label{width:auto!important;max-width:none!important;padding:0 15px 0 0!important}:host ::ng-deep .ind-assess .assess-info nz-form-item{margin-bottom:0!important}:host ::ng-deep .ind-assess .assess-info nz-input-number{max-width:150px;height:26px;min-height:26px}:host ::ng-deep .ind-assess .assess-info nz-input-number .ant-input-number-input{height:24px;line-height:24px}:host ::ng-deep .ind-assess .assess-nodes+.assess-info{padding:8px 0 0}:host ::ng-deep .table-box{padding:0 0 20px}:host ::ng-deep .table-box table tr th{padding:0 8px}:host ::ng-deep .table-box table tr td{padding:10px 8px;vertical-align:top}:host ::ng-deep .table-box .ant-form-item{margin-bottom:0}:host ::ng-deep .table-box .label-required{color:red;margin-right:2px}:host ::ng-deep .card-ind{padding:10px 15px;border:1px solid #eaeaea;border-radius:4px;margin-bottom:15px}\n"] }]
|
|
134
134
|
}], ctorParameters: () => [{ type: i1.NzModalService }, { type: i2.NzMessageService }, { type: i3.GramGlobalService }] });
|
|
135
135
|
|
|
136
|
+
function withFormlyFieldIndicator() {
|
|
137
|
+
return {
|
|
138
|
+
types: [
|
|
139
|
+
{
|
|
140
|
+
name: 'indicator',
|
|
141
|
+
component: DeonNzFieldDimIndicator,
|
|
142
|
+
},
|
|
143
|
+
{
|
|
144
|
+
name: 'indicator_finish',
|
|
145
|
+
component: DeonNzFieldDimIndicatorFinish,
|
|
146
|
+
},
|
|
147
|
+
{
|
|
148
|
+
name: 'indicator_assess',
|
|
149
|
+
component: DeonNzFieldDimIndicatorAssess,
|
|
150
|
+
}
|
|
151
|
+
],
|
|
152
|
+
};
|
|
153
|
+
}
|
|
154
|
+
|
|
136
155
|
class DeonNzDimIndicatorModule {
|
|
137
156
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: DeonNzDimIndicatorModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
138
157
|
static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "19.2.15", ngImport: i0, type: DeonNzDimIndicatorModule, imports: [DeonNzFormFieldModule, i9.FormlyModule] });
|
|
139
158
|
static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: DeonNzDimIndicatorModule, imports: [DeonNzFormFieldModule,
|
|
140
|
-
FormlyModule.forChild(
|
|
141
|
-
types: [
|
|
142
|
-
{
|
|
143
|
-
name: 'indicator',
|
|
144
|
-
component: DeonNzFieldDimIndicator,
|
|
145
|
-
},
|
|
146
|
-
{
|
|
147
|
-
name: 'indicator_finish',
|
|
148
|
-
component: DeonNzFieldDimIndicatorFinish,
|
|
149
|
-
},
|
|
150
|
-
{
|
|
151
|
-
name: 'indicator_assess',
|
|
152
|
-
component: DeonNzFieldDimIndicatorAssess,
|
|
153
|
-
},
|
|
154
|
-
],
|
|
155
|
-
})] });
|
|
159
|
+
FormlyModule.forChild(withFormlyFieldIndicator())] });
|
|
156
160
|
}
|
|
157
161
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: DeonNzDimIndicatorModule, decorators: [{
|
|
158
162
|
type: NgModule,
|
|
159
163
|
args: [{
|
|
160
164
|
imports: [
|
|
161
165
|
DeonNzFormFieldModule,
|
|
162
|
-
FormlyModule.forChild(
|
|
163
|
-
types: [
|
|
164
|
-
{
|
|
165
|
-
name: 'indicator',
|
|
166
|
-
component: DeonNzFieldDimIndicator,
|
|
167
|
-
},
|
|
168
|
-
{
|
|
169
|
-
name: 'indicator_finish',
|
|
170
|
-
component: DeonNzFieldDimIndicatorFinish,
|
|
171
|
-
},
|
|
172
|
-
{
|
|
173
|
-
name: 'indicator_assess',
|
|
174
|
-
component: DeonNzFieldDimIndicatorAssess,
|
|
175
|
-
},
|
|
176
|
-
],
|
|
177
|
-
}),
|
|
166
|
+
FormlyModule.forChild(withFormlyFieldIndicator()),
|
|
178
167
|
],
|
|
179
168
|
}]
|
|
180
169
|
}] });
|
|
@@ -183,5 +172,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.15", ngImpo
|
|
|
183
172
|
* Generated bundle index. Do not edit.
|
|
184
173
|
*/
|
|
185
174
|
|
|
186
|
-
export { DeonNzDimIndicatorModule, DeonNzFieldDimIndicator };
|
|
175
|
+
export { DeonNzDimIndicatorModule, DeonNzFieldDimIndicator, withFormlyFieldIndicator };
|
|
187
176
|
//# sourceMappingURL=type.dim-indicator.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"type.dim-indicator.mjs","sources":["../../../../packages/form/dim-indicator/src/default/index.ts","../../../../packages/form/dim-indicator/src/default/index.html","../../../../packages/form/dim-indicator/src/finish/index.ts","../../../../packages/form/dim-indicator/src/finish/index.html","../../../../packages/form/dim-indicator/src/assess/index.ts","../../../../packages/form/dim-indicator/src/assess/index.html","../../../../packages/form/dim-indicator/src/indicator.module.ts","../../../../packages/form/dim-indicator/type.dim-indicator.ts"],"sourcesContent":["import { Component, ChangeDetectionStrategy } from '@angular/core';\n\nimport { CommonModule } from '@angular/common';\nimport { ReactiveFormsModule } from '@angular/forms';\nimport { NzIconModule } from 'ng-zorro-antd/icon';\nimport { NzButtonModule } from 'ng-zorro-antd/button';\n\nimport { NzMessageService } from 'ng-zorro-antd/message';\nimport { NzModalService } from 'ng-zorro-antd/modal';\nimport { globalKey } from '@ebuilding/base/shared.var/shared.constant';\nimport { GramGlobalService } from '@ebuilding/base/shared.srv/global.event';\nimport { FormlyModule, FieldType } from '@kre-form/core';\nimport _ from 'lodash';\n\n@Component({\n selector: 'deon-nz-field-indicator',\n templateUrl: './index.html',\n styleUrls: ['./index.less'],\n changeDetection: ChangeDetectionStrategy.OnPush,\n imports: [\n CommonModule,\n ReactiveFormsModule,\n NzIconModule,\n NzButtonModule,\n FormlyModule\n ]\n})\nexport class DeonNzFieldDimIndicator extends FieldType {\n override defaultOptions = {\n props: {},\n };\n\n constructor(public modal: NzModalService, public msg: NzMessageService, public globalSrv: GramGlobalService) {\n super();\n }\n\n btnUp() {\n this.globalSrv.notifyDataChanged(globalKey.kpi_ind_button, {\n field: this.field,\n type: 'UP',\n });\n }\n\n btnDown() {\n this.globalSrv.notifyDataChanged(globalKey.kpi_ind_button, {\n field: this.field,\n type: 'DOWN',\n });\n }\n\n btnDelete() {\n this.modal.confirm({\n nzTitle: '提示',\n nzContent: `您确定需要删除该指标吗?`,\n nzOnOk: () => {\n this.globalSrv.notifyDataChanged(globalKey.kpi_ind_button, {\n field: this.field,\n type: 'DELETE',\n });\n },\n });\n }\n}\n","<ng-container *ngIf=\"props && props['isTable']==true;else tmpDefault\">\n <div class=\"ind-list\">\n <div class=\"ind-item\">\n <ng-container *ngFor=\"let f of field.fieldGroup;let index=index;\">\n <div style=\"padding: 0 8px;\"\n [ngStyle]=\"props['tableConfig'][index].widthAuto ? {'flex': '1'} : {'width': props['tableConfig'][index]?.width+'px'}\">\n <formly-field [field]=\"f\" [hideLabel]=\"true\"></formly-field>\n </div>\n </ng-container>\n </div>\n <div class=\"ind-operate\" *ngIf=\"field?.editor == true\">\n <a (click)=\"btnUp()\">\n <i nz-icon nzType=\"arrow-up\"></i>\n </a>\n <a (click)=\"btnDown()\">\n <i nz-icon nzType=\"arrow-down\"></i>\n </a>\n <a (click)=\"btnDelete()\" *ngIf=\"props?.['indConfig']?.['izAllowDel'] == true\">\n <i nz-icon nzType=\"delete\"></i>\n </a>\n </div>\n </div>\n</ng-container>\n<ng-template #tmpDefault>\n <div class=\"ind-button\" *ngIf=\"field?.editor == true\">\n <button nz-button nzType=\"default\" type=\"button\" (click)=\"btnUp()\">\n <i nz-icon nzType=\"arrow-up\"></i>上移\n </button>\n <button nz-button nzType=\"default\" type=\"button\" (click)=\"btnDown()\">\n <i nz-icon nzType=\"arrow-down\"></i>下移\n </button>\n <button nz-button nzType=\"default\" type=\"button\" (click)=\"btnDelete()\"\n *ngIf=\"props?.['indConfig']?.['izAllowDel'] == true\">\n <i nz-icon nzType=\"delete\"></i>删除\n </button>\n </div>\n\n <div class=\"ind-content\">\n <ng-container *ngIf=\"field?.fieldGroup && (field?.fieldGroup?.length ?? 0) > 0\">\n <div class=\"table-box\" *ngIf=\"props?.['indConfig']?.['izIndTable'] == true; else tmpDefault2\">\n <table>\n <thead>\n <tr>\n <ng-container *ngFor=\"let f of field.fieldGroup\">\n <th [attr.width]=\"\n f?.key == 'name'\n ? '300px'\n : f?.key == 'desc'\n ? ''\n : '130px'\n \">\n <ng-container *ngIf=\"f?.props?.required == true\">\n <label class=\"label-required\">*</label>\n </ng-container>\n {{ f.props?.label }}\n </th>\n </ng-container>\n </tr>\n </thead>\n <tbody>\n <tr>\n <ng-container *ngFor=\"let f of field.fieldGroup\">\n <td>\n <formly-field [field]=\"f\" [hideLabel]=\"true\"></formly-field>\n </td>\n </ng-container>\n </tr>\n </tbody>\n </table>\n </div>\n </ng-container>\n </div>\n</ng-template>\n<ng-template #tmpDefault2>\n <ng-container *ngFor=\"let f of field.fieldGroup\">\n <formly-field [field]=\"f\"></formly-field>\n </ng-container>\n</ng-template>","import { Component, ChangeDetectionStrategy } from '@angular/core';\n\nimport { CommonModule } from '@angular/common';\nimport { ReactiveFormsModule } from '@angular/forms';\nimport { NzIconModule } from 'ng-zorro-antd/icon';\nimport { NzButtonModule } from 'ng-zorro-antd/button';\n\nimport { NzMessageService } from 'ng-zorro-antd/message';\nimport { NzModalService } from 'ng-zorro-antd/modal';\nimport { GramGlobalService } from '@ebuilding/base/shared.srv/global.event';\nimport { FormlyModule, FieldType } from '@kre-form/core';\nimport _ from 'lodash';\n\n@Component({\n selector: 'deon-nz-field-indicator-finish',\n templateUrl: './index.html',\n styleUrls: ['./index.less'],\n changeDetection: ChangeDetectionStrategy.OnPush,\n imports: [\n CommonModule,\n ReactiveFormsModule,\n NzIconModule,\n NzButtonModule,\n FormlyModule\n ]\n})\nexport class DeonNzFieldDimIndicatorFinish extends FieldType {\n override defaultOptions = {\n props: {},\n };\n\n constructor(public modal: NzModalService, public msg: NzMessageService, public globalSrv: GramGlobalService) {\n super();\n }\n}\n","<div class=\"ind-finish\">\n <ng-container *ngFor=\"let f of field.fieldGroup\">\n <ng-container *ngIf=\"f?.key == 'finishValue'\">\n <formly-field [field]=\"f\"></formly-field>\n </ng-container>\n </ng-container>\n</div>\n\n<div class=\"ind-content\">\n <ng-container *ngIf=\"field?.fieldGroup && (field?.fieldGroup?.length ?? 0) > 0\">\n <div class=\"table-box\" *ngIf=\"props?.['indConfig']?.['izIndTable'] == true; else tmpDefault\">\n <table>\n <thead>\n <tr>\n <ng-container *ngFor=\"let f of field.fieldGroup\">\n <th [attr.width]=\"f?.key == 'name' ? '300px' : f?.key == 'desc' ? '' : '130px'\"\n *ngIf=\"f?.key != 'finishValue'\">\n <ng-container *ngIf=\"f?.props?.required == true\">\n <label class=\"label-required\">*</label>\n </ng-container>\n {{ f.props?.label }}\n </th>\n </ng-container>\n </tr>\n </thead>\n <tbody>\n <tr>\n <ng-container *ngFor=\"let f of field.fieldGroup\">\n <td *ngIf=\"f?.key != 'finishValue'\">\n <formly-field [field]=\"f\" [hideLabel]=\"true\"></formly-field>\n </td>\n </ng-container>\n </tr>\n </tbody>\n </table>\n </div>\n\n <ng-template #tmpDefault>\n <ng-container *ngFor=\"let f of field.fieldGroup\">\n <formly-field [field]=\"f\" *ngIf=\"f?.key != 'finishValue'\"></formly-field>\n </ng-container>\n </ng-template>\n </ng-container>\n</div>","import { Component, ChangeDetectionStrategy } from '@angular/core';\n\nimport { CommonModule } from '@angular/common';\nimport { ReactiveFormsModule } from '@angular/forms';\nimport { NzIconModule } from 'ng-zorro-antd/icon';\nimport { NzButtonModule } from 'ng-zorro-antd/button';\n\nimport { NzMessageService } from 'ng-zorro-antd/message';\nimport { NzModalService } from 'ng-zorro-antd/modal';\nimport { GramGlobalService } from '@ebuilding/base/shared.srv/global.event';\nimport { FormlyModule, FieldType } from '@kre-form/core';\nimport _ from 'lodash';\n\n@Component({\n selector: 'deon-nz-field-indicator-assess',\n templateUrl: './index.html',\n styleUrls: ['./index.less'],\n changeDetection: ChangeDetectionStrategy.OnPush,\n imports: [\n CommonModule,\n ReactiveFormsModule,\n NzIconModule,\n NzButtonModule,\n FormlyModule\n ]\n})\nexport class DeonNzFieldDimIndicatorAssess extends FieldType {\n override defaultOptions = {\n props: {},\n };\n\n constructor(public modal: NzModalService, public msg: NzMessageService, public globalSrv: GramGlobalService) {\n super();\n }\n\n get totalRenderedColumns(): number {\n const baseLength = this.field?.fieldGroup?.length ?? 0;\n const expandCount: any = this.field?.fieldGroup?.filter(f =>\n f?.key === 'indScoreSelect' || f?.key === 'indScoreEnter'\n ).length;\n if (expandCount > 0) {\n const expandInfoLength = Array.isArray(this.props?.[\"expandInfo\"]) ? this.props?.[\"expandInfo\"].length : 0;\n return baseLength + expandInfoLength;\n } else {\n return baseLength;\n }\n }\n}\n","<ng-container *ngIf=\"props && props['isTable']==true;else tmpDefault\">\n <div class=\"ind-list\">\n <div class=\"ind-item\">\n <ng-container *ngFor=\"let f of field.fieldGroup;let i=index;\">\n\n\n <ng-container *ngIf=\"f?.key!='indScoreSelect' && f?.key!='indScoreEnter';else tmpScore\">\n <div style=\"padding: 0 8px;\"\n [ngStyle]=\"props?.['tableConfig']?.[i]?.widthAuto ? {'flex': '1'} : {'width': props['tableConfig'][i]?.width+'px'}\">\n <formly-field [field]=\"f\" [hideLabel]=\"true\"></formly-field>\n </div>\n </ng-container>\n\n <ng-template #tmpScore>\n <ng-container *ngIf=\"props?.['expandInfo'] && props?.['expandInfo']?.length>0\">\n <ng-container *ngFor=\"let item of props?.['expandInfo']\">\n <div style=\"padding: 0 8px; width: 150px;\">{{item?.nodeData}}</div>\n </ng-container>\n </ng-container>\n <div style=\"padding: 0 8px; width: 150px;\">\n <formly-field [field]=\"f\" [hideLabel]=\"true\"></formly-field>\n </div>\n </ng-template>\n\n\n </ng-container>\n <ng-container *ngIf=\"props['tableConfig'].length > totalRenderedColumns\">\n <ng-container *ngFor=\"let f of props['tableConfig'].slice(totalRenderedColumns);let j=index;\">\n <div style=\"padding: 0 8px; width: 150px;\">\n <ng-container\n *ngIf=\"totalRenderedColumns==(field?.fieldGroup?.length ?? 0) &&props?.['expandInfo'] && props?.['expandInfo']?.length>j;else tmpEmptyData\">\n {{props?.[\"expandInfo\"]?.[j]?.nodeData}}\n </ng-container>\n <ng-template #tmpEmptyData>---</ng-template>\n </div>\n </ng-container>\n </ng-container>\n </div>\n </div>\n</ng-container>\n\n<ng-template #tmpDefault>\n <div class=\"ind-content\">\n <ng-container *ngIf=\"field?.fieldGroup && (field?.fieldGroup?.length ?? 0) > 0\">\n <div class=\"table-box\" *ngIf=\"props?.['indConfig']?.['izIndTable'] == true; else tmpCard\">\n <table>\n <thead>\n <tr>\n <ng-container *ngFor=\"let f of field.fieldGroup\">\n <th [attr.width]=\"\n f?.key == 'name'\n ? '300px'\n : f?.key == 'desc'\n ? ''\n : '130px'\n \" *ngIf=\"f?.key != 'indScoreEnter' && f?.key != 'indScoreSelect'\">\n <ng-container *ngIf=\"f?.props?.required == true\">\n <label class=\"label-required\">*</label>\n </ng-container>\n {{ f.props?.label }}\n </th>\n </ng-container>\n </tr>\n </thead>\n <tbody>\n <tr>\n <ng-container *ngFor=\"let f of field.fieldGroup\">\n <td *ngIf=\"f?.key != 'indScoreEnter' && f?.key != 'indScoreSelect'\">\n <formly-field [field]=\"f\" [hideLabel]=\"true\"></formly-field>\n </td>\n </ng-container>\n </tr>\n <tr>\n <td [attr.colspan]=\"(field?.fieldGroup?.length ?? 0)\">\n <div class=\"ind-assess\">\n <div class=\"assess-nodes\" *ngIf=\"\n props?.['expandInfo'] &&\n props?.['expandInfo']?.length > 0\n \">\n <div class=\"node-title\">\n <label><span nz-icon nzType=\"bars\"></span>评估记录</label>\n </div>\n <div class=\"node-box\" *ngFor=\"let item of props?.['expandInfo']\">\n <label class=\"title\">{{ item?.nodeName }}</label>\n <label class=\"value\">{{ item?.nodeData }}</label>\n </div>\n </div>\n <div class=\"assess-info\">\n <ng-container *ngFor=\"let f of field.fieldGroup\">\n <ng-container *ngIf=\"\n f?.key == 'indScoreEnter' || f?.key == 'indScoreSelect'\n \">\n <formly-field [field]=\"f\"></formly-field>\n </ng-container>\n </ng-container>\n </div>\n </div>\n </td>\n </tr>\n </tbody>\n </table>\n </div>\n </ng-container>\n </div>\n</ng-template>\n\n<ng-template #tmpCard>\n <div class=\"card-ind\">\n <div class=\"ind-info\">\n <ng-container *ngFor=\"let f of field.fieldGroup\">\n <formly-field [field]=\"f\" *ngIf=\"f?.key != 'indScoreEnter' && f?.key != 'indScoreSelect'\"></formly-field>\n </ng-container>\n </div>\n <div class=\"ind-assess\">\n <div class=\"assess-nodes\" *ngIf=\"\n props?.['expandInfo'] && props?.['expandInfo']?.length > 0\n \">\n <div class=\"node-title\">\n <label><span nz-icon nzType=\"bars\"></span>评估记录</label>\n </div>\n <div class=\"node-box\" *ngFor=\"let item of props?.['expandInfo']\">\n <label class=\"title\">{{ item?.nodeName }}</label>\n <label class=\"value\">{{ item?.nodeData }}</label>\n </div>\n </div>\n <div class=\"assess-info\">\n <ng-container *ngFor=\"let f of field.fieldGroup\">\n <ng-container *ngIf=\"f?.key == 'indScoreEnter' || f?.key == 'indScoreSelect'\">\n <formly-field [field]=\"f\"></formly-field>\n </ng-container>\n </ng-container>\n </div>\n </div>\n </div>\n</ng-template>","import { NgModule } from '@angular/core';\n\nimport { FormlyModule } from '@kre-form/core';\nimport { DeonNzFormFieldModule } from '@ebuilding/form/form-field';\n\nimport { DeonNzFieldDimIndicator } from './default';\nimport { DeonNzFieldDimIndicatorFinish } from './finish';\nimport { DeonNzFieldDimIndicatorAssess } from './assess';\n\n@NgModule({\n imports: [\n DeonNzFormFieldModule,\n FormlyModule.forChild({\n types: [\n {\n name: 'indicator',\n component: DeonNzFieldDimIndicator,\n },\n {\n name: 'indicator_finish',\n component: DeonNzFieldDimIndicatorFinish,\n },\n {\n name: 'indicator_assess',\n component: DeonNzFieldDimIndicatorAssess,\n },\n ],\n }),\n ],\n})\nexport class DeonNzDimIndicatorModule { }\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":["i5","i6","i7","i1"],"mappings":";;;;;;;;;;;;;;;;;;;AA2BM,MAAO,uBAAwB,SAAQ,SAAS,CAAA;AAKjC,IAAA,KAAA;AAA8B,IAAA,GAAA;AAA8B,IAAA,SAAA;AAJtE,IAAA,cAAc,GAAG;AACxB,QA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,EAAE,6BAA6B;AACzC,iCAAA;AACF,6BAAA;yBACF,CAAC;AACH,qBAAA;AACF,iBAAA;;;AC7BD;;AAEG;;;;"}
|
|
1
|
+
{"version":3,"file":"type.dim-indicator.mjs","sources":["../../../../packages/form/dim-indicator/src/default/index.ts","../../../../packages/form/dim-indicator/src/default/index.html","../../../../packages/form/dim-indicator/src/finish/index.ts","../../../../packages/form/dim-indicator/src/finish/index.html","../../../../packages/form/dim-indicator/src/assess/index.ts","../../../../packages/form/dim-indicator/src/assess/index.html","../../../../packages/form/dim-indicator/src/app.config.ts","../../../../packages/form/dim-indicator/src/indicator.module.ts","../../../../packages/form/dim-indicator/type.dim-indicator.ts"],"sourcesContent":["import { Component, ChangeDetectionStrategy } from '@angular/core';\n\nimport { CommonModule } from '@angular/common';\nimport { ReactiveFormsModule } from '@angular/forms';\nimport { NzIconModule } from 'ng-zorro-antd/icon';\nimport { NzButtonModule } from 'ng-zorro-antd/button';\n\nimport { NzMessageService } from 'ng-zorro-antd/message';\nimport { NzModalService } from 'ng-zorro-antd/modal';\nimport { globalKey } from '@ebuilding/base/shared.var/shared.constant';\nimport { GramGlobalService } from '@ebuilding/base/shared.srv/global.event';\nimport { FormlyModule, FieldType } from '@ebuilding-form/core';\nimport _ from 'lodash';\n\n@Component({\n selector: 'deon-nz-field-indicator',\n templateUrl: './index.html',\n styleUrls: ['./index.less'],\n changeDetection: ChangeDetectionStrategy.OnPush,\n imports: [\n CommonModule,\n ReactiveFormsModule,\n NzIconModule,\n NzButtonModule,\n FormlyModule\n ]\n})\nexport class DeonNzFieldDimIndicator extends FieldType {\n override defaultOptions = {\n props: {},\n };\n\n constructor(public modal: NzModalService, public msg: NzMessageService, public globalSrv: GramGlobalService) {\n super();\n }\n\n btnUp() {\n this.globalSrv.notifyDataChanged(globalKey.kpi_ind_button, {\n field: this.field,\n type: 'UP',\n });\n }\n\n btnDown() {\n this.globalSrv.notifyDataChanged(globalKey.kpi_ind_button, {\n field: this.field,\n type: 'DOWN',\n });\n }\n\n btnDelete() {\n this.modal.confirm({\n nzTitle: '提示',\n nzContent: `您确定需要删除该指标吗?`,\n nzOnOk: () => {\n this.globalSrv.notifyDataChanged(globalKey.kpi_ind_button, {\n field: this.field,\n type: 'DELETE',\n });\n },\n });\n }\n}\n","<ng-container *ngIf=\"props && props['isTable']==true;else tmpDefault\">\n <div class=\"ind-list\">\n <div class=\"ind-item\">\n <ng-container *ngFor=\"let f of field.fieldGroup;let index=index;\">\n <div style=\"padding: 0 8px;\"\n [ngStyle]=\"props['tableConfig'][index].widthAuto ? {'flex': '1'} : {'width': props['tableConfig'][index]?.width+'px'}\">\n <formly-field [field]=\"f\" [hideLabel]=\"true\"></formly-field>\n </div>\n </ng-container>\n </div>\n <div class=\"ind-operate\" *ngIf=\"field?.editor == true\">\n <a (click)=\"btnUp()\">\n <i nz-icon nzType=\"arrow-up\"></i>\n </a>\n <a (click)=\"btnDown()\">\n <i nz-icon nzType=\"arrow-down\"></i>\n </a>\n <a (click)=\"btnDelete()\" *ngIf=\"props?.['indConfig']?.['izAllowDel'] == true\">\n <i nz-icon nzType=\"delete\"></i>\n </a>\n </div>\n </div>\n</ng-container>\n<ng-template #tmpDefault>\n <div class=\"ind-button\" *ngIf=\"field?.editor == true\">\n <button nz-button nzType=\"default\" type=\"button\" (click)=\"btnUp()\">\n <i nz-icon nzType=\"arrow-up\"></i>上移\n </button>\n <button nz-button nzType=\"default\" type=\"button\" (click)=\"btnDown()\">\n <i nz-icon nzType=\"arrow-down\"></i>下移\n </button>\n <button nz-button nzType=\"default\" type=\"button\" (click)=\"btnDelete()\"\n *ngIf=\"props?.['indConfig']?.['izAllowDel'] == true\">\n <i nz-icon nzType=\"delete\"></i>删除\n </button>\n </div>\n\n <div class=\"ind-content\">\n <ng-container *ngIf=\"field?.fieldGroup && (field?.fieldGroup?.length ?? 0) > 0\">\n <div class=\"table-box\" *ngIf=\"props?.['indConfig']?.['izIndTable'] == true; else tmpDefault2\">\n <table>\n <thead>\n <tr>\n <ng-container *ngFor=\"let f of field.fieldGroup\">\n <th [attr.width]=\"\n f?.key == 'name'\n ? '300px'\n : f?.key == 'desc'\n ? ''\n : '130px'\n \">\n <ng-container *ngIf=\"f?.props?.required == true\">\n <label class=\"label-required\">*</label>\n </ng-container>\n {{ f.props?.label }}\n </th>\n </ng-container>\n </tr>\n </thead>\n <tbody>\n <tr>\n <ng-container *ngFor=\"let f of field.fieldGroup\">\n <td>\n <formly-field [field]=\"f\" [hideLabel]=\"true\"></formly-field>\n </td>\n </ng-container>\n </tr>\n </tbody>\n </table>\n </div>\n </ng-container>\n </div>\n</ng-template>\n<ng-template #tmpDefault2>\n <ng-container *ngFor=\"let f of field.fieldGroup\">\n <formly-field [field]=\"f\"></formly-field>\n </ng-container>\n</ng-template>","import { Component, ChangeDetectionStrategy } from '@angular/core';\n\nimport { CommonModule } from '@angular/common';\nimport { ReactiveFormsModule } from '@angular/forms';\nimport { NzIconModule } from 'ng-zorro-antd/icon';\nimport { NzButtonModule } from 'ng-zorro-antd/button';\n\nimport { NzMessageService } from 'ng-zorro-antd/message';\nimport { NzModalService } from 'ng-zorro-antd/modal';\nimport { GramGlobalService } from '@ebuilding/base/shared.srv/global.event';\nimport { FormlyModule, FieldType } from '@ebuilding-form/core';\nimport _ from 'lodash';\n\n@Component({\n selector: 'deon-nz-field-indicator-finish',\n templateUrl: './index.html',\n styleUrls: ['./index.less'],\n changeDetection: ChangeDetectionStrategy.OnPush,\n imports: [\n CommonModule,\n ReactiveFormsModule,\n NzIconModule,\n NzButtonModule,\n FormlyModule\n ]\n})\nexport class DeonNzFieldDimIndicatorFinish extends FieldType {\n override defaultOptions = {\n props: {},\n };\n\n constructor(public modal: NzModalService, public msg: NzMessageService, public globalSrv: GramGlobalService) {\n super();\n }\n}\n","<div class=\"ind-finish\">\n <ng-container *ngFor=\"let f of field.fieldGroup\">\n <ng-container *ngIf=\"f?.key == 'finishValue'\">\n <formly-field [field]=\"f\"></formly-field>\n </ng-container>\n </ng-container>\n</div>\n\n<div class=\"ind-content\">\n <ng-container *ngIf=\"field?.fieldGroup && (field?.fieldGroup?.length ?? 0) > 0\">\n <div class=\"table-box\" *ngIf=\"props?.['indConfig']?.['izIndTable'] == true; else tmpDefault\">\n <table>\n <thead>\n <tr>\n <ng-container *ngFor=\"let f of field.fieldGroup\">\n <th [attr.width]=\"f?.key == 'name' ? '300px' : f?.key == 'desc' ? '' : '130px'\"\n *ngIf=\"f?.key != 'finishValue'\">\n <ng-container *ngIf=\"f?.props?.required == true\">\n <label class=\"label-required\">*</label>\n </ng-container>\n {{ f.props?.label }}\n </th>\n </ng-container>\n </tr>\n </thead>\n <tbody>\n <tr>\n <ng-container *ngFor=\"let f of field.fieldGroup\">\n <td *ngIf=\"f?.key != 'finishValue'\">\n <formly-field [field]=\"f\" [hideLabel]=\"true\"></formly-field>\n </td>\n </ng-container>\n </tr>\n </tbody>\n </table>\n </div>\n\n <ng-template #tmpDefault>\n <ng-container *ngFor=\"let f of field.fieldGroup\">\n <formly-field [field]=\"f\" *ngIf=\"f?.key != 'finishValue'\"></formly-field>\n </ng-container>\n </ng-template>\n </ng-container>\n</div>","import { Component, ChangeDetectionStrategy } from '@angular/core';\n\nimport { CommonModule } from '@angular/common';\nimport { ReactiveFormsModule } from '@angular/forms';\nimport { NzIconModule } from 'ng-zorro-antd/icon';\nimport { NzButtonModule } from 'ng-zorro-antd/button';\n\nimport { NzMessageService } from 'ng-zorro-antd/message';\nimport { NzModalService } from 'ng-zorro-antd/modal';\nimport { GramGlobalService } from '@ebuilding/base/shared.srv/global.event';\nimport { FormlyModule, FieldType } from '@ebuilding-form/core';\nimport _ from 'lodash';\n\n@Component({\n selector: 'deon-nz-field-indicator-assess',\n templateUrl: './index.html',\n styleUrls: ['./index.less'],\n changeDetection: ChangeDetectionStrategy.OnPush,\n imports: [\n CommonModule,\n ReactiveFormsModule,\n NzIconModule,\n NzButtonModule,\n FormlyModule\n ]\n})\nexport class DeonNzFieldDimIndicatorAssess extends FieldType {\n override defaultOptions = {\n props: {},\n };\n\n constructor(public modal: NzModalService, public msg: NzMessageService, public globalSrv: GramGlobalService) {\n super();\n }\n\n get totalRenderedColumns(): number {\n const baseLength = this.field?.fieldGroup?.length ?? 0;\n const expandCount: any = this.field?.fieldGroup?.filter(f =>\n f?.key === 'indScoreSelect' || f?.key === 'indScoreEnter'\n ).length;\n if (expandCount > 0) {\n const expandInfoLength = Array.isArray(this.props?.[\"expandInfo\"]) ? this.props?.[\"expandInfo\"].length : 0;\n return baseLength + expandInfoLength;\n } else {\n return baseLength;\n }\n }\n}\n","<ng-container *ngIf=\"props && props['isTable']==true;else tmpDefault\">\n <div class=\"ind-list\">\n <div class=\"ind-item\">\n <ng-container *ngFor=\"let f of field.fieldGroup;let i=index;\">\n\n\n <ng-container *ngIf=\"f?.key!='indScoreSelect' && f?.key!='indScoreEnter';else tmpScore\">\n <div style=\"padding: 0 8px;\"\n [ngStyle]=\"props?.['tableConfig']?.[i]?.widthAuto ? {'flex': '1'} : {'width': props['tableConfig'][i]?.width+'px'}\">\n <formly-field [field]=\"f\" [hideLabel]=\"true\"></formly-field>\n </div>\n </ng-container>\n\n <ng-template #tmpScore>\n <ng-container *ngIf=\"props?.['expandInfo'] && props?.['expandInfo']?.length>0\">\n <ng-container *ngFor=\"let item of props?.['expandInfo']\">\n <div style=\"padding: 0 8px; width: 150px;\">{{item?.nodeData}}</div>\n </ng-container>\n </ng-container>\n <div style=\"padding: 0 8px; width: 150px;\">\n <formly-field [field]=\"f\" [hideLabel]=\"true\"></formly-field>\n </div>\n </ng-template>\n\n\n </ng-container>\n <ng-container *ngIf=\"props['tableConfig'].length > totalRenderedColumns\">\n <ng-container *ngFor=\"let f of props['tableConfig'].slice(totalRenderedColumns);let j=index;\">\n <div style=\"padding: 0 8px; width: 150px;\">\n <ng-container\n *ngIf=\"totalRenderedColumns==(field?.fieldGroup?.length ?? 0) &&props?.['expandInfo'] && props?.['expandInfo']?.length>j;else tmpEmptyData\">\n {{props?.[\"expandInfo\"]?.[j]?.nodeData}}\n </ng-container>\n <ng-template #tmpEmptyData>---</ng-template>\n </div>\n </ng-container>\n </ng-container>\n </div>\n </div>\n</ng-container>\n\n<ng-template #tmpDefault>\n <div class=\"ind-content\">\n <ng-container *ngIf=\"field?.fieldGroup && (field?.fieldGroup?.length ?? 0) > 0\">\n <div class=\"table-box\" *ngIf=\"props?.['indConfig']?.['izIndTable'] == true; else tmpCard\">\n <table>\n <thead>\n <tr>\n <ng-container *ngFor=\"let f of field.fieldGroup\">\n <th [attr.width]=\"\n f?.key == 'name'\n ? '300px'\n : f?.key == 'desc'\n ? ''\n : '130px'\n \" *ngIf=\"f?.key != 'indScoreEnter' && f?.key != 'indScoreSelect'\">\n <ng-container *ngIf=\"f?.props?.required == true\">\n <label class=\"label-required\">*</label>\n </ng-container>\n {{ f.props?.label }}\n </th>\n </ng-container>\n </tr>\n </thead>\n <tbody>\n <tr>\n <ng-container *ngFor=\"let f of field.fieldGroup\">\n <td *ngIf=\"f?.key != 'indScoreEnter' && f?.key != 'indScoreSelect'\">\n <formly-field [field]=\"f\" [hideLabel]=\"true\"></formly-field>\n </td>\n </ng-container>\n </tr>\n <tr>\n <td [attr.colspan]=\"(field?.fieldGroup?.length ?? 0)\">\n <div class=\"ind-assess\">\n <div class=\"assess-nodes\" *ngIf=\"\n props?.['expandInfo'] &&\n props?.['expandInfo']?.length > 0\n \">\n <div class=\"node-title\">\n <label><span nz-icon nzType=\"bars\"></span>评估记录</label>\n </div>\n <div class=\"node-box\" *ngFor=\"let item of props?.['expandInfo']\">\n <label class=\"title\">{{ item?.nodeName }}</label>\n <label class=\"value\">{{ item?.nodeData }}</label>\n </div>\n </div>\n <div class=\"assess-info\">\n <ng-container *ngFor=\"let f of field.fieldGroup\">\n <ng-container *ngIf=\"\n f?.key == 'indScoreEnter' || f?.key == 'indScoreSelect'\n \">\n <formly-field [field]=\"f\"></formly-field>\n </ng-container>\n </ng-container>\n </div>\n </div>\n </td>\n </tr>\n </tbody>\n </table>\n </div>\n </ng-container>\n </div>\n</ng-template>\n\n<ng-template #tmpCard>\n <div class=\"card-ind\">\n <div class=\"ind-info\">\n <ng-container *ngFor=\"let f of field.fieldGroup\">\n <formly-field [field]=\"f\" *ngIf=\"f?.key != 'indScoreEnter' && f?.key != 'indScoreSelect'\"></formly-field>\n </ng-container>\n </div>\n <div class=\"ind-assess\">\n <div class=\"assess-nodes\" *ngIf=\"\n props?.['expandInfo'] && props?.['expandInfo']?.length > 0\n \">\n <div class=\"node-title\">\n <label><span nz-icon nzType=\"bars\"></span>评估记录</label>\n </div>\n <div class=\"node-box\" *ngFor=\"let item of props?.['expandInfo']\">\n <label class=\"title\">{{ item?.nodeName }}</label>\n <label class=\"value\">{{ item?.nodeData }}</label>\n </div>\n </div>\n <div class=\"assess-info\">\n <ng-container *ngFor=\"let f of field.fieldGroup\">\n <ng-container *ngIf=\"f?.key == 'indScoreEnter' || f?.key == 'indScoreSelect'\">\n <formly-field [field]=\"f\"></formly-field>\n </ng-container>\n </ng-container>\n </div>\n </div>\n </div>\n</ng-template>","import { ConfigOption } from '@ebuilding-form/core';\nimport { DeonNzFieldDimIndicator } from './default';\nimport { DeonNzFieldDimIndicatorFinish } from './finish';\nimport { DeonNzFieldDimIndicatorAssess } from './assess';\n\nexport function withFormlyFieldIndicator(): ConfigOption {\n return {\n types: [\n {\n name: 'indicator',\n component: DeonNzFieldDimIndicator,\n },\n {\n name: 'indicator_finish',\n component: DeonNzFieldDimIndicatorFinish,\n },\n {\n name: 'indicator_assess',\n component: DeonNzFieldDimIndicatorAssess,\n }\n ],\n };\n}\n","import { NgModule } from '@angular/core';\n\nimport { FormlyModule } from '@ebuilding-form/core';\nimport { DeonNzFormFieldModule } from '@ebuilding/form/form-field';\nimport { withFormlyFieldIndicator } from './app.config';\n\n@NgModule({\n imports: [\n DeonNzFormFieldModule,\n FormlyModule.forChild(withFormlyFieldIndicator()),\n ],\n})\nexport class DeonNzDimIndicatorModule { }\n","/**\n * Generated bundle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D,YAAA;AACE,gBAAA,IAAI,EAAE,kBAAkB;AACxB,gBAAA,SAAS,EAAE,6BAA6B;AACzC,aAAA;AACD,YAAA;AACE,gBAAA,IAAI,EAAE,kBAAkB;AACxB,gBAAA,SAAS,EAAE,6BAA6B;AACzC;AACF,SAAA;KACF;AACH;;MCVa,wBAAwB,CAAA;wGAAxB,wBAAwB,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,QAAA,EAAA,CAAA;AAAxB,IAAA,OAAA,IAAA,GAAA,EAAA,CAAA,mBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,SAAA,EAAA,QAAA,EAAA,EAAA,EAAA,IAAA,EAAA,wBAAwB,YAJjC,qBAAqB,EAAAC,EAAA,CAAA,YAAA,CAAA,EAAA,CAAA;AAIZ,IAAA,OAAA,IAAA,GAAA,EAAA,CAAA,mBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,SAAA,EAAA,QAAA,EAAA,EAAA,EAAA,IAAA,EAAA,wBAAwB,YAJjC,qBAAqB;AACrB,YAAA,YAAY,CAAC,QAAQ,CAAC,wBAAwB,EAAE,CAAC,CAAA,EAAA,CAAA;;4FAGxC,wBAAwB,EAAA,UAAA,EAAA,CAAA;kBANpC,QAAQ;AAAC,YAAA,IAAA,EAAA,CAAA;AACR,oBAAA,OAAO,EAAE;wBACP,qBAAqB;AACrB,wBAAA,YAAY,CAAC,QAAQ,CAAC,wBAAwB,EAAE,CAAC;AAClD,qBAAA;AACF,iBAAA;;;ACXD;;AAEG;;;;"}
|
package/fesm2022/type.dim.mjs
CHANGED
|
@@ -2,8 +2,8 @@ import * as i0 from '@angular/core';
|
|
|
2
2
|
import { ChangeDetectionStrategy, Component, NgModule } from '@angular/core';
|
|
3
3
|
import * as i2 from '@angular/common';
|
|
4
4
|
import { CommonModule } from '@angular/common';
|
|
5
|
-
import * as i5 from '@
|
|
6
|
-
import { FieldType, FormlyModule } from '@
|
|
5
|
+
import * as i5 from '@ebuilding-form/core';
|
|
6
|
+
import { FieldType, FormlyModule } from '@ebuilding-form/core';
|
|
7
7
|
import { DeonNzFormFieldModule } from '@ebuilding/form/form-field';
|
|
8
8
|
import { ReactiveFormsModule } from '@angular/forms';
|
|
9
9
|
import * as i3 from 'ng-zorro-antd/icon';
|
|
@@ -47,7 +47,7 @@ class DeonNzFieldDim extends FieldType {
|
|
|
47
47
|
});
|
|
48
48
|
}
|
|
49
49
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: DeonNzFieldDim, deps: [{ token: i1.GramGlobalService }], target: i0.ɵɵFactoryTarget.Component });
|
|
50
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.15", type: DeonNzFieldDim, isStandalone: true, selector: "deon-nz-field-dim", usesInheritance: true, ngImport: i0, template: "<div class=\"dim-title\">\n <ul>\n <li>\n <i nz-icon nzType=\"tags\"></i>\n <span>{{ props?.label }}</span>\n </li>\n <li\n *ngIf=\"props && props['dimConfig'] && (props['dimConfig']['dimWeightType'] === 'FIX' || props['dimConfig']['dimWeightType'] === 'SUM')\">\n <label>\u7EF4\u5EA6\u6743\u91CD</label>\n <label>{{ props['dimConfig']['dimWeight'] }}%</label>\n </li>\n <li class=\"dim-button\" *ngIf=\"props && props['dimConfig'] && \n (props['dimConfig']['izAdd'] || \n props['dimConfig']['izRef'] || \n props['dimConfig']['izKey'] || \n props['dimConfig']['izTask'])\">\n <div class=\"empty\"></div>\n <div class=\"button\">\n <a (click)=\"btnAdd()\" *ngIf=\"props['dimConfig']['izAdd']\">\n <i nz-icon nzType=\"plus-circle\"></i>\u65B0\u589E\u6307\u6807\n </a>\n <a (click)=\"btnRef()\" *ngIf=\"props['dimConfig']['izRef']\">\n <i nz-icon nzType=\"table\"></i>\u5F15\u7528\u6307\u6807\n </a>\n <a (click)=\"btnKeyResult()\" *ngIf=\"props['dimConfig']['izKey']\">\n <i nz-icon nzType=\"api\"></i>\u5F15\u7528\u5173\u952E\u7ED3\u679C\n </a>\n <a (click)=\"btnTask()\" *ngIf=\"props['dimConfig']['izTask']\">\n <i nz-icon nzType=\"book\"></i>\u5F15\u7528\u5DE5\u4F5C\u4EFB\u52A1\n </a>\n </div>\n </li>\n </ul>\n</div>\n<div class=\"dim-content\">\n\n <ng-container *ngIf=\"props && props['dimConfig'] && props['dimConfig']['showTable']==true;else tmpDefault\">\n <div class=\"dim-table\">\n <div class=\"dim-table-header\">\n <div class=\"no\" *ngIf=\"props['dimConfig']['showSn']\">\u5E8F\u53F7</div>\n <ng-container *ngIf=\"props['dimConfig']['tableRows']\">\n <ng-container *ngFor=\"let item of props['dimConfig']['tableRows']\">\n <div [ngStyle]=\"item?.widthAuto ? {'flex': '1'} : {'width': item?.width+'px'}\">{{item?.name}}</div>\n </ng-container>\n </ng-container>\n <div class=\"operate\" *ngIf=\"field?.editor==true\">\u64CD\u4F5C</div>\n </div>\n <div class=\"dim-table-body\">\n <ng-container *ngIf=\"field?.fieldGroup && (field?.fieldGroup?.length ?? 0) > 0; else tmpEmpty\">\n <ng-container *ngFor=\"let f of field.fieldGroup;let index=index\">\n <div class=\"rows\">\n <div class=\"row-no\" *ngIf=\"props['dimConfig']['showSn']\">{{index+1}}</div>\n <div class=\"row-content\">\n <formly-field [field]=\"f\" [isTable]=\"true\" [dimConfig]=\"props['dimConfig']\"\n [tableConfig]=\"props['dimConfig']['tableRows']\"></formly-field>\n </div>\n </div>\n </ng-container>\n </ng-container>\n </div>\n </div>\n </ng-container>\n\n <ng-template #tmpDefault>\n <ng-container *ngIf=\"field?.fieldGroup && (field?.fieldGroup?.length ?? 0) > 0; else tmpEmpty\">\n <ng-container *ngFor=\"let f of field.fieldGroup\">\n <formly-field [field]=\"f\"></formly-field>\n </ng-container>\n </ng-container>\n </ng-template>\n\n <ng-template #tmpEmpty>\n <div class=\"empty-box\">\n <div class=\"image\"><img src=\"assets/images/default/empty2.png\" /></div>\n <div class=\"desc\">\n <span>\u6682\u65E0\u6570\u636E</span>\n </div>\n </div>\n </ng-template>\n\n <ng-content></ng-content>\n</div>", styles: [":host ::ng-deep{width:100%;margin-bottom:5px}:host ::ng-deep .dim-title ul{padding:0;margin:0;list-style:none;display:flex;flex-direction:row;align-items:center;font-size:14px}:host ::ng-deep .dim-title ul li{padding:0 20px 0 0;margin:0}:host ::ng-deep .dim-title ul li i{margin-right:3px}:host ::ng-deep .dim-title ul li label:nth-child(1):after{content:\":\";padding:0 5px 0 3px}:host ::ng-deep .dim-title ul .dim-button{flex:1;display:flex;flex-direction:row}:host ::ng-deep .dim-title ul .dim-button .empty{flex:1}:host ::ng-deep .dim-title ul .dim-button a+a{margin-left:15px}:host ::ng-deep .dim-content{width:100%}:host ::ng-deep .empty-box{display:flex;flex-direction:column;align-items:center}:host ::ng-deep .empty-box img{width:105px}:host ::ng-deep .dim-table{width:100%;border:1px solid #eaeaea}:host ::ng-deep .dim-table-header{display:flex;flex-direction:row}:host ::ng-deep .dim-table-header div{border-left:1px solid #eaeaea;padding:0 0 0 8px;background:#f5f7fa}:host ::ng-deep .dim-table-header div:nth-child(1){border-left:0}:host ::ng-deep .dim-table-header .no{width:60px;flex:none}:host ::ng-deep .dim-table-header .operate{width:120px;flex:none}:host ::ng-deep .dim-table-body{display:flex;flex-direction:column}:host ::ng-deep .dim-table-body .rows{display:flex;flex-direction:row;padding:8px 0 0;border-bottom:1px solid #eaeaea}:host ::ng-deep .dim-table-body .rows .row-no{width:60px;padding:0 0 0 8px}:host ::ng-deep .dim-table-body .rows .row-content{flex:1}:host ::ng-deep .dim-table-body .rows .ind-list{display:flex;flex-direction:row;flex:1}:host ::ng-deep .dim-table-body .rows .ind-list .ind-item{flex:1;display:flex;flex-direction:row}:host ::ng-deep .dim-table-body .rows .ind-list .ind-operate{width:120px;padding:0 0 0 8px;text-align:center;align-self:center}:host ::ng-deep .dim-table-body .rows .ind-list .ind-operate a{margin:0 8px 0 0}:host ::ng-deep .dim-table-body .rows:nth-last-child(1){border-bottom:0}:host ::ng-deep .dim-table-body deon-nz-field-indicator{border:0}:host ::ng-deep .dim-table-body deon-nz-field-indicator .ind-list{display:flex;flex-direction:row}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i2.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i2.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i2.NgStyle, selector: "[ngStyle]", inputs: ["ngStyle"] }, { kind: "ngmodule", type: ReactiveFormsModule }, { kind: "ngmodule", type: NzIconModule }, { kind: "directive", type: i3.NzIconDirective, selector: "nz-icon,[nz-icon]", inputs: ["nzSpin", "nzRotate", "nzType", "nzTheme", "nzTwotoneColor", "nzIconfont"], exportAs: ["nzIcon"] }, { kind: "ngmodule", type: NzButtonModule }, { kind: "directive", type: i4.ɵ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: "ngmodule", type: FormlyModule }, { kind: "component", type: i5.
|
|
50
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.15", type: DeonNzFieldDim, isStandalone: true, selector: "deon-nz-field-dim", usesInheritance: true, ngImport: i0, template: "<div class=\"dim-title\">\n <ul>\n <li>\n <i nz-icon nzType=\"tags\"></i>\n <span>{{ props?.label }}</span>\n </li>\n <li\n *ngIf=\"props && props['dimConfig'] && (props['dimConfig']['dimWeightType'] === 'FIX' || props['dimConfig']['dimWeightType'] === 'SUM')\">\n <label>\u7EF4\u5EA6\u6743\u91CD</label>\n <label>{{ props['dimConfig']['dimWeight'] }}%</label>\n </li>\n <li class=\"dim-button\" *ngIf=\"props && props['dimConfig'] && \n (props['dimConfig']['izAdd'] || \n props['dimConfig']['izRef'] || \n props['dimConfig']['izKey'] || \n props['dimConfig']['izTask'])\">\n <div class=\"empty\"></div>\n <div class=\"button\">\n <a (click)=\"btnAdd()\" *ngIf=\"props['dimConfig']['izAdd']\">\n <i nz-icon nzType=\"plus-circle\"></i>\u65B0\u589E\u6307\u6807\n </a>\n <a (click)=\"btnRef()\" *ngIf=\"props['dimConfig']['izRef']\">\n <i nz-icon nzType=\"table\"></i>\u5F15\u7528\u6307\u6807\n </a>\n <a (click)=\"btnKeyResult()\" *ngIf=\"props['dimConfig']['izKey']\">\n <i nz-icon nzType=\"api\"></i>\u5F15\u7528\u5173\u952E\u7ED3\u679C\n </a>\n <a (click)=\"btnTask()\" *ngIf=\"props['dimConfig']['izTask']\">\n <i nz-icon nzType=\"book\"></i>\u5F15\u7528\u5DE5\u4F5C\u4EFB\u52A1\n </a>\n </div>\n </li>\n </ul>\n</div>\n<div class=\"dim-content\">\n\n <ng-container *ngIf=\"props && props['dimConfig'] && props['dimConfig']['showTable']==true;else tmpDefault\">\n <div class=\"dim-table\">\n <div class=\"dim-table-header\">\n <div class=\"no\" *ngIf=\"props['dimConfig']['showSn']\">\u5E8F\u53F7</div>\n <ng-container *ngIf=\"props['dimConfig']['tableRows']\">\n <ng-container *ngFor=\"let item of props['dimConfig']['tableRows']\">\n <div [ngStyle]=\"item?.widthAuto ? {'flex': '1'} : {'width': item?.width+'px'}\">{{item?.name}}</div>\n </ng-container>\n </ng-container>\n <div class=\"operate\" *ngIf=\"field?.editor==true\">\u64CD\u4F5C</div>\n </div>\n <div class=\"dim-table-body\">\n <ng-container *ngIf=\"field?.fieldGroup && (field?.fieldGroup?.length ?? 0) > 0; else tmpEmpty\">\n <ng-container *ngFor=\"let f of field.fieldGroup;let index=index\">\n <div class=\"rows\">\n <div class=\"row-no\" *ngIf=\"props['dimConfig']['showSn']\">{{index+1}}</div>\n <div class=\"row-content\">\n <formly-field [field]=\"f\" [isTable]=\"true\" [dimConfig]=\"props['dimConfig']\"\n [tableConfig]=\"props['dimConfig']['tableRows']\"></formly-field>\n </div>\n </div>\n </ng-container>\n </ng-container>\n </div>\n </div>\n </ng-container>\n\n <ng-template #tmpDefault>\n <ng-container *ngIf=\"field?.fieldGroup && (field?.fieldGroup?.length ?? 0) > 0; else tmpEmpty\">\n <ng-container *ngFor=\"let f of field.fieldGroup\">\n <formly-field [field]=\"f\"></formly-field>\n </ng-container>\n </ng-container>\n </ng-template>\n\n <ng-template #tmpEmpty>\n <div class=\"empty-box\">\n <div class=\"image\"><img src=\"assets/images/default/empty2.png\" /></div>\n <div class=\"desc\">\n <span>\u6682\u65E0\u6570\u636E</span>\n </div>\n </div>\n </ng-template>\n\n <ng-content></ng-content>\n</div>", styles: [":host ::ng-deep{width:100%;margin-bottom:5px}:host ::ng-deep .dim-title ul{padding:0;margin:0;list-style:none;display:flex;flex-direction:row;align-items:center;font-size:14px}:host ::ng-deep .dim-title ul li{padding:0 20px 0 0;margin:0}:host ::ng-deep .dim-title ul li i{margin-right:3px}:host ::ng-deep .dim-title ul li label:nth-child(1):after{content:\":\";padding:0 5px 0 3px}:host ::ng-deep .dim-title ul .dim-button{flex:1;display:flex;flex-direction:row}:host ::ng-deep .dim-title ul .dim-button .empty{flex:1}:host ::ng-deep .dim-title ul .dim-button a+a{margin-left:15px}:host ::ng-deep .dim-content{width:100%}:host ::ng-deep .empty-box{display:flex;flex-direction:column;align-items:center}:host ::ng-deep .empty-box img{width:105px}:host ::ng-deep .dim-table{width:100%;border:1px solid #eaeaea}:host ::ng-deep .dim-table-header{display:flex;flex-direction:row}:host ::ng-deep .dim-table-header div{border-left:1px solid #eaeaea;padding:0 0 0 8px;background:#f5f7fa}:host ::ng-deep .dim-table-header div:nth-child(1){border-left:0}:host ::ng-deep .dim-table-header .no{width:60px;flex:none}:host ::ng-deep .dim-table-header .operate{width:120px;flex:none}:host ::ng-deep .dim-table-body{display:flex;flex-direction:column}:host ::ng-deep .dim-table-body .rows{display:flex;flex-direction:row;padding:8px 0 0;border-bottom:1px solid #eaeaea}:host ::ng-deep .dim-table-body .rows .row-no{width:60px;padding:0 0 0 8px}:host ::ng-deep .dim-table-body .rows .row-content{flex:1}:host ::ng-deep .dim-table-body .rows .ind-list{display:flex;flex-direction:row;flex:1}:host ::ng-deep .dim-table-body .rows .ind-list .ind-item{flex:1;display:flex;flex-direction:row}:host ::ng-deep .dim-table-body .rows .ind-list .ind-operate{width:120px;padding:0 0 0 8px;text-align:center;align-self:center}:host ::ng-deep .dim-table-body .rows .ind-list .ind-operate a{margin:0 8px 0 0}:host ::ng-deep .dim-table-body .rows:nth-last-child(1){border-bottom:0}:host ::ng-deep .dim-table-body deon-nz-field-indicator{border:0}:host ::ng-deep .dim-table-body deon-nz-field-indicator .ind-list{display:flex;flex-direction:row}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i2.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i2.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i2.NgStyle, selector: "[ngStyle]", inputs: ["ngStyle"] }, { kind: "ngmodule", type: ReactiveFormsModule }, { kind: "ngmodule", type: NzIconModule }, { kind: "directive", type: i3.NzIconDirective, selector: "nz-icon,[nz-icon]", inputs: ["nzSpin", "nzRotate", "nzType", "nzTheme", "nzTwotoneColor", "nzIconfont"], exportAs: ["nzIcon"] }, { kind: "ngmodule", type: NzButtonModule }, { kind: "directive", type: i4.ɵ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: "ngmodule", type: FormlyModule }, { kind: "component", type: i5.LegacyFormlyField, selector: "formly-field" }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
51
51
|
}
|
|
52
52
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: DeonNzFieldDim, decorators: [{
|
|
53
53
|
type: Component,
|
|
@@ -60,20 +60,24 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.15", ngImpo
|
|
|
60
60
|
], template: "<div class=\"dim-title\">\n <ul>\n <li>\n <i nz-icon nzType=\"tags\"></i>\n <span>{{ props?.label }}</span>\n </li>\n <li\n *ngIf=\"props && props['dimConfig'] && (props['dimConfig']['dimWeightType'] === 'FIX' || props['dimConfig']['dimWeightType'] === 'SUM')\">\n <label>\u7EF4\u5EA6\u6743\u91CD</label>\n <label>{{ props['dimConfig']['dimWeight'] }}%</label>\n </li>\n <li class=\"dim-button\" *ngIf=\"props && props['dimConfig'] && \n (props['dimConfig']['izAdd'] || \n props['dimConfig']['izRef'] || \n props['dimConfig']['izKey'] || \n props['dimConfig']['izTask'])\">\n <div class=\"empty\"></div>\n <div class=\"button\">\n <a (click)=\"btnAdd()\" *ngIf=\"props['dimConfig']['izAdd']\">\n <i nz-icon nzType=\"plus-circle\"></i>\u65B0\u589E\u6307\u6807\n </a>\n <a (click)=\"btnRef()\" *ngIf=\"props['dimConfig']['izRef']\">\n <i nz-icon nzType=\"table\"></i>\u5F15\u7528\u6307\u6807\n </a>\n <a (click)=\"btnKeyResult()\" *ngIf=\"props['dimConfig']['izKey']\">\n <i nz-icon nzType=\"api\"></i>\u5F15\u7528\u5173\u952E\u7ED3\u679C\n </a>\n <a (click)=\"btnTask()\" *ngIf=\"props['dimConfig']['izTask']\">\n <i nz-icon nzType=\"book\"></i>\u5F15\u7528\u5DE5\u4F5C\u4EFB\u52A1\n </a>\n </div>\n </li>\n </ul>\n</div>\n<div class=\"dim-content\">\n\n <ng-container *ngIf=\"props && props['dimConfig'] && props['dimConfig']['showTable']==true;else tmpDefault\">\n <div class=\"dim-table\">\n <div class=\"dim-table-header\">\n <div class=\"no\" *ngIf=\"props['dimConfig']['showSn']\">\u5E8F\u53F7</div>\n <ng-container *ngIf=\"props['dimConfig']['tableRows']\">\n <ng-container *ngFor=\"let item of props['dimConfig']['tableRows']\">\n <div [ngStyle]=\"item?.widthAuto ? {'flex': '1'} : {'width': item?.width+'px'}\">{{item?.name}}</div>\n </ng-container>\n </ng-container>\n <div class=\"operate\" *ngIf=\"field?.editor==true\">\u64CD\u4F5C</div>\n </div>\n <div class=\"dim-table-body\">\n <ng-container *ngIf=\"field?.fieldGroup && (field?.fieldGroup?.length ?? 0) > 0; else tmpEmpty\">\n <ng-container *ngFor=\"let f of field.fieldGroup;let index=index\">\n <div class=\"rows\">\n <div class=\"row-no\" *ngIf=\"props['dimConfig']['showSn']\">{{index+1}}</div>\n <div class=\"row-content\">\n <formly-field [field]=\"f\" [isTable]=\"true\" [dimConfig]=\"props['dimConfig']\"\n [tableConfig]=\"props['dimConfig']['tableRows']\"></formly-field>\n </div>\n </div>\n </ng-container>\n </ng-container>\n </div>\n </div>\n </ng-container>\n\n <ng-template #tmpDefault>\n <ng-container *ngIf=\"field?.fieldGroup && (field?.fieldGroup?.length ?? 0) > 0; else tmpEmpty\">\n <ng-container *ngFor=\"let f of field.fieldGroup\">\n <formly-field [field]=\"f\"></formly-field>\n </ng-container>\n </ng-container>\n </ng-template>\n\n <ng-template #tmpEmpty>\n <div class=\"empty-box\">\n <div class=\"image\"><img src=\"assets/images/default/empty2.png\" /></div>\n <div class=\"desc\">\n <span>\u6682\u65E0\u6570\u636E</span>\n </div>\n </div>\n </ng-template>\n\n <ng-content></ng-content>\n</div>", styles: [":host ::ng-deep{width:100%;margin-bottom:5px}:host ::ng-deep .dim-title ul{padding:0;margin:0;list-style:none;display:flex;flex-direction:row;align-items:center;font-size:14px}:host ::ng-deep .dim-title ul li{padding:0 20px 0 0;margin:0}:host ::ng-deep .dim-title ul li i{margin-right:3px}:host ::ng-deep .dim-title ul li label:nth-child(1):after{content:\":\";padding:0 5px 0 3px}:host ::ng-deep .dim-title ul .dim-button{flex:1;display:flex;flex-direction:row}:host ::ng-deep .dim-title ul .dim-button .empty{flex:1}:host ::ng-deep .dim-title ul .dim-button a+a{margin-left:15px}:host ::ng-deep .dim-content{width:100%}:host ::ng-deep .empty-box{display:flex;flex-direction:column;align-items:center}:host ::ng-deep .empty-box img{width:105px}:host ::ng-deep .dim-table{width:100%;border:1px solid #eaeaea}:host ::ng-deep .dim-table-header{display:flex;flex-direction:row}:host ::ng-deep .dim-table-header div{border-left:1px solid #eaeaea;padding:0 0 0 8px;background:#f5f7fa}:host ::ng-deep .dim-table-header div:nth-child(1){border-left:0}:host ::ng-deep .dim-table-header .no{width:60px;flex:none}:host ::ng-deep .dim-table-header .operate{width:120px;flex:none}:host ::ng-deep .dim-table-body{display:flex;flex-direction:column}:host ::ng-deep .dim-table-body .rows{display:flex;flex-direction:row;padding:8px 0 0;border-bottom:1px solid #eaeaea}:host ::ng-deep .dim-table-body .rows .row-no{width:60px;padding:0 0 0 8px}:host ::ng-deep .dim-table-body .rows .row-content{flex:1}:host ::ng-deep .dim-table-body .rows .ind-list{display:flex;flex-direction:row;flex:1}:host ::ng-deep .dim-table-body .rows .ind-list .ind-item{flex:1;display:flex;flex-direction:row}:host ::ng-deep .dim-table-body .rows .ind-list .ind-operate{width:120px;padding:0 0 0 8px;text-align:center;align-self:center}:host ::ng-deep .dim-table-body .rows .ind-list .ind-operate a{margin:0 8px 0 0}:host ::ng-deep .dim-table-body .rows:nth-last-child(1){border-bottom:0}:host ::ng-deep .dim-table-body deon-nz-field-indicator{border:0}:host ::ng-deep .dim-table-body deon-nz-field-indicator .ind-list{display:flex;flex-direction:row}\n"] }]
|
|
61
61
|
}], ctorParameters: () => [{ type: i1.GramGlobalService }] });
|
|
62
62
|
|
|
63
|
+
function withFormlyFieldDim() {
|
|
64
|
+
return {
|
|
65
|
+
types: [
|
|
66
|
+
{
|
|
67
|
+
name: 'dim',
|
|
68
|
+
component: DeonNzFieldDim,
|
|
69
|
+
}
|
|
70
|
+
],
|
|
71
|
+
};
|
|
72
|
+
}
|
|
73
|
+
|
|
63
74
|
class DeonNzDimModule {
|
|
64
75
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: DeonNzDimModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
65
76
|
static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "19.2.15", ngImport: i0, type: DeonNzDimModule, imports: [CommonModule,
|
|
66
77
|
DeonNzFormFieldModule, i5.FormlyModule] });
|
|
67
78
|
static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: DeonNzDimModule, imports: [CommonModule,
|
|
68
79
|
DeonNzFormFieldModule,
|
|
69
|
-
FormlyModule.forChild(
|
|
70
|
-
types: [
|
|
71
|
-
{
|
|
72
|
-
name: 'dim',
|
|
73
|
-
component: DeonNzFieldDim,
|
|
74
|
-
},
|
|
75
|
-
],
|
|
76
|
-
})] });
|
|
80
|
+
FormlyModule.forChild(withFormlyFieldDim())] });
|
|
77
81
|
}
|
|
78
82
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: DeonNzDimModule, decorators: [{
|
|
79
83
|
type: NgModule,
|
|
@@ -81,14 +85,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.15", ngImpo
|
|
|
81
85
|
imports: [
|
|
82
86
|
CommonModule,
|
|
83
87
|
DeonNzFormFieldModule,
|
|
84
|
-
FormlyModule.forChild(
|
|
85
|
-
types: [
|
|
86
|
-
{
|
|
87
|
-
name: 'dim',
|
|
88
|
-
component: DeonNzFieldDim,
|
|
89
|
-
},
|
|
90
|
-
],
|
|
91
|
-
}),
|
|
88
|
+
FormlyModule.forChild(withFormlyFieldDim()),
|
|
92
89
|
],
|
|
93
90
|
}]
|
|
94
91
|
}] });
|
|
@@ -97,5 +94,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.15", ngImpo
|
|
|
97
94
|
* Generated bundle index. Do not edit.
|
|
98
95
|
*/
|
|
99
96
|
|
|
100
|
-
export { DeonNzDimModule, DeonNzFieldDim };
|
|
97
|
+
export { DeonNzDimModule, DeonNzFieldDim, withFormlyFieldDim };
|
|
101
98
|
//# sourceMappingURL=type.dim.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"type.dim.mjs","sources":["../../../../packages/form/dim/src/default/index.ts","../../../../packages/form/dim/src/default/index.html","../../../../packages/form/dim/src/dim.module.ts","../../../../packages/form/dim/type.dim.ts"],"sourcesContent":["import { Component, ChangeDetectionStrategy } from '@angular/core';\nimport { CommonModule } from '@angular/common';\nimport { ReactiveFormsModule } from '@angular/forms';\nimport { NzIconModule } from 'ng-zorro-antd/icon';\nimport { NzButtonModule } from 'ng-zorro-antd/button';\n\nimport { FormlyModule, FieldType, FieldTypeConfig } from '@
|
|
1
|
+
{"version":3,"file":"type.dim.mjs","sources":["../../../../packages/form/dim/src/default/index.ts","../../../../packages/form/dim/src/default/index.html","../../../../packages/form/dim/src/app.config.ts","../../../../packages/form/dim/src/dim.module.ts","../../../../packages/form/dim/type.dim.ts"],"sourcesContent":["import { Component, ChangeDetectionStrategy } from '@angular/core';\nimport { CommonModule } from '@angular/common';\nimport { ReactiveFormsModule } from '@angular/forms';\nimport { NzIconModule } from 'ng-zorro-antd/icon';\nimport { NzButtonModule } from 'ng-zorro-antd/button';\n\nimport { FormlyModule, FieldType, FieldTypeConfig } from '@ebuilding-form/core';\nimport { GramGlobalService } from '@ebuilding/base/shared.srv/global.event';\nimport { globalKey } from '@ebuilding/base/shared.var/shared.constant';\n\nimport _ from 'lodash';\n@Component({\n selector: 'deon-nz-field-dim',\n templateUrl: './index.html',\n styleUrls: ['./index.less'],\n changeDetection: ChangeDetectionStrategy.OnPush,\n imports: [\n CommonModule,\n ReactiveFormsModule,\n NzIconModule,\n NzButtonModule,\n FormlyModule\n ]\n})\nexport class DeonNzFieldDim extends FieldType<FieldTypeConfig> {\n override defaultOptions = {\n props: {},\n };\n\n constructor(public globalSrv: GramGlobalService) {\n super();\n }\n\n btnAdd() {\n this.globalSrv.notifyDataChanged(globalKey.kpi_dim_button, {\n field: this.field,\n type: 'ADD',\n });\n }\n\n btnRef() {\n this.globalSrv.notifyDataChanged(globalKey.kpi_dim_button, {\n field: this.field,\n type: 'REF',\n });\n }\n\n btnKeyResult() {\n this.globalSrv.notifyDataChanged(globalKey.kpi_dim_button, {\n field: this.field,\n type: 'KEYRESULT',\n });\n }\n\n btnTask() {\n this.globalSrv.notifyDataChanged(globalKey.kpi_dim_button, {\n field: this.field,\n type: 'TASK',\n });\n }\n}\n","<div class=\"dim-title\">\n <ul>\n <li>\n <i nz-icon nzType=\"tags\"></i>\n <span>{{ props?.label }}</span>\n </li>\n <li\n *ngIf=\"props && props['dimConfig'] && (props['dimConfig']['dimWeightType'] === 'FIX' || props['dimConfig']['dimWeightType'] === 'SUM')\">\n <label>维度权重</label>\n <label>{{ props['dimConfig']['dimWeight'] }}%</label>\n </li>\n <li class=\"dim-button\" *ngIf=\"props && props['dimConfig'] && \n (props['dimConfig']['izAdd'] || \n props['dimConfig']['izRef'] || \n props['dimConfig']['izKey'] || \n props['dimConfig']['izTask'])\">\n <div class=\"empty\"></div>\n <div class=\"button\">\n <a (click)=\"btnAdd()\" *ngIf=\"props['dimConfig']['izAdd']\">\n <i nz-icon nzType=\"plus-circle\"></i>新增指标\n </a>\n <a (click)=\"btnRef()\" *ngIf=\"props['dimConfig']['izRef']\">\n <i nz-icon nzType=\"table\"></i>引用指标\n </a>\n <a (click)=\"btnKeyResult()\" *ngIf=\"props['dimConfig']['izKey']\">\n <i nz-icon nzType=\"api\"></i>引用关键结果\n </a>\n <a (click)=\"btnTask()\" *ngIf=\"props['dimConfig']['izTask']\">\n <i nz-icon nzType=\"book\"></i>引用工作任务\n </a>\n </div>\n </li>\n </ul>\n</div>\n<div class=\"dim-content\">\n\n <ng-container *ngIf=\"props && props['dimConfig'] && props['dimConfig']['showTable']==true;else tmpDefault\">\n <div class=\"dim-table\">\n <div class=\"dim-table-header\">\n <div class=\"no\" *ngIf=\"props['dimConfig']['showSn']\">序号</div>\n <ng-container *ngIf=\"props['dimConfig']['tableRows']\">\n <ng-container *ngFor=\"let item of props['dimConfig']['tableRows']\">\n <div [ngStyle]=\"item?.widthAuto ? {'flex': '1'} : {'width': item?.width+'px'}\">{{item?.name}}</div>\n </ng-container>\n </ng-container>\n <div class=\"operate\" *ngIf=\"field?.editor==true\">操作</div>\n </div>\n <div class=\"dim-table-body\">\n <ng-container *ngIf=\"field?.fieldGroup && (field?.fieldGroup?.length ?? 0) > 0; else tmpEmpty\">\n <ng-container *ngFor=\"let f of field.fieldGroup;let index=index\">\n <div class=\"rows\">\n <div class=\"row-no\" *ngIf=\"props['dimConfig']['showSn']\">{{index+1}}</div>\n <div class=\"row-content\">\n <formly-field [field]=\"f\" [isTable]=\"true\" [dimConfig]=\"props['dimConfig']\"\n [tableConfig]=\"props['dimConfig']['tableRows']\"></formly-field>\n </div>\n </div>\n </ng-container>\n </ng-container>\n </div>\n </div>\n </ng-container>\n\n <ng-template #tmpDefault>\n <ng-container *ngIf=\"field?.fieldGroup && (field?.fieldGroup?.length ?? 0) > 0; else tmpEmpty\">\n <ng-container *ngFor=\"let f of field.fieldGroup\">\n <formly-field [field]=\"f\"></formly-field>\n </ng-container>\n </ng-container>\n </ng-template>\n\n <ng-template #tmpEmpty>\n <div class=\"empty-box\">\n <div class=\"image\"><img src=\"assets/images/default/empty2.png\" /></div>\n <div class=\"desc\">\n <span>暂无数据</span>\n </div>\n </div>\n </ng-template>\n\n <ng-content></ng-content>\n</div>","import { ConfigOption } from '@ebuilding-form/core';\nimport { DeonNzFieldDim } from './default';\n\nexport function withFormlyFieldDim(): ConfigOption {\n return {\n types: [\n {\n name: 'dim',\n component: DeonNzFieldDim,\n }\n ],\n };\n}\n","import { NgModule } from '@angular/core';\nimport { CommonModule } from '@angular/common';\nimport { FormlyModule } from '@ebuilding-form/core';\nimport { DeonNzFormFieldModule } from '@ebuilding/form/form-field';\nimport { withFormlyFieldDim } from './app.config';\n\n@NgModule({\n imports: [\n CommonModule,\n DeonNzFormFieldModule,\n FormlyModule.forChild(withFormlyFieldDim()),\n ],\n})\nexport class DeonNzDimModule { }\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":["i1"],"mappings":";;;;;;;;;;;;;;;AAwBM,MAAO,cAAe,SAAQ,SAA0B,CAAA;AAKzC,IAAA,SAAA;AAJV,IAAA,cAAc,GAAG;AACxB,QAAA,KAAK,EAAE,EAAE;KACV;AAED,IAAA,WAAA,CAAmB,SAA4B,EAAA;AAC7C,QAAA,KAAK,EAAE;QADU,IAAS,CAAA,SAAA,GAAT,SAAS;;IAI5B,MAAM,GAAA;QACJ,IAAI,CAAC,SAAS,CAAC,iBAAiB,CAAC,SAAS,CAAC,cAAc,EAAE;YACzD,KAAK,EAAE,IAAI,CAAC,KAAK;AACjB,YAAA,IAAI,EAAE,KAAK;AACZ,SAAA,CAAC;;IAGJ,MAAM,GAAA;QACJ,IAAI,CAAC,SAAS,CAAC,iBAAiB,CAAC,SAAS,CAAC,cAAc,EAAE;YACzD,KAAK,EAAE,IAAI,CAAC,KAAK;AACjB,YAAA,IAAI,EAAE,KAAK;AACZ,SAAA,CAAC;;IAGJ,YAAY,GAAA;QACV,IAAI,CAAC,SAAS,CAAC,iBAAiB,CAAC,SAAS,CAAC,cAAc,EAAE;YACzD,KAAK,EAAE,IAAI,CAAC,KAAK;AACjB,YAAA,IAAI,EAAE,WAAW;AAClB,SAAA,CAAC;;IAGJ,OAAO,GAAA;QACL,IAAI,CAAC,SAAS,CAAC,iBAAiB,CAAC,SAAS,CAAC,cAAc,EAAE;YACzD,KAAK,EAAE,IAAI,CAAC,KAAK;AACjB,YAAA,IAAI,EAAE,MAAM;AACb,SAAA,CAAC;;wGAlCO,cAAc,EAAA,IAAA,EAAA,CAAA,EAAA,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