ngx-formly-zorro-antd 16.1.1 → 16.1.3
Sign up to get free protection for your applications and to get access to all the features.
- package/button/button.type.d.ts +3 -2
- package/card/card.type.d.ts +3 -2
- package/card-wrapper/card.wrapper.d.ts +4 -3
- package/cascader/cascader.type.d.ts +6 -5
- package/checkbox/checkbox.type.d.ts +4 -3
- package/common/interface.d.ts +19 -0
- package/common/public_api.d.ts +1 -0
- package/datepicker/datepicker.props.d.ts +5 -5
- package/datepicker/datepicker.type.d.ts +3 -2
- package/esm2022/button/button.type.mjs +1 -1
- package/esm2022/card/card.type.mjs +1 -1
- package/esm2022/card-wrapper/card.wrapper.mjs +1 -1
- package/esm2022/cascader/cascader.type.mjs +1 -1
- package/esm2022/checkbox/checkbox.type.mjs +3 -3
- package/esm2022/common/interface.mjs +2 -0
- package/esm2022/common/public_api.mjs +2 -1
- package/esm2022/datepicker/datepicker.props.mjs +1 -1
- package/esm2022/datepicker/datepicker.type.mjs +1 -1
- package/esm2022/form-field/form-field.props.mjs +1 -1
- package/esm2022/form-field/form-field.wrapper.mjs +1 -1
- package/esm2022/grid/grid.type.mjs +1 -1
- package/esm2022/input/input.props.mjs +1 -1
- package/esm2022/input/input.type.mjs +1 -1
- package/esm2022/input-group/input-group.type.mjs +1 -1
- package/esm2022/input-number/input-number.props.mjs +1 -1
- package/esm2022/input-number/input-number.type.mjs +1 -1
- package/esm2022/lib/ui-ng-zorro-antd.module.mjs +8 -4
- package/esm2022/radio/radio.type.mjs +1 -3
- package/esm2022/rate/rate.type.mjs +1 -1
- package/esm2022/ref-template/ngx-formly-zorro-antd-ref-template.mjs +5 -0
- package/esm2022/ref-template/public_api.mjs +3 -0
- package/esm2022/ref-template/ref-template.module.mjs +44 -0
- package/esm2022/ref-template/ref-template.type.mjs +89 -0
- package/esm2022/select/select.props.mjs +1 -1
- package/esm2022/select/select.type.mjs +1 -1
- package/esm2022/slider/slider.type.mjs +1 -1
- package/esm2022/space/space.type.mjs +1 -1
- package/esm2022/switch/switch.type.mjs +1 -1
- package/esm2022/tabs/tabs.props.mjs +1 -1
- package/esm2022/tabs/tabs.wrapper.mjs +1 -1
- package/esm2022/textarea/textarea.type.mjs +1 -1
- package/esm2022/timepicker/timepicker.type.mjs +1 -1
- package/esm2022/transfer/transfer.type.mjs +1 -1
- package/esm2022/tree-select/tree-select.module.mjs +5 -1
- package/esm2022/tree-select/tree-select.type.mjs +31 -15
- package/esm2022/upload/upload.props.mjs +1 -1
- package/esm2022/upload/upload.type.mjs +1 -1
- package/fesm2022/ngx-formly-zorro-antd-button.mjs.map +1 -1
- package/fesm2022/ngx-formly-zorro-antd-card-wrapper.mjs.map +1 -1
- package/fesm2022/ngx-formly-zorro-antd-card.mjs.map +1 -1
- package/fesm2022/ngx-formly-zorro-antd-cascader.mjs.map +1 -1
- package/fesm2022/ngx-formly-zorro-antd-checkbox.mjs +2 -2
- package/fesm2022/ngx-formly-zorro-antd-checkbox.mjs.map +1 -1
- package/fesm2022/ngx-formly-zorro-antd-datepicker.mjs.map +1 -1
- package/fesm2022/ngx-formly-zorro-antd-form-field.mjs.map +1 -1
- package/fesm2022/ngx-formly-zorro-antd-grid.mjs.map +1 -1
- package/fesm2022/ngx-formly-zorro-antd-input-group.mjs.map +1 -1
- package/fesm2022/ngx-formly-zorro-antd-input-number.mjs.map +1 -1
- package/fesm2022/ngx-formly-zorro-antd-input.mjs.map +1 -1
- package/fesm2022/ngx-formly-zorro-antd-radio.mjs +0 -2
- package/fesm2022/ngx-formly-zorro-antd-radio.mjs.map +1 -1
- package/fesm2022/ngx-formly-zorro-antd-rate.mjs.map +1 -1
- package/fesm2022/ngx-formly-zorro-antd-ref-template.mjs +136 -0
- package/fesm2022/ngx-formly-zorro-antd-ref-template.mjs.map +1 -0
- package/fesm2022/ngx-formly-zorro-antd-select.mjs.map +1 -1
- package/fesm2022/ngx-formly-zorro-antd-slider.mjs.map +1 -1
- package/fesm2022/ngx-formly-zorro-antd-space.mjs.map +1 -1
- package/fesm2022/ngx-formly-zorro-antd-switch.mjs.map +1 -1
- package/fesm2022/ngx-formly-zorro-antd-tabs.mjs.map +1 -1
- package/fesm2022/ngx-formly-zorro-antd-textarea.mjs.map +1 -1
- package/fesm2022/ngx-formly-zorro-antd-timepicker.mjs.map +1 -1
- package/fesm2022/ngx-formly-zorro-antd-transfer.mjs.map +1 -1
- package/fesm2022/ngx-formly-zorro-antd-tree-select.mjs +34 -15
- package/fesm2022/ngx-formly-zorro-antd-tree-select.mjs.map +1 -1
- package/fesm2022/ngx-formly-zorro-antd-upload.mjs.map +1 -1
- package/fesm2022/ngx-formly-zorro-antd.mjs +7 -3
- package/fesm2022/ngx-formly-zorro-antd.mjs.map +1 -1
- package/form-field/form-field.props.d.ts +3 -4
- package/form-field/form-field.wrapper.d.ts +3 -2
- package/grid/grid.type.d.ts +3 -2
- package/input/input.props.d.ts +3 -3
- package/input/input.type.d.ts +3 -2
- package/input-group/input-group.type.d.ts +4 -3
- package/input-number/input-number.props.d.ts +2 -2
- package/input-number/input-number.type.d.ts +3 -2
- package/lib/ui-ng-zorro-antd.module.d.ts +2 -1
- package/package.json +46 -40
- package/radio/radio.type.d.ts +3 -2
- package/rate/rate.type.d.ts +4 -3
- package/ref-template/index.d.ts +5 -0
- package/ref-template/public_api.d.ts +2 -0
- package/ref-template/ref-template.module.d.ts +11 -0
- package/ref-template/ref-template.type.d.ts +79 -0
- package/select/select.props.d.ts +4 -4
- package/select/select.type.d.ts +3 -2
- package/slider/slider.type.d.ts +4 -3
- package/space/space.type.d.ts +3 -2
- package/switch/switch.type.d.ts +3 -2
- package/tabs/tabs.props.d.ts +9 -9
- package/tabs/tabs.wrapper.d.ts +4 -3
- package/textarea/textarea.type.d.ts +3 -2
- package/timepicker/timepicker.type.d.ts +4 -3
- package/transfer/transfer.type.d.ts +5 -4
- package/tree-select/tree-select.module.d.ts +4 -3
- package/tree-select/tree-select.type.d.ts +21 -4
- package/upload/upload.props.d.ts +2 -2
- package/upload/upload.type.d.ts +3 -2
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"ngx-formly-zorro-antd-checkbox.mjs","sources":["../../../../packages/formlyantd/checkbox/src/checkbox.type.ts","../../../../packages/formlyantd/checkbox/src/checkbox.module.ts","../../../../packages/formlyantd/checkbox/src/ngx-formly-zorro-antd-checkbox.ts"],"sourcesContent":["import { Component, Type, ChangeDetectionStrategy } from '@angular/core';\nimport { FieldType, FieldTypeConfig
|
1
|
+
{"version":3,"file":"ngx-formly-zorro-antd-checkbox.mjs","sources":["../../../../packages/formlyantd/checkbox/src/checkbox.type.ts","../../../../packages/formlyantd/checkbox/src/checkbox.module.ts","../../../../packages/formlyantd/checkbox/src/ngx-formly-zorro-antd-checkbox.ts"],"sourcesContent":["import { Component, Type, ChangeDetectionStrategy } from '@angular/core';\nimport { FieldType, FieldTypeConfig } from '@ngx-formly/core';\nimport type { NzFormlyFieldConfig, FormlyAttributeEvent } from 'ngx-formly-zorro-antd/common';\nimport type { FormlyFieldProps } from 'ngx-formly-zorro-antd/form-field';\n\ninterface CheckboxProps extends FormlyFieldProps {\n type?: 'group' | 'single';\n\n /**\n * 自动获取焦点\n * @default false\n */\n autoFocus?: boolean;\n\n /**\n * 设置 indeterminate 状态,只负责样式控制\n * @default false\n */\n indeterminate?: boolean;\n\n /**\n * 数值改变时回调\n */\n modelChange?: FormlyAttributeEvent<boolean | null | undefined>;\n}\n\nexport interface FormlyCheckboxFieldConfig extends NzFormlyFieldConfig<CheckboxProps> {\n type: 'checkbox' | 'boolean' | Type<FormlyFieldCheckbox>;\n}\n\n@Component({\n selector: 'formly-field-checkbox',\n template: `\n <label\n *ngIf=\"props.type !== 'group'; else checkboxgroup\"\n [formControl]=\"formControl\"\n [formlyAttributes]=\"field\"\n [nzIndeterminate]=\"props['indeterminate'] && formControl.value == null\"\n (ngModelChange)=\"props['modelChange'] && props['modelChange'](field, $event)\"\n nz-checkbox\n >\n {{ props.label }}\n </label>\n\n <ng-template #checkboxgroup>\n <nz-checkbox-group\n [(ngModel)]=\"props.options\"\n [formControl]=\"formControl\"\n [formlyAttributes]=\"field\"\n (ngModelChange)=\"props['modelChange']?.(field, $event)\"\n ></nz-checkbox-group>\n </ng-template>\n `,\n changeDetection: ChangeDetectionStrategy.OnPush\n})\nexport class FormlyFieldCheckbox extends FieldType<FieldTypeConfig<CheckboxProps>> {\n override defaultOptions = {\n props: {\n indeterminate: false,\n hideLabel: true\n }\n };\n}\n","import { NgModule } from '@angular/core';\nimport { CommonModule } from '@angular/common';\nimport { FormlyModule } from '@ngx-formly/core';\nimport { ReactiveFormsModule } from '@angular/forms';\nimport { FormlyNzFormFieldModule } from 'ngx-formly-zorro-antd/form-field';\n\nimport { NzCheckboxModule } from 'ng-zorro-antd/checkbox';\n\nimport { FormlyFieldCheckbox } from './checkbox.type';\n\n@NgModule({\n declarations: [FormlyFieldCheckbox],\n imports: [\n CommonModule,\n ReactiveFormsModule,\n FormlyNzFormFieldModule,\n\n NzCheckboxModule,\n\n FormlyModule.forChild({\n types: [\n {\n name: 'checkbox',\n component: FormlyFieldCheckbox,\n wrappers: ['form-field']\n },\n {\n name: 'boolean',\n extends: 'checkbox'\n }\n ]\n })\n ]\n})\nexport class FormlyNzCheckboxModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public_api';\n"],"names":["i1"],"mappings":";;;;;;;;;;;;AAuDM,MAAO,mBAAoB,SAAQ,SAAyC,CAAA;AAzBlF,IAAA,WAAA,GAAA;;AA0BW,QAAA,IAAA,CAAA,cAAc,GAAG;AACxB,YAAA,KAAK,EAAE;AACL,gBAAA,aAAa,EAAE,KAAK;AACpB,gBAAA,SAAS,EAAE,IAAI;AAChB,aAAA;SACF,CAAC;AACH,KAAA;8GAPY,mBAAmB,EAAA,IAAA,EAAA,IAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA,CAAA,EAAA;AAAnB,IAAA,SAAA,IAAA,CAAA,IAAA,GAAA,EAAA,CAAA,oBAAA,CAAA,EAAA,UAAA,EAAA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AAA;AACF,iBAAA;aACF,CAAC,CAAA,EAAA,CAAA,CAAA,EAAA;;2FAGO,sBAAsB,EAAA,UAAA,EAAA,CAAA;kBAxBlC,QAAQ;AAAC,YAAA,IAAA,EAAA,CAAA;oBACR,YAAY,EAAE,CAAC,mBAAmB,CAAC;AACnC,oBAAA,OAAO,EAAE;wBACP,YAAY;wBACZ,mBAAmB;wBACnB,uBAAuB;wBAEvB,gBAAgB;wBAEhB,YAAY,CAAC,QAAQ,CAAC;AACpB,4BAAA,KAAK,EAAE;AACL,gCAAA;AACE,oCAAA,IAAI,EAAE,UAAU;AAChB,oCAAA,SAAS,EAAE,mBAAmB;oCAC9B,QAAQ,EAAE,CAAC,YAAY,CAAC;AACzB,iCAAA;AACD,gCAAA;AACE,oCAAA,IAAI,EAAE,SAAS;AACf,oCAAA,OAAO,EAAE,UAAU;AACpB,iCAAA;AACF,6BAAA;yBACF,CAAC;AACH,qBAAA;AACF,iBAAA,CAAA;;;ACjCD;;AAEG;;;;"}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"ngx-formly-zorro-antd-datepicker.mjs","sources":["../../../../packages/formlyantd/datepicker/src/datepicker.type.ts","../../../../packages/formlyantd/datepicker/src/datepicker.module.ts","../../../../packages/formlyantd/datepicker/src/ngx-formly-zorro-antd-datepicker.ts"],"sourcesContent":["import { Component, Type, ChangeDetectionStrategy } from '@angular/core';\nimport { FieldType,
|
1
|
+
{"version":3,"file":"ngx-formly-zorro-antd-datepicker.mjs","sources":["../../../../packages/formlyantd/datepicker/src/datepicker.type.ts","../../../../packages/formlyantd/datepicker/src/datepicker.module.ts","../../../../packages/formlyantd/datepicker/src/ngx-formly-zorro-antd-datepicker.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 { DatepickerProps } from './datepicker.props';\n\nexport interface FormlyDatepickerFieldConfig extends NzFormlyFieldConfig<DatepickerProps> {\n type: 'datepicker' | Type<FormlyFieldDatepicker>;\n}\n\n@Component({\n selector: 'formly-field-datepicker',\n template: `<ng-container [ngSwitch]=\"props.type\">\n <nz-range-picker\n *ngSwitchCase=\"'range'\"\n [nzId]=\"id\"\n [formControl]=\"formControl\"\n [formlyAttributes]=\"field\"\n [ngClass]=\"props['className']\"\n [nzPlaceHolder]=\"props.placeholder ?? ''\"\n [nzAllowClear]=\"props['allowClear']!!\"\n [nzAutoFocus]=\"props['autoFocus']!!\"\n [nzBackdrop]=\"props['backdrop']!!\"\n [nzDefaultPickerValue]=\"props['defaultPickerValue']\"\n [nzDisabledDate]=\"props['disabledDate']\"\n [nzDropdownClassName]=\"props['dropdownClassName']\"\n [nzFormat]=\"props['format']\"\n [nzInputReadOnly]=\"props['inputReadOnly']!!\"\n [nzMode]=\"props['mode']\"\n [nzPopupStyle]=\"props['popupStyle']\"\n [nzSize]=\"props['size']\"\n [nzStatus]=\"props['status'] ?? ''\"\n [nzPlacement]=\"props['placement']\"\n [nzRenderExtraFooter]=\"props['renderExtraFooter']\"\n [nzSuffixIcon]=\"props['suffixIcon']\"\n [nzBorderless]=\"props['borderless']\"\n [nzInline]=\"props['inline']\"\n [nzDateRender]=\"props['dateRender']\"\n [nzDisabledTime]=\"props['rangeOptions']?.disabledTime\"\n [nzShowTime]=\"props['showTime']\"\n [nzShowToday]=\"props['showToday']!!\"\n [nzShowNow]=\"props['showNow']!!\"\n [nzShowWeekNumber]=\"props['showWeekNumber']!!\"\n [nzRanges]=\"props['rangeOptions']?.ranges\"\n [nzSeparator]=\"props['rangeOptions']?.separator\"\n (nzOnOpenChange)=\"props['openChange'] && props['openChange'](field, $event)\"\n (nzOnOk)=\"props['onOk'] && props['onOk'](field, $event)\"\n (nzOnCalendarChange)=\"\n props['rangeOptions']?.calendarChange &&\n props['rangeOptions']?.calendarChange(field, $event)\n \"\n (ngModelChange)=\"props['modelChange'] && props['modelChange'](field, $event)\"\n ></nz-range-picker>\n\n <nz-date-picker\n *ngSwitchDefault\n [nzId]=\"id\"\n [formControl]=\"formControl\"\n [formlyAttributes]=\"field\"\n [ngClass]=\"props['className']\"\n [nzPlaceHolder]=\"props.placeholder ?? ''\"\n [nzAllowClear]=\"props['allowClear']!!\"\n [nzAutoFocus]=\"props['autoFocus']!!\"\n [nzBackdrop]=\"props['backdrop']!!\"\n [nzDefaultPickerValue]=\"props['defaultPickerValue']\"\n [nzDisabledDate]=\"props['disabledDate']\"\n [nzDropdownClassName]=\"props['dropdownClassName']\"\n [nzFormat]=\"props['format']\"\n [nzInputReadOnly]=\"props['inputReadOnly']!!\"\n [nzMode]=\"props['mode']\"\n [nzPopupStyle]=\"props['popupStyle']!\"\n [nzSize]=\"props['size']!\"\n [nzStatus]=\"props['status']!\"\n [nzPlacement]=\"props['placement']!\"\n [nzRenderExtraFooter]=\"props['renderExtraFooter']\"\n [nzSuffixIcon]=\"props['suffixIcon']\"\n [nzBorderless]=\"props['borderless']\"\n [nzInline]=\"props['inline']\"\n [nzDateRender]=\"props['dateRender']\"\n [nzDisabledTime]=\"props['disabledTime']\"\n [nzShowTime]=\"props['showTime']\"\n [nzShowToday]=\"props['showToday']!!\"\n [nzShowNow]=\"props['showNow']!!\"\n [nzShowWeekNumber]=\"props['showWeekNumber']!!\"\n (nzOnOpenChange)=\"props['openChange'] && props['openChange'](field, $event)\"\n (nzOnOk)=\"props['onOk'] && props['onOk'](field, $event)\"\n (ngModelChange)=\"props['modelChange'] && props['modelChange'](field, $event)\"\n ></nz-date-picker>\n </ng-container>`,\n changeDetection: ChangeDetectionStrategy.OnPush\n})\nexport class FormlyFieldDatepicker extends FieldType<FieldTypeConfig> {\n override defaultOptions = {\n props: {\n allowClear: true,\n backdrop: false,\n defaultPickerValue: null,\n inputReadOnly: false,\n mode: 'date' as const,\n size: 'default' as const,\n status: '' as const,\n placement: 'bottomLeft' as const,\n popupStyle: {},\n borderless: false,\n inline: false,\n showToday: true,\n showNow: true,\n nzShowWeekNumber: false,\n rangeOptions: {\n separator: '~'\n }\n }\n };\n}\n","import { NgModule } from '@angular/core';\nimport { CommonModule } from '@angular/common';\nimport { FormlyModule } from '@ngx-formly/core';\nimport { ReactiveFormsModule } from '@angular/forms';\nimport { FormlyNzFormFieldModule } from 'ngx-formly-zorro-antd/form-field';\n\nimport { NzDatePickerModule } from 'ng-zorro-antd/date-picker';\nimport { FormlyFieldDatepicker } from './datepicker.type';\n\n@NgModule({\n declarations: [FormlyFieldDatepicker],\n imports: [\n CommonModule,\n ReactiveFormsModule,\n FormlyNzFormFieldModule,\n\n NzDatePickerModule,\n\n FormlyModule.forChild({\n types: [\n {\n name: 'datepicker',\n component: FormlyFieldDatepicker,\n wrappers: ['form-field']\n }\n ]\n })\n ]\n})\nexport class FormlyNzDatepickerModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public_api';\n"],"names":["i1"],"mappings":";;;;;;;;;;;;AA0FM,MAAO,qBAAsB,SAAQ,SAA0B,CAAA;AAjFrE,IAAA,WAAA,GAAA;;AAkFW,QAAA,IAAA,CAAA,cAAc,GAAG;AACxB,YAAA,KAAK,EAAE;AACL,gBAAA,UAAU,EAAE,IAAI;AAChB,gBAAA,QAAQ,EAAE,KAAK;AACf,gBAAA,kBAAkB,EAAE,IAAI;AACxB,gBAAA,aAAa,EAAE,KAAK;AACpB,gBAAA,IAAI,EAAE,MAAe;AACrB,gBAAA,IAAI,EAAE,SAAkB;AACxB,gBAAA,MAAM,EAAE,EAAW;AACnB,gBAAA,SAAS,EAAE,YAAqB;AAChC,gBAAA,UAAU,EAAE,EAAE;AACd,gBAAA,UAAU,EAAE,KAAK;AACjB,gBAAA,MAAM,EAAE,KAAK;AACb,gBAAA,SAAS,EAAE,IAAI;AACf,gBAAA,OAAO,EAAE,IAAI;AACb,gBAAA,gBAAgB,EAAE,KAAK;AACvB,gBAAA,YAAY,EAAE;AACZ,oBAAA,SAAS,EAAE,GAAG;AACf,iBAAA;A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B,4BAAA,KAAK,EAAE;AACL,gCAAA;AACE,oCAAA,IAAI,EAAE,YAAY;AAClB,oCAAA,SAAS,EAAE,qBAAqB;oCAChC,QAAQ,EAAE,CAAC,YAAY,CAAC;AACzB,iCAAA;AACF,6BAAA;yBACF,CAAC;AACH,qBAAA;AACF,iBAAA,CAAA;;;AC5BD;;AAEG;;;;"}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"ngx-formly-zorro-antd-form-field.mjs","sources":["../../../../packages/formlyantd/form-field/src/form-field.wrapper.ts","../../../../packages/formlyantd/form-field/src/form-field.module.ts","../../../../packages/formlyantd/form-field/src/ngx-formly-zorro-antd-form-field.ts"],"sourcesContent":["import { Component } from '@angular/core';\nimport { FieldWrapper
|
1
|
+
{"version":3,"file":"ngx-formly-zorro-antd-form-field.mjs","sources":["../../../../packages/formlyantd/form-field/src/form-field.wrapper.ts","../../../../packages/formlyantd/form-field/src/form-field.module.ts","../../../../packages/formlyantd/form-field/src/ngx-formly-zorro-antd-form-field.ts"],"sourcesContent":["import { Component } from '@angular/core';\nimport { FieldWrapper } from '@ngx-formly/core';\nimport type { NzFormWrapperProps } from './form-field.props';\nimport type { NzFormlyFieldConfig } from 'ngx-formly-zorro-antd/common';\n\nexport type FormlyFieldProps = NzFormWrapperProps;\n\n@Component({\n selector: 'formly-wrapper-nz-form-field',\n styleUrls: ['./form-field.wrapper.scss'],\n template: `\n <nz-form-item [ngClass]=\"props.itemClass!\">\n <ng-container *ngIf=\"props.label && props['hideLabel'] !== true\">\n <nz-form-label\n [nzFlex]=\"props['grid']?.labelFlex ?? null\"\n [nzOffset]=\"props['grid']?.labelOffset ?? null\"\n [nzOrder]=\"props['grid']?.labelOrder ?? null\"\n [nzPull]=\"props['grid']?.labelPull ?? null\"\n [nzPush]=\"props['grid']?.labelPush ?? null\"\n [nzSpan]=\"props['grid']?.labelSpan ?? null\"\n [nzXs]=\"props['grid']?.labelXs ?? null\"\n [nzSm]=\"props['grid']?.labelSm ?? null\"\n [nzMd]=\"props['grid']?.labelMd ?? null\"\n [nzLg]=\"props['grid']?.labelLg ?? null\"\n [nzXl]=\"props['grid']?.labelXl ?? null\"\n [nzXXl]=\"props['grid']?.labelXXl ?? null\"\n [ngClass]=\"props.labelClass!\"\n [nzRequired]=\"props.required && props['hideRequiredMarker'] !== true\"\n [nzFor]=\"id\"\n [nzNoColon]=\"props['noColon']!!\"\n [nzTooltipTitle]=\"props['tooltipTitle']\"\n [nzTooltipIcon]=\"props['tooltipIcon']!\"\n [nzLabelAlign]=\"props['labelAlign'] ?? 'right'\"\n [nzLabelWrap]=\"props['labelWrap']!!\"\n >\n <span class=\"formly-label-text\">\n {{ props.label }}\n </span>\n </nz-form-label>\n </ng-container>\n <nz-form-control\n [nzValidateStatus]=\"errorState\"\n [nzHasFeedback]=\"props['hasFeedback']!!\"\n [nzExtra]=\"props['controlExtra']\"\n [nzErrorTip]=\"errorTpl\"\n [ngClass]=\"props.controlClass!\"\n [nzFlex]=\"props['grid']?.controlFlex ?? null\"\n [nzOffset]=\"props['grid']?.controlOffset ?? null\"\n [nzOrder]=\"props['grid']?.controlOrder ?? null\"\n [nzPull]=\"props['grid']?.controlPull ?? null\"\n [nzPush]=\"props['grid']?.controlPush ?? null\"\n [nzSpan]=\"props['grid']?.controlSpan ?? null\"\n [nzXs]=\"props['grid']?.controlXs ?? null\"\n [nzSm]=\"props['grid']?.controlSm ?? null\"\n [nzMd]=\"props['grid']?.controlMd ?? null\"\n [nzLg]=\"props['grid']?.controlLg ?? null\"\n [nzXl]=\"props['grid']?.controlXl ?? null\"\n [nzXXl]=\"props['grid']?.controlXXl ?? null\"\n >\n <ng-container #fieldComponent></ng-container>\n\n <ng-template #errorTpl let-control>\n <formly-validation-message [field]=\"field\"></formly-validation-message>\n </ng-template>\n </nz-form-control>\n </nz-form-item>\n `\n})\nexport class FormlyWrapperFormField extends FieldWrapper<NzFormlyFieldConfig<FormlyFieldProps>> {\n get errorState() {\n return this.showError ? 'error' : 'success';\n }\n}\n","import { NgModule } from '@angular/core';\nimport { CommonModule } from '@angular/common';\nimport { FormlyModule } from '@ngx-formly/core';\nimport { ReactiveFormsModule } from '@angular/forms';\nimport { NzFormModule } from 'ng-zorro-antd/form';\nimport { FormlyWrapperFormField } from './form-field.wrapper';\n\n@NgModule({\n declarations: [FormlyWrapperFormField],\n imports: [\n CommonModule,\n ReactiveFormsModule,\n NzFormModule,\n FormlyModule.forChild({\n wrappers: [\n {\n name: 'form-field',\n component: FormlyWrapperFormField\n }\n ]\n })\n ]\n})\nexport class FormlyNzFormFieldModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public_api';\n"],"names":["i1"],"mappings":";;;;;;;;;;;AAoEM,MAAO,sBAAuB,SAAQ,YAAmD,CAAA;AAC7F,IAAA,IAAI,UAAU,GAAA;QACZ,OAAO,IAAI,CAAC,SAAS,GAAG,OAAO,GAAG,SAAS,CAAC;KAC7C;8GAHU,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,QAAA,EAAA,IAAA,EAAA,sBAAsB,EA1DvB,QAAA,EAAA,8BAAA,EAAA,eAAA,EAAA,IAAA,EAAA,QAAA,EAAA,EAAA,EAAA,QAAA,EAAA,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAwDT,EAAA,CAAA,EAAA,QAAA,EAAA,IAAA,EAAA,MAAA,EAAA,CAAA,oEAAA,CAAA,EAAA,YAAA,EAAA,CAAA,EAAA,IAAA,EAAA,WAAA,EAAA,IAAA,EAAA,EAAA,CAAA,OAAA,EAAA,QAAA,EAAA,WAAA,EAAA,MAAA,EAAA,CAAA,OAAA,EAAA,SAAA,CA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O,uBAAuB,EAAA,UAAA,EAAA,CAAA;kBAhBnC,QAAQ;AAAC,YAAA,IAAA,EAAA,CAAA;oBACR,YAAY,EAAE,CAAC,sBAAsB,CAAC;AACtC,oBAAA,OAAO,EAAE;wBACP,YAAY;wBACZ,mBAAmB;wBACnB,YAAY;wBACZ,YAAY,CAAC,QAAQ,CAAC;AACpB,4BAAA,QAAQ,EAAE;AACR,gCAAA;AACE,oCAAA,IAAI,EAAE,YAAY;AAClB,oCAAA,SAAS,EAAE,sBAAsB;AAClC,iCAAA;AACF,6BAAA;yBACF,CAAC;AACH,qBAAA;AACF,iBAAA,CAAA;;;ACtBD;;AAEG;;;;"}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"ngx-formly-zorro-antd-grid.mjs","sources":["../../../../packages/formlyantd/grid/src/grid.type.ts","../../../../packages/formlyantd/grid/src/grid.module.ts","../../../../packages/formlyantd/grid/src/ngx-formly-zorro-antd-grid.ts"],"sourcesContent":["import { Component, Type, ChangeDetectionStrategy } from '@angular/core';\nimport { FieldType, FieldTypeConfig
|
1
|
+
{"version":3,"file":"ngx-formly-zorro-antd-grid.mjs","sources":["../../../../packages/formlyantd/grid/src/grid.type.ts","../../../../packages/formlyantd/grid/src/grid.module.ts","../../../../packages/formlyantd/grid/src/ngx-formly-zorro-antd-grid.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 { GridProps } from './grid.props';\n\nexport interface FormlyGridFieldConfig extends NzFormlyFieldConfig<GridProps> {\n type: 'grid' | Type<FormlyFieldGrid>;\n}\n\n@Component({\n selector: 'formly-field-grid',\n template: `\n <div\n nz-row\n [nzAlign]=\"props.align ?? null\"\n [nzGutter]=\"props.gutter ?? null\"\n [nzJustify]=\"props.justify ?? null\"\n [formlyAttributes]=\"field\"\n >\n <formly-field\n *ngFor=\"let item of field.fieldGroup\"\n [field]=\"item\"\n nz-col\n [nzFlex]=\"item.props?.['grid']?.['flex'] || props.flex\"\n [nzOffset]=\"item.props?.['grid']?.['offset'] || props.offset\"\n [nzOrder]=\"item.props?.['grid']?.['order'] || props.order\"\n [nzPull]=\"item.props?.['grid']?.['pull'] || props.pull\"\n [nzPush]=\"item.props?.['grid']?.['push'] || props.push\"\n [nzSpan]=\"item.props?.['grid']?.['span'] || props.span\"\n [nzXs]=\"item.props?.['grid']?.['xs'] || props.xs\"\n [nzSm]=\"item.props?.['grid']?.['sm'] || props.sm\"\n [nzMd]=\"item.props?.['grid']?.['md'] || props.md\"\n [nzLg]=\"item.props?.['grid']?.['lg'] || props.lg\"\n [nzXl]=\"item.props?.['grid']?.['xl'] || props.xl\"\n [nzXXl]=\"item.props?.['grid']?.['xxl'] || props.xxl\"\n ></formly-field>\n </div>\n `,\n changeDetection: ChangeDetectionStrategy.OnPush\n})\nexport class FormlyFieldGrid extends FieldType<FieldTypeConfig<GridProps>> {}\n","import { NgModule } from '@angular/core';\nimport { CommonModule } from '@angular/common';\nimport { FormlyModule } from '@ngx-formly/core';\n\nimport { FormlyFieldGrid } from './grid.type';\n\nimport { NzGridModule } from 'ng-zorro-antd/grid';\n\n@NgModule({\n declarations: [FormlyFieldGrid],\n imports: [\n CommonModule,\n NzGridModule,\n\n FormlyModule.forChild({\n types: [\n {\n name: 'grid',\n component: FormlyFieldGrid\n }\n ]\n })\n ]\n})\nexport class FormlyNzGridModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public_api';\n"],"names":["i1"],"mappings":";;;;;;;;;AAwCM,MAAO,eAAgB,SAAQ,SAAqC,CAAA;8GAA7D,eAAe,EAAA,IAAA,EAAA,IAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA,CAAA,EAAA;AAAf,IAAA,SAAA,IAAA,CAAA,IAAA,GAAA,EAAA,CAAA,oBAAA,CAAA,EAAA,UAAA,E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EAAE,MAAM;AACZ,oCAAA,SAAS,EAAE,eAAe;AAC3B,iCAAA;AACF,6BAAA;yBACF,CAAC;AACH,qBAAA;AACF,iBAAA,CAAA;;;ACvBD;;AAEG;;;;"}
|
@@ -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';\nimport { FieldType,
|
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 { NzSafeAny } from 'ng-zorro-antd/core/types';\nimport type { InputGroupProps } from './input-group.props';\n\nexport interface FormlyInputGroupFieldConfig extends NzFormlyFieldConfig<InputGroupProps> {\n type: 'input-group' | Type<FormlyFieldInputGroup>;\n}\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 >\n <formly-field *ngFor=\"let f of group; trackBy: trackById\" [field]=\"f\"></formly-field>\n </nz-input-group>\n `,\n changeDetection: ChangeDetectionStrategy.OnPush\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 get group() {\n return this.field.fieldGroup;\n }\n trackById(index: number, envent: NzSafeAny) {\n if (!envent.id) {\n return index;\n }\n return envent.id;\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":";;;;;;;;;;AAgCM,MAAO,qBAAsB,SAAQ,SAA2C,CAAA;AAtBtF,IAAA,WAAA,GAAA;;AAuBW,QAAA,IAAA,CAAA,cAAc,GAAG;AACxB,YAAA,KAAK,EAAE;AACL,gBAAA,MAAM,EAAE,EAAW;AACnB,gBAAA,IAAI,EAAE,SAAkB;AACzB,aAAA;SACF,CAAC;AAUH,KAAA;AATC,IAAA,IAAI,KAAK,GAAA;AACP,QAAA,OAAO,IAAI,CAAC,KAAK,CAAC,UAAU,CAAC;KAC9B;IACD,SAAS,CAAC,KAAa,EAAE,MAAiB,EAAA;AACxC,QAAA,IAAI,CAAC,MAAM,CAAC,EAAE,EAAE;AACd,YAAA,OAAO,KAAK,CAAC;AACd,SAAA;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CAAC;AACpB,4BAAA,KAAK,EAAE;AACL,gCAAA;AACE,oCAAA,IAAI,EAAE,aAAa;AACnB,oCAAA,SAAS,EAAE,qBAAqB;oCAChC,QAAQ,EAAE,CAAC,YAAY,CAAC;AACzB,iCAAA;AACF,6BAAA;yBACF,CAAC;AACH,qBAAA;AACF,iBAAA,CAAA;;;ACzBD;;AAEG;;;;"}
|
@@ -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';\nimport { FieldType, FieldTypeConfig
|
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@Component({\n selector: 'formly-field-inputnumber',\n template: `\n <ng-container [ngSwitch]=\"props.type\">\n <nz-input-number-group\n *ngSwitchCase=\"'group'\"\n [ngClass]=\"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=\"nzinputnumber\"></ng-container>\n </nz-input-number-group>\n\n <ng-container *ngSwitchDefault>\n <ng-template [ngTemplateOutlet]=\"nzinputnumber\"></ng-template>\n </ng-container>\n </ng-container>\n\n <ng-template #nzinputnumber>\n <nz-input-number\n [formControl]=\"formControl\"\n [formlyAttributes]=\"field\"\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 [ngClass]=\"props['className']\"\n (ngModelChange)=\"props['modelChange'] && props['modelChange'](field, $event)\"\n (nzFocus)=\"props.focus && props.focus(field, $event)\"\n (nzBlur)=\"props.blur && props.blur(field, $event)\"\n ></nz-input-number>\n </ng-template>\n `,\n changeDetection: ChangeDetectionStrategy.OnPush\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: 'decimal',\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":";;;;;;;;;;;;AA0DM,MAAO,sBAAuB,SAAQ,SAA0B,CAAA;AAjDtE,IAAA,WAAA,GAAA;;AAkDW,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,SAAS;AACpB,gBAAA,SAAS,EAAE,CAAC,KAAsB,KAAK,KAAK;AAC7C,aAAA;SACF,CAAC;AACH,KAAA;8GAnBY,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,QAAA,EAAA,IAAA,EAAA,sBAAsB,E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;AACd,oCAAA,SAAS,EAAE,sBAAsB;oCACjC,QAAQ,EAAE,CAAC,YAAY,CAAC;AACzB,iCAAA;AACD,gCAAA;AACE,oCAAA,IAAI,EAAE,SAAS;AACf,oCAAA,OAAO,EAAE,QAAQ;AAClB,iCAAA;AACF,6BAAA;yBACF,CAAC;AACH,qBAAA;AACF,iBAAA,CAAA;;;AC/BD;;AAEG;;;;"}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"ngx-formly-zorro-antd-input.mjs","sources":["../../../../packages/formlyantd/input/src/input.type.ts","../../../../packages/formlyantd/input/src/input.module.ts","../../../../packages/formlyantd/input/src/ngx-formly-zorro-antd-input.ts"],"sourcesContent":["import { Component, ChangeDetectionStrategy, Type } from '@angular/core';\nimport { FieldType, FieldTypeConfig, FormlyFieldConfig } from '@ngx-formly/core';\nimport type { NzSafeAny } from 'ng-zorro-antd/core/types';\n\nimport type { InputProps } from './input.props';\n\nexport interface FormlyInputFieldConfig extends FormlyFieldConfig<InputProps> {\n type: 'input' | 'string' | 'password' | Type<FormlyFieldInput>;\n}\n\n@Component({\n selector: 'formly-field-input',\n template: `\n <ng-container [ngSwitch]=\"props.type\">\n <ng-container *ngSwitchCase=\"'password'\">\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 [nzCompact]=\"props['compact']!!\"\n [nzSearch]=\"props['search']!!\"\n [nzSize]=\"props['size']!\"\n [nzStatus]=\"props['status']!\"\n [nzSuffix]=\"passwordEyeTpl\"\n >\n <input\n [type]=\"passwordVisible ? 'text' : 'password'\"\n nz-input\n [formControl]=\"formControl\"\n [formlyAttributes]=\"field\"\n [nzBorderless]=\"props['borderless']!!\"\n (ngModelChange)=\"props['modelChange'] && props['modelChange'](field, $event)\"\n />\n </nz-input-group>\n </ng-container>\n\n <nz-input-group\n *ngSwitchCase=\"'autoComplete'\"\n [nzSize]=\"props['size']\"\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['allowClear']!! ? inputClearTpl : props['suffix']\"\n >\n <input\n nz-input\n [nzBorderless]=\"props['borderless']\"\n [nzAutocomplete]=\"auto\"\n [formControl]=\"formControl\"\n [formlyAttributes]=\"field\"\n />\n <nz-autocomplete\n [nzBackfill]=\"props['autocompleteOptions']?.backfill\"\n [nzDefaultActiveFirstOption]=\"props['autocompleteOptions']?.defaultActiveFirstOption\"\n [nzWidth]=\"props['autocompleteOptions']?.width\"\n [nzOverlayClassName]=\"props['autocompleteOptions']?.overlayClassName\"\n [nzOverlayStyle]=\"props['autocompleteOptions']?.overlayStyle\"\n [compareWith]=\"props['autocompleteOptions']?.compareWith\"\n #auto\n >\n <nz-auto-option\n *ngFor=\"let option of props['autocompleteOptions'].dataSource\"\n [nzLabel]=\"option.label\"\n [nzValue]=\"option.value\"\n >\n {{ option.label }}\n </nz-auto-option>\n </nz-autocomplete>\n </nz-input-group>\n\n <nz-input-group\n *ngSwitchCase=\"'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['allowClear']!! ? inputClearTpl : props['suffix']\"\n [nzCompact]=\"props['compact']!!\"\n [nzSearch]=\"props['search']!!\"\n [nzSize]=\"props['size']!\"\n [nzStatus]=\"props['status']!\"\n >\n <input\n nz-input\n type=\"text\"\n [ngClass]=\"props['className']!\"\n [formControl]=\"formControl\"\n [formlyAttributes]=\"field\"\n [nzBorderless]=\"!!props['borderless']!!\"\n (ngModelChange)=\"props['modelChange']?.(field, $event)\"\n />\n </nz-input-group>\n\n <input\n *ngSwitchDefault\n nz-input\n type=\"text\"\n [ngClass]=\"props['className']!\"\n [formControl]=\"formControl\"\n [formlyAttributes]=\"field\"\n [nzSize]=\"props['size']\"\n [nzStatus]=\"props['status']\"\n [nzBorderless]=\"props['borderless']!!\"\n (ngModelChange)=\"props['modelChange'] && props['modelChange'](field, $event)\"\n />\n </ng-container>\n\n <!-- 查看密码 -->\n <ng-template #passwordEyeTpl>\n <span\n nz-icon\n class=\"cursor-pointer\"\n [nzType]=\"passwordVisible ? 'eye-invisible' : 'eye'\"\n (click)=\"passwordVisible = !passwordVisible\"\n ></span>\n\n <span\n nz-icon\n class=\"ant-input-clear-icon\"\n nzTheme=\"fill\"\n nzType=\"close-circle\"\n *ngIf=\"formControl.value && props['allowClear']!!\"\n (click)=\"formControl.reset()\"\n ></span>\n </ng-template>\n <!-- 清除数据 -->\n <ng-template #inputClearTpl>\n <span\n nz-icon\n class=\"ant-input-clear-icon\"\n nzTheme=\"fill\"\n nzType=\"close-circle\"\n *ngIf=\"formControl.value && !props['disabled'] && !props['readonly']\"\n (click)=\"formControl.reset()\"\n ></span>\n </ng-template>\n `,\n changeDetection: ChangeDetectionStrategy.OnPush\n})\nexport class FormlyFieldInput extends FieldType<FieldTypeConfig> {\n override defaultOptions = {\n props: {\n borderless: false,\n compact: false,\n search: false,\n allowClear: false,\n autocompleteOptions: {\n backfill: false,\n defaultActiveFirstOption: true,\n compareWith: (o1: NzSafeAny, o2: NzSafeAny) => o1 === o2\n }\n }\n };\n passwordVisible = false;\n}\n","import { NgModule } from '@angular/core';\nimport { CommonModule } from '@angular/common';\nimport { FormlyModule } from '@ngx-formly/core';\nimport { ReactiveFormsModule } from '@angular/forms';\nimport { FormlyNzFormFieldModule } from 'ngx-formly-zorro-antd/form-field';\n\nimport { NzInputModule } from 'ng-zorro-antd/input';\nimport { NzAutocompleteModule } from 'ng-zorro-antd/auto-complete';\nimport { NzIconModule } from 'ng-zorro-antd/icon';\n\nimport { FormlyFieldInput } from './input.type';\n\n@NgModule({\n declarations: [FormlyFieldInput],\n imports: [\n CommonModule,\n ReactiveFormsModule,\n NzInputModule,\n NzAutocompleteModule,\n NzIconModule,\n\n FormlyNzFormFieldModule,\n FormlyModule.forChild({\n types: [\n {\n name: 'input',\n component: FormlyFieldInput,\n wrappers: ['form-field'],\n defaultOptions: {\n props: {\n type: 'input'\n }\n }\n },\n { name: 'string', extends: 'input' },\n {\n name: 'password',\n extends: 'input',\n defaultOptions: {\n props: {\n type: 'password'\n }\n }\n }\n ]\n })\n ]\n})\nexport class FormlyNzInputModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public_api';\n"],"names":["i1"],"mappings":";;;;;;;;;;;;;;;;AAsJM,MAAO,gBAAiB,SAAQ,SAA0B,CAAA;AA5IhE,IAAA,WAAA,GAAA;;AA6IW,QAAA,IAAA,CAAA,cAAc,GAAG;AACxB,YAAA,KAAK,EAAE;AACL,gBAAA,UAAU,EAAE,KAAK;AACjB,gBAAA,OAAO,EAAE,KAAK;AACd,gBAAA,MAAM,EAAE,KAAK;AACb,gBAAA,UAAU,EAAE,KAAK;AACjB,gBAAA,mBAAmB,EAAE;AACnB,oBAAA,QAAQ,EAAE,KAAK;AACf,oBAAA,wBAAwB,EAAE,IAAI;oBAC9B,WAAW,EAAE,CAAC,EAAa,EAAE,EAAa,KAAK,EAAE,KAAK,EAAE;AACzD,iBAAA;AACF,aAAA;SACF,CAAC;QACF,IAAe,CAAA,eAAA,GAAG,KAA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,EAAE,OAAO,EAAE,OAAO,EAAE;AACpC,oBAAA;AACE,wBAAA,IAAI,EAAE,UAAU;AAChB,wBAAA,OAAO,EAAE,OAAO;AAChB,wBAAA,cAAc,EAAE;AACd,4BAAA,KAAK,EAAE;AACL,gCAAA,IAAI,EAAE,UAAU;AACjB,6BAAA;AACF,yBAAA;AACF,qBAAA;AACF,iBAAA;aACF,CAAC,CAAA,EAAA,CAAA,CAAA,EAAA;;2FAGO,mBAAmB,EAAA,UAAA,EAAA,CAAA;kBApC/B,QAAQ;AAAC,YAAA,IAAA,EAAA,CAAA;oBACR,YAAY,EAAE,CAAC,gBAAgB,CAAC;AAChC,oBAAA,OAAO,EAAE;wBACP,YAAY;wBACZ,mBAAmB;wBACnB,aAAa;wBACb,oBAAoB;wBACpB,YAAY;wBAEZ,uBAAuB;wBACvB,YAAY,CAAC,QAAQ,CAAC;AACpB,4BAAA,KAAK,EAAE;AACL,gCAAA;AACE,oCAAA,IAAI,EAAE,OAAO;AACb,oCAAA,SAAS,EAAE,gBAAgB;oCAC3B,QAAQ,EAAE,CAAC,YAAY,CAAC;AACxB,oCAAA,cAAc,EAAE;AACd,wCAAA,KAAK,EAAE;AACL,4CAAA,IAAI,EAAE,OAAO;AACd,yCAAA;AACF,qCAAA;AACF,iCAAA;AACD,gCAAA,EAAE,IAAI,EAAE,QAAQ,EAAE,OAAO,EAAE,OAAO,EAAE;AACpC,gCAAA;AACE,oCAAA,IAAI,EAAE,UAAU;AAChB,oCAAA,OAAO,EAAE,OAAO;AAChB,oCAAA,cAAc,EAAE;AACd,wCAAA,KAAK,EAAE;AACL,4CAAA,IAAI,EAAE,UAAU;AACjB,yCAAA;AACF,qCAAA;AACF,iCAAA;AACF,6BAAA;yBACF,CAAC;AACH,qBAAA;AACF,iBAAA,CAAA;;;AC/CD;;AAEG;;;;"}
|
1
|
+
{"version":3,"file":"ngx-formly-zorro-antd-input.mjs","sources":["../../../../packages/formlyantd/input/src/input.type.ts","../../../../packages/formlyantd/input/src/input.module.ts","../../../../packages/formlyantd/input/src/ngx-formly-zorro-antd-input.ts"],"sourcesContent":["import { Component, ChangeDetectionStrategy, Type } from '@angular/core';\nimport { FieldType, FieldTypeConfig } from '@ngx-formly/core';\nimport type { NzFormlyFieldConfig } from 'ngx-formly-zorro-antd/common';\nimport type { NzSafeAny } from 'ng-zorro-antd/core/types';\n\nimport type { InputProps } from './input.props';\n\nexport interface FormlyInputFieldConfig extends NzFormlyFieldConfig<InputProps> {\n type: 'input' | 'string' | 'password' | Type<FormlyFieldInput>;\n}\n\n@Component({\n selector: 'formly-field-input',\n template: `\n <ng-container [ngSwitch]=\"props.type\">\n <ng-container *ngSwitchCase=\"'password'\">\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 [nzCompact]=\"props['compact']!!\"\n [nzSearch]=\"props['search']!!\"\n [nzSize]=\"props['size']!\"\n [nzStatus]=\"props['status']!\"\n [nzSuffix]=\"passwordEyeTpl\"\n >\n <input\n [type]=\"passwordVisible ? 'text' : 'password'\"\n nz-input\n [formControl]=\"formControl\"\n [formlyAttributes]=\"field\"\n [nzBorderless]=\"props['borderless']!!\"\n (ngModelChange)=\"props['modelChange'] && props['modelChange'](field, $event)\"\n />\n </nz-input-group>\n </ng-container>\n\n <nz-input-group\n *ngSwitchCase=\"'autoComplete'\"\n [nzSize]=\"props['size']\"\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['allowClear']!! ? inputClearTpl : props['suffix']\"\n >\n <input\n nz-input\n [nzBorderless]=\"props['borderless']\"\n [nzAutocomplete]=\"auto\"\n [formControl]=\"formControl\"\n [formlyAttributes]=\"field\"\n />\n <nz-autocomplete\n [nzBackfill]=\"props['autocompleteOptions']?.backfill\"\n [nzDefaultActiveFirstOption]=\"props['autocompleteOptions']?.defaultActiveFirstOption\"\n [nzWidth]=\"props['autocompleteOptions']?.width\"\n [nzOverlayClassName]=\"props['autocompleteOptions']?.overlayClassName\"\n [nzOverlayStyle]=\"props['autocompleteOptions']?.overlayStyle\"\n [compareWith]=\"props['autocompleteOptions']?.compareWith\"\n #auto\n >\n <nz-auto-option\n *ngFor=\"let option of props['autocompleteOptions'].dataSource\"\n [nzLabel]=\"option.label\"\n [nzValue]=\"option.value\"\n >\n {{ option.label }}\n </nz-auto-option>\n </nz-autocomplete>\n </nz-input-group>\n\n <nz-input-group\n *ngSwitchCase=\"'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['allowClear']!! ? inputClearTpl : props['suffix']\"\n [nzCompact]=\"props['compact']!!\"\n [nzSearch]=\"props['search']!!\"\n [nzSize]=\"props['size']!\"\n [nzStatus]=\"props['status']!\"\n >\n <input\n nz-input\n type=\"text\"\n [ngClass]=\"props['className']!\"\n [formControl]=\"formControl\"\n [formlyAttributes]=\"field\"\n [nzBorderless]=\"!!props['borderless']!!\"\n (ngModelChange)=\"props['modelChange']?.(field, $event)\"\n />\n </nz-input-group>\n\n <input\n *ngSwitchDefault\n nz-input\n type=\"text\"\n [ngClass]=\"props['className']!\"\n [formControl]=\"formControl\"\n [formlyAttributes]=\"field\"\n [nzSize]=\"props['size']\"\n [nzStatus]=\"props['status']\"\n [nzBorderless]=\"props['borderless']!!\"\n (ngModelChange)=\"props['modelChange'] && props['modelChange'](field, $event)\"\n />\n </ng-container>\n\n <!-- 查看密码 -->\n <ng-template #passwordEyeTpl>\n <span\n nz-icon\n class=\"cursor-pointer\"\n [nzType]=\"passwordVisible ? 'eye-invisible' : 'eye'\"\n (click)=\"passwordVisible = !passwordVisible\"\n ></span>\n\n <span\n nz-icon\n class=\"ant-input-clear-icon\"\n nzTheme=\"fill\"\n nzType=\"close-circle\"\n *ngIf=\"formControl.value && props['allowClear']!!\"\n (click)=\"formControl.reset()\"\n ></span>\n </ng-template>\n <!-- 清除数据 -->\n <ng-template #inputClearTpl>\n <span\n nz-icon\n class=\"ant-input-clear-icon\"\n nzTheme=\"fill\"\n nzType=\"close-circle\"\n *ngIf=\"formControl.value && !props['disabled'] && !props['readonly']\"\n (click)=\"formControl.reset()\"\n ></span>\n </ng-template>\n `,\n changeDetection: ChangeDetectionStrategy.OnPush\n})\nexport class FormlyFieldInput extends FieldType<FieldTypeConfig> {\n override defaultOptions = {\n props: {\n borderless: false,\n compact: false,\n search: false,\n allowClear: false,\n autocompleteOptions: {\n backfill: false,\n defaultActiveFirstOption: true,\n compareWith: (o1: NzSafeAny, o2: NzSafeAny) => o1 === o2\n }\n }\n };\n passwordVisible = false;\n}\n","import { NgModule } from '@angular/core';\nimport { CommonModule } from '@angular/common';\nimport { FormlyModule } from '@ngx-formly/core';\nimport { ReactiveFormsModule } from '@angular/forms';\nimport { FormlyNzFormFieldModule } from 'ngx-formly-zorro-antd/form-field';\n\nimport { NzInputModule } from 'ng-zorro-antd/input';\nimport { NzAutocompleteModule } from 'ng-zorro-antd/auto-complete';\nimport { NzIconModule } from 'ng-zorro-antd/icon';\n\nimport { FormlyFieldInput } from './input.type';\n\n@NgModule({\n declarations: [FormlyFieldInput],\n imports: [\n CommonModule,\n ReactiveFormsModule,\n NzInputModule,\n NzAutocompleteModule,\n NzIconModule,\n\n FormlyNzFormFieldModule,\n FormlyModule.forChild({\n types: [\n {\n name: 'input',\n component: FormlyFieldInput,\n wrappers: ['form-field'],\n defaultOptions: {\n props: {\n type: 'input'\n }\n }\n },\n { name: 'string', extends: 'input' },\n {\n name: 'password',\n extends: 'input',\n defaultOptions: {\n props: {\n type: 'password'\n }\n }\n }\n ]\n })\n ]\n})\nexport class FormlyNzInputModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public_api';\n"],"names":["i1"],"mappings":";;;;;;;;;;;;;;;;AAuJM,MAAO,gBAAiB,SAAQ,SAA0B,CAAA;AA5IhE,IAAA,WAAA,GAAA;;AA6IW,QAAA,IAAA,CAAA,cAAc,GAAG;AACxB,YAAA,KAAK,EAAE;AACL,gBAAA,UAAU,EAAE,KAAK;AACjB,gBAAA,OAAO,EAAE,KAAK;AACd,gBAAA,MAAM,EAAE,KAAK;AACb,gBAAA,UAAU,EAAE,KAAK;AACjB,gBAAA,mBAAmB,EAAE;AACnB,oBAAA,QAAQ,EAAE,KAAK;AACf,oBAAA,wBAAwB,EAAE,IAAI;oBAC9B,WAAW,EAAE,CAAC,EAAa,EAAE,EAAa,KAAK,EAAE,KAAK,EAAE;AACzD,iBAAA;AACF,aAAA;SACF,CAAC;QACF,IAAe,CAAA,eAAA,GAAG,KAAK,CAAC;AACzB,KAAA;8GAfY,gBAAgB,EAAA,IAAA,EAAA,IAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA,CAAA,EAAA;AAAhB,IAAA,SAAA,IAAA,CAAA,IAAA,GAAA,EAAA,CAAA,oBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,QAAA,EAAA,IAAA,EAAA,gBAAgB,EA1IjB,QAAA,EAAA,oBAAA,EAAA,eAAA,EAAA,IAAA,EAA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;AAAC,YAAA,IAAA,EAAA,CAAA;oBACR,YAAY,EAAE,CAAC,gBAAgB,CAAC;AAChC,oBAAA,OAAO,EAAE;wBACP,YAAY;wBACZ,mBAAmB;wBACnB,aAAa;wBACb,oBAAoB;wBACpB,YAAY;wBAEZ,uBAAuB;wBACvB,YAAY,CAAC,QAAQ,CAAC;AACpB,4BAAA,KAAK,EAAE;AACL,gCAAA;AACE,oCAAA,IAAI,EAAE,OAAO;AACb,oCAAA,SAAS,EAAE,gBAAgB;oCAC3B,QAAQ,EAAE,CAAC,YAAY,CAAC;AACxB,oCAAA,cAAc,EAAE;AACd,wCAAA,KAAK,EAAE;AACL,4CAAA,IAAI,EAAE,OAAO;AACd,yCAAA;AACF,qCAAA;AACF,iCAAA;AACD,gCAAA,EAAE,IAAI,EAAE,QAAQ,EAAE,OAAO,EAAE,OAAO,EAAE;AACpC,gCAAA;AACE,oCAAA,IAAI,EAAE,UAAU;AAChB,oCAAA,OAAO,EAAE,OAAO;AAChB,oCAAA,cAAc,EAAE;AACd,wCAAA,KAAK,EAAE;AACL,4CAAA,IAAI,EAAE,UAAU;AACjB,yCAAA;AACF,qCAAA;AACF,iCAAA;AACF,6BAAA;yBACF,CAAC;AACH,qBAAA;AACF,iBAAA,CAAA;;;AC/CD;;AAEG;;;;"}
|
@@ -31,7 +31,6 @@ class FormlyFieldRadio extends FieldType {
|
|
31
31
|
[nzName]="field.name ?? null"
|
32
32
|
[nzSize]="props['size']!"
|
33
33
|
[nzButtonStyle]="props['buttonStyle']!"
|
34
|
-
(ngModelChange)="props.change && props.change(field, $event)"
|
35
34
|
>
|
36
35
|
<ng-container *ngIf="props.type !== 'button'; else button">
|
37
36
|
<label
|
@@ -70,7 +69,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.5", ngImpor
|
|
70
69
|
[nzName]="field.name ?? null"
|
71
70
|
[nzSize]="props['size']!"
|
72
71
|
[nzButtonStyle]="props['buttonStyle']!"
|
73
|
-
(ngModelChange)="props.change && props.change(field, $event)"
|
74
72
|
>
|
75
73
|
<ng-container *ngIf="props.type !== 'button'; else button">
|
76
74
|
<label
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"ngx-formly-zorro-antd-radio.mjs","sources":["../../../../packages/formlyantd/radio/src/radio.type.ts","../../../../packages/formlyantd/radio/src/radio.module.ts","../../../../packages/formlyantd/radio/src/ngx-formly-zorro-antd-radio.ts"],"sourcesContent":["import { Component, ChangeDetectionStrategy, Type } from '@angular/core';\nimport { FieldType, FieldTypeConfig
|
1
|
+
{"version":3,"file":"ngx-formly-zorro-antd-radio.mjs","sources":["../../../../packages/formlyantd/radio/src/radio.type.ts","../../../../packages/formlyantd/radio/src/radio.module.ts","../../../../packages/formlyantd/radio/src/ngx-formly-zorro-antd-radio.ts"],"sourcesContent":["import { Component, ChangeDetectionStrategy, Type } from '@angular/core';\nimport { FieldType, FieldTypeConfig } from '@ngx-formly/core';\nimport type { NzFormlyFieldConfig } from 'ngx-formly-zorro-antd/common';\nimport type { FormlyFieldProps } from 'ngx-formly-zorro-antd/form-field';\n\nimport type { FormlyFieldSelectProps } from '@ngx-formly/core/select';\nimport type { NzSizeLDSType } from 'ng-zorro-antd/core/types';\nimport type { NzRadioButtonStyle } from 'ng-zorro-antd/radio';\n\ninterface RadioProps extends FormlyFieldProps, FormlyFieldSelectProps {\n type?: 'button';\n\n /**\n * nz-radio-group 下所有 input[type=\"radio\"] 的 name 属性\n */\n name?: string | null;\n /**\n * 大小,只对按钮样式生效\n * @default default\n */\n size?: NzSizeLDSType;\n /**\n * RadioButton 的风格样式,目前有描边和填色两种风格\n * @default outline\n */\n buttonStyle?: NzRadioButtonStyle;\n}\n\nexport interface FormlyRadioFieldConfig extends NzFormlyFieldConfig<RadioProps> {\n type: 'radio' | Type<FormlyFieldRadio>;\n}\n\n@Component({\n selector: 'formly-field-radio',\n template: `\n <nz-radio-group\n [formControl]=\"formControl\"\n [formlyAttributes]=\"field\"\n [nzName]=\"field.name ?? null\"\n [nzSize]=\"props['size']!\"\n [nzButtonStyle]=\"props['buttonStyle']!\"\n >\n <ng-container *ngIf=\"props.type !== 'button'; else button\">\n <label\n *ngFor=\"let option of props.options | formlySelectOptions: field | async; let i = index\"\n [id]=\"id + '_' + i\"\n [nzDisabled]=\"option.disabled === true\"\n [nzValue]=\"option.value\"\n nz-radio\n >\n {{ option.label }}\n </label>\n </ng-container>\n\n <ng-template #button>\n <label\n *ngFor=\"let option of props.options | formlySelectOptions: field | async; let i = index\"\n [id]=\"id + '_' + i\"\n [nzDisabled]=\"option.disabled === true\"\n [nzValue]=\"option.value\"\n nz-radio-button\n >\n {{ option.label }}\n </label>\n </ng-template>\n </nz-radio-group>\n `,\n changeDetection: ChangeDetectionStrategy.OnPush\n})\nexport class FormlyFieldRadio extends FieldType<FieldTypeConfig<RadioProps>> {\n override defaultOptions = {\n props: {\n size: 'default' as const,\n buttonStyle: 'outline' as const\n }\n };\n}\n","import { NgModule } from '@angular/core';\nimport { CommonModule } from '@angular/common';\nimport { ReactiveFormsModule } from '@angular/forms';\nimport { FormlyModule } from '@ngx-formly/core';\nimport { FormlySelectModule } from '@ngx-formly/core/select';\n\nimport { FormlyNzFormFieldModule } from 'ngx-formly-zorro-antd/form-field';\nimport { FormlyFieldRadio } from './radio.type';\n\nimport { NzFormModule } from 'ng-zorro-antd/form';\nimport { NzRadioModule } from 'ng-zorro-antd/radio';\n\n@NgModule({\n declarations: [FormlyFieldRadio],\n imports: [\n CommonModule,\n ReactiveFormsModule,\n FormlyNzFormFieldModule,\n FormlySelectModule,\n NzFormModule,\n\n NzRadioModule,\n FormlyModule.forChild({\n types: [\n {\n name: 'radio',\n component: FormlyFieldRadio,\n wrappers: ['form-field']\n }\n ]\n })\n ]\n})\nexport class FormlyNzRadioModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public_api';\n"],"names":["i1"],"mappings":";;;;;;;;;;;;;;;AAqEM,MAAO,gBAAiB,SAAQ,SAAsC,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AE,CAAC,YAAY,CAAC;AACzB,iCAAA;AACF,6BAAA;yBACF,CAAC;AACH,qBAAA;AACF,iBAAA,CAAA;;;AChCD;;AAEG;;;;"}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"ngx-formly-zorro-antd-rate.mjs","sources":["../../../../packages/formlyantd/rate/src/rate.type.ts","../../../../packages/formlyantd/rate/src/rate.module.ts","../../../../packages/formlyantd/rate/src/ngx-formly-zorro-antd-rate.ts"],"sourcesContent":["import { Component, TemplateRef, Type, ChangeDetectionStrategy } from '@angular/core';\nimport { FieldType, FieldTypeConfig
|
1
|
+
{"version":3,"file":"ngx-formly-zorro-antd-rate.mjs","sources":["../../../../packages/formlyantd/rate/src/rate.type.ts","../../../../packages/formlyantd/rate/src/rate.module.ts","../../../../packages/formlyantd/rate/src/ngx-formly-zorro-antd-rate.ts"],"sourcesContent":["import { Component, TemplateRef, Type, ChangeDetectionStrategy } from '@angular/core';\nimport { FieldType, FieldTypeConfig } from '@ngx-formly/core';\nimport type { NzFormlyFieldConfig, FormlyAttributeEvent } from 'ngx-formly-zorro-antd/common';\nimport type { FormlyFieldProps } from 'ngx-formly-zorro-antd/form-field';\n\ninterface RateProps extends FormlyFieldProps {\n /**\n * 是否允许再次点击后清除\n * @default true\n */\n allowClear?: boolean;\n\n /**\n * 是否允许半选\n * @default false\n */\n allowHalf?: boolean;\n\n /**\n * 自动获取焦点\n * @default false\n */\n autoFocus?: boolean;\n\n /**\n * 自定义字符\n * @default <span nz-icon nzType=\"star\"></span>\n */\n character?: TemplateRef<{\n $implicit: number;\n }>;\n\n /**\n * star 总数\n * @default 5\n */\n count?: number;\n\n /**\n * 自定义每项的提示信息\n * @default []\n */\n tooltips?: string[];\n\n /**\n * 鼠标经过时数值变化的回调\n */\n hoverChange?: FormlyAttributeEvent<number | undefined>;\n}\n\nexport interface FormlyRateFieldConfig extends NzFormlyFieldConfig<RateProps> {\n type: 'rate' | Type<FormlyFieldRate>;\n}\n\n@Component({\n selector: 'formly-field-rate',\n template: `\n <nz-rate\n [formControl]=\"formControl\"\n [formlyAttributes]=\"field\"\n [nzAllowClear]=\"props['allowClear']!!\"\n [nzAllowHalf]=\"props['allowHalf']!!\"\n [nzAutoFocus]=\"props['autoFocus']!!\"\n [nzCharacter]=\"props['character']!\"\n [nzCount]=\"props['count']\"\n [nzTooltips]=\"props['tooltips']!\"\n (ngModelChange)=\"props.change && props.change(field, $event)\"\n (nzOnBlur)=\"props.blur && props.blur(field, $event)\"\n (nzOnFocus)=\"props.focus && props.focus(field, $event)\"\n (nzOnHoverChange)=\"props['hoverChange'] && props['hoverChange'](field, $event)\"\n (nzOnKeyDown)=\"props.keydown && props.keydown(field, $event)\"\n ></nz-rate>\n `,\n changeDetection: ChangeDetectionStrategy.OnPush\n})\nexport class FormlyFieldRate extends FieldType<FieldTypeConfig<RateProps>> {\n override defaultOptions = {\n props: {\n allowClear: true,\n allowHalf: false,\n autoFocus: false,\n count: 5,\n tooltips: []\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 { NzRateModule } from 'ng-zorro-antd/rate';\n\nimport { FormlyFieldRate } from './rate.type';\n\n@NgModule({\n declarations: [FormlyFieldRate],\n imports: [\n CommonModule,\n ReactiveFormsModule,\n FormlyNzFormFieldModule,\n NzRateModule,\n\n FormlyModule.forChild({\n types: [\n {\n name: 'rate',\n component: FormlyFieldRate,\n wrappers: ['form-field']\n }\n ]\n })\n ]\n})\nexport class FormlyNzRateModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public_api';\n"],"names":["i1"],"mappings":";;;;;;;;;;;AA2EM,MAAO,eAAgB,SAAQ,SAAqC,CAAA;AArB1E,IAAA,WAAA,GAAA;;AAsBW,QAAA,IAAA,CAAA,cAAc,GAAG;AACxB,YAAA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AA;AACF,iBAAA;aACF,CAAC,CAAA,EAAA,CAAA,CAAA,EAAA;;2FAGO,kBAAkB,EAAA,UAAA,EAAA,CAAA;kBAnB9B,QAAQ;AAAC,YAAA,IAAA,EAAA,CAAA;oBACR,YAAY,EAAE,CAAC,eAAe,CAAC;AAC/B,oBAAA,OAAO,EAAE;wBACP,YAAY;wBACZ,mBAAmB;wBACnB,uBAAuB;wBACvB,YAAY;wBAEZ,YAAY,CAAC,QAAQ,CAAC;AACpB,4BAAA,KAAK,EAAE;AACL,gCAAA;AACE,oCAAA,IAAI,EAAE,MAAM;AACZ,oCAAA,SAAS,EAAE,eAAe;oCAC1B,QAAQ,EAAE,CAAC,YAAY,CAAC;AACzB,iCAAA;AACF,6BAAA;yBACF,CAAC;AACH,qBAAA;AACF,iBAAA,CAAA;;;AC5BD;;AAEG;;;;"}
|
@@ -0,0 +1,136 @@
|
|
1
|
+
import * as i0 from '@angular/core';
|
2
|
+
import { Component, ChangeDetectionStrategy, Optional, NgModule } from '@angular/core';
|
3
|
+
import { CommonModule } from '@angular/common';
|
4
|
+
import * as i1$1 from '@ngx-formly/core';
|
5
|
+
import { FieldType, FormlyModule } from '@ngx-formly/core';
|
6
|
+
import * as i2 from 'ng-zorro-antd/core/outlet';
|
7
|
+
import { NzOutletModule } from 'ng-zorro-antd/core/outlet';
|
8
|
+
import * as i3 from '@pkt/ng.core';
|
9
|
+
import { TrustedHtmlPipe } from '@pkt/ng.core';
|
10
|
+
import * as i1 from 'ngx-formly-zorro-antd/common';
|
11
|
+
import { resolveTplName } from 'ngx-formly-zorro-antd/common';
|
12
|
+
|
13
|
+
/**
|
14
|
+
* 引用模板,支持HTML,TemplateRef对象,或者NamedTemplate
|
15
|
+
* @example
|
16
|
+
*
|
17
|
+
* 用法1: 使用NamedTemplate(推荐)
|
18
|
+
*
|
19
|
+
* html
|
20
|
+
* ```html
|
21
|
+
* <formly-form formly-box>
|
22
|
+
* <ng-template named="test"></ng-template>
|
23
|
+
* </formly-form>
|
24
|
+
* ```
|
25
|
+
*
|
26
|
+
* 配置
|
27
|
+
* ```js
|
28
|
+
* {
|
29
|
+
* type: 'ref-template',
|
30
|
+
* props: {
|
31
|
+
* refName: 'test'
|
32
|
+
* }
|
33
|
+
* }
|
34
|
+
* ```
|
35
|
+
*
|
36
|
+
* 用法2:TemplateRef对象
|
37
|
+
* ```html
|
38
|
+
* <ng-template #test2></ng-template>
|
39
|
+
* ```
|
40
|
+
*
|
41
|
+
* 配置
|
42
|
+
* @viewChild('test2') test2: TemplateRef<{}>;
|
43
|
+
*
|
44
|
+
* ```js
|
45
|
+
* {
|
46
|
+
* type: 'ref-template',
|
47
|
+
* props: {
|
48
|
+
* ref: this.test2
|
49
|
+
* }
|
50
|
+
* }
|
51
|
+
* ```
|
52
|
+
*
|
53
|
+
* 用法3: 使用html
|
54
|
+
*
|
55
|
+
* 配置
|
56
|
+
* ```js
|
57
|
+
* {
|
58
|
+
* type: 'ref-template',
|
59
|
+
* props: {
|
60
|
+
* ref: '<div>test text</div>'
|
61
|
+
* }
|
62
|
+
* }
|
63
|
+
* ```
|
64
|
+
*/
|
65
|
+
class FormlyFieldRefTemplate extends FieldType {
|
66
|
+
constructor(fieldTemplates) {
|
67
|
+
super();
|
68
|
+
this.fieldTemplates = fieldTemplates;
|
69
|
+
}
|
70
|
+
get ref() {
|
71
|
+
return resolveTplName(this.props, this.fieldTemplates, 'ref');
|
72
|
+
}
|
73
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.5", ngImport: i0, type: FormlyFieldRefTemplate, deps: [{ token: i1.FormlyBoxTemplates, optional: true }], target: i0.ɵɵFactoryTarget.Component }); }
|
74
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.1.5", type: FormlyFieldRefTemplate, selector: "formly-ref-template", usesInheritance: true, ngImport: i0, template: `
|
75
|
+
<ng-container *nzStringTemplateOutlet="ref; context: { $implicit: field, props: props }">
|
76
|
+
<div [innerHTML]="$any(ref) | trustedHtml"></div>
|
77
|
+
</ng-container>
|
78
|
+
`, isInline: true, dependencies: [{ kind: "directive", type: i2.NzStringTemplateOutletDirective, selector: "[nzStringTemplateOutlet]", inputs: ["nzStringTemplateOutletContext", "nzStringTemplateOutlet"], exportAs: ["nzStringTemplateOutlet"] }, { kind: "pipe", type: i3.TrustedHtmlPipe, name: "trustedHtml" }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
79
|
+
}
|
80
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.5", ngImport: i0, type: FormlyFieldRefTemplate, decorators: [{
|
81
|
+
type: Component,
|
82
|
+
args: [{
|
83
|
+
selector: 'formly-ref-template',
|
84
|
+
template: `
|
85
|
+
<ng-container *nzStringTemplateOutlet="ref; context: { $implicit: field, props: props }">
|
86
|
+
<div [innerHTML]="$any(ref) | trustedHtml"></div>
|
87
|
+
</ng-container>
|
88
|
+
`,
|
89
|
+
changeDetection: ChangeDetectionStrategy.OnPush
|
90
|
+
}]
|
91
|
+
}], ctorParameters: function () { return [{ type: i1.FormlyBoxTemplates, decorators: [{
|
92
|
+
type: Optional
|
93
|
+
}] }]; } });
|
94
|
+
|
95
|
+
class FormlyRefTemplateModule {
|
96
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.5", ngImport: i0, type: FormlyRefTemplateModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
97
|
+
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "16.1.5", ngImport: i0, type: FormlyRefTemplateModule, declarations: [FormlyFieldRefTemplate], imports: [CommonModule,
|
98
|
+
NzOutletModule,
|
99
|
+
TrustedHtmlPipe, i1$1.FormlyModule] }); }
|
100
|
+
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "16.1.5", ngImport: i0, type: FormlyRefTemplateModule, imports: [CommonModule,
|
101
|
+
NzOutletModule,
|
102
|
+
FormlyModule.forChild({
|
103
|
+
types: [
|
104
|
+
{
|
105
|
+
name: 'ref-template',
|
106
|
+
component: FormlyFieldRefTemplate
|
107
|
+
}
|
108
|
+
]
|
109
|
+
})] }); }
|
110
|
+
}
|
111
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.5", ngImport: i0, type: FormlyRefTemplateModule, decorators: [{
|
112
|
+
type: NgModule,
|
113
|
+
args: [{
|
114
|
+
declarations: [FormlyFieldRefTemplate],
|
115
|
+
imports: [
|
116
|
+
CommonModule,
|
117
|
+
NzOutletModule,
|
118
|
+
TrustedHtmlPipe,
|
119
|
+
FormlyModule.forChild({
|
120
|
+
types: [
|
121
|
+
{
|
122
|
+
name: 'ref-template',
|
123
|
+
component: FormlyFieldRefTemplate
|
124
|
+
}
|
125
|
+
]
|
126
|
+
})
|
127
|
+
]
|
128
|
+
}]
|
129
|
+
}] });
|
130
|
+
|
131
|
+
/**
|
132
|
+
* Generated bundle index. Do not edit.
|
133
|
+
*/
|
134
|
+
|
135
|
+
export { FormlyFieldRefTemplate, FormlyRefTemplateModule };
|
136
|
+
//# sourceMappingURL=ngx-formly-zorro-antd-ref-template.mjs.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"ngx-formly-zorro-antd-ref-template.mjs","sources":["../../../../packages/formlyantd/ref-template/src/ref-template.type.ts","../../../../packages/formlyantd/ref-template/src/ref-template.module.ts","../../../../packages/formlyantd/ref-template/src/ngx-formly-zorro-antd-ref-template.ts"],"sourcesContent":["import { Component, TemplateRef, Optional, Type, ChangeDetectionStrategy } from '@angular/core';\nimport { FieldType, FieldTypeConfig } from '@ngx-formly/core';\nimport type { FormlyFieldProps } from 'ngx-formly-zorro-antd/form-field';\nimport type { NzFormlyFieldConfig } from 'ngx-formly-zorro-antd/common';\nimport { FormlyBoxTemplates, resolveTplName } from 'ngx-formly-zorro-antd/common';\n\ninterface RefTemplateProps extends FormlyFieldProps {\n ref?: string | TemplateRef<{ $implicit: FormlyRefTemplateFieldConfig; props: RefTemplateProps }>;\n refName?: string;\n}\n\n/**\n * RefTemplate 配置\n */\nexport interface FormlyRefTemplateFieldConfig extends NzFormlyFieldConfig<RefTemplateProps> {\n type: 'ref-template' | Type<FormlyFieldRefTemplate>;\n}\n\n/**\n * 引用模板,支持HTML,TemplateRef对象,或者NamedTemplate\n * @example\n *\n * 用法1: 使用NamedTemplate(推荐)\n *\n * html\n * ```html\n * <formly-form formly-box>\n * <ng-template named=\"test\"></ng-template>\n * </formly-form>\n * ```\n *\n * 配置\n * ```js\n * {\n * type: 'ref-template',\n * props: {\n * refName: 'test'\n * }\n * }\n * ```\n *\n * 用法2:TemplateRef对象\n * ```html\n * <ng-template #test2></ng-template>\n * ```\n *\n * 配置\n * @viewChild('test2') test2: TemplateRef<{}>;\n *\n * ```js\n * {\n * type: 'ref-template',\n * props: {\n * ref: this.test2\n * }\n * }\n * ```\n *\n * 用法3: 使用html\n *\n * 配置\n * ```js\n * {\n * type: 'ref-template',\n * props: {\n * ref: '<div>test text</div>'\n * }\n * }\n * ```\n */\n@Component({\n selector: 'formly-ref-template',\n template: `\n <ng-container *nzStringTemplateOutlet=\"ref; context: { $implicit: field, props: props }\">\n <div [innerHTML]=\"$any(ref) | trustedHtml\"></div>\n </ng-container>\n `,\n changeDetection: ChangeDetectionStrategy.OnPush\n})\nexport class FormlyFieldRefTemplate extends FieldType<FieldTypeConfig<RefTemplateProps>> {\n constructor(@Optional() public fieldTemplates: FormlyBoxTemplates) {\n super();\n }\n\n get ref() {\n return resolveTplName(this.props, this.fieldTemplates, 'ref');\n }\n}\n","import { NgModule } from '@angular/core';\nimport { CommonModule } from '@angular/common';\nimport { FormlyModule } from '@ngx-formly/core';\nimport { NzOutletModule } from 'ng-zorro-antd/core/outlet';\n\nimport { TrustedHtmlPipe } from '@pkt/ng.core';\nimport { FormlyFieldRefTemplate } from './ref-template.type';\n\n@NgModule({\n declarations: [FormlyFieldRefTemplate],\n imports: [\n CommonModule,\n NzOutletModule,\n TrustedHtmlPipe,\n FormlyModule.forChild({\n types: [\n {\n name: 'ref-template',\n component: FormlyFieldRefTemplate\n }\n ]\n })\n ]\n})\nexport class FormlyRefTemplateModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public_api';\n"],"names":["i1"],"mappings":";;;;;;;;;;;;AAkBA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAmDG;AAUG,MAAO,sBAAuB,SAAQ,SAA4C,CAAA;AACtF,IAAA,WAAA,CAA+B,cAAkC,EAAA;AAC/D,QAAA,KAAK,EAAE,CAAC;QADqB,IAAc,CAAA,cAAA,GAAd,cAAc,CAAoB;KAEhE;AAED,IAAA,IAAI,GAAG,GAAA;AACL,QAAA,OAAO,cAAc,CAAC,IAAI,CAAC,KAAK,EAAE,IAAI,CAAC,cAAc,EAAE,KAAK,CAAC,CAAC;KAC/D;8GAPU,sBAAsB,EAAA,IAAA,EAAA,CAAA,EAAA,KAAA,EAAA,EAAA,CAAA,kBAAA,EAAA,QAAA,EAAA,IAAA,EAAA,CAAA,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,QAAA,EAAA,IAAA,EAAA,sBAAsB,EAPvB,QAAA,EAAA,qBAAA,EAAA,eAAA,EAAA,IAAA,EAAA,QAAA,EAAA,EAAA,EAAA,QAAA,EAAA,CAAA;;;;AAIT,EAAA,CAAA,EAAA,QAAA,EAAA,IAAA,EAAA,YAAA,EAAA,CAAA,EAAA,IAAA,EAAA,WAAA,EAAA,IAAA,EAAA,EAAA,CAAA,+BAAA,EAAA,QAAA,EAAA,0BAAA,EAAA,MAAA,EAAA,CAAA,+BAAA,EAAA,wBAA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