ngx-formly-zorro-antd 17.3.3 → 17.3.5
Sign up to get free protection for your applications and to get access to all the features.
- package/esm2022/helpers/common.mjs +2 -2
- package/esm2022/select/select.props.mjs +1 -1
- package/esm2022/select/select.type.mjs +13 -31
- package/fesm2022/ngx-formly-zorro-antd-helpers.mjs +1 -1
- package/fesm2022/ngx-formly-zorro-antd-helpers.mjs.map +1 -1
- package/fesm2022/ngx-formly-zorro-antd-select.mjs +12 -30
- package/fesm2022/ngx-formly-zorro-antd-select.mjs.map +1 -1
- package/package.json +18 -18
- package/select/select.props.d.ts +4 -0
@@ -1,7 +1,7 @@
|
|
1
1
|
export function field(key, type = 'input', label = '', props = {}, otherOptions = {}) {
|
2
2
|
const returner = { key, type };
|
3
3
|
returner.props = Object.assign({ label, ...props });
|
4
|
-
const className = `formly-${key}
|
4
|
+
const className = key ? `formly-${key}` : '';
|
5
5
|
otherOptions.className = otherOptions.className ? `${otherOptions.className} ${className}` : className;
|
6
6
|
return { ...returner, ...otherOptions };
|
7
7
|
}
|
@@ -11,4 +11,4 @@ export function requiredField(key, type = 'input', label = '', props = {}, other
|
|
11
11
|
export function hidden(key) {
|
12
12
|
return { key, type: 'input', hide: true };
|
13
13
|
}
|
14
|
-
//# sourceMappingURL=data:application/json;base64,
|
14
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY29tbW9uLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vcGFja2FnZXMvZm9ybWx5YW50ZC9oZWxwZXJzL2NvbW1vbi50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFHQSxNQUFNLFVBQVUsS0FBSyxDQUNuQixHQUFXLEVBQ1gsSUFBSSxHQUFHLE9BQU8sRUFDZCxRQUFnQixFQUFFLEVBQ2xCLFFBRUksRUFBRSxFQUNOLGVBQW9DLEVBQUU7SUFFdEMsTUFBTSxRQUFRLEdBQXdCLEVBQUUsR0FB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ljJblm57osINcbiAgICovXG4gIG1vZGVsQ2hhbmdlPzogRm9ybWx5QXR0cmlidXRlRXZlbnQ7XG5cbiAgLyoqXG4gICAqIOS4i+aLieWIl+ihqOa7muWKqOWIsOW6lemDqOeahOWbnuiwg1xuICAgKi9cbiAgc2Nyb2xsVG9Cb3R0b20/OiBGb3JtbHlBdHRyaWJ1dGVFdmVudDtcblxuICAvKipcbiAgICog5paH5pys5qGG5YC85Y+Y5YyW5pe25Zue6LCDXG4gICAqL1xuICBvblNlYXJjaD86IEZvcm1seUF0dHJpYnV0ZUV2ZW50PHN0cmluZz47XG59XG4iXX0=
|
@@ -72,31 +72,22 @@ export class FormlyFieldSelect extends FieldType {
|
|
72
72
|
[nzOptionOverflowSize]="props['optionOverflowSize']!"
|
73
73
|
[formControl]="formControl"
|
74
74
|
[formlyAttributes]="field"
|
75
|
-
(ngModelChange)="props
|
75
|
+
(ngModelChange)="props['modelChange']?.(field, $event)"
|
76
76
|
(nzBlur)="props.blur?.(field, $event)"
|
77
77
|
(nzFocus)="props.focus?.(field, $event)"
|
78
|
-
(nzOpenChange)="props['openChange']
|
79
|
-
(nzScrollToBottom)="props['scrollToBottom']
|
80
|
-
(nzOnSearch)="props['onSearch']
|
78
|
+
(nzOpenChange)="props['openChange']?.(field, $event)"
|
79
|
+
(nzScrollToBottom)="props['scrollToBottom']?.(field, $event)"
|
80
|
+
(nzOnSearch)="props['onSearch']?.(field, $event)"
|
81
81
|
>
|
82
82
|
@for (item of to.options | formlySelectOptions: field | async; track item) {
|
83
83
|
@if (item.group) {
|
84
84
|
<nz-option-group [nzLabel]="item.label">
|
85
85
|
@for (child of item.group; track child) {
|
86
|
-
<nz-option
|
87
|
-
[nzValue]="child.value"
|
88
|
-
[nzDisabled]="child.disabled"
|
89
|
-
[nzLabel]="child.label"
|
90
|
-
>
|
91
|
-
</nz-option>
|
86
|
+
<nz-option [nzValue]="child.value" [nzDisabled]="child.disabled" [nzLabel]="child.label"> </nz-option>
|
92
87
|
}
|
93
88
|
</nz-option-group>
|
94
89
|
} @else {
|
95
|
-
<nz-option
|
96
|
-
[nzValue]="item.value"
|
97
|
-
[nzDisabled]="item.disabled"
|
98
|
-
[nzLabel]="item.label"
|
99
|
-
></nz-option>
|
90
|
+
<nz-option [nzValue]="item.value" [nzDisabled]="item.disabled" [nzLabel]="item.label"></nz-option>
|
100
91
|
}
|
101
92
|
}
|
102
93
|
</nz-select>
|
@@ -139,31 +130,22 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.9", ngImpor
|
|
139
130
|
[nzOptionOverflowSize]="props['optionOverflowSize']!"
|
140
131
|
[formControl]="formControl"
|
141
132
|
[formlyAttributes]="field"
|
142
|
-
(ngModelChange)="props
|
133
|
+
(ngModelChange)="props['modelChange']?.(field, $event)"
|
143
134
|
(nzBlur)="props.blur?.(field, $event)"
|
144
135
|
(nzFocus)="props.focus?.(field, $event)"
|
145
|
-
(nzOpenChange)="props['openChange']
|
146
|
-
(nzScrollToBottom)="props['scrollToBottom']
|
147
|
-
(nzOnSearch)="props['onSearch']
|
136
|
+
(nzOpenChange)="props['openChange']?.(field, $event)"
|
137
|
+
(nzScrollToBottom)="props['scrollToBottom']?.(field, $event)"
|
138
|
+
(nzOnSearch)="props['onSearch']?.(field, $event)"
|
148
139
|
>
|
149
140
|
@for (item of to.options | formlySelectOptions: field | async; track item) {
|
150
141
|
@if (item.group) {
|
151
142
|
<nz-option-group [nzLabel]="item.label">
|
152
143
|
@for (child of item.group; track child) {
|
153
|
-
<nz-option
|
154
|
-
[nzValue]="child.value"
|
155
|
-
[nzDisabled]="child.disabled"
|
156
|
-
[nzLabel]="child.label"
|
157
|
-
>
|
158
|
-
</nz-option>
|
144
|
+
<nz-option [nzValue]="child.value" [nzDisabled]="child.disabled" [nzLabel]="child.label"> </nz-option>
|
159
145
|
}
|
160
146
|
</nz-option-group>
|
161
147
|
} @else {
|
162
|
-
<nz-option
|
163
|
-
[nzValue]="item.value"
|
164
|
-
[nzDisabled]="item.disabled"
|
165
|
-
[nzLabel]="item.label"
|
166
|
-
></nz-option>
|
148
|
+
<nz-option [nzValue]="item.value" [nzDisabled]="item.disabled" [nzLabel]="item.label"></nz-option>
|
167
149
|
}
|
168
150
|
}
|
169
151
|
</nz-select>
|
@@ -174,4 +156,4 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.9", ngImpor
|
|
174
156
|
type: ViewChild,
|
175
157
|
args: ['select', { static: true }]
|
176
158
|
}] } });
|
177
|
-
//# sourceMappingURL=data:application/json;base64,
|
159
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic2VsZWN0LnR5cGUuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi9wYWNrYWdlcy9mb3JtbHlhbnRkL3NlbGVjdC9zcmMvc2VsZWN0LnR5cGUudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsT0FBTyxFQUFFLFNBQVMsRUFBUSx1QkFBdUIsRUFBRSxTQUFTLEVBQVUsTUFBTSxlQUFlLENBQUM7QUFDNUYsT0FBTyxFQUFFLFNBQVMsRUFBbUIsTUFBTSxrQkFBa0IsQ0FBQztBQUU5RCxPQUFPLEVBQUUsaUJBQWlCLEVBQUUsTUFBTSxzQkFBc0IsQ0FBQzs7Ozs7OztBQWlFekQsTUFBTSxPQUFPLGlCQUFrQixTQUFRLFNBQTBCO0lBekRqRTs7UUEwRFcsbUJBQWMsR0FBRztZQUN4QixLQUFLLEVBQUU7Z0JBQ0wsV0FBVyxFQUFFLENBQUMsRUFBYSxFQUFFLEVBQWEsRUFBRSxFQUFFLENBQUMsRUFBRSxLQUFLLEVBQUU7Z0JBQ3hELG9CQUFvQixFQUFFLElBQUk7Z0JBQzFCLFVBQVUsRUFBRSxLQUFLO2dCQUNqQixRQUFRLEVBQUUsS0FBSztnQkFDZixJQUFJLEVBQUUsS0FBSztnQk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56U2FmZUFueSwgbzI6IE56U2FmZUFueSkgPT4gbzEgPT09IG8yLFxuICAgICAgYXV0b0NsZWFyU2VhcmNoVmFsdWU6IHRydWUsXG4gICAgICBhbGxvd0NsZWFyOiBmYWxzZSxcbiAgICAgIGJhY2tkcm9wOiBmYWxzZSxcbiAgICAgIG9wZW46IGZhbHNlLFxuICAgICAgZHJvcGRvd25NYXRjaFNlbGVjdFdpZHRoOiB0cnVlLFxuICAgICAgc2VydmVyU2VhcmNoOiBmYWxzZSxcbiAgICAgIHNlbGVjdE9uVGFiOiBmYWxzZSxcbiAgICAgIG1heE11bHRpcGxlQ291bnQ6IEluZmluaXR5LFxuICAgICAgbW9kZTogJ2RlZmF1bHQnIGFzIGNvbnN0LFxuICAgICAgc2hvd1NlYXJjaDogZmFsc2UsXG4gICAgICBzaXplOiAnZGVmYXVsdCcgYXMgY29uc3QsXG4gICAgICBzdGF0dXM6ICcnIGFzIGNvbnN0LFxuICAgICAgdG9rZW5TZXBhcmF0b3JzOiBbXSxcbiAgICAgIG9wdGlvbnM6IFtdLFxuICAgICAgbG9hZGluZzogZmFsc2UsXG4gICAgICBvcHRpb25IZWlnaHRQeDogMzIsXG4gICAgICBvcHRpb25PdmVyZmxvd1NpemU6IDhcbiAgICB9XG4gIH07XG4gIEBWaWV3Q2hpbGQoJ3NlbGVjdCcsIHsgc3RhdGljOiB0cnVlIH0pIHNlbGVjdCE6IE56U2VsZWN0Q29tcG9uZW50O1xuICBuZ09uSW5pdCgpOiB2b2lkIHtcbiAgICBpZiAodGhpcy5wcm9wc1snZmlsdGVyT3B0aW9uJ10gaW5zdGFuY2VvZiBGdW5jdGlvbikge1xuICAgICAgdGhpcy5zZWxlY3QubnpGaWx0ZXJPcHRpb24gPSB0aGlzLnByb3BzWydmaWx0ZXJPcHRpb24nXSBhcyBOelNhZmVBbnk7XG4gICAgfVxuICB9XG59XG4iXX0=
|
@@ -1,7 +1,7 @@
|
|
1
1
|
function field(key, type = 'input', label = '', props = {}, otherOptions = {}) {
|
2
2
|
const returner = { key, type };
|
3
3
|
returner.props = Object.assign({ label, ...props });
|
4
|
-
const className = `formly-${key}
|
4
|
+
const className = key ? `formly-${key}` : '';
|
5
5
|
otherOptions.className = otherOptions.className ? `${otherOptions.className} ${className}` : className;
|
6
6
|
return { ...returner, ...otherOptions };
|
7
7
|
}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"ngx-formly-zorro-antd-helpers.mjs","sources":["../../../../packages/formlyantd/helpers/common.ts","../../../../packages/formlyantd/helpers/formly.ts","../../../../packages/formlyantd/helpers/public_api.ts","../../../../packages/formlyantd/helpers/ngx-formly-zorro-antd-helpers.ts"],"sourcesContent":["import type { NzFormlyFieldConfig, ControlOptions } from 'ngx-formly-zorro-antd/common';\nimport type { NzSafeAny } from 'ng-zorro-antd/core/types';\n\nexport function field<T = NzFormlyFieldConfig>(\n key: string,\n type = 'input',\n label: string = '',\n props: ControlOptions & {\n [key: string]: NzSafeAny;\n } = {},\n otherOptions: NzFormlyFieldConfig = {}\n): T {\n const returner: NzFormlyFieldConfig = { key, type };\n returner.props = Object.assign({ label, ...props });\n\n const className = `formly-${key}`;\n otherOptions.className = otherOptions.className ? `${otherOptions.className} ${className}` : className;\n\n return { ...returner, ...otherOptions } as T;\n}\nexport function requiredField<T = NzFormlyFieldConfig>(\n key: string,\n type = 'input',\n label: string = '',\n props: ControlOptions & {\n [key: string]: NzSafeAny;\n } = {},\n otherOptions: NzFormlyFieldConfig = {}\n) {\n return field<T>(key, type, label, { ...props, required: true }, otherOptions);\n}\nexport function hidden(key: string): NzFormlyFieldConfig {\n return { key, type: 'input', hide: true };\n}\n","import { FormlyFieldConfig } from '@ngx-formly/core';\nimport { field, requiredField } from './common';\nimport type { FormlyButtonFieldConfig, ButtonProps } from 'ngx-formly-zorro-antd/button';\nimport type { FormlyButtonGroupFieldConfig, ButtonGroupProps } from 'ngx-formly-zorro-antd/button-group';\nimport type { FormlyCardFieldConfig, CardProps } from 'ngx-formly-zorro-antd/card';\nimport type { FormlyCascaderFieldConfig, CascaderProps } from 'ngx-formly-zorro-antd/cascader';\nimport type { FormlyCheckboxFieldConfig, CheckboxProps } from 'ngx-formly-zorro-antd/checkbox';\nimport type { FormlyDatepickerFieldConfig, DatepickerProps } from 'ngx-formly-zorro-antd/datepicker';\nimport type { FormlyFlexFieldConfig, FlexProps } from 'ngx-formly-zorro-antd/flex';\nimport type { FormlyGridFieldConfig, GridColProps } from 'ngx-formly-zorro-antd/grid';\nimport type { FormlyInputFieldConfig, FormlyInputProps } from 'ngx-formly-zorro-antd/input';\nimport type { FormlyInputGroupFieldConfig, FormlyInputGroupProps } from 'ngx-formly-zorro-antd/input-group';\nimport type { FormlyInputNumberFieldConfig, InputNumberProps } from 'ngx-formly-zorro-antd/input-number';\nimport type { FormlyRadioFieldConfig, RadioProps } from 'ngx-formly-zorro-antd/radio';\nimport type { FormlyRateFieldConfig, RateProps } from 'ngx-formly-zorro-antd/rate';\nimport type { FormlyRefTemplateFieldConfig, RefTemplateProps } from 'ngx-formly-zorro-antd/ref-template';\nimport type { FormlySelectFieldConfig, SelectProps } from 'ngx-formly-zorro-antd/select';\nimport type { FormlySlideFieldConfig, SlideProps } from 'ngx-formly-zorro-antd/slider';\nimport type { FormlySpaceFieldConfig, SpaceProps } from 'ngx-formly-zorro-antd/space';\nimport type { FormlySwitchFieldConfig, SwitchProps } from 'ngx-formly-zorro-antd/switch';\nimport type { FormlyTextValueFieldConfig, TextValueProps } from 'ngx-formly-zorro-antd/text-value';\nimport type { FormlyTextareaFieldConfig, TextareaProps } from 'ngx-formly-zorro-antd/textarea';\nimport type { FormlyTimepickerFieldConfig, TimepickerProps } from 'ngx-formly-zorro-antd/timepicker';\nimport type { FormlyTransferFieldConfig, TransferProps } from 'ngx-formly-zorro-antd/transfer';\nimport type { FormlyTreeSelectFieldConfig, TreeSelectProps } from 'ngx-formly-zorro-antd/tree-select';\nimport type { FormlyUploadFieldConfig, UploadProps } from 'ngx-formly-zorro-antd/upload';\n\nexport function treeSelect(\n key: string,\n label: string = '',\n props: TreeSelectProps = {},\n otherOptions: FormlyFieldConfig = {}\n): FormlyTreeSelectFieldConfig {\n return field<FormlyTreeSelectFieldConfig>(key, 'tree-select', label, props, otherOptions);\n}\nexport function requiredTreeSelect(\n key: string,\n label: string = '',\n props: TreeSelectProps = {},\n otherOptions: FormlyFieldConfig = {}\n): FormlyTreeSelectFieldConfig {\n return requiredField<FormlyTreeSelectFieldConfig>(key, 'tree-select', label, props, otherOptions);\n}\nexport function transfer(\n key: string,\n label: string = '',\n props: TransferProps = {},\n otherOptions: FormlyFieldConfig = {}\n): FormlyTransferFieldConfig {\n return field<FormlyTransferFieldConfig>(key, 'transfer', label, props, otherOptions);\n}\nexport function requiredTransfer(\n key: string,\n label: string = '',\n props: TransferProps = {},\n otherOptions: FormlyFieldConfig = {}\n): FormlyTransferFieldConfig {\n return requiredField<FormlyTransferFieldConfig>(key, 'transfer', label, props, otherOptions);\n}\nexport function timepicker(\n key: string,\n label: string = '',\n props: TimepickerProps = {},\n otherOptions: FormlyFieldConfig = {}\n): FormlyTimepickerFieldConfig {\n return field<FormlyTimepickerFieldConfig>(key, 'timepicker', label, props, otherOptions);\n}\nexport function requiredTimepicker(\n key: string,\n label: string = '',\n props: TimepickerProps = {},\n otherOptions: FormlyFieldConfig = {}\n): FormlyTimepickerFieldConfig {\n return requiredField<FormlyTimepickerFieldConfig>(key, 'timepicker', label, props, otherOptions);\n}\nexport function input(\n key: string,\n label: string = '',\n props: FormlyInputProps = {},\n otherOptions: FormlyFieldConfig = {}\n): FormlyInputFieldConfig {\n return field<FormlyInputFieldConfig>(key, 'input', label, props, otherOptions);\n}\nexport function requiredInput(\n key: string,\n label: string = '',\n props: FormlyInputProps = {},\n otherOptions: FormlyFieldConfig = {}\n): FormlyInputFieldConfig {\n return requiredField<FormlyInputFieldConfig>(key, 'input', label, props, otherOptions);\n}\nexport function textArea(\n key: string,\n label: string = '',\n props: TextareaProps = {},\n otherOptions: FormlyFieldConfig = {}\n): FormlyTextareaFieldConfig {\n return field<FormlyTextareaFieldConfig>(key, 'textarea', label, props, otherOptions);\n}\nexport function requiredTextArea(\n key: string,\n label: string = '',\n props: TextareaProps = {},\n otherOptions: FormlyFieldConfig = {}\n): FormlyTextareaFieldConfig {\n return requiredField<FormlyTextareaFieldConfig>(key, 'textarea', label, props, otherOptions);\n}\nexport function checkbox(\n key: string,\n label: string = '',\n props: CheckboxProps = {},\n otherOptions: FormlyFieldConfig = {}\n): FormlyCheckboxFieldConfig {\n return field<FormlyCheckboxFieldConfig>(key, 'checkbox', label, props, otherOptions);\n}\nexport function requiredCheckbox(\n key: string,\n label: string = '',\n props: CheckboxProps = {},\n otherOptions: FormlyFieldConfig = {}\n): FormlyCheckboxFieldConfig {\n return requiredField<FormlyCheckboxFieldConfig>(key, 'checkbox', label, props, otherOptions);\n}\nexport function cascader(\n key: string,\n label: string = '',\n props: CascaderProps = {},\n otherOptions: FormlyFieldConfig = {}\n): FormlyCascaderFieldConfig {\n return field<FormlyCascaderFieldConfig>(key, 'cascader', label, props, otherOptions);\n}\nexport function requiredCascader(\n key: string,\n label: string = '',\n props: CascaderProps = {},\n otherOptions: FormlyFieldConfig = {}\n): FormlyCascaderFieldConfig {\n return requiredField<FormlyCascaderFieldConfig>(key, 'cascader', label, props, otherOptions);\n}\nexport function datepicker(\n key: string,\n label: string = '',\n props: DatepickerProps = {},\n otherOptions: FormlyFieldConfig = {}\n): FormlyDatepickerFieldConfig {\n return field<FormlyDatepickerFieldConfig>(key, 'datepicker', label, props, otherOptions);\n}\nexport function requiredDatepicker(\n key: string,\n label: string = '',\n props: DatepickerProps = {},\n otherOptions: FormlyFieldConfig = {}\n): FormlyDatepickerFieldConfig {\n return requiredField<FormlyDatepickerFieldConfig>(key, 'datepicker', label, props, otherOptions);\n}\nexport function number(\n key: string,\n label: string = '',\n props: InputNumberProps = {},\n otherOptions: FormlyFieldConfig = {}\n): FormlyInputNumberFieldConfig {\n return field<FormlyInputNumberFieldConfig>(key, 'number', label, props, otherOptions);\n}\nexport function requiredNumber(\n key: string,\n label: string = '',\n props: InputNumberProps = {},\n otherOptions: FormlyFieldConfig = {}\n): FormlyInputNumberFieldConfig {\n return requiredField<FormlyInputNumberFieldConfig>(key, 'number', label, props, otherOptions);\n}\n/** 选择器 */\nexport function select(\n key: string,\n label: string = '',\n props: SelectProps = {},\n otherOptions: FormlyFieldConfig = {}\n): FormlySelectFieldConfig {\n return field<FormlySelectFieldConfig>(key, 'select', label, props, otherOptions);\n}\n/** 选择器 */\nexport function requiredSelect(\n key: string,\n label: string = '',\n props: SelectProps = {},\n otherOptions: FormlyFieldConfig = {}\n): FormlySelectFieldConfig {\n return requiredField<FormlySelectFieldConfig>(key, 'select', label, props, otherOptions);\n}\n/** 上传 */\nexport function upload(\n key: string,\n label: string = '',\n props: UploadProps = { fileList: [] },\n otherOptions: FormlyFieldConfig = {}\n): FormlyUploadFieldConfig {\n return field<FormlyUploadFieldConfig>(key, 'upload', label, props, otherOptions);\n}\n/** 上传 */\nexport function requiredUpload(\n key: string,\n label: string = '',\n props: UploadProps = { fileList: [] },\n otherOptions: FormlyFieldConfig = {}\n): FormlyUploadFieldConfig {\n return requiredField<FormlyUploadFieldConfig>(key, 'upload', label, props, otherOptions);\n}\n/** 单选框 */\nexport function radio(\n key: string,\n label: string = '',\n props: RadioProps = {},\n otherOptions: FormlyFieldConfig = {}\n): FormlyRadioFieldConfig {\n return field<FormlyRadioFieldConfig>(key, 'radio', label, props, otherOptions);\n}\n/** 单选框 */\nexport function requiredRadio(\n key: string,\n label: string = '',\n props: RadioProps = {},\n otherOptions: FormlyFieldConfig = {}\n): FormlyRadioFieldConfig {\n return requiredField<FormlyRadioFieldConfig>(key, 'radio', label, props, otherOptions);\n}\n/** 评分 */\nexport function rate(\n key: string,\n label: string = '',\n props: RateProps = {},\n otherOptions: FormlyFieldConfig = {}\n): FormlyRateFieldConfig {\n return field<FormlyRateFieldConfig>(key, 'rate', label, props, otherOptions);\n}\n/** 评分 */\nexport function requiredRate(\n key: string,\n label: string = '',\n props: RateProps = {},\n otherOptions: FormlyFieldConfig = {}\n): FormlyRateFieldConfig {\n return requiredField<FormlyRateFieldConfig>(key, 'rate', label, props, otherOptions);\n}\n/** 开关 */\nexport function requiredSwitch(\n key: string,\n label: string = '',\n props: SwitchProps = {},\n otherOptions: FormlyFieldConfig = {}\n): FormlySwitchFieldConfig {\n return requiredField<FormlySwitchFieldConfig>(key, 'switch', label, props, otherOptions);\n}\n/** 滑动输入条 */\nexport function slider(\n key: string,\n label: string = '',\n props: SlideProps = {},\n otherOptions: FormlyFieldConfig = {}\n): FormlySlideFieldConfig {\n return field<FormlySlideFieldConfig>(key, 'slider', label, props, otherOptions);\n}\n/** 滑动输入条 */\nexport function requiredSlide(\n key: string,\n label: string = '',\n props: SlideProps = {},\n otherOptions: FormlyFieldConfig = {}\n): FormlySlideFieldConfig {\n return requiredField<FormlySlideFieldConfig>(key, 'slider', label, props, otherOptions);\n}\n\n/** 文本显示 */\nexport function text(props: TextValueProps = {}, otherOptions: FormlyFieldConfig = {}): FormlyTextValueFieldConfig {\n return field<FormlyTextValueFieldConfig>('', 'text', '', props, otherOptions);\n}\n/** 输入组 */\nexport function inputGroup(\n props: FormlyInputGroupProps = {},\n otherOptions: FormlyFieldConfig = {}\n): FormlyInputGroupFieldConfig {\n return field<FormlyInputGroupFieldConfig>('', 'input-group', '', props, otherOptions);\n}\n/** 间距 */\nexport function space(props: SpaceProps = {}, otherOptions: FormlyFieldConfig = {}): FormlySpaceFieldConfig {\n return field<FormlySpaceFieldConfig>('', 'space', '', props, otherOptions);\n}\n/** 模板 */\nexport function ref(props: RefTemplateProps = {}, otherOptions: FormlyFieldConfig = {}): FormlyRefTemplateFieldConfig {\n return field<FormlyRefTemplateFieldConfig>('', 'ref-template', '', props, otherOptions);\n}\n/** 栅格 */\nexport function grid(props: GridColProps = {}, otherOptions: FormlyFieldConfig = {}): FormlyGridFieldConfig {\n return field<FormlyGridFieldConfig>('', 'grid', '', props, otherOptions);\n}\n/** 弹性布局 */\nexport function flex(props: FlexProps = {}, otherOptions: FormlyFieldConfig = {}): FormlyFlexFieldConfig {\n return field<FormlyFlexFieldConfig>('', 'flex', '', props, otherOptions);\n}\n/** 卡片 */\nexport function card(props: CardProps = {}, otherOptions: FormlyFieldConfig = {}): FormlyCardFieldConfig {\n return field<FormlyCardFieldConfig>('', 'card', '', props, otherOptions);\n}\n/** 按钮组 */\nexport function buttonGroup(\n props: ButtonGroupProps = {},\n otherOptions: FormlyFieldConfig = {}\n): FormlyButtonGroupFieldConfig {\n return field<FormlyButtonGroupFieldConfig>('', 'button-group', '', props, otherOptions);\n}\nexport function button(\n text: string = '',\n props: ButtonProps = {},\n otherOptions: FormlyFieldConfig = {}\n): FormlyButtonFieldConfig {\n return field<FormlyButtonFieldConfig>('', 'button', '', { text, ...props }, otherOptions);\n}\nexport function submit(\n text: string = '',\n props: ButtonProps = {},\n otherOptions: FormlyFieldConfig = {}\n): FormlyButtonFieldConfig {\n return field<FormlyButtonFieldConfig>('', 'submit', '', { text, ...props }, otherOptions);\n}\nexport function reset(\n text: string = '',\n props: ButtonProps = {},\n otherOptions: FormlyFieldConfig = {}\n): FormlyButtonFieldConfig {\n return field<FormlyButtonFieldConfig>('', 'reset', '', { text, ...props }, otherOptions);\n}\n","import { field, requiredField, hidden } from './common';\nimport { FormlyFieldConfig } from '@ngx-formly/core';\nimport {\n input,\n requiredInput,\n textArea,\n requiredTextArea,\n checkbox,\n requiredCheckbox,\n cascader,\n requiredCascader,\n number,\n requiredNumber,\n radio,\n requiredRadio,\n rate,\n requiredRate,\n datepicker,\n requiredDatepicker,\n requiredSwitch,\n upload,\n requiredUpload,\n slider,\n requiredSlide,\n select,\n requiredSelect,\n treeSelect,\n requiredTreeSelect,\n transfer,\n requiredTransfer,\n timepicker,\n requiredTimepicker,\n text,\n button,\n buttonGroup,\n submit,\n reset,\n space,\n ref,\n grid,\n flex,\n card,\n inputGroup\n} from './formly';\nimport type { FormlySwitchFieldConfig, SwitchProps } from 'ngx-formly-zorro-antd/switch';\n\nexport const formly = {\n field,\n requiredField,\n hidden,\n input,\n requiredInput,\n textArea,\n requiredTextArea,\n checkbox,\n requiredCheckbox,\n cascader,\n requiredCascader,\n number,\n requiredNumber,\n radio,\n requiredRadio,\n rate,\n requiredRate,\n datepicker,\n requiredDatepicker,\n /** 开关 */\n switch: (key: string, label: string = '', props: SwitchProps = {}, otherOptions: FormlyFieldConfig = {}) => {\n return field<FormlySwitchFieldConfig>(key, 'switch', label, props, otherOptions);\n },\n requiredSwitch,\n upload,\n requiredUpload,\n slider,\n requiredSlide,\n select,\n requiredSelect,\n treeSelect,\n requiredTreeSelect,\n transfer,\n requiredTransfer,\n timepicker,\n requiredTimepicker,\n text,\n space,\n inputGroup,\n ref,\n grid,\n flex,\n card,\n button,\n buttonGroup,\n submit,\n reset\n};\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public_api';\n"],"names":[],"mappings":"SAGgB,KAAK,CACnB,GAAW,EACX,IAAI,GAAG,OAAO,EACd,KAAA,GAAgB,EAAE,EAClB,KAAA,GAEI,EAAE,EACN,eAAoC,EAAE,EAAA;AAEtC,IAAA,MAAM,QAAQ,GAAwB,EAAE,GAAG,EAAE,IAAI,EAAE,CAAC;AACpD,IAAA,QAAQ,CAAC,KAAK,GAAG,MAAM,CAAC,MAAM,CAAC,EAAE,KAAK,EAAE,GAAG,KAAK,EAAE,CAAC,CAAC;AAEpD,IAAA,MAAM,SAAS,GAAG,CAAU,OAAA,EAAA,GAAG,EAAE,CAAC;IAClC,YAAY,CAAC,SAAS,GAAG,YAAY,CAAC,SAAS,GAAG,CAAA,EAAG,YAAY,CAAC,SAAS,IAAI,SAAS,CAAA,CAAE,GAAG,SAAS,CAAC;AAEvG,IAAA,OAAO,EAAE,GAAG,QAAQ,EAAE,GAAG,YAAY,EAAO,CAAC;AAC/C,CAAC;SACe,aAAa,CAC3B,GAAW,EACX,IAAI,GA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../../../../packages/formlyantd/helpers/formly.ts","../../../../packages/formlyantd/helpers/public_api.ts","../../../../packages/formlyantd/helpers/ngx-formly-zorro-antd-helpers.ts"],"sourcesContent":["import type { NzFormlyFieldConfig, ControlOptions } from 'ngx-formly-zorro-antd/common';\nimport type { NzSafeAny } from 'ng-zorro-antd/core/types';\n\nexport function field<T = NzFormlyFieldConfig>(\n key: string,\n type = 'input',\n label: string = '',\n props: ControlOptions & {\n [key: string]: NzSafeAny;\n } = {},\n otherOptions: NzFormlyFieldConfig = {}\n): T {\n const returner: NzFormlyFieldConfig = { key, type };\n returner.props = Object.assign({ label, ...props });\n\n const className = key ? `formly-${key}` : '';\n otherOptions.className = otherOptions.className ? `${otherOptions.className} ${className}` : className;\n\n return { ...returner, ...otherOptions } as T;\n}\nexport function requiredField<T = NzFormlyFieldConfig>(\n key: string,\n type = 'input',\n label: string = '',\n props: ControlOptions & {\n [key: string]: NzSafeAny;\n } = {},\n otherOptions: NzFormlyFieldConfig = {}\n) {\n return field<T>(key, type, label, { ...props, required: true }, otherOptions);\n}\nexport function hidden(key: string): NzFormlyFieldConfig {\n return { key, type: 'input', hide: true };\n}\n","import { FormlyFieldConfig } from '@ngx-formly/core';\nimport { field, requiredField } from './common';\nimport type { FormlyButtonFieldConfig, ButtonProps } from 'ngx-formly-zorro-antd/button';\nimport type { FormlyButtonGroupFieldConfig, ButtonGroupProps } from 'ngx-formly-zorro-antd/button-group';\nimport type { FormlyCardFieldConfig, CardProps } from 'ngx-formly-zorro-antd/card';\nimport type { FormlyCascaderFieldConfig, CascaderProps } from 'ngx-formly-zorro-antd/cascader';\nimport type { FormlyCheckboxFieldConfig, CheckboxProps } from 'ngx-formly-zorro-antd/checkbox';\nimport type { FormlyDatepickerFieldConfig, DatepickerProps } from 'ngx-formly-zorro-antd/datepicker';\nimport type { FormlyFlexFieldConfig, FlexProps } from 'ngx-formly-zorro-antd/flex';\nimport type { FormlyGridFieldConfig, GridColProps } from 'ngx-formly-zorro-antd/grid';\nimport type { FormlyInputFieldConfig, FormlyInputProps } from 'ngx-formly-zorro-antd/input';\nimport type { FormlyInputGroupFieldConfig, FormlyInputGroupProps } from 'ngx-formly-zorro-antd/input-group';\nimport type { FormlyInputNumberFieldConfig, InputNumberProps } from 'ngx-formly-zorro-antd/input-number';\nimport type { FormlyRadioFieldConfig, RadioProps } from 'ngx-formly-zorro-antd/radio';\nimport type { FormlyRateFieldConfig, RateProps } from 'ngx-formly-zorro-antd/rate';\nimport type { FormlyRefTemplateFieldConfig, RefTemplateProps } from 'ngx-formly-zorro-antd/ref-template';\nimport type { FormlySelectFieldConfig, SelectProps } from 'ngx-formly-zorro-antd/select';\nimport type { FormlySlideFieldConfig, SlideProps } from 'ngx-formly-zorro-antd/slider';\nimport type { FormlySpaceFieldConfig, SpaceProps } from 'ngx-formly-zorro-antd/space';\nimport type { FormlySwitchFieldConfig, SwitchProps } from 'ngx-formly-zorro-antd/switch';\nimport type { FormlyTextValueFieldConfig, TextValueProps } from 'ngx-formly-zorro-antd/text-value';\nimport type { FormlyTextareaFieldConfig, TextareaProps } from 'ngx-formly-zorro-antd/textarea';\nimport type { FormlyTimepickerFieldConfig, TimepickerProps } from 'ngx-formly-zorro-antd/timepicker';\nimport type { FormlyTransferFieldConfig, TransferProps } from 'ngx-formly-zorro-antd/transfer';\nimport type { FormlyTreeSelectFieldConfig, TreeSelectProps } from 'ngx-formly-zorro-antd/tree-select';\nimport type { FormlyUploadFieldConfig, UploadProps } from 'ngx-formly-zorro-antd/upload';\n\nexport function treeSelect(\n key: string,\n label: string = '',\n props: TreeSelectProps = {},\n otherOptions: FormlyFieldConfig = {}\n): FormlyTreeSelectFieldConfig {\n return field<FormlyTreeSelectFieldConfig>(key, 'tree-select', label, props, otherOptions);\n}\nexport function requiredTreeSelect(\n key: string,\n label: string = '',\n props: TreeSelectProps = {},\n otherOptions: FormlyFieldConfig = {}\n): FormlyTreeSelectFieldConfig {\n return requiredField<FormlyTreeSelectFieldConfig>(key, 'tree-select', label, props, otherOptions);\n}\nexport function transfer(\n key: string,\n label: string = '',\n props: TransferProps = {},\n otherOptions: FormlyFieldConfig = {}\n): FormlyTransferFieldConfig {\n return field<FormlyTransferFieldConfig>(key, 'transfer', label, props, otherOptions);\n}\nexport function requiredTransfer(\n key: string,\n label: string = '',\n props: TransferProps = {},\n otherOptions: FormlyFieldConfig = {}\n): FormlyTransferFieldConfig {\n return requiredField<FormlyTransferFieldConfig>(key, 'transfer', label, props, otherOptions);\n}\nexport function timepicker(\n key: string,\n label: string = '',\n props: TimepickerProps = {},\n otherOptions: FormlyFieldConfig = {}\n): FormlyTimepickerFieldConfig {\n return field<FormlyTimepickerFieldConfig>(key, 'timepicker', label, props, otherOptions);\n}\nexport function requiredTimepicker(\n key: string,\n label: string = '',\n props: TimepickerProps = {},\n otherOptions: FormlyFieldConfig = {}\n): FormlyTimepickerFieldConfig {\n return requiredField<FormlyTimepickerFieldConfig>(key, 'timepicker', label, props, otherOptions);\n}\nexport function input(\n key: string,\n label: string = '',\n props: FormlyInputProps = {},\n otherOptions: FormlyFieldConfig = {}\n): FormlyInputFieldConfig {\n return field<FormlyInputFieldConfig>(key, 'input', label, props, otherOptions);\n}\nexport function requiredInput(\n key: string,\n label: string = '',\n props: FormlyInputProps = {},\n otherOptions: FormlyFieldConfig = {}\n): FormlyInputFieldConfig {\n return requiredField<FormlyInputFieldConfig>(key, 'input', label, props, otherOptions);\n}\nexport function textArea(\n key: string,\n label: string = '',\n props: TextareaProps = {},\n otherOptions: FormlyFieldConfig = {}\n): FormlyTextareaFieldConfig {\n return field<FormlyTextareaFieldConfig>(key, 'textarea', label, props, otherOptions);\n}\nexport function requiredTextArea(\n key: string,\n label: string = '',\n props: TextareaProps = {},\n otherOptions: FormlyFieldConfig = {}\n): FormlyTextareaFieldConfig {\n return requiredField<FormlyTextareaFieldConfig>(key, 'textarea', label, props, otherOptions);\n}\nexport function checkbox(\n key: string,\n label: string = '',\n props: CheckboxProps = {},\n otherOptions: FormlyFieldConfig = {}\n): FormlyCheckboxFieldConfig {\n return field<FormlyCheckboxFieldConfig>(key, 'checkbox', label, props, otherOptions);\n}\nexport function requiredCheckbox(\n key: string,\n label: string = '',\n props: CheckboxProps = {},\n otherOptions: FormlyFieldConfig = {}\n): FormlyCheckboxFieldConfig {\n return requiredField<FormlyCheckboxFieldConfig>(key, 'checkbox', label, props, otherOptions);\n}\nexport function cascader(\n key: string,\n label: string = '',\n props: CascaderProps = {},\n otherOptions: FormlyFieldConfig = {}\n): FormlyCascaderFieldConfig {\n return field<FormlyCascaderFieldConfig>(key, 'cascader', label, props, otherOptions);\n}\nexport function requiredCascader(\n key: string,\n label: string = '',\n props: CascaderProps = {},\n otherOptions: FormlyFieldConfig = {}\n): FormlyCascaderFieldConfig {\n return requiredField<FormlyCascaderFieldConfig>(key, 'cascader', label, props, otherOptions);\n}\nexport function datepicker(\n key: string,\n label: string = '',\n props: DatepickerProps = {},\n otherOptions: FormlyFieldConfig = {}\n): FormlyDatepickerFieldConfig {\n return field<FormlyDatepickerFieldConfig>(key, 'datepicker', label, props, otherOptions);\n}\nexport function requiredDatepicker(\n key: string,\n label: string = '',\n props: DatepickerProps = {},\n otherOptions: FormlyFieldConfig = {}\n): FormlyDatepickerFieldConfig {\n return requiredField<FormlyDatepickerFieldConfig>(key, 'datepicker', label, props, otherOptions);\n}\nexport function number(\n key: string,\n label: string = '',\n props: InputNumberProps = {},\n otherOptions: FormlyFieldConfig = {}\n): FormlyInputNumberFieldConfig {\n return field<FormlyInputNumberFieldConfig>(key, 'number', label, props, otherOptions);\n}\nexport function requiredNumber(\n key: string,\n label: string = '',\n props: InputNumberProps = {},\n otherOptions: FormlyFieldConfig = {}\n): FormlyInputNumberFieldConfig {\n return requiredField<FormlyInputNumberFieldConfig>(key, 'number', label, props, otherOptions);\n}\n/** 选择器 */\nexport function select(\n key: string,\n label: string = '',\n props: SelectProps = {},\n otherOptions: FormlyFieldConfig = {}\n): FormlySelectFieldConfig {\n return field<FormlySelectFieldConfig>(key, 'select', label, props, otherOptions);\n}\n/** 选择器 */\nexport function requiredSelect(\n key: string,\n label: string = '',\n props: SelectProps = {},\n otherOptions: FormlyFieldConfig = {}\n): FormlySelectFieldConfig {\n return requiredField<FormlySelectFieldConfig>(key, 'select', label, props, otherOptions);\n}\n/** 上传 */\nexport function upload(\n key: string,\n label: string = '',\n props: UploadProps = { fileList: [] },\n otherOptions: FormlyFieldConfig = {}\n): FormlyUploadFieldConfig {\n return field<FormlyUploadFieldConfig>(key, 'upload', label, props, otherOptions);\n}\n/** 上传 */\nexport function requiredUpload(\n key: string,\n label: string = '',\n props: UploadProps = { fileList: [] },\n otherOptions: FormlyFieldConfig = {}\n): FormlyUploadFieldConfig {\n return requiredField<FormlyUploadFieldConfig>(key, 'upload', label, props, otherOptions);\n}\n/** 单选框 */\nexport function radio(\n key: string,\n label: string = '',\n props: RadioProps = {},\n otherOptions: FormlyFieldConfig = {}\n): FormlyRadioFieldConfig {\n return field<FormlyRadioFieldConfig>(key, 'radio', label, props, otherOptions);\n}\n/** 单选框 */\nexport function requiredRadio(\n key: string,\n label: string = '',\n props: RadioProps = {},\n otherOptions: FormlyFieldConfig = {}\n): FormlyRadioFieldConfig {\n return requiredField<FormlyRadioFieldConfig>(key, 'radio', label, props, otherOptions);\n}\n/** 评分 */\nexport function rate(\n key: string,\n label: string = '',\n props: RateProps = {},\n otherOptions: FormlyFieldConfig = {}\n): FormlyRateFieldConfig {\n return field<FormlyRateFieldConfig>(key, 'rate', label, props, otherOptions);\n}\n/** 评分 */\nexport function requiredRate(\n key: string,\n label: string = '',\n props: RateProps = {},\n otherOptions: FormlyFieldConfig = {}\n): FormlyRateFieldConfig {\n return requiredField<FormlyRateFieldConfig>(key, 'rate', label, props, otherOptions);\n}\n/** 开关 */\nexport function requiredSwitch(\n key: string,\n label: string = '',\n props: SwitchProps = {},\n otherOptions: FormlyFieldConfig = {}\n): FormlySwitchFieldConfig {\n return requiredField<FormlySwitchFieldConfig>(key, 'switch', label, props, otherOptions);\n}\n/** 滑动输入条 */\nexport function slider(\n key: string,\n label: string = '',\n props: SlideProps = {},\n otherOptions: FormlyFieldConfig = {}\n): FormlySlideFieldConfig {\n return field<FormlySlideFieldConfig>(key, 'slider', label, props, otherOptions);\n}\n/** 滑动输入条 */\nexport function requiredSlide(\n key: string,\n label: string = '',\n props: SlideProps = {},\n otherOptions: FormlyFieldConfig = {}\n): FormlySlideFieldConfig {\n return requiredField<FormlySlideFieldConfig>(key, 'slider', label, props, otherOptions);\n}\n\n/** 文本显示 */\nexport function text(props: TextValueProps = {}, otherOptions: FormlyFieldConfig = {}): FormlyTextValueFieldConfig {\n return field<FormlyTextValueFieldConfig>('', 'text', '', props, otherOptions);\n}\n/** 输入组 */\nexport function inputGroup(\n props: FormlyInputGroupProps = {},\n otherOptions: FormlyFieldConfig = {}\n): FormlyInputGroupFieldConfig {\n return field<FormlyInputGroupFieldConfig>('', 'input-group', '', props, otherOptions);\n}\n/** 间距 */\nexport function space(props: SpaceProps = {}, otherOptions: FormlyFieldConfig = {}): FormlySpaceFieldConfig {\n return field<FormlySpaceFieldConfig>('', 'space', '', props, otherOptions);\n}\n/** 模板 */\nexport function ref(props: RefTemplateProps = {}, otherOptions: FormlyFieldConfig = {}): FormlyRefTemplateFieldConfig {\n return field<FormlyRefTemplateFieldConfig>('', 'ref-template', '', props, otherOptions);\n}\n/** 栅格 */\nexport function grid(props: GridColProps = {}, otherOptions: FormlyFieldConfig = {}): FormlyGridFieldConfig {\n return field<FormlyGridFieldConfig>('', 'grid', '', props, otherOptions);\n}\n/** 弹性布局 */\nexport function flex(props: FlexProps = {}, otherOptions: FormlyFieldConfig = {}): FormlyFlexFieldConfig {\n return field<FormlyFlexFieldConfig>('', 'flex', '', props, otherOptions);\n}\n/** 卡片 */\nexport function card(props: CardProps = {}, otherOptions: FormlyFieldConfig = {}): FormlyCardFieldConfig {\n return field<FormlyCardFieldConfig>('', 'card', '', props, otherOptions);\n}\n/** 按钮组 */\nexport function buttonGroup(\n props: ButtonGroupProps = {},\n otherOptions: FormlyFieldConfig = {}\n): FormlyButtonGroupFieldConfig {\n return field<FormlyButtonGroupFieldConfig>('', 'button-group', '', props, otherOptions);\n}\nexport function button(\n text: string = '',\n props: ButtonProps = {},\n otherOptions: FormlyFieldConfig = {}\n): FormlyButtonFieldConfig {\n return field<FormlyButtonFieldConfig>('', 'button', '', { text, ...props }, otherOptions);\n}\nexport function submit(\n text: string = '',\n props: ButtonProps = {},\n otherOptions: FormlyFieldConfig = {}\n): FormlyButtonFieldConfig {\n return field<FormlyButtonFieldConfig>('', 'submit', '', { text, ...props }, otherOptions);\n}\nexport function reset(\n text: string = '',\n props: ButtonProps = {},\n otherOptions: FormlyFieldConfig = {}\n): FormlyButtonFieldConfig {\n return field<FormlyButtonFieldConfig>('', 'reset', '', { text, ...props }, otherOptions);\n}\n","import { field, requiredField, hidden } from './common';\nimport { FormlyFieldConfig } from '@ngx-formly/core';\nimport {\n input,\n requiredInput,\n textArea,\n requiredTextArea,\n checkbox,\n requiredCheckbox,\n cascader,\n requiredCascader,\n number,\n requiredNumber,\n radio,\n requiredRadio,\n rate,\n requiredRate,\n datepicker,\n requiredDatepicker,\n requiredSwitch,\n upload,\n requiredUpload,\n slider,\n requiredSlide,\n select,\n requiredSelect,\n treeSelect,\n requiredTreeSelect,\n transfer,\n requiredTransfer,\n timepicker,\n requiredTimepicker,\n text,\n button,\n buttonGroup,\n submit,\n reset,\n space,\n ref,\n grid,\n flex,\n card,\n inputGroup\n} from './formly';\nimport type { FormlySwitchFieldConfig, SwitchProps } from 'ngx-formly-zorro-antd/switch';\n\nexport const formly = {\n field,\n requiredField,\n hidden,\n input,\n requiredInput,\n textArea,\n requiredTextArea,\n checkbox,\n requiredCheckbox,\n cascader,\n requiredCascader,\n number,\n requiredNumber,\n radio,\n requiredRadio,\n rate,\n requiredRate,\n datepicker,\n requiredDatepicker,\n /** 开关 */\n switch: (key: string, label: string = '', props: SwitchProps = {}, otherOptions: FormlyFieldConfig = {}) => {\n return field<FormlySwitchFieldConfig>(key, 'switch', label, props, otherOptions);\n },\n requiredSwitch,\n upload,\n requiredUpload,\n slider,\n requiredSlide,\n select,\n requiredSelect,\n treeSelect,\n requiredTreeSelect,\n transfer,\n requiredTransfer,\n timepicker,\n requiredTimepicker,\n text,\n space,\n inputGroup,\n ref,\n grid,\n flex,\n card,\n button,\n buttonGroup,\n submit,\n reset\n};\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public_api';\n"],"names":[],"mappings":"SAGgB,KAAK,CACnB,GAAW,EACX,IAAI,GAAG,OAAO,EACd,KAAA,GAAgB,EAAE,EAClB,KAAA,GAEI,EAAE,EACN,eAAoC,EAAE,EAAA;AAEtC,IAAA,MAAM,QAAQ,GAAwB,EAAE,GAAG,EAAE,IAAI,EAAE,CAAC;AACpD,IAAA,QAAQ,CAAC,KAAK,GAAG,MAAM,CAAC,MAAM,CAAC,EAAE,KAAK,EAAE,GAAG,KAAK,EAAE,CAAC,CAAC;AAEpD,IAAA,MAAM,SAAS,GAAG,GAAG,GAAG,CAAU,OAAA,EAAA,GAAG,CAAE,CAAA,GAAG,EAAE,CAAC;IAC7C,YAAY,CAAC,SAAS,GAAG,YAAY,CAAC,SAAS,GAAG,CAAA,EAAG,YAAY,CAAC,SAAS,IAAI,SAAS,CAAA,CAAE,GAAG,SAAS,CAAC;AAEvG,IAAA,OAAO,EAAE,GAAG,QAAQ,EAAE,GAAG,YAAY,EAAO,CAAC;AAC/C,CAAC;SACe,aAAa,CAC3B,GAAW,EACX,IAAI,GAAG,OAAO,EACd,KAAA,GAAgB,EAAE,EAClB,KAAA,GAEI,EAAE,EACN,eAAoC,EAAE,EAAA;AAEtC,IAAA,OAAO,KAAK,CAAI,GAAG,EAAE,IAAI,EAAE,KAAK,EAAE,EAAE,GAAG,KAAK,EAAE,QAAQ,EAAE,IAAI,EAAE,EAAE,YAAY,CAAC,CAAC;AAChF,CAAC;AACK,SAAU,MAAM,CAAC,GAAW,EAAA;IAChC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E,EAAE,OAAO,EAAE,EAAE,EAAE,EAAE,IAAI,EAAE,GAAG,KAAK,EAAE,EAAE,YAAY,CAAC,CAAC;AAC3F;;AC3Ra,MAAA,MAAM,GAAG;IACpB,KAAK;IACL,aAAa;IACb,MAAM;IACN,KAAK;IACL,aAAa;IACb,QAAQ;IACR,gBAAgB;IAChB,QAAQ;IACR,gBAAgB;IAChB,QAAQ;IACR,gBAAgB;IAChB,MAAM;IACN,cAAc;IACd,KAAK;IACL,aAAa;IACb,IAAI;IACJ,YAAY;IACZ,UAAU;IACV,kBAAkB;;AAElB,IAAA,MAAM,EAAE,CAAC,GAAW,EAAE,KAAgB,GAAA,EAAE,EAAE,KAAA,GAAqB,EAAE,EAAE,YAAkC,GAAA,EAAE,KAAI;AACzG,QAAA,OAAO,KAAK,CAA0B,GAAG,EAAE,QAAQ,EAAE,KAAK,EAAE,KAAK,EAAE,YAAY,CAAC,CAAC;KAClF;IACD,cAAc;IACd,MAAM;IACN,cAAc;IACd,MAAM;IACN,aAAa;IACb,MAAM;IACN,cAAc;IACd,UAAU;IACV,kBAAkB;IAClB,QAAQ;IACR,gBAAgB;IAChB,UAAU;IACV,kBAAkB;IAClB,IAAI;IACJ,KAAK;IACL,UAAU;IACV,GAAG;IACH,IAAI;IACJ,IAAI;IACJ,IAAI;IACJ,MAAM;IACN,WAAW;IACX,MAAM;IACN,KAAK;;;AC7FP;;AAEG;;;;"}
|
@@ -77,31 +77,22 @@ class FormlyFieldSelect extends FieldType {
|
|
77
77
|
[nzOptionOverflowSize]="props['optionOverflowSize']!"
|
78
78
|
[formControl]="formControl"
|
79
79
|
[formlyAttributes]="field"
|
80
|
-
(ngModelChange)="props
|
80
|
+
(ngModelChange)="props['modelChange']?.(field, $event)"
|
81
81
|
(nzBlur)="props.blur?.(field, $event)"
|
82
82
|
(nzFocus)="props.focus?.(field, $event)"
|
83
|
-
(nzOpenChange)="props['openChange']
|
84
|
-
(nzScrollToBottom)="props['scrollToBottom']
|
85
|
-
(nzOnSearch)="props['onSearch']
|
83
|
+
(nzOpenChange)="props['openChange']?.(field, $event)"
|
84
|
+
(nzScrollToBottom)="props['scrollToBottom']?.(field, $event)"
|
85
|
+
(nzOnSearch)="props['onSearch']?.(field, $event)"
|
86
86
|
>
|
87
87
|
@for (item of to.options | formlySelectOptions: field | async; track item) {
|
88
88
|
@if (item.group) {
|
89
89
|
<nz-option-group [nzLabel]="item.label">
|
90
90
|
@for (child of item.group; track child) {
|
91
|
-
<nz-option
|
92
|
-
[nzValue]="child.value"
|
93
|
-
[nzDisabled]="child.disabled"
|
94
|
-
[nzLabel]="child.label"
|
95
|
-
>
|
96
|
-
</nz-option>
|
91
|
+
<nz-option [nzValue]="child.value" [nzDisabled]="child.disabled" [nzLabel]="child.label"> </nz-option>
|
97
92
|
}
|
98
93
|
</nz-option-group>
|
99
94
|
} @else {
|
100
|
-
<nz-option
|
101
|
-
[nzValue]="item.value"
|
102
|
-
[nzDisabled]="item.disabled"
|
103
|
-
[nzLabel]="item.label"
|
104
|
-
></nz-option>
|
95
|
+
<nz-option [nzValue]="item.value" [nzDisabled]="item.disabled" [nzLabel]="item.label"></nz-option>
|
105
96
|
}
|
106
97
|
}
|
107
98
|
</nz-select>
|
@@ -144,31 +135,22 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.9", ngImpor
|
|
144
135
|
[nzOptionOverflowSize]="props['optionOverflowSize']!"
|
145
136
|
[formControl]="formControl"
|
146
137
|
[formlyAttributes]="field"
|
147
|
-
(ngModelChange)="props
|
138
|
+
(ngModelChange)="props['modelChange']?.(field, $event)"
|
148
139
|
(nzBlur)="props.blur?.(field, $event)"
|
149
140
|
(nzFocus)="props.focus?.(field, $event)"
|
150
|
-
(nzOpenChange)="props['openChange']
|
151
|
-
(nzScrollToBottom)="props['scrollToBottom']
|
152
|
-
(nzOnSearch)="props['onSearch']
|
141
|
+
(nzOpenChange)="props['openChange']?.(field, $event)"
|
142
|
+
(nzScrollToBottom)="props['scrollToBottom']?.(field, $event)"
|
143
|
+
(nzOnSearch)="props['onSearch']?.(field, $event)"
|
153
144
|
>
|
154
145
|
@for (item of to.options | formlySelectOptions: field | async; track item) {
|
155
146
|
@if (item.group) {
|
156
147
|
<nz-option-group [nzLabel]="item.label">
|
157
148
|
@for (child of item.group; track child) {
|
158
|
-
<nz-option
|
159
|
-
[nzValue]="child.value"
|
160
|
-
[nzDisabled]="child.disabled"
|
161
|
-
[nzLabel]="child.label"
|
162
|
-
>
|
163
|
-
</nz-option>
|
149
|
+
<nz-option [nzValue]="child.value" [nzDisabled]="child.disabled" [nzLabel]="child.label"> </nz-option>
|
164
150
|
}
|
165
151
|
</nz-option-group>
|
166
152
|
} @else {
|
167
|
-
<nz-option
|
168
|
-
[nzValue]="item.value"
|
169
|
-
[nzDisabled]="item.disabled"
|
170
|
-
[nzLabel]="item.label"
|
171
|
-
></nz-option>
|
153
|
+
<nz-option [nzValue]="item.value" [nzDisabled]="item.disabled" [nzLabel]="item.label"></nz-option>
|
172
154
|
}
|
173
155
|
}
|
174
156
|
</nz-select>
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"ngx-formly-zorro-antd-select.mjs","sources":["../../../../packages/formlyantd/select/src/select.type.ts","../../../../packages/formlyantd/select/src/select.module.ts","../../../../packages/formlyantd/select/src/ngx-formly-zorro-antd-select.ts"],"sourcesContent":["import { Component, Type, ChangeDetectionStrategy, ViewChild, OnInit } from '@angular/core';\nimport { FieldType, FieldTypeConfig } from '@ngx-formly/core';\nimport type { NzFormlyFieldConfig } from 'ngx-formly-zorro-antd/common';\nimport { NzSelectComponent } from 'ng-zorro-antd/select';\nimport type { NzSafeAny } from 'ng-zorro-antd/core/types';\nimport type { SelectProps } from './select.props';\n\nexport interface FormlySelectFieldConfig extends NzFormlyFieldConfig<SelectProps> {\n type: 'select' | 'enum' | Type<FormlyFieldSelect>;\n}\n\n@Component({\n selector: 'formly-field-select',\n template: `\n <nz-select\n #select\n [class.ng-dirty]=\"showError\"\n [ngStyle]=\"props['ngStyle']\"\n [ngClass]=\"props['ngClass']\"\n [nzPlaceHolder]=\"props.placeholder ?? null\"\n [compareWith]=\"props['compareWith']!\"\n [nzAllowClear]=\"props['allowClear']!!\"\n [nzSelectOnTab]=\"props['selectOnTab']!!\"\n [nzAutoClearSearchValue]=\"props['autoClearSearchValue']\"\n [nzBackdrop]=\"props['backdrop']!!\"\n [nzBorderless]=\"props['borderless']\"\n [nzOpen]=\"props['open']!!\"\n [nzDropdownClassName]=\"props['dropdownClassName']\"\n [nzDropdownMatchSelectWidth]=\"props['dropdownMatchSelectWidth']!!\"\n [nzDropdownStyle]=\"props['dropdownStyle'] ?? null\"\n [nzCustomTemplate]=\"props['customTemplate'] ?? null\"\n [nzServerSearch]=\"props['serverSearch']!!\"\n [nzMaxMultipleCount]=\"props['maxMultipleCount']!\"\n [nzMode]=\"props['mode']!\"\n [nzShowSearch]=\"props['showSearch']!!\"\n [nzSize]=\"props['size']!\"\n [nzStatus]=\"props['status']!\"\n [nzLoading]=\"props['loading']!!\"\n [nzPlacement]=\"props['placement']\"\n [nzShowArrow]=\"props['showArrow']!!\"\n [nzMaxTagCount]=\"props['maxTagCount']\"\n [nzMaxTagPlaceholder]=\"props['maxTagPlaceholder'] ?? null\"\n [nzOptionHeightPx]=\"props['optionHeightPx']!\"\n [nzOptionOverflowSize]=\"props['optionOverflowSize']!\"\n [formControl]=\"formControl\"\n [formlyAttributes]=\"field\"\n (ngModelChange)=\"props.change?.(field, $event)\"\n (nzBlur)=\"props.blur?.(field, $event)\"\n (nzFocus)=\"props.focus?.(field, $event)\"\n (nzOpenChange)=\"props['openChange'] && props['openChange'](field, $event)\"\n (nzScrollToBottom)=\"props['scrollToBottom'] && props['scrollToBottom'](field, $event)\"\n (nzOnSearch)=\"props['onSearch'] && props['onSearch'](field, $event)\"\n >\n @for (item of to.options | formlySelectOptions: field | async; track item) {\n @if (item.group) {\n <nz-option-group [nzLabel]=\"item.label\">\n @for (child of item.group; track child) {\n <nz-option\n [nzValue]=\"child.value\"\n [nzDisabled]=\"child.disabled\"\n [nzLabel]=\"child.label\"\n >\n </nz-option>\n }\n </nz-option-group>\n } @else {\n <nz-option\n [nzValue]=\"item.value\"\n [nzDisabled]=\"item.disabled\"\n [nzLabel]=\"item.label\"\n ></nz-option>\n }\n }\n </nz-select>\n `,\n changeDetection: ChangeDetectionStrategy.OnPush\n})\nexport class FormlyFieldSelect extends FieldType<FieldTypeConfig> implements OnInit {\n override defaultOptions = {\n props: {\n compareWith: (o1: NzSafeAny, o2: NzSafeAny) => o1 === o2,\n autoClearSearchValue: true,\n allowClear: false,\n backdrop: false,\n open: false,\n dropdownMatchSelectWidth: true,\n serverSearch: false,\n selectOnTab: false,\n maxMultipleCount: Infinity,\n mode: 'default' as const,\n showSearch: false,\n size: 'default' as const,\n status: '' as const,\n tokenSeparators: [],\n options: [],\n loading: false,\n optionHeightPx: 32,\n optionOverflowSize: 8\n }\n };\n @ViewChild('select', { static: true }) select!: NzSelectComponent;\n ngOnInit(): void {\n if (this.props['filterOption'] instanceof Function) {\n this.select.nzFilterOption = this.props['filterOption'] as NzSafeAny;\n }\n }\n}\n","import { NgModule } from '@angular/core';\nimport { CommonModule } from '@angular/common';\nimport { ReactiveFormsModule } from '@angular/forms';\nimport { FormlyModule } from '@ngx-formly/core';\nimport { FormlySelectModule } from '@ngx-formly/core/select';\nimport { FormlyNzFormFieldModule } from 'ngx-formly-zorro-antd/form-field';\n\nimport { NzSelectModule } from 'ng-zorro-antd/select';\n\nimport { FormlyFieldSelect } from './select.type';\n\n@NgModule({\n declarations: [FormlyFieldSelect],\n imports: [\n CommonModule,\n ReactiveFormsModule,\n NzSelectModule,\n\n FormlyNzFormFieldModule,\n FormlySelectModule,\n FormlyModule.forChild({\n types: [\n {\n name: 'select',\n component: FormlyFieldSelect,\n wrappers: ['form-field']\n },\n { name: 'enum', extends: 'select' }\n ]\n })\n ]\n})\nexport class FormlyNzSelectModule {}\n","/**\n * Generated bundle index. Do not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BAAA,SAAS,EAAE,iBAAiB;wBAC5B,QAAQ,EAAE,CAAC,YAAY,CAAC;AACzB,qBAAA;AACD,oBAAA,EAAE,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,QAAQ,EAAE;AACpC,iBAAA;aACF,CAAC,CAAA,EAAA,CAAA,CAAA,EAAA;;2FAGO,oBAAoB,EAAA,UAAA,EAAA,CAAA;kBArBhC,QAAQ;AAAC,YAAA,IAAA,EAAA,CAAA;oBACR,YAAY,EAAE,CAAC,iBAAiB,CAAC;AACjC,oBAAA,OAAO,EAAE;wBACP,YAAY;wBACZ,mBAAmB;wBACnB,cAAc;wBAEd,uBAAuB;wBACvB,kBAAkB;wBAClB,YAAY,CAAC,QAAQ,CAAC;AACpB,4BAAA,KAAK,EAAE;AACL,gCAAA;AACE,oCAAA,IAAI,EAAE,QAAQ;AACd,oCAAA,SAAS,EAAE,iBAAiB;oCAC5B,QAAQ,EAAE,CAAC,YAAY,CAAC;AACzB,iCAAA;AACD,gCAAA,EAAE,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,QAAQ,EAAE;AACpC,6BAAA;yBACF,CAAC;AACH,qBAAA;AACF,iBAAA,CAAA;;;AC/BD;;AAEG;;;;"}
|
1
|
+
{"version":3,"file":"ngx-formly-zorro-antd-select.mjs","sources":["../../../../packages/formlyantd/select/src/select.type.ts","../../../../packages/formlyantd/select/src/select.module.ts","../../../../packages/formlyantd/select/src/ngx-formly-zorro-antd-select.ts"],"sourcesContent":["import { Component, Type, ChangeDetectionStrategy, ViewChild, OnInit } from '@angular/core';\nimport { FieldType, FieldTypeConfig } from '@ngx-formly/core';\nimport type { NzFormlyFieldConfig } from 'ngx-formly-zorro-antd/common';\nimport { NzSelectComponent } from 'ng-zorro-antd/select';\nimport type { NzSafeAny } from 'ng-zorro-antd/core/types';\nimport type { SelectProps } from './select.props';\n\nexport interface FormlySelectFieldConfig extends NzFormlyFieldConfig<SelectProps> {\n type: 'select' | 'enum' | Type<FormlyFieldSelect>;\n}\n\n@Component({\n selector: 'formly-field-select',\n template: `\n <nz-select\n #select\n [class.ng-dirty]=\"showError\"\n [ngStyle]=\"props['ngStyle']\"\n [ngClass]=\"props['ngClass']\"\n [nzPlaceHolder]=\"props.placeholder ?? null\"\n [compareWith]=\"props['compareWith']!\"\n [nzAllowClear]=\"props['allowClear']!!\"\n [nzSelectOnTab]=\"props['selectOnTab']!!\"\n [nzAutoClearSearchValue]=\"props['autoClearSearchValue']\"\n [nzBackdrop]=\"props['backdrop']!!\"\n [nzBorderless]=\"props['borderless']\"\n [nzOpen]=\"props['open']!!\"\n [nzDropdownClassName]=\"props['dropdownClassName']\"\n [nzDropdownMatchSelectWidth]=\"props['dropdownMatchSelectWidth']!!\"\n [nzDropdownStyle]=\"props['dropdownStyle'] ?? null\"\n [nzCustomTemplate]=\"props['customTemplate'] ?? null\"\n [nzServerSearch]=\"props['serverSearch']!!\"\n [nzMaxMultipleCount]=\"props['maxMultipleCount']!\"\n [nzMode]=\"props['mode']!\"\n [nzShowSearch]=\"props['showSearch']!!\"\n [nzSize]=\"props['size']!\"\n [nzStatus]=\"props['status']!\"\n [nzLoading]=\"props['loading']!!\"\n [nzPlacement]=\"props['placement']\"\n [nzShowArrow]=\"props['showArrow']!!\"\n [nzMaxTagCount]=\"props['maxTagCount']\"\n [nzMaxTagPlaceholder]=\"props['maxTagPlaceholder'] ?? null\"\n [nzOptionHeightPx]=\"props['optionHeightPx']!\"\n [nzOptionOverflowSize]=\"props['optionOverflowSize']!\"\n [formControl]=\"formControl\"\n [formlyAttributes]=\"field\"\n (ngModelChange)=\"props['modelChange']?.(field, $event)\"\n (nzBlur)=\"props.blur?.(field, $event)\"\n (nzFocus)=\"props.focus?.(field, $event)\"\n (nzOpenChange)=\"props['openChange']?.(field, $event)\"\n (nzScrollToBottom)=\"props['scrollToBottom']?.(field, $event)\"\n (nzOnSearch)=\"props['onSearch']?.(field, $event)\"\n >\n @for (item of to.options | formlySelectOptions: field | async; track item) {\n @if (item.group) {\n <nz-option-group [nzLabel]=\"item.label\">\n @for (child of item.group; track child) {\n <nz-option [nzValue]=\"child.value\" [nzDisabled]=\"child.disabled\" [nzLabel]=\"child.label\"> </nz-option>\n }\n </nz-option-group>\n } @else {\n <nz-option [nzValue]=\"item.value\" [nzDisabled]=\"item.disabled\" [nzLabel]=\"item.label\"></nz-option>\n }\n }\n </nz-select>\n `,\n changeDetection: ChangeDetectionStrategy.OnPush\n})\nexport class FormlyFieldSelect extends FieldType<FieldTypeConfig> implements OnInit {\n override defaultOptions = {\n props: {\n compareWith: (o1: NzSafeAny, o2: NzSafeAny) => o1 === o2,\n autoClearSearchValue: true,\n allowClear: false,\n backdrop: false,\n open: false,\n dropdownMatchSelectWidth: true,\n serverSearch: false,\n selectOnTab: false,\n maxMultipleCount: Infinity,\n mode: 'default' as const,\n showSearch: false,\n size: 'default' as const,\n status: '' as const,\n tokenSeparators: [],\n options: [],\n loading: false,\n optionHeightPx: 32,\n optionOverflowSize: 8\n }\n };\n @ViewChild('select', { static: true }) select!: NzSelectComponent;\n ngOnInit(): void {\n if (this.props['filterOption'] instanceof Function) {\n this.select.nzFilterOption = this.props['filterOption'] as NzSafeAny;\n }\n }\n}\n","import { NgModule } from '@angular/core';\nimport { CommonModule } from '@angular/common';\nimport { ReactiveFormsModule } from '@angular/forms';\nimport { FormlyModule } from '@ngx-formly/core';\nimport { FormlySelectModule } from '@ngx-formly/core/select';\nimport { FormlyNzFormFieldModule } from 'ngx-formly-zorro-antd/form-field';\n\nimport { NzSelectModule } from 'ng-zorro-antd/select';\n\nimport { FormlyFieldSelect } from './select.type';\n\n@NgModule({\n declarations: [FormlyFieldSelect],\n imports: [\n CommonModule,\n ReactiveFormsModule,\n NzSelectModule,\n\n FormlyNzFormFieldModule,\n FormlySelectModule,\n FormlyModule.forChild({\n types: [\n {\n name: 'select',\n component: FormlyFieldSelect,\n wrappers: ['form-field']\n },\n { name: 'enum', extends: 'select' }\n ]\n })\n ]\n})\nexport class FormlyNzSelectMod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AACd,wBAAA,SAAS,EAAE,iBAAiB;wBAC5B,QAAQ,EAAE,CAAC,YAAY,CAAC;AACzB,qBAAA;AACD,oBAAA,EAAE,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,QAAQ,EAAE;AACpC,iBAAA;aACF,CAAC,CAAA,EAAA,CAAA,CAAA,EAAA;;2FAGO,oBAAoB,EAAA,UAAA,EAAA,CAAA;kBArBhC,QAAQ;AAAC,YAAA,IAAA,EAAA,CAAA;oBACR,YAAY,EAAE,CAAC,iBAAiB,CAAC;AACjC,oBAAA,OAAO,EAAE;wBACP,YAAY;wBACZ,mBAAmB;wBACnB,cAAc;wBAEd,uBAAuB;wBACvB,kBAAkB;wBAClB,YAAY,CAAC,QAAQ,CAAC;AACpB,4BAAA,KAAK,EAAE;AACL,gCAAA;AACE,oCAAA,IAAI,EAAE,QAAQ;AACd,oCAAA,SAAS,EAAE,iBAAiB;oCAC5B,QAAQ,EAAE,CAAC,YAAY,CAAC;AACzB,iCAAA;AACD,gCAAA,EAAE,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,QAAQ,EAAE;AACpC,6BAAA;yBACF,CAAC;AACH,qBAAA;AACF,iBAAA,CAAA;;;AC/BD;;AAEG;;;;"}
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "ngx-formly-zorro-antd",
|
3
|
-
"version": "17.3.
|
3
|
+
"version": "17.3.5",
|
4
4
|
"publishConfig": {
|
5
5
|
"registry": "https://registry.npmjs.org",
|
6
6
|
"access": "public"
|
@@ -37,41 +37,41 @@
|
|
37
37
|
"esm": "./esm2022/autocomplete/ngx-formly-zorro-antd-autocomplete.mjs",
|
38
38
|
"default": "./fesm2022/ngx-formly-zorro-antd-autocomplete.mjs"
|
39
39
|
},
|
40
|
+
"./button": {
|
41
|
+
"types": "./button/index.d.ts",
|
42
|
+
"esm2022": "./esm2022/button/ngx-formly-zorro-antd-button.mjs",
|
43
|
+
"esm": "./esm2022/button/ngx-formly-zorro-antd-button.mjs",
|
44
|
+
"default": "./fesm2022/ngx-formly-zorro-antd-button.mjs"
|
45
|
+
},
|
40
46
|
"./button-group": {
|
41
47
|
"types": "./button-group/index.d.ts",
|
42
48
|
"esm2022": "./esm2022/button-group/ngx-formly-zorro-antd-button-group.mjs",
|
43
49
|
"esm": "./esm2022/button-group/ngx-formly-zorro-antd-button-group.mjs",
|
44
50
|
"default": "./fesm2022/ngx-formly-zorro-antd-button-group.mjs"
|
45
51
|
},
|
46
|
-
"./card": {
|
47
|
-
"types": "./card/index.d.ts",
|
48
|
-
"esm2022": "./esm2022/card/ngx-formly-zorro-antd-card.mjs",
|
49
|
-
"esm": "./esm2022/card/ngx-formly-zorro-antd-card.mjs",
|
50
|
-
"default": "./fesm2022/ngx-formly-zorro-antd-card.mjs"
|
51
|
-
},
|
52
52
|
"./card-wrapper": {
|
53
53
|
"types": "./card-wrapper/index.d.ts",
|
54
54
|
"esm2022": "./esm2022/card-wrapper/ngx-formly-zorro-antd-card-wrapper.mjs",
|
55
55
|
"esm": "./esm2022/card-wrapper/ngx-formly-zorro-antd-card-wrapper.mjs",
|
56
56
|
"default": "./fesm2022/ngx-formly-zorro-antd-card-wrapper.mjs"
|
57
57
|
},
|
58
|
+
"./cascader": {
|
59
|
+
"types": "./cascader/index.d.ts",
|
60
|
+
"esm2022": "./esm2022/cascader/ngx-formly-zorro-antd-cascader.mjs",
|
61
|
+
"esm": "./esm2022/cascader/ngx-formly-zorro-antd-cascader.mjs",
|
62
|
+
"default": "./fesm2022/ngx-formly-zorro-antd-cascader.mjs"
|
63
|
+
},
|
58
64
|
"./checkbox": {
|
59
65
|
"types": "./checkbox/index.d.ts",
|
60
66
|
"esm2022": "./esm2022/checkbox/ngx-formly-zorro-antd-checkbox.mjs",
|
61
67
|
"esm": "./esm2022/checkbox/ngx-formly-zorro-antd-checkbox.mjs",
|
62
68
|
"default": "./fesm2022/ngx-formly-zorro-antd-checkbox.mjs"
|
63
69
|
},
|
64
|
-
"./
|
65
|
-
"types": "./
|
66
|
-
"esm2022": "./esm2022/
|
67
|
-
"esm": "./esm2022/
|
68
|
-
"default": "./fesm2022/ngx-formly-zorro-antd-
|
69
|
-
},
|
70
|
-
"./cascader": {
|
71
|
-
"types": "./cascader/index.d.ts",
|
72
|
-
"esm2022": "./esm2022/cascader/ngx-formly-zorro-antd-cascader.mjs",
|
73
|
-
"esm": "./esm2022/cascader/ngx-formly-zorro-antd-cascader.mjs",
|
74
|
-
"default": "./fesm2022/ngx-formly-zorro-antd-cascader.mjs"
|
70
|
+
"./card": {
|
71
|
+
"types": "./card/index.d.ts",
|
72
|
+
"esm2022": "./esm2022/card/ngx-formly-zorro-antd-card.mjs",
|
73
|
+
"esm": "./esm2022/card/ngx-formly-zorro-antd-card.mjs",
|
74
|
+
"default": "./fesm2022/ngx-formly-zorro-antd-card.mjs"
|
75
75
|
},
|
76
76
|
"./common": {
|
77
77
|
"types": "./common/index.d.ts",
|
package/select/select.props.d.ts
CHANGED