ngx-formly-zorro-antd 13.0.0-rc.0
Sign up to get free protection for your applications and to get access to all the features.
- package/README.md +7 -0
- package/autocomplete/autocomplete.props.d.ts +39 -0
- package/autocomplete/ngx-formly-zorro-antd-autocomplete.d.ts +5 -0
- package/autocomplete/package.json +10 -0
- package/autocomplete/public_api.d.ts +1 -0
- package/button/button.module.d.ts +11 -0
- package/button/button.type.d.ts +65 -0
- package/button/ngx-formly-zorro-antd-button.d.ts +5 -0
- package/button/package.json +10 -0
- package/button/public_api.d.ts +2 -0
- package/card/card.module.d.ts +10 -0
- package/card/card.wrapper.d.ts +58 -0
- package/card/ngx-formly-zorro-antd-card.d.ts +5 -0
- package/card/package.json +10 -0
- package/card/public_api.d.ts +2 -0
- package/cascader/cascader.module.d.ts +12 -0
- package/cascader/cascader.type.d.ts +152 -0
- package/cascader/ngx-formly-zorro-antd-cascader.d.ts +5 -0
- package/cascader/package.json +10 -0
- package/cascader/public_api.d.ts +2 -0
- package/checkbox/checkbox.module.d.ts +12 -0
- package/checkbox/checkbox.type.d.ts +35 -0
- package/checkbox/ngx-formly-zorro-antd-checkbox.d.ts +5 -0
- package/checkbox/package.json +10 -0
- package/checkbox/public_api.d.ts +2 -0
- package/datepicker/datepicker.module.d.ts +12 -0
- package/datepicker/datepicker.props.d.ts +146 -0
- package/datepicker/datepicker.type.d.ts +31 -0
- package/datepicker/ngx-formly-zorro-antd-datepicker.d.ts +5 -0
- package/datepicker/package.json +10 -0
- package/datepicker/public_api.d.ts +2 -0
- package/esm2020/autocomplete/autocomplete.props.mjs +2 -0
- package/esm2020/autocomplete/ngx-formly-zorro-antd-autocomplete.mjs +5 -0
- package/esm2020/autocomplete/public_api.mjs +2 -0
- package/esm2020/button/button.module.mjs +63 -0
- package/esm2020/button/button.type.mjs +70 -0
- package/esm2020/button/ngx-formly-zorro-antd-button.mjs +5 -0
- package/esm2020/button/public_api.mjs +3 -0
- package/esm2020/card/card.module.mjs +45 -0
- package/esm2020/card/card.wrapper.mjs +47 -0
- package/esm2020/card/ngx-formly-zorro-antd-card.mjs +5 -0
- package/esm2020/card/public_api.mjs +3 -0
- package/esm2020/cascader/cascader.module.mjs +53 -0
- package/esm2020/cascader/cascader.type.mjs +112 -0
- package/esm2020/cascader/ngx-formly-zorro-antd-cascader.mjs +5 -0
- package/esm2020/cascader/public_api.mjs +3 -0
- package/esm2020/checkbox/checkbox.module.mjs +61 -0
- package/esm2020/checkbox/checkbox.type.mjs +69 -0
- package/esm2020/checkbox/ngx-formly-zorro-antd-checkbox.mjs +5 -0
- package/esm2020/checkbox/public_api.mjs +3 -0
- package/esm2020/datepicker/datepicker.module.mjs +53 -0
- package/esm2020/datepicker/datepicker.props.mjs +2 -0
- package/esm2020/datepicker/datepicker.type.mjs +189 -0
- package/esm2020/datepicker/ngx-formly-zorro-antd-datepicker.mjs +5 -0
- package/esm2020/datepicker/public_api.mjs +3 -0
- package/esm2020/form-field/form-field.module.mjs +47 -0
- package/esm2020/form-field/form-field.props.mjs +2 -0
- package/esm2020/form-field/form-field.wrapper.mjs +117 -0
- package/esm2020/form-field/ngx-formly-zorro-antd-form-field.mjs +5 -0
- package/esm2020/form-field/public_api.mjs +2 -0
- package/esm2020/index.mjs +2 -0
- package/esm2020/input/input.module.mjs +91 -0
- package/esm2020/input/input.props.mjs +2 -0
- package/esm2020/input/input.type.mjs +259 -0
- package/esm2020/input/ngx-formly-zorro-antd-input.mjs +5 -0
- package/esm2020/input/public_api.mjs +3 -0
- package/esm2020/input-group/input-group.module.mjs +43 -0
- package/esm2020/input-group/input-group.props.mjs +2 -0
- package/esm2020/input-group/input-group.type.mjs +71 -0
- package/esm2020/input-group/ngx-formly-zorro-antd-input-group.mjs +5 -0
- package/esm2020/input-group/public_api.mjs +3 -0
- package/esm2020/input-number/input-number.module.mjs +61 -0
- package/esm2020/input-number/input-number.props.mjs +2 -0
- package/esm2020/input-number/input-number.type.mjs +128 -0
- package/esm2020/input-number/ngx-formly-zorro-antd-input-number.mjs +5 -0
- package/esm2020/input-number/public_api.mjs +3 -0
- package/esm2020/lib/ui-ng-zorro-antd.mjs +2 -0
- package/esm2020/lib/ui-ng-zorro-antd.module.mjs +95 -0
- package/esm2020/ngx-formly-zorro-antd.mjs +5 -0
- package/esm2020/radio/ngx-formly-zorro-antd-radio.mjs +5 -0
- package/esm2020/radio/public_api.mjs +3 -0
- package/esm2020/radio/radio.module.mjs +61 -0
- package/esm2020/radio/radio.type.mjs +96 -0
- package/esm2020/rate/ngx-formly-zorro-antd-rate.mjs +5 -0
- package/esm2020/rate/public_api.mjs +3 -0
- package/esm2020/rate/rate.module.mjs +53 -0
- package/esm2020/rate/rate.type.mjs +63 -0
- package/esm2020/select/ngx-formly-zorro-antd-select.mjs +5 -0
- package/esm2020/select/public_api.mjs +3 -0
- package/esm2020/select/select.module.mjs +59 -0
- package/esm2020/select/select.props.mjs +2 -0
- package/esm2020/select/select.type.mjs +163 -0
- package/esm2020/slider/ngx-formly-zorro-antd-slider.mjs +5 -0
- package/esm2020/slider/public_api.mjs +3 -0
- package/esm2020/slider/slider.module.mjs +53 -0
- package/esm2020/slider/slider.type.mjs +67 -0
- package/esm2020/switch/ngx-formly-zorro-antd-switch.mjs +5 -0
- package/esm2020/switch/public_api.mjs +3 -0
- package/esm2020/switch/switch.module.mjs +53 -0
- package/esm2020/switch/switch.type.mjs +53 -0
- package/esm2020/tabs/ngx-formly-zorro-antd-tabs.mjs +5 -0
- package/esm2020/tabs/public_api.mjs +3 -0
- package/esm2020/tabs/tabs.module.mjs +43 -0
- package/esm2020/tabs/tabs.props.mjs +2 -0
- package/esm2020/tabs/tabs.wrapper.mjs +111 -0
- package/esm2020/textarea/ngx-formly-zorro-antd-textarea.mjs +5 -0
- package/esm2020/textarea/public_api.mjs +3 -0
- package/esm2020/textarea/textarea.module.mjs +53 -0
- package/esm2020/textarea/textarea.type.mjs +88 -0
- package/esm2020/timepicker/ngx-formly-zorro-antd-timepicker.mjs +5 -0
- package/esm2020/timepicker/public_api.mjs +3 -0
- package/esm2020/timepicker/timepicker.module.mjs +53 -0
- package/esm2020/timepicker/timepicker.type.mjs +92 -0
- package/esm2020/transfer/ngx-formly-zorro-antd-transfer.mjs +5 -0
- package/esm2020/transfer/public_api.mjs +3 -0
- package/esm2020/transfer/transfer.component.mjs +128 -0
- package/esm2020/transfer/transfer.module.mjs +54 -0
- package/esm2020/transfer/transfer.type.mjs +87 -0
- package/esm2020/tree-select/ngx-formly-zorro-antd-tree-select.mjs +5 -0
- package/esm2020/tree-select/public_api.mjs +3 -0
- package/esm2020/tree-select/tree-select.module.mjs +53 -0
- package/esm2020/tree-select/tree-select.type.mjs +98 -0
- package/esm2020/upload/ngx-formly-zorro-antd-upload.mjs +5 -0
- package/esm2020/upload/public_api.mjs +3 -0
- package/esm2020/upload/upload.component.mjs +174 -0
- package/esm2020/upload/upload.module.mjs +62 -0
- package/esm2020/upload/upload.type.mjs +119 -0
- package/fesm2015/ngx-formly-zorro-antd-autocomplete.mjs +4 -0
- package/fesm2015/ngx-formly-zorro-antd-autocomplete.mjs.map +1 -0
- package/fesm2015/ngx-formly-zorro-antd-button.mjs +135 -0
- package/fesm2015/ngx-formly-zorro-antd-button.mjs.map +1 -0
- package/fesm2015/ngx-formly-zorro-antd-card.mjs +95 -0
- package/fesm2015/ngx-formly-zorro-antd-card.mjs.map +1 -0
- package/fesm2015/ngx-formly-zorro-antd-cascader.mjs +167 -0
- package/fesm2015/ngx-formly-zorro-antd-cascader.mjs.map +1 -0
- package/fesm2015/ngx-formly-zorro-antd-checkbox.mjs +132 -0
- package/fesm2015/ngx-formly-zorro-antd-checkbox.mjs.map +1 -0
- package/fesm2015/ngx-formly-zorro-antd-datepicker.mjs +244 -0
- package/fesm2015/ngx-formly-zorro-antd-datepicker.mjs.map +1 -0
- package/fesm2015/ngx-formly-zorro-antd-form-field.mjs +166 -0
- package/fesm2015/ngx-formly-zorro-antd-form-field.mjs.map +1 -0
- package/fesm2015/ngx-formly-zorro-antd-input-group.mjs +116 -0
- package/fesm2015/ngx-formly-zorro-antd-input-group.mjs.map +1 -0
- package/fesm2015/ngx-formly-zorro-antd-input-number.mjs +191 -0
- package/fesm2015/ngx-formly-zorro-antd-input-number.mjs.map +1 -0
- package/fesm2015/ngx-formly-zorro-antd-input.mjs +352 -0
- package/fesm2015/ngx-formly-zorro-antd-input.mjs.map +1 -0
- package/fesm2015/ngx-formly-zorro-antd-radio.mjs +159 -0
- package/fesm2015/ngx-formly-zorro-antd-radio.mjs.map +1 -0
- package/fesm2015/ngx-formly-zorro-antd-rate.mjs +118 -0
- package/fesm2015/ngx-formly-zorro-antd-rate.mjs.map +1 -0
- package/fesm2015/ngx-formly-zorro-antd-select.mjs +223 -0
- package/fesm2015/ngx-formly-zorro-antd-select.mjs.map +1 -0
- package/fesm2015/ngx-formly-zorro-antd-slider.mjs +122 -0
- package/fesm2015/ngx-formly-zorro-antd-slider.mjs.map +1 -0
- package/fesm2015/ngx-formly-zorro-antd-switch.mjs +108 -0
- package/fesm2015/ngx-formly-zorro-antd-switch.mjs.map +1 -0
- package/fesm2015/ngx-formly-zorro-antd-tabs.mjs +156 -0
- package/fesm2015/ngx-formly-zorro-antd-tabs.mjs.map +1 -0
- package/fesm2015/ngx-formly-zorro-antd-textarea.mjs +143 -0
- package/fesm2015/ngx-formly-zorro-antd-textarea.mjs.map +1 -0
- package/fesm2015/ngx-formly-zorro-antd-timepicker.mjs +147 -0
- package/fesm2015/ngx-formly-zorro-antd-timepicker.mjs.map +1 -0
- package/fesm2015/ngx-formly-zorro-antd-transfer.mjs +264 -0
- package/fesm2015/ngx-formly-zorro-antd-transfer.mjs.map +1 -0
- package/fesm2015/ngx-formly-zorro-antd-tree-select.mjs +153 -0
- package/fesm2015/ngx-formly-zorro-antd-tree-select.mjs.map +1 -0
- package/fesm2015/ngx-formly-zorro-antd-upload.mjs +351 -0
- package/fesm2015/ngx-formly-zorro-antd-upload.mjs.map +1 -0
- package/fesm2015/ngx-formly-zorro-antd.mjs +102 -0
- package/fesm2015/ngx-formly-zorro-antd.mjs.map +1 -0
- package/fesm2020/ngx-formly-zorro-antd-autocomplete.mjs +4 -0
- package/fesm2020/ngx-formly-zorro-antd-autocomplete.mjs.map +1 -0
- package/fesm2020/ngx-formly-zorro-antd-button.mjs +135 -0
- package/fesm2020/ngx-formly-zorro-antd-button.mjs.map +1 -0
- package/fesm2020/ngx-formly-zorro-antd-card.mjs +95 -0
- package/fesm2020/ngx-formly-zorro-antd-card.mjs.map +1 -0
- package/fesm2020/ngx-formly-zorro-antd-cascader.mjs +167 -0
- package/fesm2020/ngx-formly-zorro-antd-cascader.mjs.map +1 -0
- package/fesm2020/ngx-formly-zorro-antd-checkbox.mjs +132 -0
- package/fesm2020/ngx-formly-zorro-antd-checkbox.mjs.map +1 -0
- package/fesm2020/ngx-formly-zorro-antd-datepicker.mjs +244 -0
- package/fesm2020/ngx-formly-zorro-antd-datepicker.mjs.map +1 -0
- package/fesm2020/ngx-formly-zorro-antd-form-field.mjs +166 -0
- package/fesm2020/ngx-formly-zorro-antd-form-field.mjs.map +1 -0
- package/fesm2020/ngx-formly-zorro-antd-input-group.mjs +116 -0
- package/fesm2020/ngx-formly-zorro-antd-input-group.mjs.map +1 -0
- package/fesm2020/ngx-formly-zorro-antd-input-number.mjs +191 -0
- package/fesm2020/ngx-formly-zorro-antd-input-number.mjs.map +1 -0
- package/fesm2020/ngx-formly-zorro-antd-input.mjs +352 -0
- package/fesm2020/ngx-formly-zorro-antd-input.mjs.map +1 -0
- package/fesm2020/ngx-formly-zorro-antd-radio.mjs +159 -0
- package/fesm2020/ngx-formly-zorro-antd-radio.mjs.map +1 -0
- package/fesm2020/ngx-formly-zorro-antd-rate.mjs +118 -0
- package/fesm2020/ngx-formly-zorro-antd-rate.mjs.map +1 -0
- package/fesm2020/ngx-formly-zorro-antd-select.mjs +223 -0
- package/fesm2020/ngx-formly-zorro-antd-select.mjs.map +1 -0
- package/fesm2020/ngx-formly-zorro-antd-slider.mjs +122 -0
- package/fesm2020/ngx-formly-zorro-antd-slider.mjs.map +1 -0
- package/fesm2020/ngx-formly-zorro-antd-switch.mjs +108 -0
- package/fesm2020/ngx-formly-zorro-antd-switch.mjs.map +1 -0
- package/fesm2020/ngx-formly-zorro-antd-tabs.mjs +156 -0
- package/fesm2020/ngx-formly-zorro-antd-tabs.mjs.map +1 -0
- package/fesm2020/ngx-formly-zorro-antd-textarea.mjs +143 -0
- package/fesm2020/ngx-formly-zorro-antd-textarea.mjs.map +1 -0
- package/fesm2020/ngx-formly-zorro-antd-timepicker.mjs +147 -0
- package/fesm2020/ngx-formly-zorro-antd-timepicker.mjs.map +1 -0
- package/fesm2020/ngx-formly-zorro-antd-transfer.mjs +264 -0
- package/fesm2020/ngx-formly-zorro-antd-transfer.mjs.map +1 -0
- package/fesm2020/ngx-formly-zorro-antd-tree-select.mjs +153 -0
- package/fesm2020/ngx-formly-zorro-antd-tree-select.mjs.map +1 -0
- package/fesm2020/ngx-formly-zorro-antd-upload.mjs +350 -0
- package/fesm2020/ngx-formly-zorro-antd-upload.mjs.map +1 -0
- package/fesm2020/ngx-formly-zorro-antd.mjs +102 -0
- package/fesm2020/ngx-formly-zorro-antd.mjs.map +1 -0
- package/form-field/form-field.module.d.ts +11 -0
- package/form-field/form-field.props.d.ts +77 -0
- package/form-field/form-field.wrapper.d.ts +9 -0
- package/form-field/ngx-formly-zorro-antd-form-field.d.ts +5 -0
- package/form-field/package.json +10 -0
- package/form-field/public_api.d.ts +3 -0
- package/index.d.ts +1 -0
- package/input/input.module.d.ts +14 -0
- package/input/input.props.d.ts +66 -0
- package/input/input.type.d.ts +26 -0
- package/input/ngx-formly-zorro-antd-input.d.ts +5 -0
- package/input/package.json +10 -0
- package/input/public_api.d.ts +2 -0
- package/input-group/input-group.module.d.ts +10 -0
- package/input-group/input-group.props.d.ts +56 -0
- package/input-group/input-group.type.d.ts +22 -0
- package/input-group/ngx-formly-zorro-antd-input-group.d.ts +5 -0
- package/input-group/package.json +10 -0
- package/input-group/public_api.d.ts +3 -0
- package/input-number/input-number.module.d.ts +12 -0
- package/input-number/input-number.props.d.ts +78 -0
- package/input-number/input-number.type.d.ts +24 -0
- package/input-number/ngx-formly-zorro-antd-input-number.d.ts +5 -0
- package/input-number/package.json +10 -0
- package/input-number/public_api.d.ts +2 -0
- package/lib/ui-ng-zorro-antd.d.ts +1 -0
- package/lib/ui-ng-zorro-antd.module.d.ts +26 -0
- package/ngx-formly-zorro-antd.d.ts +5 -0
- package/package.json +204 -0
- package/radio/ngx-formly-zorro-antd-radio.d.ts +5 -0
- package/radio/package.json +10 -0
- package/radio/public_api.d.ts +2 -0
- package/radio/radio.module.d.ts +14 -0
- package/radio/radio.type.d.ts +38 -0
- package/rate/ngx-formly-zorro-antd-rate.d.ts +5 -0
- package/rate/package.json +10 -0
- package/rate/public_api.d.ts +2 -0
- package/rate/rate.module.d.ts +12 -0
- package/rate/rate.type.d.ts +57 -0
- package/select/ngx-formly-zorro-antd-select.d.ts +5 -0
- package/select/package.json +10 -0
- package/select/public_api.d.ts +2 -0
- package/select/select.module.d.ts +13 -0
- package/select/select.props.d.ts +162 -0
- package/select/select.type.d.ts +35 -0
- package/slider/ngx-formly-zorro-antd-slider.d.ts +5 -0
- package/slider/package.json +10 -0
- package/slider/public_api.d.ts +2 -0
- package/slider/slider.module.d.ts +12 -0
- package/slider/slider.type.d.ts +76 -0
- package/switch/ngx-formly-zorro-antd-switch.d.ts +5 -0
- package/switch/package.json +10 -0
- package/switch/public_api.d.ts +2 -0
- package/switch/switch.module.d.ts +12 -0
- package/switch/switch.type.d.ts +44 -0
- package/tabs/ngx-formly-zorro-antd-tabs.d.ts +5 -0
- package/tabs/package.json +10 -0
- package/tabs/public_api.d.ts +2 -0
- package/tabs/tabs.module.d.ts +10 -0
- package/tabs/tabs.props.d.ts +127 -0
- package/tabs/tabs.wrapper.d.ts +28 -0
- package/textarea/ngx-formly-zorro-antd-textarea.d.ts +5 -0
- package/textarea/package.json +10 -0
- package/textarea/public_api.d.ts +2 -0
- package/textarea/textarea.module.d.ts +12 -0
- package/textarea/textarea.type.d.ts +38 -0
- package/timepicker/ngx-formly-zorro-antd-timepicker.d.ts +5 -0
- package/timepicker/package.json +10 -0
- package/timepicker/public_api.d.ts +2 -0
- package/timepicker/timepicker.module.d.ts +12 -0
- package/timepicker/timepicker.type.d.ts +131 -0
- package/transfer/ngx-formly-zorro-antd-transfer.d.ts +5 -0
- package/transfer/package.json +10 -0
- package/transfer/public_api.d.ts +2 -0
- package/transfer/transfer.component.d.ts +26 -0
- package/transfer/transfer.module.d.ts +13 -0
- package/transfer/transfer.type.d.ts +118 -0
- package/tree-select/ngx-formly-zorro-antd-tree-select.d.ts +5 -0
- package/tree-select/package.json +10 -0
- package/tree-select/public_api.d.ts +2 -0
- package/tree-select/tree-select.module.d.ts +12 -0
- package/tree-select/tree-select.type.d.ts +158 -0
- package/upload/ngx-formly-zorro-antd-upload.d.ts +5 -0
- package/upload/package.json +10 -0
- package/upload/public_api.d.ts +2 -0
- package/upload/upload.component.d.ts +27 -0
- package/upload/upload.module.d.ts +15 -0
- package/upload/upload.type.d.ts +173 -0
@@ -0,0 +1,135 @@
|
|
1
|
+
import * as i0 from '@angular/core';
|
2
|
+
import { Component, ChangeDetectionStrategy, NgModule } from '@angular/core';
|
3
|
+
import * as i5 from '@angular/common';
|
4
|
+
import { CommonModule } from '@angular/common';
|
5
|
+
import * as i4 from '@ngx-formly/core';
|
6
|
+
import { FieldType, FormlyModule } from '@ngx-formly/core';
|
7
|
+
import * as i1 from 'ng-zorro-antd/button';
|
8
|
+
import { NzButtonModule } from 'ng-zorro-antd/button';
|
9
|
+
import * as i2 from 'ng-zorro-antd/core/wave';
|
10
|
+
import * as i3 from 'ng-zorro-antd/core/transition-patch';
|
11
|
+
import * as i6 from 'ng-zorro-antd/icon';
|
12
|
+
import { NzIconModule } from 'ng-zorro-antd/icon';
|
13
|
+
|
14
|
+
class FormlyFieldButton extends FieldType {
|
15
|
+
constructor() {
|
16
|
+
super(...arguments);
|
17
|
+
this.defaultOptions = {
|
18
|
+
props: {
|
19
|
+
ghost: false,
|
20
|
+
loading: false,
|
21
|
+
block: false,
|
22
|
+
size: 'default',
|
23
|
+
danger: false
|
24
|
+
}
|
25
|
+
};
|
26
|
+
}
|
27
|
+
}
|
28
|
+
FormlyFieldButton.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: FormlyFieldButton, deps: null, target: i0.ɵɵFactoryTarget.Component });
|
29
|
+
FormlyFieldButton.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.11", type: FormlyFieldButton, selector: "formly-field-button", usesInheritance: true, ngImport: i0, template: `
|
30
|
+
<button
|
31
|
+
nz-button
|
32
|
+
[attr.type]="field.type"
|
33
|
+
[formlyAttributes]="field"
|
34
|
+
[nzGhost]="props['ghost']!!"
|
35
|
+
[nzLoading]="props['loading']!!"
|
36
|
+
[nzShape]="props['shape'] ?? null"
|
37
|
+
[nzSize]="props['size']!"
|
38
|
+
[nzBlock]="props['block']!!"
|
39
|
+
[nzDanger]="props['danger']!!"
|
40
|
+
[nzType]="props['buttonType'] ?? null"
|
41
|
+
[ngClass]="props['className']!"
|
42
|
+
>
|
43
|
+
<span *ngIf="props['iconOnBefore']" nz-icon [nzType]="props['iconOnBefore']"></span>
|
44
|
+
{{ props.label }}
|
45
|
+
<span *ngIf="props['iconOnAfter']" nz-icon [nzType]="props['iconOnAfter']"></span>
|
46
|
+
</button>
|
47
|
+
`, isInline: true, components: [{ type: i1.NzButtonComponent, selector: "button[nz-button], a[nz-button]", inputs: ["nzBlock", "nzGhost", "nzSearch", "nzLoading", "nzDanger", "disabled", "tabIndex", "nzType", "nzShape", "nzSize"], exportAs: ["nzButton"] }], directives: [{ type: i2.NzWaveDirective, selector: "[nz-wave],button[nz-button]:not([nzType=\"link\"]):not([nzType=\"text\"])", inputs: ["nzWaveExtraNode"], exportAs: ["nzWave"] }, { type: i3.ɵNzTransitionPatchDirective, selector: "[nz-button], nz-button-group, [nz-icon], [nz-menu-item], [nz-submenu], nz-select-top-control, nz-select-placeholder, nz-input-group", inputs: ["hidden"] }, { type: i4.ɵFormlyAttributes, selector: "[formlyAttributes]", inputs: ["formlyAttributes", "id"] }, { type: i5.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { type: i5.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i6.NzIconDirective, selector: "[nz-icon]", inputs: ["nzSpin", "nzRotate", "nzType", "nzTheme", "nzTwotoneColor", "nzIconfont"], exportAs: ["nzIcon"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
48
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: FormlyFieldButton, decorators: [{
|
49
|
+
type: Component,
|
50
|
+
args: [{
|
51
|
+
selector: 'formly-field-button',
|
52
|
+
template: `
|
53
|
+
<button
|
54
|
+
nz-button
|
55
|
+
[attr.type]="field.type"
|
56
|
+
[formlyAttributes]="field"
|
57
|
+
[nzGhost]="props['ghost']!!"
|
58
|
+
[nzLoading]="props['loading']!!"
|
59
|
+
[nzShape]="props['shape'] ?? null"
|
60
|
+
[nzSize]="props['size']!"
|
61
|
+
[nzBlock]="props['block']!!"
|
62
|
+
[nzDanger]="props['danger']!!"
|
63
|
+
[nzType]="props['buttonType'] ?? null"
|
64
|
+
[ngClass]="props['className']!"
|
65
|
+
>
|
66
|
+
<span *ngIf="props['iconOnBefore']" nz-icon [nzType]="props['iconOnBefore']"></span>
|
67
|
+
{{ props.label }}
|
68
|
+
<span *ngIf="props['iconOnAfter']" nz-icon [nzType]="props['iconOnAfter']"></span>
|
69
|
+
</button>
|
70
|
+
`,
|
71
|
+
changeDetection: ChangeDetectionStrategy.OnPush
|
72
|
+
}]
|
73
|
+
}] });
|
74
|
+
|
75
|
+
class FormlyNzButtonModule {
|
76
|
+
}
|
77
|
+
FormlyNzButtonModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: FormlyNzButtonModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
78
|
+
FormlyNzButtonModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: FormlyNzButtonModule, declarations: [FormlyFieldButton], imports: [CommonModule,
|
79
|
+
NzButtonModule,
|
80
|
+
NzIconModule, i4.FormlyModule] });
|
81
|
+
FormlyNzButtonModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: FormlyNzButtonModule, imports: [[
|
82
|
+
CommonModule,
|
83
|
+
NzButtonModule,
|
84
|
+
NzIconModule,
|
85
|
+
FormlyModule.forChild({
|
86
|
+
types: [
|
87
|
+
{
|
88
|
+
name: 'button',
|
89
|
+
component: FormlyFieldButton
|
90
|
+
},
|
91
|
+
{
|
92
|
+
name: 'submit',
|
93
|
+
extends: 'button'
|
94
|
+
},
|
95
|
+
{
|
96
|
+
name: 'reset',
|
97
|
+
extends: 'button'
|
98
|
+
}
|
99
|
+
]
|
100
|
+
})
|
101
|
+
]] });
|
102
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: FormlyNzButtonModule, decorators: [{
|
103
|
+
type: NgModule,
|
104
|
+
args: [{
|
105
|
+
declarations: [FormlyFieldButton],
|
106
|
+
imports: [
|
107
|
+
CommonModule,
|
108
|
+
NzButtonModule,
|
109
|
+
NzIconModule,
|
110
|
+
FormlyModule.forChild({
|
111
|
+
types: [
|
112
|
+
{
|
113
|
+
name: 'button',
|
114
|
+
component: FormlyFieldButton
|
115
|
+
},
|
116
|
+
{
|
117
|
+
name: 'submit',
|
118
|
+
extends: 'button'
|
119
|
+
},
|
120
|
+
{
|
121
|
+
name: 'reset',
|
122
|
+
extends: 'button'
|
123
|
+
}
|
124
|
+
]
|
125
|
+
})
|
126
|
+
]
|
127
|
+
}]
|
128
|
+
}] });
|
129
|
+
|
130
|
+
/**
|
131
|
+
* Generated bundle index. Do not edit.
|
132
|
+
*/
|
133
|
+
|
134
|
+
export { FormlyFieldButton, FormlyNzButtonModule };
|
135
|
+
//# sourceMappingURL=ngx-formly-zorro-antd-button.mjs.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"ngx-formly-zorro-antd-button.mjs","sources":["../../../../packages/formlyantd/button/src/button.type.ts","../../../../packages/formlyantd/button/src/button.module.ts","../../../../packages/formlyantd/button/src/ngx-formly-zorro-antd-button.ts"],"sourcesContent":["import { Component, Type, ChangeDetectionStrategy } from '@angular/core';\r\nimport { FieldType, FieldTypeConfig, FormlyFieldConfig } from '@ngx-formly/core';\r\nimport type { FormlyFieldProps } from 'ngx-formly-zorro-antd/form-field';\r\n\r\nimport type { NzButtonShape, NzButtonSize, NzButtonType } from 'ng-zorro-antd/button';\r\n\r\ninterface ButtonProps extends FormlyFieldProps {\r\n /**\r\n * 幽灵属性,使按钮背景透明\r\n * @default false\r\n */\r\n ghost?: boolean;\r\n\r\n /**\r\n * 设置按钮载入状态\r\n * @default false\r\n */\r\n loading?: boolean;\r\n\r\n /**\r\n * 设置按钮形状\r\n */\r\n shape?: NzButtonShape;\r\n\r\n /**\r\n * 设置按钮大小\r\n * @default default\r\n */\r\n size?: NzButtonSize;\r\n\r\n /**\r\n * 设置按钮类型\r\n */\r\n buttonType?: NzButtonType;\r\n\r\n /**\r\n * 将按钮宽度调整为其父宽度的选项\r\n * @default false\r\n */\r\n block?: boolean;\r\n\r\n /**\r\n * 设置危险按钮\r\n * @default false\r\n */\r\n danger?: boolean;\r\n\r\n /**\r\n * 图标在前面\r\n */\r\n iconOnBefore?: string;\r\n\r\n /**\r\n * 图标在后面\r\n */\r\n iconOnAfter?: string;\r\n}\r\n\r\nexport interface FormlyButtonFieldConfig extends FormlyFieldConfig<ButtonProps> {\r\n type: 'button' | 'submit' | 'reset' | Type<FormlyFieldButton>;\r\n}\r\n\r\n@Component({\r\n selector: 'formly-field-button',\r\n template: `\r\n <button\r\n nz-button\r\n [attr.type]=\"field.type\"\r\n [formlyAttributes]=\"field\"\r\n [nzGhost]=\"props['ghost']!!\"\r\n [nzLoading]=\"props['loading']!!\"\r\n [nzShape]=\"props['shape'] ?? null\"\r\n [nzSize]=\"props['size']!\"\r\n [nzBlock]=\"props['block']!!\"\r\n [nzDanger]=\"props['danger']!!\"\r\n [nzType]=\"props['buttonType'] ?? null\"\r\n [ngClass]=\"props['className']!\"\r\n >\r\n <span *ngIf=\"props['iconOnBefore']\" nz-icon [nzType]=\"props['iconOnBefore']\"></span>\r\n {{ props.label }}\r\n <span *ngIf=\"props['iconOnAfter']\" nz-icon [nzType]=\"props['iconOnAfter']\"></span>\r\n </button>\r\n `,\r\n changeDetection: ChangeDetectionStrategy.OnPush\r\n})\r\nexport class FormlyFieldButton extends FieldType<FieldTypeConfig<ButtonProps>> {\r\n override defaultOptions = {\r\n props: {\r\n ghost: false,\r\n loading: false,\r\n block: false,\r\n size: 'default' as const,\r\n danger: false\r\n }\r\n };\r\n}\r\n","import { NgModule } from '@angular/core';\r\nimport { CommonModule } from '@angular/common';\r\nimport { FormlyModule } from '@ngx-formly/core';\r\n\r\nimport { FormlyFieldButton } from './button.type';\r\nimport { NzButtonModule } from 'ng-zorro-antd/button';\r\nimport { NzIconModule } from 'ng-zorro-antd/icon';\r\n\r\n@NgModule({\r\n declarations: [FormlyFieldButton],\r\n imports: [\r\n CommonModule,\r\n NzButtonModule,\r\n NzIconModule,\r\n\r\n FormlyModule.forChild({\r\n types: [\r\n {\r\n name: 'button',\r\n component: FormlyFieldButton\r\n },\r\n {\r\n name: 'submit',\r\n extends: 'button'\r\n },\r\n {\r\n name: 'reset',\r\n extends: 'button'\r\n }\r\n ]\r\n })\r\n ]\r\n})\r\nexport class FormlyNzButtonModule {}\r\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public_api';\n"],"names":["i1"],"mappings":";;;;;;;;;;;;;A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ionStrategy, NgModule } from '@angular/core';
|
3
|
+
import { CommonModule } from '@angular/common';
|
4
|
+
import * as i1$1 from '@ngx-formly/core';
|
5
|
+
import { FieldWrapper, FormlyModule } from '@ngx-formly/core';
|
6
|
+
import * as i1 from 'ng-zorro-antd/card';
|
7
|
+
import { NzCardModule } from 'ng-zorro-antd/card';
|
8
|
+
|
9
|
+
class FormlyWrapperCard extends FieldWrapper {
|
10
|
+
}
|
11
|
+
FormlyWrapperCard.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: FormlyWrapperCard, deps: null, target: i0.ɵɵFactoryTarget.Component });
|
12
|
+
FormlyWrapperCard.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.11", type: FormlyWrapperCard, selector: "formly-wrapper-card", usesInheritance: true, ngImport: i0, template: `
|
13
|
+
<nz-card
|
14
|
+
[nzActions]="props['actions'] || []"
|
15
|
+
[nzBodyStyle]="props['bodyStyle'] ?? null"
|
16
|
+
[nzSize]="props['size']!"
|
17
|
+
[nzBorderless]="props['borderless']!!"
|
18
|
+
[nzCover]="props['cover']"
|
19
|
+
[nzExtra]="props['extra']"
|
20
|
+
[nzHoverable]="props['hoverable']!!"
|
21
|
+
[nzLoading]="props['loading']!!"
|
22
|
+
[nzTitle]="props['title']"
|
23
|
+
[nzType]="props['type'] ?? null"
|
24
|
+
>
|
25
|
+
<ng-container #fieldComponent></ng-container>
|
26
|
+
</nz-card>
|
27
|
+
`, isInline: true, components: [{ type: i1.NzCardComponent, selector: "nz-card", inputs: ["nzBordered", "nzBorderless", "nzLoading", "nzHoverable", "nzBodyStyle", "nzCover", "nzActions", "nzType", "nzSize", "nzTitle", "nzExtra"], exportAs: ["nzCard"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
28
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: FormlyWrapperCard, decorators: [{
|
29
|
+
type: Component,
|
30
|
+
args: [{
|
31
|
+
selector: 'formly-wrapper-card',
|
32
|
+
template: `
|
33
|
+
<nz-card
|
34
|
+
[nzActions]="props['actions'] || []"
|
35
|
+
[nzBodyStyle]="props['bodyStyle'] ?? null"
|
36
|
+
[nzSize]="props['size']!"
|
37
|
+
[nzBorderless]="props['borderless']!!"
|
38
|
+
[nzCover]="props['cover']"
|
39
|
+
[nzExtra]="props['extra']"
|
40
|
+
[nzHoverable]="props['hoverable']!!"
|
41
|
+
[nzLoading]="props['loading']!!"
|
42
|
+
[nzTitle]="props['title']"
|
43
|
+
[nzType]="props['type'] ?? null"
|
44
|
+
>
|
45
|
+
<ng-container #fieldComponent></ng-container>
|
46
|
+
</nz-card>
|
47
|
+
`,
|
48
|
+
changeDetection: ChangeDetectionStrategy.OnPush
|
49
|
+
}]
|
50
|
+
}] });
|
51
|
+
|
52
|
+
class FormlyNzCardModule {
|
53
|
+
}
|
54
|
+
FormlyNzCardModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: FormlyNzCardModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
55
|
+
FormlyNzCardModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: FormlyNzCardModule, declarations: [FormlyWrapperCard], imports: [CommonModule,
|
56
|
+
NzCardModule, i1$1.FormlyModule] });
|
57
|
+
FormlyNzCardModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: FormlyNzCardModule, imports: [[
|
58
|
+
CommonModule,
|
59
|
+
NzCardModule,
|
60
|
+
FormlyModule.forChild({
|
61
|
+
wrappers: [
|
62
|
+
{
|
63
|
+
name: 'card',
|
64
|
+
component: FormlyWrapperCard,
|
65
|
+
types: ['card']
|
66
|
+
}
|
67
|
+
]
|
68
|
+
})
|
69
|
+
]] });
|
70
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: FormlyNzCardModule, decorators: [{
|
71
|
+
type: NgModule,
|
72
|
+
args: [{
|
73
|
+
declarations: [FormlyWrapperCard],
|
74
|
+
imports: [
|
75
|
+
CommonModule,
|
76
|
+
NzCardModule,
|
77
|
+
FormlyModule.forChild({
|
78
|
+
wrappers: [
|
79
|
+
{
|
80
|
+
name: 'card',
|
81
|
+
component: FormlyWrapperCard,
|
82
|
+
types: ['card']
|
83
|
+
}
|
84
|
+
]
|
85
|
+
})
|
86
|
+
]
|
87
|
+
}]
|
88
|
+
}] });
|
89
|
+
|
90
|
+
/**
|
91
|
+
* Generated bundle index. Do not edit.
|
92
|
+
*/
|
93
|
+
|
94
|
+
export { FormlyNzCardModule, FormlyWrapperCard };
|
95
|
+
//# sourceMappingURL=ngx-formly-zorro-antd-card.mjs.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"ngx-formly-zorro-antd-card.mjs","sources":["../../../../packages/formlyantd/card/src/card.wrapper.ts","../../../../packages/formlyantd/card/src/card.module.ts","../../../../packages/formlyantd/card/src/ngx-formly-zorro-antd-card.ts"],"sourcesContent":["import { Component, TemplateRef, Type, ChangeDetectionStrategy } from '@angular/core';\r\nimport { FieldWrapper, FormlyFieldConfig } from '@ngx-formly/core';\r\n\r\nimport type { NzSizeDSType, NgStyleInterface } from 'ng-zorro-antd/core/types';\r\n\r\ninterface CardProps {\r\n /**\r\n * 卡片操作组,位置在卡片底部\r\n */\r\n actions?: Array<TemplateRef<void>>;\r\n\r\n /**\r\n * 内容区域自定义样式\r\n */\r\n bodyStyle?: NgStyleInterface | null;\r\n\r\n /**\r\n * \t是否移除边框\r\n * @default false\r\n */\r\n borderless?: boolean;\r\n\r\n /**\r\n * 卡片封面\r\n */\r\n cover?: TemplateRef<void>;\r\n\r\n /**\r\n * 卡片右上角的操作区域\r\n */\r\n extra?: string | TemplateRef<void>;\r\n\r\n /**\r\n * 鼠标移过时可浮起\r\n * @default false\r\n */\r\n hoverable?: boolean;\r\n\r\n /**\r\n * 当卡片内容还在加载中时,可以用 loading 展示一个占位\r\n * @default false\r\n */\r\n loading?: boolean;\r\n\r\n /**\r\n * 卡片的尺寸\r\n * @default default\r\n */\r\n size?: NzSizeDSType;\r\n\r\n /**\r\n * \t卡片标题\r\n */\r\n title?: string | TemplateRef<void>;\r\n\r\n /**\r\n * 卡片类型,可设置为 inner 或 不设置\r\n */\r\n type?: string | 'inner';\r\n}\r\n\r\nexport interface FormlyCardWrapperConfig extends FormlyFieldConfig<CardProps> {\r\n wrappers: ('card' | Type<FormlyWrapperCard>)[];\r\n}\r\n\r\n@Component({\r\n selector: 'formly-wrapper-card',\r\n template: `\r\n <nz-card\r\n [nzActions]=\"props['actions'] || []\"\r\n [nzBodyStyle]=\"props['bodyStyle'] ?? null\"\r\n [nzSize]=\"props['size']!\"\r\n [nzBorderless]=\"props['borderless']!!\"\r\n [nzCover]=\"props['cover']\"\r\n [nzExtra]=\"props['extra']\"\r\n [nzHoverable]=\"props['hoverable']!!\"\r\n [nzLoading]=\"props['loading']!!\"\r\n [nzTitle]=\"props['title']\"\r\n [nzType]=\"props['type'] ?? null\"\r\n >\r\n <ng-container #fieldComponent></ng-container>\r\n </nz-card>\r\n `,\r\n changeDetection: ChangeDetectionStrategy.OnPush\r\n})\r\nexport class FormlyWrapperCard extends FieldWrapper<FormlyFieldConfig<CardProps>> {}\r\n","import { NgModule } from '@angular/core';\r\nimport { CommonModule } from '@angular/common';\r\nimport { FormlyModule } from '@ngx-formly/core';\r\n\r\nimport { FormlyWrapperCard } from './card.wrapper';\r\nimport { NzCardModule } from 'ng-zorro-antd/card';\r\n\r\n@NgModule({\r\n declarations: [FormlyWrapperCard],\r\n imports: [\r\n CommonModule,\r\n NzCardModule,\r\n\r\n FormlyModule.forChild({\r\n wrappers: [\r\n {\r\n name: 'card',\r\n component: FormlyWrapperCard,\r\n types: ['card']\r\n }\r\n ]\r\n })\r\n ]\r\n})\r\nexport class Form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,QAAA,EAAA,CAAA,CAAA;iHAAlB,kBAAkB,EAAA,YAAA,EAAA,CAhBd,iBAAiB,CAAA,EAAA,OAAA,EAAA,CAE9B,YAAY;AACZ,QAAA,YAAY,EAAAA,IAAA,CAAA,YAAA,CAAA,EAAA,CAAA,CAAA;AAaH,kBAAA,CAAA,IAAA,GAAA,EAAA,CAAA,mBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,SAAA,EAAA,QAAA,EAAA,EAAA,EAAA,IAAA,EAAA,kBAAkB,EAfpB,OAAA,EAAA,CAAA;YACP,YAAY;YACZ,YAAY;YAEZ,YAAY,CAAC,QAAQ,CAAC;AACpB,gBAAA,QAAQ,EAAE;AACR,oBAAA;AACE,wBAAA,IAAI,EAAE,MAAM;AACZ,wBAAA,SAAS,EAAE,iBAAiB;wBAC5B,KAAK,EAAE,CAAC,MAAM,CAAC;AAChB,qBAAA;AACF,iBAAA;aACF,CAAC;SACH,CAAA,EAAA,CAAA,CAAA;4FAEU,kBAAkB,EAAA,UAAA,EAAA,CAAA;kBAjB9B,QAAQ;AAAC,YAAA,IAAA,EAAA,CAAA;oBACR,YAAY,EAAE,CAAC,iBAAiB,CAAC;AACjC,oBAAA,OAAO,EAAE;wBACP,YAAY;wBACZ,YAAY;wBAEZ,YAAY,CAAC,QAAQ,CAAC;AACpB,4BAAA,QAAQ,EAAE;AACR,gCAAA;AACE,oCAAA,IAAI,EAAE,MAAM;AACZ,oCAAA,SAAS,EAAE,iBAAiB;oCAC5B,KAAK,EAAE,CAAC,MAAM,CAAC;AAChB,iCAAA;AACF,6BAAA;yBACF,CAAC;AACH,qBAAA;iBACF,CAAA;;;ACvBD;;AAEG;;;;"}
|
@@ -0,0 +1,167 @@
|
|
1
|
+
import * as i0 from '@angular/core';
|
2
|
+
import { Component, ChangeDetectionStrategy, NgModule } from '@angular/core';
|
3
|
+
import * as i4 from '@angular/common';
|
4
|
+
import { CommonModule } from '@angular/common';
|
5
|
+
import * as i3 from '@ngx-formly/core';
|
6
|
+
import { FieldType, FormlyModule } from '@ngx-formly/core';
|
7
|
+
import * as i2 from '@angular/forms';
|
8
|
+
import { ReactiveFormsModule } from '@angular/forms';
|
9
|
+
import { FormlyNzFormFieldModule } from 'ngx-formly-zorro-antd/form-field';
|
10
|
+
import * as i1 from 'ng-zorro-antd/cascader';
|
11
|
+
import { NzCascaderModule } from 'ng-zorro-antd/cascader';
|
12
|
+
|
13
|
+
class FormlyFieldCascader extends FieldType {
|
14
|
+
constructor() {
|
15
|
+
super(...arguments);
|
16
|
+
this.defaultOptions = {
|
17
|
+
props: {
|
18
|
+
placeholder: '请选择',
|
19
|
+
allowClear: true,
|
20
|
+
backdrop: false,
|
21
|
+
changeOnSelect: false,
|
22
|
+
expandTrigger: 'click',
|
23
|
+
labelProperty: 'label',
|
24
|
+
showArrow: true,
|
25
|
+
showInput: true,
|
26
|
+
showSearch: false,
|
27
|
+
size: 'default',
|
28
|
+
status: '',
|
29
|
+
valueProperty: 'value',
|
30
|
+
cascaderOptions: []
|
31
|
+
}
|
32
|
+
};
|
33
|
+
}
|
34
|
+
ngOnInit() {
|
35
|
+
const options = this.props['cascaderOptions'];
|
36
|
+
if (!options || options.length === 0) {
|
37
|
+
this.props['cascaderOptions'] = this.props.options;
|
38
|
+
}
|
39
|
+
}
|
40
|
+
}
|
41
|
+
FormlyFieldCascader.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: FormlyFieldCascader, deps: null, target: i0.ɵɵFactoryTarget.Component });
|
42
|
+
FormlyFieldCascader.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.11", type: FormlyFieldCascader, selector: "formly-field-cascader", usesInheritance: true, ngImport: i0, template: `<nz-cascader
|
43
|
+
#cascader
|
44
|
+
[nzPlaceHolder]="props.placeholder ?? ''"
|
45
|
+
[formControl]="formControl"
|
46
|
+
[formlyAttributes]="field"
|
47
|
+
[ngClass]="props['className']!"
|
48
|
+
[nzAllowClear]="props['allowClear']!!"
|
49
|
+
[nzAutoFocus]="props['autoFocus']!!"
|
50
|
+
[nzBackdrop]="props['backdrop']!!"
|
51
|
+
[nzChangeOn]="props['changeOn']"
|
52
|
+
[nzChangeOnSelect]="props['changeOnSelect']!!"
|
53
|
+
[nzColumnClassName]="props['columnClassName']"
|
54
|
+
[nzExpandIcon]="props['expandIcon']!"
|
55
|
+
[nzExpandTrigger]="props['expandTrigger']!"
|
56
|
+
[nzLabelProperty]="props['labelProperty']"
|
57
|
+
[nzLabelRender]="props['labelRender'] ?? null"
|
58
|
+
[nzLoadData]="props['loadData']"
|
59
|
+
[nzMenuClassName]="props['menuClassName']"
|
60
|
+
[nzMenuStyle]="props['menuStyle'] ?? null"
|
61
|
+
[nzNotFoundContent]="props['notFoundContent']"
|
62
|
+
[nzOptionRender]="props['optionRender'] ?? null"
|
63
|
+
[nzOptions]="props['cascaderOptions'] ?? null"
|
64
|
+
[nzShowArrow]="props['showArrow']!!"
|
65
|
+
[nzShowInput]="props['showInput']!!"
|
66
|
+
[nzShowSearch]="props['showSearch']!!"
|
67
|
+
[nzSize]="props['size']!"
|
68
|
+
[nzStatus]="props['status'] ?? ''"
|
69
|
+
[nzSuffixIcon]="props['suffixIcon']!"
|
70
|
+
[nzValueProperty]="props['valueProperty']!"
|
71
|
+
(nzClear)="props['onClear'] && props['onClear'](field)"
|
72
|
+
(nzVisibleChange)="props['visibleChange'] && props['visibleChange'](field, $event)"
|
73
|
+
(nzSelectionChange)="props['selectionChange'] && props['selectionChange'](field, $event)"
|
74
|
+
(ngModelChange)="props.change && props.change(field, $event)"
|
75
|
+
></nz-cascader>`, isInline: true, components: [{ type: i1.NzCascaderComponent, selector: "nz-cascader, [nz-cascader]", inputs: ["nzOptionRender", "nzShowInput", "nzShowArrow", "nzAllowClear", "nzAutoFocus", "nzChangeOnSelect", "nzDisabled", "nzColumnClassName", "nzExpandTrigger", "nzValueProperty", "nzLabelRender", "nzLabelProperty", "nzNotFoundContent", "nzSize", "nzBackdrop", "nzShowSearch", "nzPlaceHolder", "nzMenuClassName", "nzMenuStyle", "nzMouseEnterDelay", "nzMouseLeaveDelay", "nzStatus", "nzTriggerAction", "nzChangeOn", "nzLoadData", "nzSuffixIcon", "nzExpandIcon", "nzOptions"], outputs: ["nzVisibleChange", "nzSelectionChange", "nzSelect", "nzClear"], exportAs: ["nzCascader"] }], directives: [{ type: i2.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { type: i2.FormControlDirective, selector: "[formControl]", inputs: ["formControl", "disabled", "ngModel"], outputs: ["ngModelChange"], exportAs: ["ngForm"] }, { type: i3.ɵFormlyAttributes, selector: "[formlyAttributes]", inputs: ["formlyAttributes", "id"] }, { type: i4.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
76
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: FormlyFieldCascader, decorators: [{
|
77
|
+
type: Component,
|
78
|
+
args: [{
|
79
|
+
selector: 'formly-field-cascader',
|
80
|
+
template: `<nz-cascader
|
81
|
+
#cascader
|
82
|
+
[nzPlaceHolder]="props.placeholder ?? ''"
|
83
|
+
[formControl]="formControl"
|
84
|
+
[formlyAttributes]="field"
|
85
|
+
[ngClass]="props['className']!"
|
86
|
+
[nzAllowClear]="props['allowClear']!!"
|
87
|
+
[nzAutoFocus]="props['autoFocus']!!"
|
88
|
+
[nzBackdrop]="props['backdrop']!!"
|
89
|
+
[nzChangeOn]="props['changeOn']"
|
90
|
+
[nzChangeOnSelect]="props['changeOnSelect']!!"
|
91
|
+
[nzColumnClassName]="props['columnClassName']"
|
92
|
+
[nzExpandIcon]="props['expandIcon']!"
|
93
|
+
[nzExpandTrigger]="props['expandTrigger']!"
|
94
|
+
[nzLabelProperty]="props['labelProperty']"
|
95
|
+
[nzLabelRender]="props['labelRender'] ?? null"
|
96
|
+
[nzLoadData]="props['loadData']"
|
97
|
+
[nzMenuClassName]="props['menuClassName']"
|
98
|
+
[nzMenuStyle]="props['menuStyle'] ?? null"
|
99
|
+
[nzNotFoundContent]="props['notFoundContent']"
|
100
|
+
[nzOptionRender]="props['optionRender'] ?? null"
|
101
|
+
[nzOptions]="props['cascaderOptions'] ?? null"
|
102
|
+
[nzShowArrow]="props['showArrow']!!"
|
103
|
+
[nzShowInput]="props['showInput']!!"
|
104
|
+
[nzShowSearch]="props['showSearch']!!"
|
105
|
+
[nzSize]="props['size']!"
|
106
|
+
[nzStatus]="props['status'] ?? ''"
|
107
|
+
[nzSuffixIcon]="props['suffixIcon']!"
|
108
|
+
[nzValueProperty]="props['valueProperty']!"
|
109
|
+
(nzClear)="props['onClear'] && props['onClear'](field)"
|
110
|
+
(nzVisibleChange)="props['visibleChange'] && props['visibleChange'](field, $event)"
|
111
|
+
(nzSelectionChange)="props['selectionChange'] && props['selectionChange'](field, $event)"
|
112
|
+
(ngModelChange)="props.change && props.change(field, $event)"
|
113
|
+
></nz-cascader>`,
|
114
|
+
changeDetection: ChangeDetectionStrategy.OnPush
|
115
|
+
}]
|
116
|
+
}] });
|
117
|
+
|
118
|
+
class FormlyNzCascaderModule {
|
119
|
+
}
|
120
|
+
FormlyNzCascaderModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: FormlyNzCascaderModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
121
|
+
FormlyNzCascaderModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: FormlyNzCascaderModule, declarations: [FormlyFieldCascader], imports: [CommonModule,
|
122
|
+
ReactiveFormsModule,
|
123
|
+
FormlyNzFormFieldModule,
|
124
|
+
NzCascaderModule, i3.FormlyModule] });
|
125
|
+
FormlyNzCascaderModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: FormlyNzCascaderModule, imports: [[
|
126
|
+
CommonModule,
|
127
|
+
ReactiveFormsModule,
|
128
|
+
FormlyNzFormFieldModule,
|
129
|
+
NzCascaderModule,
|
130
|
+
FormlyModule.forChild({
|
131
|
+
types: [
|
132
|
+
{
|
133
|
+
name: 'cascader',
|
134
|
+
component: FormlyFieldCascader,
|
135
|
+
wrappers: ['form-field']
|
136
|
+
}
|
137
|
+
]
|
138
|
+
})
|
139
|
+
]] });
|
140
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: FormlyNzCascaderModule, decorators: [{
|
141
|
+
type: NgModule,
|
142
|
+
args: [{
|
143
|
+
declarations: [FormlyFieldCascader],
|
144
|
+
imports: [
|
145
|
+
CommonModule,
|
146
|
+
ReactiveFormsModule,
|
147
|
+
FormlyNzFormFieldModule,
|
148
|
+
NzCascaderModule,
|
149
|
+
FormlyModule.forChild({
|
150
|
+
types: [
|
151
|
+
{
|
152
|
+
name: 'cascader',
|
153
|
+
component: FormlyFieldCascader,
|
154
|
+
wrappers: ['form-field']
|
155
|
+
}
|
156
|
+
]
|
157
|
+
})
|
158
|
+
]
|
159
|
+
}]
|
160
|
+
}] });
|
161
|
+
|
162
|
+
/**
|
163
|
+
* Generated bundle index. Do not edit.
|
164
|
+
*/
|
165
|
+
|
166
|
+
export { FormlyFieldCascader, FormlyNzCascaderModule };
|
167
|
+
//# sourceMappingURL=ngx-formly-zorro-antd-cascader.mjs.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"ngx-formly-zorro-antd-cascader.mjs","sources":["../../../../packages/formlyantd/cascader/src/cascader.type.ts","../../../../packages/formlyantd/cascader/src/cascader.module.ts","../../../../packages/formlyantd/cascader/src/ngx-formly-zorro-antd-cascader.ts"],"sourcesContent":["import { Component, TemplateRef, Type, ChangeDetectionStrategy, OnInit } from '@angular/core';\r\nimport { FieldType, FieldTypeConfig, FormlyFieldConfig } from '@ngx-formly/core';\r\nimport { FormlyFieldProps } from 'ngx-formly-zorro-antd/form-field';\r\n\r\nimport type {\r\n NzCascaderOption,\r\n NzShowSearchOptions,\r\n NzCascaderExpandTrigger,\r\n NzCascaderSize\r\n} from 'ng-zorro-antd/cascader';\r\nimport type { NzSafeAny, NzStatus, NgStyleInterface } from 'ng-zorro-antd/core/types';\r\n\r\ninterface CascaderProps extends FormlyFieldProps {\r\n /**\r\n * 是否支持清除\r\n * @default true\r\n */\r\n allowClear?: boolean;\r\n\r\n /**\r\n * 是否自动聚焦,当存在输入框时\r\n * @default false\r\n */\r\n autoFocus?: boolean;\r\n\r\n /**\r\n * 浮层是否应带有背景板\r\n * @default false\r\n */\r\n backdrop?: boolean;\r\n\r\n /**\r\n * 点击父级菜单选项时,可通过该函数判断是否允许值的变化\r\n */\r\n changeOn?: (option: NzSafeAny, index: number) => boolean;\r\n\r\n /**\r\n * 当此项为 true 时,点选每级菜单选项值都会发生变化,具体见上面的演示\r\n * @default false\r\n */\r\n changeOnSelect?: boolean;\r\n\r\n /**\r\n * 自定义浮层列类名\r\n */\r\n columnClassName?: string;\r\n\r\n /**\r\n * 自定义次级菜单展开图标\r\n */\r\n expandIcon?: string | TemplateRef<void>;\r\n\r\n /**\r\n * 次级菜单的展开方式\r\n * @default 'click'\r\n */\r\n expandTrigger?: NzCascaderExpandTrigger;\r\n\r\n /**\r\n * 选项的显示值的属性名\r\n * @default 'label'\r\n */\r\n labelProperty: string;\r\n\r\n /**\r\n * 选择后展示的渲染模板\r\n */\r\n labelRender?: TemplateRef<NzSafeAny> | null;\r\n\r\n /**\r\n * 用于动态加载选项。如果提供了ngModel初始值,且未提供nzOptions值,则会立即触发动态加载。\r\n */\r\n loadData?: (option: NzSafeAny, index?: number) => PromiseLike<NzSafeAny>;\r\n\r\n /**\r\n * 自定义浮层类名\r\n */\r\n menuClassName?: string;\r\n\r\n /**\r\n * 自定义浮层样式\r\n */\r\n menuStyle?: NgStyleInterface | null;\r\n\r\n /**\r\n * 当下拉列表为空时显示的内容\r\n */\r\n notFoundContent?: string | TemplateRef<void>;\r\n\r\n /**\r\n * 选项的渲染模板\r\n */\r\n optionRender?: TemplateRef<{ $implicit: NzCascaderOption; index: number }> | null;\r\n\r\n /**\r\n * 是否显示箭头\r\n * @default true\r\n */\r\n showArrow?: boolean;\r\n\r\n /**\r\n * 显示输入框\r\n * @default true\r\n */\r\n showInput?: boolean;\r\n\r\n /**\r\n * 是否支持搜索,默认情况下对 label 进行全匹配搜索,不能和 [nzLoadData] 同时使用\r\n * @default false\r\n */\r\n showSearch?: boolean | NzShowSearchOptions;\r\n\r\n /**\r\n * 输入框大小\r\n * @default default\r\n */\r\n size?: NzCascaderSize;\r\n\r\n /**\r\n * 设置校验状态\r\n */\r\n status?: NzStatus;\r\n\r\n /**\r\n * 自定义的选择框后缀图标\r\n */\r\n suffixIcon?: string | TemplateRef<void>;\r\n\r\n /**\r\n * 选项的实际值的属性名\r\n * @default 'value'\r\n */\r\n valueProperty?: string;\r\n\r\n /**\r\n * 可选项数据源\r\n */\r\n cascaderOptions?: NzCascaderOption[] | null;\r\n\r\n /**\r\n * 清除值时触发\r\n */\r\n onClear?: (field: FormlyFieldConfig) => void;\r\n /**\r\n * 菜单浮层的显示/隐藏\r\n */\r\n visibleChange?: (field: FormlyFieldConfig, visible: boolean) => void;\r\n\r\n /**\r\n * 值发生变化时触发\r\n */\r\n selectionChange?: (field: FormlyFieldConfig, value: NzCascaderOption[]) => void;\r\n}\r\n\r\nexport interface FormlyCascaderFieldConfig extends FormlyFieldConfig<CascaderProps> {\r\n type: 'cascader' | Type<FormlyFieldCascader>;\r\n}\r\n\r\n@Component({\r\n selector: 'formly-field-cascader',\r\n template: `<nz-cascader\r\n #cascader\r\n [nzPlaceHolder]=\"props.placeholder ?? ''\"\r\n [formControl]=\"formControl\"\r\n [formlyAttributes]=\"field\"\r\n [ngClass]=\"props['className']!\"\r\n [nzAllowClear]=\"props['allowClear']!!\"\r\n [nzAutoFocus]=\"props['autoFocus']!!\"\r\n [nzBackdrop]=\"props['backdrop']!!\"\r\n [nzChangeOn]=\"props['changeOn']\"\r\n [nzChangeOnSelect]=\"props['changeOnSelect']!!\"\r\n [nzColumnClassName]=\"props['columnClassName']\"\r\n [nzExpandIcon]=\"props['expandIcon']!\"\r\n [nzExpandTrigger]=\"props['expandTrigger']!\"\r\n [nzLabelProperty]=\"props['labelProperty']\"\r\n [nzLabelRender]=\"props['labelRender'] ?? null\"\r\n [nzLoadData]=\"props['loadData']\"\r\n [nzMenuClassName]=\"props['menuClassName']\"\r\n [nzMenuStyle]=\"props['menuStyle'] ?? null\"\r\n [nzNotFoundContent]=\"props['notFoundContent']\"\r\n [nzOptionRender]=\"props['optionRender'] ?? null\"\r\n [nzOptions]=\"props['cascaderOptions'] ?? null\"\r\n [nzShowArrow]=\"props['showArrow']!!\"\r\n [nzShowInput]=\"props['showInput']!!\"\r\n [nzShowSearch]=\"props['showSearch']!!\"\r\n [nzSize]=\"props['size']!\"\r\n [nzStatus]=\"props['status'] ?? ''\"\r\n [nzSuffixIcon]=\"props['suffixIcon']!\"\r\n [nzValueProperty]=\"props['valueProperty']!\"\r\n (nzClear)=\"props['onClear'] && props['onClear'](field)\"\r\n (nzVisibleChange)=\"props['visibleChange'] && props['visibleChange'](field, $event)\"\r\n (nzSelectionChange)=\"props['selectionChange'] && props['selectionChange'](field, $event)\"\r\n (ngModelChange)=\"props.change && props.change(field, $event)\"\r\n ></nz-cascader>`,\r\n changeDetection: ChangeDetectionStrategy.OnPush\r\n})\r\nexport class FormlyFieldCascader\r\n extends FieldType<FieldTypeConfig<CascaderProps>>\r\n implements OnInit\r\n{\r\n override defaultOptions = {\r\n props: {\r\n placeholder: '请选择',\r\n allowClear: true,\r\n backdrop: false,\r\n changeOnSelect: false,\r\n expandTrigger: 'click' as const,\r\n labelProperty: 'label',\r\n showArrow: true,\r\n showInput: true,\r\n showSearch: false,\r\n size: 'default' as const,\r\n status: '' as const,\r\n valueProperty: 'value',\r\n cascaderOptions: []\r\n }\r\n };\r\n ngOnInit(): void {\r\n const options = this.props['cascaderOptions'];\r\n if (!options || options.length === 0) {\r\n this.props['cascaderOptions'] = this.props.options as any;\r\n }\r\n }\r\n}\r\n","import { NgModule } from '@angular/core';\r\nimport { CommonModule } from '@angular/common';\r\nimport { FormlyModule } from '@ngx-formly/core';\r\nimport { ReactiveFormsModule } from '@angular/forms';\r\nimport { FormlyNzFormFieldModule } from 'ngx-formly-zorro-antd/form-field';\r\n\r\nimport { NzCascaderModule } from 'ng-zorro-antd/cascader';\r\nimport { FormlyFieldCascader } from './cascader.type';\r\n\r\n@NgModule({\r\n declarations: [FormlyFieldCascader],\r\n imports: [\r\n CommonModule,\r\n ReactiveFormsModule,\r\n FormlyNzFormFieldModule,\r\n\r\n NzCascaderModule,\r\n\r\n FormlyModule.forChild({\r\n types: [\r\n {\r\n name: 'cascader',\r\n component: FormlyFieldCascader,\r\n wrappers: ['form-field']\r\n }\r\n ]\r\n })\r\n ]\r\n})\r\nexport class FormlyNzCascaderModule {}\r\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public_api';\n"],"names":["i1"],"mappings":";;;;;;;;;;;;AAoMM,MAAO,mBACX,SAAQ,SAAyC,CAAA;AAvCnD,IAAA,WAAA,GAAA;;QA0CW,IAAA,CAAA,cAAc,GAAG;AACxB,YAAA,KAAK,EAAE;AACL,gBAAA,WAAW,EAAE,KAAK;AAClB,gBAAA,UAAU,EAAE,IAAI;AAChB,gBAAA,QAAQ,EAAE,KAAK;AACf,gBAAA,cAAc,EAAE,KAAK;AACrB,gBAAA,aAAa,EAAE,OAAgB;AAC/B,gBAAA,aAAa,EAAE,OAAO;AACtB,gBAAA,SAAS,EAAE,IAAI;AACf,gBAAA,SAAS,EAAE,IAAI;AACf,gBAAA,UAAU,EAAE,KAAK;AACjB,gBAAA,IAAI,EAAE,SAAkB;AACxB,gBAAA,MAAM,EAAE,EAAW;AACnB,gBAAA,aAAa,EAAE,OAAO;AACtB,gBAAA,eAAe,EAAE,EAA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EAAA,CAAA,CAAA;AAaP,sBAAA,CAAA,IAAA,GAAA,EAAA,CAAA,mBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,SAAA,EAAA,QAAA,EAAA,EAAA,EAAA,IAAA,EAAA,sBAAsB,EAlBxB,OAAA,EAAA,CAAA;YACP,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;SACH,CAAA,EAAA,CAAA,CAAA;4FAEU,sBAAsB,EAAA,UAAA,EAAA,CAAA;kBApBlC,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;AACF,6BAAA;yBACF,CAAC;AACH,qBAAA;iBACF,CAAA;;;AC5BD;;AAEG;;;;"}
|
@@ -0,0 +1,132 @@
|
|
1
|
+
import * as i0 from '@angular/core';
|
2
|
+
import { Component, ChangeDetectionStrategy, NgModule } from '@angular/core';
|
3
|
+
import * as i2 from '@angular/common';
|
4
|
+
import { CommonModule } from '@angular/common';
|
5
|
+
import * as i4 from '@ngx-formly/core';
|
6
|
+
import { FieldType, FormlyModule } from '@ngx-formly/core';
|
7
|
+
import * as i3 from '@angular/forms';
|
8
|
+
import { ReactiveFormsModule } from '@angular/forms';
|
9
|
+
import { FormlyNzFormFieldModule } from 'ngx-formly-zorro-antd/form-field';
|
10
|
+
import * as i1 from 'ng-zorro-antd/checkbox';
|
11
|
+
import { NzCheckboxModule } from 'ng-zorro-antd/checkbox';
|
12
|
+
|
13
|
+
class FormlyFieldCheckbox extends FieldType {
|
14
|
+
constructor() {
|
15
|
+
super(...arguments);
|
16
|
+
this.defaultOptions = {
|
17
|
+
props: {
|
18
|
+
indeterminate: false,
|
19
|
+
hideLabel: true
|
20
|
+
}
|
21
|
+
};
|
22
|
+
}
|
23
|
+
}
|
24
|
+
FormlyFieldCheckbox.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: FormlyFieldCheckbox, deps: null, target: i0.ɵɵFactoryTarget.Component });
|
25
|
+
FormlyFieldCheckbox.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.11", type: FormlyFieldCheckbox, selector: "formly-field-checkbox", usesInheritance: true, ngImport: i0, template: `
|
26
|
+
<label
|
27
|
+
*ngIf="props.type !== 'group'; else checkboxgroup"
|
28
|
+
[formControl]="formControl"
|
29
|
+
[formlyAttributes]="field"
|
30
|
+
[nzIndeterminate]="props['indeterminate'] && formControl.value == null"
|
31
|
+
(ngModelChange)="props['modelChange'] && props['modelChange'](field, $event)"
|
32
|
+
nz-checkbox
|
33
|
+
>
|
34
|
+
{{ props.label }}
|
35
|
+
</label>
|
36
|
+
|
37
|
+
<ng-template #checkboxgroup>
|
38
|
+
<nz-checkbox-group
|
39
|
+
[(ngModel)]="props.options"
|
40
|
+
[formControl]="formControl"
|
41
|
+
[formlyAttributes]="field"
|
42
|
+
(ngModelChange)="props['modelChange'] && props['modelChange'](field, $event)"
|
43
|
+
></nz-checkbox-group>
|
44
|
+
</ng-template>
|
45
|
+
`, isInline: true, components: [{ type: i1.NzCheckboxComponent, selector: "[nz-checkbox]", inputs: ["nzValue", "nzAutoFocus", "nzDisabled", "nzIndeterminate", "nzChecked", "nzId"], outputs: ["nzCheckedChange"], exportAs: ["nzCheckbox"] }, { type: i1.NzCheckboxGroupComponent, selector: "nz-checkbox-group", inputs: ["nzDisabled"], exportAs: ["nzCheckboxGroup"] }], directives: [{ type: i2.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i3.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { type: i3.FormControlDirective, selector: "[formControl]", inputs: ["formControl", "disabled", "ngModel"], outputs: ["ngModelChange"], exportAs: ["ngForm"] }, { type: i4.ɵFormlyAttributes, selector: "[formlyAttributes]", inputs: ["formlyAttributes", "id"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
46
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: FormlyFieldCheckbox, decorators: [{
|
47
|
+
type: Component,
|
48
|
+
args: [{
|
49
|
+
selector: 'formly-field-checkbox',
|
50
|
+
template: `
|
51
|
+
<label
|
52
|
+
*ngIf="props.type !== 'group'; else checkboxgroup"
|
53
|
+
[formControl]="formControl"
|
54
|
+
[formlyAttributes]="field"
|
55
|
+
[nzIndeterminate]="props['indeterminate'] && formControl.value == null"
|
56
|
+
(ngModelChange)="props['modelChange'] && props['modelChange'](field, $event)"
|
57
|
+
nz-checkbox
|
58
|
+
>
|
59
|
+
{{ props.label }}
|
60
|
+
</label>
|
61
|
+
|
62
|
+
<ng-template #checkboxgroup>
|
63
|
+
<nz-checkbox-group
|
64
|
+
[(ngModel)]="props.options"
|
65
|
+
[formControl]="formControl"
|
66
|
+
[formlyAttributes]="field"
|
67
|
+
(ngModelChange)="props['modelChange'] && props['modelChange'](field, $event)"
|
68
|
+
></nz-checkbox-group>
|
69
|
+
</ng-template>
|
70
|
+
`,
|
71
|
+
changeDetection: ChangeDetectionStrategy.OnPush
|
72
|
+
}]
|
73
|
+
}] });
|
74
|
+
|
75
|
+
class FormlyNzCheckboxModule {
|
76
|
+
}
|
77
|
+
FormlyNzCheckboxModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: FormlyNzCheckboxModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
78
|
+
FormlyNzCheckboxModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: FormlyNzCheckboxModule, declarations: [FormlyFieldCheckbox], imports: [CommonModule,
|
79
|
+
ReactiveFormsModule,
|
80
|
+
FormlyNzFormFieldModule,
|
81
|
+
NzCheckboxModule, i4.FormlyModule] });
|
82
|
+
FormlyNzCheckboxModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: FormlyNzCheckboxModule, imports: [[
|
83
|
+
CommonModule,
|
84
|
+
ReactiveFormsModule,
|
85
|
+
FormlyNzFormFieldModule,
|
86
|
+
NzCheckboxModule,
|
87
|
+
FormlyModule.forChild({
|
88
|
+
types: [
|
89
|
+
{
|
90
|
+
name: 'checkbox',
|
91
|
+
component: FormlyFieldCheckbox,
|
92
|
+
wrappers: ['form-field']
|
93
|
+
},
|
94
|
+
{
|
95
|
+
name: 'boolean',
|
96
|
+
extends: 'checkbox'
|
97
|
+
}
|
98
|
+
]
|
99
|
+
})
|
100
|
+
]] });
|
101
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: FormlyNzCheckboxModule, decorators: [{
|
102
|
+
type: NgModule,
|
103
|
+
args: [{
|
104
|
+
declarations: [FormlyFieldCheckbox],
|
105
|
+
imports: [
|
106
|
+
CommonModule,
|
107
|
+
ReactiveFormsModule,
|
108
|
+
FormlyNzFormFieldModule,
|
109
|
+
NzCheckboxModule,
|
110
|
+
FormlyModule.forChild({
|
111
|
+
types: [
|
112
|
+
{
|
113
|
+
name: 'checkbox',
|
114
|
+
component: FormlyFieldCheckbox,
|
115
|
+
wrappers: ['form-field']
|
116
|
+
},
|
117
|
+
{
|
118
|
+
name: 'boolean',
|
119
|
+
extends: 'checkbox'
|
120
|
+
}
|
121
|
+
]
|
122
|
+
})
|
123
|
+
]
|
124
|
+
}]
|
125
|
+
}] });
|
126
|
+
|
127
|
+
/**
|
128
|
+
* Generated bundle index. Do not edit.
|
129
|
+
*/
|
130
|
+
|
131
|
+
export { FormlyFieldCheckbox, FormlyNzCheckboxModule };
|
132
|
+
//# sourceMappingURL=ngx-formly-zorro-antd-checkbox.mjs.map
|
@@ -0,0 +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';\r\nimport { FieldType, FieldTypeConfig, FormlyFieldConfig } from '@ngx-formly/core';\r\n\r\nimport type { FormlyFieldProps } from 'ngx-formly-zorro-antd/form-field';\r\n\r\ninterface CheckboxProps extends FormlyFieldProps {\r\n type?: 'group' | 'single';\r\n\r\n /**\r\n * 自动获取焦点\r\n * @default false\r\n */\r\n autoFocus?: boolean;\r\n\r\n /**\r\n * 设置 indeterminate 状态,只负责样式控制\r\n * @default false\r\n */\r\n indeterminate?: boolean;\r\n\r\n /**\r\n * 选中变化时回调\r\n */\r\n modelChange?: (field: FormlyFieldConfig, data: boolean) => void;\r\n}\r\n\r\nexport interface FormlyCheckboxFieldConfig extends FormlyFieldConfig<CheckboxProps> {\r\n type: 'checkbox' | 'boolean' | Type<FormlyFieldCheckbox>;\r\n}\r\n\r\n@Component({\r\n selector: 'formly-field-checkbox',\r\n template: `\r\n <label\r\n *ngIf=\"props.type !== 'group'; else checkboxgroup\"\r\n [formControl]=\"formControl\"\r\n [formlyAttributes]=\"field\"\r\n [nzIndeterminate]=\"props['indeterminate'] && formControl.value == null\"\r\n (ngModelChange)=\"props['modelChange'] && props['modelChange'](field, $event)\"\r\n nz-checkbox\r\n >\r\n {{ props.label }}\r\n </label>\r\n\r\n <ng-template #checkboxgroup>\r\n <nz-checkbox-group\r\n [(ngModel)]=\"props.options\"\r\n [formControl]=\"formControl\"\r\n [formlyAttributes]=\"field\"\r\n (ngModelChange)=\"props['modelChange'] && props['modelChange'](field, $event)\"\r\n ></nz-checkbox-group>\r\n </ng-template>\r\n `,\r\n changeDetection: ChangeDetectionStrategy.OnPush\r\n})\r\nexport class FormlyFieldCheckbox extends FieldType<FieldTypeConfig<CheckboxProps>> {\r\n override defaultOptions = {\r\n props: {\r\n indeterminate: false,\r\n hideLabel: true\r\n }\r\n };\r\n}\r\n","import { NgModule } from '@angular/core';\r\nimport { CommonModule } from '@angular/common';\r\nimport { FormlyModule } from '@ngx-formly/core';\r\nimport { ReactiveFormsModule } from '@angular/forms';\r\nimport { FormlyNzFormFieldModule } from 'ngx-formly-zorro-antd/form-field';\r\n\r\nimport { NzCheckboxModule } from 'ng-zorro-antd/checkbox';\r\n\r\nimport { FormlyFieldCheckbox } from './checkbox.type';\r\n\r\n@NgModule({\r\n declarations: [FormlyFieldCheckbox],\r\n imports: [\r\n CommonModule,\r\n ReactiveFormsModule,\r\n FormlyNzFormFieldModule,\r\n\r\n NzCheckboxModule,\r\n\r\n FormlyModule.forChild({\r\n types: [\r\n {\r\n name: 'checkbox',\r\n component: FormlyFieldCheckbox,\r\n wrappers: ['form-field']\r\n },\r\n {\r\n name: 'boolean',\r\n extends: 'checkbox'\r\n }\r\n ]\r\n })\r\n ]\r\n})\r\nexport class FormlyNzCheckboxModule {}\r\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;;QA0BW,IAAA,CAAA,cAAc,GAAG;AACxB,YAAA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