@ebuilding/form 2.0.9 → 2.1.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.
|
@@ -40,14 +40,13 @@ import { NzDropDownModule } from 'ng-zorro-antd/dropdown';
|
|
|
40
40
|
import * as i3$2 from 'ng-zorro-antd/menu';
|
|
41
41
|
import * as i1$6 from 'ng-zorro-antd/divider';
|
|
42
42
|
import { NzDividerModule } from 'ng-zorro-antd/divider';
|
|
43
|
-
import * as i4$3 from 'ng-zorro-antd/input-number';
|
|
44
43
|
import { NzInputNumberModule } from 'ng-zorro-antd/input-number';
|
|
45
44
|
import * as i2$3 from 'ng-zorro-antd/rate';
|
|
46
45
|
import { NzRateModule } from 'ng-zorro-antd/rate';
|
|
47
46
|
import * as i3$3 from 'ng-zorro-antd/select';
|
|
48
47
|
import { NzSelectModule } from 'ng-zorro-antd/select';
|
|
49
48
|
import _ from 'lodash';
|
|
50
|
-
import * as i4$
|
|
49
|
+
import * as i4$3 from 'ng-zorro-antd/radio';
|
|
51
50
|
import { NzRadioModule } from 'ng-zorro-antd/radio';
|
|
52
51
|
import { NzEmptyModule } from 'ng-zorro-antd/empty';
|
|
53
52
|
import * as i6 from '@angular/cdk/drag-drop';
|
|
@@ -1526,6 +1525,7 @@ class DeonNzFieldNumber extends FieldType {
|
|
|
1526
1525
|
get password() {
|
|
1527
1526
|
return this.props?.["password"] === true;
|
|
1528
1527
|
}
|
|
1528
|
+
//<input nz-input [formControl]="formControl" [type]="'text'" [formlyAttributes]="field" />
|
|
1529
1529
|
constructor() {
|
|
1530
1530
|
super();
|
|
1531
1531
|
}
|
|
@@ -1546,65 +1546,23 @@ class DeonNzFieldNumber extends FieldType {
|
|
|
1546
1546
|
};
|
|
1547
1547
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: DeonNzFieldNumber, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
1548
1548
|
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.15", type: DeonNzFieldNumber, isStandalone: true, selector: "deon-nz-field-number", usesInheritance: true, ngImport: i0, template: `
|
|
1549
|
-
|
|
1550
|
-
|
|
1551
|
-
|
|
1552
|
-
|
|
1553
|
-
|
|
1554
|
-
|
|
1555
|
-
[nzDisabled]="!editor"
|
|
1556
|
-
[nzPrecision]="precision"
|
|
1557
|
-
[nzStep]="0"
|
|
1558
|
-
[nzParser]="parseNumber"
|
|
1559
|
-
></nz-input-number>
|
|
1560
|
-
</nz-input-group>
|
|
1561
|
-
</ng-container>
|
|
1562
|
-
<ng-template #tmpNumber>
|
|
1563
|
-
<nz-input-number
|
|
1564
|
-
[formControl]="formControl"
|
|
1565
|
-
[formlyAttributes]="field"
|
|
1566
|
-
[nzDisabled]="!editor"
|
|
1567
|
-
[nzPrecision]="precision"
|
|
1568
|
-
[nzStep]="precision == 0 ? 1 : 0.1"
|
|
1569
|
-
[nzParser]="parseNumber"
|
|
1570
|
-
></nz-input-number>
|
|
1571
|
-
</ng-template>
|
|
1572
|
-
</ng-container>
|
|
1573
|
-
|
|
1574
|
-
<ng-template #tmpPwd> *** </ng-template>
|
|
1575
|
-
`, 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.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: "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: "component", type: i4$3.NzInputNumberComponent, selector: "nz-input-number", inputs: ["nzId", "nzSize", "nzPlaceHolder", "nzStatus", "nzStep", "nzMin", "nzMax", "nzPrecision", "nzParser", "nzFormatter", "nzDisabled", "nzReadOnly", "nzAutoFocus", "nzBordered", "nzKeyboard", "nzControls"], outputs: ["nzBlur", "nzFocus", "nzOnStep"], exportAs: ["nzInputNumber"] }, { kind: "ngmodule", type: FormlyModule }, { kind: "directive", type: i1$1.ɵFormlyAttributes, selector: "[formlyAttributes]", inputs: ["formlyAttributes", "id"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
1549
|
+
<div class="field-text deon-text deon-text-default" *ngIf="editor == false; else tmpField">
|
|
1550
|
+
{{ text }}
|
|
1551
|
+
</div>
|
|
1552
|
+
<ng-template #tmpField> <input nz-input [formControl]="formControl" [type]="'text'" [formlyAttributes]="field" /> </ng-template>
|
|
1553
|
+
|
|
1554
|
+
`, 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: "ngmodule", type: NzInputNumberModule }, { kind: "ngmodule", type: FormlyModule }, { kind: "directive", type: i1$1.ɵFormlyAttributes, selector: "[formlyAttributes]", inputs: ["formlyAttributes", "id"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
1576
1555
|
}
|
|
1577
1556
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: DeonNzFieldNumber, decorators: [{
|
|
1578
1557
|
type: Component,
|
|
1579
1558
|
args: [{
|
|
1580
1559
|
selector: 'deon-nz-field-number',
|
|
1581
1560
|
template: `
|
|
1582
|
-
|
|
1583
|
-
|
|
1584
|
-
|
|
1585
|
-
|
|
1586
|
-
|
|
1587
|
-
[formlyAttributes]="field"
|
|
1588
|
-
[nzDisabled]="!editor"
|
|
1589
|
-
[nzPrecision]="precision"
|
|
1590
|
-
[nzStep]="0"
|
|
1591
|
-
[nzParser]="parseNumber"
|
|
1592
|
-
></nz-input-number>
|
|
1593
|
-
</nz-input-group>
|
|
1594
|
-
</ng-container>
|
|
1595
|
-
<ng-template #tmpNumber>
|
|
1596
|
-
<nz-input-number
|
|
1597
|
-
[formControl]="formControl"
|
|
1598
|
-
[formlyAttributes]="field"
|
|
1599
|
-
[nzDisabled]="!editor"
|
|
1600
|
-
[nzPrecision]="precision"
|
|
1601
|
-
[nzStep]="precision == 0 ? 1 : 0.1"
|
|
1602
|
-
[nzParser]="parseNumber"
|
|
1603
|
-
></nz-input-number>
|
|
1604
|
-
</ng-template>
|
|
1605
|
-
</ng-container>
|
|
1606
|
-
|
|
1607
|
-
<ng-template #tmpPwd> *** </ng-template>
|
|
1561
|
+
<div class="field-text deon-text deon-text-default" *ngIf="editor == false; else tmpField">
|
|
1562
|
+
{{ text }}
|
|
1563
|
+
</div>
|
|
1564
|
+
<ng-template #tmpField> <input nz-input [formControl]="formControl" [type]="'text'" [formlyAttributes]="field" /> </ng-template>
|
|
1565
|
+
|
|
1608
1566
|
`,
|
|
1609
1567
|
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
1610
1568
|
standalone: true,
|
|
@@ -2074,7 +2032,7 @@ class DeonNzFieldRadio extends FieldType {
|
|
|
2074
2032
|
props: { options: [] },
|
|
2075
2033
|
};
|
|
2076
2034
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: DeonNzFieldRadio, deps: null, target: i0.ɵɵFactoryTarget.Component });
|
|
2077
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.15", type: DeonNzFieldRadio, isStandalone: true, selector: "deon-nz-field-radio", usesInheritance: true, ngImport: i0, template: ` <label nz-radio [formControl]="formControl" [formlyAttributes]="field"></label> `, isInline: true, dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "ngmodule", type: FormsModule }, { 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: NzRadioModule }, { kind: "component", type: i4$
|
|
2035
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.15", type: DeonNzFieldRadio, isStandalone: true, selector: "deon-nz-field-radio", usesInheritance: true, ngImport: i0, template: ` <label nz-radio [formControl]="formControl" [formlyAttributes]="field"></label> `, isInline: true, dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "ngmodule", type: FormsModule }, { 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: NzRadioModule }, { kind: "component", type: i4$3.NzRadioComponent, selector: "[nz-radio],[nz-radio-button]", inputs: ["nzValue", "nzDisabled", "nzAutoFocus", "nz-radio-button"], exportAs: ["nzRadio"] }, { kind: "ngmodule", type: FormlyModule }, { kind: "directive", type: i1$1.ɵFormlyAttributes, selector: "[formlyAttributes]", inputs: ["formlyAttributes", "id"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
2078
2036
|
}
|
|
2079
2037
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: DeonNzFieldRadio, decorators: [{
|
|
2080
2038
|
type: Component,
|
|
@@ -2177,7 +2135,7 @@ class DeonNzFieldRadioGroup extends FieldType {
|
|
|
2177
2135
|
</ng-container>
|
|
2178
2136
|
</ng-template>
|
|
2179
2137
|
</nz-radio-group>
|
|
2180
|
-
`, isInline: true, dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "ngmodule", type: FormsModule }, { 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: NzRadioModule }, { kind: "component", type: i4$
|
|
2138
|
+
`, isInline: true, dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "ngmodule", type: FormsModule }, { 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: NzRadioModule }, { kind: "component", type: i4$3.NzRadioComponent, selector: "[nz-radio],[nz-radio-button]", inputs: ["nzValue", "nzDisabled", "nzAutoFocus", "nz-radio-button"], exportAs: ["nzRadio"] }, { kind: "component", type: i4$3.NzRadioGroupComponent, selector: "nz-radio-group", inputs: ["nzDisabled", "nzButtonStyle", "nzSize", "nzName"], exportAs: ["nzRadioGroup"] }, { kind: "ngmodule", type: FormlyModule }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
2181
2139
|
}
|
|
2182
2140
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: DeonNzFieldRadioGroup, decorators: [{
|
|
2183
2141
|
type: Component,
|