ngx-formly-zorro-antd 17.3.7 → 17.4.0
Sign up to get free protection for your applications and to get access to all the features.
- package/esm2022/cascader/cascader.type.mjs +7 -7
- package/esm2022/checkbox/checkbox.type.mjs +3 -3
- package/esm2022/datepicker/datepicker.type.mjs +15 -21
- package/esm2022/input/input.type.mjs +5 -13
- package/esm2022/input-number/input-number.type.mjs +7 -7
- package/esm2022/rate/rate.type.mjs +11 -11
- package/esm2022/slider/slider.type.mjs +5 -5
- package/esm2022/switch/switch.type.mjs +3 -3
- package/esm2022/tabs/tabs.wrapper.mjs +17 -29
- package/esm2022/timepicker/timepicker.type.mjs +5 -5
- package/esm2022/transfer/transfer.type.mjs +7 -7
- package/esm2022/tree-select/tree-select.type.mjs +3 -3
- package/esm2022/upload/upload.type.mjs +7 -7
- package/fesm2022/ngx-formly-zorro-antd-cascader.mjs +6 -6
- 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 +14 -20
- package/fesm2022/ngx-formly-zorro-antd-datepicker.mjs.map +1 -1
- package/fesm2022/ngx-formly-zorro-antd-input-number.mjs +6 -6
- package/fesm2022/ngx-formly-zorro-antd-input-number.mjs.map +1 -1
- package/fesm2022/ngx-formly-zorro-antd-input.mjs +4 -12
- package/fesm2022/ngx-formly-zorro-antd-input.mjs.map +1 -1
- package/fesm2022/ngx-formly-zorro-antd-rate.mjs +10 -10
- package/fesm2022/ngx-formly-zorro-antd-rate.mjs.map +1 -1
- package/fesm2022/ngx-formly-zorro-antd-slider.mjs +4 -4
- package/fesm2022/ngx-formly-zorro-antd-slider.mjs.map +1 -1
- package/fesm2022/ngx-formly-zorro-antd-switch.mjs +2 -2
- package/fesm2022/ngx-formly-zorro-antd-switch.mjs.map +1 -1
- package/fesm2022/ngx-formly-zorro-antd-tabs.mjs +16 -28
- package/fesm2022/ngx-formly-zorro-antd-tabs.mjs.map +1 -1
- package/fesm2022/ngx-formly-zorro-antd-timepicker.mjs +4 -4
- package/fesm2022/ngx-formly-zorro-antd-timepicker.mjs.map +1 -1
- package/fesm2022/ngx-formly-zorro-antd-transfer.mjs +6 -6
- package/fesm2022/ngx-formly-zorro-antd-transfer.mjs.map +1 -1
- package/fesm2022/ngx-formly-zorro-antd-tree-select.mjs +2 -2
- package/fesm2022/ngx-formly-zorro-antd-tree-select.mjs.map +1 -1
- package/fesm2022/ngx-formly-zorro-antd-upload.mjs +6 -6
- package/fesm2022/ngx-formly-zorro-antd-upload.mjs.map +1 -1
- package/package.json +12 -12
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"ngx-formly-zorro-antd-tabs.mjs","sources":["../../../../packages/formlyantd/tabs/src/tabs.wrapper.ts","../../../../packages/formlyantd/tabs/src/tabs.module.ts","../../../../packages/formlyantd/tabs/src/ngx-formly-zorro-antd-tabs.ts"],"sourcesContent":["import { Component, Type, ChangeDetectionStrategy } from '@angular/core';\nimport { FieldWrapper } from '@ngx-formly/core';\nimport type { NzFormlyFieldConfig } from 'ngx-formly-zorro-antd/common';\nimport type { TabsProps } from './tabs.props';\n\nexport interface FormlyTabsWrapperConfig extends NzFormlyFieldConfig<TabsProps> {\n wrappers: ('tabs' | Type<FormlyWrapperTabs>)[];\n}\n\n@Component({\n selector: 'formly-wrapper-tabs',\n template: `<nz-tabset\n [(nzSelectedIndex)]=\"props['selectedIndex']\"\n [nzAnimated]=\"props['animated']!\"\n [nzSize]=\"props['size']!\"\n [nzTabBarExtraContent]=\"props['tabBarExtraContent']\"\n [nzTabBarStyle]=\"props['tabBarStyle'] ?? null\"\n [nzTabPosition]=\"props['tabPosition']!\"\n [nzType]=\"props['type']!\"\n [nzTabBarGutter]=\"props['tabBarGutter']\"\n [nzHideAll]=\"props['hideAll']!!\"\n [nzLinkRouter]=\"props['linkRouter']!!\"\n [nzLinkExact]=\"props['linkExact']!!\"\n [nzCanDeactivate]=\"props['canDeactivate'] ?? null\"\n [nzHideAdd]=\"props['hideAdd']!!\"\n [nzAddIcon]=\"props['addIcon']!\"\n (nzSelectedIndexChange)=\"
|
1
|
+
{"version":3,"file":"ngx-formly-zorro-antd-tabs.mjs","sources":["../../../../packages/formlyantd/tabs/src/tabs.wrapper.ts","../../../../packages/formlyantd/tabs/src/tabs.module.ts","../../../../packages/formlyantd/tabs/src/ngx-formly-zorro-antd-tabs.ts"],"sourcesContent":["import { Component, Type, ChangeDetectionStrategy } from '@angular/core';\nimport { FieldWrapper } from '@ngx-formly/core';\nimport type { NzFormlyFieldConfig } from 'ngx-formly-zorro-antd/common';\nimport type { TabsProps } from './tabs.props';\n\nexport interface FormlyTabsWrapperConfig extends NzFormlyFieldConfig<TabsProps> {\n wrappers: ('tabs' | Type<FormlyWrapperTabs>)[];\n}\n\n@Component({\n selector: 'formly-wrapper-tabs',\n template: `<nz-tabset\n [(nzSelectedIndex)]=\"props['selectedIndex']\"\n [nzAnimated]=\"props['animated']!\"\n [nzSize]=\"props['size']!\"\n [nzTabBarExtraContent]=\"props['tabBarExtraContent']\"\n [nzTabBarStyle]=\"props['tabBarStyle'] ?? null\"\n [nzTabPosition]=\"props['tabPosition']!\"\n [nzType]=\"props['type']!\"\n [nzTabBarGutter]=\"props['tabBarGutter']\"\n [nzHideAll]=\"props['hideAll']!!\"\n [nzLinkRouter]=\"props['linkRouter']!!\"\n [nzLinkExact]=\"props['linkExact']!!\"\n [nzCanDeactivate]=\"props['canDeactivate'] ?? null\"\n [nzHideAdd]=\"props['hideAdd']!!\"\n [nzAddIcon]=\"props['addIcon']!\"\n (nzSelectedIndexChange)=\"props['selectedIndexChange']?.(field, $event)\"\n (nzSelectChange)=\"props['selectChange']?.(field, $event.index, $event.tab)\"\n (nzAdd)=\"props['onAdd']?.(field)\"\n (nzClose)=\"props['onClose']?.(field, $event.index)\"\n >\n @for (tab of field.fieldGroup; track tab.id) {\n <nz-tab\n [nzTitle]=\"tab.props?.label || ''\"\n [nzForceRender]=\"tab.props!['tab']?.forceRender\"\n [nzDisabled]=\"tab.props!['tab']?.disabled\"\n (nzClick)=\"tab.props!['tab']?.click?.(field)\"\n (nzContextmenu)=\"tab.props!['tab']?.contextmenu?.(field, $event)\"\n (nzSelect)=\"tab.props!['tab']?.select?.(field)\"\n (nzDeselect)=\"tab.props!['tab']?.deselect?.(field)\"\n >\n <formly-field [field]=\"tab\"></formly-field>\n </nz-tab>\n }\n </nz-tabset>`,\n changeDetection: ChangeDetectionStrategy.OnPush\n})\nexport class FormlyWrapperTabs extends FieldWrapper<NzFormlyFieldConfig<TabsProps>> {\n override defaultOptions = {\n props: {\n animated: true,\n size: 'default' as const,\n type: 'line' as const,\n tabPosition: 'top' as const,\n hideAll: false,\n linkRouter: false,\n linkExact: true,\n centered: false,\n hideAdd: false,\n tab: {\n forceRender: false,\n disabled: false\n }\n }\n };\n}\n","import { NgModule } from '@angular/core';\nimport { CommonModule } from '@angular/common';\nimport { FormlyModule } from '@ngx-formly/core';\n\nimport { FormlyWrapperTabs } from './tabs.wrapper';\nimport { NzTabsModule } from 'ng-zorro-antd/tabs';\n\n@NgModule({\n declarations: [FormlyWrapperTabs],\n imports: [\n CommonModule,\n\n NzTabsModule,\n\n FormlyModule.forChild({\n wrappers: [\n {\n name: 'tabs',\n component: FormlyWrapperTabs\n }\n ]\n })\n ]\n})\nexport class FormlyNzTabsModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public_api';\n"],"names":["i1"],"mappings":";;;;;;;;AA+CM,MAAO,iBAAkB,SAAQ,YAA4C,CAAA;AAtCnF,IAAA,WAAA,GAAA;;AAuCW,QAAA,IAAA,CAAA,cAAc,GAAG;AACxB,YAAA,KAAK,EAAE;AACL,gBAAA,QAAQ,EAAE,IAAI;AACd,gBAAA,IAAI,EAAE,SAAkB;AACxB,gBAAA,IAAI,EAAE,MAAe;AACrB,gBAAA,WAAW,EAAE,KAAc;AAC3B,gBAAA,OAAO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AE;AACR,oBAAA;AACE,wBAAA,IAAI,EAAE,MAAM;AACZ,wBAAA,SAAS,EAAE,iBAAiB;AAC7B,qBAAA;AACF,iBAAA;aACF,CAAC,CAAA,EAAA,CAAA,CAAA,EAAA;;2FAGO,kBAAkB,EAAA,UAAA,EAAA,CAAA;kBAjB9B,QAAQ;AAAC,YAAA,IAAA,EAAA,CAAA;oBACR,YAAY,EAAE,CAAC,iBAAiB,CAAC;AACjC,oBAAA,OAAO,EAAE;wBACP,YAAY;wBAEZ,YAAY;wBAEZ,YAAY,CAAC,QAAQ,CAAC;AACpB,4BAAA,QAAQ,EAAE;AACR,gCAAA;AACE,oCAAA,IAAI,EAAE,MAAM;AACZ,oCAAA,SAAS,EAAE,iBAAiB;AAC7B,iCAAA;AACF,6BAAA;yBACF,CAAC;AACH,qBAAA;AACF,iBAAA,CAAA;;;ACvBD;;AAEG;;;;"}
|
@@ -56,8 +56,8 @@ class FormlyFieldTimepicker extends FieldType {
|
|
56
56
|
[nzPopupClassName]="props['popupClassName']"
|
57
57
|
[nzUse12Hours]="props['use12Hours']!!"
|
58
58
|
[nzSuffixIcon]="props['suffixIcon']"
|
59
|
-
(ngModelChange)="props.change
|
60
|
-
(nzOpenChange)="props['openChange']
|
59
|
+
(ngModelChange)="props.change?.(field, $event)"
|
60
|
+
(nzOpenChange)="props['openChange']?.(field, $event)"
|
61
61
|
></nz-time-picker>`, isInline: true, dependencies: [{ kind: "directive", type: i1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { 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.NzTimePickerComponent, selector: "nz-time-picker", inputs: ["nzId", "nzSize", "nzStatus", "nzHourStep", "nzMinuteStep", "nzSecondStep", "nzClearText", "nzNowText", "nzOkText", "nzPopupClassName", "nzPlaceHolder", "nzAddOn", "nzDefaultOpenValue", "nzDisabledHours", "nzDisabledMinutes", "nzDisabledSeconds", "nzFormat", "nzOpen", "nzUse12Hours", "nzSuffixIcon", "nzHideDisabledOptions", "nzAllowEmpty", "nzDisabled", "nzAutoFocus", "nzBackdrop", "nzBorderless", "nzInputReadOnly"], outputs: ["nzOpenChange"], exportAs: ["nzTimePicker"] }, { kind: "directive", type: i4.ɵFormlyAttributes, selector: "[formlyAttributes]", inputs: ["formlyAttributes", "id"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
62
62
|
}
|
63
63
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.9", ngImport: i0, type: FormlyFieldTimepicker, decorators: [{
|
@@ -92,8 +92,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.9", ngImpor
|
|
92
92
|
[nzPopupClassName]="props['popupClassName']"
|
93
93
|
[nzUse12Hours]="props['use12Hours']!!"
|
94
94
|
[nzSuffixIcon]="props['suffixIcon']"
|
95
|
-
(ngModelChange)="props.change
|
96
|
-
(nzOpenChange)="props['openChange']
|
95
|
+
(ngModelChange)="props.change?.(field, $event)"
|
96
|
+
(nzOpenChange)="props['openChange']?.(field, $event)"
|
97
97
|
></nz-time-picker>`,
|
98
98
|
changeDetection: ChangeDetectionStrategy.OnPush
|
99
99
|
}]
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"ngx-formly-zorro-antd-timepicker.mjs","sources":["../../../../packages/formlyantd/timepicker/src/timepicker.type.ts","../../../../packages/formlyantd/timepicker/src/timepicker.module.ts","../../../../packages/formlyantd/timepicker/src/ngx-formly-zorro-antd-timepicker.ts"],"sourcesContent":["import { Component, TemplateRef, Type, ChangeDetectionStrategy } from '@angular/core';\nimport { DatePipe } from '@angular/common';\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\nimport type { NzSafeAny } from 'ng-zorro-antd/core/types';\n\nexport interface TimepickerProps extends FormlyFieldProps {\n /**\n * 选择框底部显示自定义的内容\n */\n addOn?: TemplateRef<void>;\n\n /**\n * 是否展示清除按钮\n * @default true\n */\n allowEmpty?: boolean;\n\n /**\n * 自动获取焦点\n * @default false\n */\n autoFocus?: boolean;\n\n /**\n * 浮层是否应带有背景板\n * @default false\n */\n backdrop?: boolean;\n\n /**\n * 清除按钮的提示文案\n * @default clear\n */\n clearText?: string;\n\n /**\n * 此刻按钮文本\n * @default 此刻\n */\n nowText?: string;\n\n /**\n * 确认按钮文本\n * @default 确定\n */\n okText?: string;\n\n /**\n * 当 [ngModel] 不存在时,可以设置面板打开时默认选中的值\n * @default new Date()\n */\n defaultOpenValue?: Date;\n\n /**\n * \t禁止选择部分小时选项\n */\n disabledHours?: () => number[];\n\n /**\n * 禁止选择部分分钟选项\n */\n disabledMinutes?: (hour: number) => number[];\n\n /**\n * 禁止选择部分秒选项\n */\n disabledSeconds?: (hour: number, minute: number) => number[];\n\n /**\n * 展示的时间格式\n * @default \"HH:mm:ss\"\n */\n format?: DatePipe;\n\n /**\n * 隐藏禁止选择的选项\n * @default false\n */\n hideDisabledOptions?: boolean;\n\n /**\n * 小时选项间隔\n * @default 1\n */\n hourStep?: number;\n\n /**\n * 分钟选项间隔\n * @default 1\n */\n minuteStep?: number;\n\n /**\n * 秒选项间隔\n * @default 1\n */\n secondStep?: number;\n\n /**\n * 面板是否打开,可双向绑定\n * @default false\n */\n open?: boolean;\n\n /**\n * 弹出层类名\n * @default '''\n */\n popupClassName?: string;\n\n /**\n * 使用12小时制,为true时format默认为h:mm:ss a\n * @default false\n */\n use12Hours?: boolean;\n /**\n * 无边框\n * @default false\n */\n borderless?: boolean;\n\n /**\n * 为 input 标签设置只读属性(避免在移动设备上触发小键盘)\n * @default false\n */\n inputReadOnly?: boolean;\n\n /**\n * 自定义的后缀图标\n *\n */\n suffixIcon?: string | TemplateRef<void>;\n\n /**\n * 面板打开/关闭时的回调\n */\n openChange?: FormlyAttributeEvent<boolean>;\n}\n\nexport interface FormlyTimepickerFieldConfig extends NzFormlyFieldConfig<TimepickerProps> {\n type: 'timepicker' | Type<FormlyFieldTimepicker>;\n}\n\n@Component({\n selector: 'formly-field-timepicker',\n template: `<nz-time-picker\n #time\n [formControl]=\"formControl\"\n [formlyAttributes]=\"field\"\n [nzPlaceHolder]=\"props.placeholder ?? ''\"\n [ngClass]=\"props['ngClass']\"\n [nzAddOn]=\"props['addOn']\"\n [nzAllowEmpty]=\"props['allowEmpty']!!\"\n [nzAutoFocus]=\"props['autoFocus']!!\"\n [nzBackdrop]=\"props['backdrop']!!\"\n [nzClearText]=\"props['clearText']\"\n [nzNowText]=\"props['nowText']\"\n [nzOkText]=\"props['okText']\"\n [nzDefaultOpenValue]=\"props['defaultOpenValue']\"\n [nzDisabledHours]=\"props['disabledHours']\"\n [nzDisabledMinutes]=\"props['disabledMinutes']\"\n [nzDisabledSeconds]=\"props['disabledSeconds']\"\n [nzFormat]=\"props['format']\"\n [nzHideDisabledOptions]=\"props['hideDisabledOptions']!!\"\n [nzHourStep]=\"props['hourStep']\"\n [nzBorderless]=\"props['borderless']!!\"\n [nzInputReadOnly]=\"props['inputReadOnly']!!\"\n [nzMinuteStep]=\"props['minuteStep']\"\n [nzSecondStep]=\"props['secondStep']\"\n [nzOpen]=\"props['open']!!\"\n [nzPopupClassName]=\"props['popupClassName']\"\n [nzUse12Hours]=\"props['use12Hours']!!\"\n [nzSuffixIcon]=\"props['suffixIcon']\"\n (ngModelChange)=\"props.change
|
1
|
+
{"version":3,"file":"ngx-formly-zorro-antd-timepicker.mjs","sources":["../../../../packages/formlyantd/timepicker/src/timepicker.type.ts","../../../../packages/formlyantd/timepicker/src/timepicker.module.ts","../../../../packages/formlyantd/timepicker/src/ngx-formly-zorro-antd-timepicker.ts"],"sourcesContent":["import { Component, TemplateRef, Type, ChangeDetectionStrategy } from '@angular/core';\nimport { DatePipe } from '@angular/common';\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\nimport type { NzSafeAny } from 'ng-zorro-antd/core/types';\n\nexport interface TimepickerProps extends FormlyFieldProps {\n /**\n * 选择框底部显示自定义的内容\n */\n addOn?: TemplateRef<void>;\n\n /**\n * 是否展示清除按钮\n * @default true\n */\n allowEmpty?: boolean;\n\n /**\n * 自动获取焦点\n * @default false\n */\n autoFocus?: boolean;\n\n /**\n * 浮层是否应带有背景板\n * @default false\n */\n backdrop?: boolean;\n\n /**\n * 清除按钮的提示文案\n * @default clear\n */\n clearText?: string;\n\n /**\n * 此刻按钮文本\n * @default 此刻\n */\n nowText?: string;\n\n /**\n * 确认按钮文本\n * @default 确定\n */\n okText?: string;\n\n /**\n * 当 [ngModel] 不存在时,可以设置面板打开时默认选中的值\n * @default new Date()\n */\n defaultOpenValue?: Date;\n\n /**\n * \t禁止选择部分小时选项\n */\n disabledHours?: () => number[];\n\n /**\n * 禁止选择部分分钟选项\n */\n disabledMinutes?: (hour: number) => number[];\n\n /**\n * 禁止选择部分秒选项\n */\n disabledSeconds?: (hour: number, minute: number) => number[];\n\n /**\n * 展示的时间格式\n * @default \"HH:mm:ss\"\n */\n format?: DatePipe;\n\n /**\n * 隐藏禁止选择的选项\n * @default false\n */\n hideDisabledOptions?: boolean;\n\n /**\n * 小时选项间隔\n * @default 1\n */\n hourStep?: number;\n\n /**\n * 分钟选项间隔\n * @default 1\n */\n minuteStep?: number;\n\n /**\n * 秒选项间隔\n * @default 1\n */\n secondStep?: number;\n\n /**\n * 面板是否打开,可双向绑定\n * @default false\n */\n open?: boolean;\n\n /**\n * 弹出层类名\n * @default '''\n */\n popupClassName?: string;\n\n /**\n * 使用12小时制,为true时format默认为h:mm:ss a\n * @default false\n */\n use12Hours?: boolean;\n /**\n * 无边框\n * @default false\n */\n borderless?: boolean;\n\n /**\n * 为 input 标签设置只读属性(避免在移动设备上触发小键盘)\n * @default false\n */\n inputReadOnly?: boolean;\n\n /**\n * 自定义的后缀图标\n *\n */\n suffixIcon?: string | TemplateRef<void>;\n\n /**\n * 面板打开/关闭时的回调\n */\n openChange?: FormlyAttributeEvent<boolean>;\n}\n\nexport interface FormlyTimepickerFieldConfig extends NzFormlyFieldConfig<TimepickerProps> {\n type: 'timepicker' | Type<FormlyFieldTimepicker>;\n}\n\n@Component({\n selector: 'formly-field-timepicker',\n template: `<nz-time-picker\n #time\n [formControl]=\"formControl\"\n [formlyAttributes]=\"field\"\n [nzPlaceHolder]=\"props.placeholder ?? ''\"\n [ngClass]=\"props['ngClass']\"\n [nzAddOn]=\"props['addOn']\"\n [nzAllowEmpty]=\"props['allowEmpty']!!\"\n [nzAutoFocus]=\"props['autoFocus']!!\"\n [nzBackdrop]=\"props['backdrop']!!\"\n [nzClearText]=\"props['clearText']\"\n [nzNowText]=\"props['nowText']\"\n [nzOkText]=\"props['okText']\"\n [nzDefaultOpenValue]=\"props['defaultOpenValue']\"\n [nzDisabledHours]=\"props['disabledHours']\"\n [nzDisabledMinutes]=\"props['disabledMinutes']\"\n [nzDisabledSeconds]=\"props['disabledSeconds']\"\n [nzFormat]=\"props['format']\"\n [nzHideDisabledOptions]=\"props['hideDisabledOptions']!!\"\n [nzHourStep]=\"props['hourStep']\"\n [nzBorderless]=\"props['borderless']!!\"\n [nzInputReadOnly]=\"props['inputReadOnly']!!\"\n [nzMinuteStep]=\"props['minuteStep']\"\n [nzSecondStep]=\"props['secondStep']\"\n [nzOpen]=\"props['open']!!\"\n [nzPopupClassName]=\"props['popupClassName']\"\n [nzUse12Hours]=\"props['use12Hours']!!\"\n [nzSuffixIcon]=\"props['suffixIcon']\"\n (ngModelChange)=\"props.change?.(field, $event)\"\n (nzOpenChange)=\"props['openChange']?.(field, $event)\"\n ></nz-time-picker>`,\n changeDetection: ChangeDetectionStrategy.OnPush\n})\nexport class FormlyFieldTimepicker extends FieldType<FieldTypeConfig> {\n override defaultOptions = {\n props: {\n allowEmpty: true,\n autoFocus: false,\n backdrop: false,\n borderless: false,\n inputReadOnly: false,\n open: false,\n clearText: 'clear',\n defaultOpenValue: new Date(),\n format: 'HH:mm:ss' as NzSafeAny\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 { NzTimePickerModule } from 'ng-zorro-antd/time-picker';\nimport { FormlyFieldTimepicker } from './timepicker.type';\n\n@NgModule({\n declarations: [FormlyFieldTimepicker],\n imports: [\n CommonModule,\n ReactiveFormsModule,\n FormlyNzFormFieldModule,\n\n NzTimePickerModule,\n\n FormlyModule.forChild({\n types: [\n {\n name: 'timepicker',\n component: FormlyFieldTimepicker,\n wrappers: ['form-field']\n }\n ]\n })\n ]\n})\nexport class FormlyNzTimepickerModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public_api';\n"],"names":["i1"],"mappings":";;;;;;;;;;;;AAqLM,MAAO,qBAAsB,SAAQ,SAA0B,CAAA;AAnCrE,IAAA,WAAA,GAAA;;AAoCW,QAAA,IAAA,CAAA,cAAc,GAAG;AACxB,YAAA,KAAK,EAAE;AACL,gBAAA,UAAU,EAAE,IAAI;AAChB,gBAAA,SAAS,EAAE,KAAK;AAChB,gBAAA,QAAQ,EAAE,KAAK;AACf,gBAAA,UAAU,EAAE,KAAK;AACjB,gBAAA,aAAa,EAAE,KAAK;AACpB,gBAAA,IAAI,EAAE,KAAK;AACX,gBAAA,SAAS,EAAE,OAAO;gBAClB,gBAAgB,EAAE,IAAI,IAAI,EAAE;AAC5B,gBAAA,MAAM,EAAE,UAAuB;AAChC,aAAA;SACF,CAAC;AACH,KAAA;8GA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nB,uBAAuB;YAEvB,kBAAkB;YAElB,YAAY,CAAC,QAAQ,CAAC;AACpB,gBAAA,KAAK,EAAE;AACL,oBAAA;AACE,wBAAA,IAAI,EAAE,YAAY;AAClB,wBAAA,SAAS,EAAE,qBAAqB;wBAChC,QAAQ,EAAE,CAAC,YAAY,CAAC;AACzB,qBAAA;AACF,iBAAA;aACF,CAAC,CAAA,EAAA,CAAA,CAAA,EAAA;;2FAGO,wBAAwB,EAAA,UAAA,EAAA,CAAA;kBApBpC,QAAQ;AAAC,YAAA,IAAA,EAAA,CAAA;oBACR,YAAY,EAAE,CAAC,qBAAqB,CAAC;AACrC,oBAAA,OAAO,EAAE;wBACP,YAAY;wBACZ,mBAAmB;wBACnB,uBAAuB;wBAEvB,kBAAkB;wBAElB,YAAY,CAAC,QAAQ,CAAC;AACpB,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;;;;"}
|
@@ -172,9 +172,9 @@ class FormlyFieldTransfer extends FieldType {
|
|
172
172
|
[nzSelectedKeys]="props['selectedKeys']"
|
173
173
|
[nzTargetKeys]="props['targetKeys']"
|
174
174
|
[resultMap]="props['resultMap']"
|
175
|
-
(nzChange)="props['onChange']
|
176
|
-
(nzSearchChange)="props['searchChange']
|
177
|
-
(nzSelectChange)="props['selectChange']
|
175
|
+
(nzChange)="props['onChange']?.($event)"
|
176
|
+
(nzSearchChange)="props['searchChange']?.(field, $event)"
|
177
|
+
(nzSelectChange)="props['selectChange']?.(field, $event)"
|
178
178
|
></formly-transfer>`, isInline: true, dependencies: [{ kind: "directive", type: i1$1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i1$1.FormControlDirective, selector: "[formControl]", inputs: ["formControl", "disabled", "ngModel"], outputs: ["ngModelChange"], exportAs: ["ngForm"] }, { kind: "directive", type: i2.ɵFormlyAttributes, selector: "[formlyAttributes]", inputs: ["formlyAttributes", "id"] }, { kind: "component", type: TransferComponent, selector: "formly-transfer", inputs: ["resultMap"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
179
179
|
}
|
180
180
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.9", ngImport: i0, type: FormlyFieldTransfer, decorators: [{
|
@@ -201,9 +201,9 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.9", ngImpor
|
|
201
201
|
[nzSelectedKeys]="props['selectedKeys']"
|
202
202
|
[nzTargetKeys]="props['targetKeys']"
|
203
203
|
[resultMap]="props['resultMap']"
|
204
|
-
(nzChange)="props['onChange']
|
205
|
-
(nzSearchChange)="props['searchChange']
|
206
|
-
(nzSelectChange)="props['selectChange']
|
204
|
+
(nzChange)="props['onChange']?.($event)"
|
205
|
+
(nzSearchChange)="props['searchChange']?.(field, $event)"
|
206
|
+
(nzSelectChange)="props['selectChange']?.(field, $event)"
|
207
207
|
></formly-transfer>`,
|
208
208
|
changeDetection: ChangeDetectionStrategy.OnPush
|
209
209
|
}]
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"ngx-formly-zorro-antd-transfer.mjs","sources":["../../../../packages/formlyantd/transfer/src/transfer.component.ts","../../../../packages/formlyantd/transfer/src/transfer.type.ts","../../../../packages/formlyantd/transfer/src/transfer.module.ts","../../../../packages/formlyantd/transfer/src/ngx-formly-zorro-antd-transfer.ts"],"sourcesContent":["/* eslint-disable @typescript-eslint/no-empty-function */\nimport {\n ChangeDetectionStrategy,\n ChangeDetectorRef,\n Component,\n Input,\n ViewChild,\n ViewEncapsulation\n} from '@angular/core';\nimport { ControlValueAccessor, NG_VALUE_ACCESSOR } from '@angular/forms';\nimport { NzTransferComponent } from 'ng-zorro-antd/transfer';\n\nimport type { OnChangeType, OnTouchedType, NzSafeAny } from 'ng-zorro-antd/core/types';\nimport type {\n TransferChange,\n TransferItem,\n TransferSearchChange,\n TransferSelectChange\n} from 'ng-zorro-antd/transfer';\n\n@Component({\n selector: 'formly-transfer',\n template: `\n <nz-transfer\n #transfer\n [nzDataSource]=\"nzDataSource\"\n [nzDisabled]=\"nzDisabled\"\n [nzTitles]=\"nzTitles\"\n [nzOperations]=\"nzOperations\"\n [nzListStyle]=\"nzListStyle\"\n [nzItemUnit]=\"nzItemUnit\"\n [nzItemsUnit]=\"nzItemsUnit\"\n [nzRenderList]=\"nzRenderList\"\n [nzRender]=\"nzRender\"\n [nzFooter]=\"nzFooter\"\n [nzShowSearch]=\"nzShowSearch\"\n [nzFilterOption]=\"nzFilterOption\"\n [nzSearchPlaceholder]=\"nzSearchPlaceholder\"\n [nzNotFoundContent]=\"nzNotFoundContent\"\n [nzSelectedKeys]=\"nzSelectedKeys\"\n [nzTargetKeys]=\"nzTargetKeys\"\n (nzChange)=\"change($event)\"\n (nzSearchChange)=\"searchChange($event)\"\n (nzSelectChange)=\"selectChange($event)\"\n style=\"flex: auto;\"\n ></nz-transfer>\n `,\n encapsulation: ViewEncapsulation.None,\n changeDetection: ChangeDetectionStrategy.OnPush,\n providers: [\n {\n provide: NG_VALUE_ACCESSOR,\n useExisting: TransferComponent,\n multi: true\n }\n ]\n})\nexport class TransferComponent extends NzTransferComponent implements ControlValueAccessor {\n @ViewChild('transfer', { static: true }) transfer!: NzTransferComponent;\n @Input() resultMap?: (items: TransferItem[]) => NzSafeAny[];\n\n onChange: OnChangeType = () => {};\n onTouched: OnTouchedType = () => {};\n writeValue(obj: NzSafeAny): void {\n setTimeout(() => {\n this.nzTargetKeys = obj;\n (this['cdr'] as ChangeDetectorRef).markForCheck();\n this.onChange(this.transfer.rightDataSource);\n }, 0);\n }\n registerOnChange(fn: NzSafeAny): void {\n this.onChange = fn;\n }\n registerOnTouched(fn: NzSafeAny): void {\n this.onTouched = fn;\n }\n setDisabledState?(isDisabled: boolean): void {\n this.nzDisabled = isDisabled;\n }\n\n // eslint-disable-next-line @typescript-eslint/no-unused-vars\n change(value: TransferChange): void {\n if (this.resultMap instanceof Function) {\n this.onChange(this.resultMap(this.transfer.rightDataSource));\n } else {\n this.onChange(this.transfer.rightDataSource);\n }\n }\n\n /**\n * 选中项发生改变时的回调函数\n */\n selectChange(value: TransferSelectChange) {\n this.nzSelectChange.emit(value);\n }\n\n /**\n * 搜索框内容时改变时的回调函数\n */\n searchChange(value: TransferSearchChange) {\n this.nzSearchChange.emit(value);\n }\n}\n","import { Component, ChangeDetectionStrategy, TemplateRef, Type, ViewChild, OnInit } from '@angular/core';\nimport { FieldType, FieldTypeConfig } from '@ngx-formly/core';\nimport type { NzFormlyFieldConfig, FormlyAttributeEvent } from 'ngx-formly-zorro-antd/common';\nimport { FormlyFieldProps } from 'ngx-formly-zorro-antd/form-field';\n\nimport { Observable } from 'rxjs';\nimport {\n NzTransferComponent,\n TransferCanMove,\n TransferChange,\n TransferItem,\n TransferSearchChange,\n TransferSelectChange\n} from 'ng-zorro-antd/transfer';\nimport type { NzSafeAny, NgStyleInterface } from 'ng-zorro-antd/core/types';\n\nexport interface TransferProps extends FormlyFieldProps {\n /**\n * 数据源,其中若数据属性 direction: 'right' 将会被渲染到右边一栏中或使用 nzTargetKeys\n * @default []\n */\n dataSource?: TransferItem[];\n\n /**\n * 标题集合,顺序从左至右\n * @default ['', '']\n */\n titles?: string[];\n\n /**\n * 操作文案集合,顺序从下至上\n * @default ['', '']\n */\n operations?: string[];\n\n /**\n * 两个穿梭框的自定义样式,等同 ngStyle\n */\n listStyle?: NgStyleInterface;\n\n /**\n * 单数单位\n * @default 项目\n */\n itemUnit?: string;\n\n /**\n * 复数单位\n * @default 项目\n */\n itemsUnit?: string;\n\n /**\n * 自定义渲染列表,见示例\n * @default [null, null]\n */\n renderList?: Array<TemplateRef<NzSafeAny> | null> | null;\n\n /**\n * 每行数据渲染模板,见示例\n */\n render?: TemplateRef<NzSafeAny> | null;\n\n /**\n * 底部渲染模板,见示例\n */\n footer?: TemplateRef<NzSafeAny> | null;\n\n /**\n * 是否显示搜索框\n * @default false\n */\n showSearch?: boolean;\n\n /**\n * 接收 inputValueoption 两个参数,当 option 符合筛选条件时,应返回 true,反之则返回 false。\n */\n filterOption?: (inputValue: string, item: TransferItem) => boolean;\n\n /**\n * 搜索框的默认值\n * @default 请输入搜索内容\n */\n searchPlaceholder?: string;\n\n /**\n * 当列表为空时显示的内容\n * @default 列表为空\n */\n notFoundContent?: string;\n\n /**\n * 穿梭时二次校验。注意: 穿梭组件内部始终只保留一份数据,二次校验过程中需取消穿梭项则直接删除该项;具体用法见示例。\n */\n canMove?: (arg: TransferCanMove) => Observable<TransferItem[]>;\n\n /**\n * 设置被选中的 key 集合\n */\n selectedKeys?: string[];\n\n /**\n * 显示在右侧框数据的 key 集合\n */\n targetKeys?: string[];\n\n /**\n * 选项在两栏之间转移时的回调函数\n */\n onChange?: (value: TransferChange) => void;\n\n /**\n * 搜索框内容时改变时的回调函数\n */\n searchChange?: FormlyAttributeEvent<TransferSearchChange>;\n\n /**\n * 选中项发生改变时的回调函数\n */\n selectChange?: FormlyAttributeEvent<TransferSelectChange>;\n\n /**\n * 返回结果格式映射\n * @returns 默认返回 TransferItem[] 格式\n */\n resultMap?: (items: TransferItem[]) => NzSafeAny[];\n}\n\nexport interface FormlyTransferFieldConfig extends NzFormlyFieldConfig<TransferProps> {\n type: 'transfer' | Type<FormlyFieldTransfer>;\n}\n\n@Component({\n selector: 'formly-field-transfer',\n template: `<formly-transfer\n #transfer\n [formControl]=\"formControl\"\n [formlyAttributes]=\"field\"\n [nzDataSource]=\"props['dataSource']\"\n [nzTitles]=\"props['titles']\"\n [nzOperations]=\"props['operations']\"\n [nzListStyle]=\"props['listStyle']\"\n [nzItemUnit]=\"props['itemUnit']\"\n [nzItemsUnit]=\"props['itemsUnit']\"\n [nzRenderList]=\"props['renderList']!\"\n [nzRender]=\"props['render'] ?? null\"\n [nzFooter]=\"props['footer'] ?? null\"\n [nzShowSearch]=\"props['showSearch']!!\"\n [nzFilterOption]=\"props['filterOption']\"\n [nzSearchPlaceholder]=\"props['searchPlaceholder']\"\n [nzNotFoundContent]=\"props['notFoundContent']\"\n [nzSelectedKeys]=\"props['selectedKeys']\"\n [nzTargetKeys]=\"props['targetKeys']\"\n [resultMap]=\"props['resultMap']\"\n (nzChange)=\"props['onChange'] && props['onChange']($event)\"\n (nzSearchChange)=\"props['searchChange'] && props['searchChange'](field, $event)\"\n (nzSelectChange)=\"props['selectChange'] && props['selectChange'](field, $event)\"\n ></formly-transfer>`,\n changeDetection: ChangeDetectionStrategy.OnPush\n})\nexport class FormlyFieldTransfer extends FieldType<FieldTypeConfig> implements OnInit {\n override defaultOptions = {\n props: {\n dataSource: [],\n titles: ['', ''],\n operations: ['', ''],\n renderList: [null, null],\n listStyle: {}\n }\n };\n\n @ViewChild('transfer', { static: true }) transfer!: NzTransferComponent;\n\n ngOnInit(): void {\n const canMove = this.props['canMove'];\n if (canMove !== null && canMove !== undefined) {\n this.transfer.nzCanMove = canMove;\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 { NzTransferModule } from 'ng-zorro-antd/transfer';\nimport { FormlyFieldTransfer } from './transfer.type';\nimport { TransferComponent } from './transfer.component';\n\n@NgModule({\n declarations: [FormlyFieldTransfer, TransferComponent],\n imports: [\n CommonModule,\n ReactiveFormsModule,\n FormlyNzFormFieldModule,\n\n NzTransferModule,\n\n FormlyModule.forChild({\n types: [\n {\n name: 'transfer',\n component: FormlyFieldTransfer,\n wrappers: ['form-field']\n }\n ]\n })\n ]\n})\nexport class FormlyNzTransferModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public_api';\n"],"names":["i1","i3.Trans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IAAA,GAAA,EAAA,CAAA,mBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,QAAA,EAAA,QAAA,EAAA,EAAA,EAAA,IAAA,EAAA,sBAAsB,YAjB/B,YAAY;YACZ,mBAAmB;YACnB,uBAAuB;YAEvB,gBAAgB;YAEhB,YAAY,CAAC,QAAQ,CAAC;AACpB,gBAAA,KAAK,EAAE;AACL,oBAAA;AACE,wBAAA,IAAI,EAAE,UAAU;AAChB,wBAAA,SAAS,EAAE,mBAAmB;wBAC9B,QAAQ,EAAE,CAAC,YAAY,CAAC;AACzB,qBAAA;AACF,iBAAA;aACF,CAAC,CAAA,EAAA,CAAA,CAAA,EAAA;;2FAGO,sBAAsB,EAAA,UAAA,EAAA,CAAA;kBApBlC,QAAQ;AAAC,YAAA,IAAA,EAAA,CAAA;AACR,oBAAA,YAAY,EAAE,CAAC,mBAAmB,EAAE,iBAAiB,CAAC;AACtD,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;AACF,6BAAA;yBACF,CAAC;AACH,qBAAA;AACF,iBAAA,CAAA;;;AC7BD;;AAEG;;;;"}
|
1
|
+
{"version":3,"file":"ngx-formly-zorro-antd-transfer.mjs","sources":["../../../../packages/formlyantd/transfer/src/transfer.component.ts","../../../../packages/formlyantd/transfer/src/transfer.type.ts","../../../../packages/formlyantd/transfer/src/transfer.module.ts","../../../../packages/formlyantd/transfer/src/ngx-formly-zorro-antd-transfer.ts"],"sourcesContent":["/* eslint-disable @typescript-eslint/no-empty-function */\nimport {\n ChangeDetectionStrategy,\n ChangeDetectorRef,\n Component,\n Input,\n ViewChild,\n ViewEncapsulation\n} from '@angular/core';\nimport { ControlValueAccessor, NG_VALUE_ACCESSOR } from '@angular/forms';\nimport { NzTransferComponent } from 'ng-zorro-antd/transfer';\n\nimport type { OnChangeType, OnTouchedType, NzSafeAny } from 'ng-zorro-antd/core/types';\nimport type {\n TransferChange,\n TransferItem,\n TransferSearchChange,\n TransferSelectChange\n} from 'ng-zorro-antd/transfer';\n\n@Component({\n selector: 'formly-transfer',\n template: `\n <nz-transfer\n #transfer\n [nzDataSource]=\"nzDataSource\"\n [nzDisabled]=\"nzDisabled\"\n [nzTitles]=\"nzTitles\"\n [nzOperations]=\"nzOperations\"\n [nzListStyle]=\"nzListStyle\"\n [nzItemUnit]=\"nzItemUnit\"\n [nzItemsUnit]=\"nzItemsUnit\"\n [nzRenderList]=\"nzRenderList\"\n [nzRender]=\"nzRender\"\n [nzFooter]=\"nzFooter\"\n [nzShowSearch]=\"nzShowSearch\"\n [nzFilterOption]=\"nzFilterOption\"\n [nzSearchPlaceholder]=\"nzSearchPlaceholder\"\n [nzNotFoundContent]=\"nzNotFoundContent\"\n [nzSelectedKeys]=\"nzSelectedKeys\"\n [nzTargetKeys]=\"nzTargetKeys\"\n (nzChange)=\"change($event)\"\n (nzSearchChange)=\"searchChange($event)\"\n (nzSelectChange)=\"selectChange($event)\"\n style=\"flex: auto;\"\n ></nz-transfer>\n `,\n encapsulation: ViewEncapsulation.None,\n changeDetection: ChangeDetectionStrategy.OnPush,\n providers: [\n {\n provide: NG_VALUE_ACCESSOR,\n useExisting: TransferComponent,\n multi: true\n }\n ]\n})\nexport class TransferComponent extends NzTransferComponent implements ControlValueAccessor {\n @ViewChild('transfer', { static: true }) transfer!: NzTransferComponent;\n @Input() resultMap?: (items: TransferItem[]) => NzSafeAny[];\n\n onChange: OnChangeType = () => {};\n onTouched: OnTouchedType = () => {};\n writeValue(obj: NzSafeAny): void {\n setTimeout(() => {\n this.nzTargetKeys = obj;\n (this['cdr'] as ChangeDetectorRef).markForCheck();\n this.onChange(this.transfer.rightDataSource);\n }, 0);\n }\n registerOnChange(fn: NzSafeAny): void {\n this.onChange = fn;\n }\n registerOnTouched(fn: NzSafeAny): void {\n this.onTouched = fn;\n }\n setDisabledState?(isDisabled: boolean): void {\n this.nzDisabled = isDisabled;\n }\n\n // eslint-disable-next-line @typescript-eslint/no-unused-vars\n change(value: TransferChange): void {\n if (this.resultMap instanceof Function) {\n this.onChange(this.resultMap(this.transfer.rightDataSource));\n } else {\n this.onChange(this.transfer.rightDataSource);\n }\n }\n\n /**\n * 选中项发生改变时的回调函数\n */\n selectChange(value: TransferSelectChange) {\n this.nzSelectChange.emit(value);\n }\n\n /**\n * 搜索框内容时改变时的回调函数\n */\n searchChange(value: TransferSearchChange) {\n this.nzSearchChange.emit(value);\n }\n}\n","import { Component, ChangeDetectionStrategy, TemplateRef, Type, ViewChild, OnInit } from '@angular/core';\nimport { FieldType, FieldTypeConfig } from '@ngx-formly/core';\nimport type { NzFormlyFieldConfig, FormlyAttributeEvent } from 'ngx-formly-zorro-antd/common';\nimport { FormlyFieldProps } from 'ngx-formly-zorro-antd/form-field';\n\nimport { Observable } from 'rxjs';\nimport {\n NzTransferComponent,\n TransferCanMove,\n TransferChange,\n TransferItem,\n TransferSearchChange,\n TransferSelectChange\n} from 'ng-zorro-antd/transfer';\nimport type { NzSafeAny, NgStyleInterface } from 'ng-zorro-antd/core/types';\n\nexport interface TransferProps extends FormlyFieldProps {\n /**\n * 数据源,其中若数据属性 direction: 'right' 将会被渲染到右边一栏中或使用 nzTargetKeys\n * @default []\n */\n dataSource?: TransferItem[];\n\n /**\n * 标题集合,顺序从左至右\n * @default ['', '']\n */\n titles?: string[];\n\n /**\n * 操作文案集合,顺序从下至上\n * @default ['', '']\n */\n operations?: string[];\n\n /**\n * 两个穿梭框的自定义样式,等同 ngStyle\n */\n listStyle?: NgStyleInterface;\n\n /**\n * 单数单位\n * @default 项目\n */\n itemUnit?: string;\n\n /**\n * 复数单位\n * @default 项目\n */\n itemsUnit?: string;\n\n /**\n * 自定义渲染列表,见示例\n * @default [null, null]\n */\n renderList?: Array<TemplateRef<NzSafeAny> | null> | null;\n\n /**\n * 每行数据渲染模板,见示例\n */\n render?: TemplateRef<NzSafeAny> | null;\n\n /**\n * 底部渲染模板,见示例\n */\n footer?: TemplateRef<NzSafeAny> | null;\n\n /**\n * 是否显示搜索框\n * @default false\n */\n showSearch?: boolean;\n\n /**\n * 接收 inputValueoption 两个参数,当 option 符合筛选条件时,应返回 true,反之则返回 false。\n */\n filterOption?: (inputValue: string, item: TransferItem) => boolean;\n\n /**\n * 搜索框的默认值\n * @default 请输入搜索内容\n */\n searchPlaceholder?: string;\n\n /**\n * 当列表为空时显示的内容\n * @default 列表为空\n */\n notFoundContent?: string;\n\n /**\n * 穿梭时二次校验。注意: 穿梭组件内部始终只保留一份数据,二次校验过程中需取消穿梭项则直接删除该项;具体用法见示例。\n */\n canMove?: (arg: TransferCanMove) => Observable<TransferItem[]>;\n\n /**\n * 设置被选中的 key 集合\n */\n selectedKeys?: string[];\n\n /**\n * 显示在右侧框数据的 key 集合\n */\n targetKeys?: string[];\n\n /**\n * 选项在两栏之间转移时的回调函数\n */\n onChange?: (value: TransferChange) => void;\n\n /**\n * 搜索框内容时改变时的回调函数\n */\n searchChange?: FormlyAttributeEvent<TransferSearchChange>;\n\n /**\n * 选中项发生改变时的回调函数\n */\n selectChange?: FormlyAttributeEvent<TransferSelectChange>;\n\n /**\n * 返回结果格式映射\n * @returns 默认返回 TransferItem[] 格式\n */\n resultMap?: (items: TransferItem[]) => NzSafeAny[];\n}\n\nexport interface FormlyTransferFieldConfig extends NzFormlyFieldConfig<TransferProps> {\n type: 'transfer' | Type<FormlyFieldTransfer>;\n}\n\n@Component({\n selector: 'formly-field-transfer',\n template: `<formly-transfer\n #transfer\n [formControl]=\"formControl\"\n [formlyAttributes]=\"field\"\n [nzDataSource]=\"props['dataSource']\"\n [nzTitles]=\"props['titles']\"\n [nzOperations]=\"props['operations']\"\n [nzListStyle]=\"props['listStyle']\"\n [nzItemUnit]=\"props['itemUnit']\"\n [nzItemsUnit]=\"props['itemsUnit']\"\n [nzRenderList]=\"props['renderList']!\"\n [nzRender]=\"props['render'] ?? null\"\n [nzFooter]=\"props['footer'] ?? null\"\n [nzShowSearch]=\"props['showSearch']!!\"\n [nzFilterOption]=\"props['filterOption']\"\n [nzSearchPlaceholder]=\"props['searchPlaceholder']\"\n [nzNotFoundContent]=\"props['notFoundContent']\"\n [nzSelectedKeys]=\"props['selectedKeys']\"\n [nzTargetKeys]=\"props['targetKeys']\"\n [resultMap]=\"props['resultMap']\"\n (nzChange)=\"props['onChange']?.($event)\"\n (nzSearchChange)=\"props['searchChange']?.(field, $event)\"\n (nzSelectChange)=\"props['selectChange']?.(field, $event)\"\n ></formly-transfer>`,\n changeDetection: ChangeDetectionStrategy.OnPush\n})\nexport class FormlyFieldTransfer extends FieldType<FieldTypeConfig> implements OnInit {\n override defaultOptions = {\n props: {\n dataSource: [],\n titles: ['', ''],\n operations: ['', ''],\n renderList: [null, null],\n listStyle: {}\n }\n };\n\n @ViewChild('transfer', { static: true }) transfer!: NzTransferComponent;\n\n ngOnInit(): void {\n const canMove = this.props['canMove'];\n if (canMove !== null && canMove !== undefined) {\n this.transfer.nzCanMove = canMove;\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 { NzTransferModule } from 'ng-zorro-antd/transfer';\nimport { FormlyFieldTransfer } from './transfer.type';\nimport { TransferComponent } from './transfer.component';\n\n@NgModule({\n declarations: [FormlyFieldTransfer, TransferComponent],\n imports: [\n CommonModule,\n ReactiveFormsModule,\n FormlyNzFormFieldModule,\n\n NzTransferModule,\n\n FormlyModule.forChild({\n types: [\n {\n name: 'transfer',\n component: FormlyFieldTransfer,\n wrappers: ['form-field']\n }\n ]\n })\n ]\n})\nexport class FormlyNzTransferModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public_api';\n"],"names":["i1","i3.TransferComponent"],"mappings":";;;;;;;;;;;AAAA;AAyDM,MAAO,iBAAkB,SAAQ,mBAAmB,CAAA;AArC1D,IAAA,WAAA,GAAA;;AAyCE,QAAA,IAAA,CAAA,QAAQ,GAAiB,MAAK,GAAG,CAAC;AAClC,QAAA,IAAA,CAAA,SAAS,GAAkB,MAAK,GAAG,CAAC;AAwCrC,KAAA;AAvCC,IAAA,UAAU,CAAC,GAAc,EAAA;QACvB,UAAU,CAAC,MAAK;AACd,YAAA,IAAI,CAAC,YAAY,GAAG,GAAG,CAAC;AACvB,YAAA,IAAI,CAAC,KAAK,CAAuB,CAAC,YAAY,EAAE,CAAC;YAClD,IAAI,CAAC,QAAQ,CAAC,IAAI,CAAC,QAAQ,CAAC,eAAe,CAAC,CAAC;SAC9C,EAAE,CAAC,CAAC,CAAC;KACP;AACD,IAAA,gBAAgB,CAAC,EAAa,EAAA;AAC5B,QAAA,IAAI,CAAC,QAAQ,GAAG,EAAE,CAAC;KACpB;AACD,IAAA,iBAAiB,CAAC,EAAa,EAAA;AAC7B,QAAA,IAAI,CAAC,SAAS,GAAG,EAAE,CAAC;KACrB;AACD,IAAA,gBAAgB,CAAE,UAAmB,EAAA;AACnC,QAAA,IAAI,CAAC,UAAU,GAAG,UAAU,CAAC;KAC9B;;AAGD,IAAA,MAAM,CAAC,KAAqB,EAAA;AAC1B,QAAA,IAAI,IAAI,CAAC,SAAS,YAAY,QAAQ,EAAE;AACtC,YAAA,IAAI,CAAC,QAAQ,CAAC,IAAI,CAAC,SAAS,CAAC,IAAI,CAAC,QAAQ,CAAC,eAAe,CAAC,CAAC,CAAC;AAC9D,SAAA;AAAM,aAAA;YACL,IAAI,CAAC,QAAQ,CAAC,IAAI,CAAC,QAAQ,CAAC,eAAe,CAAC,CAAC;AAC9C,SAAA;KACF;AAED;;AAEG;AACH,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;YAEvB,gBAAgB,EAAAD,EAAA,CAAA,YAAA,CAAA,EAAA,CAAA,CAAA,EAAA;AAaP,IAAA,SAAA,IAAA,CAAA,IAAA,GAAA,EAAA,CAAA,mBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,QAAA,EAAA,QAAA,EAAA,EAAA,EAAA,IAAA,EAAA,sBAAsB,YAjB/B,YAAY;YACZ,mBAAmB;YACnB,uBAAuB;YAEvB,gBAAgB;YAEhB,YAAY,CAAC,QAAQ,CAAC;AACpB,gBAAA,KAAK,EAAE;AACL,oBAAA;AACE,wBAAA,IAAI,EAAE,UAAU;AAChB,wBAAA,SAAS,EAAE,mBAAmB;wBAC9B,QAAQ,EAAE,CAAC,YAAY,CAAC;AACzB,qBAAA;AACF,iBAAA;aACF,CAAC,CAAA,EAAA,CAAA,CAAA,EAAA;;2FAGO,sBAAsB,EAAA,UAAA,EAAA,CAAA;kBApBlC,QAAQ;AAAC,YAAA,IAAA,EAAA,CAAA;AACR,oBAAA,YAAY,EAAE,CAAC,mBAAmB,EAAE,iBAAiB,CAAC;AACtD,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;AACF,6BAAA;yBACF,CAAC;AACH,qBAAA;AACF,iBAAA,CAAA;;;AC7BD;;AAEG;;;;"}
|
@@ -71,7 +71,7 @@ class FormlyFieldTreeSelect extends FieldType {
|
|
71
71
|
[nzVirtualMaxBufferPx]="props['virtualMaxBufferPx']!"
|
72
72
|
[nzVirtualMinBufferPx]="props['virtualMinBufferPx']!"
|
73
73
|
[nzBackdrop]="props['backdrop']!!"
|
74
|
-
(nzExpandChange)="props['expandChange']
|
74
|
+
(nzExpandChange)="props['expandChange']?.(field, $event)"
|
75
75
|
></nz-tree-select>`, isInline: true, dependencies: [{ kind: "directive", type: i2.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i3.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i3.FormControlDirective, selector: "[formControl]", inputs: ["formControl", "disabled", "ngModel"], outputs: ["ngModelChange"], exportAs: ["ngForm"] }, { kind: "component", type: i4.NzTreeSelectComponent, selector: "nz-tree-select", inputs: ["nzId", "nzAllowClear", "nzShowExpand", "nzShowLine", "nzDropdownMatchSelectWidth", "nzCheckable", "nzHideUnMatched", "nzShowIcon", "nzShowSearch", "nzDisabled", "nzAsyncData", "nzMultiple", "nzDefaultExpandAll", "nzCheckStrictly", "nzVirtualItemSize", "nzVirtualMaxBufferPx", "nzVirtualMinBufferPx", "nzVirtualHeight", "nzExpandedIcon", "nzNotFoundContent", "nzNodes", "nzOpen", "nzSize", "nzPlaceHolder", "nzDropdownStyle", "nzDropdownClassName", "nzBackdrop", "nzStatus", "nzPlacement", "nzExpandedKeys", "nzDisplayWith", "nzMaxTagCount", "nzMaxTagPlaceholder", "nzTreeTemplate"], outputs: ["nzOpenChange", "nzCleared", "nzRemoved", "nzExpandChange", "nzTreeClick", "nzTreeCheckBoxChange"], exportAs: ["nzTreeSelect"] }, { kind: "directive", type: i5.ɵFormlyAttributes, selector: "[formlyAttributes]", inputs: ["formlyAttributes", "id"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
76
76
|
}
|
77
77
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.9", ngImport: i0, type: FormlyFieldTreeSelect, decorators: [{
|
@@ -111,7 +111,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.9", ngImpor
|
|
111
111
|
[nzVirtualMaxBufferPx]="props['virtualMaxBufferPx']!"
|
112
112
|
[nzVirtualMinBufferPx]="props['virtualMinBufferPx']!"
|
113
113
|
[nzBackdrop]="props['backdrop']!!"
|
114
|
-
(nzExpandChange)="props['expandChange']
|
114
|
+
(nzExpandChange)="props['expandChange']?.(field, $event)"
|
115
115
|
></nz-tree-select>`,
|
116
116
|
changeDetection: ChangeDetectionStrategy.OnPush
|
117
117
|
}]
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"ngx-formly-zorro-antd-tree-select.mjs","sources":["../../../../packages/formlyantd/tree-select/src/tree-select.type.ts","../../../../packages/formlyantd/tree-select/src/tree-select.module.ts","../../../../packages/formlyantd/tree-select/src/ngx-formly-zorro-antd-tree-select.ts"],"sourcesContent":["import { Component, Type, Optional, TemplateRef, ChangeDetectionStrategy } from '@angular/core';\nimport { FieldType, FieldTypeConfig } from '@ngx-formly/core';\nimport type { NzFormlyFieldConfig, FormlyAttributeEvent, NgStyleType } from 'ngx-formly-zorro-antd/common';\nimport type { FormlyFieldProps } from 'ngx-formly-zorro-antd/form-field';\nimport { FormlyBoxTemplates, resolveTplName } from 'ngx-formly-zorro-antd/common';\nimport type { NzFormatEmitEvent, NzTreeNode, NzTreeNodeOptions } from 'ng-zorro-antd/tree';\nimport type { NzPlacementType } from 'ng-zorro-antd/tree-select';\n\nexport interface TreeSelectProps extends FormlyFieldProps {\n /**\n * 显示清除按钮\n * @default false\n */\n allowClear?: boolean;\n\n /**\n * 是否展示 TreeNode title 前的图标,没有默认样式\n * @default false\n */\n showIcon?: boolean;\n\n /**\n * 显示搜索框\n * @default false\n */\n showSearch?: boolean;\n\n /**\n * 当下拉列表为空时显示的内容\n */\n notFoundContent?: string;\n\n /**\n * 下拉菜单和选择器同宽\n * @default true\n */\n dropdownMatchSelectWidth?: boolean;\n\n /**\n * 下拉菜单的样式\n */\n dropdownStyle?: NgStyleType;\n\n /**\n * 下拉菜单的 className 属性\n */\n dropdownClassName?: string;\n\n /**\n * 选择框弹出的位置\n */\n placement?: NzPlacementType;\n\n /**\n * 支持多选(当设置 nzCheckable 时自动变为true)\n * @default false\n */\n multiple?: boolean;\n\n /**\n * 搜索隐藏未匹配的节点\n * @default false\n */\n hideUnMatched?: boolean;\n\n /**\n * 节点前添加 Checkbox 复选框\n * @default false\n */\n checkable?: boolean;\n\n /**\n * checkable 状态下节点选择完全受控(父子节点选中状态不再关联)\n * @default false\n */\n checkStrictly?: boolean;\n\n /**\n * 节点前添加展开图标\n * @default true\n */\n showExpand?: boolean;\n\n /**\n * 是否展示连接线\n * @default false\n */\n showLine?: boolean;\n\n /**\n * 是否异步加载(显示加载状态)\n * @default false\n */\n asyncData?: boolean;\n\n /**\n * treeNodes 数据\n * @default []\n */\n nodes?: NzTreeNodeOptions[];\n\n /**\n * 默认展开所有树节点\n * @default false\n */\n defaultExpandAll?: boolean;\n\n /**\n * 默认展开指定的树节点\n */\n expandedKeys?: string[];\n\n /**\n * \t如何在输入框显示所选的节点值的方法\n * @default (node: NzTreeNode) => node.title\n */\n displayWith?: (node: NzTreeNode) => string;\n\n /**\n * 最多显示多少个 tag\n *\n */\n maxTagCount?: number;\n\n /**\n * 隐藏 tag 时显示的内容\n */\n maxTagPlaceholder?: TemplateRef<{ $implicit: NzTreeNode[] }>;\n maxTagPlaceholderName?: string;\n\n /**\n * 自定义节点\n */\n treeTemplate?: TemplateRef<{ $implicit: NzTreeNode }>;\n treeTemplateName?: string;\n\n /**\n * 自定义展开图标\n */\n expandedIcon?: TemplateRef<{\n $implicit: NzTreeNode;\n origin: NzTreeNodeOptions;\n }>;\n expandedIconName?: string;\n\n /**\n * 虚拟滚动的总高度\n */\n virtualHeight?: string | null;\n\n /**\n * 虚拟滚动时每一列的高度,与 cdk itemSize 相同\n * @default 28\n */\n virtualItemSize?: number;\n\n /**\n * 缓冲区最大像素高度,与 cdk maxBufferPx 相同\n * @default 500\n */\n virtualMaxBufferPx?: number;\n\n /**\n * 缓冲区最小像素高度,低于该值时将加载新结构,与 cdk minBufferPx 相同\n * @default 28\n */\n virtualMinBufferPx?: number;\n\n /**\n * 浮层是否应带有背景板\n * @default false\n */\n backdrop?: boolean;\n\n /**\n * 点击展开树节点图标调用\n */\n expandChange?: FormlyAttributeEvent<NzFormatEmitEvent>;\n}\n\nexport interface FormlyTreeSelectFieldConfig extends NzFormlyFieldConfig<TreeSelectProps> {\n type: 'tree-select' | Type<FormlyFieldTreeSelect>;\n}\n\n@Component({\n selector: 'formly-field-treeselect',\n template: ` <nz-tree-select\n [formControl]=\"formControl\"\n [formlyAttributes]=\"field\"\n [nzPlaceHolder]=\"props.placeholder ?? ''\"\n [ngClass]=\"props['ngClass']\"\n [nzAllowClear]=\"props['allowClear']!!\"\n [nzExpandedIcon]=\"nzExpandedIcon\"\n [nzShowIcon]=\"props['showIcon']!!\"\n [nzShowSearch]=\"props['showSearch']!!\"\n [nzNotFoundContent]=\"props['notFoundContent']\"\n [nzDropdownMatchSelectWidth]=\"props['dropdownMatchSelectWidth']!!\"\n [nzDropdownStyle]=\"props['dropdownStyle'] ?? null\"\n [nzDropdownClassName]=\"props['dropdownClassName']\"\n [nzMultiple]=\"props['multiple']!!\"\n [nzHideUnMatched]=\"props['hideUnMatched']!!\"\n [nzCheckable]=\"props['checkable']!!\"\n [nzCheckStrictly]=\"props['checkStrictly']!!\"\n [nzShowExpand]=\"props['showExpand']!!\"\n [nzShowLine]=\"props['showLine']!!\"\n [nzAsyncData]=\"props['asyncData']\"\n [nzNodes]=\"props['nodes']!\"\n [nzDefaultExpandAll]=\"props['defaultExpandAll']!!\"\n [nzExpandedKeys]=\"props['expandedKeys']\"\n [nzDisplayWith]=\"props['displayWith']\"\n [nzMaxTagCount]=\"props['maxTagCount']\"\n [nzPlacement]=\"props['placement'] ?? ''\"\n [nzMaxTagPlaceholder]=\"nzMaxTagPlaceholder ?? null\"\n [nzTreeTemplate]=\"nzTreeTemplate!\"\n [nzVirtualHeight]=\"props['virtualHeight'] ?? null\"\n [nzVirtualItemSize]=\"props['virtualItemSize']!\"\n [nzVirtualMaxBufferPx]=\"props['virtualMaxBufferPx']!\"\n [nzVirtualMinBufferPx]=\"props['virtualMinBufferPx']!\"\n [nzBackdrop]=\"props['backdrop']!!\"\n (nzExpandChange)=\"props['expandChange'] && props['expandChange'](field, $event)\"\n ></nz-tree-select>`,\n changeDetection: ChangeDetectionStrategy.OnPush\n})\nexport class FormlyFieldTreeSelect extends FieldType<FieldTypeConfig> {\n override defaultOptions = {\n props: {\n dropdownMatchSelectWidth: true,\n showExpand: true,\n nodes: [],\n displayWith: (node: NzTreeNode) => node.title,\n virtualItemSize: 28,\n virtualMaxBufferPx: 500,\n virtualMinBufferPx: 28\n }\n };\n\n constructor(@Optional() public fieldTemplates: FormlyBoxTemplates) {\n super();\n }\n\n get nzExpandedIcon() {\n return resolveTplName(this.props, this.fieldTemplates, 'expandedIcon');\n }\n\n get nzMaxTagPlaceholder() {\n return resolveTplName(this.props, this.fieldTemplates, 'maxTagPlaceholder');\n }\n get nzTreeTemplate() {\n return resolveTplName(this.props, this.fieldTemplates, 'treeTemplate');\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';\nimport { NzTreeSelectModule } from 'ng-zorro-antd/tree-select';\nimport { FormlyFieldTreeSelect } from './tree-select.type';\n\n@NgModule({\n declarations: [FormlyFieldTreeSelect],\n imports: [\n CommonModule,\n ReactiveFormsModule,\n FormlyNzFormFieldModule,\n NzTreeSelectModule,\n\n FormlyModule.forChild({\n types: [\n {\n name: 'tree-select',\n component: FormlyFieldTreeSelect,\n wrappers: ['form-field']\n }\n ]\n })\n ]\n})\nexport class FormlyNzTreeSelectModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public_api';\n"],"names":["i1"],"mappings":";;;;;;;;;;;;;;AA+NM,MAAO,qBAAsB,SAAQ,SAA0B,CAAA;AAanE,IAAA,WAAA,CAA+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EAAE,qBAAqB;wBAChC,QAAQ,EAAE,CAAC,YAAY,CAAC;AACzB,qBAAA;AACF,iBAAA;aACF,CAAC,CAAA,EAAA,CAAA,CAAA,EAAA;;2FAGO,wBAAwB,EAAA,UAAA,EAAA,CAAA;kBAnBpC,QAAQ;AAAC,YAAA,IAAA,EAAA,CAAA;oBACR,YAAY,EAAE,CAAC,qBAAqB,CAAC;AACrC,oBAAA,OAAO,EAAE;wBACP,YAAY;wBACZ,mBAAmB;wBACnB,uBAAuB;wBACvB,kBAAkB;wBAElB,YAAY,CAAC,QAAQ,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;;;AC1BD;;AAEG;;;;"}
|
1
|
+
{"version":3,"file":"ngx-formly-zorro-antd-tree-select.mjs","sources":["../../../../packages/formlyantd/tree-select/src/tree-select.type.ts","../../../../packages/formlyantd/tree-select/src/tree-select.module.ts","../../../../packages/formlyantd/tree-select/src/ngx-formly-zorro-antd-tree-select.ts"],"sourcesContent":["import { Component, Type, Optional, TemplateRef, ChangeDetectionStrategy } from '@angular/core';\nimport { FieldType, FieldTypeConfig } from '@ngx-formly/core';\nimport type { NzFormlyFieldConfig, FormlyAttributeEvent, NgStyleType } from 'ngx-formly-zorro-antd/common';\nimport type { FormlyFieldProps } from 'ngx-formly-zorro-antd/form-field';\nimport { FormlyBoxTemplates, resolveTplName } from 'ngx-formly-zorro-antd/common';\nimport type { NzFormatEmitEvent, NzTreeNode, NzTreeNodeOptions } from 'ng-zorro-antd/tree';\nimport type { NzPlacementType } from 'ng-zorro-antd/tree-select';\n\nexport interface TreeSelectProps extends FormlyFieldProps {\n /**\n * 显示清除按钮\n * @default false\n */\n allowClear?: boolean;\n\n /**\n * 是否展示 TreeNode title 前的图标,没有默认样式\n * @default false\n */\n showIcon?: boolean;\n\n /**\n * 显示搜索框\n * @default false\n */\n showSearch?: boolean;\n\n /**\n * 当下拉列表为空时显示的内容\n */\n notFoundContent?: string;\n\n /**\n * 下拉菜单和选择器同宽\n * @default true\n */\n dropdownMatchSelectWidth?: boolean;\n\n /**\n * 下拉菜单的样式\n */\n dropdownStyle?: NgStyleType;\n\n /**\n * 下拉菜单的 className 属性\n */\n dropdownClassName?: string;\n\n /**\n * 选择框弹出的位置\n */\n placement?: NzPlacementType;\n\n /**\n * 支持多选(当设置 nzCheckable 时自动变为true)\n * @default false\n */\n multiple?: boolean;\n\n /**\n * 搜索隐藏未匹配的节点\n * @default false\n */\n hideUnMatched?: boolean;\n\n /**\n * 节点前添加 Checkbox 复选框\n * @default false\n */\n checkable?: boolean;\n\n /**\n * checkable 状态下节点选择完全受控(父子节点选中状态不再关联)\n * @default false\n */\n checkStrictly?: boolean;\n\n /**\n * 节点前添加展开图标\n * @default true\n */\n showExpand?: boolean;\n\n /**\n * 是否展示连接线\n * @default false\n */\n showLine?: boolean;\n\n /**\n * 是否异步加载(显示加载状态)\n * @default false\n */\n asyncData?: boolean;\n\n /**\n * treeNodes 数据\n * @default []\n */\n nodes?: NzTreeNodeOptions[];\n\n /**\n * 默认展开所有树节点\n * @default false\n */\n defaultExpandAll?: boolean;\n\n /**\n * 默认展开指定的树节点\n */\n expandedKeys?: string[];\n\n /**\n * \t如何在输入框显示所选的节点值的方法\n * @default (node: NzTreeNode) => node.title\n */\n displayWith?: (node: NzTreeNode) => string;\n\n /**\n * 最多显示多少个 tag\n *\n */\n maxTagCount?: number;\n\n /**\n * 隐藏 tag 时显示的内容\n */\n maxTagPlaceholder?: TemplateRef<{ $implicit: NzTreeNode[] }>;\n maxTagPlaceholderName?: string;\n\n /**\n * 自定义节点\n */\n treeTemplate?: TemplateRef<{ $implicit: NzTreeNode }>;\n treeTemplateName?: string;\n\n /**\n * 自定义展开图标\n */\n expandedIcon?: TemplateRef<{\n $implicit: NzTreeNode;\n origin: NzTreeNodeOptions;\n }>;\n expandedIconName?: string;\n\n /**\n * 虚拟滚动的总高度\n */\n virtualHeight?: string | null;\n\n /**\n * 虚拟滚动时每一列的高度,与 cdk itemSize 相同\n * @default 28\n */\n virtualItemSize?: number;\n\n /**\n * 缓冲区最大像素高度,与 cdk maxBufferPx 相同\n * @default 500\n */\n virtualMaxBufferPx?: number;\n\n /**\n * 缓冲区最小像素高度,低于该值时将加载新结构,与 cdk minBufferPx 相同\n * @default 28\n */\n virtualMinBufferPx?: number;\n\n /**\n * 浮层是否应带有背景板\n * @default false\n */\n backdrop?: boolean;\n\n /**\n * 点击展开树节点图标调用\n */\n expandChange?: FormlyAttributeEvent<NzFormatEmitEvent>;\n}\n\nexport interface FormlyTreeSelectFieldConfig extends NzFormlyFieldConfig<TreeSelectProps> {\n type: 'tree-select' | Type<FormlyFieldTreeSelect>;\n}\n\n@Component({\n selector: 'formly-field-treeselect',\n template: ` <nz-tree-select\n [formControl]=\"formControl\"\n [formlyAttributes]=\"field\"\n [nzPlaceHolder]=\"props.placeholder ?? ''\"\n [ngClass]=\"props['ngClass']\"\n [nzAllowClear]=\"props['allowClear']!!\"\n [nzExpandedIcon]=\"nzExpandedIcon\"\n [nzShowIcon]=\"props['showIcon']!!\"\n [nzShowSearch]=\"props['showSearch']!!\"\n [nzNotFoundContent]=\"props['notFoundContent']\"\n [nzDropdownMatchSelectWidth]=\"props['dropdownMatchSelectWidth']!!\"\n [nzDropdownStyle]=\"props['dropdownStyle'] ?? null\"\n [nzDropdownClassName]=\"props['dropdownClassName']\"\n [nzMultiple]=\"props['multiple']!!\"\n [nzHideUnMatched]=\"props['hideUnMatched']!!\"\n [nzCheckable]=\"props['checkable']!!\"\n [nzCheckStrictly]=\"props['checkStrictly']!!\"\n [nzShowExpand]=\"props['showExpand']!!\"\n [nzShowLine]=\"props['showLine']!!\"\n [nzAsyncData]=\"props['asyncData']\"\n [nzNodes]=\"props['nodes']!\"\n [nzDefaultExpandAll]=\"props['defaultExpandAll']!!\"\n [nzExpandedKeys]=\"props['expandedKeys']\"\n [nzDisplayWith]=\"props['displayWith']\"\n [nzMaxTagCount]=\"props['maxTagCount']\"\n [nzPlacement]=\"props['placement'] ?? ''\"\n [nzMaxTagPlaceholder]=\"nzMaxTagPlaceholder ?? null\"\n [nzTreeTemplate]=\"nzTreeTemplate!\"\n [nzVirtualHeight]=\"props['virtualHeight'] ?? null\"\n [nzVirtualItemSize]=\"props['virtualItemSize']!\"\n [nzVirtualMaxBufferPx]=\"props['virtualMaxBufferPx']!\"\n [nzVirtualMinBufferPx]=\"props['virtualMinBufferPx']!\"\n [nzBackdrop]=\"props['backdrop']!!\"\n (nzExpandChange)=\"props['expandChange']?.(field, $event)\"\n ></nz-tree-select>`,\n changeDetection: ChangeDetectionStrategy.OnPush\n})\nexport class FormlyFieldTreeSelect extends FieldType<FieldTypeConfig> {\n override defaultOptions = {\n props: {\n dropdownMatchSelectWidth: true,\n showExpand: true,\n nodes: [],\n displayWith: (node: NzTreeNode) => node.title,\n virtualItemSize: 28,\n virtualMaxBufferPx: 500,\n virtualMinBufferPx: 28\n }\n };\n\n constructor(@Optional() public fieldTemplates: FormlyBoxTemplates) {\n super();\n }\n\n get nzExpandedIcon() {\n return resolveTplName(this.props, this.fieldTemplates, 'expandedIcon');\n }\n\n get nzMaxTagPlaceholder() {\n return resolveTplName(this.props, this.fieldTemplates, 'maxTagPlaceholder');\n }\n get nzTreeTemplate() {\n return resolveTplName(this.props, this.fieldTemplates, 'treeTemplate');\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';\nimport { NzTreeSelectModule } from 'ng-zorro-antd/tree-select';\nimport { FormlyFieldTreeSelect } from './tree-select.type';\n\n@NgModule({\n declarations: [FormlyFieldTreeSelect],\n imports: [\n CommonModule,\n ReactiveFormsModule,\n FormlyNzFormFieldModule,\n NzTreeSelectModule,\n\n FormlyModule.forChild({\n types: [\n {\n name: 'tree-select',\n component: FormlyFieldTreeSelect,\n wrappers: ['form-field']\n }\n ]\n })\n ]\n})\nexport class FormlyNzTreeSelectModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public_api';\n"],"names":["i1"],"mappings":";;;;;;;;;;;;;;AA+NM,MAAO,qBAAsB,SAAQ,SAA0B,CAAA;AAanE,IAAA,WAAA,CAA+B,cAAkC,EAAA;AAC/D,QAAA,KAAK,EAAE,CAAC;QADqB,IAAc,CAAA,cAAA,GAAd,cAAc,CAAoB;AAZxD,QAAA,IAAA,CAAA,cAAc,GAAG;AACxB,YAAA,KAAK,EAAE;AACL,gBAAA,wBAAwB,EAAE,IAAI;AAC9B,gBAAA,UAAU,EAAE,IAAI;AAChB,gBAAA,KAAK,EAAE,EAAE;gBACT,WAAW,EAAE,CAAC,IAAgB,KAAK,IAAI,CAAC,KAAK;AAC7C,gBAAA,eAAe,EAAE,EAAE;AACnB,gBAAA,kBAAkB,EAAE,GAAG;AACvB,gBAAA,kBAAkB,EAAE,EAAE;AACvB,aAAA;SACF,CAAC;KAID;AAED,IAAA,IAAI,cAAc,GAAA;AAChB,QAAA,OAAO,cAAc,CAAC,IAAI,CAAC,KAAK,EAAE,IAAI,CAAC,cAAc,EAAE,cAAc,CAAC,CAAC;KACxE;AAED,IAAA,IAAI,mBAAmB,GAAA;AACrB,QAAA,OAAO,cAAc,CAAC,IAAI,CAAC,KAAK,EAAE,IAAI,CAAC,cAAc,EAAE,mBAAmB,CAAC,CAAC;KAC7E;AACD,IAAA,IAAI,cAAc,GAAA;AAChB,QAAA,OAAO,cAAc,CAAC,IAAI,CAAC,KAAK,EAAE,IAAI,CAAC,cAAc,EAAE,cAAc,CAAC,CAAC;KACxE;8GA1BU,qBAAqB,EAAA,IAAA,EAAA,CAAA,EAAA,KAAA,EA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AAA;AAaT,IAAA,SAAA,IAAA,CAAA,IAAA,GAAA,EAAA,CAAA,mBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,QAAA,EAAA,QAAA,EAAA,EAAA,EAAA,IAAA,EAAA,wBAAwB,YAhBjC,YAAY;YACZ,mBAAmB;YACnB,uBAAuB;YACvB,kBAAkB;YAElB,YAAY,CAAC,QAAQ,CAAC;AACpB,gBAAA,KAAK,EAAE;AACL,oBAAA;AACE,wBAAA,IAAI,EAAE,aAAa;AACnB,wBAAA,SAAS,EAAE,qBAAqB;wBAChC,QAAQ,EAAE,CAAC,YAAY,CAAC;AACzB,qBAAA;AACF,iBAAA;aACF,CAAC,CAAA,EAAA,CAAA,CAAA,EAAA;;2FAGO,wBAAwB,EAAA,UAAA,EAAA,CAAA;kBAnBpC,QAAQ;AAAC,YAAA,IAAA,EAAA,CAAA;oBACR,YAAY,EAAE,CAAC,qBAAqB,CAAC;AACrC,oBAAA,OAAO,EAAE;wBACP,YAAY;wBACZ,mBAAmB;wBACnB,uBAAuB;wBACvB,kBAAkB;wBAElB,YAAY,CAAC,QAAQ,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;;;AC1BD;;AAEG;;;;"}
|
@@ -288,7 +288,7 @@ class FormlyFieldUpload extends FieldType {
|
|
288
288
|
[nzHeaders]="props['headers']"
|
289
289
|
[nzListType]="props['listType']!"
|
290
290
|
[nzMultiple]="props['multiple']!!"
|
291
|
-
[nzName]="props['name']
|
291
|
+
[nzName]="props['name'] ?? ''"
|
292
292
|
[nzShowUploadList]="props['showUploadList']"
|
293
293
|
[nzShowButton]="props['showButton']!!"
|
294
294
|
[nzWithCredentials]="props['withCredentials']!!"
|
@@ -297,7 +297,6 @@ class FormlyFieldUpload extends FieldType {
|
|
297
297
|
[nzPreviewFile]="props['previewFile']"
|
298
298
|
[nzPreviewIsImage]="props['previewIsImage']"
|
299
299
|
[nzRemove]="props['remove']"
|
300
|
-
(nzChange)="props.change && props.change(field, $event)"
|
301
300
|
[nzDownload]="props['download']"
|
302
301
|
[nzTransformFile]="props['transformFile']"
|
303
302
|
[nzIconRender]="nzIconRender ?? null"
|
@@ -308,7 +307,8 @@ class FormlyFieldUpload extends FieldType {
|
|
308
307
|
[nzeUploadButtonIcon]="props['uploadButtonIcon']"
|
309
308
|
[nzeShowUploadButton]="props['showUploadButton']"
|
310
309
|
[ngClass]="props['ngClass']"
|
311
|
-
(
|
310
|
+
(nzChange)="props.change?.(field, $event)"
|
311
|
+
(nzFileListChange)="props['fileListChange']?.(field, $event)"
|
312
312
|
>
|
313
313
|
</formly-nz-upload>`, isInline: true, dependencies: [{ kind: "directive", type: i1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i3$1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i3$1.FormControlDirective, selector: "[formControl]", inputs: ["formControl", "disabled", "ngModel"], outputs: ["ngModelChange"], exportAs: ["ngForm"] }, { kind: "directive", type: i4$1.ɵFormlyAttributes, selector: "[formlyAttributes]", inputs: ["formlyAttributes", "id"] }, { kind: "component", type: UploadNzComponent, selector: "formly-nz-upload", inputs: ["nzeText", "nzeHint", "nzeShowUploadButton", "nzeUploadButton", "nzeUploadButtonIcon", "ngClass", "resultMap"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
314
314
|
}
|
@@ -335,7 +335,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.9", ngImpor
|
|
335
335
|
[nzHeaders]="props['headers']"
|
336
336
|
[nzListType]="props['listType']!"
|
337
337
|
[nzMultiple]="props['multiple']!!"
|
338
|
-
[nzName]="props['name']
|
338
|
+
[nzName]="props['name'] ?? ''"
|
339
339
|
[nzShowUploadList]="props['showUploadList']"
|
340
340
|
[nzShowButton]="props['showButton']!!"
|
341
341
|
[nzWithCredentials]="props['withCredentials']!!"
|
@@ -344,7 +344,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.9", ngImpor
|
|
344
344
|
[nzPreviewFile]="props['previewFile']"
|
345
345
|
[nzPreviewIsImage]="props['previewIsImage']"
|
346
346
|
[nzRemove]="props['remove']"
|
347
|
-
(nzChange)="props.change && props.change(field, $event)"
|
348
347
|
[nzDownload]="props['download']"
|
349
348
|
[nzTransformFile]="props['transformFile']"
|
350
349
|
[nzIconRender]="nzIconRender ?? null"
|
@@ -355,7 +354,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.9", ngImpor
|
|
355
354
|
[nzeUploadButtonIcon]="props['uploadButtonIcon']"
|
356
355
|
[nzeShowUploadButton]="props['showUploadButton']"
|
357
356
|
[ngClass]="props['ngClass']"
|
358
|
-
(
|
357
|
+
(nzChange)="props.change?.(field, $event)"
|
358
|
+
(nzFileListChange)="props['fileListChange']?.(field, $event)"
|
359
359
|
>
|
360
360
|
</formly-nz-upload>`,
|
361
361
|
changeDetection: ChangeDetectionStrategy.OnPush
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"ngx-formly-zorro-antd-upload.mjs","sources":["../../../../packages/formlyantd/upload/src/upload.component.ts","../../../../packages/formlyantd/upload/src/upload.type.ts","../../../../packages/formlyantd/upload/src/upload.module.ts","../../../../packages/formlyantd/upload/src/ngx-formly-zorro-antd-upload.ts"],"sourcesContent":["/* eslint-disable @typescript-eslint/no-empty-function */\nimport {\n ChangeDetectionStrategy,\n Component,\n TemplateRef,\n forwardRef,\n booleanAttribute,\n Input,\n ViewEncapsulation\n} from '@angular/core';\nimport { ControlValueAccessor, NG_VALUE_ACCESSOR } from '@angular/forms';\nimport type { NgClassType } from 'ngx-formly-zorro-antd/common';\nimport type { OnChangeType, OnTouchedType, NzSafeAny } from 'ng-zorro-antd/core/types';\nimport { NzUploadChangeParam, NzUploadComponent, NzUploadFile } from 'ng-zorro-antd/upload';\nimport type { AntdIcon } from './upload.props';\n\n@Component({\n selector: 'formly-nz-upload',\n template: `\n <nz-upload\n [nzType]=\"nzType\"\n [nzAccept]=\"nzAccept\"\n [nzAction]=\"nzAction\"\n [nzDirectory]=\"nzDirectory\"\n [nzBeforeUpload]=\"nzBeforeUpload\"\n [nzCustomRequest]=\"nzCustomRequest\"\n [nzData]=\"nzData\"\n [nzDisabled]=\"nzDisabled\"\n [(nzFileList)]=\"nzFileList\"\n [nzLimit]=\"nzLimit\"\n [nzSize]=\"nzSize\"\n [nzFileType]=\"nzFileType\"\n [nzFilter]=\"nzFilter\"\n [nzHeaders]=\"nzHeaders\"\n [nzListType]=\"nzListType\"\n [nzMultiple]=\"nzMultiple\"\n [nzName]=\"nzName\"\n [nzShowUploadList]=\"nzShowUploadList\"\n [nzShowButton]=\"nzShowButton\"\n [nzWithCredentials]=\"nzWithCredentials\"\n [nzOpenFileDialogOnClick]=\"nzOpenFileDialogOnClick\"\n [nzPreview]=\"nzPreview\"\n [nzPreviewFile]=\"nzPreviewFile\"\n [nzPreviewIsImage]=\"nzPreviewIsImage\"\n [nzRemove]=\"nzRemove\"\n [nzDownload]=\"nzDownload\"\n [nzTransformFile]=\"nzTransformFile\"\n [nzIconRender]=\"nzIconRender\"\n [nzFileListRender]=\"nzFileListRender\"\n [ngClass]=\"ngClass\"\n (nzChange)=\"change($event)\"\n (nzFileListChange)=\"fileListChange($event)\"\n >\n @switch (nzType) {\n @case ('drag') {\n <p class=\"ant-upload-drag-icon\">\n <ng-container *ngTemplateOutlet=\"uploadButtonIconTpl\"></ng-container>\n </p>\n <p class=\"ant-upload-text\">{{ nzeText }}</p>\n <p class=\"ant-upload-hint\">{{ nzeHint }}</p>\n }\n @default {\n @if (nzeShowUploadButton !== false) {\n <button type=\"button\" nz-button [disabled]=\"nzDisabled!!\">\n <ng-container *ngTemplateOutlet=\"uploadButtonIconTpl\"></ng-container>\n {{ nzeText }}\n </button>\n } @else if (nzeShowUploadButton === false) {\n <div>\n <ng-container *ngTemplateOutlet=\"uploadButtonIconTpl\"></ng-container>\n {{ nzeText }}\n <div class=\"ant-upload-hint\" style=\"margin-top: 8px\">{{ nzeHint }}</div>\n </div>\n }\n }\n }\n\n <ng-template #uploadButtonIconTpl>\n @if (nzeUploadButtonIcon) {\n <span\n nz-icon\n [nzType]=\"nzeUploadButtonIcon.type\"\n [nzTheme]=\"nzeUploadButtonIcon.theme || 'outline'\"\n [nzSpin]=\"nzeUploadButtonIcon.spin!!\"\n [nzTwotoneColor]=\"nzeUploadButtonIcon.twoToneColor || ''\"\n ></span>\n }\n </ng-template>\n </nz-upload>\n `,\n encapsulation: ViewEncapsulation.None,\n changeDetection: ChangeDetectionStrategy.OnPush,\n providers: [\n {\n provide: NG_VALUE_ACCESSOR,\n useExisting: forwardRef(() => UploadNzComponent),\n multi: true\n }\n ]\n})\nexport class UploadNzComponent extends NzUploadComponent implements ControlValueAccessor {\n // @ViewChild('upload', { static: true }) transfer!: NzUploadComponent;\n\n /** 上传显示文本信息 */\n @Input() nzeText?: string;\n /** 上传的提示信息 */\n @Input() nzeHint?: string;\n /** 是否显示上传按钮, 如果是nzType=\"drag\" 隐藏按钮 */\n @Input({ transform: booleanAttribute }) nzeShowUploadButton?: boolean;\n /**\n * 自定义按钮或显示内容\n */\n @Input() nzeUploadButton?: string | TemplateRef<NzSafeAny>;\n /** 上传按钮的图标 */\n @Input() nzeUploadButtonIcon?: AntdIcon | null = {\n type: 'cloud-upload'\n };\n\n /** 样式名 */\n @Input() ngClass?: NgClassType;\n\n @Input() resultMap?: (items: NzUploadFile[]) => NzSafeAny[];\n\n onChange: OnChangeType = () => {};\n onTouched: OnTouchedType = () => {};\n writeValue(): void {}\n registerOnChange(fn: NzSafeAny): void {\n this.onChange = fn;\n }\n registerOnTouched(fn: NzSafeAny): void {\n this.onTouched = fn;\n }\n setDisabledState?(isDisabled: boolean): void {\n this.nzDisabled = isDisabled;\n }\n\n fileListChange(list: NzUploadFile[]) {\n this.nzFileListChange.emit(list);\n }\n\n change(value: NzUploadChangeParam) {\n this.nzChange.emit(value);\n if (['removed', 'success'].includes(value.type ?? '')) {\n if (this.resultMap instanceof Function) {\n this.onChange(this.resultMap(value.fileList.filter(x => x.status === 'done')));\n } else {\n this.onChange(value.fileList.filter(x => x.status === 'done'));\n }\n }\n }\n}\n","import { Component, ChangeDetectionStrategy, Type, ViewChild, OnInit, Optional } from '@angular/core';\nimport { FieldType, FieldTypeConfig } from '@ngx-formly/core';\nimport type { NzFormlyFieldConfig } from 'ngx-formly-zorro-antd/common';\nimport { UploadNzComponent } from './upload.component';\nimport type { UploadProps } from './upload.props';\nimport { FormlyBoxTemplates, resolveTplName } from 'ngx-formly-zorro-antd/common';\n\nexport interface FormlyUploadFieldConfig extends NzFormlyFieldConfig<UploadProps> {\n type: 'upload' | Type<FormlyFieldUpload>;\n}\n\n@Component({\n selector: 'formly-field-upload',\n template: `<formly-nz-upload\n #upload\n [formControl]=\"formControl\"\n [formlyAttributes]=\"field\"\n [nzAccept]=\"props['accept']\"\n [nzAction]=\"props['action']\"\n [nzDirectory]=\"props['directory']!!\"\n [nzBeforeUpload]=\"props['beforeUpload']\"\n [nzCustomRequest]=\"props['customRequest']\"\n [nzData]=\"props['data']\"\n [nzDisabled]=\"props['disabled']!!\"\n [(nzFileList)]=\"props['fileList']\"\n [nzLimit]=\"props['limit']\"\n [nzSize]=\"props['size']\"\n [nzFileType]=\"props['fileType']\"\n [nzFilter]=\"props['filter']!\"\n [nzHeaders]=\"props['headers']\"\n [nzListType]=\"props['listType']!\"\n [nzMultiple]=\"props['multiple']!!\"\n [nzName]=\"props['name'] || ''\"\n [nzShowUploadList]=\"props['showUploadList']\"\n [nzShowButton]=\"props['showButton']!!\"\n [nzWithCredentials]=\"props['withCredentials']!!\"\n [nzOpenFileDialogOnClick]=\"props['openFileDialogOnClick']!!\"\n [nzPreview]=\"props['preview']\"\n [nzPreviewFile]=\"props['previewFile']\"\n [nzPreviewIsImage]=\"props['previewIsImage']\"\n [nzRemove]=\"props['remove']\"\n (nzChange)=\"props.change && props.change(field, $event)\"\n [nzDownload]=\"props['download']\"\n [nzTransformFile]=\"props['transformFile']\"\n [nzIconRender]=\"nzIconRender ?? null\"\n [nzFileListRender]=\"nzFileListRender ?? null\"\n [resultMap]=\"props['resultMap']\"\n [nzeHint]=\"props['hint']\"\n [nzeText]=\"props['text']\"\n [nzeUploadButtonIcon]=\"props['uploadButtonIcon']\"\n [nzeShowUploadButton]=\"props['showUploadButton']\"\n [ngClass]=\"props['ngClass']\"\n (nzFileListChange)=\"props['fileListChange'] && props['fileListChange'](field, $event)\"\n >\n </formly-nz-upload>`,\n changeDetection: ChangeDetectionStrategy.OnPush\n})\nexport class FormlyFieldUpload extends FieldType<FieldTypeConfig<UploadProps>> implements OnInit {\n override defaultOptions = {\n props: {\n listType: 'text' as const,\n name: 'file',\n showUploadList: true,\n showButton: true,\n openFileDialogOnClick: true,\n showUploadButton: true,\n limit: 0,\n size: 0,\n fileList: [],\n filter: [],\n text: ''\n }\n };\n\n @ViewChild('upload', { static: true }) upload!: UploadNzComponent;\n\n constructor(@Optional() public fieldTemplates: FormlyBoxTemplates) {\n super();\n }\n\n ngOnInit(): void {\n const type = this.props.type;\n if (type) {\n this.upload.nzType = type;\n }\n }\n\n get nzIconRender() {\n return resolveTplName(this.props, this.fieldTemplates, 'iconRender');\n }\n\n get nzFileListRender() {\n return resolveTplName(this.props, this.fieldTemplates, 'fileListRender');\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';\nimport { NzUploadModule } from 'ng-zorro-antd/upload';\nimport { NzButtonModule } from 'ng-zorro-antd/button';\nimport { NzIconModule } from 'ng-zorro-antd/icon';\nimport { FormlyFieldUpload } from './upload.type';\nimport { UploadNzComponent } from './upload.component';\n\n@NgModule({\n declarations: [FormlyFieldUpload, UploadNzComponent],\n imports: [\n CommonModule,\n ReactiveFormsModule,\n FormlyNzFormFieldModule,\n NzUploadModule,\n NzButtonModule,\n NzIconModule,\n\n FormlyModule.forChild({\n types: [\n {\n name: 'upload',\n component: FormlyFieldUpload,\n wrappers: ['form-field']\n }\n ]\n })\n ]\n})\nexport class FormlyNzUploadModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public_api';\n"],"names":["i1","i2","i3","i4","i5.UploadNzComponent"],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA;AAoGM,MAAO,iBAAkB,SAAQ,iBAAiB,CAAA;AApFxD,IAAA,WAAA,GAAA;;;AAkGW,QAAA,IAAA,CAAA,mBAAmB,GAAqB;AAC/C,YAAA,IAAI,EAAE,cAAc;SACrB,CAAC;AAOF,QAAA,IAAA,CAAA,QAAQ,GAAiB,MAAK,GAAG,CAAC;AAClC,QAAA,IAAA,CAAA,SAAS,GAAkB,MAAK,GAAG,CAAC;AA0BrC,KAAA;AAzBC,IAAA,UAAU,MAAW;AACrB,IAAA,gBAAgB,CAAC,EAAa,EAAA;AAC5B,QAAA,IAAI,CAAC,QAAQ,GAAG,EAAE,CAAC;KACpB;AACD,IAAA,iBAAiB,CAAC,EAAa,EAAA;AAC7B,QAAA,IAAI,CAAC,SAAS,GAAG,EAAE,CAAC;KACrB;AACD,IAAA,gBAAgB,CAAE,UAAmB,EAAA;AACnC,QAAA,IAAI,CAAC,UAAU,GAAG,UAAU,CAAC;KAC9B;AAED,IAAA,cAAc,CAAC,IAAoB,EAAA;AACjC,QAAA,IAAI,CAAC,gBAAgB,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;KAClC;AAED,IAAA,MAAM,CAAC,KAA0B,EAAA;AAC/B,QAAA,IAAI,CAAC,QAAQ,C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../../packages/formlyantd/upload/src/upload.component.ts","../../../../packages/formlyantd/upload/src/upload.type.ts","../../../../packages/formlyantd/upload/src/upload.module.ts","../../../../packages/formlyantd/upload/src/ngx-formly-zorro-antd-upload.ts"],"sourcesContent":["/* eslint-disable @typescript-eslint/no-empty-function */\nimport {\n ChangeDetectionStrategy,\n Component,\n TemplateRef,\n forwardRef,\n booleanAttribute,\n Input,\n ViewEncapsulation\n} from '@angular/core';\nimport { ControlValueAccessor, NG_VALUE_ACCESSOR } from '@angular/forms';\nimport type { NgClassType } from 'ngx-formly-zorro-antd/common';\nimport type { OnChangeType, OnTouchedType, NzSafeAny } from 'ng-zorro-antd/core/types';\nimport { NzUploadChangeParam, NzUploadComponent, NzUploadFile } from 'ng-zorro-antd/upload';\nimport type { AntdIcon } from './upload.props';\n\n@Component({\n selector: 'formly-nz-upload',\n template: `\n <nz-upload\n [nzType]=\"nzType\"\n [nzAccept]=\"nzAccept\"\n [nzAction]=\"nzAction\"\n [nzDirectory]=\"nzDirectory\"\n [nzBeforeUpload]=\"nzBeforeUpload\"\n [nzCustomRequest]=\"nzCustomRequest\"\n [nzData]=\"nzData\"\n [nzDisabled]=\"nzDisabled\"\n [(nzFileList)]=\"nzFileList\"\n [nzLimit]=\"nzLimit\"\n [nzSize]=\"nzSize\"\n [nzFileType]=\"nzFileType\"\n [nzFilter]=\"nzFilter\"\n [nzHeaders]=\"nzHeaders\"\n [nzListType]=\"nzListType\"\n [nzMultiple]=\"nzMultiple\"\n [nzName]=\"nzName\"\n [nzShowUploadList]=\"nzShowUploadList\"\n [nzShowButton]=\"nzShowButton\"\n [nzWithCredentials]=\"nzWithCredentials\"\n [nzOpenFileDialogOnClick]=\"nzOpenFileDialogOnClick\"\n [nzPreview]=\"nzPreview\"\n [nzPreviewFile]=\"nzPreviewFile\"\n [nzPreviewIsImage]=\"nzPreviewIsImage\"\n [nzRemove]=\"nzRemove\"\n [nzDownload]=\"nzDownload\"\n [nzTransformFile]=\"nzTransformFile\"\n [nzIconRender]=\"nzIconRender\"\n [nzFileListRender]=\"nzFileListRender\"\n [ngClass]=\"ngClass\"\n (nzChange)=\"change($event)\"\n (nzFileListChange)=\"fileListChange($event)\"\n >\n @switch (nzType) {\n @case ('drag') {\n <p class=\"ant-upload-drag-icon\">\n <ng-container *ngTemplateOutlet=\"uploadButtonIconTpl\"></ng-container>\n </p>\n <p class=\"ant-upload-text\">{{ nzeText }}</p>\n <p class=\"ant-upload-hint\">{{ nzeHint }}</p>\n }\n @default {\n @if (nzeShowUploadButton !== false) {\n <button type=\"button\" nz-button [disabled]=\"nzDisabled!!\">\n <ng-container *ngTemplateOutlet=\"uploadButtonIconTpl\"></ng-container>\n {{ nzeText }}\n </button>\n } @else if (nzeShowUploadButton === false) {\n <div>\n <ng-container *ngTemplateOutlet=\"uploadButtonIconTpl\"></ng-container>\n {{ nzeText }}\n <div class=\"ant-upload-hint\" style=\"margin-top: 8px\">{{ nzeHint }}</div>\n </div>\n }\n }\n }\n\n <ng-template #uploadButtonIconTpl>\n @if (nzeUploadButtonIcon) {\n <span\n nz-icon\n [nzType]=\"nzeUploadButtonIcon.type\"\n [nzTheme]=\"nzeUploadButtonIcon.theme || 'outline'\"\n [nzSpin]=\"nzeUploadButtonIcon.spin!!\"\n [nzTwotoneColor]=\"nzeUploadButtonIcon.twoToneColor || ''\"\n ></span>\n }\n </ng-template>\n </nz-upload>\n `,\n encapsulation: ViewEncapsulation.None,\n changeDetection: ChangeDetectionStrategy.OnPush,\n providers: [\n {\n provide: NG_VALUE_ACCESSOR,\n useExisting: forwardRef(() => UploadNzComponent),\n multi: true\n }\n ]\n})\nexport class UploadNzComponent extends NzUploadComponent implements ControlValueAccessor {\n // @ViewChild('upload', { static: true }) transfer!: NzUploadComponent;\n\n /** 上传显示文本信息 */\n @Input() nzeText?: string;\n /** 上传的提示信息 */\n @Input() nzeHint?: string;\n /** 是否显示上传按钮, 如果是nzType=\"drag\" 隐藏按钮 */\n @Input({ transform: booleanAttribute }) nzeShowUploadButton?: boolean;\n /**\n * 自定义按钮或显示内容\n */\n @Input() nzeUploadButton?: string | TemplateRef<NzSafeAny>;\n /** 上传按钮的图标 */\n @Input() nzeUploadButtonIcon?: AntdIcon | null = {\n type: 'cloud-upload'\n };\n\n /** 样式名 */\n @Input() ngClass?: NgClassType;\n\n @Input() resultMap?: (items: NzUploadFile[]) => NzSafeAny[];\n\n onChange: OnChangeType = () => {};\n onTouched: OnTouchedType = () => {};\n writeValue(): void {}\n registerOnChange(fn: NzSafeAny): void {\n this.onChange = fn;\n }\n registerOnTouched(fn: NzSafeAny): void {\n this.onTouched = fn;\n }\n setDisabledState?(isDisabled: boolean): void {\n this.nzDisabled = isDisabled;\n }\n\n fileListChange(list: NzUploadFile[]) {\n this.nzFileListChange.emit(list);\n }\n\n change(value: NzUploadChangeParam) {\n this.nzChange.emit(value);\n if (['removed', 'success'].includes(value.type ?? '')) {\n if (this.resultMap instanceof Function) {\n this.onChange(this.resultMap(value.fileList.filter(x => x.status === 'done')));\n } else {\n this.onChange(value.fileList.filter(x => x.status === 'done'));\n }\n }\n }\n}\n","import { Component, ChangeDetectionStrategy, Type, ViewChild, OnInit, Optional } from '@angular/core';\nimport { FieldType, FieldTypeConfig } from '@ngx-formly/core';\nimport type { NzFormlyFieldConfig } from 'ngx-formly-zorro-antd/common';\nimport { UploadNzComponent } from './upload.component';\nimport type { UploadProps } from './upload.props';\nimport { FormlyBoxTemplates, resolveTplName } from 'ngx-formly-zorro-antd/common';\n\nexport interface FormlyUploadFieldConfig extends NzFormlyFieldConfig<UploadProps> {\n type: 'upload' | Type<FormlyFieldUpload>;\n}\n\n@Component({\n selector: 'formly-field-upload',\n template: `<formly-nz-upload\n #upload\n [formControl]=\"formControl\"\n [formlyAttributes]=\"field\"\n [nzAccept]=\"props['accept']\"\n [nzAction]=\"props['action']\"\n [nzDirectory]=\"props['directory']!!\"\n [nzBeforeUpload]=\"props['beforeUpload']\"\n [nzCustomRequest]=\"props['customRequest']\"\n [nzData]=\"props['data']\"\n [nzDisabled]=\"props['disabled']!!\"\n [(nzFileList)]=\"props['fileList']\"\n [nzLimit]=\"props['limit']\"\n [nzSize]=\"props['size']\"\n [nzFileType]=\"props['fileType']\"\n [nzFilter]=\"props['filter']!\"\n [nzHeaders]=\"props['headers']\"\n [nzListType]=\"props['listType']!\"\n [nzMultiple]=\"props['multiple']!!\"\n [nzName]=\"props['name'] ?? ''\"\n [nzShowUploadList]=\"props['showUploadList']\"\n [nzShowButton]=\"props['showButton']!!\"\n [nzWithCredentials]=\"props['withCredentials']!!\"\n [nzOpenFileDialogOnClick]=\"props['openFileDialogOnClick']!!\"\n [nzPreview]=\"props['preview']\"\n [nzPreviewFile]=\"props['previewFile']\"\n [nzPreviewIsImage]=\"props['previewIsImage']\"\n [nzRemove]=\"props['remove']\"\n [nzDownload]=\"props['download']\"\n [nzTransformFile]=\"props['transformFile']\"\n [nzIconRender]=\"nzIconRender ?? null\"\n [nzFileListRender]=\"nzFileListRender ?? null\"\n [resultMap]=\"props['resultMap']\"\n [nzeHint]=\"props['hint']\"\n [nzeText]=\"props['text']\"\n [nzeUploadButtonIcon]=\"props['uploadButtonIcon']\"\n [nzeShowUploadButton]=\"props['showUploadButton']\"\n [ngClass]=\"props['ngClass']\"\n (nzChange)=\"props.change?.(field, $event)\"\n (nzFileListChange)=\"props['fileListChange']?.(field, $event)\"\n >\n </formly-nz-upload>`,\n changeDetection: ChangeDetectionStrategy.OnPush\n})\nexport class FormlyFieldUpload extends FieldType<FieldTypeConfig<UploadProps>> implements OnInit {\n override defaultOptions = {\n props: {\n listType: 'text' as const,\n name: 'file',\n showUploadList: true,\n showButton: true,\n openFileDialogOnClick: true,\n showUploadButton: true,\n limit: 0,\n size: 0,\n fileList: [],\n filter: [],\n text: ''\n }\n };\n\n @ViewChild('upload', { static: true }) upload!: UploadNzComponent;\n\n constructor(@Optional() public fieldTemplates: FormlyBoxTemplates) {\n super();\n }\n\n ngOnInit(): void {\n const type = this.props.type;\n if (type) {\n this.upload.nzType = type;\n }\n }\n\n get nzIconRender() {\n return resolveTplName(this.props, this.fieldTemplates, 'iconRender');\n }\n\n get nzFileListRender() {\n return resolveTplName(this.props, this.fieldTemplates, 'fileListRender');\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';\nimport { NzUploadModule } from 'ng-zorro-antd/upload';\nimport { NzButtonModule } from 'ng-zorro-antd/button';\nimport { NzIconModule } from 'ng-zorro-antd/icon';\nimport { FormlyFieldUpload } from './upload.type';\nimport { UploadNzComponent } from './upload.component';\n\n@NgModule({\n declarations: [FormlyFieldUpload, UploadNzComponent],\n imports: [\n CommonModule,\n ReactiveFormsModule,\n FormlyNzFormFieldModule,\n NzUploadModule,\n NzButtonModule,\n NzIconModule,\n\n FormlyModule.forChild({\n types: [\n {\n name: 'upload',\n component: FormlyFieldUpload,\n wrappers: ['form-field']\n }\n ]\n })\n ]\n})\nexport class FormlyNzUploadModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public_api';\n"],"names":["i1","i2","i3","i4","i5.UploadNzComponent"],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA;AAoGM,MAAO,iBAAkB,SAAQ,iBAAiB,CAAA;AApFxD,IAAA,WAAA,GAAA;;;AAkGW,QAAA,IAAA,CAAA,mBAAmB,GAAqB;AAC/C,YAAA,IAAI,EAAE,cAAc;SACrB,CAAC;AAOF,QAAA,IAAA,CAAA,QAAQ,GAAiB,MAAK,GAAG,CAAC;AAClC,QAAA,IAAA,CAAA,SAAS,GAAkB,MAAK,GAAG,CAAC;AA0BrC,KAAA;AAzBC,IAAA,UAAU,MAAW;AACrB,IAAA,gBAAgB,CAAC,EAAa,EAAA;AAC5B,QAAA,IAAI,CAAC,QAAQ,GAAG,EAAE,CAAC;KACpB;AACD,IAAA,iBAAiB,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Ac;wBACd,cAAc;wBACd,YAAY;wBAEZ,YAAY,CAAC,QAAQ,CAAC;AACpB,4BAAA,KAAK,EAAE;AACL,gCAAA;AACE,oCAAA,IAAI,EAAE,QAAQ;AACd,oCAAA,SAAS,EAAE,iBAAiB;oCAC5B,QAAQ,EAAE,CAAC,YAAY,CAAC;AACzB,iCAAA;AACF,6BAAA;yBACF,CAAC;AACH,qBAAA;AACF,iBAAA,CAAA;;;AC/BD;;AAEG;;;;"}
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "ngx-formly-zorro-antd",
|
3
|
-
"version": "17.
|
3
|
+
"version": "17.4.0",
|
4
4
|
"publishConfig": {
|
5
5
|
"registry": "https://registry.npmjs.org",
|
6
6
|
"access": "public"
|
@@ -43,23 +43,17 @@
|
|
43
43
|
"esm": "./esm2022/button/ngx-formly-zorro-antd-button.mjs",
|
44
44
|
"default": "./fesm2022/ngx-formly-zorro-antd-button.mjs"
|
45
45
|
},
|
46
|
-
"./card": {
|
47
|
-
"types": "./card/index.d.ts",
|
48
|
-
"esm2022": "./esm2022/card/ngx-formly-zorro-antd-card.mjs",
|
49
|
-
"esm": "./esm2022/card/ngx-formly-zorro-antd-card.mjs",
|
50
|
-
"default": "./fesm2022/ngx-formly-zorro-antd-card.mjs"
|
51
|
-
},
|
52
46
|
"./button-group": {
|
53
47
|
"types": "./button-group/index.d.ts",
|
54
48
|
"esm2022": "./esm2022/button-group/ngx-formly-zorro-antd-button-group.mjs",
|
55
49
|
"esm": "./esm2022/button-group/ngx-formly-zorro-antd-button-group.mjs",
|
56
50
|
"default": "./fesm2022/ngx-formly-zorro-antd-button-group.mjs"
|
57
51
|
},
|
58
|
-
"./card
|
59
|
-
"types": "./card
|
60
|
-
"esm2022": "./esm2022/card
|
61
|
-
"esm": "./esm2022/card
|
62
|
-
"default": "./fesm2022/ngx-formly-zorro-antd-card
|
52
|
+
"./card": {
|
53
|
+
"types": "./card/index.d.ts",
|
54
|
+
"esm2022": "./esm2022/card/ngx-formly-zorro-antd-card.mjs",
|
55
|
+
"esm": "./esm2022/card/ngx-formly-zorro-antd-card.mjs",
|
56
|
+
"default": "./fesm2022/ngx-formly-zorro-antd-card.mjs"
|
63
57
|
},
|
64
58
|
"./cascader": {
|
65
59
|
"types": "./cascader/index.d.ts",
|
@@ -73,6 +67,12 @@
|
|
73
67
|
"esm": "./esm2022/checkbox/ngx-formly-zorro-antd-checkbox.mjs",
|
74
68
|
"default": "./fesm2022/ngx-formly-zorro-antd-checkbox.mjs"
|
75
69
|
},
|
70
|
+
"./card-wrapper": {
|
71
|
+
"types": "./card-wrapper/index.d.ts",
|
72
|
+
"esm2022": "./esm2022/card-wrapper/ngx-formly-zorro-antd-card-wrapper.mjs",
|
73
|
+
"esm": "./esm2022/card-wrapper/ngx-formly-zorro-antd-card-wrapper.mjs",
|
74
|
+
"default": "./fesm2022/ngx-formly-zorro-antd-card-wrapper.mjs"
|
75
|
+
},
|
76
76
|
"./common": {
|
77
77
|
"types": "./common/index.d.ts",
|
78
78
|
"esm2022": "./esm2022/common/ngx-formly-zorro-antd-common.mjs",
|