ngx-formly-zorro-antd 17.0.10 → 17.1.0
Sign up to get free protection for your applications and to get access to all the features.
- package/README.md +1 -1
- package/autocomplete/autocomplete.props.d.ts +2 -4
- package/card-wrapper/card-wrapper.props.d.ts +3 -2
- package/common/interface.d.ts +3 -1
- package/esm2022/autocomplete/autocomplete.props.mjs +1 -1
- package/esm2022/autocomplete/public_api.mjs +1 -1
- package/esm2022/button/button.module.mjs +1 -1
- package/esm2022/button/button.type.mjs +123 -123
- package/esm2022/button/public_api.mjs +1 -1
- package/esm2022/button-group/button-group.module.mjs +1 -1
- package/esm2022/button-group/button-group.type.mjs +67 -67
- package/esm2022/button-group/public_api.mjs +1 -1
- package/esm2022/card/card.module.mjs +1 -1
- package/esm2022/card/card.type.mjs +51 -51
- package/esm2022/card/public_api.mjs +1 -1
- package/esm2022/card-wrapper/card-wrapper.module.mjs +1 -1
- package/esm2022/card-wrapper/card-wrapper.props.mjs +1 -1
- package/esm2022/card-wrapper/card.wrapper.mjs +37 -37
- package/esm2022/card-wrapper/public_api.mjs +1 -1
- package/esm2022/cascader/cascader.module.mjs +1 -1
- package/esm2022/cascader/cascader.type.mjs +65 -65
- package/esm2022/cascader/public_api.mjs +1 -1
- package/esm2022/checkbox/checkbox.module.mjs +1 -1
- package/esm2022/checkbox/checkbox.type.mjs +39 -39
- package/esm2022/checkbox/public_api.mjs +1 -1
- package/esm2022/common/common.module.mjs +1 -1
- package/esm2022/common/formly-box-templates.directive.mjs +1 -1
- package/esm2022/common/formly-utils.mjs +1 -1
- package/esm2022/common/interface.mjs +1 -1
- package/esm2022/common/public_api.mjs +1 -1
- package/esm2022/datepicker/datepicker.module.mjs +1 -1
- package/esm2022/datepicker/datepicker.props.mjs +1 -1
- package/esm2022/datepicker/datepicker.type.mjs +149 -149
- package/esm2022/datepicker/public_api.mjs +1 -1
- package/esm2022/extension/public_api.mjs +1 -1
- package/esm2022/extension/value-changes-extension.mjs +1 -1
- package/esm2022/form-field/form-field.module.mjs +1 -1
- package/esm2022/form-field/form-field.props.mjs +1 -1
- package/esm2022/form-field/form-field.wrapper.mjs +125 -125
- package/esm2022/form-field/public_api.mjs +1 -1
- package/esm2022/grid/grid.module.mjs +1 -1
- package/esm2022/grid/grid.props.mjs +1 -1
- package/esm2022/grid/grid.type.mjs +59 -59
- package/esm2022/grid/public_api.mjs +1 -1
- package/esm2022/index.mjs +1 -1
- package/esm2022/input/input.module.mjs +1 -1
- package/esm2022/input/input.props.mjs +1 -1
- package/esm2022/input/input.type.mjs +297 -286
- package/esm2022/input/public_api.mjs +1 -1
- package/esm2022/input-group/input-group.module.mjs +1 -1
- package/esm2022/input-group/input-group.props.mjs +1 -1
- package/esm2022/input-group/input-group.type.mjs +39 -39
- package/esm2022/input-group/public_api.mjs +1 -1
- package/esm2022/input-number/input-number.module.mjs +1 -1
- package/esm2022/input-number/input-number.props.mjs +1 -1
- package/esm2022/input-number/input-number.type.mjs +89 -89
- package/esm2022/input-number/public_api.mjs +1 -1
- package/esm2022/lib/ui-ng-zorro-antd.mjs +1 -1
- package/esm2022/lib/ui-ng-zorro-antd.module.mjs +1 -1
- package/esm2022/radio/public_api.mjs +1 -1
- package/esm2022/radio/radio.module.mjs +1 -1
- package/esm2022/radio/radio.type.mjs +81 -81
- package/esm2022/rate/public_api.mjs +1 -1
- package/esm2022/rate/rate.module.mjs +1 -1
- package/esm2022/rate/rate.type.mjs +33 -33
- package/esm2022/ref-template/public_api.mjs +1 -1
- package/esm2022/ref-template/ref-template.module.mjs +1 -1
- package/esm2022/ref-template/ref-template.type.mjs +9 -9
- package/esm2022/select/public_api.mjs +1 -1
- package/esm2022/select/select.module.mjs +1 -1
- package/esm2022/select/select.props.mjs +1 -1
- package/esm2022/select/select.type.mjs +123 -123
- package/esm2022/slider/public_api.mjs +1 -1
- package/esm2022/slider/slider.module.mjs +1 -1
- package/esm2022/slider/slider.type.mjs +33 -33
- package/esm2022/space/public_api.mjs +1 -1
- package/esm2022/space/space.module.mjs +1 -1
- package/esm2022/space/space.type.mjs +27 -27
- package/esm2022/switch/public_api.mjs +1 -1
- package/esm2022/switch/switch.module.mjs +1 -1
- package/esm2022/switch/switch.type.mjs +25 -25
- package/esm2022/tabs/public_api.mjs +1 -1
- package/esm2022/tabs/tabs.module.mjs +1 -1
- package/esm2022/tabs/tabs.props.mjs +1 -1
- package/esm2022/tabs/tabs.wrapper.mjs +79 -79
- package/esm2022/text-value/ngx-formly-zorro-antd-text-value.mjs +5 -0
- package/esm2022/text-value/public_api.mjs +3 -0
- package/esm2022/text-value/text-value.module.mjs +46 -0
- package/esm2022/text-value/text-value.type.mjs +68 -0
- package/esm2022/textarea/public_api.mjs +1 -1
- package/esm2022/textarea/textarea.module.mjs +1 -1
- package/esm2022/textarea/textarea.type.mjs +113 -113
- package/esm2022/timepicker/public_api.mjs +1 -1
- package/esm2022/timepicker/timepicker.module.mjs +1 -1
- package/esm2022/timepicker/timepicker.type.mjs +61 -61
- package/esm2022/transfer/public_api.mjs +1 -1
- package/esm2022/transfer/transfer.component.mjs +49 -49
- package/esm2022/transfer/transfer.module.mjs +1 -1
- package/esm2022/transfer/transfer.type.mjs +47 -47
- package/esm2022/tree-select/public_api.mjs +1 -1
- package/esm2022/tree-select/tree-select.module.mjs +1 -1
- package/esm2022/tree-select/tree-select.type.mjs +69 -69
- package/esm2022/upload/public_api.mjs +1 -1
- package/esm2022/upload/upload.component.mjs +145 -145
- package/esm2022/upload/upload.module.mjs +1 -1
- package/esm2022/upload/upload.props.mjs +1 -1
- package/esm2022/upload/upload.type.mjs +88 -87
- package/fesm2022/ngx-formly-zorro-antd-button-group.mjs +66 -66
- package/fesm2022/ngx-formly-zorro-antd-button-group.mjs.map +1 -1
- package/fesm2022/ngx-formly-zorro-antd-button.mjs +122 -122
- package/fesm2022/ngx-formly-zorro-antd-button.mjs.map +1 -1
- package/fesm2022/ngx-formly-zorro-antd-card-wrapper.mjs +36 -36
- package/fesm2022/ngx-formly-zorro-antd-card-wrapper.mjs.map +1 -1
- package/fesm2022/ngx-formly-zorro-antd-card.mjs +50 -50
- package/fesm2022/ngx-formly-zorro-antd-card.mjs.map +1 -1
- package/fesm2022/ngx-formly-zorro-antd-cascader.mjs +64 -64
- package/fesm2022/ngx-formly-zorro-antd-cascader.mjs.map +1 -1
- package/fesm2022/ngx-formly-zorro-antd-checkbox.mjs +38 -38
- package/fesm2022/ngx-formly-zorro-antd-checkbox.mjs.map +1 -1
- package/fesm2022/ngx-formly-zorro-antd-common.mjs.map +1 -1
- package/fesm2022/ngx-formly-zorro-antd-datepicker.mjs +148 -148
- package/fesm2022/ngx-formly-zorro-antd-datepicker.mjs.map +1 -1
- package/fesm2022/ngx-formly-zorro-antd-extension.mjs.map +1 -1
- package/fesm2022/ngx-formly-zorro-antd-form-field.mjs +124 -124
- package/fesm2022/ngx-formly-zorro-antd-form-field.mjs.map +1 -1
- package/fesm2022/ngx-formly-zorro-antd-grid.mjs +58 -58
- package/fesm2022/ngx-formly-zorro-antd-grid.mjs.map +1 -1
- package/fesm2022/ngx-formly-zorro-antd-input-group.mjs +38 -38
- package/fesm2022/ngx-formly-zorro-antd-input-group.mjs.map +1 -1
- package/fesm2022/ngx-formly-zorro-antd-input-number.mjs +88 -88
- package/fesm2022/ngx-formly-zorro-antd-input-number.mjs.map +1 -1
- package/fesm2022/ngx-formly-zorro-antd-input.mjs +297 -286
- package/fesm2022/ngx-formly-zorro-antd-input.mjs.map +1 -1
- package/fesm2022/ngx-formly-zorro-antd-radio.mjs +80 -80
- package/fesm2022/ngx-formly-zorro-antd-radio.mjs.map +1 -1
- package/fesm2022/ngx-formly-zorro-antd-rate.mjs +32 -32
- package/fesm2022/ngx-formly-zorro-antd-rate.mjs.map +1 -1
- package/fesm2022/ngx-formly-zorro-antd-ref-template.mjs +8 -8
- package/fesm2022/ngx-formly-zorro-antd-ref-template.mjs.map +1 -1
- package/fesm2022/ngx-formly-zorro-antd-select.mjs +122 -122
- package/fesm2022/ngx-formly-zorro-antd-select.mjs.map +1 -1
- package/fesm2022/ngx-formly-zorro-antd-slider.mjs +32 -32
- package/fesm2022/ngx-formly-zorro-antd-slider.mjs.map +1 -1
- package/fesm2022/ngx-formly-zorro-antd-space.mjs +26 -26
- package/fesm2022/ngx-formly-zorro-antd-space.mjs.map +1 -1
- package/fesm2022/ngx-formly-zorro-antd-switch.mjs +24 -24
- package/fesm2022/ngx-formly-zorro-antd-switch.mjs.map +1 -1
- package/fesm2022/ngx-formly-zorro-antd-tabs.mjs +78 -78
- package/fesm2022/ngx-formly-zorro-antd-tabs.mjs.map +1 -1
- package/fesm2022/ngx-formly-zorro-antd-text-value.mjs +115 -0
- package/fesm2022/ngx-formly-zorro-antd-text-value.mjs.map +1 -0
- package/fesm2022/ngx-formly-zorro-antd-textarea.mjs +112 -112
- package/fesm2022/ngx-formly-zorro-antd-textarea.mjs.map +1 -1
- package/fesm2022/ngx-formly-zorro-antd-timepicker.mjs +60 -60
- package/fesm2022/ngx-formly-zorro-antd-timepicker.mjs.map +1 -1
- package/fesm2022/ngx-formly-zorro-antd-transfer.mjs +94 -94
- package/fesm2022/ngx-formly-zorro-antd-transfer.mjs.map +1 -1
- package/fesm2022/ngx-formly-zorro-antd-tree-select.mjs +68 -68
- package/fesm2022/ngx-formly-zorro-antd-tree-select.mjs.map +1 -1
- package/fesm2022/ngx-formly-zorro-antd-upload.mjs +230 -230
- package/fesm2022/ngx-formly-zorro-antd-upload.mjs.map +1 -1
- package/fesm2022/ngx-formly-zorro-antd.mjs.map +1 -1
- package/form-field/form-field.props.d.ts +8 -16
- package/grid/grid.props.d.ts +6 -9
- package/input/input.type.d.ts +6 -1
- package/input-group/input-group.props.d.ts +4 -0
- package/package.json +24 -18
- package/text-value/index.d.ts +5 -0
- package/text-value/public_api.d.ts +2 -0
- package/text-value/text-value.module.d.ts +11 -0
- package/text-value/text-value.type.d.ts +37 -0
- package/tree-select/tree-select.type.d.ts +2 -3
- package/upload/upload.component.d.ts +3 -4
- package/autocomplete/package.json +0 -3
- package/button/package.json +0 -3
- package/button-group/package.json +0 -3
- package/card/package.json +0 -3
- package/card-wrapper/package.json +0 -3
- package/cascader/package.json +0 -3
- package/checkbox/package.json +0 -3
- package/common/package.json +0 -3
- package/datepicker/package.json +0 -3
- package/extension/package.json +0 -3
- package/form-field/package.json +0 -3
- package/grid/package.json +0 -3
- package/input/package.json +0 -3
- package/input-group/package.json +0 -3
- package/input-number/package.json +0 -3
- package/radio/package.json +0 -3
- package/rate/package.json +0 -3
- package/ref-template/package.json +0 -3
- package/select/package.json +0 -3
- package/slider/package.json +0 -3
- package/space/package.json +0 -3
- package/switch/package.json +0 -3
- package/tabs/package.json +0 -3
- package/textarea/package.json +0 -3
- package/timepicker/package.json +0 -3
- package/transfer/package.json +0 -3
- package/tree-select/package.json +0 -3
- package/upload/package.json +0 -3
package/README.md
CHANGED
@@ -1 +1 @@
|
|
1
|
-
# formlyantd
|
1
|
+
# formlyantd
|
@@ -1,4 +1,4 @@
|
|
1
|
-
import type { CompareWith } from 'ng-zorro-antd/core/types';
|
1
|
+
import type { CompareWith, NgStyleInterface } from 'ng-zorro-antd/core/types';
|
2
2
|
import type { AutocompleteDataSource } from 'ng-zorro-antd/auto-complete';
|
3
3
|
export interface AutocompleteProps {
|
4
4
|
/**
|
@@ -26,9 +26,7 @@ export interface AutocompleteProps {
|
|
26
26
|
/**
|
27
27
|
* 下拉根元素的样式
|
28
28
|
*/
|
29
|
-
overlayStyle?:
|
30
|
-
[key: string]: string;
|
31
|
-
};
|
29
|
+
overlayStyle?: NgStyleInterface;
|
32
30
|
/**
|
33
31
|
* 与 SelectControlValueAccessor 相同
|
34
32
|
* @default
|
@@ -1,10 +1,11 @@
|
|
1
1
|
import { TemplateRef } from '@angular/core';
|
2
|
+
import type { NgClassType } from 'ngx-formly-zorro-antd/common';
|
2
3
|
import type { NzSizeDSType, NgStyleInterface } from 'ng-zorro-antd/core/types';
|
3
4
|
export interface CardWrapperProps {
|
4
5
|
/**
|
5
|
-
* 自定义
|
6
|
+
* 自定义css类
|
6
7
|
*/
|
7
|
-
|
8
|
+
ngClass?: NgClassType;
|
8
9
|
/**
|
9
10
|
* 卡片操作组,位置在卡片底部
|
10
11
|
*/
|
package/common/interface.d.ts
CHANGED
@@ -1,5 +1,7 @@
|
|
1
1
|
import { FormlyFieldConfig, FormlyFieldProps } from '@ngx-formly/core';
|
2
|
-
import type { NzSafeAny } from 'ng-zorro-antd/core/types';
|
2
|
+
import type { NzSafeAny, NgClassInterface, NgStyleInterface } from 'ng-zorro-antd/core/types';
|
3
|
+
export type NgClassType = string | string[] | Set<string> | NgClassInterface | null;
|
4
|
+
export type NgStyleType = NgStyleInterface | null;
|
3
5
|
/**
|
4
6
|
* 控件模板参数配置项
|
5
7
|
*/
|
@@ -1,2 +1,2 @@
|
|
1
1
|
export {};
|
2
|
-
//# sourceMappingURL=data:application/json;base64,
|
2
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYXV0b2NvbXBsZXRlLnByb3BzLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vcGFja2FnZXMvZm9ybWx5YW50ZC9hdXRvY29tcGxldGUvc3JjL2F1dG9jb21wbGV0ZS5wcm9wcy50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiIiwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0IHR5cGUgeyBDb21wYXJlV2l0aCwgTmdTdHlsZUludGVyZmFjZSB9IGZyb20gJ25nLXpvcnJvLWFudGQvY29yZS90eXBlcyc7XHJcbmltcG9ydCB0eXBlIHsgQXV0b2NvbXBsZXRlRGF0YVNvdXJjZSB9IGZyb20gJ25nLXpvcnJvLWFudGQvYXV0by1jb21wbGV0ZSc7XHJcblxyXG5leHBvcnQgaW50ZXJmYWNlIEF1dG9jb21wbGV0ZVByb3BzIHtcclxuICAvKipcclxuICAgKiDkvb/nlKjplK7nm5jpgInmi6npgInpobnnmoTml7blgJnvvIzkvJrmiorlvZPliY3pq5jkuq7pobnnmoTlgLzljbPml7blm57loavliLDovpPlhaXmoYbkuK1cclxuICAgKiBAZGVmYXVsdCBmYWxzZVxyXG4gICAqL1xyXG4gIGJhY2tmaWxsPzogYm9vbGVhbjtcclxuXHJcbiAgLyoqXHJcbiAgICog6Ieq5Yqo5a6M5oiQ55qE5pWw5o2u5rqQXHJcbiAgICovXHJcbiAgZGF0YVNvdXJjZT86IEF1dG9jb21wbGV0ZURhdGFTb3VyY2U7XHJcblxyXG4gIC8qKlxyXG4gICAqIOaYr+WQpum7mOiupOmrmOS6ruesrOS4gOS4qumAiemhuVxyXG4gICAqIEBkZWZhdWx0IHRydWVcclxuICAgKi9cclxuICBkZWZhdWx0QWN0aXZlRmlyc3RPcHRpb24/OiBib29sZWFuO1xyXG5cclxuICAvKipcclxuICAgKiDoh6rlrprkuYnlrr3luqbljZXkvY0gcHhcclxuICAgKi9cclxuICB3aWR0aD86IG51bWJlcjtcclxuXHJcbiAgLyoqXHJcbiAgICog5LiL5ouJ5qC55YWD57Sg55qE57G75ZCN56ewXHJcbiAgICovXHJcbiAgb3ZlcmxheUNsYXNzTmFtZT86IHN0cmluZztcclxuXHJcbiAgLyoqXHJcbiAgICog5LiL5ouJ5qC55YWD57Sg55qE5qC35byPXHJcbiAgICovXHJcbiAgb3ZlcmxheVN0eWxlPzogTmdTdHlsZUludGVyZmFjZTtcclxuXHJcbiAgLyoqXHJcbiAgICog5LiOIFNlbGVjdENvbnRyb2xWYWx1ZUFjY2Vzc29yIOebuOWQjFxyXG4gICAqIEBkZWZhdWx0XHJcbiAgICogKG8xOiBhbnksIG8yOiBhbnkpID0+IG8xPT09bzJcclxuICAgKi9cclxuICBjb21wYXJlV2l0aD86IENvbXBhcmVXaXRoO1xyXG59XHJcbiJdfQ==
|
@@ -1,2 +1,2 @@
|
|
1
1
|
export {};
|
2
|
-
//# sourceMappingURL=data:application/json;base64,
|
2
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicHVibGljX2FwaS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uL3BhY2thZ2VzL2Zvcm1seWFudGQvYXV0b2NvbXBsZXRlL3NyYy9wdWJsaWNfYXBpLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiIiLCJzb3VyY2VzQ29udGVudCI6WyJleHBvcnQgeyBBdXRvY29tcGxldGVQcm9wcyB9IGZyb20gJy4vYXV0b2NvbXBsZXRlLnByb3BzJztcclxuIl19
|
@@ -62,4 +62,4 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.6", ngImpor
|
|
62
62
|
]
|
63
63
|
}]
|
64
64
|
}] });
|
65
|
-
//# sourceMappingURL=data:application/json;base64,
|
65
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYnV0dG9uLm1vZHVsZS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uL3BhY2thZ2VzL2Zvcm1seWFudGQvYnV0dG9uL3NyYy9idXR0b24ubW9kdWxlLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLE9BQU8sRUFBRSxRQUFRLEVBQUUsTUFBTSxlQUFlLENBQUM7QUFDekMsT0FBTyxFQUFFLFlBQVksRUFBRSxNQUFNLGlCQUFpQixDQUFDO0FBQy9DLE9BQU8sRUFBRSxZQUFZLEVBQUUsTUFBTSxrQkFBa0IsQ0FBQztBQUVoRCxPQUFPLEVBQUUsaUJBQWlCLEVBQUUsTUFBTSxlQUFlLENBQUM7QUFDbEQsT0FBTyxFQUFFLGNBQWMsRUFBRSxNQUFNLDJCQUEyQixDQUFDO0FBQzNELE9BQU8sRUFBRSxjQUFjLEVBQUUsTUFBTSxzQkFBc0IsQ0FBQztBQUN0RCxPQUFPLEVBQUUsWUFBWSxFQUFFLE1BQU0sb0JBQW9CL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HRlbmRzOiAnYnV0dG9uJ1xyXG4gICAgICAgIH1cclxuICAgICAgXVxyXG4gICAgfSlcclxuICBdXHJcbn0pXHJcbmV4cG9ydCBjbGFzcyBGb3JtbHlOekJ1dHRvbk1vZHVsZSB7fVxyXG4iXX0=
|
@@ -31,138 +31,138 @@ export class FormlyFieldButton extends FieldType {
|
|
31
31
|
return resolveTplName(this.props, this.fieldTemplates, 'text');
|
32
32
|
}
|
33
33
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.6", ngImport: i0, type: FormlyFieldButton, deps: [{ token: i1.FormlyBoxTemplates, optional: true }], target: i0.ɵɵFactoryTarget.Component }); }
|
34
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "17.0.6", type: FormlyFieldButton, selector: "formly-field-button", usesInheritance: true, ngImport: i0, template: `
|
35
|
-
@if (props.type === 'a') {
|
36
|
-
<a
|
37
|
-
nz-button
|
38
|
-
[formlyAttributes]="field"
|
39
|
-
[attr.title]="props['title']"
|
40
|
-
[nzGhost]="props['ghost']!!"
|
41
|
-
[nzLoading]="props['loading']!!"
|
42
|
-
[nzShape]="props['shape'] ?? null"
|
43
|
-
[nzSize]="props['size']!"
|
44
|
-
[nzBlock]="props['block']!!"
|
45
|
-
[nzDanger]="props['danger']!!"
|
46
|
-
[nzType]="props['nzType'] ?? 'link'"
|
47
|
-
[ngClass]="props['
|
48
|
-
>
|
49
|
-
@if (props['beforeIcon']) {
|
50
|
-
<span nz-icon [nzType]="props['beforeIcon']"></span>
|
51
|
-
}
|
52
|
-
@if (hasText) {
|
53
|
-
<ng-container
|
54
|
-
*nzStringTemplateOutlet="text; context: { $implicit: field, options: props }"
|
55
|
-
>
|
56
|
-
{{ text }}
|
57
|
-
</ng-container>
|
58
|
-
}
|
59
|
-
@if (props['afterIcon']) {
|
60
|
-
<span nz-icon [nzType]="props['afterIcon']"></span>
|
61
|
-
}
|
62
|
-
</a>
|
63
|
-
} @else {
|
64
|
-
<button
|
65
|
-
[formlyAttributes]="field"
|
66
|
-
[attr.type]="field.type"
|
67
|
-
[attr.form]="props['formName']"
|
68
|
-
[attr.title]="props['title']"
|
69
|
-
[disabled]="props['disabled']!!"
|
70
|
-
[nzGhost]="props['ghost']!!"
|
71
|
-
[nzLoading]="props['loading']!!"
|
72
|
-
[nzShape]="props['shape'] ?? null"
|
73
|
-
[nzSize]="props['size']!"
|
74
|
-
[nzBlock]="props['block']!!"
|
75
|
-
[nzDanger]="props['danger']!!"
|
76
|
-
[nzType]="props['nzType'] ?? null"
|
77
|
-
[ngClass]="props['
|
78
|
-
nz-button
|
79
|
-
>
|
80
|
-
@if (props['beforeIcon']) {
|
81
|
-
<span nz-icon [nzType]="props['beforeIcon']"></span>
|
82
|
-
}
|
83
|
-
@if (hasText) {
|
84
|
-
<ng-container
|
85
|
-
*nzStringTemplateOutlet="text; context: { $implicit: field, options: props }"
|
86
|
-
>
|
87
|
-
{{ text }}
|
88
|
-
</ng-container>
|
89
|
-
}
|
90
|
-
@if (props['afterIcon']) {
|
91
|
-
<span nz-icon [nzType]="props['afterIcon']"></span>
|
92
|
-
}
|
93
|
-
</button>
|
94
|
-
}
|
34
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "17.0.6", type: FormlyFieldButton, selector: "formly-field-button", usesInheritance: true, ngImport: i0, template: `
|
35
|
+
@if (props.type === 'a') {
|
36
|
+
<a
|
37
|
+
nz-button
|
38
|
+
[formlyAttributes]="field"
|
39
|
+
[attr.title]="props['title']"
|
40
|
+
[nzGhost]="props['ghost']!!"
|
41
|
+
[nzLoading]="props['loading']!!"
|
42
|
+
[nzShape]="props['shape'] ?? null"
|
43
|
+
[nzSize]="props['size']!"
|
44
|
+
[nzBlock]="props['block']!!"
|
45
|
+
[nzDanger]="props['danger']!!"
|
46
|
+
[nzType]="props['nzType'] ?? 'link'"
|
47
|
+
[ngClass]="props['ngClass']"
|
48
|
+
>
|
49
|
+
@if (props['beforeIcon']) {
|
50
|
+
<span nz-icon [nzType]="props['beforeIcon']"></span>
|
51
|
+
}
|
52
|
+
@if (hasText) {
|
53
|
+
<ng-container
|
54
|
+
*nzStringTemplateOutlet="text; context: { $implicit: field, options: props }"
|
55
|
+
>
|
56
|
+
{{ text }}
|
57
|
+
</ng-container>
|
58
|
+
}
|
59
|
+
@if (props['afterIcon']) {
|
60
|
+
<span nz-icon [nzType]="props['afterIcon']"></span>
|
61
|
+
}
|
62
|
+
</a>
|
63
|
+
} @else {
|
64
|
+
<button
|
65
|
+
[formlyAttributes]="field"
|
66
|
+
[attr.type]="field.type"
|
67
|
+
[attr.form]="props['formName']"
|
68
|
+
[attr.title]="props['title']"
|
69
|
+
[disabled]="props['disabled'] || formControl.disabled!!"
|
70
|
+
[nzGhost]="props['ghost']!!"
|
71
|
+
[nzLoading]="props['loading']!!"
|
72
|
+
[nzShape]="props['shape'] ?? null"
|
73
|
+
[nzSize]="props['size']!"
|
74
|
+
[nzBlock]="props['block']!!"
|
75
|
+
[nzDanger]="props['danger']!!"
|
76
|
+
[nzType]="props['nzType'] ?? null"
|
77
|
+
[ngClass]="props['ngClass']"
|
78
|
+
nz-button
|
79
|
+
>
|
80
|
+
@if (props['beforeIcon']) {
|
81
|
+
<span nz-icon [nzType]="props['beforeIcon']"></span>
|
82
|
+
}
|
83
|
+
@if (hasText) {
|
84
|
+
<ng-container
|
85
|
+
*nzStringTemplateOutlet="text; context: { $implicit: field, options: props }"
|
86
|
+
>
|
87
|
+
{{ text }}
|
88
|
+
</ng-container>
|
89
|
+
}
|
90
|
+
@if (props['afterIcon']) {
|
91
|
+
<span nz-icon [nzType]="props['afterIcon']"></span>
|
92
|
+
}
|
93
|
+
</button>
|
94
|
+
}
|
95
95
|
`, isInline: true, dependencies: [{ kind: "directive", type: i2.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i3.NzStringTemplateOutletDirective, selector: "[nzStringTemplateOutlet]", inputs: ["nzStringTemplateOutletContext", "nzStringTemplateOutlet"], exportAs: ["nzStringTemplateOutlet"] }, { kind: "component", type: i4.NzButtonComponent, selector: "button[nz-button], a[nz-button]", inputs: ["nzBlock", "nzGhost", "nzSearch", "nzLoading", "nzDanger", "disabled", "tabIndex", "nzType", "nzShape", "nzSize"], exportAs: ["nzButton"] }, { kind: "directive", type: i5.ɵ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"] }, { kind: "directive", type: i6.NzWaveDirective, selector: "[nz-wave],button[nz-button]:not([nzType=\"link\"]):not([nzType=\"text\"])", inputs: ["nzWaveExtraNode"], exportAs: ["nzWave"] }, { kind: "directive", type: i7.NzIconDirective, selector: "[nz-icon]", inputs: ["nzSpin", "nzRotate", "nzType", "nzTheme", "nzTwotoneColor", "nzIconfont"], exportAs: ["nzIcon"] }, { kind: "directive", type: i8.ɵFormlyAttributes, selector: "[formlyAttributes]", inputs: ["formlyAttributes", "id"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
96
96
|
}
|
97
97
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.6", ngImport: i0, type: FormlyFieldButton, decorators: [{
|
98
98
|
type: Component,
|
99
99
|
args: [{
|
100
100
|
selector: 'formly-field-button',
|
101
|
-
template: `
|
102
|
-
@if (props.type === 'a') {
|
103
|
-
<a
|
104
|
-
nz-button
|
105
|
-
[formlyAttributes]="field"
|
106
|
-
[attr.title]="props['title']"
|
107
|
-
[nzGhost]="props['ghost']!!"
|
108
|
-
[nzLoading]="props['loading']!!"
|
109
|
-
[nzShape]="props['shape'] ?? null"
|
110
|
-
[nzSize]="props['size']!"
|
111
|
-
[nzBlock]="props['block']!!"
|
112
|
-
[nzDanger]="props['danger']!!"
|
113
|
-
[nzType]="props['nzType'] ?? 'link'"
|
114
|
-
[ngClass]="props['
|
115
|
-
>
|
116
|
-
@if (props['beforeIcon']) {
|
117
|
-
<span nz-icon [nzType]="props['beforeIcon']"></span>
|
118
|
-
}
|
119
|
-
@if (hasText) {
|
120
|
-
<ng-container
|
121
|
-
*nzStringTemplateOutlet="text; context: { $implicit: field, options: props }"
|
122
|
-
>
|
123
|
-
{{ text }}
|
124
|
-
</ng-container>
|
125
|
-
}
|
126
|
-
@if (props['afterIcon']) {
|
127
|
-
<span nz-icon [nzType]="props['afterIcon']"></span>
|
128
|
-
}
|
129
|
-
</a>
|
130
|
-
} @else {
|
131
|
-
<button
|
132
|
-
[formlyAttributes]="field"
|
133
|
-
[attr.type]="field.type"
|
134
|
-
[attr.form]="props['formName']"
|
135
|
-
[attr.title]="props['title']"
|
136
|
-
[disabled]="props['disabled']!!"
|
137
|
-
[nzGhost]="props['ghost']!!"
|
138
|
-
[nzLoading]="props['loading']!!"
|
139
|
-
[nzShape]="props['shape'] ?? null"
|
140
|
-
[nzSize]="props['size']!"
|
141
|
-
[nzBlock]="props['block']!!"
|
142
|
-
[nzDanger]="props['danger']!!"
|
143
|
-
[nzType]="props['nzType'] ?? null"
|
144
|
-
[ngClass]="props['
|
145
|
-
nz-button
|
146
|
-
>
|
147
|
-
@if (props['beforeIcon']) {
|
148
|
-
<span nz-icon [nzType]="props['beforeIcon']"></span>
|
149
|
-
}
|
150
|
-
@if (hasText) {
|
151
|
-
<ng-container
|
152
|
-
*nzStringTemplateOutlet="text; context: { $implicit: field, options: props }"
|
153
|
-
>
|
154
|
-
{{ text }}
|
155
|
-
</ng-container>
|
156
|
-
}
|
157
|
-
@if (props['afterIcon']) {
|
158
|
-
<span nz-icon [nzType]="props['afterIcon']"></span>
|
159
|
-
}
|
160
|
-
</button>
|
161
|
-
}
|
101
|
+
template: `
|
102
|
+
@if (props.type === 'a') {
|
103
|
+
<a
|
104
|
+
nz-button
|
105
|
+
[formlyAttributes]="field"
|
106
|
+
[attr.title]="props['title']"
|
107
|
+
[nzGhost]="props['ghost']!!"
|
108
|
+
[nzLoading]="props['loading']!!"
|
109
|
+
[nzShape]="props['shape'] ?? null"
|
110
|
+
[nzSize]="props['size']!"
|
111
|
+
[nzBlock]="props['block']!!"
|
112
|
+
[nzDanger]="props['danger']!!"
|
113
|
+
[nzType]="props['nzType'] ?? 'link'"
|
114
|
+
[ngClass]="props['ngClass']"
|
115
|
+
>
|
116
|
+
@if (props['beforeIcon']) {
|
117
|
+
<span nz-icon [nzType]="props['beforeIcon']"></span>
|
118
|
+
}
|
119
|
+
@if (hasText) {
|
120
|
+
<ng-container
|
121
|
+
*nzStringTemplateOutlet="text; context: { $implicit: field, options: props }"
|
122
|
+
>
|
123
|
+
{{ text }}
|
124
|
+
</ng-container>
|
125
|
+
}
|
126
|
+
@if (props['afterIcon']) {
|
127
|
+
<span nz-icon [nzType]="props['afterIcon']"></span>
|
128
|
+
}
|
129
|
+
</a>
|
130
|
+
} @else {
|
131
|
+
<button
|
132
|
+
[formlyAttributes]="field"
|
133
|
+
[attr.type]="field.type"
|
134
|
+
[attr.form]="props['formName']"
|
135
|
+
[attr.title]="props['title']"
|
136
|
+
[disabled]="props['disabled'] || formControl.disabled!!"
|
137
|
+
[nzGhost]="props['ghost']!!"
|
138
|
+
[nzLoading]="props['loading']!!"
|
139
|
+
[nzShape]="props['shape'] ?? null"
|
140
|
+
[nzSize]="props['size']!"
|
141
|
+
[nzBlock]="props['block']!!"
|
142
|
+
[nzDanger]="props['danger']!!"
|
143
|
+
[nzType]="props['nzType'] ?? null"
|
144
|
+
[ngClass]="props['ngClass']"
|
145
|
+
nz-button
|
146
|
+
>
|
147
|
+
@if (props['beforeIcon']) {
|
148
|
+
<span nz-icon [nzType]="props['beforeIcon']"></span>
|
149
|
+
}
|
150
|
+
@if (hasText) {
|
151
|
+
<ng-container
|
152
|
+
*nzStringTemplateOutlet="text; context: { $implicit: field, options: props }"
|
153
|
+
>
|
154
|
+
{{ text }}
|
155
|
+
</ng-container>
|
156
|
+
}
|
157
|
+
@if (props['afterIcon']) {
|
158
|
+
<span nz-icon [nzType]="props['afterIcon']"></span>
|
159
|
+
}
|
160
|
+
</button>
|
161
|
+
}
|
162
162
|
`,
|
163
163
|
changeDetection: ChangeDetectionStrategy.OnPush
|
164
164
|
}]
|
165
165
|
}], ctorParameters: () => [{ type: i1.FormlyBoxTemplates, decorators: [{
|
166
166
|
type: Optional
|
167
167
|
}] }] });
|
168
|
-
//# sourceMappingURL=data:application/json;base64,
|
168
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYnV0dG9uLnR5cGUuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi9wYWNrYWdlcy9mb3JtbHlhbnRkL2J1dHRvbi9zcmMvYnV0dG9uLnR5cGUudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsT0FBTyxFQUFFLFNBQVMsRUFBcUIsUUFBUSxFQUFFLHVCQUF1QixFQUFFLE1BQU0sZUFBZSxDQUFDO0FBQ2hHLE9BQU8sRUFBRSxTQUFTLEVBQW1CLE1BQU0sa0JBQWtCLENBQUM7QUFFOUQsT0FBTyxFQUVMLGtCQUFrQixFQUNsQixlQUFlLEVBQ2YsY0FBYyxFQUNmLE1BQU0sOEJBQThCLENBQUM7Ozs7Ozs7Ozs7QUFpSnRDLE1BQU0sT0FBTyxpQkFBa0IsU0FBUSxTQUF1QztJQVc1RSxZQUErQixjQUFrQztRQUMvRCxLQUFLLEVBQUUsQ0FBQztRQURxQixtQkFBYyxHQUFkLGNBQWMsQ0FBb0I7UUFWeEQsbUJBQWMsR0FBRztZQUN4QixLQUFLLEVBQUU7Z0JBQ0wsS0FBSyxFQUFFLEtBQUs7Z0JBQ1osT0FBTyxFQUFFLEtBQUs7Z0JBQ2QsS0FBSyxFQUFFLEtBQUs7Z0JBQ1osSUFBSSxFQUFFLFNBQWtCO2dCQUN4QixNQUFNLEVBQUUsS0FBSzthQUNkO1NBQ0YsQ0FBQztJQ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BmYWxzZVxyXG4gICAqL1xyXG4gIGxvYWRpbmc/OiBib29sZWFuO1xyXG5cclxuICAvKipcclxuICAgKiDorr7nva7mjInpkq7lvaLnirZcclxuICAgKi9cclxuICBzaGFwZT86IE56QnV0dG9uU2hhcGU7XHJcblxyXG4gIC8qKlxyXG4gICAqIOiuvue9ruaMiemSruWkp+Wwj1xyXG4gICAqIEBkZWZhdWx0IGRlZmF1bHRcclxuICAgKi9cclxuICBzaXplPzogTnpCdXR0b25TaXplO1xyXG5cclxuICAvKipcclxuICAgKiDorr7nva7mjInpkq7nsbvlnotcclxuICAgKi9cclxuICBuelR5cGU/OiBOekJ1dHRvblR5cGU7XHJcblxyXG4gIC8qKlxyXG4gICAqIOWwhuaMiemSruWuveW6puiwg+aVtOS4uuWFtueItuWuveW6pueahOmAiemhuVxyXG4gICAqIEBkZWZhdWx0IGZhbHNlXHJcbiAgICovXHJcbiAgYmxvY2s/OiBib29sZWFuO1xyXG5cclxuICAvKipcclxuICAgKiDorr7nva7ljbHpmanmjInpkq5cclxuICAgKiBAZGVmYXVsdCBmYWxzZVxyXG4gICAqL1xyXG4gIGRhbmdlcj86IGJvb2xlYW47XHJcblxyXG4gIC8qKlxyXG4gICAqIOaWh+Wtl+WJjemdoueahOWbvuagh1xyXG4gICAqL1xyXG4gIGJlZm9yZUljb24/OiBzdHJpbmc7XHJcblxyXG4gIC8qKlxyXG4gICAqIOaWh+Wtl+WQjumdoumdoueahOWbvuagh1xyXG4gICAqL1xyXG4gIGFmdGVySWNvbj86IHN0cmluZztcclxufVxyXG5cclxuZXhwb3J0IGludGVyZmFjZSBGb3JtbHlCdXR0b25GaWVsZENvbmZpZyBleHRlbmRzIE56Rm9ybWx5RmllbGRDb25maWc8QnV0dG9uUHJvcHM+IHtcclxuICB0eXBlOiAnYnV0dG9uJyB8ICdzdWJtaXQnIHwgJ3Jlc2V0JyB8IFR5cGU8Rm9ybWx5RmllbGRCdXR0b24+O1xyXG59XHJcblxyXG5AQ29tcG9uZW50KHtcclxuICBzZWxlY3RvcjogJ2Zvcm1seS1maWVsZC1idXR0b24nLFxyXG4gIHRlbXBsYXRlOiBgXHJcbiAgICBAaWYgKHByb3BzLnR5cGUgPT09ICdhJykge1xyXG4gICAgICA8YVxyXG4gICAgICAgIG56LWJ1dHRvblxyXG4gICAgICAgIFtmb3JtbHlBdHRyaWJ1dGVzXT1cImZpZWxkXCJcclxuICAgICAgICBbYXR0ci50aXRsZV09XCJwcm9wc1sndGl0bGUnXVwiXHJcbiAgICAgICAgW256R2hvc3RdPVwicHJvcHNbJ2dob3N0J10hIVwiXHJcbiAgICAgICAgW256TG9hZGluZ109XCJwcm9wc1snbG9hZGluZyddISFcIlxyXG4gICAgICAgIFtuelNoYXBlXT1cInByb3BzWydzaGFwZSddID8/IG51bGxcIlxyXG4gICAgICAgIFtuelNpemVdPVwicHJvcHNbJ3NpemUnXSFcIlxyXG4gICAgICAgIFtuekJsb2NrXT1cInByb3BzWydibG9jayddISFcIlxyXG4gICAgICAgIFtuekRhbmdlcl09XCJwcm9wc1snZGFuZ2VyJ10hIVwiXHJcbiAgICAgICAgW256VHlwZV09XCJwcm9wc1snbnpUeXBlJ10gPz8gJ2xpbmsnXCJcclxuICAgICAgICBbbmdDbGFzc109XCJwcm9wc1snbmdDbGFzcyddXCJcclxuICAgICAgPlxyXG4gICAgICAgIEBpZiAocHJvcHNbJ2JlZm9yZUljb24nXSkge1xyXG4gICAgICAgICAgPHNwYW4gbnotaWNvbiBbbnpUeXBlXT1cInByb3BzWydiZWZvcmVJY29uJ11cIj48L3NwYW4+XHJcbiAgICAgICAgfVxyXG4gICAgICAgIEBpZiAoaGFzVGV4dCkge1xyXG4gICAgICAgICAgPG5nLWNvbnRhaW5lclxyXG4gICAgICAgICAgICAqbnpTdHJpbmdUZW1wbGF0ZU91dGxldD1cInRleHQ7IGNvbnRleHQ6IHsgJGltcGxpY2l0OiBmaWVsZCwgb3B0aW9uczogcHJvcHMgfVwiXHJcbiAgICAgICAgICA+XHJcbiAgICAgICAgICAgIHt7IHRleHQgfX1cclxuICAgICAgICAgIDwvbmctY29udGFpbmVyPlxyXG4gICAgICAgIH1cclxuICAgICAgICBAaWYgKHByb3BzWydhZnRlckljb24nXSkge1xyXG4gICAgICAgICAgPHNwYW4gbnotaWNvbiBbbnpUeXBlXT1cInByb3BzWydhZnRlckljb24nXVwiPjwvc3Bhbj5cclxuICAgICAgICB9XHJcbiAgICAgIDwvYT5cclxuICAgIH0gQGVsc2Uge1xyXG4gICAgICA8YnV0dG9uXHJcbiAgICAgICAgW2Zvcm1seUF0dHJpYnV0ZXNdPVwiZmllbGRcIlxyXG4gICAgICAgIFthdHRyLnR5cGVdPVwiZmllbGQudHlwZVwiXHJcbiAgICAgICAgW2F0dHIuZm9ybV09XCJwcm9wc1snZm9ybU5hbWUnXVwiXHJcbiAgICAgICAgW2F0dHIudGl0bGVdPVwicHJvcHNbJ3RpdGxlJ11cIlxyXG4gICAgICAgIFtkaXNhYmxlZF09XCJwcm9wc1snZGlzYWJsZWQnXSB8fCBmb3JtQ29udHJvbC5kaXNhYmxlZCEhXCJcclxuICAgICAgICBbbnpHaG9zdF09XCJwcm9wc1snZ2hvc3QnXSEhXCJcclxuICAgICAgICBbbnpMb2FkaW5nXT1cInByb3BzWydsb2FkaW5nJ10hIVwiXHJcbiAgICAgICAgW256U2hhcGVdPVwicHJvcHNbJ3NoYXBlJ10gPz8gbnVsbFwiXHJcbiAgICAgICAgW256U2l6ZV09XCJwcm9wc1snc2l6ZSddIVwiXHJcbiAgICAgICAgW256QmxvY2tdPVwicHJvcHNbJ2Jsb2NrJ10hIVwiXHJcbiAgICAgICAgW256RGFuZ2VyXT1cInByb3BzWydkYW5nZXInXSEhXCJcclxuICAgICAgICBbbnpUeXBlXT1cInByb3BzWyduelR5cGUnXSA/PyBudWxsXCJcclxuICAgICAgICBbbmdDbGFzc109XCJwcm9wc1snbmdDbGFzcyddXCJcclxuICAgICAgICBuei1idXR0b25cclxuICAgICAgPlxyXG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cclxuXHJcbiAgY29uc3RydWN0b3IoQE9wdGlvbmFsKCkgcHVibGljIGZpZWxkVGVtcGxhdGVzOiBGb3JtbHlCb3hUZW1wbGF0ZXMpIHtcclxuICAgIHN1cGVyKCk7XHJcbiAgfVxyXG5cclxuICBnZXQgaGFzVGV4dCgpIHtcclxuICAgIHJldHVybiBoYXNUcGxOYW1lVmFsdWUodGhpcy5wcm9wcywgJ3RleHQnKTtcclxuICB9XHJcblxyXG4gIGdldCB0ZXh0KCkge1xyXG4gICAgcmV0dXJuIHJlc29sdmVUcGxOYW1lKHRoaXMucHJvcHMsIHRoaXMuZmllbGRUZW1wbGF0ZXMsICd0ZXh0Jyk7XHJcbiAgfVxyXG59XHJcbiJdfQ==
|
@@ -1,3 +1,3 @@
|
|
1
1
|
export { FormlyNzButtonModule } from './button.module';
|
2
2
|
export { FormlyFieldButton } from './button.type';
|
3
|
-
//# sourceMappingURL=data:application/json;base64,
|
3
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicHVibGljX2FwaS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uL3BhY2thZ2VzL2Zvcm1seWFudGQvYnV0dG9uL3NyYy9wdWJsaWNfYXBpLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLE9BQU8sRUFBRSxvQkFBb0IsRUFBRSxNQUFNLGlCQUFpQixDQUFDO0FBQ3ZELE9BQU8sRUFBRSxpQkFBaUIsRUFBd0MsTUFBTSxlQUFlLENBQUMiLCJzb3VyY2VzQ29udGVudCI6WyJleHBvcnQgeyBGb3JtbHlOekJ1dHRvbk1vZHVsZSB9IGZyb20gJy4vYnV0dG9uLm1vZHVsZSc7XHJcbmV4cG9ydCB7IEZvcm1seUZpZWxkQnV0dG9uLCBGb3JtbHlCdXR0b25GaWVsZENvbmZpZywgQnV0dG9uUHJvcHMgfSBmcm9tICcuL2J1dHRvbi50eXBlJztcclxuIl19
|
@@ -42,4 +42,4 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.6", ngImpor
|
|
42
42
|
]
|
43
43
|
}]
|
44
44
|
}] });
|
45
|
-
//# sourceMappingURL=data:application/json;base64,
|
45
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYnV0dG9uLWdyb3VwLm1vZHVsZS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uL3BhY2thZ2VzL2Zvcm1seWFudGQvYnV0dG9uLWdyb3VwL3NyYy9idXR0b24tZ3JvdXAubW9kdWxlLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLE9BQU8sRUFBRSxRQUFRLEVBQUUsTUFBTSxlQUFlLENBQUM7QUFDekMsT0FBTyxFQUFFLFlBQVksRUFBRSxNQUFNLGlCQUFpQixDQUFDO0FBQy9DLE9BQU8sRUFBRSxZQUFZLEVBQUUsTUFBTSxrQkFBa0IsQ0FBQztBQUVoRCxPQUFPLEVBQUUsc0JBQXNCLEVBQUUsTUFBTSxxQkFBcUIsQ0FBQztBQUM3RCxPQUFPLEVBQUUsY0FBYyxFQUFFLE1BQU0sc0JBQXNCLENBQUM7QUFDdEQsT0FBTyxFQUFFLFlBQVksRUFBRSxNQUFNLG9CQUFvQixDQUFDOzs7QUFtQmxELE1BQU0sT0FBTyx5QkFBeUI7OEdBQXpCLHlCQUF5QjsrR0FBekIseUJBQXlCLGlCQWhCckIsc0JBQXNCLGFBRW5DLFlBQVk7WUFDWixjQUFjO1lBQ2QsWUFBWTsrR0FZSCx5QkFBeUIsWUFkbEMsWUFBWTtZQUNaLGNBQWM7WUFDZCxZQUFZO1lBRVosWUFBWSxDQUFDLFFBQVEsQ0FBQztnQkFDcEIsS0FBSyxFQUFFO29CQUNMO3dCQUNFLElBQUksRUFBRSxjQUFjO3dCQUNwQixTQU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5mb3JDaGlsZCh7XHJcbiAgICAgIHR5cGVzOiBbXHJcbiAgICAgICAge1xyXG4gICAgICAgICAgbmFtZTogJ2J1dHRvbi1ncm91cCcsXHJcbiAgICAgICAgICBjb21wb25lbnQ6IEZvcm1seUZpZWxkQnV0dG9uR3JvdXBcclxuICAgICAgICB9XHJcbiAgICAgIF1cclxuICAgIH0pXHJcbiAgXVxyXG59KVxyXG5leHBvcnQgY2xhc3MgRm9ybWx5TnpCdXR0b25Hcm91cE1vZHVsZSB7fVxyXG4iXX0=
|
@@ -27,80 +27,80 @@ export class FormlyFieldButtonGroup extends FieldType {
|
|
27
27
|
this.subjectDestroy();
|
28
28
|
}
|
29
29
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.6", ngImport: i0, type: FormlyFieldButtonGroup, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
30
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "17.0.6", type: FormlyFieldButtonGroup, selector: "formly-field-button-group", usesInheritance: true, ngImport: i0, template: `
|
31
|
-
<nz-button-group [formlyAttributes]="field" [nzSize]="props['size'] || 'default'">
|
32
|
-
@for (item of props.buttons; track item.id) {
|
33
|
-
<ng-container *ngTemplateOutlet="btnTemplate; context: { $implicit: item }"></ng-container>
|
34
|
-
}
|
35
|
-
</nz-button-group>
|
36
|
-
|
37
|
-
<ng-template #btnTemplate let-item>
|
38
|
-
<button
|
39
|
-
nz-button
|
40
|
-
[formlyAttributes]="item"
|
41
|
-
[type]="item.type || 'button'"
|
42
|
-
[attr.title]="item.props['title']"
|
43
|
-
[disabled]="item.props.disabled!!"
|
44
|
-
[nzBlock]="item.props.block!!"
|
45
|
-
[nzDanger]="item.props.danger!!"
|
46
|
-
[nzGhost]="item.props.ghost!!"
|
47
|
-
[nzSize]="item.props.size || 'default'"
|
48
|
-
[nzLoading]="item.props.loading!!"
|
49
|
-
[nzShape]="item.props.shape ?? null"
|
50
|
-
[nzType]="item.props.nzType ?? null"
|
51
|
-
>
|
52
|
-
@if (item.props.beforeIcon) {
|
53
|
-
<span nz-icon [nzType]="item.props.beforeIcon"></span>
|
54
|
-
}
|
55
|
-
@if (item.props.text) {
|
56
|
-
<span>{{ item.props.text }}</span>
|
57
|
-
}
|
58
|
-
@if (item.props.afterIcon) {
|
59
|
-
<span nz-icon [nzType]="item.props.afterIcon"></span>
|
60
|
-
}
|
61
|
-
</button>
|
62
|
-
</ng-template>
|
30
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "17.0.6", type: FormlyFieldButtonGroup, selector: "formly-field-button-group", usesInheritance: true, ngImport: i0, template: `
|
31
|
+
<nz-button-group [formlyAttributes]="field" [nzSize]="props['size'] || 'default'">
|
32
|
+
@for (item of props.buttons; track item.id) {
|
33
|
+
<ng-container *ngTemplateOutlet="btnTemplate; context: { $implicit: item }"></ng-container>
|
34
|
+
}
|
35
|
+
</nz-button-group>
|
36
|
+
|
37
|
+
<ng-template #btnTemplate let-item>
|
38
|
+
<button
|
39
|
+
nz-button
|
40
|
+
[formlyAttributes]="item"
|
41
|
+
[type]="item.type || 'button'"
|
42
|
+
[attr.title]="item.props['title']"
|
43
|
+
[disabled]="item.props.disabled!!"
|
44
|
+
[nzBlock]="item.props.block!!"
|
45
|
+
[nzDanger]="item.props.danger!!"
|
46
|
+
[nzGhost]="item.props.ghost!!"
|
47
|
+
[nzSize]="item.props.size || 'default'"
|
48
|
+
[nzLoading]="item.props.loading!!"
|
49
|
+
[nzShape]="item.props.shape ?? null"
|
50
|
+
[nzType]="item.props.nzType ?? null"
|
51
|
+
>
|
52
|
+
@if (item.props.beforeIcon) {
|
53
|
+
<span nz-icon [nzType]="item.props.beforeIcon"></span>
|
54
|
+
}
|
55
|
+
@if (item.props.text) {
|
56
|
+
<span>{{ item.props.text }}</span>
|
57
|
+
}
|
58
|
+
@if (item.props.afterIcon) {
|
59
|
+
<span nz-icon [nzType]="item.props.afterIcon"></span>
|
60
|
+
}
|
61
|
+
</button>
|
62
|
+
</ng-template>
|
63
63
|
`, isInline: true, dependencies: [{ kind: "directive", type: i1.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "component", type: i2.NzButtonComponent, selector: "button[nz-button], a[nz-button]", inputs: ["nzBlock", "nzGhost", "nzSearch", "nzLoading", "nzDanger", "disabled", "tabIndex", "nzType", "nzShape", "nzSize"], exportAs: ["nzButton"] }, { kind: "component", type: i2.NzButtonGroupComponent, selector: "nz-button-group", inputs: ["nzSize"], exportAs: ["nzButtonGroup"] }, { kind: "directive", 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"] }, { kind: "directive", type: i4.NzWaveDirective, selector: "[nz-wave],button[nz-button]:not([nzType=\"link\"]):not([nzType=\"text\"])", inputs: ["nzWaveExtraNode"], exportAs: ["nzWave"] }, { kind: "directive", type: i5.NzIconDirective, selector: "[nz-icon]", inputs: ["nzSpin", "nzRotate", "nzType", "nzTheme", "nzTwotoneColor", "nzIconfont"], exportAs: ["nzIcon"] }, { kind: "directive", type: i6.ɵFormlyAttributes, selector: "[formlyAttributes]", inputs: ["formlyAttributes", "id"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
64
64
|
}
|
65
65
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.6", ngImport: i0, type: FormlyFieldButtonGroup, decorators: [{
|
66
66
|
type: Component,
|
67
67
|
args: [{
|
68
68
|
selector: 'formly-field-button-group',
|
69
|
-
template: `
|
70
|
-
<nz-button-group [formlyAttributes]="field" [nzSize]="props['size'] || 'default'">
|
71
|
-
@for (item of props.buttons; track item.id) {
|
72
|
-
<ng-container *ngTemplateOutlet="btnTemplate; context: { $implicit: item }"></ng-container>
|
73
|
-
}
|
74
|
-
</nz-button-group>
|
75
|
-
|
76
|
-
<ng-template #btnTemplate let-item>
|
77
|
-
<button
|
78
|
-
nz-button
|
79
|
-
[formlyAttributes]="item"
|
80
|
-
[type]="item.type || 'button'"
|
81
|
-
[attr.title]="item.props['title']"
|
82
|
-
[disabled]="item.props.disabled!!"
|
83
|
-
[nzBlock]="item.props.block!!"
|
84
|
-
[nzDanger]="item.props.danger!!"
|
85
|
-
[nzGhost]="item.props.ghost!!"
|
86
|
-
[nzSize]="item.props.size || 'default'"
|
87
|
-
[nzLoading]="item.props.loading!!"
|
88
|
-
[nzShape]="item.props.shape ?? null"
|
89
|
-
[nzType]="item.props.nzType ?? null"
|
90
|
-
>
|
91
|
-
@if (item.props.beforeIcon) {
|
92
|
-
<span nz-icon [nzType]="item.props.beforeIcon"></span>
|
93
|
-
}
|
94
|
-
@if (item.props.text) {
|
95
|
-
<span>{{ item.props.text }}</span>
|
96
|
-
}
|
97
|
-
@if (item.props.afterIcon) {
|
98
|
-
<span nz-icon [nzType]="item.props.afterIcon"></span>
|
99
|
-
}
|
100
|
-
</button>
|
101
|
-
</ng-template>
|
69
|
+
template: `
|
70
|
+
<nz-button-group [formlyAttributes]="field" [nzSize]="props['size'] || 'default'">
|
71
|
+
@for (item of props.buttons; track item.id) {
|
72
|
+
<ng-container *ngTemplateOutlet="btnTemplate; context: { $implicit: item }"></ng-container>
|
73
|
+
}
|
74
|
+
</nz-button-group>
|
75
|
+
|
76
|
+
<ng-template #btnTemplate let-item>
|
77
|
+
<button
|
78
|
+
nz-button
|
79
|
+
[formlyAttributes]="item"
|
80
|
+
[type]="item.type || 'button'"
|
81
|
+
[attr.title]="item.props['title']"
|
82
|
+
[disabled]="item.props.disabled!!"
|
83
|
+
[nzBlock]="item.props.block!!"
|
84
|
+
[nzDanger]="item.props.danger!!"
|
85
|
+
[nzGhost]="item.props.ghost!!"
|
86
|
+
[nzSize]="item.props.size || 'default'"
|
87
|
+
[nzLoading]="item.props.loading!!"
|
88
|
+
[nzShape]="item.props.shape ?? null"
|
89
|
+
[nzType]="item.props.nzType ?? null"
|
90
|
+
>
|
91
|
+
@if (item.props.beforeIcon) {
|
92
|
+
<span nz-icon [nzType]="item.props.beforeIcon"></span>
|
93
|
+
}
|
94
|
+
@if (item.props.text) {
|
95
|
+
<span>{{ item.props.text }}</span>
|
96
|
+
}
|
97
|
+
@if (item.props.afterIcon) {
|
98
|
+
<span nz-icon [nzType]="item.props.afterIcon"></span>
|
99
|
+
}
|
100
|
+
</button>
|
101
|
+
</ng-template>
|
102
102
|
`,
|
103
103
|
changeDetection: ChangeDetectionStrategy.OnPush
|
104
104
|
}]
|
105
105
|
}], ctorParameters: () => [] });
|
106
|
-
//# sourceMappingURL=data:application/json;base64,
|
106
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYnV0dG9uLWdyb3VwLnR5cGUuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi9wYWNrYWdlcy9mb3JtbHlhbnRkL2J1dHRvbi1ncm91cC9zcmMvYnV0dG9uLWdyb3VwLnR5cGUudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsT0FBTyxFQUFFLFNBQVMsRUFBbUIsdUJBQXVCLEVBQUUsTUFBTSxlQUFlLENBQUM7QUFDcEYsT0FBTyxFQUFFLFNBQVMsRUFBbUIsTUFBTSxrQkFBa0IsQ0FBQztBQUU5RCxPQUFPLEVBQUUsT0FBTyxFQUFFLE1BQU0sTUFBTSxDQUFDOzs7Ozs7OztBQXlEL0IsTUFBTSxPQUFPLHNCQUNYLFNBQVEsU0FBNEM7SUFXcEQ7UUFDRSxLQUFLLEVBQUUsQ0FBQztRQVRWLGFBQVEsR0FBRyxJQUFJLE9BQU8sRUFBUSxDQUFDO1FBQ3RCLG1CQUFjLEdBQUc7WUFDeEIsS0FBSyxFQUFFO2dCQUNMLElBQUksRUFBRSxTQ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bGF0ZTsgY29udGV4dDogeyAkaW1wbGljaXQ6IGl0ZW0gfVwiPjwvbmctY29udGFpbmVyPlxyXG4gICAgICB9XHJcbiAgICA8L256LWJ1dHRvbi1ncm91cD5cclxuXHJcbiAgICA8bmctdGVtcGxhdGUgI2J0blRlbXBsYXRlIGxldC1pdGVtPlxyXG4gICAgICA8YnV0dG9uXHJcbiAgICAgICAgbnotYnV0dG9uXHJcbiAgICAgICAgW2Zvcm1seUF0dHJpYnV0ZXNdPVwiaXRlbVwiXHJcbiAgICAgICAgW3R5cGVdPVwiaXRlbS50eXBlIHx8ICdidXR0b24nXCJcclxuICAgICAgICBbYXR0ci50aXRsZV09XCJpdGVtLnByb3BzWyd0aXRsZSddXCJcclxuICAgICAgICBbZGlzYWJsZWRdPVwiaXRlbS5wcm9wcy5kaXNhYmxlZCEhXCJcclxuICAgICAgICBbbnpCbG9ja109XCJpdGVtLnByb3BzLmJsb2NrISFcIlxyXG4gICAgICAgIFtuekRhbmdlcl09XCJpdGVtLnByb3BzLmRhbmdlciEhXCJcclxuICAgICAgICBbbnpHaG9zdF09XCJpdGVtLnByb3BzLmdob3N0ISFcIlxyXG4gICAgICAgIFtuelNpemVdPVwiaXRlbS5wcm9wcy5zaXplIHx8ICdkZWZhdWx0J1wiXHJcbiAgICAgICAgW256TG9hZGluZ109XCJpdGVtLnByb3BzLmxvYWRpbmchIVwiXHJcbiAgICAgICAgW256U2hhcGVdPVwiaXRlbS5wcm9wcy5zaGFwZSA/PyBudWxsXCJcclxuICAgICAgICBbbnpUeXBlXT1cIml0ZW0ucHJvcHMubnpUeXBlID8/IG51bGxcIlxyXG4gICAgICA+XHJcbiAgICAgICAgQGlmIChpdGVtLnByb3BzLmJlZm9yZUljb24pIHtcclxuICAgICAgICAgIDxzcGFuIG56LWljb24gW256VHlwZV09XCJpdGVtLnByb3BzLmJlZm9yZUljb25cIj48L3NwYW4+XHJcbiAgICAgICAgfVxyXG4gICAgICAgIEBpZiAoaXRlbS5wcm9wc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@@ -1,3 +1,3 @@
|
|
1
1
|
export { FormlyNzButtonGroupModule } from './button-group.module';
|
2
2
|
export { FormlyFieldButtonGroup } from './button-group.type';
|
3
|
-
//# sourceMappingURL=data:application/json;base64,
|
3
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicHVibGljX2FwaS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uL3BhY2thZ2VzL2Zvcm1seWFudGQvYnV0dG9uLWdyb3VwL3NyYy9wdWJsaWNfYXBpLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLE9BQU8sRUFBRSx5QkFBeUIsRUFBRSxNQUFNLHVCQUF1QixDQUFDO0FBQ2xFLE9BQU8sRUFBRSxzQkFBc0IsRUFBZ0MsTUFBTSxxQkFBcUIsQ0FBQyIsInNvdXJjZXNDb250ZW50IjpbImV4cG9ydCB7IEZvcm1seU56QnV0dG9uR3JvdXBNb2R1bGUgfSBmcm9tICcuL2J1dHRvbi1ncm91cC5tb2R1bGUnO1xyXG5leHBvcnQgeyBGb3JtbHlGaWVsZEJ1dHRvbkdyb3VwLCBGb3JtbHlCdXR0b25Hcm91cEZpZWxkQ29uZmlnIH0gZnJvbSAnLi9idXR0b24tZ3JvdXAudHlwZSc7XHJcbiJdfQ==
|
@@ -44,4 +44,4 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.6", ngImpor
|
|
44
44
|
exports: [COMPONENT]
|
45
45
|
}]
|
46
46
|
}] });
|
47
|
-
//# sourceMappingURL=data:application/json;base64,
|
47
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY2FyZC5tb2R1bGUuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi9wYWNrYWdlcy9mb3JtbHlhbnRkL2NhcmQvc3JjL2NhcmQub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