ngx-formly-zorro-antd 17.3.2 → 17.3.4
Sign up to get free protection for your applications and to get access to all the features.
package/common/interface.d.ts
CHANGED
@@ -7,6 +7,8 @@ export type NgStyleType = NgStyleInterface | null;
|
|
7
7
|
*/
|
8
8
|
export type ControlOptions = FormlyFieldProps & {
|
9
9
|
valueChanges?: (value: NzSafeAny, field: NzFormlyFieldConfig) => void;
|
10
|
+
/** 翻译 */
|
11
|
+
translate?: boolean;
|
10
12
|
};
|
11
13
|
export interface NzFormlyFieldConfig<T extends ControlOptions = ControlOptions> extends FormlyFieldConfig {
|
12
14
|
/**
|
@@ -1,2 +1,2 @@
|
|
1
1
|
export {};
|
2
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW50ZXJmYWNlLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vcGFja2FnZXMvZm9ybWx5YW50ZC9jb21tb24vaW50ZXJmYWNlLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiIiLCJzb3VyY2VzQ29udGVudCI6WyJpbXBvcnQgeyBGb3JtbHlGaWVsZENvbmZpZywgRm9ybWx5RmllbGRQcm9wcyB9IGZyb20gJ0BuZ3gtZm9ybWx5L2NvcmUnO1xuaW1wb3J0IHR5cGUgeyBOelNhZmVBbnksIE5nQ2xhc3NJbnRlcmZhY2UsIE5nU3R5bGVJbnRlcmZhY2UgfSBmcm9tICduZy16b3Jyby1hbnRkL2NvcmUvdHlwZXMnO1xuXG5leHBvcnQgdHlwZSBOZ0NsYXNzVHlwZSA9IHN0cmluZyB8IHN0cmluZ1tdIHwgU2V0PHN0cmluZz4gfCBOZ0NsYXNzSW50ZXJmYWNlIHwgbnVsbDtcblxuZXhwb3J0IHR5cGUgTmdTdHlsZVR5cGUgPSBOZ1N0eWxlSW50ZXJmYWNlIHwgbnVsbDtcblxuLyoqXG4gKiDmjqfku7bmqKHmnb/lj4LmlbDphY3nva7pobl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EgKi9cbiAgdHJhbnNsYXRlPzogYm9vbGVhbjtcbn07XG5cbmV4cG9ydCBpbnRlcmZhY2UgTnpGb3JtbHlGaWVsZENvbmZpZzxUIGV4dGVuZHMgQ29udHJvbE9wdGlvbnMgPSBDb250cm9sT3B0aW9ucz4gZXh0ZW5kcyBGb3JtbHlGaWVsZENvbmZpZyB7XG4gIC8qKlxuICAgKiDov5nmmK/kuLrmqKHmnb/mianlsZXnmoTlsZ7mgKfvvIzmiYDmnInmqKHmnb/orr/pl67nmoTlsZ7mgKfpg73lupTor6Xku47ov5nph4zorr/pl65cbiAgICovXG4gIHByb3BzPzogVDtcbiAgLyoqXG4gICAqIEBkZXByZWNhdGVkIOS9v+eUqCBgcHJvcHNgIOS7o+abv1xuICAgKi9cbiAgdGVtcGxhdGVPcHRpb25zPzogVDtcbn1cblxuZXhwb3J0IHR5cGUgRm9ybWx5QXR0cmlidXRlRXZlbnQ8VCA9IE56U2FmZUFueT4gPSAoZmllbGQ6IE56Rm9ybWx5RmllbGRDb25maWcsIGV2ZW50PzogVCkgPT4gdm9pZDtcbiJdfQ==
|
@@ -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,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY29tbW9uLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiO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gLi4ucmV0dXJuZXIsIC4uLm90aGVyT3B0aW9ucyB9IGFzIFQ7XG59XG5leHBvcnQgZnVuY3Rpb24gcmVxdWlyZWRGaWVsZDxUID0gTnpGb3JtbHlGaWVsZENvbmZpZz4oXG4gIGtleTogc3RyaW5nLFxuICB0eXBlID0gJ2lucHV0JyxcbiAgbGFiZWw6IHN0cmluZyA9ICcnLFxuICBwcm9wczogQ29udHJvbE9wdGlvbnMgJiB7XG4gICAgW2tleTogc3RyaW5nXTogTnpTYWZlQW55O1xuICB9ID0ge30sXG4gIG90aGVyT3B0aW9uczogTnpGb3JtbHlGaWVsZENvbmZpZyA9IHt9XG4pIHtcbiAgcmV0dXJuIGZpZWxkPFQ+KGtleSwgdHlwZSwgbGFiZWwsIHsgLi4ucHJvcHMsIHJlcXVpcmVkOiB0cnVlIH0sIG90aGVyT3B0aW9ucyk7XG59XG5leHBvcnQgZnVuY3Rpb24gaGlkZGVuKGtleTogc3RyaW5nKTogTnpGb3JtbHlGaWVsZENvbmZpZyB7XG4gIHJldHVybiB7IGtleSwgdHlwZTogJ2lucHV0JywgaGlkZTogdHJ1ZSB9O1xufVxuIl19
|
@@ -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,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,OAAO,EAAE,GAAG,EAAE,IAAI,EAAE,OAAO,EAAE,IAAI,EAAE,IAAI,EAAE,CAAC;AAC5C;;ACNgB,SAAA,UAAU,CACxB,GAAW,EACX,KAAA,GAAgB,EAAE,EAClB,KAAyB,GAAA,EAAE,EAC3B,YAAA,GA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ACb,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;;;;"}
|
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 = 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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A,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;;;;"}
|
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.4",
|
4
4
|
"publishConfig": {
|
5
5
|
"registry": "https://registry.npmjs.org",
|
6
6
|
"access": "public"
|
@@ -49,12 +49,6 @@
|
|
49
49
|
"esm": "./esm2022/button-group/ngx-formly-zorro-antd-button-group.mjs",
|
50
50
|
"default": "./fesm2022/ngx-formly-zorro-antd-button-group.mjs"
|
51
51
|
},
|
52
|
-
"./card-wrapper": {
|
53
|
-
"types": "./card-wrapper/index.d.ts",
|
54
|
-
"esm2022": "./esm2022/card-wrapper/ngx-formly-zorro-antd-card-wrapper.mjs",
|
55
|
-
"esm": "./esm2022/card-wrapper/ngx-formly-zorro-antd-card-wrapper.mjs",
|
56
|
-
"default": "./fesm2022/ngx-formly-zorro-antd-card-wrapper.mjs"
|
57
|
-
},
|
58
52
|
"./card": {
|
59
53
|
"types": "./card/index.d.ts",
|
60
54
|
"esm2022": "./esm2022/card/ngx-formly-zorro-antd-card.mjs",
|
@@ -67,6 +61,12 @@
|
|
67
61
|
"esm": "./esm2022/cascader/ngx-formly-zorro-antd-cascader.mjs",
|
68
62
|
"default": "./fesm2022/ngx-formly-zorro-antd-cascader.mjs"
|
69
63
|
},
|
64
|
+
"./card-wrapper": {
|
65
|
+
"types": "./card-wrapper/index.d.ts",
|
66
|
+
"esm2022": "./esm2022/card-wrapper/ngx-formly-zorro-antd-card-wrapper.mjs",
|
67
|
+
"esm": "./esm2022/card-wrapper/ngx-formly-zorro-antd-card-wrapper.mjs",
|
68
|
+
"default": "./fesm2022/ngx-formly-zorro-antd-card-wrapper.mjs"
|
69
|
+
},
|
70
70
|
"./checkbox": {
|
71
71
|
"types": "./checkbox/index.d.ts",
|
72
72
|
"esm2022": "./esm2022/checkbox/ngx-formly-zorro-antd-checkbox.mjs",
|
@@ -91,18 +91,18 @@
|
|
91
91
|
"esm": "./esm2022/extension/ngx-formly-zorro-antd-extension.mjs",
|
92
92
|
"default": "./fesm2022/ngx-formly-zorro-antd-extension.mjs"
|
93
93
|
},
|
94
|
-
"./form-field": {
|
95
|
-
"types": "./form-field/index.d.ts",
|
96
|
-
"esm2022": "./esm2022/form-field/ngx-formly-zorro-antd-form-field.mjs",
|
97
|
-
"esm": "./esm2022/form-field/ngx-formly-zorro-antd-form-field.mjs",
|
98
|
-
"default": "./fesm2022/ngx-formly-zorro-antd-form-field.mjs"
|
99
|
-
},
|
100
94
|
"./flex": {
|
101
95
|
"types": "./flex/index.d.ts",
|
102
96
|
"esm2022": "./esm2022/flex/ngx-formly-zorro-antd-flex.mjs",
|
103
97
|
"esm": "./esm2022/flex/ngx-formly-zorro-antd-flex.mjs",
|
104
98
|
"default": "./fesm2022/ngx-formly-zorro-antd-flex.mjs"
|
105
99
|
},
|
100
|
+
"./form-field": {
|
101
|
+
"types": "./form-field/index.d.ts",
|
102
|
+
"esm2022": "./esm2022/form-field/ngx-formly-zorro-antd-form-field.mjs",
|
103
|
+
"esm": "./esm2022/form-field/ngx-formly-zorro-antd-form-field.mjs",
|
104
|
+
"default": "./fesm2022/ngx-formly-zorro-antd-form-field.mjs"
|
105
|
+
},
|
106
106
|
"./grid": {
|
107
107
|
"types": "./grid/index.d.ts",
|
108
108
|
"esm2022": "./esm2022/grid/ngx-formly-zorro-antd-grid.mjs",
|