ngx-formly-zorro-antd 19.3.3 → 20.0.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/README.md +1 -1
- package/autocomplete/index.d.ts +39 -5
- package/button/index.d.ts +108 -3
- package/card/index.d.ts +55 -3
- package/card-wrapper/index.d.ts +95 -3
- package/cascader/index.d.ts +199 -3
- package/checkbox/index.d.ts +60 -3
- package/common/index.d.ts +115 -3
- package/datepicker/index.d.ts +211 -3
- package/extension/index.d.ts +25 -3
- package/fesm2022/ngx-formly-zorro-antd-autocomplete.mjs.map +1 -1
- package/fesm2022/ngx-formly-zorro-antd-button.mjs +136 -139
- package/fesm2022/ngx-formly-zorro-antd-button.mjs.map +1 -1
- package/fesm2022/ngx-formly-zorro-antd-card-wrapper.mjs +50 -53
- package/fesm2022/ngx-formly-zorro-antd-card-wrapper.mjs.map +1 -1
- package/fesm2022/ngx-formly-zorro-antd-card.mjs +61 -64
- package/fesm2022/ngx-formly-zorro-antd-card.mjs.map +1 -1
- package/fesm2022/ngx-formly-zorro-antd-cascader.mjs +85 -85
- package/fesm2022/ngx-formly-zorro-antd-cascader.mjs.map +1 -1
- package/fesm2022/ngx-formly-zorro-antd-checkbox.mjs +53 -52
- package/fesm2022/ngx-formly-zorro-antd-checkbox.mjs.map +1 -1
- package/fesm2022/ngx-formly-zorro-antd-common.mjs +7 -7
- package/fesm2022/ngx-formly-zorro-antd-common.mjs.map +1 -1
- package/fesm2022/ngx-formly-zorro-antd-datepicker.mjs +154 -149
- package/fesm2022/ngx-formly-zorro-antd-datepicker.mjs.map +1 -1
- package/fesm2022/ngx-formly-zorro-antd-extension.mjs.map +1 -1
- package/fesm2022/ngx-formly-zorro-antd-flex.mjs +40 -40
- package/fesm2022/ngx-formly-zorro-antd-flex.mjs.map +1 -1
- package/fesm2022/ngx-formly-zorro-antd-form-field.mjs +155 -158
- package/fesm2022/ngx-formly-zorro-antd-form-field.mjs.map +1 -1
- package/fesm2022/ngx-formly-zorro-antd-grid.mjs +64 -64
- package/fesm2022/ngx-formly-zorro-antd-grid.mjs.map +1 -1
- package/fesm2022/ngx-formly-zorro-antd-helpers.mjs +0 -5
- package/fesm2022/ngx-formly-zorro-antd-helpers.mjs.map +1 -1
- package/fesm2022/ngx-formly-zorro-antd-input-group.mjs +47 -49
- package/fesm2022/ngx-formly-zorro-antd-input-group.mjs.map +1 -1
- package/fesm2022/ngx-formly-zorro-antd-input-number.mjs +94 -95
- package/fesm2022/ngx-formly-zorro-antd-input-number.mjs.map +1 -1
- package/fesm2022/ngx-formly-zorro-antd-input-otp.mjs +30 -30
- package/fesm2022/ngx-formly-zorro-antd-input-otp.mjs.map +1 -1
- package/fesm2022/ngx-formly-zorro-antd-input.mjs +301 -304
- package/fesm2022/ngx-formly-zorro-antd-input.mjs.map +1 -1
- package/fesm2022/ngx-formly-zorro-antd-radio.mjs +50 -50
- package/fesm2022/ngx-formly-zorro-antd-radio.mjs.map +1 -1
- package/fesm2022/ngx-formly-zorro-antd-rate.mjs +36 -36
- package/fesm2022/ngx-formly-zorro-antd-rate.mjs.map +1 -1
- package/fesm2022/ngx-formly-zorro-antd-ref-template.mjs +23 -26
- package/fesm2022/ngx-formly-zorro-antd-ref-template.mjs.map +1 -1
- package/fesm2022/ngx-formly-zorro-antd-select.mjs +113 -109
- package/fesm2022/ngx-formly-zorro-antd-select.mjs.map +1 -1
- package/fesm2022/ngx-formly-zorro-antd-slider.mjs +36 -36
- package/fesm2022/ngx-formly-zorro-antd-slider.mjs.map +1 -1
- package/fesm2022/ngx-formly-zorro-antd-space-compact.mjs +18 -18
- package/fesm2022/ngx-formly-zorro-antd-space-compact.mjs.map +1 -1
- package/fesm2022/ngx-formly-zorro-antd-space.mjs +38 -41
- package/fesm2022/ngx-formly-zorro-antd-space.mjs.map +1 -1
- package/fesm2022/ngx-formly-zorro-antd-switch.mjs +30 -30
- package/fesm2022/ngx-formly-zorro-antd-switch.mjs.map +1 -1
- package/fesm2022/ngx-formly-zorro-antd-tabs.mjs +80 -80
- package/fesm2022/ngx-formly-zorro-antd-tabs.mjs.map +1 -1
- package/fesm2022/ngx-formly-zorro-antd-text-value.mjs +14 -14
- package/fesm2022/ngx-formly-zorro-antd-text-value.mjs.map +1 -1
- package/fesm2022/ngx-formly-zorro-antd-textarea.mjs +117 -114
- package/fesm2022/ngx-formly-zorro-antd-textarea.mjs.map +1 -1
- package/fesm2022/ngx-formly-zorro-antd-timepicker.mjs +68 -65
- package/fesm2022/ngx-formly-zorro-antd-timepicker.mjs.map +1 -1
- package/fesm2022/ngx-formly-zorro-antd-transfer.mjs +101 -101
- package/fesm2022/ngx-formly-zorro-antd-transfer.mjs.map +1 -1
- package/fesm2022/ngx-formly-zorro-antd-tree-select.mjs +88 -88
- package/fesm2022/ngx-formly-zorro-antd-tree-select.mjs.map +1 -1
- package/fesm2022/ngx-formly-zorro-antd-types.mjs.map +1 -1
- package/fesm2022/ngx-formly-zorro-antd-upload.mjs +243 -246
- package/fesm2022/ngx-formly-zorro-antd-upload.mjs.map +1 -1
- package/fesm2022/ngx-formly-zorro-antd.mjs +4 -9
- package/fesm2022/ngx-formly-zorro-antd.mjs.map +1 -1
- package/flex/index.d.ts +66 -3
- package/form-field/index.d.ts +217 -3
- package/grid/index.d.ts +84 -3
- package/helpers/index.d.ts +142 -5
- package/index.d.ts +41 -1
- package/input/index.d.ts +93 -3
- package/input-group/index.d.ts +96 -3
- package/input-number/index.d.ts +124 -3
- package/input-otp/index.d.ts +70 -3
- package/package.json +12 -16
- package/radio/index.d.ts +65 -3
- package/rate/index.d.ts +80 -3
- package/ref-template/index.d.ts +95 -3
- package/select/index.d.ts +233 -3
- package/slider/index.d.ts +97 -3
- package/space/index.d.ts +67 -3
- package/space-compact/index.d.ts +54 -3
- package/switch/index.d.ts +63 -3
- package/tabs/index.d.ts +183 -3
- package/text-value/index.d.ts +54 -3
- package/textarea/index.d.ts +64 -3
- package/timepicker/index.d.ts +162 -3
- package/transfer/index.d.ts +162 -3
- package/tree-select/index.d.ts +204 -3
- package/types/index.d.ts +26 -5
- package/upload/index.d.ts +264 -3
- package/autocomplete/autocomplete.props.d.ts +0 -36
- package/autocomplete/public_api.d.ts +0 -1
- package/button/button.config.d.ts +0 -2
- package/button/button.module.d.ts +0 -12
- package/button/button.type.d.ts +0 -93
- package/button/public_api.d.ts +0 -4
- package/button-group/button-group.config.d.ts +0 -2
- package/button-group/button-group.module.d.ts +0 -11
- package/button-group/button-group.type.d.ts +0 -41
- package/button-group/index.d.ts +0 -5
- package/button-group/public_api.d.ts +0 -4
- package/card/card.config.d.ts +0 -2
- package/card/card.module.d.ts +0 -11
- package/card/card.type.d.ts +0 -42
- package/card/public_api.d.ts +0 -4
- package/card-wrapper/card-wrapper.config.d.ts +0 -2
- package/card-wrapper/card-wrapper.module.d.ts +0 -10
- package/card-wrapper/card-wrapper.props.d.ts +0 -58
- package/card-wrapper/card.wrapper.d.ts +0 -27
- package/card-wrapper/public_api.d.ts +0 -5
- package/cascader/cascader.config.d.ts +0 -2
- package/cascader/cascader.module.d.ts +0 -12
- package/cascader/cascader.type.d.ts +0 -182
- package/cascader/public_api.d.ts +0 -4
- package/checkbox/checkbox.config.d.ts +0 -2
- package/checkbox/checkbox.module.d.ts +0 -12
- package/checkbox/checkbox.type.d.ts +0 -41
- package/checkbox/public_api.d.ts +0 -4
- package/common/common.module.d.ts +0 -9
- package/common/formly-box-templates.directive.d.ts +0 -49
- package/common/formly-utils.d.ts +0 -31
- package/common/interface.d.ts +0 -27
- package/common/public_api.d.ts +0 -4
- package/datepicker/datepicker.config.d.ts +0 -2
- package/datepicker/datepicker.module.d.ts +0 -12
- package/datepicker/datepicker.props.d.ts +0 -158
- package/datepicker/datepicker.type.d.ts +0 -36
- package/datepicker/public_api.d.ts +0 -5
- package/extension/public_api.d.ts +0 -1
- package/extension/value-changes-extension.d.ts +0 -23
- package/fesm2022/ngx-formly-zorro-antd-button-group.mjs +0 -158
- package/fesm2022/ngx-formly-zorro-antd-button-group.mjs.map +0 -1
- package/flex/flex.config.d.ts +0 -2
- package/flex/flex.module.d.ts +0 -10
- package/flex/flex.type.d.ts +0 -53
- package/flex/public_api.d.ts +0 -4
- package/form-field/form-field.config.d.ts +0 -2
- package/form-field/form-field.module.d.ts +0 -12
- package/form-field/form-field.props.d.ts +0 -180
- package/form-field/form-field.wrapper.d.ts +0 -25
- package/form-field/public_api.d.ts +0 -4
- package/grid/grid.config.d.ts +0 -2
- package/grid/grid.module.d.ts +0 -10
- package/grid/grid.props.d.ts +0 -59
- package/grid/grid.type.d.ts +0 -15
- package/grid/public_api.d.ts +0 -5
- package/helpers/common.d.ts +0 -7
- package/helpers/formly.d.ts +0 -87
- package/helpers/public_api.d.ts +0 -53
- package/input/input.config.d.ts +0 -2
- package/input/input.module.d.ts +0 -14
- package/input/input.props.d.ts +0 -41
- package/input/input.type.d.ts +0 -35
- package/input/public_api.d.ts +0 -5
- package/input-group/input-group.config.d.ts +0 -2
- package/input-group/input-group.module.d.ts +0 -11
- package/input-group/input-group.props.d.ts +0 -65
- package/input-group/input-group.type.d.ts +0 -24
- package/input-group/public_api.d.ts +0 -5
- package/input-number/input-number.config.d.ts +0 -2
- package/input-number/input-number.module.d.ts +0 -12
- package/input-number/input-number.props.d.ts +0 -85
- package/input-number/input-number.type.d.ts +0 -28
- package/input-number/public_api.d.ts +0 -5
- package/input-otp/input-otp.config.d.ts +0 -2
- package/input-otp/input-otp.module.d.ts +0 -12
- package/input-otp/input-otp.props.d.ts +0 -30
- package/input-otp/input-otp.type.d.ts +0 -25
- package/input-otp/public_api.d.ts +0 -5
- package/lib/ui-ng-zorro-antd.config.d.ts +0 -1
- package/lib/ui-ng-zorro-antd.d.ts +0 -2
- package/lib/ui-ng-zorro-antd.module.d.ts +0 -36
- package/radio/public_api.d.ts +0 -4
- package/radio/radio.config.d.ts +0 -2
- package/radio/radio.module.d.ts +0 -14
- package/radio/radio.type.d.ts +0 -48
- package/rate/public_api.d.ts +0 -4
- package/rate/rate.config.d.ts +0 -2
- package/rate/rate.module.d.ts +0 -12
- package/rate/rate.type.d.ts +0 -65
- package/ref-template/public_api.d.ts +0 -4
- package/ref-template/ref-template.config.d.ts +0 -2
- package/ref-template/ref-template.module.d.ts +0 -11
- package/ref-template/ref-template.type.d.ts +0 -82
- package/select/public_api.d.ts +0 -5
- package/select/select.config.d.ts +0 -2
- package/select/select.module.d.ts +0 -13
- package/select/select.props.d.ts +0 -176
- package/select/select.type.d.ts +0 -38
- package/slider/public_api.d.ts +0 -4
- package/slider/slider.config.d.ts +0 -2
- package/slider/slider.module.d.ts +0 -12
- package/slider/slider.type.d.ts +0 -82
- package/space/public_api.d.ts +0 -4
- package/space/space.config.d.ts +0 -2
- package/space/space.module.d.ts +0 -10
- package/space/space.type.d.ts +0 -55
- package/space-compact/public_api.d.ts +0 -4
- package/space-compact/space-compact.config.d.ts +0 -2
- package/space-compact/space-compact.module.d.ts +0 -10
- package/space-compact/space-compact.type.d.ts +0 -41
- package/switch/public_api.d.ts +0 -4
- package/switch/switch.config.d.ts +0 -2
- package/switch/switch.module.d.ts +0 -12
- package/switch/switch.type.d.ts +0 -48
- package/tabs/public_api.d.ts +0 -4
- package/tabs/tabs.config.d.ts +0 -2
- package/tabs/tabs.module.d.ts +0 -10
- package/tabs/tabs.props.d.ts +0 -143
- package/tabs/tabs.wrapper.d.ts +0 -30
- package/text-value/public_api.d.ts +0 -4
- package/text-value/text-value.config.d.ts +0 -2
- package/text-value/text-value.module.d.ts +0 -11
- package/text-value/text-value.type.d.ts +0 -40
- package/textarea/public_api.d.ts +0 -4
- package/textarea/textarea.config.d.ts +0 -2
- package/textarea/textarea.module.d.ts +0 -13
- package/textarea/textarea.type.d.ts +0 -43
- package/timepicker/public_api.d.ts +0 -4
- package/timepicker/timepicker.config.d.ts +0 -2
- package/timepicker/timepicker.module.d.ts +0 -12
- package/timepicker/timepicker.type.d.ts +0 -143
- package/transfer/public_api.d.ts +0 -4
- package/transfer/transfer.component.d.ts +0 -27
- package/transfer/transfer.config.d.ts +0 -2
- package/transfer/transfer.module.d.ts +0 -13
- package/transfer/transfer.type.d.ts +0 -123
- package/tree-select/public_api.d.ts +0 -4
- package/tree-select/tree-select.config.d.ts +0 -2
- package/tree-select/tree-select.module.d.ts +0 -12
- package/tree-select/tree-select.type.d.ts +0 -187
- package/types/public_api.d.ts +0 -27
- package/upload/public_api.d.ts +0 -5
- package/upload/upload.component.d.ts +0 -37
- package/upload/upload.config.d.ts +0 -2
- package/upload/upload.module.d.ts +0 -15
- package/upload/upload.props.d.ts +0 -183
- package/upload/upload.type.d.ts +0 -36
@@ -1,158 +0,0 @@
|
|
1
|
-
import * as i0 from '@angular/core';
|
2
|
-
import { ChangeDetectionStrategy, Component, NgModule } from '@angular/core';
|
3
|
-
import * as i1 from '@angular/common';
|
4
|
-
import { CommonModule } from '@angular/common';
|
5
|
-
import * as i6 from '@ngx-formly/core';
|
6
|
-
import { FieldType, FormlyModule } from '@ngx-formly/core';
|
7
|
-
import { Subject } from 'rxjs';
|
8
|
-
import * as i2 from 'ng-zorro-antd/button';
|
9
|
-
import { NzButtonModule } from 'ng-zorro-antd/button';
|
10
|
-
import * as i3 from 'ng-zorro-antd/core/transition-patch';
|
11
|
-
import * as i4 from 'ng-zorro-antd/core/wave';
|
12
|
-
import * as i5 from 'ng-zorro-antd/icon';
|
13
|
-
import { NzIconModule } from 'ng-zorro-antd/icon';
|
14
|
-
|
15
|
-
/**
|
16
|
-
* @private
|
17
|
-
*/
|
18
|
-
class FormlyFieldButtonGroup extends FieldType {
|
19
|
-
constructor() {
|
20
|
-
super();
|
21
|
-
this.destroy$ = new Subject();
|
22
|
-
this.defaultOptions = {
|
23
|
-
props: {
|
24
|
-
size: 'default',
|
25
|
-
buttons: []
|
26
|
-
}
|
27
|
-
};
|
28
|
-
}
|
29
|
-
subjectDestroy() {
|
30
|
-
this.destroy$.next();
|
31
|
-
this.destroy$.complete();
|
32
|
-
}
|
33
|
-
ngOnDestroy() {
|
34
|
-
this.subjectDestroy();
|
35
|
-
}
|
36
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.14", ngImport: i0, type: FormlyFieldButtonGroup, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
37
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.2.14", type: FormlyFieldButtonGroup, isStandalone: false, selector: "formly-field-button-group", usesInheritance: true, ngImport: i0, template: `
|
38
|
-
<nz-button-group
|
39
|
-
[formlyAttributes]="field"
|
40
|
-
[nzSize]="props['size'] || 'default'"
|
41
|
-
[class]="props['className']"
|
42
|
-
[style]="props['style']"
|
43
|
-
>
|
44
|
-
@for (x of props.buttons; track x) {
|
45
|
-
<ng-container *ngTemplateOutlet="btnTemplate; context: { $implicit: x }"></ng-container>
|
46
|
-
}
|
47
|
-
</nz-button-group>
|
48
|
-
|
49
|
-
<ng-template #btnTemplate let-item>
|
50
|
-
<button
|
51
|
-
nz-button
|
52
|
-
[formlyAttributes]="item"
|
53
|
-
[type]="item.type || 'button'"
|
54
|
-
[attr.title]="item.props['title']"
|
55
|
-
[disabled]="!!item.props.disabled"
|
56
|
-
[nzBlock]="!!item.props.block"
|
57
|
-
[nzDanger]="!!item.props.danger"
|
58
|
-
[nzGhost]="!!item.props.ghost"
|
59
|
-
[class]="item.props['className']"
|
60
|
-
[style]="item.props['style']"
|
61
|
-
[nzSize]="item.props.size || 'default'"
|
62
|
-
[nzLoading]="!!item.props.loading"
|
63
|
-
[nzShape]="item.props.shape ?? null"
|
64
|
-
[nzType]="item.props.nzType ?? null"
|
65
|
-
>
|
66
|
-
@if (item.props.beforeIcon) {
|
67
|
-
<span nz-icon [nzType]="item.props.beforeIcon"></span>
|
68
|
-
}
|
69
|
-
@if (item.props.text) {
|
70
|
-
<span>{{ item.props.text }}</span>
|
71
|
-
}
|
72
|
-
@if (item.props.afterIcon) {
|
73
|
-
<span nz-icon [nzType]="item.props.afterIcon"></span>
|
74
|
-
}
|
75
|
-
</button>
|
76
|
-
</ng-template>
|
77
|
-
`, isInline: true, dependencies: [{ kind: "directive", type: i1.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "component", type: i2.NzButtonComponent, selector: "button[nz-button], a[nz-button]", inputs: ["nzBlock", "nzGhost", "nzSearch", "nzLoading", "nzDanger", "disabled", "tabIndex", "nzType", "nzShape", "nzSize"], exportAs: ["nzButton"] }, { kind: "component", type: i2.NzButtonGroupComponent, selector: "nz-button-group", inputs: ["nzSize"], exportAs: ["nzButtonGroup"] }, { kind: "directive", type: i3.ɵ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: i4.NzWaveDirective, selector: "[nz-wave],button[nz-button]:not([nzType=\"link\"]):not([nzType=\"text\"])", inputs: ["nzWaveExtraNode"], exportAs: ["nzWave"] }, { kind: "directive", type: i5.NzIconDirective, selector: "nz-icon,[nz-icon]", inputs: ["nzSpin", "nzRotate", "nzType", "nzTheme", "nzTwotoneColor", "nzIconfont"], exportAs: ["nzIcon"] }, { kind: "directive", type: i6.ɵFormlyAttributes, selector: "[formlyAttributes]", inputs: ["formlyAttributes", "id"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
78
|
-
}
|
79
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.14", ngImport: i0, type: FormlyFieldButtonGroup, decorators: [{
|
80
|
-
type: Component,
|
81
|
-
args: [{
|
82
|
-
selector: 'formly-field-button-group',
|
83
|
-
template: `
|
84
|
-
<nz-button-group
|
85
|
-
[formlyAttributes]="field"
|
86
|
-
[nzSize]="props['size'] || 'default'"
|
87
|
-
[class]="props['className']"
|
88
|
-
[style]="props['style']"
|
89
|
-
>
|
90
|
-
@for (x of props.buttons; track x) {
|
91
|
-
<ng-container *ngTemplateOutlet="btnTemplate; context: { $implicit: x }"></ng-container>
|
92
|
-
}
|
93
|
-
</nz-button-group>
|
94
|
-
|
95
|
-
<ng-template #btnTemplate let-item>
|
96
|
-
<button
|
97
|
-
nz-button
|
98
|
-
[formlyAttributes]="item"
|
99
|
-
[type]="item.type || 'button'"
|
100
|
-
[attr.title]="item.props['title']"
|
101
|
-
[disabled]="!!item.props.disabled"
|
102
|
-
[nzBlock]="!!item.props.block"
|
103
|
-
[nzDanger]="!!item.props.danger"
|
104
|
-
[nzGhost]="!!item.props.ghost"
|
105
|
-
[class]="item.props['className']"
|
106
|
-
[style]="item.props['style']"
|
107
|
-
[nzSize]="item.props.size || 'default'"
|
108
|
-
[nzLoading]="!!item.props.loading"
|
109
|
-
[nzShape]="item.props.shape ?? null"
|
110
|
-
[nzType]="item.props.nzType ?? null"
|
111
|
-
>
|
112
|
-
@if (item.props.beforeIcon) {
|
113
|
-
<span nz-icon [nzType]="item.props.beforeIcon"></span>
|
114
|
-
}
|
115
|
-
@if (item.props.text) {
|
116
|
-
<span>{{ item.props.text }}</span>
|
117
|
-
}
|
118
|
-
@if (item.props.afterIcon) {
|
119
|
-
<span nz-icon [nzType]="item.props.afterIcon"></span>
|
120
|
-
}
|
121
|
-
</button>
|
122
|
-
</ng-template>
|
123
|
-
`,
|
124
|
-
changeDetection: ChangeDetectionStrategy.OnPush,
|
125
|
-
standalone: false
|
126
|
-
}]
|
127
|
-
}], ctorParameters: () => [] });
|
128
|
-
|
129
|
-
function withFormlyFieldButtonGroup() {
|
130
|
-
return {
|
131
|
-
types: [
|
132
|
-
{
|
133
|
-
name: 'button-group',
|
134
|
-
component: FormlyFieldButtonGroup
|
135
|
-
}
|
136
|
-
]
|
137
|
-
};
|
138
|
-
}
|
139
|
-
|
140
|
-
class FormlyNzButtonGroupModule {
|
141
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.14", ngImport: i0, type: FormlyNzButtonGroupModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
142
|
-
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "19.2.14", ngImport: i0, type: FormlyNzButtonGroupModule, declarations: [FormlyFieldButtonGroup], imports: [CommonModule, NzButtonModule, NzIconModule, i6.FormlyModule] }); }
|
143
|
-
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "19.2.14", ngImport: i0, type: FormlyNzButtonGroupModule, imports: [CommonModule, NzButtonModule, NzIconModule, FormlyModule.forChild(withFormlyFieldButtonGroup())] }); }
|
144
|
-
}
|
145
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.14", ngImport: i0, type: FormlyNzButtonGroupModule, decorators: [{
|
146
|
-
type: NgModule,
|
147
|
-
args: [{
|
148
|
-
declarations: [FormlyFieldButtonGroup],
|
149
|
-
imports: [CommonModule, NzButtonModule, NzIconModule, FormlyModule.forChild(withFormlyFieldButtonGroup())]
|
150
|
-
}]
|
151
|
-
}] });
|
152
|
-
|
153
|
-
/**
|
154
|
-
* Generated bundle index. Do not edit.
|
155
|
-
*/
|
156
|
-
|
157
|
-
export { FormlyFieldButtonGroup, FormlyNzButtonGroupModule, withFormlyFieldButtonGroup };
|
158
|
-
//# sourceMappingURL=ngx-formly-zorro-antd-button-group.mjs.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"ngx-formly-zorro-antd-button-group.mjs","sources":["../../../../packages/formlyantd/button-group/src/button-group.type.ts","../../../../packages/formlyantd/button-group/src/button-group.config.ts","../../../../packages/formlyantd/button-group/src/button-group.module.ts","../../../../packages/formlyantd/button-group/src/ngx-formly-zorro-antd-button-group.ts"],"sourcesContent":["import { Component, Type, OnDestroy, ChangeDetectionStrategy } from '@angular/core';\nimport { FieldType, FieldTypeConfig } from '@ngx-formly/core';\nimport type { FormlyFieldProps } from 'ngx-formly-zorro-antd/form-field';\nimport { Subject } from 'rxjs';\nimport { NzFormlyFieldConfig } from 'ngx-formly-zorro-antd/common';\nimport { ButtonProps } from 'ngx-formly-zorro-antd/button';\n\nimport type { NzButtonGroupSize } from 'ng-zorro-antd/button';\n\n/**\n * @publicApi\n */\nexport interface ButtonGroupProps extends FormlyFieldProps {\n size?: NzButtonGroupSize;\n\n /**\n * 每个按钮配置\n */\n buttons?: NzFormlyFieldConfig<Omit<ButtonProps, 'size' | 'textName'>>[];\n}\n\n/**\n * @deprecated Will be removed in v20. Use `space-compact` instead.\n */\nexport interface FormlyButtonGroupFieldConfig extends NzFormlyFieldConfig<ButtonGroupProps> {\n type: 'button-group' | Type<FormlyFieldButtonGroup>;\n}\n/**\n * @private\n */\n@Component({\n selector: 'formly-field-button-group',\n template: `\n <nz-button-group\n [formlyAttributes]=\"field\"\n [nzSize]=\"props['size'] || 'default'\"\n [class]=\"props['className']\"\n [style]=\"props['style']\"\n >\n @for (x of props.buttons; track x) {\n <ng-container *ngTemplateOutlet=\"btnTemplate; context: { $implicit: x }\"></ng-container>\n }\n </nz-button-group>\n\n <ng-template #btnTemplate let-item>\n <button\n nz-button\n [formlyAttributes]=\"item\"\n [type]=\"item.type || 'button'\"\n [attr.title]=\"item.props['title']\"\n [disabled]=\"!!item.props.disabled\"\n [nzBlock]=\"!!item.props.block\"\n [nzDanger]=\"!!item.props.danger\"\n [nzGhost]=\"!!item.props.ghost\"\n [class]=\"item.props['className']\"\n [style]=\"item.props['style']\"\n [nzSize]=\"item.props.size || 'default'\"\n [nzLoading]=\"!!item.props.loading\"\n [nzShape]=\"item.props.shape ?? null\"\n [nzType]=\"item.props.nzType ?? null\"\n >\n @if (item.props.beforeIcon) {\n <span nz-icon [nzType]=\"item.props.beforeIcon\"></span>\n }\n @if (item.props.text) {\n <span>{{ item.props.text }}</span>\n }\n @if (item.props.afterIcon) {\n <span nz-icon [nzType]=\"item.props.afterIcon\"></span>\n }\n </button>\n </ng-template>\n `,\n changeDetection: ChangeDetectionStrategy.OnPush,\n standalone: false\n})\nexport class FormlyFieldButtonGroup extends FieldType<FieldTypeConfig<ButtonGroupProps>> implements OnDestroy {\n destroy$ = new Subject<void>();\n override defaultOptions = {\n props: {\n size: 'default' as const,\n buttons: []\n }\n };\n\n constructor() {\n super();\n }\n\n subjectDestroy(): void {\n this.destroy$.next();\n this.destroy$.complete();\n }\n\n ngOnDestroy(): void {\n this.subjectDestroy();\n }\n}\n","import type { ConfigOption } from '@ngx-formly/core';\nimport { FormlyFieldButtonGroup } from './button-group.type';\n\nexport function withFormlyFieldButtonGroup(): ConfigOption {\n return {\n types: [\n {\n name: 'button-group',\n component: FormlyFieldButtonGroup\n }\n ]\n };\n}\n","import { NgModule } from '@angular/core';\nimport { CommonModule } from '@angular/common';\nimport { FormlyModule } from '@ngx-formly/core';\n\nimport { FormlyFieldButtonGroup } from './button-group.type';\nimport { withFormlyFieldButtonGroup } from './button-group.config';\nimport { NzButtonModule } from 'ng-zorro-antd/button';\nimport { NzIconModule } from 'ng-zorro-antd/icon';\n\n@NgModule({\n declarations: [FormlyFieldButtonGroup],\n imports: [CommonModule, NzButtonModule, NzIconModule, FormlyModule.forChild(withFormlyFieldButtonGroup())]\n})\nexport class FormlyNzButtonGroupModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public_api';\n"],"names":["i1"],"mappings":"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"}
|
package/flex/flex.config.d.ts
DELETED
package/flex/flex.module.d.ts
DELETED
@@ -1,10 +0,0 @@
|
|
1
|
-
import * as i0 from "@angular/core";
|
2
|
-
import * as i1 from "./flex.type";
|
3
|
-
import * as i2 from "@angular/common";
|
4
|
-
import * as i3 from "ng-zorro-antd/flex";
|
5
|
-
import * as i4 from "@ngx-formly/core";
|
6
|
-
export declare class FormlyNzFlexModule {
|
7
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<FormlyNzFlexModule, never>;
|
8
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<FormlyNzFlexModule, [typeof i1.FormlyFieldFlex], [typeof i2.CommonModule, typeof i3.NzFlexModule, typeof i4.FormlyModule], never>;
|
9
|
-
static ɵinj: i0.ɵɵInjectorDeclaration<FormlyNzFlexModule>;
|
10
|
-
}
|
package/flex/flex.type.d.ts
DELETED
@@ -1,53 +0,0 @@
|
|
1
|
-
import { Type } from '@angular/core';
|
2
|
-
import { FieldType, FieldTypeConfig, FormlyFieldProps } from '@ngx-formly/core';
|
3
|
-
import type { NzFormlyFieldConfig, NgClassType, NgStyleType } from 'ngx-formly-zorro-antd/common';
|
4
|
-
import type { NzWrap, NzJustify, NzAlign, NzFlex, NzGap } from 'ng-zorro-antd/flex';
|
5
|
-
import * as i0 from "@angular/core";
|
6
|
-
/**
|
7
|
-
* @publicApi
|
8
|
-
*/
|
9
|
-
export interface FlexProps extends FormlyFieldProps {
|
10
|
-
/**
|
11
|
-
* 自定义css类
|
12
|
-
*/
|
13
|
-
className?: NgClassType;
|
14
|
-
/**
|
15
|
-
* 自定义样式
|
16
|
-
*/
|
17
|
-
style?: NgStyleType;
|
18
|
-
/**
|
19
|
-
* flex 主轴的方向是否垂直,使用 flex-direction: column
|
20
|
-
* @default false
|
21
|
-
*/
|
22
|
-
vertical?: boolean;
|
23
|
-
/** 设置元素在主轴方向上的对齐方式 */
|
24
|
-
justify?: NzJustify;
|
25
|
-
/** 设置元素在交叉轴方向上的对齐方式 */
|
26
|
-
align?: NzAlign;
|
27
|
-
/** 设置网格之间的间隙 */
|
28
|
-
gap?: NzGap;
|
29
|
-
/** 设置元素单行显示还是多行显示 */
|
30
|
-
wrap?: NzWrap;
|
31
|
-
/** flex CSS 简写属性 */
|
32
|
-
flex?: NzFlex;
|
33
|
-
}
|
34
|
-
export interface FormlyFlexFieldConfig extends NzFormlyFieldConfig<FlexProps> {
|
35
|
-
type: 'flex' | Type<FormlyFieldFlex>;
|
36
|
-
}
|
37
|
-
/**
|
38
|
-
* @private
|
39
|
-
*/
|
40
|
-
export declare class FormlyFieldFlex extends FieldType<FieldTypeConfig<FlexProps>> {
|
41
|
-
defaultOptions: {
|
42
|
-
props: {
|
43
|
-
vertical: boolean;
|
44
|
-
justify: "normal";
|
45
|
-
align: "normal";
|
46
|
-
gap: number;
|
47
|
-
wrap: "nowrap";
|
48
|
-
flex: "unset";
|
49
|
-
};
|
50
|
-
};
|
51
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<FormlyFieldFlex, never>;
|
52
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<FormlyFieldFlex, "formly-field-flex", never, {}, {}, never, never, false, never>;
|
53
|
-
}
|
package/flex/public_api.d.ts
DELETED
@@ -1,12 +0,0 @@
|
|
1
|
-
import * as i0 from "@angular/core";
|
2
|
-
import * as i1 from "./form-field.wrapper";
|
3
|
-
import * as i2 from "@angular/common";
|
4
|
-
import * as i3 from "@angular/forms";
|
5
|
-
import * as i4 from "ng-zorro-antd/form";
|
6
|
-
import * as i5 from "ng-zorro-antd/core/outlet";
|
7
|
-
import * as i6 from "@ngx-formly/core";
|
8
|
-
export declare class FormlyNzFormFieldModule {
|
9
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<FormlyNzFormFieldModule, never>;
|
10
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<FormlyNzFormFieldModule, [typeof i1.FormlyWrapperFormField], [typeof i2.CommonModule, typeof i3.ReactiveFormsModule, typeof i4.NzFormModule, typeof i5.NzOutletModule, typeof i6.FormlyModule], never>;
|
11
|
-
static ɵinj: i0.ɵɵInjectorDeclaration<FormlyNzFormFieldModule>;
|
12
|
-
}
|
@@ -1,180 +0,0 @@
|
|
1
|
-
import { TemplateRef } from '@angular/core';
|
2
|
-
import { AbstractControl, NgModel } from '@angular/forms';
|
3
|
-
import type { EmbeddedProperty } from 'ng-zorro-antd/grid';
|
4
|
-
import type { NzFormTooltipIcon, NzLabelAlignType } from 'ng-zorro-antd/form';
|
5
|
-
import type { NzTSType } from 'ng-zorro-antd/core/types';
|
6
|
-
import type { ControlOptions, NgClassType, NgStyleType } from 'ngx-formly-zorro-antd/common';
|
7
|
-
/**
|
8
|
-
* @publicApi
|
9
|
-
*/
|
10
|
-
type strNumNull = string | number | null;
|
11
|
-
/**
|
12
|
-
* nz表单配置项
|
13
|
-
* @publicApi
|
14
|
-
*/
|
15
|
-
export interface NzFormWrapperProps extends ControlOptions {
|
16
|
-
/**
|
17
|
-
* 隐藏必填标记
|
18
|
-
*/
|
19
|
-
hideRequiredMarker?: boolean;
|
20
|
-
/**
|
21
|
-
* 隐藏Label
|
22
|
-
*/
|
23
|
-
hideLabel?: boolean;
|
24
|
-
/**
|
25
|
-
* 自定义css类
|
26
|
-
*/
|
27
|
-
className?: NgClassType;
|
28
|
-
/**
|
29
|
-
* 自定义样式
|
30
|
-
*/
|
31
|
-
style?: NgStyleType;
|
32
|
-
/**
|
33
|
-
* itemClass自定义css类
|
34
|
-
*/
|
35
|
-
itemClass?: string;
|
36
|
-
/**
|
37
|
-
* itemStyle自定义样式
|
38
|
-
*/
|
39
|
-
itemStyle?: NgStyleType;
|
40
|
-
/**
|
41
|
-
* labelClass
|
42
|
-
*/
|
43
|
-
labelClass?: string;
|
44
|
-
/**
|
45
|
-
* controlClass
|
46
|
-
*/
|
47
|
-
controlClass?: string;
|
48
|
-
/**
|
49
|
-
* labelStyle
|
50
|
-
*/
|
51
|
-
labelStyle?: NgStyleType;
|
52
|
-
/**
|
53
|
-
* controlStyle
|
54
|
-
*/
|
55
|
-
controlStyle?: NgStyleType;
|
56
|
-
/**
|
57
|
-
* 是否不显示 label 后面的冒号
|
58
|
-
* @default false
|
59
|
-
*/
|
60
|
-
noColon?: boolean;
|
61
|
-
/**
|
62
|
-
* 是否定义label nzFor
|
63
|
-
* @default false
|
64
|
-
*/
|
65
|
-
noFor?: boolean;
|
66
|
-
/**
|
67
|
-
* 配置提示信息
|
68
|
-
*/
|
69
|
-
tooltipTitle?: NzTSType;
|
70
|
-
tooltipTitleName?: string;
|
71
|
-
/**
|
72
|
-
* 配置提示信息的图标
|
73
|
-
*/
|
74
|
-
tooltipIcon?: string | NzFormTooltipIcon;
|
75
|
-
/**
|
76
|
-
* 标签文本对齐方式
|
77
|
-
* @default 'right'
|
78
|
-
*/
|
79
|
-
labelAlign?: NzLabelAlignType;
|
80
|
-
/**
|
81
|
-
* label 标签的文本换行
|
82
|
-
* @default false
|
83
|
-
*/
|
84
|
-
labelWrap?: boolean;
|
85
|
-
/**
|
86
|
-
* 配合 nzValidateStatus 属性使用,展示校验状态图标
|
87
|
-
* @default false
|
88
|
-
*/
|
89
|
-
hasFeedback?: boolean;
|
90
|
-
/**
|
91
|
-
* 描述
|
92
|
-
*/
|
93
|
-
description?: string;
|
94
|
-
/**
|
95
|
-
* 校验状态 success 时提示信息
|
96
|
-
*/
|
97
|
-
successTip?: NzTipType;
|
98
|
-
successTipName?: string;
|
99
|
-
/**
|
100
|
-
* 校验状态 warning 时提示信息
|
101
|
-
*/
|
102
|
-
warningTip?: NzTipType;
|
103
|
-
warningTipName?: string;
|
104
|
-
/**
|
105
|
-
* 正在校验时提示信息
|
106
|
-
*/
|
107
|
-
validatingTip?: NzTipType;
|
108
|
-
validatingTipName?: string;
|
109
|
-
/**
|
110
|
-
* 用于显示表单额外提示信息
|
111
|
-
*/
|
112
|
-
extra?: NzTSType;
|
113
|
-
extraName?: string;
|
114
|
-
/**
|
115
|
-
* 配置提示的对象, 具体用法请参考示例:自动提示
|
116
|
-
*/
|
117
|
-
autoTips?: Record<string, Record<string, string>>;
|
118
|
-
/**
|
119
|
-
* 禁用自动提示
|
120
|
-
*/
|
121
|
-
disableAutoTips?: boolean | 'default';
|
122
|
-
/** 在form-control尾部添加文本 */
|
123
|
-
afterText?: string;
|
124
|
-
afterTextName?: string;
|
125
|
-
/** flex 布局属性 */
|
126
|
-
labelFlex?: strNumNull;
|
127
|
-
/** 栅格左侧的间隔格数,间隔内不可以有栅格 */
|
128
|
-
labelOffset?: strNumNull;
|
129
|
-
/** 栅格顺序 */
|
130
|
-
labelOrder?: strNumNull;
|
131
|
-
/** 栅格向左移动格数 */
|
132
|
-
labelPull?: strNumNull;
|
133
|
-
/** 栅格向右移动格数 */
|
134
|
-
labelPush?: strNumNull;
|
135
|
-
/** 栅格占位格数,为 0 时相当于 display: none */
|
136
|
-
labelSpan?: strNumNull;
|
137
|
-
/** <576px 响应式栅格,可为栅格数或一个包含其他属性的对象 */
|
138
|
-
labelXs?: strNumNull | EmbeddedProperty;
|
139
|
-
/** ≥576px 响应式栅格,可为栅格数或一个包含其他属性的对象 */
|
140
|
-
labelSm?: strNumNull | EmbeddedProperty;
|
141
|
-
/** ≥768px 响应式栅格,可为栅格数或一个包含其他属性的对象 */
|
142
|
-
labelMd?: strNumNull | EmbeddedProperty;
|
143
|
-
/** ≥992px 响应式栅格,可为栅格数或一个包含其他属性的对象 */
|
144
|
-
labelLg?: strNumNull | EmbeddedProperty;
|
145
|
-
/** ≥1200px 响应式栅格,可为栅格数或一个包含其他属性的对象 */
|
146
|
-
labelXl?: strNumNull | EmbeddedProperty;
|
147
|
-
/** ≥1600px 响应式栅格,可为栅格数或一个包含其他属性的对象 */
|
148
|
-
labelXXl?: strNumNull | EmbeddedProperty;
|
149
|
-
/** flex 布局属性 */
|
150
|
-
controlFlex?: strNumNull;
|
151
|
-
/** 栅格左侧的间隔格数,间隔内不可以有栅格 */
|
152
|
-
controlOffset?: strNumNull;
|
153
|
-
/** 栅格顺序 */
|
154
|
-
controlOrder?: strNumNull;
|
155
|
-
/** 栅格向左移动格数 */
|
156
|
-
controlPull?: strNumNull;
|
157
|
-
/** 栅格向右移动格数 */
|
158
|
-
controlPush?: strNumNull;
|
159
|
-
/** 栅格占位格数,为 0 时相当于 display: none */
|
160
|
-
controlSpan?: strNumNull;
|
161
|
-
/** <576px 响应式栅格,可为栅格数或一个包含其他属性的对象 */
|
162
|
-
controlXs?: strNumNull | EmbeddedProperty;
|
163
|
-
/** ≥576px 响应式栅格,可为栅格数或一个包含其他属性的对象 */
|
164
|
-
controlSm?: strNumNull | EmbeddedProperty;
|
165
|
-
/** ≥768px 响应式栅格,可为栅格数或一个包含其他属性的对象 */
|
166
|
-
controlMd?: strNumNull | EmbeddedProperty;
|
167
|
-
/** ≥992px 响应式栅格,可为栅格数或一个包含其他属性的对象 */
|
168
|
-
controlLg?: strNumNull | EmbeddedProperty;
|
169
|
-
/** ≥1200px 响应式栅格,可为栅格数或一个包含其他属性的对象 */
|
170
|
-
controlXl?: strNumNull | EmbeddedProperty;
|
171
|
-
/** ≥1600px 响应式栅格,可为栅格数或一个包含其他属性的对象 */
|
172
|
-
controlXXl?: strNumNull | EmbeddedProperty;
|
173
|
-
}
|
174
|
-
/**
|
175
|
-
* @publicApi
|
176
|
-
*/
|
177
|
-
export type NzTipType = string | TemplateRef<{
|
178
|
-
$implicit: AbstractControl | NgModel;
|
179
|
-
}>;
|
180
|
-
export {};
|
@@ -1,25 +0,0 @@
|
|
1
|
-
import { FieldWrapper } from '@ngx-formly/core';
|
2
|
-
import type { NzFormWrapperProps } from './form-field.props';
|
3
|
-
import type { NzFormlyFieldConfig } from 'ngx-formly-zorro-antd/common';
|
4
|
-
import { FormlyBoxTemplates } from 'ngx-formly-zorro-antd/common';
|
5
|
-
import * as i0 from "@angular/core";
|
6
|
-
export type FormlyFieldProps = NzFormWrapperProps;
|
7
|
-
/**
|
8
|
-
* @private
|
9
|
-
*/
|
10
|
-
export declare class FormlyWrapperFormField extends FieldWrapper<NzFormlyFieldConfig<FormlyFieldProps>> {
|
11
|
-
fieldTemplates: FormlyBoxTemplates;
|
12
|
-
constructor(fieldTemplates: FormlyBoxTemplates);
|
13
|
-
get nzTooltipTitle(): import("@angular/core").TemplateRef<any> | undefined;
|
14
|
-
get nzExtra(): import("@angular/core").TemplateRef<any> | undefined;
|
15
|
-
get hasLabel(): boolean;
|
16
|
-
get label(): import("@angular/core").TemplateRef<any> | undefined;
|
17
|
-
get afterText(): import("@angular/core").TemplateRef<any> | undefined;
|
18
|
-
get nzSuccessTip(): import("@angular/core").TemplateRef<any> | undefined;
|
19
|
-
get nzValidatingTip(): import("@angular/core").TemplateRef<any> | undefined;
|
20
|
-
get nzWarningTip(): import("@angular/core").TemplateRef<any> | undefined;
|
21
|
-
get hasError(): false | import("@angular/forms").ValidationErrors | null;
|
22
|
-
get validateStatus(): "error" | "success";
|
23
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<FormlyWrapperFormField, [{ optional: true; }]>;
|
24
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<FormlyWrapperFormField, "formly-wrapper-nz-form-field", never, {}, {}, never, never, false, never>;
|
25
|
-
}
|
package/grid/grid.config.d.ts
DELETED
package/grid/grid.module.d.ts
DELETED
@@ -1,10 +0,0 @@
|
|
1
|
-
import * as i0 from "@angular/core";
|
2
|
-
import * as i1 from "./grid.type";
|
3
|
-
import * as i2 from "@angular/common";
|
4
|
-
import * as i3 from "ng-zorro-antd/grid";
|
5
|
-
import * as i4 from "@ngx-formly/core";
|
6
|
-
export declare class FormlyNzGridModule {
|
7
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<FormlyNzGridModule, never>;
|
8
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<FormlyNzGridModule, [typeof i1.FormlyFieldGrid], [typeof i2.CommonModule, typeof i3.NzGridModule, typeof i4.FormlyModule], never>;
|
9
|
-
static ɵinj: i0.ɵɵInjectorDeclaration<FormlyNzGridModule>;
|
10
|
-
}
|
package/grid/grid.props.d.ts
DELETED
@@ -1,59 +0,0 @@
|
|
1
|
-
import { FormlyFieldProps as CoreFormlyFieldProps } from '@ngx-formly/core';
|
2
|
-
import type { IndexableObject } from 'ng-zorro-antd/core/types';
|
3
|
-
import type { EmbeddedProperty, NzAlign, NzJustify } from 'ng-zorro-antd/grid';
|
4
|
-
import type { NgClassType, NgStyleType } from 'ngx-formly-zorro-antd/common';
|
5
|
-
type strNumNull = string | number | null;
|
6
|
-
/**
|
7
|
-
* @publicApi
|
8
|
-
*/
|
9
|
-
export interface GridColProps {
|
10
|
-
/** flex 布局属性 */
|
11
|
-
flex?: strNumNull;
|
12
|
-
/** 栅格左侧的间隔格数,间隔内不可以有栅格 */
|
13
|
-
offset?: strNumNull;
|
14
|
-
/** 栅格顺序 */
|
15
|
-
order?: strNumNull;
|
16
|
-
/** 栅格向左移动格数 */
|
17
|
-
pull?: strNumNull;
|
18
|
-
/** 栅格向右移动格数 */
|
19
|
-
push?: strNumNull;
|
20
|
-
/** 栅格占位格数,为 0 时相当于 display: none */
|
21
|
-
span?: strNumNull;
|
22
|
-
/** <576px 响应式栅格,可为栅格数或一个包含其他属性的对象 */
|
23
|
-
xs?: strNumNull | EmbeddedProperty;
|
24
|
-
/** ≥576px 响应式栅格,可为栅格数或一个包含其他属性的对象 */
|
25
|
-
sm?: strNumNull | EmbeddedProperty;
|
26
|
-
/** ≥768px 响应式栅格,可为栅格数或一个包含其他属性的对象 */
|
27
|
-
md?: strNumNull | EmbeddedProperty;
|
28
|
-
/** ≥992px 响应式栅格,可为栅格数或一个包含其他属性的对象 */
|
29
|
-
lg?: strNumNull | EmbeddedProperty;
|
30
|
-
/** ≥1200px 响应式栅格,可为栅格数或一个包含其他属性的对象 */
|
31
|
-
xl?: strNumNull | EmbeddedProperty;
|
32
|
-
/** ≥1600px 响应式栅格,可为栅格数或一个包含其他属性的对象 */
|
33
|
-
xxl?: strNumNull | EmbeddedProperty;
|
34
|
-
}
|
35
|
-
/**
|
36
|
-
* @publicApi
|
37
|
-
*/
|
38
|
-
export interface GridProps extends CoreFormlyFieldProps, GridColProps {
|
39
|
-
/** 自定义css类 */
|
40
|
-
className?: NgClassType;
|
41
|
-
/** 自定义样式 */
|
42
|
-
style?: NgStyleType;
|
43
|
-
/** 垂直对齐方式 */
|
44
|
-
align?: NzAlign | null;
|
45
|
-
/**
|
46
|
-
* 栅格间隔,可以写成像素值或支持响应式的对象写法来设置水平间隔 { xs: 8, sm: 16, md: 24}。
|
47
|
-
* 或者使用数组形式同时设置 [水平间距, 垂直间距]。
|
48
|
-
*/
|
49
|
-
gutter?: strNumNull | IndexableObject | [number, number] | [IndexableObject, IndexableObject];
|
50
|
-
/** 水平排列方式 */
|
51
|
-
justify?: NzJustify | null;
|
52
|
-
/**
|
53
|
-
* 独立的
|
54
|
-
* 如果为true,子项不影响布局
|
55
|
-
* @default false
|
56
|
-
*/
|
57
|
-
independent?: boolean;
|
58
|
-
}
|
59
|
-
export {};
|
package/grid/grid.type.d.ts
DELETED
@@ -1,15 +0,0 @@
|
|
1
|
-
import { Type } from '@angular/core';
|
2
|
-
import { FieldType, FieldTypeConfig } from '@ngx-formly/core';
|
3
|
-
import type { NzFormlyFieldConfig } from 'ngx-formly-zorro-antd/common';
|
4
|
-
import type { GridProps } from './grid.props';
|
5
|
-
import * as i0 from "@angular/core";
|
6
|
-
export interface FormlyGridFieldConfig extends NzFormlyFieldConfig<GridProps> {
|
7
|
-
type: 'grid' | Type<FormlyFieldGrid>;
|
8
|
-
}
|
9
|
-
/**
|
10
|
-
* @private
|
11
|
-
*/
|
12
|
-
export declare class FormlyFieldGrid extends FieldType<FieldTypeConfig<GridProps>> {
|
13
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<FormlyFieldGrid, never>;
|
14
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<FormlyFieldGrid, "formly-field-grid", never, {}, {}, never, never, false, never>;
|
15
|
-
}
|
package/grid/public_api.d.ts
DELETED
@@ -1,5 +0,0 @@
|
|
1
|
-
export { FormlyNzGridModule } from './grid.module';
|
2
|
-
export { FormlyFieldGrid } from './grid.type';
|
3
|
-
export { withFormlyFieldGrid } from './grid.config';
|
4
|
-
export type { FormlyGridFieldConfig } from './grid.type';
|
5
|
-
export type { GridColProps, GridProps } from './grid.props';
|
package/helpers/common.d.ts
DELETED
@@ -1,7 +0,0 @@
|
|
1
|
-
import type { NzFormlyFieldConfig, ControlOptions } from 'ngx-formly-zorro-antd/common';
|
2
|
-
export declare function field<T = NzFormlyFieldConfig>(key: string, type?: string, label?: string, props?: ControlOptions, otherOptions?: NzFormlyFieldConfig): T;
|
3
|
-
export declare function fieldSingle<T = NzFormlyFieldConfig>(key: string, type?: string, label?: string, options?: NzFormlyFieldConfig<ControlOptions>): T;
|
4
|
-
export declare function requiredField<T = NzFormlyFieldConfig>(key: string, type?: string, label?: string, props?: ControlOptions, otherOptions?: NzFormlyFieldConfig): T;
|
5
|
-
export declare function requiredFieldSingle<T = NzFormlyFieldConfig>(key: string, type?: string, label?: string, options?: NzFormlyFieldConfig<ControlOptions>): T;
|
6
|
-
export declare function hide(key: string, type?: string, options?: NzFormlyFieldConfig): NzFormlyFieldConfig;
|
7
|
-
export declare function hidden(key: string, type?: string, options?: NzFormlyFieldConfig): NzFormlyFieldConfig;
|