@ebuilding/form 2.1.10 → 2.1.12
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.
|
@@ -3077,6 +3077,70 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.15", ngImpo
|
|
|
3077
3077
|
}]
|
|
3078
3078
|
}] });
|
|
3079
3079
|
|
|
3080
|
+
class DeonNzFieldTextInd extends FieldType {
|
|
3081
|
+
globalSrv;
|
|
3082
|
+
get text() {
|
|
3083
|
+
if (this.model && this.model.hasOwnProperty(this.field.key)) {
|
|
3084
|
+
return this.model[this.field.key.toString()];
|
|
3085
|
+
}
|
|
3086
|
+
return '';
|
|
3087
|
+
}
|
|
3088
|
+
constructor(globalSrv) {
|
|
3089
|
+
super();
|
|
3090
|
+
this.globalSrv = globalSrv;
|
|
3091
|
+
}
|
|
3092
|
+
btnRefInd() {
|
|
3093
|
+
this.globalSrv.notifyDataChanged('deon-field-text_ind', {
|
|
3094
|
+
field: this.field,
|
|
3095
|
+
data: null,
|
|
3096
|
+
type: 'click',
|
|
3097
|
+
});
|
|
3098
|
+
}
|
|
3099
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: DeonNzFieldTextInd, deps: [{ token: i1$4.GramGlobalService }], target: i0.ɵɵFactoryTarget.Component });
|
|
3100
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.15", type: DeonNzFieldTextInd, isStandalone: true, selector: "deon-field-nz-text_ind", usesInheritance: true, ngImport: i0, template: `
|
|
3101
|
+
<div class="field-text deon-text deon-text-default" *ngIf="editor == false; else tmpField">
|
|
3102
|
+
{{ text }}
|
|
3103
|
+
</div>
|
|
3104
|
+
<ng-template #tmpField>
|
|
3105
|
+
<nz-input-group [nzAddOnAfter]="addOnAfterTemplate">
|
|
3106
|
+
<input nz-input [formControl]="formControl" [type]="'text'" [formlyAttributes]="field" />
|
|
3107
|
+
</nz-input-group>
|
|
3108
|
+
<ng-template #addOnAfterTemplate>
|
|
3109
|
+
<a (click)="btnRefInd()">我的指标</a>
|
|
3110
|
+
</ng-template>
|
|
3111
|
+
</ng-template>
|
|
3112
|
+
`, isInline: true, dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "ngmodule", type: FormsModule }, { kind: "directive", type: i2.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { kind: "directive", type: i2.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "ngmodule", type: ReactiveFormsModule }, { kind: "directive", type: i2.FormControlDirective, selector: "[formControl]", inputs: ["formControl", "disabled", "ngModel"], outputs: ["ngModelChange"], exportAs: ["ngForm"] }, { kind: "ngmodule", type: NzInputModule }, { kind: "directive", type: i3$1.NzInputDirective, selector: "input[nz-input],textarea[nz-input]", inputs: ["nzBorderless", "nzSize", "nzStepperless", "nzStatus", "disabled"], exportAs: ["nzInput"] }, { kind: "component", type: i3$1.NzInputGroupComponent, selector: "nz-input-group", inputs: ["nzAddOnBeforeIcon", "nzAddOnAfterIcon", "nzPrefixIcon", "nzSuffixIcon", "nzAddOnBefore", "nzAddOnAfter", "nzPrefix", "nzStatus", "nzSuffix", "nzSize", "nzSearch", "nzCompact"], exportAs: ["nzInputGroup"] }, { kind: "ngmodule", type: NzInputNumberModule }, { kind: "ngmodule", type: DeonNzFormFieldModule }, { kind: "ngmodule", type: FormlyModule }, { kind: "directive", type: i1$1.ɵFormlyAttributes, selector: "[formlyAttributes]", inputs: ["formlyAttributes", "id"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
3113
|
+
}
|
|
3114
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: DeonNzFieldTextInd, decorators: [{
|
|
3115
|
+
type: Component,
|
|
3116
|
+
args: [{
|
|
3117
|
+
selector: 'deon-field-nz-text_ind',
|
|
3118
|
+
template: `
|
|
3119
|
+
<div class="field-text deon-text deon-text-default" *ngIf="editor == false; else tmpField">
|
|
3120
|
+
{{ text }}
|
|
3121
|
+
</div>
|
|
3122
|
+
<ng-template #tmpField>
|
|
3123
|
+
<nz-input-group [nzAddOnAfter]="addOnAfterTemplate">
|
|
3124
|
+
<input nz-input [formControl]="formControl" [type]="'text'" [formlyAttributes]="field" />
|
|
3125
|
+
</nz-input-group>
|
|
3126
|
+
<ng-template #addOnAfterTemplate>
|
|
3127
|
+
<a (click)="btnRefInd()">我的指标</a>
|
|
3128
|
+
</ng-template>
|
|
3129
|
+
</ng-template>
|
|
3130
|
+
`,
|
|
3131
|
+
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
3132
|
+
imports: [
|
|
3133
|
+
CommonModule,
|
|
3134
|
+
FormsModule,
|
|
3135
|
+
ReactiveFormsModule,
|
|
3136
|
+
NzInputModule,
|
|
3137
|
+
NzInputNumberModule,
|
|
3138
|
+
DeonNzFormFieldModule,
|
|
3139
|
+
FormlyModule
|
|
3140
|
+
]
|
|
3141
|
+
}]
|
|
3142
|
+
}], ctorParameters: () => [{ type: i1$4.GramGlobalService }] });
|
|
3143
|
+
|
|
3080
3144
|
class DeonNzTextModule {
|
|
3081
3145
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: DeonNzTextModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
3082
3146
|
static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "19.2.15", ngImport: i0, type: DeonNzTextModule, imports: [CommonModule, i1$1.FormlyModule] });
|
|
@@ -3088,6 +3152,11 @@ class DeonNzTextModule {
|
|
|
3088
3152
|
component: DeonNzFieldText,
|
|
3089
3153
|
wrappers: ['formly-form-field'],
|
|
3090
3154
|
},
|
|
3155
|
+
{
|
|
3156
|
+
name: 'textInd',
|
|
3157
|
+
component: DeonNzFieldTextInd,
|
|
3158
|
+
wrappers: ['formly-form-field'],
|
|
3159
|
+
},
|
|
3091
3160
|
],
|
|
3092
3161
|
})] });
|
|
3093
3162
|
}
|
|
@@ -3103,6 +3172,11 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.15", ngImpo
|
|
|
3103
3172
|
component: DeonNzFieldText,
|
|
3104
3173
|
wrappers: ['formly-form-field'],
|
|
3105
3174
|
},
|
|
3175
|
+
{
|
|
3176
|
+
name: 'textInd',
|
|
3177
|
+
component: DeonNzFieldTextInd,
|
|
3178
|
+
wrappers: ['formly-form-field'],
|
|
3179
|
+
},
|
|
3106
3180
|
],
|
|
3107
3181
|
}),
|
|
3108
3182
|
],
|