ngx-formly-zorro-antd 18.3.2 → 18.4.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/autocomplete/package.json +3 -0
- package/button/package.json +3 -0
- package/button-group/package.json +3 -0
- package/card/package.json +3 -0
- package/card-wrapper/package.json +3 -0
- package/cascader/package.json +3 -0
- package/checkbox/package.json +3 -0
- package/common/package.json +3 -0
- package/datepicker/package.json +3 -0
- package/esm2022/autocomplete/autocomplete.props.mjs +1 -1
- package/esm2022/autocomplete/public_api.mjs +1 -1
- package/esm2022/button/button.module.mjs +1 -1
- package/esm2022/button/button.type.mjs +119 -119
- package/esm2022/button/public_api.mjs +1 -1
- package/esm2022/button-group/button-group.module.mjs +1 -1
- package/esm2022/button-group/button-group.type.mjs +81 -81
- package/esm2022/button-group/public_api.mjs +1 -1
- package/esm2022/card/card.module.mjs +1 -1
- package/esm2022/card/card.type.mjs +49 -49
- package/esm2022/card/public_api.mjs +1 -1
- package/esm2022/card-wrapper/card-wrapper.module.mjs +1 -1
- package/esm2022/card-wrapper/card-wrapper.props.mjs +1 -1
- package/esm2022/card-wrapper/card.wrapper.mjs +39 -39
- package/esm2022/card-wrapper/public_api.mjs +1 -1
- package/esm2022/cascader/cascader.module.mjs +1 -1
- package/esm2022/cascader/cascader.type.mjs +63 -63
- package/esm2022/cascader/public_api.mjs +1 -1
- package/esm2022/checkbox/checkbox.module.mjs +1 -1
- package/esm2022/checkbox/checkbox.type.mjs +45 -45
- package/esm2022/checkbox/public_api.mjs +1 -1
- package/esm2022/common/common.module.mjs +1 -1
- package/esm2022/common/formly-box-templates.directive.mjs +1 -1
- package/esm2022/common/formly-utils.mjs +1 -1
- package/esm2022/common/interface.mjs +1 -1
- package/esm2022/common/public_api.mjs +1 -1
- package/esm2022/datepicker/datepicker.module.mjs +1 -1
- package/esm2022/datepicker/datepicker.props.mjs +1 -1
- package/esm2022/datepicker/datepicker.type.mjs +143 -143
- package/esm2022/datepicker/public_api.mjs +1 -1
- package/esm2022/extension/public_api.mjs +1 -1
- package/esm2022/extension/value-changes-extension.mjs +1 -1
- package/esm2022/flex/flex.module.mjs +1 -1
- package/esm2022/flex/flex.type.mjs +35 -35
- package/esm2022/flex/public_api.mjs +1 -1
- package/esm2022/form-field/form-field.module.mjs +1 -1
- package/esm2022/form-field/form-field.props.mjs +1 -1
- package/esm2022/form-field/form-field.wrapper.mjs +139 -139
- package/esm2022/form-field/public_api.mjs +1 -1
- package/esm2022/grid/grid.module.mjs +1 -1
- package/esm2022/grid/grid.props.mjs +1 -1
- package/esm2022/grid/grid.type.mjs +59 -59
- package/esm2022/grid/public_api.mjs +1 -1
- package/esm2022/helpers/common.mjs +12 -3
- package/esm2022/helpers/formly.mjs +14 -14
- package/esm2022/helpers/public_api.mjs +1 -1
- package/esm2022/index.mjs +1 -1
- package/esm2022/input/input.config.mjs +1 -1
- package/esm2022/input/input.module.mjs +1 -1
- package/esm2022/input/input.props.mjs +1 -1
- package/esm2022/input/input.type.mjs +283 -283
- package/esm2022/input/public_api.mjs +1 -1
- package/esm2022/input-group/input-group.module.mjs +1 -1
- package/esm2022/input-group/input-group.props.mjs +1 -1
- package/esm2022/input-group/input-group.type.mjs +43 -43
- package/esm2022/input-group/public_api.mjs +1 -1
- package/esm2022/input-number/input-number.module.mjs +1 -1
- package/esm2022/input-number/input-number.props.mjs +1 -1
- package/esm2022/input-number/input-number.type.mjs +89 -89
- package/esm2022/input-number/public_api.mjs +1 -1
- package/esm2022/lib/ui-ng-zorro-antd.mjs +1 -1
- package/esm2022/lib/ui-ng-zorro-antd.module.mjs +1 -1
- package/esm2022/radio/public_api.mjs +1 -1
- package/esm2022/radio/radio.module.mjs +1 -1
- package/esm2022/radio/radio.type.mjs +45 -45
- package/esm2022/rate/public_api.mjs +1 -1
- package/esm2022/rate/rate.module.mjs +1 -1
- package/esm2022/rate/rate.type.mjs +31 -31
- package/esm2022/ref-template/public_api.mjs +1 -1
- package/esm2022/ref-template/ref-template.module.mjs +1 -1
- package/esm2022/ref-template/ref-template.type.mjs +9 -9
- package/esm2022/select/public_api.mjs +1 -1
- package/esm2022/select/select.module.mjs +1 -1
- package/esm2022/select/select.props.mjs +1 -1
- package/esm2022/select/select.type.mjs +103 -103
- package/esm2022/slider/public_api.mjs +1 -1
- package/esm2022/slider/slider.module.mjs +1 -1
- package/esm2022/slider/slider.type.mjs +31 -31
- package/esm2022/space/public_api.mjs +1 -1
- package/esm2022/space/space.module.mjs +1 -1
- package/esm2022/space/space.type.mjs +25 -25
- package/esm2022/switch/public_api.mjs +1 -1
- package/esm2022/switch/switch.module.mjs +1 -1
- package/esm2022/switch/switch.type.mjs +23 -23
- package/esm2022/tabs/public_api.mjs +1 -1
- package/esm2022/tabs/tabs.module.mjs +1 -1
- package/esm2022/tabs/tabs.props.mjs +1 -1
- package/esm2022/tabs/tabs.wrapper.mjs +73 -73
- package/esm2022/text-value/public_api.mjs +1 -1
- package/esm2022/text-value/text-value.module.mjs +1 -1
- package/esm2022/text-value/text-value.type.mjs +9 -9
- package/esm2022/textarea/public_api.mjs +1 -1
- package/esm2022/textarea/textarea.module.mjs +1 -1
- package/esm2022/textarea/textarea.type.mjs +107 -107
- package/esm2022/timepicker/public_api.mjs +1 -1
- package/esm2022/timepicker/timepicker.module.mjs +1 -1
- package/esm2022/timepicker/timepicker.type.mjs +59 -59
- package/esm2022/transfer/public_api.mjs +1 -1
- package/esm2022/transfer/transfer.component.mjs +49 -49
- package/esm2022/transfer/transfer.module.mjs +1 -1
- package/esm2022/transfer/transfer.type.mjs +45 -45
- package/esm2022/tree-select/public_api.mjs +1 -1
- package/esm2022/tree-select/tree-select.module.mjs +1 -1
- package/esm2022/tree-select/tree-select.type.mjs +71 -71
- package/esm2022/types/public_api.mjs +1 -1
- package/esm2022/upload/public_api.mjs +1 -1
- package/esm2022/upload/upload.component.mjs +143 -143
- package/esm2022/upload/upload.module.mjs +1 -1
- package/esm2022/upload/upload.props.mjs +1 -1
- package/esm2022/upload/upload.type.mjs +83 -83
- package/extension/package.json +3 -0
- package/fesm2022/ngx-formly-zorro-antd-button-group.mjs +80 -80
- package/fesm2022/ngx-formly-zorro-antd-button-group.mjs.map +1 -1
- package/fesm2022/ngx-formly-zorro-antd-button.mjs +118 -118
- package/fesm2022/ngx-formly-zorro-antd-button.mjs.map +1 -1
- package/fesm2022/ngx-formly-zorro-antd-card-wrapper.mjs +38 -38
- package/fesm2022/ngx-formly-zorro-antd-card-wrapper.mjs.map +1 -1
- package/fesm2022/ngx-formly-zorro-antd-card.mjs +48 -48
- package/fesm2022/ngx-formly-zorro-antd-card.mjs.map +1 -1
- package/fesm2022/ngx-formly-zorro-antd-cascader.mjs +62 -62
- package/fesm2022/ngx-formly-zorro-antd-cascader.mjs.map +1 -1
- package/fesm2022/ngx-formly-zorro-antd-checkbox.mjs +44 -44
- package/fesm2022/ngx-formly-zorro-antd-checkbox.mjs.map +1 -1
- package/fesm2022/ngx-formly-zorro-antd-common.mjs.map +1 -1
- package/fesm2022/ngx-formly-zorro-antd-datepicker.mjs +142 -142
- package/fesm2022/ngx-formly-zorro-antd-datepicker.mjs.map +1 -1
- package/fesm2022/ngx-formly-zorro-antd-extension.mjs.map +1 -1
- package/fesm2022/ngx-formly-zorro-antd-flex.mjs +34 -34
- package/fesm2022/ngx-formly-zorro-antd-flex.mjs.map +1 -1
- package/fesm2022/ngx-formly-zorro-antd-form-field.mjs +138 -138
- package/fesm2022/ngx-formly-zorro-antd-form-field.mjs.map +1 -1
- package/fesm2022/ngx-formly-zorro-antd-grid.mjs +58 -58
- package/fesm2022/ngx-formly-zorro-antd-grid.mjs.map +1 -1
- package/fesm2022/ngx-formly-zorro-antd-helpers.mjs +23 -14
- package/fesm2022/ngx-formly-zorro-antd-helpers.mjs.map +1 -1
- package/fesm2022/ngx-formly-zorro-antd-input-group.mjs +42 -42
- package/fesm2022/ngx-formly-zorro-antd-input-group.mjs.map +1 -1
- package/fesm2022/ngx-formly-zorro-antd-input-number.mjs +88 -88
- package/fesm2022/ngx-formly-zorro-antd-input-number.mjs.map +1 -1
- package/fesm2022/ngx-formly-zorro-antd-input.mjs +282 -282
- package/fesm2022/ngx-formly-zorro-antd-input.mjs.map +1 -1
- package/fesm2022/ngx-formly-zorro-antd-radio.mjs +44 -44
- package/fesm2022/ngx-formly-zorro-antd-radio.mjs.map +1 -1
- package/fesm2022/ngx-formly-zorro-antd-rate.mjs +30 -30
- package/fesm2022/ngx-formly-zorro-antd-rate.mjs.map +1 -1
- package/fesm2022/ngx-formly-zorro-antd-ref-template.mjs +8 -8
- package/fesm2022/ngx-formly-zorro-antd-ref-template.mjs.map +1 -1
- package/fesm2022/ngx-formly-zorro-antd-select.mjs +102 -102
- package/fesm2022/ngx-formly-zorro-antd-select.mjs.map +1 -1
- package/fesm2022/ngx-formly-zorro-antd-slider.mjs +30 -30
- package/fesm2022/ngx-formly-zorro-antd-slider.mjs.map +1 -1
- package/fesm2022/ngx-formly-zorro-antd-space.mjs +24 -24
- package/fesm2022/ngx-formly-zorro-antd-space.mjs.map +1 -1
- package/fesm2022/ngx-formly-zorro-antd-switch.mjs +22 -22
- package/fesm2022/ngx-formly-zorro-antd-switch.mjs.map +1 -1
- package/fesm2022/ngx-formly-zorro-antd-tabs.mjs +72 -72
- package/fesm2022/ngx-formly-zorro-antd-tabs.mjs.map +1 -1
- package/fesm2022/ngx-formly-zorro-antd-text-value.mjs +8 -8
- package/fesm2022/ngx-formly-zorro-antd-text-value.mjs.map +1 -1
- package/fesm2022/ngx-formly-zorro-antd-textarea.mjs +106 -106
- package/fesm2022/ngx-formly-zorro-antd-textarea.mjs.map +1 -1
- package/fesm2022/ngx-formly-zorro-antd-timepicker.mjs +58 -58
- package/fesm2022/ngx-formly-zorro-antd-timepicker.mjs.map +1 -1
- package/fesm2022/ngx-formly-zorro-antd-transfer.mjs +92 -92
- package/fesm2022/ngx-formly-zorro-antd-transfer.mjs.map +1 -1
- package/fesm2022/ngx-formly-zorro-antd-tree-select.mjs +70 -70
- package/fesm2022/ngx-formly-zorro-antd-tree-select.mjs.map +1 -1
- package/fesm2022/ngx-formly-zorro-antd-upload.mjs +224 -224
- package/fesm2022/ngx-formly-zorro-antd-upload.mjs.map +1 -1
- package/fesm2022/ngx-formly-zorro-antd.mjs.map +1 -1
- package/flex/package.json +3 -0
- package/form-field/package.json +3 -0
- package/grid/package.json +3 -0
- package/grid/public_api.d.ts +1 -1
- package/helpers/common.d.ts +4 -1
- package/helpers/formly.d.ts +7 -7
- package/helpers/package.json +3 -0
- package/input/package.json +3 -0
- package/input-group/package.json +3 -0
- package/input-number/package.json +3 -0
- package/package.json +9 -8
- package/radio/package.json +3 -0
- package/rate/package.json +3 -0
- package/ref-template/package.json +3 -0
- package/select/package.json +3 -0
- package/slider/package.json +3 -0
- package/space/package.json +3 -0
- package/switch/package.json +3 -0
- package/tabs/package.json +3 -0
- package/text-value/package.json +3 -0
- package/textarea/package.json +3 -0
- package/timepicker/package.json +3 -0
- package/transfer/package.json +3 -0
- package/tree-select/package.json +3 -0
- package/types/package.json +3 -0
- package/upload/package.json +3 -0
@@ -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';\r\nimport type { NzSafeAny } from 'ng-zorro-antd/core/types';\r\n\r\nexport function field<T = NzFormlyFieldConfig>(\r\n key: string,\r\n type = 'input',\r\n label: string = '',\r\n props: ControlOptions & {\r\n [key: string]: NzSafeAny;\r\n } = {},\r\n otherOptions: NzFormlyFieldConfig = {}\r\n): T {\r\n const returner: NzFormlyFieldConfig = { key, type };\r\n returner.props = Object.assign({ label, ...props });\r\n\r\n const className = key ? `formly-${key}` : '';\r\n otherOptions.className = otherOptions.className ? `${otherOptions.className} ${className}` : className;\r\n\r\n return { ...returner, ...otherOptions } as T;\r\n}\r\nexport function requiredField<T = NzFormlyFieldConfig>(\r\n key: string,\r\n type = 'input',\r\n label: string = '',\r\n props: ControlOptions & {\r\n [key: string]: NzSafeAny;\r\n } = {},\r\n otherOptions: NzFormlyFieldConfig = {}\r\n) {\r\n return field<T>(key, type, label, { ...props, required: true }, otherOptions);\r\n}\r\nexport function hidden(key: string): NzFormlyFieldConfig {\r\n return { key, type: 'input', hide: true };\r\n}\r\n","import { FormlyFieldConfig } from '@ngx-formly/core';\r\nimport { field, requiredField } from './common';\r\nimport type { FormlyButtonFieldConfig, ButtonProps } from 'ngx-formly-zorro-antd/button';\r\nimport type { FormlyButtonGroupFieldConfig, ButtonGroupProps } from 'ngx-formly-zorro-antd/button-group';\r\nimport type { FormlyCardFieldConfig, CardProps } from 'ngx-formly-zorro-antd/card';\r\nimport type { FormlyCascaderFieldConfig, CascaderProps } from 'ngx-formly-zorro-antd/cascader';\r\nimport type { FormlyCheckboxFieldConfig, CheckboxProps } from 'ngx-formly-zorro-antd/checkbox';\r\nimport type { FormlyDatepickerFieldConfig, DatepickerProps } from 'ngx-formly-zorro-antd/datepicker';\r\nimport type { FormlyFlexFieldConfig, FlexProps } from 'ngx-formly-zorro-antd/flex';\r\nimport type { FormlyGridFieldConfig, GridColProps } from 'ngx-formly-zorro-antd/grid';\r\nimport type { FormlyInputFieldConfig, FormlyInputProps } from 'ngx-formly-zorro-antd/input';\r\nimport type { FormlyInputGroupFieldConfig, FormlyInputGroupProps } from 'ngx-formly-zorro-antd/input-group';\r\nimport type { FormlyInputNumberFieldConfig, InputNumberProps } from 'ngx-formly-zorro-antd/input-number';\r\nimport type { FormlyRadioFieldConfig, RadioProps } from 'ngx-formly-zorro-antd/radio';\r\nimport type { FormlyRateFieldConfig, RateProps } from 'ngx-formly-zorro-antd/rate';\r\nimport type { FormlyRefTemplateFieldConfig, RefTemplateProps } from 'ngx-formly-zorro-antd/ref-template';\r\nimport type { FormlySelectFieldConfig, SelectProps } from 'ngx-formly-zorro-antd/select';\r\nimport type { FormlySlideFieldConfig, SlideProps } from 'ngx-formly-zorro-antd/slider';\r\nimport type { FormlySpaceFieldConfig, SpaceProps } from 'ngx-formly-zorro-antd/space';\r\nimport type { FormlySwitchFieldConfig, SwitchProps } from 'ngx-formly-zorro-antd/switch';\r\nimport type { FormlyTextValueFieldConfig, TextValueProps } from 'ngx-formly-zorro-antd/text-value';\r\nimport type { FormlyTextareaFieldConfig, TextareaProps } from 'ngx-formly-zorro-antd/textarea';\r\nimport type { FormlyTimepickerFieldConfig, TimepickerProps } from 'ngx-formly-zorro-antd/timepicker';\r\nimport type { FormlyTransferFieldConfig, TransferProps } from 'ngx-formly-zorro-antd/transfer';\r\nimport type { FormlyTreeSelectFieldConfig, TreeSelectProps } from 'ngx-formly-zorro-antd/tree-select';\r\nimport type { FormlyUploadFieldConfig, UploadProps } from 'ngx-formly-zorro-antd/upload';\r\n\r\nexport function treeSelect(\r\n key: string,\r\n label: string = '',\r\n props: TreeSelectProps = {},\r\n otherOptions: FormlyFieldConfig = {}\r\n): FormlyTreeSelectFieldConfig {\r\n return field<FormlyTreeSelectFieldConfig>(key, 'tree-select', label, props, otherOptions);\r\n}\r\nexport function requiredTreeSelect(\r\n key: string,\r\n label: string = '',\r\n props: TreeSelectProps = {},\r\n otherOptions: FormlyFieldConfig = {}\r\n): FormlyTreeSelectFieldConfig {\r\n return requiredField<FormlyTreeSelectFieldConfig>(key, 'tree-select', label, props, otherOptions);\r\n}\r\nexport function transfer(\r\n key: string,\r\n label: string = '',\r\n props: TransferProps = {},\r\n otherOptions: FormlyFieldConfig = {}\r\n): FormlyTransferFieldConfig {\r\n return field<FormlyTransferFieldConfig>(key, 'transfer', label, props, otherOptions);\r\n}\r\nexport function requiredTransfer(\r\n key: string,\r\n label: string = '',\r\n props: TransferProps = {},\r\n otherOptions: FormlyFieldConfig = {}\r\n): FormlyTransferFieldConfig {\r\n return requiredField<FormlyTransferFieldConfig>(key, 'transfer', label, props, otherOptions);\r\n}\r\nexport function timepicker(\r\n key: string,\r\n label: string = '',\r\n props: TimepickerProps = {},\r\n otherOptions: FormlyFieldConfig = {}\r\n): FormlyTimepickerFieldConfig {\r\n return field<FormlyTimepickerFieldConfig>(key, 'timepicker', label, props, otherOptions);\r\n}\r\nexport function requiredTimepicker(\r\n key: string,\r\n label: string = '',\r\n props: TimepickerProps = {},\r\n otherOptions: FormlyFieldConfig = {}\r\n): FormlyTimepickerFieldConfig {\r\n return requiredField<FormlyTimepickerFieldConfig>(key, 'timepicker', label, props, otherOptions);\r\n}\r\nexport function input(\r\n key: string,\r\n label: string = '',\r\n props: FormlyInputProps = {},\r\n otherOptions: FormlyFieldConfig = {}\r\n): FormlyInputFieldConfig {\r\n return field<FormlyInputFieldConfig>(key, 'input', label, props, otherOptions);\r\n}\r\nexport function requiredInput(\r\n key: string,\r\n label: string = '',\r\n props: FormlyInputProps = {},\r\n otherOptions: FormlyFieldConfig = {}\r\n): FormlyInputFieldConfig {\r\n return requiredField<FormlyInputFieldConfig>(key, 'input', label, props, otherOptions);\r\n}\r\nexport function textArea(\r\n key: string,\r\n label: string = '',\r\n props: TextareaProps = {},\r\n otherOptions: FormlyFieldConfig = {}\r\n): FormlyTextareaFieldConfig {\r\n return field<FormlyTextareaFieldConfig>(key, 'textarea', label, props, otherOptions);\r\n}\r\nexport function requiredTextArea(\r\n key: string,\r\n label: string = '',\r\n props: TextareaProps = {},\r\n otherOptions: FormlyFieldConfig = {}\r\n): FormlyTextareaFieldConfig {\r\n return requiredField<FormlyTextareaFieldConfig>(key, 'textarea', label, props, otherOptions);\r\n}\r\nexport function checkbox(\r\n key: string,\r\n label: string = '',\r\n props: CheckboxProps = {},\r\n otherOptions: FormlyFieldConfig = {}\r\n): FormlyCheckboxFieldConfig {\r\n return field<FormlyCheckboxFieldConfig>(key, 'checkbox', label, props, otherOptions);\r\n}\r\nexport function requiredCheckbox(\r\n key: string,\r\n label: string = '',\r\n props: CheckboxProps = {},\r\n otherOptions: FormlyFieldConfig = {}\r\n): FormlyCheckboxFieldConfig {\r\n return requiredField<FormlyCheckboxFieldConfig>(key, 'checkbox', label, props, otherOptions);\r\n}\r\nexport function cascader(\r\n key: string,\r\n label: string = '',\r\n props: CascaderProps = {},\r\n otherOptions: FormlyFieldConfig = {}\r\n): FormlyCascaderFieldConfig {\r\n return field<FormlyCascaderFieldConfig>(key, 'cascader', label, props, otherOptions);\r\n}\r\nexport function requiredCascader(\r\n key: string,\r\n label: string = '',\r\n props: CascaderProps = {},\r\n otherOptions: FormlyFieldConfig = {}\r\n): FormlyCascaderFieldConfig {\r\n return requiredField<FormlyCascaderFieldConfig>(key, 'cascader', label, props, otherOptions);\r\n}\r\nexport function datepicker(\r\n key: string,\r\n label: string = '',\r\n props: DatepickerProps = {},\r\n otherOptions: FormlyFieldConfig = {}\r\n): FormlyDatepickerFieldConfig {\r\n return field<FormlyDatepickerFieldConfig>(key, 'datepicker', label, props, otherOptions);\r\n}\r\nexport function requiredDatepicker(\r\n key: string,\r\n label: string = '',\r\n props: DatepickerProps = {},\r\n otherOptions: FormlyFieldConfig = {}\r\n): FormlyDatepickerFieldConfig {\r\n return requiredField<FormlyDatepickerFieldConfig>(key, 'datepicker', label, props, otherOptions);\r\n}\r\nexport function number(\r\n key: string,\r\n label: string = '',\r\n props: InputNumberProps = {},\r\n otherOptions: FormlyFieldConfig = {}\r\n): FormlyInputNumberFieldConfig {\r\n return field<FormlyInputNumberFieldConfig>(key, 'number', label, props, otherOptions);\r\n}\r\nexport function requiredNumber(\r\n key: string,\r\n label: string = '',\r\n props: InputNumberProps = {},\r\n otherOptions: FormlyFieldConfig = {}\r\n): FormlyInputNumberFieldConfig {\r\n return requiredField<FormlyInputNumberFieldConfig>(key, 'number', label, props, otherOptions);\r\n}\r\n/** 选择器 */\r\nexport function select(\r\n key: string,\r\n label: string = '',\r\n props: SelectProps = {},\r\n otherOptions: FormlyFieldConfig = {}\r\n): FormlySelectFieldConfig {\r\n return field<FormlySelectFieldConfig>(key, 'select', label, props, otherOptions);\r\n}\r\n/** 选择器 */\r\nexport function requiredSelect(\r\n key: string,\r\n label: string = '',\r\n props: SelectProps = {},\r\n otherOptions: FormlyFieldConfig = {}\r\n): FormlySelectFieldConfig {\r\n return requiredField<FormlySelectFieldConfig>(key, 'select', label, props, otherOptions);\r\n}\r\n/** 上传 */\r\nexport function upload(\r\n key: string,\r\n label: string = '',\r\n props: UploadProps = { fileList: [] },\r\n otherOptions: FormlyFieldConfig = {}\r\n): FormlyUploadFieldConfig {\r\n return field<FormlyUploadFieldConfig>(key, 'upload', label, props, otherOptions);\r\n}\r\n/** 上传 */\r\nexport function requiredUpload(\r\n key: string,\r\n label: string = '',\r\n props: UploadProps = { fileList: [] },\r\n otherOptions: FormlyFieldConfig = {}\r\n): FormlyUploadFieldConfig {\r\n return requiredField<FormlyUploadFieldConfig>(key, 'upload', label, props, otherOptions);\r\n}\r\n/** 单选框 */\r\nexport function radio(\r\n key: string,\r\n label: string = '',\r\n props: RadioProps = {},\r\n otherOptions: FormlyFieldConfig = {}\r\n): FormlyRadioFieldConfig {\r\n return field<FormlyRadioFieldConfig>(key, 'radio', label, props, otherOptions);\r\n}\r\n/** 单选框 */\r\nexport function requiredRadio(\r\n key: string,\r\n label: string = '',\r\n props: RadioProps = {},\r\n otherOptions: FormlyFieldConfig = {}\r\n): FormlyRadioFieldConfig {\r\n return requiredField<FormlyRadioFieldConfig>(key, 'radio', label, props, otherOptions);\r\n}\r\n/** 评分 */\r\nexport function rate(\r\n key: string,\r\n label: string = '',\r\n props: RateProps = {},\r\n otherOptions: FormlyFieldConfig = {}\r\n): FormlyRateFieldConfig {\r\n return field<FormlyRateFieldConfig>(key, 'rate', label, props, otherOptions);\r\n}\r\n/** 评分 */\r\nexport function requiredRate(\r\n key: string,\r\n label: string = '',\r\n props: RateProps = {},\r\n otherOptions: FormlyFieldConfig = {}\r\n): FormlyRateFieldConfig {\r\n return requiredField<FormlyRateFieldConfig>(key, 'rate', label, props, otherOptions);\r\n}\r\n/** 开关 */\r\nexport function requiredSwitch(\r\n key: string,\r\n label: string = '',\r\n props: SwitchProps = {},\r\n otherOptions: FormlyFieldConfig = {}\r\n): FormlySwitchFieldConfig {\r\n return requiredField<FormlySwitchFieldConfig>(key, 'switch', label, props, otherOptions);\r\n}\r\n/** 滑动输入条 */\r\nexport function slider(\r\n key: string,\r\n label: string = '',\r\n props: SlideProps = {},\r\n otherOptions: FormlyFieldConfig = {}\r\n): FormlySlideFieldConfig {\r\n return field<FormlySlideFieldConfig>(key, 'slider', label, props, otherOptions);\r\n}\r\n/** 滑动输入条 */\r\nexport function requiredSlide(\r\n key: string,\r\n label: string = '',\r\n props: SlideProps = {},\r\n otherOptions: FormlyFieldConfig = {}\r\n): FormlySlideFieldConfig {\r\n return requiredField<FormlySlideFieldConfig>(key, 'slider', label, props, otherOptions);\r\n}\r\n\r\n/** 文本显示 */\r\nexport function text(props: TextValueProps = {}, otherOptions: FormlyFieldConfig = {}): FormlyTextValueFieldConfig {\r\n return field<FormlyTextValueFieldConfig>('', 'text', '', props, otherOptions);\r\n}\r\n/** 输入组 */\r\nexport function inputGroup(\r\n props: FormlyInputGroupProps = {},\r\n otherOptions: FormlyFieldConfig = {}\r\n): FormlyInputGroupFieldConfig {\r\n return field<FormlyInputGroupFieldConfig>('', 'input-group', '', props, otherOptions);\r\n}\r\n/** 间距 */\r\nexport function space(props: SpaceProps = {}, otherOptions: FormlyFieldConfig = {}): FormlySpaceFieldConfig {\r\n return field<FormlySpaceFieldConfig>('', 'space', '', props, otherOptions);\r\n}\r\n/** 模板 */\r\nexport function ref(props: RefTemplateProps = {}, otherOptions: FormlyFieldConfig = {}): FormlyRefTemplateFieldConfig {\r\n return field<FormlyRefTemplateFieldConfig>('', 'ref-template', '', props, otherOptions);\r\n}\r\n/** 栅格 */\r\nexport function grid(props: GridColProps = {}, otherOptions: FormlyFieldConfig = {}): FormlyGridFieldConfig {\r\n return field<FormlyGridFieldConfig>('', 'grid', '', props, otherOptions);\r\n}\r\n/** 弹性布局 */\r\nexport function flex(props: FlexProps = {}, otherOptions: FormlyFieldConfig = {}): FormlyFlexFieldConfig {\r\n return field<FormlyFlexFieldConfig>('', 'flex', '', props, otherOptions);\r\n}\r\n/** 卡片 */\r\nexport function card(props: CardProps = {}, otherOptions: FormlyFieldConfig = {}): FormlyCardFieldConfig {\r\n return field<FormlyCardFieldConfig>('', 'card', '', props, otherOptions);\r\n}\r\n/** 按钮组 */\r\nexport function buttonGroup(\r\n props: ButtonGroupProps = {},\r\n otherOptions: FormlyFieldConfig = {}\r\n): FormlyButtonGroupFieldConfig {\r\n return field<FormlyButtonGroupFieldConfig>('', 'button-group', '', props, otherOptions);\r\n}\r\nexport function button(\r\n text: string = '',\r\n props: ButtonProps = {},\r\n otherOptions: FormlyFieldConfig = {}\r\n): FormlyButtonFieldConfig {\r\n return field<FormlyButtonFieldConfig>('', 'button', '', { text, ...props }, otherOptions);\r\n}\r\nexport function submit(\r\n text: string = '',\r\n props: ButtonProps = {},\r\n otherOptions: FormlyFieldConfig = {}\r\n): FormlyButtonFieldConfig {\r\n return field<FormlyButtonFieldConfig>('', 'submit', '', { text, ...props }, otherOptions);\r\n}\r\nexport function reset(\r\n text: string = '',\r\n props: ButtonProps = {},\r\n otherOptions: FormlyFieldConfig = {}\r\n): FormlyButtonFieldConfig {\r\n return field<FormlyButtonFieldConfig>('', 'reset', '', { text, ...props }, otherOptions);\r\n}\r\n","import { field, requiredField, hidden } from './common';\r\nimport { FormlyFieldConfig } from '@ngx-formly/core';\r\nimport {\r\n input,\r\n requiredInput,\r\n textArea,\r\n requiredTextArea,\r\n checkbox,\r\n requiredCheckbox,\r\n cascader,\r\n requiredCascader,\r\n number,\r\n requiredNumber,\r\n radio,\r\n requiredRadio,\r\n rate,\r\n requiredRate,\r\n datepicker,\r\n requiredDatepicker,\r\n requiredSwitch,\r\n upload,\r\n requiredUpload,\r\n slider,\r\n requiredSlide,\r\n select,\r\n requiredSelect,\r\n treeSelect,\r\n requiredTreeSelect,\r\n transfer,\r\n requiredTransfer,\r\n timepicker,\r\n requiredTimepicker,\r\n text,\r\n button,\r\n buttonGroup,\r\n submit,\r\n reset,\r\n space,\r\n ref,\r\n grid,\r\n flex,\r\n card,\r\n inputGroup\r\n} from './formly';\r\nimport type { FormlySwitchFieldConfig, SwitchProps } from 'ngx-formly-zorro-antd/switch';\r\n\r\nexport const formly = {\r\n field,\r\n requiredField,\r\n hidden,\r\n input,\r\n requiredInput,\r\n textArea,\r\n requiredTextArea,\r\n checkbox,\r\n requiredCheckbox,\r\n cascader,\r\n requiredCascader,\r\n number,\r\n requiredNumber,\r\n radio,\r\n requiredRadio,\r\n rate,\r\n requiredRate,\r\n datepicker,\r\n requiredDatepicker,\r\n /** 开关 */\r\n switch: (key: string, label: string = '', props: SwitchProps = {}, otherOptions: FormlyFieldConfig = {}) => {\r\n return field<FormlySwitchFieldConfig>(key, 'switch', label, props, otherOptions);\r\n },\r\n requiredSwitch,\r\n upload,\r\n requiredUpload,\r\n slider,\r\n requiredSlide,\r\n select,\r\n requiredSelect,\r\n treeSelect,\r\n requiredTreeSelect,\r\n transfer,\r\n requiredTransfer,\r\n timepicker,\r\n requiredTimepicker,\r\n text,\r\n space,\r\n inputGroup,\r\n ref,\r\n grid,\r\n flex,\r\n card,\r\n button,\r\n buttonGroup,\r\n submit,\r\n reset\r\n};\r\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,E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ACD,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 = '',\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 fieldSingle<T = NzFormlyFieldConfig>(\n key: string,\n type = 'input',\n label = '',\n options: NzFormlyFieldConfig<ControlOptions> = {}\n): T {\n return field<T>(key, type, label, {}, options);\n}\nexport function requiredField<T = NzFormlyFieldConfig>(\n key: string,\n type = 'input',\n label = '',\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 requiredFieldSingle<T = NzFormlyFieldConfig>(\n key: string,\n type = 'input',\n label = '',\n options: NzFormlyFieldConfig<ControlOptions> = {}\n) {\n return field<T>(key, type, label, { required: true }, options);\n}\nexport function hide(key: string, type = 'input', options: NzFormlyFieldConfig = {}): NzFormlyFieldConfig {\n return { key, type, hide: true, ...options };\n}\n\nexport function hidden(key: string, type = 'input', options: NzFormlyFieldConfig = {}): NzFormlyFieldConfig {\n return { key, type, className: 'hidden', ...options };\n}\n","import { FormlyFieldConfig } from '@ngx-formly/core';\nimport { field, fieldSingle, 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, GridProps } 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 = '',\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 = '',\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 = '',\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 = '',\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 = '',\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 = '',\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 = '',\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 = '',\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 = '',\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 = '',\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 = '',\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 = '',\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 = '',\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 = '',\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 = '',\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 = '',\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 = '',\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 = '',\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 = '',\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 = '',\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 = '',\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 = '',\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 = '',\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 = '',\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 = '',\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 = '',\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 = '',\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 = '',\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 = '',\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(options: FormlyFieldConfig<FormlyInputGroupProps> = {}): FormlyInputGroupFieldConfig {\n return fieldSingle<FormlyInputGroupFieldConfig>('', 'input-group', '', options);\n}\n/** 间距 */\nexport function space(options: FormlyFieldConfig<SpaceProps> = {}): FormlySpaceFieldConfig {\n return fieldSingle<FormlySpaceFieldConfig>('', 'space', '', options);\n}\n/** 模板 */\nexport function ref(props: RefTemplateProps = {}, otherOptions: FormlyFieldConfig = {}): FormlyRefTemplateFieldConfig {\n return field<FormlyRefTemplateFieldConfig>('', 'ref-template', '', props, otherOptions);\n}\n/** 栅格 */\nexport function grid(options: FormlyFieldConfig<GridProps> = {}): FormlyGridFieldConfig {\n return fieldSingle<FormlyGridFieldConfig>('', 'grid', '', options);\n}\n/** 弹性布局 */\nexport function flex(options: FormlyFieldConfig<FlexProps> = {}): FormlyFlexFieldConfig {\n return fieldSingle<FormlyFlexFieldConfig>('', 'flex', '', options);\n}\n/** 卡片 */\nexport function card(options: FormlyFieldConfig<CardProps> = {}): FormlyCardFieldConfig {\n return fieldSingle<FormlyCardFieldConfig>('', 'card', '', options);\n}\n/** 按钮组 */\nexport function buttonGroup(options: FormlyFieldConfig<ButtonGroupProps> = {}): FormlyButtonGroupFieldConfig {\n return fieldSingle<FormlyButtonGroupFieldConfig>('', 'button-group', '', options);\n}\nexport function button(\n text = '',\n props: ButtonProps = {},\n otherOptions: FormlyFieldConfig = {}\n): FormlyButtonFieldConfig {\n return field<FormlyButtonFieldConfig>('', 'button', '', { text, ...props }, otherOptions);\n}\nexport function submit(\n text = '',\n props: ButtonProps = {},\n otherOptions: FormlyFieldConfig = {}\n): FormlyButtonFieldConfig {\n return field<FormlyButtonFieldConfig>('', 'submit', '', { text, ...props }, otherOptions);\n}\nexport function reset(\n text = '',\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,KAAK,GAAG,EAAE,EACV,QAEI,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,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,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;;;;"}
|
@@ -21,54 +21,54 @@ class FormlyFieldInputGroup extends FieldType {
|
|
21
21
|
};
|
22
22
|
}
|
23
23
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.12", ngImport: i0, type: FormlyFieldInputGroup, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
|
24
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "18.2.12", type: FormlyFieldInputGroup, selector: "formly-field-input-group", usesInheritance: true, ngImport: i0, template: `
|
25
|
-
<nz-input-group
|
26
|
-
[nzPrefixIcon]="props['prefixIcon']"
|
27
|
-
[nzSuffixIcon]="props['suffixIcon']"
|
28
|
-
[nzAddOnAfterIcon]="props['addOnAfterIcon']"
|
29
|
-
[nzAddOnBeforeIcon]="props['addOnBeforeIcon']"
|
30
|
-
[nzAddOnBefore]="props['addOnBefore']"
|
31
|
-
[nzAddOnAfter]="props['addOnAfter']"
|
32
|
-
[nzPrefix]="props['prefix']"
|
33
|
-
[nzSuffix]="props['suffix']"
|
34
|
-
[nzCompact]="!!props['compact']"
|
35
|
-
[nzSearch]="!!props['search']"
|
36
|
-
[nzSize]="props['size']!"
|
37
|
-
[nzStatus]="props['status']!"
|
38
|
-
[class]="props['className']"
|
39
|
-
[style]="props['style']"
|
40
|
-
>
|
41
|
-
@for (g of field.fieldGroup; track g.id) {
|
42
|
-
<formly-field [field]="g"></formly-field>
|
43
|
-
}
|
44
|
-
</nz-input-group>
|
24
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "18.2.12", type: FormlyFieldInputGroup, selector: "formly-field-input-group", usesInheritance: true, ngImport: i0, template: `
|
25
|
+
<nz-input-group
|
26
|
+
[nzPrefixIcon]="props['prefixIcon']"
|
27
|
+
[nzSuffixIcon]="props['suffixIcon']"
|
28
|
+
[nzAddOnAfterIcon]="props['addOnAfterIcon']"
|
29
|
+
[nzAddOnBeforeIcon]="props['addOnBeforeIcon']"
|
30
|
+
[nzAddOnBefore]="props['addOnBefore']"
|
31
|
+
[nzAddOnAfter]="props['addOnAfter']"
|
32
|
+
[nzPrefix]="props['prefix']"
|
33
|
+
[nzSuffix]="props['suffix']"
|
34
|
+
[nzCompact]="!!props['compact']"
|
35
|
+
[nzSearch]="!!props['search']"
|
36
|
+
[nzSize]="props['size']!"
|
37
|
+
[nzStatus]="props['status']!"
|
38
|
+
[class]="props['className']"
|
39
|
+
[style]="props['style']"
|
40
|
+
>
|
41
|
+
@for (g of field.fieldGroup; track g.id) {
|
42
|
+
<formly-field [field]="g"></formly-field>
|
43
|
+
}
|
44
|
+
</nz-input-group>
|
45
45
|
`, isInline: true, dependencies: [{ kind: "component", type: i1.NzInputGroupComponent, selector: "nz-input-group", inputs: ["nzAddOnBeforeIcon", "nzAddOnAfterIcon", "nzPrefixIcon", "nzSuffixIcon", "nzAddOnBefore", "nzAddOnAfter", "nzPrefix", "nzStatus", "nzSuffix", "nzSize", "nzSearch", "nzCompact"], exportAs: ["nzInputGroup"] }, { kind: "directive", type: i1.NzInputGroupWhitSuffixOrPrefixDirective, selector: "nz-input-group[nzSuffix], nz-input-group[nzPrefix]" }, { kind: "component", type: i2.FormlyField, selector: "formly-field", inputs: ["field"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
46
46
|
}
|
47
47
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.12", ngImport: i0, type: FormlyFieldInputGroup, decorators: [{
|
48
48
|
type: Component,
|
49
49
|
args: [{
|
50
50
|
selector: 'formly-field-input-group',
|
51
|
-
template: `
|
52
|
-
<nz-input-group
|
53
|
-
[nzPrefixIcon]="props['prefixIcon']"
|
54
|
-
[nzSuffixIcon]="props['suffixIcon']"
|
55
|
-
[nzAddOnAfterIcon]="props['addOnAfterIcon']"
|
56
|
-
[nzAddOnBeforeIcon]="props['addOnBeforeIcon']"
|
57
|
-
[nzAddOnBefore]="props['addOnBefore']"
|
58
|
-
[nzAddOnAfter]="props['addOnAfter']"
|
59
|
-
[nzPrefix]="props['prefix']"
|
60
|
-
[nzSuffix]="props['suffix']"
|
61
|
-
[nzCompact]="!!props['compact']"
|
62
|
-
[nzSearch]="!!props['search']"
|
63
|
-
[nzSize]="props['size']!"
|
64
|
-
[nzStatus]="props['status']!"
|
65
|
-
[class]="props['className']"
|
66
|
-
[style]="props['style']"
|
67
|
-
>
|
68
|
-
@for (g of field.fieldGroup; track g.id) {
|
69
|
-
<formly-field [field]="g"></formly-field>
|
70
|
-
}
|
71
|
-
</nz-input-group>
|
51
|
+
template: `
|
52
|
+
<nz-input-group
|
53
|
+
[nzPrefixIcon]="props['prefixIcon']"
|
54
|
+
[nzSuffixIcon]="props['suffixIcon']"
|
55
|
+
[nzAddOnAfterIcon]="props['addOnAfterIcon']"
|
56
|
+
[nzAddOnBeforeIcon]="props['addOnBeforeIcon']"
|
57
|
+
[nzAddOnBefore]="props['addOnBefore']"
|
58
|
+
[nzAddOnAfter]="props['addOnAfter']"
|
59
|
+
[nzPrefix]="props['prefix']"
|
60
|
+
[nzSuffix]="props['suffix']"
|
61
|
+
[nzCompact]="!!props['compact']"
|
62
|
+
[nzSearch]="!!props['search']"
|
63
|
+
[nzSize]="props['size']!"
|
64
|
+
[nzStatus]="props['status']!"
|
65
|
+
[class]="props['className']"
|
66
|
+
[style]="props['style']"
|
67
|
+
>
|
68
|
+
@for (g of field.fieldGroup; track g.id) {
|
69
|
+
<formly-field [field]="g"></formly-field>
|
70
|
+
}
|
71
|
+
</nz-input-group>
|
72
72
|
`,
|
73
73
|
changeDetection: ChangeDetectionStrategy.OnPush,
|
74
74
|
standalone: false
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"ngx-formly-zorro-antd-input-group.mjs","sources":["../../../../packages/formlyantd/input-group/src/input-group.type.ts","../../../../packages/formlyantd/input-group/src/input-group.module.ts","../../../../packages/formlyantd/input-group/src/ngx-formly-zorro-antd-input-group.ts"],"sourcesContent":["import { Component, Type, ChangeDetectionStrategy } from '@angular/core';\
|
1
|
+
{"version":3,"file":"ngx-formly-zorro-antd-input-group.mjs","sources":["../../../../packages/formlyantd/input-group/src/input-group.type.ts","../../../../packages/formlyantd/input-group/src/input-group.module.ts","../../../../packages/formlyantd/input-group/src/ngx-formly-zorro-antd-input-group.ts"],"sourcesContent":["import { Component, Type, ChangeDetectionStrategy } from '@angular/core';\nimport { FieldType, FieldTypeConfig } from '@ngx-formly/core';\nimport type { NzFormlyFieldConfig } from 'ngx-formly-zorro-antd/common';\nimport type { InputGroupProps } from './input-group.props';\n\nexport interface FormlyInputGroupFieldConfig extends NzFormlyFieldConfig<InputGroupProps> {\n type: 'input-group' | Type<FormlyFieldInputGroup>;\n}\n/**\n * @private\n */\n@Component({\n selector: 'formly-field-input-group',\n template: `\n <nz-input-group\n [nzPrefixIcon]=\"props['prefixIcon']\"\n [nzSuffixIcon]=\"props['suffixIcon']\"\n [nzAddOnAfterIcon]=\"props['addOnAfterIcon']\"\n [nzAddOnBeforeIcon]=\"props['addOnBeforeIcon']\"\n [nzAddOnBefore]=\"props['addOnBefore']\"\n [nzAddOnAfter]=\"props['addOnAfter']\"\n [nzPrefix]=\"props['prefix']\"\n [nzSuffix]=\"props['suffix']\"\n [nzCompact]=\"!!props['compact']\"\n [nzSearch]=\"!!props['search']\"\n [nzSize]=\"props['size']!\"\n [nzStatus]=\"props['status']!\"\n [class]=\"props['className']\"\n [style]=\"props['style']\"\n >\n @for (g of field.fieldGroup; track g.id) {\n <formly-field [field]=\"g\"></formly-field>\n }\n </nz-input-group>\n `,\n changeDetection: ChangeDetectionStrategy.OnPush,\n standalone: false\n})\nexport class FormlyFieldInputGroup extends FieldType<FieldTypeConfig<InputGroupProps>> {\n override defaultOptions = {\n props: {\n status: '' as const,\n size: 'default' as const\n }\n };\n}\n","import { NgModule } from '@angular/core';\nimport { CommonModule } from '@angular/common';\nimport { FormlyModule } from '@ngx-formly/core';\nimport { FormlyNzFormFieldModule } from 'ngx-formly-zorro-antd/form-field';\n\nimport { FormlyFieldInputGroup } from './input-group.type';\nimport { NzInputModule } from 'ng-zorro-antd/input';\n\n@NgModule({\n declarations: [FormlyFieldInputGroup],\n imports: [\n CommonModule,\n NzInputModule,\n\n FormlyNzFormFieldModule,\n FormlyModule.forChild({\n types: [\n {\n name: 'input-group',\n component: FormlyFieldInputGroup,\n wrappers: ['form-field']\n }\n ]\n })\n ]\n})\nexport class FormlyNzInputGroupModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public_api';\n"],"names":["i1"],"mappings":";;;;;;;;;AAQA;;AAEG;AA4BG,MAAO,qBAAsB,SAAQ,SAA2C,CAAA;AA3BtF,IAAA,WAAA,GAAA;;AA4BW,QAAA,IAAA,CAAA,cAAc,GAAG;AACxB,YAAA,KAAK,EAAE;AACL,gBAAA,MAAM,EAAE,EAAW;AACnB,gBAAA,IAAI,EAAE,SAAkB;AACzB,aAAA;SACF,CAAC;AACH,KAAA;+GAPY,qBAAqB,EAAA,IAAA,EAAA,IAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA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 +35,100 @@ class FormlyFieldInputNumber extends FieldType {
|
|
35
35
|
};
|
36
36
|
}
|
37
37
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.12", ngImport: i0, type: FormlyFieldInputNumber, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
|
38
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "18.2.12", type: FormlyFieldInputNumber, selector: "formly-field-inputnumber", usesInheritance: true, ngImport: i0, template: `
|
39
|
-
@switch (props.type) {
|
40
|
-
@case ('group') {
|
41
|
-
<nz-input-number-group
|
42
|
-
[class]="props['className']"
|
43
|
-
[nzAddOnAfter]="props['addOnAfter']"
|
44
|
-
[nzAddOnBefore]="props['addOnBefore']"
|
45
|
-
[nzPrefix]="props['prefix']"
|
46
|
-
[nzSuffix]="props['suffix']"
|
47
|
-
[nzPrefixIcon]="props['prefixIcon']"
|
48
|
-
[nzSuffixIcon]="props['suffixIcon']"
|
49
|
-
[nzCompact]="props['compact']"
|
50
|
-
>
|
51
|
-
<ng-container *ngTemplateOutlet="inputNumberTpl"></ng-container>
|
52
|
-
</nz-input-number-group>
|
53
|
-
}
|
54
|
-
@default {
|
55
|
-
<ng-template [ngTemplateOutlet]="inputNumberTpl"></ng-template>
|
56
|
-
}
|
57
|
-
}
|
58
|
-
|
59
|
-
<ng-template #inputNumberTpl>
|
60
|
-
<nz-input-number
|
61
|
-
[formControl]="formControl"
|
62
|
-
[nzId]="id"
|
63
|
-
[nzMax]="props.max!"
|
64
|
-
[nzMin]="props.min!"
|
65
|
-
[nzReadOnly]="!!props.readonly"
|
66
|
-
[nzPlaceHolder]="props.placeholder ?? ''"
|
67
|
-
[nzSize]="props['size']!"
|
68
|
-
[nzStatus]="props['status']!"
|
69
|
-
[nzBorderless]="!!props['borderless']"
|
70
|
-
[nzPrecision]="props['precision']"
|
71
|
-
[nzPrecisionMode]="props['precisionMode']!"
|
72
|
-
[nzStep]="props['step'] ?? 1"
|
73
|
-
[nzFormatter]="props['formatter']!"
|
74
|
-
[nzParser]="props['parser']!"
|
75
|
-
[nzInputMode]="props['inputMode']!"
|
76
|
-
[class]="props['className']"
|
77
|
-
(ngModelChange)="props['modelChange']?.(field, $event)"
|
78
|
-
(nzFocus)="props.focus?.(field, $event)"
|
79
|
-
(nzBlur)="props.blur?.(field, $event)"
|
80
|
-
></nz-input-number>
|
81
|
-
</ng-template>
|
38
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "18.2.12", type: FormlyFieldInputNumber, selector: "formly-field-inputnumber", usesInheritance: true, ngImport: i0, template: `
|
39
|
+
@switch (props.type) {
|
40
|
+
@case ('group') {
|
41
|
+
<nz-input-number-group
|
42
|
+
[class]="props['className']"
|
43
|
+
[nzAddOnAfter]="props['addOnAfter']"
|
44
|
+
[nzAddOnBefore]="props['addOnBefore']"
|
45
|
+
[nzPrefix]="props['prefix']"
|
46
|
+
[nzSuffix]="props['suffix']"
|
47
|
+
[nzPrefixIcon]="props['prefixIcon']"
|
48
|
+
[nzSuffixIcon]="props['suffixIcon']"
|
49
|
+
[nzCompact]="props['compact']"
|
50
|
+
>
|
51
|
+
<ng-container *ngTemplateOutlet="inputNumberTpl"></ng-container>
|
52
|
+
</nz-input-number-group>
|
53
|
+
}
|
54
|
+
@default {
|
55
|
+
<ng-template [ngTemplateOutlet]="inputNumberTpl"></ng-template>
|
56
|
+
}
|
57
|
+
}
|
58
|
+
|
59
|
+
<ng-template #inputNumberTpl>
|
60
|
+
<nz-input-number
|
61
|
+
[formControl]="formControl"
|
62
|
+
[nzId]="id"
|
63
|
+
[nzMax]="props.max!"
|
64
|
+
[nzMin]="props.min!"
|
65
|
+
[nzReadOnly]="!!props.readonly"
|
66
|
+
[nzPlaceHolder]="props.placeholder ?? ''"
|
67
|
+
[nzSize]="props['size']!"
|
68
|
+
[nzStatus]="props['status']!"
|
69
|
+
[nzBorderless]="!!props['borderless']"
|
70
|
+
[nzPrecision]="props['precision']"
|
71
|
+
[nzPrecisionMode]="props['precisionMode']!"
|
72
|
+
[nzStep]="props['step'] ?? 1"
|
73
|
+
[nzFormatter]="props['formatter']!"
|
74
|
+
[nzParser]="props['parser']!"
|
75
|
+
[nzInputMode]="props['inputMode']!"
|
76
|
+
[class]="props['className']"
|
77
|
+
(ngModelChange)="props['modelChange']?.(field, $event)"
|
78
|
+
(nzFocus)="props.focus?.(field, $event)"
|
79
|
+
(nzBlur)="props.blur?.(field, $event)"
|
80
|
+
></nz-input-number>
|
81
|
+
</ng-template>
|
82
82
|
`, isInline: true, dependencies: [{ kind: "directive", type: i1.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "directive", type: i2.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i2.FormControlDirective, selector: "[formControl]", inputs: ["formControl", "disabled", "ngModel"], outputs: ["ngModelChange"], exportAs: ["ngForm"] }, { kind: "component", type: i3.NzInputNumberComponent, selector: "nz-input-number", inputs: ["nzSize", "nzMin", "nzMax", "nzParser", "nzPrecision", "nzPrecisionMode", "nzPlaceHolder", "nzStatus", "nzStep", "nzInputMode", "nzId", "nzDisabled", "nzReadOnly", "nzAutoFocus", "nzBorderless", "nzFormatter"], outputs: ["nzBlur", "nzFocus"], exportAs: ["nzInputNumber"] }, { kind: "component", type: i3.NzInputNumberGroupComponent, selector: "nz-input-number-group", inputs: ["nzAddOnBeforeIcon", "nzAddOnAfterIcon", "nzPrefixIcon", "nzSuffixIcon", "nzAddOnBefore", "nzAddOnAfter", "nzPrefix", "nzStatus", "nzSuffix", "nzSize", "nzCompact"], exportAs: ["nzInputNumberGroup"] }, { kind: "directive", type: i3.NzInputNumberGroupWhitSuffixOrPrefixDirective, selector: "nz-input-number-group[nzSuffix], nz-input-number-group[nzPrefix]" }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
83
83
|
}
|
84
84
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.12", ngImport: i0, type: FormlyFieldInputNumber, decorators: [{
|
85
85
|
type: Component,
|
86
86
|
args: [{
|
87
87
|
selector: 'formly-field-inputnumber',
|
88
|
-
template: `
|
89
|
-
@switch (props.type) {
|
90
|
-
@case ('group') {
|
91
|
-
<nz-input-number-group
|
92
|
-
[class]="props['className']"
|
93
|
-
[nzAddOnAfter]="props['addOnAfter']"
|
94
|
-
[nzAddOnBefore]="props['addOnBefore']"
|
95
|
-
[nzPrefix]="props['prefix']"
|
96
|
-
[nzSuffix]="props['suffix']"
|
97
|
-
[nzPrefixIcon]="props['prefixIcon']"
|
98
|
-
[nzSuffixIcon]="props['suffixIcon']"
|
99
|
-
[nzCompact]="props['compact']"
|
100
|
-
>
|
101
|
-
<ng-container *ngTemplateOutlet="inputNumberTpl"></ng-container>
|
102
|
-
</nz-input-number-group>
|
103
|
-
}
|
104
|
-
@default {
|
105
|
-
<ng-template [ngTemplateOutlet]="inputNumberTpl"></ng-template>
|
106
|
-
}
|
107
|
-
}
|
108
|
-
|
109
|
-
<ng-template #inputNumberTpl>
|
110
|
-
<nz-input-number
|
111
|
-
[formControl]="formControl"
|
112
|
-
[nzId]="id"
|
113
|
-
[nzMax]="props.max!"
|
114
|
-
[nzMin]="props.min!"
|
115
|
-
[nzReadOnly]="!!props.readonly"
|
116
|
-
[nzPlaceHolder]="props.placeholder ?? ''"
|
117
|
-
[nzSize]="props['size']!"
|
118
|
-
[nzStatus]="props['status']!"
|
119
|
-
[nzBorderless]="!!props['borderless']"
|
120
|
-
[nzPrecision]="props['precision']"
|
121
|
-
[nzPrecisionMode]="props['precisionMode']!"
|
122
|
-
[nzStep]="props['step'] ?? 1"
|
123
|
-
[nzFormatter]="props['formatter']!"
|
124
|
-
[nzParser]="props['parser']!"
|
125
|
-
[nzInputMode]="props['inputMode']!"
|
126
|
-
[class]="props['className']"
|
127
|
-
(ngModelChange)="props['modelChange']?.(field, $event)"
|
128
|
-
(nzFocus)="props.focus?.(field, $event)"
|
129
|
-
(nzBlur)="props.blur?.(field, $event)"
|
130
|
-
></nz-input-number>
|
131
|
-
</ng-template>
|
88
|
+
template: `
|
89
|
+
@switch (props.type) {
|
90
|
+
@case ('group') {
|
91
|
+
<nz-input-number-group
|
92
|
+
[class]="props['className']"
|
93
|
+
[nzAddOnAfter]="props['addOnAfter']"
|
94
|
+
[nzAddOnBefore]="props['addOnBefore']"
|
95
|
+
[nzPrefix]="props['prefix']"
|
96
|
+
[nzSuffix]="props['suffix']"
|
97
|
+
[nzPrefixIcon]="props['prefixIcon']"
|
98
|
+
[nzSuffixIcon]="props['suffixIcon']"
|
99
|
+
[nzCompact]="props['compact']"
|
100
|
+
>
|
101
|
+
<ng-container *ngTemplateOutlet="inputNumberTpl"></ng-container>
|
102
|
+
</nz-input-number-group>
|
103
|
+
}
|
104
|
+
@default {
|
105
|
+
<ng-template [ngTemplateOutlet]="inputNumberTpl"></ng-template>
|
106
|
+
}
|
107
|
+
}
|
108
|
+
|
109
|
+
<ng-template #inputNumberTpl>
|
110
|
+
<nz-input-number
|
111
|
+
[formControl]="formControl"
|
112
|
+
[nzId]="id"
|
113
|
+
[nzMax]="props.max!"
|
114
|
+
[nzMin]="props.min!"
|
115
|
+
[nzReadOnly]="!!props.readonly"
|
116
|
+
[nzPlaceHolder]="props.placeholder ?? ''"
|
117
|
+
[nzSize]="props['size']!"
|
118
|
+
[nzStatus]="props['status']!"
|
119
|
+
[nzBorderless]="!!props['borderless']"
|
120
|
+
[nzPrecision]="props['precision']"
|
121
|
+
[nzPrecisionMode]="props['precisionMode']!"
|
122
|
+
[nzStep]="props['step'] ?? 1"
|
123
|
+
[nzFormatter]="props['formatter']!"
|
124
|
+
[nzParser]="props['parser']!"
|
125
|
+
[nzInputMode]="props['inputMode']!"
|
126
|
+
[class]="props['className']"
|
127
|
+
(ngModelChange)="props['modelChange']?.(field, $event)"
|
128
|
+
(nzFocus)="props.focus?.(field, $event)"
|
129
|
+
(nzBlur)="props.blur?.(field, $event)"
|
130
|
+
></nz-input-number>
|
131
|
+
</ng-template>
|
132
132
|
`,
|
133
133
|
changeDetection: ChangeDetectionStrategy.OnPush,
|
134
134
|
standalone: false
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"ngx-formly-zorro-antd-input-number.mjs","sources":["../../../../packages/formlyantd/input-number/src/input-number.type.ts","../../../../packages/formlyantd/input-number/src/input-number.module.ts","../../../../packages/formlyantd/input-number/src/ngx-formly-zorro-antd-input-number.ts"],"sourcesContent":["import { Component, Type, ChangeDetectionStrategy } from '@angular/core';\
|
1
|
+
{"version":3,"file":"ngx-formly-zorro-antd-input-number.mjs","sources":["../../../../packages/formlyantd/input-number/src/input-number.type.ts","../../../../packages/formlyantd/input-number/src/input-number.module.ts","../../../../packages/formlyantd/input-number/src/ngx-formly-zorro-antd-input-number.ts"],"sourcesContent":["import { Component, Type, ChangeDetectionStrategy } from '@angular/core';\nimport { FieldType, FieldTypeConfig } from '@ngx-formly/core';\nimport type { NzFormlyFieldConfig } from 'ngx-formly-zorro-antd/common';\nimport type { InputNumberProps } from './input-number.props';\n\nexport interface FormlyInputNumberFieldConfig extends NzFormlyFieldConfig<InputNumberProps> {\n type: 'number' | 'integer' | Type<FormlyFieldInputNumber>;\n}\n/**\n * @private\n */\n@Component({\n selector: 'formly-field-inputnumber',\n template: `\n @switch (props.type) {\n @case ('group') {\n <nz-input-number-group\n [class]=\"props['className']\"\n [nzAddOnAfter]=\"props['addOnAfter']\"\n [nzAddOnBefore]=\"props['addOnBefore']\"\n [nzPrefix]=\"props['prefix']\"\n [nzSuffix]=\"props['suffix']\"\n [nzPrefixIcon]=\"props['prefixIcon']\"\n [nzSuffixIcon]=\"props['suffixIcon']\"\n [nzCompact]=\"props['compact']\"\n >\n <ng-container *ngTemplateOutlet=\"inputNumberTpl\"></ng-container>\n </nz-input-number-group>\n }\n @default {\n <ng-template [ngTemplateOutlet]=\"inputNumberTpl\"></ng-template>\n }\n }\n\n <ng-template #inputNumberTpl>\n <nz-input-number\n [formControl]=\"formControl\"\n [nzId]=\"id\"\n [nzMax]=\"props.max!\"\n [nzMin]=\"props.min!\"\n [nzReadOnly]=\"!!props.readonly\"\n [nzPlaceHolder]=\"props.placeholder ?? ''\"\n [nzSize]=\"props['size']!\"\n [nzStatus]=\"props['status']!\"\n [nzBorderless]=\"!!props['borderless']\"\n [nzPrecision]=\"props['precision']\"\n [nzPrecisionMode]=\"props['precisionMode']!\"\n [nzStep]=\"props['step'] ?? 1\"\n [nzFormatter]=\"props['formatter']!\"\n [nzParser]=\"props['parser']!\"\n [nzInputMode]=\"props['inputMode']!\"\n [class]=\"props['className']\"\n (ngModelChange)=\"props['modelChange']?.(field, $event)\"\n (nzFocus)=\"props.focus?.(field, $event)\"\n (nzBlur)=\"props.blur?.(field, $event)\"\n ></nz-input-number>\n </ng-template>\n `,\n changeDetection: ChangeDetectionStrategy.OnPush,\n standalone: false\n})\nexport class FormlyFieldInputNumber extends FieldType<FieldTypeConfig> {\n override defaultOptions = {\n props: {\n max: Infinity,\n min: -Infinity,\n parser: (value: string) =>\n value\n .trim()\n .replace(/。/g, '.')\n // eslint-disable-next-line no-useless-escape\n .replace(/[^\\w\\.-]+/g, ''),\n precisionMode: 'toFixed' as const,\n size: 'default' as const,\n status: '' as const,\n step: 1,\n inputMode: 'auto',\n formatter: (value: number | string) => value\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 { FormlyNzFormFieldModule } from 'ngx-formly-zorro-antd/form-field';\n\nimport { FormlyFieldInputNumber } from './input-number.type';\nimport { NzInputNumberModule } from 'ng-zorro-antd/input-number';\n\n@NgModule({\n declarations: [FormlyFieldInputNumber],\n imports: [\n CommonModule,\n ReactiveFormsModule,\n FormlyNzFormFieldModule,\n NzInputNumberModule,\n\n FormlyModule.forChild({\n types: [\n {\n name: 'number',\n component: FormlyFieldInputNumber,\n wrappers: ['form-field']\n },\n {\n name: 'integer',\n extends: 'number'\n }\n ]\n })\n ]\n})\nexport class FormlyNzInputNumberModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public_api';\n"],"names":["i1"],"mappings":";;;;;;;;;;;;AAQA;;AAEG;AAmDG,MAAO,sBAAuB,SAAQ,SAA0B,CAAA;AAlDtE,IAAA,WAAA,GAAA;;AAmDW,QAAA,IAAA,CAAA,cAAc,GAAG;AACxB,YAAA,KAAK,EAAE;AACL,gBAAA,GAAG,EAAE,QAAQ;gBACb,GAAG,EAAE,CAAC,QAAQ;AACd,gBAAA,MAAM,EAAE,CAAC,KAAa,KACpB,KAAK;AACF,qBAAA,IAAI,EAAE;AACN,qBAAA,OAAO,CAAC,IAAI,EAAE,GAAG,CAAC;;AAElB,qBAAA,OAAO,CAAC,YAAY,EAAE,EAAE,CAAC;AAC9B,gBAAA,aAAa,EAAE,SAAkB;AACjC,gBAAA,IAAI,EAAE,SAAkB;AACxB,gBAAA,MAAM,EAAE,EAAW;AACnB,gBAAA,IAAI,EAAE,CAAC;AACP,gBAAA,SAAS,EAAE,MAAM;AACjB,gBAAA,SAAS,EAAE,CAAC,KAAsB,KAAK,KAAK;AAC7C,aAAA;SACF,CAAC;AACH,KAAA;+GAnBY,sBAAsB,EAAA,IAAA,EAAA,IAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA,CAAA,EAAA;AAAtB,IAAA,SAAA,IAAA,CAAA,IAAA,GAAA,EAAA,CAAA,oBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,SAAA,EAAA,IAAA,EAAA,sBAAsB,EAhDvB,QAAA,EAAA,0BAAA,EAAA,eAAA,EAAA,IAAA,EAAA,QAAA,EAAA,EAAA,EAAA,QAAA,EAAA,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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