@ebuilding/form 2.1.0 → 2.1.2
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,13 +40,14 @@ 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';
|
|
43
44
|
import { NzInputNumberModule } from 'ng-zorro-antd/input-number';
|
|
44
45
|
import * as i2$3 from 'ng-zorro-antd/rate';
|
|
45
46
|
import { NzRateModule } from 'ng-zorro-antd/rate';
|
|
46
47
|
import * as i3$3 from 'ng-zorro-antd/select';
|
|
47
48
|
import { NzSelectModule } from 'ng-zorro-antd/select';
|
|
48
49
|
import _ from 'lodash';
|
|
49
|
-
import * as i4$
|
|
50
|
+
import * as i4$4 from 'ng-zorro-antd/radio';
|
|
50
51
|
import { NzRadioModule } from 'ng-zorro-antd/radio';
|
|
51
52
|
import { NzEmptyModule } from 'ng-zorro-antd/empty';
|
|
52
53
|
import * as i6 from '@angular/cdk/drag-drop';
|
|
@@ -1546,23 +1547,69 @@ class DeonNzFieldNumber extends FieldType {
|
|
|
1546
1547
|
};
|
|
1547
1548
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: DeonNzFieldNumber, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
1548
1549
|
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
|
-
|
|
1550
|
+
<ng-container *ngIf="!password; else tmpPwd">
|
|
1551
|
+
<ng-container *ngIf="props['unit']; else tmpNumber">
|
|
1552
|
+
<nz-input-group [nzAddOnAfter]="props['unit']">
|
|
1553
|
+
<nz-input-number
|
|
1554
|
+
[formControl]="formControl"
|
|
1555
|
+
[formlyAttributes]="field"
|
|
1556
|
+
[nzDisabled]="!editor"
|
|
1557
|
+
[nzPrecision]="precision"
|
|
1558
|
+
[nzStep]="0"
|
|
1559
|
+
[nzFormatter]="formatNumber"
|
|
1560
|
+
[nzParser]="parseNumber"
|
|
1561
|
+
></nz-input-number>
|
|
1562
|
+
</nz-input-group>
|
|
1563
|
+
</ng-container>
|
|
1564
|
+
<ng-template #tmpNumber>
|
|
1565
|
+
<nz-input-number
|
|
1566
|
+
[formControl]="formControl"
|
|
1567
|
+
[formlyAttributes]="field"
|
|
1568
|
+
[nzDisabled]="!editor"
|
|
1569
|
+
[nzPrecision]="precision"
|
|
1570
|
+
[nzStep]="precision == 0 ? 1 : 0.1"
|
|
1571
|
+
[nzFormatter]="formatNumber"
|
|
1572
|
+
[nzParser]="parseNumber"
|
|
1573
|
+
></nz-input-number>
|
|
1574
|
+
</ng-template>
|
|
1575
|
+
</ng-container>
|
|
1576
|
+
|
|
1577
|
+
<ng-template #tmpPwd> *** </ng-template>
|
|
1578
|
+
`, 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 });
|
|
1555
1579
|
}
|
|
1556
1580
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: DeonNzFieldNumber, decorators: [{
|
|
1557
1581
|
type: Component,
|
|
1558
1582
|
args: [{
|
|
1559
1583
|
selector: 'deon-nz-field-number',
|
|
1560
1584
|
template: `
|
|
1561
|
-
|
|
1562
|
-
|
|
1563
|
-
|
|
1564
|
-
|
|
1565
|
-
|
|
1585
|
+
<ng-container *ngIf="!password; else tmpPwd">
|
|
1586
|
+
<ng-container *ngIf="props['unit']; else tmpNumber">
|
|
1587
|
+
<nz-input-group [nzAddOnAfter]="props['unit']">
|
|
1588
|
+
<nz-input-number
|
|
1589
|
+
[formControl]="formControl"
|
|
1590
|
+
[formlyAttributes]="field"
|
|
1591
|
+
[nzDisabled]="!editor"
|
|
1592
|
+
[nzPrecision]="precision"
|
|
1593
|
+
[nzStep]="0"
|
|
1594
|
+
[nzFormatter]="formatNumber"
|
|
1595
|
+
[nzParser]="parseNumber"
|
|
1596
|
+
></nz-input-number>
|
|
1597
|
+
</nz-input-group>
|
|
1598
|
+
</ng-container>
|
|
1599
|
+
<ng-template #tmpNumber>
|
|
1600
|
+
<nz-input-number
|
|
1601
|
+
[formControl]="formControl"
|
|
1602
|
+
[formlyAttributes]="field"
|
|
1603
|
+
[nzDisabled]="!editor"
|
|
1604
|
+
[nzPrecision]="precision"
|
|
1605
|
+
[nzStep]="precision == 0 ? 1 : 0.1"
|
|
1606
|
+
[nzFormatter]="formatNumber"
|
|
1607
|
+
[nzParser]="parseNumber"
|
|
1608
|
+
></nz-input-number>
|
|
1609
|
+
</ng-template>
|
|
1610
|
+
</ng-container>
|
|
1611
|
+
|
|
1612
|
+
<ng-template #tmpPwd> *** </ng-template>
|
|
1566
1613
|
`,
|
|
1567
1614
|
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
1568
1615
|
standalone: true,
|
|
@@ -2032,7 +2079,7 @@ class DeonNzFieldRadio extends FieldType {
|
|
|
2032
2079
|
props: { options: [] },
|
|
2033
2080
|
};
|
|
2034
2081
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: DeonNzFieldRadio, deps: null, target: i0.ɵɵFactoryTarget.Component });
|
|
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$
|
|
2082
|
+
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$4.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 });
|
|
2036
2083
|
}
|
|
2037
2084
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: DeonNzFieldRadio, decorators: [{
|
|
2038
2085
|
type: Component,
|
|
@@ -2135,7 +2182,7 @@ class DeonNzFieldRadioGroup extends FieldType {
|
|
|
2135
2182
|
</ng-container>
|
|
2136
2183
|
</ng-template>
|
|
2137
2184
|
</nz-radio-group>
|
|
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$
|
|
2185
|
+
`, 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$4.NzRadioComponent, selector: "[nz-radio],[nz-radio-button]", inputs: ["nzValue", "nzDisabled", "nzAutoFocus", "nz-radio-button"], exportAs: ["nzRadio"] }, { kind: "component", type: i4$4.NzRadioGroupComponent, selector: "nz-radio-group", inputs: ["nzDisabled", "nzButtonStyle", "nzSize", "nzName"], exportAs: ["nzRadioGroup"] }, { kind: "ngmodule", type: FormlyModule }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
2139
2186
|
}
|
|
2140
2187
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: DeonNzFieldRadioGroup, decorators: [{
|
|
2141
2188
|
type: Component,
|