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,96 @@
|
|
1
|
+
import { Component, ChangeDetectionStrategy } from '@angular/core';
|
2
|
+
import { FieldType } from '@ngx-formly/core';
|
3
|
+
import * as i0 from "@angular/core";
|
4
|
+
import * as i1 from "ng-zorro-antd/radio";
|
5
|
+
import * as i2 from "@angular/forms";
|
6
|
+
import * as i3 from "@ngx-formly/core";
|
7
|
+
import * as i4 from "@angular/common";
|
8
|
+
import * as i5 from "@ngx-formly/core/select";
|
9
|
+
export class FormlyFieldRadio extends FieldType {
|
10
|
+
constructor() {
|
11
|
+
super(...arguments);
|
12
|
+
this.defaultOptions = {
|
13
|
+
props: {
|
14
|
+
size: 'default',
|
15
|
+
buttonStyle: 'outline'
|
16
|
+
}
|
17
|
+
};
|
18
|
+
}
|
19
|
+
}
|
20
|
+
FormlyFieldRadio.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: FormlyFieldRadio, deps: null, target: i0.ɵɵFactoryTarget.Component });
|
21
|
+
FormlyFieldRadio.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.11", type: FormlyFieldRadio, selector: "formly-field-radio", usesInheritance: true, ngImport: i0, template: `
|
22
|
+
<nz-radio-group
|
23
|
+
[formControl]="formControl"
|
24
|
+
[formlyAttributes]="field"
|
25
|
+
[nzName]="field.name ?? null"
|
26
|
+
[nzSize]="props['size']!"
|
27
|
+
[nzButtonStyle]="props['buttonStyle']!"
|
28
|
+
(ngModelChange)="props.change && props.change(field, $event)"
|
29
|
+
>
|
30
|
+
<ng-container *ngIf="props.type !== 'button'; else button">
|
31
|
+
<label
|
32
|
+
*ngFor="let option of props.options | formlySelectOptions: field | async; let i = index"
|
33
|
+
[id]="id + '_' + i"
|
34
|
+
[nzDisabled]="option.disabled === true"
|
35
|
+
[nzValue]="option.value"
|
36
|
+
nz-radio
|
37
|
+
>
|
38
|
+
{{ option.label }}
|
39
|
+
</label>
|
40
|
+
</ng-container>
|
41
|
+
|
42
|
+
<ng-template #button>
|
43
|
+
<label
|
44
|
+
*ngFor="let option of props.options | formlySelectOptions: field | async; let i = index"
|
45
|
+
[id]="id + '_' + i"
|
46
|
+
[nzDisabled]="option.disabled === true"
|
47
|
+
[nzValue]="option.value"
|
48
|
+
nz-radio-button
|
49
|
+
>
|
50
|
+
{{ option.label }}
|
51
|
+
</label>
|
52
|
+
</ng-template>
|
53
|
+
</nz-radio-group>
|
54
|
+
`, isInline: true, components: [{ type: i1.NzRadioGroupComponent, selector: "nz-radio-group", inputs: ["nzDisabled", "nzButtonStyle", "nzSize", "nzName"], exportAs: ["nzRadioGroup"] }, { type: i1.NzRadioComponent, selector: "[nz-radio],[nz-radio-button]", inputs: ["nzValue", "nzDisabled", "nzAutoFocus"], exportAs: ["nzRadio"] }], 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.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i4.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { type: i1.NzRadioButtonDirective, selector: "[nz-radio-button]" }], pipes: { "async": i4.AsyncPipe, "formlySelectOptions": i5.FormlySelectOptionsPipe }, changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
55
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: FormlyFieldRadio, decorators: [{
|
56
|
+
type: Component,
|
57
|
+
args: [{
|
58
|
+
selector: 'formly-field-radio',
|
59
|
+
template: `
|
60
|
+
<nz-radio-group
|
61
|
+
[formControl]="formControl"
|
62
|
+
[formlyAttributes]="field"
|
63
|
+
[nzName]="field.name ?? null"
|
64
|
+
[nzSize]="props['size']!"
|
65
|
+
[nzButtonStyle]="props['buttonStyle']!"
|
66
|
+
(ngModelChange)="props.change && props.change(field, $event)"
|
67
|
+
>
|
68
|
+
<ng-container *ngIf="props.type !== 'button'; else button">
|
69
|
+
<label
|
70
|
+
*ngFor="let option of props.options | formlySelectOptions: field | async; let i = index"
|
71
|
+
[id]="id + '_' + i"
|
72
|
+
[nzDisabled]="option.disabled === true"
|
73
|
+
[nzValue]="option.value"
|
74
|
+
nz-radio
|
75
|
+
>
|
76
|
+
{{ option.label }}
|
77
|
+
</label>
|
78
|
+
</ng-container>
|
79
|
+
|
80
|
+
<ng-template #button>
|
81
|
+
<label
|
82
|
+
*ngFor="let option of props.options | formlySelectOptions: field | async; let i = index"
|
83
|
+
[id]="id + '_' + i"
|
84
|
+
[nzDisabled]="option.disabled === true"
|
85
|
+
[nzValue]="option.value"
|
86
|
+
n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FzeW5jOyBsZXQgaSA9IGluZGV4XCJcclxuICAgICAgICAgIFtpZF09XCJpZCArICdfJyArIGlcIlxyXG4gICAgICAgICAgW256RGlzYWJsZWRdPVwib3B0aW9uLmRpc2FibGVkID09PSB0cnVlXCJcclxuICAgICAgICAgIFtuelZhbHVlXT1cIm9wdGlvbi52YWx1ZVwiXHJcbiAgICAgICAgICBuei1yYWRpb1xyXG4gICAgICAgID5cclxuICAgICAgICAgIHt7IG9wdGlvbi5sYWJlbCB9fVxyXG4gICAgICAgIDwvbGFiZWw+XHJcbiAgICAgIDwvbmctY29udGFpbmVyPlxyXG5cclxuICAgICAgPG5nLXRlbXBsYXRlICNidXR0b24+XHJcbiAgICAgICAgPGxhYmVsXHJcbiAgICAgICAgICAqbmdGb3I9XCJsZXQgb3B0aW9uIG9mIHByb3BzLm9wdGlvbnMgfCBmb3JtbHlTZWxlY3RPcHRpb25zOiBmaWVsZCB8IGFzeW5jOyBsZXQgaSA9IGluZGV4XCJcclxuICAgICAgICAgIFtpZF09XCJpZCArICdfJyArIGlcIlxyXG4gICAgICAgICAgW256RGlzYWJsZWRdPVwib3B0aW9uLmRpc2FibGVkID09PSB0cnVlXCJcclxuICAgICAgICAgIFtuelZhbHVlXT1cIm9wdGlvbi52YWx1ZVwiXHJcbiAgICAgICAgICBuei1yYWRpby1idXR0b25cclxuICAgICAgICA+XHJcbiAgICAgICAgICB7eyBvcHRpb24ubGFiZWwgfX1cclxuICAgICAgICA8L2xhYmVsPlxyXG4gICAgICA8L25nLXRlbXBsYXRlPlxyXG4gICAgPC9uei1yYWRpby1ncm91cD5cclxuICBgLFxyXG4gIGNoYW5nZURldGVjdGlvbjogQ2hhbmdlRGV0ZWN0aW9uU3RyYXRlZ3kuT25QdXNoXHJcbn0pXHJcbmV4cG9ydCBjbGFzcyBGb3JtbHlGaWVsZFJhZGlvIGV4dGVuZHMgRmllbGRUeXBlPEZpZWxkVHlwZUNvbmZpZzxSYWRpb1Byb3BzPj4ge1xyXG4gIG92ZXJyaWRlIGRlZmF1bHRPcHRpb25zID0ge1xyXG4gICAgcHJvcHM6IHtcclxuICAgICAgc2l6ZTogJ2RlZmF1bHQnIGFzIGNvbnN0LFxyXG4gICAgICBidXR0b25TdHlsZTogJ291dGxpbmUnIGFzIGNvbnN0XHJcbiAgICB9XHJcbiAgfTtcclxufVxyXG4iXX0=
|
@@ -0,0 +1,5 @@
|
|
1
|
+
/**
|
2
|
+
* Generated bundle index. Do not edit.
|
3
|
+
*/
|
4
|
+
export * from './public_api';
|
5
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibmd4LWZvcm1seS16b3Jyby1hbnRkLXJhdGUuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi9wYWNrYWdlcy9mb3JtbHlhbnRkL3JhdGUvc3JjL25neC1mb3JtbHktem9ycm8tYW50ZC1yYXRlLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBOztHQUVHO0FBRUgsY0FBYyxjQUFjLENBQUMiLCJzb3VyY2VzQ29udGVudCI6WyIvKipcbiAqIEdlbmVyYXRlZCBidW5kbGUgaW5kZXguIERvIG5vdCBlZGl0LlxuICovXG5cbmV4cG9ydCAqIGZyb20gJy4vcHVibGljX2FwaSc7XG4iXX0=
|
@@ -0,0 +1,3 @@
|
|
1
|
+
export { FormlyNzRateModule } from './rate.module';
|
2
|
+
export { FormlyFieldRate } from './rate.type';
|
3
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicHVibGljX2FwaS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uL3BhY2thZ2VzL2Zvcm1seWFudGQvcmF0ZS9zcmMvcHVibGljX2FwaS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxPQUFPLEVBQUUsa0JBQWtCLEVBQUUsTUFBTSxlQUFlLENBQUM7QUFDbkQsT0FBTyxFQUFFLGVBQWUsRUFBeUIsTUFBTSxhQUFhLENBQUMiLCJzb3VyY2VzQ29udGVudCI6WyJleHBvcnQgeyBGb3JtbHlOelJhdGVNb2R1bGUgfSBmcm9tICcuL3JhdGUubW9kdWxlJztcclxuZXhwb3J0IHsgRm9ybWx5RmllbGRSYXRlLCBGb3JtbHlSYXRlRmllbGRDb25maWcgfSBmcm9tICcuL3JhdGUudHlwZSc7XHJcbiJdfQ==
|
@@ -0,0 +1,53 @@
|
|
1
|
+
import { NgModule } from '@angular/core';
|
2
|
+
import { CommonModule } from '@angular/common';
|
3
|
+
import { ReactiveFormsModule } from '@angular/forms';
|
4
|
+
import { FormlyModule } from '@ngx-formly/core';
|
5
|
+
import { FormlyNzFormFieldModule } from 'ngx-formly-zorro-antd/form-field';
|
6
|
+
import { NzRateModule } from 'ng-zorro-antd/rate';
|
7
|
+
import { FormlyFieldRate } from './rate.type';
|
8
|
+
import * as i0 from "@angular/core";
|
9
|
+
import * as i1 from "@ngx-formly/core";
|
10
|
+
export class FormlyNzRateModule {
|
11
|
+
}
|
12
|
+
FormlyNzRateModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: FormlyNzRateModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
13
|
+
FormlyNzRateModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: FormlyNzRateModule, declarations: [FormlyFieldRate], imports: [CommonModule,
|
14
|
+
ReactiveFormsModule,
|
15
|
+
FormlyNzFormFieldModule,
|
16
|
+
NzRateModule, i1.FormlyModule] });
|
17
|
+
FormlyNzRateModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: FormlyNzRateModule, imports: [[
|
18
|
+
CommonModule,
|
19
|
+
ReactiveFormsModule,
|
20
|
+
FormlyNzFormFieldModule,
|
21
|
+
NzRateModule,
|
22
|
+
FormlyModule.forChild({
|
23
|
+
types: [
|
24
|
+
{
|
25
|
+
name: 'rate',
|
26
|
+
component: FormlyFieldRate,
|
27
|
+
wrappers: ['form-field']
|
28
|
+
}
|
29
|
+
]
|
30
|
+
})
|
31
|
+
]] });
|
32
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: FormlyNzRateModule, decorators: [{
|
33
|
+
type: NgModule,
|
34
|
+
args: [{
|
35
|
+
declarations: [FormlyFieldRate],
|
36
|
+
imports: [
|
37
|
+
CommonModule,
|
38
|
+
ReactiveFormsModule,
|
39
|
+
FormlyNzFormFieldModule,
|
40
|
+
NzRateModule,
|
41
|
+
FormlyModule.forChild({
|
42
|
+
types: [
|
43
|
+
{
|
44
|
+
name: 'rate',
|
45
|
+
component: FormlyFieldRate,
|
46
|
+
wrappers: ['form-field']
|
47
|
+
}
|
48
|
+
]
|
49
|
+
})
|
50
|
+
]
|
51
|
+
}]
|
52
|
+
}] });
|
53
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicmF0ZS5tb2R1bGUuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi9wYWNrYWdlcy9mb3JtbHlhbnRkL3JhdGUvc3JjL3JhdGUubW9kdWxlLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLE9BQU8sRUFBRSxRQUFRLEVBQUUsTUFBTSxlQUFlLENBQUM7QUFDekMsT0FBTyxFQUFFLFlBQVksRUFBRSxNQUFNLGlCQUFpQixDQUFDO0FBQy9DLE9BQU8sRUFBRSxtQkFBbUIsRUFBRSxNQUFNLGdCQUFnQixDQUFDO0FBQ3JELE9BQU8sRUFBRSxZQUFZLEVBQUUsTUFBTSxrQkFBa0IsQ0FBQztBQUNoRCxPQUFPLEVBQUUsdUJBQXVCLEVBQU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+
import { Component, ChangeDetectionStrategy } from '@angular/core';
|
2
|
+
import { FieldType } from '@ngx-formly/core';
|
3
|
+
import * as i0 from "@angular/core";
|
4
|
+
import * as i1 from "ng-zorro-antd/rate";
|
5
|
+
import * as i2 from "@angular/forms";
|
6
|
+
import * as i3 from "@ngx-formly/core";
|
7
|
+
export class FormlyFieldRate extends FieldType {
|
8
|
+
constructor() {
|
9
|
+
super(...arguments);
|
10
|
+
this.defaultOptions = {
|
11
|
+
props: {
|
12
|
+
allowClear: true,
|
13
|
+
allowHalf: false,
|
14
|
+
autoFocus: false,
|
15
|
+
count: 5,
|
16
|
+
tooltips: []
|
17
|
+
}
|
18
|
+
};
|
19
|
+
}
|
20
|
+
}
|
21
|
+
FormlyFieldRate.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: FormlyFieldRate, deps: null, target: i0.ɵɵFactoryTarget.Component });
|
22
|
+
FormlyFieldRate.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.11", type: FormlyFieldRate, selector: "formly-field-rate", usesInheritance: true, ngImport: i0, template: `
|
23
|
+
<nz-rate
|
24
|
+
[formControl]="formControl"
|
25
|
+
[formlyAttributes]="field"
|
26
|
+
[nzAllowClear]="props['allowClear']!!"
|
27
|
+
[nzAllowHalf]="props['allowHalf']!!"
|
28
|
+
[nzAutoFocus]="props['autoFocus']!!"
|
29
|
+
[nzCharacter]="props['character']!"
|
30
|
+
[nzCount]="props['count']"
|
31
|
+
[nzTooltips]="props['tooltips']!"
|
32
|
+
(ngModelChange)="props.change && props.change(field, $event)"
|
33
|
+
(nzOnBlur)="props.blur && props.blur(field, $event)"
|
34
|
+
(nzOnFocus)="props.focus && props.focus(field, $event)"
|
35
|
+
(nzOnHoverChange)="props['hoverChange'] && props['hoverChange'](field, $event)"
|
36
|
+
(nzOnKeyDown)="props.keydown && props.keydown(field, $event)"
|
37
|
+
></nz-rate>
|
38
|
+
`, isInline: true, components: [{ type: i1.NzRateComponent, selector: "nz-rate", inputs: ["nzAllowClear", "nzAllowHalf", "nzDisabled", "nzAutoFocus", "nzCharacter", "nzCount", "nzTooltips"], outputs: ["nzOnBlur", "nzOnFocus", "nzOnHoverChange", "nzOnKeyDown"], exportAs: ["nzRate"] }], 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"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
39
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: FormlyFieldRate, decorators: [{
|
40
|
+
type: Component,
|
41
|
+
args: [{
|
42
|
+
selector: 'formly-field-rate',
|
43
|
+
template: `
|
44
|
+
<nz-rate
|
45
|
+
[formControl]="formControl"
|
46
|
+
[formlyAttributes]="field"
|
47
|
+
[nzAllowClear]="props['allowClear']!!"
|
48
|
+
[nzAllowHalf]="props['allowHalf']!!"
|
49
|
+
[nzAutoFocus]="props['autoFocus']!!"
|
50
|
+
[nzCharacter]="props['character']!"
|
51
|
+
[nzCount]="props['count']"
|
52
|
+
[nzTooltips]="props['tooltips']!"
|
53
|
+
(ngModelChange)="props.change && props.change(field, $event)"
|
54
|
+
(nzOnBlur)="props.blur && props.blur(field, $event)"
|
55
|
+
(nzOnFocus)="props.focus && props.focus(field, $event)"
|
56
|
+
(nzOnHoverChange)="props['hoverChange'] && props['hoverChange'](field, $event)"
|
57
|
+
(nzOnKeyDown)="props.keydown && props.keydown(field, $event)"
|
58
|
+
></nz-rate>
|
59
|
+
`,
|
60
|
+
changeDetection: ChangeDetectionStrategy.OnPush
|
61
|
+
}]
|
62
|
+
}] });
|
63
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLC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npPbkZvY3VzKT1cInByb3BzLmZvY3VzICYmIHByb3BzLmZvY3VzKGZpZWxkLCAkZXZlbnQpXCJcclxuICAgICAgKG56T25Ib3ZlckNoYW5nZSk9XCJwcm9wc1snaG92ZXJDaGFuZ2UnXSAmJiBwcm9wc1snaG92ZXJDaGFuZ2UnXShmaWVsZCwgJGV2ZW50KVwiXHJcbiAgICAgIChuek9uS2V5RG93bik9XCJwcm9wcy5rZXlkb3duICYmIHByb3BzLmtleWRvd24oZmllbGQsICRldmVudClcIlxyXG4gICAgPjwvbnotcmF0ZT5cclxuICBgLFxyXG4gIGNoYW5nZURldGVjdGlvbjogQ2hhbmdlRGV0ZWN0aW9uU3RyYXRlZ3kuT25QdXNoXHJcbn0pXHJcbmV4cG9ydCBjbGFzcyBGb3JtbHlGaWVsZFJhdGUgZXh0ZW5kcyBGaWVsZFR5cGU8RmllbGRUeXBlQ29uZmlnPFJhdGVQcm9wcz4+IHtcclxuICBvdmVycmlkZSBkZWZhdWx0T3B0aW9ucyA9IHtcclxuICAgIHByb3BzOiB7XHJcbiAgICAgIGFsbG93Q2xlYXI6IHRydWUsXHJcbiAgICAgIGFsbG93SGFsZjogZmFsc2UsXHJcbiAgICAgIGF1dG9Gb2N1czogZmFsc2UsXHJcbiAgICAgIGNvdW50OiA1LFxyXG4gICAgICB0b29sdGlwczogW11cclxuICAgIH1cclxuICB9O1xyXG59XHJcbiJdfQ==
|
@@ -0,0 +1,5 @@
|
|
1
|
+
/**
|
2
|
+
* Generated bundle index. Do not edit.
|
3
|
+
*/
|
4
|
+
export * from './public_api';
|
5
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibmd4LWZvcm1seS16b3Jyby1hbnRkLXNlbGVjdC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uL3BhY2thZ2VzL2Zvcm1seWFudGQvc2VsZWN0L3NyYy9uZ3gtZm9ybWx5LXpvcnJvLWFudGQtc2VsZWN0LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBOztHQUVHO0FBRUgsY0FBYyxjQUFjLENBQUMiLCJzb3VyY2VzQ29udGVudCI6WyIvKipcbiAqIEdlbmVyYXRlZCBidW5kbGUgaW5kZXguIERvIG5vdCBlZGl0LlxuICovXG5cbmV4cG9ydCAqIGZyb20gJy4vcHVibGljX2FwaSc7XG4iXX0=
|
@@ -0,0 +1,3 @@
|
|
1
|
+
export { FormlyNzSelectModule } from './select.module';
|
2
|
+
export { FormlyFieldSelect } from './select.type';
|
3
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicHVibGljX2FwaS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uL3BhY2thZ2VzL2Zvcm1seWFudGQvc2VsZWN0L3NyYy9wdWJsaWNfYXBpLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLE9BQU8sRUFBRSxvQkFBb0IsRUFBRSxNQUFNLGlCQUFpQixDQUFDO0FBQ3ZELE9BQU8sRUFBRSxpQkFBaUIsRUFBMkIsTUFBTSxlQUFlLENBQUMiLCJzb3VyY2VzQ29udGVudCI6WyJleHBvcnQgeyBGb3JtbHlOelNlbGVjdE1vZHVsZSB9IGZyb20gJy4vc2VsZWN0Lm1vZHVsZSc7XHJcbmV4cG9ydCB7IEZvcm1seUZpZWxkU2VsZWN0LCBGb3JtbHlTZWxlY3RGaWVsZENvbmZpZyB9IGZyb20gJy4vc2VsZWN0LnR5cGUnO1xyXG4iXX0=
|
@@ -0,0 +1,59 @@
|
|
1
|
+
import { NgModule } from '@angular/core';
|
2
|
+
import { CommonModule } from '@angular/common';
|
3
|
+
import { ReactiveFormsModule } from '@angular/forms';
|
4
|
+
import { FormlyModule } from '@ngx-formly/core';
|
5
|
+
import { FormlySelectModule } from '@ngx-formly/core/select';
|
6
|
+
import { FormlyNzFormFieldModule } from 'ngx-formly-zorro-antd/form-field';
|
7
|
+
import { NzSelectModule } from 'ng-zorro-antd/select';
|
8
|
+
import { FormlyFieldSelect } from './select.type';
|
9
|
+
import * as i0 from "@angular/core";
|
10
|
+
import * as i1 from "@ngx-formly/core";
|
11
|
+
export class FormlyNzSelectModule {
|
12
|
+
}
|
13
|
+
FormlyNzSelectModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: FormlyNzSelectModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
14
|
+
FormlyNzSelectModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: FormlyNzSelectModule, declarations: [FormlyFieldSelect], imports: [CommonModule,
|
15
|
+
ReactiveFormsModule,
|
16
|
+
NzSelectModule,
|
17
|
+
FormlyNzFormFieldModule,
|
18
|
+
FormlySelectModule, i1.FormlyModule] });
|
19
|
+
FormlyNzSelectModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: FormlyNzSelectModule, imports: [[
|
20
|
+
CommonModule,
|
21
|
+
ReactiveFormsModule,
|
22
|
+
NzSelectModule,
|
23
|
+
FormlyNzFormFieldModule,
|
24
|
+
FormlySelectModule,
|
25
|
+
FormlyModule.forChild({
|
26
|
+
types: [
|
27
|
+
{
|
28
|
+
name: 'select',
|
29
|
+
component: FormlyFieldSelect,
|
30
|
+
wrappers: ['form-field']
|
31
|
+
},
|
32
|
+
{ name: 'enum', extends: 'select' }
|
33
|
+
]
|
34
|
+
})
|
35
|
+
]] });
|
36
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: FormlyNzSelectModule, decorators: [{
|
37
|
+
type: NgModule,
|
38
|
+
args: [{
|
39
|
+
declarations: [FormlyFieldSelect],
|
40
|
+
imports: [
|
41
|
+
CommonModule,
|
42
|
+
ReactiveFormsModule,
|
43
|
+
NzSelectModule,
|
44
|
+
FormlyNzFormFieldModule,
|
45
|
+
FormlySelectModule,
|
46
|
+
FormlyModule.forChild({
|
47
|
+
types: [
|
48
|
+
{
|
49
|
+
name: 'select',
|
50
|
+
component: FormlyFieldSelect,
|
51
|
+
wrappers: ['form-field']
|
52
|
+
},
|
53
|
+
{ name: 'enum', extends: 'select' }
|
54
|
+
]
|
55
|
+
})
|
56
|
+
]
|
57
|
+
}]
|
58
|
+
}] });
|
59
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic2VsZWN0Lm1vZHVsZS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uL3BhY2thZ2VzL2Zvcm1seWFudGQvc2VsZWN0L3NyYy9zZWxlY3QubW9kdWxlLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLE9BQU8sRUFBRSxRQUFRLEVBQUUsTUFBTSxlQUFlLENBQUM7QUFDekMsT0FBTyxFQUFFLFlBQVksRUFBRSxNQUFNLGlCQUFpQixDQUFDO0FBQy9DLE9BQU8sRUFBRSxtQkFBbUIsRUFBRSxNQUFNLGdCQUFnQixDQUFDO0FBQ3JELE9BQU8sRUFBRSxZQUFZLEVBQUUsTUFBTSxrQkFBa0IsQ0FBQztBQUNoRCxPQUFPLEVBQUUsa0JBQWtCLEVBQUUsTUFBTSx5QkFBeUIsQ0FBQztBQUM3RCxPQUFPLEVBQUUsdUJBQXVCLEVBQUUsTUFBTSxrQ0FBa0MsQ0FBQztBQUUzRSxPQUFPLEVBQUUsY0FBYyxFQUFFLE1BQU0sc0JBQXNCLENBQUM7QUFFdEQsT0FBTyxFQUFFLGlCQUFpQixFQUFFLE1BQU0sZUFBZSxDQUFDOzs7QUF1QmxELE1BQU0sT0FBTyxvQkFBb0I7O2tIQUFwQixvQkFBb0I7bUhBQXBCLG9CQUFvQixp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xyXG4gIC8qKlxyXG4gICAqIOmakOiXjyB0YWcg5pe25pi+56S655qE5YaF5a65XHJcbiAgICovXHJcbiAgbWF4VGFnUGxhY2Vob2xkZXI/OiBUZW1wbGF0ZVJlZjx7ICRpbXBsaWNpdDogTnpTYWZlQW55W10gfT4gfCBudWxsO1xyXG5cclxuICAvKipcclxuICAgKiBcdOS4i+aLieiPnOWNleS4reavj+S4qiBPcHRpb24g55qE6auY5bqmXHJcbiAgICogQGRlZmF1bHQgMzJcclxuICAgKi9cclxuICBvcHRpb25IZWlnaHRQeD86IG51bWJlcjtcclxuXHJcbiAgLyoqXHJcbiAgICog5LiL5ouJ6I+c5Y2V5Lit5pyA5aSa5bGV56S655qEIE9wdGlvbiDkuKrmlbDvvIzotoXlh7rpg6jliIbmu5rliqhcclxuICAgKiBAZGVmYXVsdCA4XHJcbiAgICovXHJcbiAgb3B0aW9uT3ZlcmZsb3dTaXplPzogbnVtYmVyO1xyXG5cclxuICAvKipcclxuICAgKiDkuIvmi4noj5zljZXmiZPlvIDnirbmgIHlj5jljJblm57osINcclxuICAgKi9cclxuICBvcGVuQ2hhbmdlPzogKGZpZWxkOiBGb3JtbHlGaWVsZENvbmZpZywgdmVudDogYm9vbGVhbikgPT4gdm9pZDtcclxuXHJcbiAgLyoqXHJcbiAgICog5LiL5ouJ5YiX6KGo5rua5Yqo5Yiw5bqV6YOo55qE5Zue6LCDXHJcbiAgICovXHJcbiAgc2Nyb2xsVG9Cb3R0b20/OiAoZmllbGQ6IEZvcm1seUZpZWxkQ29uZmlnLCBldmVudDogTnpTYWZlQW55KSA9PiB2b2lkO1xyXG5cclxuICAvKipcclxuICAgKiDmlofmnKzmoYblgLzlj5jljJbml7blm57osINcclxuICAgKi9cclxuICBvblNlYXJjaD86IChmaWVsZDogRm9ybWx5RmllbGRDb25maWcsIGV2ZW50OiBzdHJpbmcpID0+IHZvaWQ7XHJcbn1cclxuIl19
|
@@ -0,0 +1,163 @@
|
|
1
|
+
import { Component, ChangeDetectionStrategy, ViewChild } from '@angular/core';
|
2
|
+
import { FieldType } from '@ngx-formly/core';
|
3
|
+
import { NzSelectComponent } from 'ng-zorro-antd/select';
|
4
|
+
import * as i0 from "@angular/core";
|
5
|
+
import * as i1 from "ng-zorro-antd/select";
|
6
|
+
import * as i2 from "@angular/forms";
|
7
|
+
import * as i3 from "@ngx-formly/core";
|
8
|
+
import * as i4 from "@angular/common";
|
9
|
+
import * as i5 from "@ngx-formly/core/select";
|
10
|
+
export class FormlyFieldSelect extends FieldType {
|
11
|
+
constructor() {
|
12
|
+
super(...arguments);
|
13
|
+
this.defaultOptions = {
|
14
|
+
props: {
|
15
|
+
compareWith: (o1, o2) => o1 === o2,
|
16
|
+
autoClearSearchValue: true,
|
17
|
+
allowClear: false,
|
18
|
+
backdrop: false,
|
19
|
+
open: false,
|
20
|
+
dropdownMatchSelectWidth: true,
|
21
|
+
serverSearch: false,
|
22
|
+
maxMultipleCount: Infinity,
|
23
|
+
mode: 'default',
|
24
|
+
showSearch: false,
|
25
|
+
size: 'default',
|
26
|
+
status: '',
|
27
|
+
tokenSeparators: [],
|
28
|
+
loading: false,
|
29
|
+
optionHeightPx: 32,
|
30
|
+
optionOverflowSize: 8
|
31
|
+
}
|
32
|
+
};
|
33
|
+
}
|
34
|
+
ngOnInit() {
|
35
|
+
if (this.props['filterOption'] instanceof Function) {
|
36
|
+
this.select.nzFilterOption = this.props['filterOption'];
|
37
|
+
}
|
38
|
+
}
|
39
|
+
}
|
40
|
+
FormlyFieldSelect.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: FormlyFieldSelect, deps: null, target: i0.ɵɵFactoryTarget.Component });
|
41
|
+
FormlyFieldSelect.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.11", type: FormlyFieldSelect, selector: "formly-field-select", viewQueries: [{ propertyName: "select", first: true, predicate: ["select"], descendants: true, static: true }], usesInheritance: true, ngImport: i0, template: `
|
42
|
+
<nz-select
|
43
|
+
#select
|
44
|
+
[class.ng-dirty]="showError"
|
45
|
+
[nzPlaceHolder]="props.placeholder ?? ''"
|
46
|
+
[compareWith]="props['compareWith']!"
|
47
|
+
[nzAllowClear]="props['allowClear']!!"
|
48
|
+
[nzAutoClearSearchValue]="props['autoClearSearchValue']"
|
49
|
+
[nzBackdrop]="props['backdrop']!!"
|
50
|
+
[nzBorderless]="props['borderless']"
|
51
|
+
[nzOpen]="props['open']!!"
|
52
|
+
[nzDropdownMatchSelectWidth]="props['dropdownMatchSelectWidth']!!"
|
53
|
+
[nzDropdownStyle]="props['dropdownStyle'] ?? null"
|
54
|
+
[nzCustomTemplate]="props['customTemplate'] ?? null"
|
55
|
+
[nzServerSearch]="props['serverSearch']!!"
|
56
|
+
[nzMaxMultipleCount]="props['maxMultipleCount']!"
|
57
|
+
[nzMode]="props['mode']!"
|
58
|
+
[nzShowSearch]="props['showSearch']!!"
|
59
|
+
[nzSize]="props['size']!"
|
60
|
+
[nzStatus]="props['status']!"
|
61
|
+
[nzLoading]="props['loading']!!"
|
62
|
+
[nzShowArrow]="props['showArrow']!!"
|
63
|
+
[nzMaxTagCount]="props['maxTagCount']"
|
64
|
+
[nzMaxTagPlaceholder]="props['maxTagPlaceholder'] ?? null"
|
65
|
+
[nzOptionHeightPx]="props['optionHeightPx']!"
|
66
|
+
[nzOptionOverflowSize]="props['optionOverflowSize']!"
|
67
|
+
[formControl]="formControl"
|
68
|
+
[formlyAttributes]="field"
|
69
|
+
(ngModelChange)="props.change && props.change(field, $event)"
|
70
|
+
(nzBlur)="props.blur && props.blur(field, $event)"
|
71
|
+
(nzFocus)="props.focus && props.focus(field, $event)"
|
72
|
+
(nzOpenChange)="props['openChange'] && props['openChange'](field, $event)"
|
73
|
+
(nzScrollToBottom)="props['scrollToBottom'] && props['scrollToBottom'](field, $event)"
|
74
|
+
(nzOnSearch)="props['onSearch'] && props['onSearch'](field, $event)"
|
75
|
+
>
|
76
|
+
<ng-container *ngFor="let item of to.options | formlySelectOptions: field | async">
|
77
|
+
<nz-option-group [nzLabel]="item.label" *ngIf="item.group; else selectoption">
|
78
|
+
<nz-option
|
79
|
+
*ngFor="let child of item.group"
|
80
|
+
[nzValue]="child.value"
|
81
|
+
[nzDisabled]="child.disabled"
|
82
|
+
[nzLabel]="child.label"
|
83
|
+
>
|
84
|
+
</nz-option>
|
85
|
+
</nz-option-group>
|
86
|
+
|
87
|
+
<ng-template #selectoption>
|
88
|
+
<nz-option
|
89
|
+
[nzValue]="item.value"
|
90
|
+
[nzDisabled]="item.disabled"
|
91
|
+
[nzLabel]="item.label"
|
92
|
+
></nz-option>
|
93
|
+
</ng-template>
|
94
|
+
</ng-container>
|
95
|
+
</nz-select>
|
96
|
+
`, isInline: true, components: [{ type: i1.NzSelectComponent, selector: "nz-select", inputs: ["nzId", "nzSize", "nzStatus", "nzOptionHeightPx", "nzOptionOverflowSize", "nzDropdownClassName", "nzDropdownMatchSelectWidth", "nzDropdownStyle", "nzNotFoundContent", "nzPlaceHolder", "nzMaxTagCount", "nzDropdownRender", "nzCustomTemplate", "nzSuffixIcon", "nzClearIcon", "nzRemoveIcon", "nzMenuItemSelectedIcon", "nzTokenSeparators", "nzMaxTagPlaceholder", "nzMaxMultipleCount", "nzMode", "nzFilterOption", "compareWith", "nzAllowClear", "nzBorderless", "nzShowSearch", "nzLoading", "nzAutoFocus", "nzAutoClearSearchValue", "nzServerSearch", "nzDisabled", "nzOpen", "nzBackdrop", "nzOptions", "nzShowArrow"], outputs: ["nzOnSearch", "nzScrollToBottom", "nzOpenChange", "nzBlur", "nzFocus"], exportAs: ["nzSelect"] }, { type: i1.NzOptionGroupComponent, selector: "nz-option-group", inputs: ["nzLabel"], exportAs: ["nzOptionGroup"] }, { type: i1.NzOptionComponent, selector: "nz-option", inputs: ["nzLabel", "nzValue", "nzDisabled", "nzHide", "nzCustomContent"], exportAs: ["nzOption"] }], 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.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { type: i4.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }], pipes: { "async": i4.AsyncPipe, "formlySelectOptions": i5.FormlySelectOptionsPipe }, changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
97
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: FormlyFieldSelect, decorators: [{
|
98
|
+
type: Component,
|
99
|
+
args: [{
|
100
|
+
selector: 'formly-field-select',
|
101
|
+
template: `
|
102
|
+
<nz-select
|
103
|
+
#select
|
104
|
+
[class.ng-dirty]="showError"
|
105
|
+
[nzPlaceHolder]="props.placeholder ?? ''"
|
106
|
+
[compareWith]="props['compareWith']!"
|
107
|
+
[nzAllowClear]="props['allowClear']!!"
|
108
|
+
[nzAutoClearSearchValue]="props['autoClearSearchValue']"
|
109
|
+
[nzBackdrop]="props['backdrop']!!"
|
110
|
+
[nzBorderless]="props['borderless']"
|
111
|
+
[nzOpen]="props['open']!!"
|
112
|
+
[nzDropdownMatchSelectWidth]="props['dropdownMatchSelectWidth']!!"
|
113
|
+
[nzDropdownStyle]="props['dropdownStyle'] ?? null"
|
114
|
+
[nzCustomTemplate]="props['customTemplate'] ?? null"
|
115
|
+
[nzServerSearch]="props['serverSearch']!!"
|
116
|
+
[nzMaxMultipleCount]="props['maxMultipleCount']!"
|
117
|
+
[nzMode]="props['mode']!"
|
118
|
+
[nzShowSearch]="props['showSearch']!!"
|
119
|
+
[nzSize]="props['size']!"
|
120
|
+
[nzStatus]="props['status']!"
|
121
|
+
[nzLoading]="props['loading']!!"
|
122
|
+
[nzShowArrow]="props['showArrow']!!"
|
123
|
+
[nzMaxTagCount]="props['maxTagCount']"
|
124
|
+
[nzMaxTagPlaceholder]="props['maxTagPlaceholder'] ?? null"
|
125
|
+
[nzOptionHeightPx]="props['optionHeightPx']!"
|
126
|
+
[nzOptionOverflowSize]="props['optionOverflowSize']!"
|
127
|
+
[formControl]="formControl"
|
128
|
+
[formlyAttributes]="field"
|
129
|
+
(ngModelChange)="props.change && props.change(field, $event)"
|
130
|
+
(nzBlur)="props.blur && props.blur(field, $event)"
|
131
|
+
(nzFocus)="props.focus && props.focus(field, $event)"
|
132
|
+
(nzOpenChange)="props['openChange'] && props['openChange'](field, $event)"
|
133
|
+
(nzScrollToBottom)="props['scrollToBottom'] && props['scrollToBottom'](field, $event)"
|
134
|
+
(nzOnSearch)="props['onSearch'] && props['onSearch'](field, $event)"
|
135
|
+
>
|
136
|
+
<ng-container *ngFor="let item of to.options | formlySelectOptions: field | async">
|
137
|
+
<nz-option-group [nzLabel]="item.label" *ngIf="item.group; else selectoption">
|
138
|
+
<nz-option
|
139
|
+
*ngFor="let child of item.group"
|
140
|
+
[nzValue]="child.value"
|
141
|
+
[nzDisabled]="child.disabled"
|
142
|
+
[nzLabel]="child.label"
|
143
|
+
>
|
144
|
+
</nz-option>
|
145
|
+
</nz-option-group>
|
146
|
+
|
147
|
+
<ng-template #selectoption>
|
148
|
+
<nz-option
|
149
|
+
[nzValue]="item.value"
|
150
|
+
[nzDisabled]="item.disabled"
|
151
|
+
[nzLabel]="item.label"
|
152
|
+
></nz-option>
|
153
|
+
</ng-template>
|
154
|
+
</ng-container>
|
155
|
+
</nz-select>
|
156
|
+
`,
|
157
|
+
changeDetection: ChangeDetectionStrategy.OnPush
|
158
|
+
}]
|
159
|
+
}], propDecorators: { select: [{
|
160
|
+
type: ViewChild,
|
161
|
+
args: ['select', { static: true }]
|
162
|
+
}] } });
|
163
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic2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HRoJ10hIVwiXHJcbiAgICAgIFtuekRyb3Bkb3duU3R5bGVdPVwicHJvcHNbJ2Ryb3Bkb3duU3R5bGUnXSA/PyBudWxsXCJcclxuICAgICAgW256Q3VzdG9tVGVtcGxhdGVdPVwicHJvcHNbJ2N1c3RvbVRlbXBsYXRlJ10gPz8gbnVsbFwiXHJcbiAgICAgIFtuelNlcnZlclNlYXJjaF09XCJwcm9wc1snc2VydmVyU2VhcmNoJ10hIVwiXHJcbiAgICAgIFtuek1heE11bHRpcGxlQ291bnRdPVwicHJvcHNbJ21heE11bHRpcGxlQ291bnQnXSFcIlxyXG4gICAgICBbbnpNb2RlXT1cInByb3BzWydtb2RlJ10hXCJcclxuICAgICAgW256U2hvd1NlYXJjaF09XCJwcm9wc1snc2hvd1NlYXJjaCddISFcIlxyXG4gICAgICBbbnpTaXplXT1cInByb3BzWydzaXplJ10hXCJcclxuICAgICAgW256U3RhdHVzXT1cInByb3BzWydzdGF0dXMnXSFcIlxyXG4gICAgICBbbnpMb2FkaW5nXT1cInByb3BzWydsb2FkaW5nJ10hIVwiXHJcbiAgICAgIFtuelNob3dBcnJvd109XCJwcm9wc1snc2hvd0Fycm93J10hIVwiXHJcbiAgICAgIFtuek1heFRhZ0NvdW50XT1cInByb3BzWydtYXhUYWdDb3VudCddXCJcclxuICAgICAgW256TWF4VGFnUGxhY2Vob2xkZXJdPVwicHJvcHNbJ21heFRhZ1BsYWNlaG9sZGVyJ10gPz8gbnVsbFwiXHJcbiAgICAgIFtuek9wdGlvbkhlaWdodFB4XT1cInByb3BzWydvcHRpb25IZWlnaHRQeCddIVwiXHJcbiAgICAgIFtuek9wdGlvbk92ZXJmbG93U2l6ZV09XCJwcm9wc1snb3B0aW9uT3ZlcmZsb3dTaXplJ10hXCJcclxuICAgICAgW2Zvcm1Db250cm9sXT1cImZvcm1Db250cm9sXCJcclxuICAgICAgW2Zvcm1seUF0dHJpYnV0ZXNdPVwiZmllbGRcIlxyXG4gICAgICAobmdNb2RlbENo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bHNlLFxyXG4gICAgICBtYXhNdWx0aXBsZUNvdW50OiBJbmZpbml0eSxcclxuICAgICAgbW9kZTogJ2RlZmF1bHQnIGFzIGNvbnN0LFxyXG4gICAgICBzaG93U2VhcmNoOiBmYWxzZSxcclxuICAgICAgc2l6ZTogJ2RlZmF1bHQnIGFzIGNvbnN0LFxyXG4gICAgICBzdGF0dXM6ICcnIGFzIGNvbnN0LFxyXG4gICAgICB0b2tlblNlcGFyYXRvcnM6IFtdLFxyXG4gICAgICBsb2FkaW5nOiBmYWxzZSxcclxuICAgICAgb3B0aW9uSGVpZ2h0UHg6IDMyLFxyXG4gICAgICBvcHRpb25PdmVyZmxvd1NpemU6IDhcclxuICAgIH1cclxuICB9O1xyXG4gIEBWaWV3Q2hpbGQoJ3NlbGVjdCcsIHsgc3RhdGljOiB0cnVlIH0pIHNlbGVjdCE6IE56U2VsZWN0Q29tcG9uZW50O1xyXG4gIG5nT25Jbml0KCk6IHZvaWQge1xyXG4gICAgaWYgKHRoaXMucHJvcHNbJ2ZpbHRlck9wdGlvbiddIGluc3RhbmNlb2YgRnVuY3Rpb24pIHtcclxuICAgICAgdGhpcy5zZWxlY3QubnpGaWx0ZXJPcHRpb24gPSB0aGlzLnByb3BzWydmaWx0ZXJPcHRpb24nXSBhcyBhbnk7XHJcbiAgICB9XHJcbiAgfVxyXG59XHJcbiJdfQ==
|
@@ -0,0 +1,5 @@
|
|
1
|
+
/**
|
2
|
+
* Generated bundle index. Do not edit.
|
3
|
+
*/
|
4
|
+
export * from './public_api';
|
5
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibmd4LWZvcm1seS16b3Jyby1hbnRkLXNsaWRlci5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uL3BhY2thZ2VzL2Zvcm1seWFudGQvc2xpZGVyL3NyYy9uZ3gtZm9ybWx5LXpvcnJvLWFudGQtc2xpZGVyLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBOztHQUVHO0FBRUgsY0FBYyxjQUFjLENBQUMiLCJzb3VyY2VzQ29udGVudCI6WyIvKipcbiAqIEdlbmVyYXRlZCBidW5kbGUgaW5kZXguIERvIG5vdCBlZGl0LlxuICovXG5cbmV4cG9ydCAqIGZyb20gJy4vcHVibGljX2FwaSc7XG4iXX0=
|
@@ -0,0 +1,3 @@
|
|
1
|
+
export { FormlyNzSliderModule } from './slider.module';
|
2
|
+
export { FormlyFieldSlider } from './slider.type';
|
3
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicHVibGljX2FwaS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uL3BhY2thZ2VzL2Zvcm1seWFudGQvc2xpZGVyL3NyYy9wdWJsaWNfYXBpLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLE9BQU8sRUFBRSxvQkFBb0IsRUFBRSxNQUFNLGlCQUFpQixDQUFDO0FBQ3ZELE9BQU8sRUFBRSxpQkFBaUIsRUFBMEIsTUFBTSxlQUFlLENBQUMiLCJzb3VyY2VzQ29udGVudCI6WyJleHBvcnQgeyBGb3JtbHlOelNsaWRlck1vZHVsZSB9IGZyb20gJy4vc2xpZGVyLm1vZHVsZSc7XHJcbmV4cG9ydCB7IEZvcm1seUZpZWxkU2xpZGVyLCBGb3JtbHlTbGlkZUZpZWxkQ29uZmlnIH0gZnJvbSAnLi9zbGlkZXIudHlwZSc7XHJcbiJdfQ==
|
@@ -0,0 +1,53 @@
|
|
1
|
+
import { NgModule } from '@angular/core';
|
2
|
+
import { CommonModule } from '@angular/common';
|
3
|
+
import { ReactiveFormsModule } from '@angular/forms';
|
4
|
+
import { FormlyModule } from '@ngx-formly/core';
|
5
|
+
import { FormlyNzFormFieldModule } from 'ngx-formly-zorro-antd/form-field';
|
6
|
+
import { FormlyFieldSlider } from './slider.type';
|
7
|
+
import { NzSliderModule } from 'ng-zorro-antd/slider';
|
8
|
+
import * as i0 from "@angular/core";
|
9
|
+
import * as i1 from "@ngx-formly/core";
|
10
|
+
export class FormlyNzSliderModule {
|
11
|
+
}
|
12
|
+
FormlyNzSliderModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: FormlyNzSliderModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
13
|
+
FormlyNzSliderModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: FormlyNzSliderModule, declarations: [FormlyFieldSlider], imports: [CommonModule,
|
14
|
+
ReactiveFormsModule,
|
15
|
+
FormlyNzFormFieldModule,
|
16
|
+
NzSliderModule, i1.FormlyModule] });
|
17
|
+
FormlyNzSliderModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: FormlyNzSliderModule, imports: [[
|
18
|
+
CommonModule,
|
19
|
+
ReactiveFormsModule,
|
20
|
+
FormlyNzFormFieldModule,
|
21
|
+
NzSliderModule,
|
22
|
+
FormlyModule.forChild({
|
23
|
+
types: [
|
24
|
+
{
|
25
|
+
name: 'slider',
|
26
|
+
component: FormlyFieldSlider,
|
27
|
+
wrappers: ['form-field']
|
28
|
+
}
|
29
|
+
]
|
30
|
+
})
|
31
|
+
]] });
|
32
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: FormlyNzSliderModule, decorators: [{
|
33
|
+
type: NgModule,
|
34
|
+
args: [{
|
35
|
+
declarations: [FormlyFieldSlider],
|
36
|
+
imports: [
|
37
|
+
CommonModule,
|
38
|
+
ReactiveFormsModule,
|
39
|
+
FormlyNzFormFieldModule,
|
40
|
+
NzSliderModule,
|
41
|
+
FormlyModule.forChild({
|
42
|
+
types: [
|
43
|
+
{
|
44
|
+
name: 'slider',
|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