ngx-formly-zorro-antd 16.1.0 → 16.1.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (144) hide show
  1. package/button/button.type.d.ts +3 -2
  2. package/card/card.module.d.ts +4 -3
  3. package/card/card.type.d.ts +37 -0
  4. package/card/public_api.d.ts +1 -1
  5. package/card-wrapper/card-wrapper.module.d.ts +11 -0
  6. package/{card/card.wrapper.d.ts → card-wrapper/card-wrapper.props.d.ts} +10 -12
  7. package/card-wrapper/card.wrapper.d.ts +24 -0
  8. package/card-wrapper/index.d.ts +5 -0
  9. package/card-wrapper/public_api.d.ts +3 -0
  10. package/cascader/cascader.type.d.ts +6 -5
  11. package/checkbox/checkbox.type.d.ts +4 -3
  12. package/common/common.module.d.ts +9 -0
  13. package/common/formly-box-templates.directive.d.ts +46 -0
  14. package/common/formly-utils.d.ts +24 -0
  15. package/common/index.d.ts +5 -0
  16. package/common/interface.d.ts +19 -0
  17. package/common/public_api.d.ts +4 -0
  18. package/datepicker/datepicker.props.d.ts +5 -5
  19. package/datepicker/datepicker.type.d.ts +3 -2
  20. package/esm2022/button/button.type.mjs +1 -1
  21. package/esm2022/card/card.module.mjs +16 -12
  22. package/esm2022/card/card.type.mjs +93 -0
  23. package/esm2022/card/public_api.mjs +2 -2
  24. package/esm2022/card-wrapper/card-wrapper.module.mjs +45 -0
  25. package/esm2022/card-wrapper/card-wrapper.props.mjs +2 -0
  26. package/esm2022/card-wrapper/card.wrapper.mjs +77 -0
  27. package/esm2022/card-wrapper/ngx-formly-zorro-antd-card-wrapper.mjs +5 -0
  28. package/esm2022/card-wrapper/public_api.mjs +3 -0
  29. package/esm2022/cascader/cascader.type.mjs +1 -3
  30. package/esm2022/checkbox/checkbox.type.mjs +3 -3
  31. package/esm2022/common/common.module.mjs +19 -0
  32. package/esm2022/common/formly-box-templates.directive.mjs +106 -0
  33. package/esm2022/common/formly-utils.mjs +46 -0
  34. package/esm2022/common/interface.mjs +2 -0
  35. package/esm2022/common/ngx-formly-zorro-antd-common.mjs +5 -0
  36. package/esm2022/common/public_api.mjs +5 -0
  37. package/esm2022/datepicker/datepicker.props.mjs +1 -1
  38. package/esm2022/datepicker/datepicker.type.mjs +1 -1
  39. package/esm2022/extension/ngx-formly-zorro-antd-extension.mjs +5 -0
  40. package/esm2022/extension/public_api.mjs +2 -0
  41. package/esm2022/extension/value-changes-extension.mjs +31 -0
  42. package/esm2022/form-field/form-field.props.mjs +1 -1
  43. package/esm2022/form-field/form-field.wrapper.mjs +1 -1
  44. package/esm2022/grid/grid.props.mjs +1 -1
  45. package/esm2022/grid/grid.type.mjs +1 -1
  46. package/esm2022/input/input.props.mjs +1 -1
  47. package/esm2022/input/input.type.mjs +3 -3
  48. package/esm2022/input-group/input-group.type.mjs +1 -1
  49. package/esm2022/input-number/input-number.props.mjs +1 -1
  50. package/esm2022/input-number/input-number.type.mjs +1 -1
  51. package/esm2022/lib/ui-ng-zorro-antd.module.mjs +16 -4
  52. package/esm2022/radio/radio.type.mjs +1 -1
  53. package/esm2022/rate/rate.type.mjs +1 -1
  54. package/esm2022/select/select.props.mjs +1 -1
  55. package/esm2022/select/select.type.mjs +7 -7
  56. package/esm2022/slider/slider.type.mjs +1 -1
  57. package/esm2022/space/ngx-formly-zorro-antd-space.mjs +5 -0
  58. package/esm2022/space/public_api.mjs +3 -0
  59. package/esm2022/space/space.module.mjs +45 -0
  60. package/esm2022/space/space.type.mjs +63 -0
  61. package/esm2022/switch/switch.type.mjs +1 -1
  62. package/esm2022/tabs/tabs.props.mjs +1 -1
  63. package/esm2022/tabs/tabs.wrapper.mjs +1 -1
  64. package/esm2022/textarea/textarea.type.mjs +1 -1
  65. package/esm2022/timepicker/timepicker.type.mjs +1 -1
  66. package/esm2022/transfer/transfer.type.mjs +1 -1
  67. package/esm2022/tree-select/tree-select.module.mjs +5 -1
  68. package/esm2022/tree-select/tree-select.type.mjs +31 -15
  69. package/esm2022/upload/upload.module.mjs +5 -1
  70. package/esm2022/upload/upload.props.mjs +1 -1
  71. package/esm2022/upload/upload.type.mjs +25 -14
  72. package/extension/index.d.ts +5 -0
  73. package/extension/public_api.d.ts +1 -0
  74. package/extension/value-changes-extension.d.ts +23 -0
  75. package/fesm2022/ngx-formly-zorro-antd-button.mjs.map +1 -1
  76. package/fesm2022/ngx-formly-zorro-antd-card-wrapper.mjs +123 -0
  77. package/fesm2022/ngx-formly-zorro-antd-card-wrapper.mjs.map +1 -0
  78. package/fesm2022/ngx-formly-zorro-antd-card.mjs +81 -32
  79. package/fesm2022/ngx-formly-zorro-antd-card.mjs.map +1 -1
  80. package/fesm2022/ngx-formly-zorro-antd-cascader.mjs +0 -2
  81. package/fesm2022/ngx-formly-zorro-antd-cascader.mjs.map +1 -1
  82. package/fesm2022/ngx-formly-zorro-antd-checkbox.mjs +2 -2
  83. package/fesm2022/ngx-formly-zorro-antd-checkbox.mjs.map +1 -1
  84. package/fesm2022/ngx-formly-zorro-antd-common.mjs +174 -0
  85. package/fesm2022/ngx-formly-zorro-antd-common.mjs.map +1 -0
  86. package/fesm2022/ngx-formly-zorro-antd-datepicker.mjs.map +1 -1
  87. package/fesm2022/ngx-formly-zorro-antd-extension.mjs +37 -0
  88. package/fesm2022/ngx-formly-zorro-antd-extension.mjs.map +1 -0
  89. package/fesm2022/ngx-formly-zorro-antd-form-field.mjs.map +1 -1
  90. package/fesm2022/ngx-formly-zorro-antd-grid.mjs.map +1 -1
  91. package/fesm2022/ngx-formly-zorro-antd-input-group.mjs.map +1 -1
  92. package/fesm2022/ngx-formly-zorro-antd-input-number.mjs.map +1 -1
  93. package/fesm2022/ngx-formly-zorro-antd-input.mjs +2 -2
  94. package/fesm2022/ngx-formly-zorro-antd-input.mjs.map +1 -1
  95. package/fesm2022/ngx-formly-zorro-antd-radio.mjs.map +1 -1
  96. package/fesm2022/ngx-formly-zorro-antd-rate.mjs.map +1 -1
  97. package/fesm2022/ngx-formly-zorro-antd-select.mjs +6 -6
  98. package/fesm2022/ngx-formly-zorro-antd-select.mjs.map +1 -1
  99. package/fesm2022/ngx-formly-zorro-antd-slider.mjs.map +1 -1
  100. package/fesm2022/ngx-formly-zorro-antd-space.mjs +109 -0
  101. package/fesm2022/ngx-formly-zorro-antd-space.mjs.map +1 -0
  102. package/fesm2022/ngx-formly-zorro-antd-switch.mjs.map +1 -1
  103. package/fesm2022/ngx-formly-zorro-antd-tabs.mjs.map +1 -1
  104. package/fesm2022/ngx-formly-zorro-antd-textarea.mjs.map +1 -1
  105. package/fesm2022/ngx-formly-zorro-antd-timepicker.mjs.map +1 -1
  106. package/fesm2022/ngx-formly-zorro-antd-transfer.mjs.map +1 -1
  107. package/fesm2022/ngx-formly-zorro-antd-tree-select.mjs +34 -15
  108. package/fesm2022/ngx-formly-zorro-antd-tree-select.mjs.map +1 -1
  109. package/fesm2022/ngx-formly-zorro-antd-upload.mjs +27 -13
  110. package/fesm2022/ngx-formly-zorro-antd-upload.mjs.map +1 -1
  111. package/fesm2022/ngx-formly-zorro-antd.mjs +15 -3
  112. package/fesm2022/ngx-formly-zorro-antd.mjs.map +1 -1
  113. package/form-field/form-field.props.d.ts +2 -2
  114. package/form-field/form-field.wrapper.d.ts +3 -2
  115. package/grid/grid.props.d.ts +15 -13
  116. package/grid/grid.type.d.ts +3 -2
  117. package/input/input.props.d.ts +3 -3
  118. package/input/input.type.d.ts +3 -2
  119. package/input-group/input-group.type.d.ts +4 -3
  120. package/input-number/input-number.props.d.ts +2 -2
  121. package/input-number/input-number.type.d.ts +3 -2
  122. package/lib/ui-ng-zorro-antd.module.d.ts +24 -21
  123. package/package.json +37 -12
  124. package/radio/radio.type.d.ts +3 -2
  125. package/rate/rate.type.d.ts +4 -3
  126. package/select/select.props.d.ts +4 -4
  127. package/select/select.type.d.ts +3 -2
  128. package/slider/slider.type.d.ts +4 -3
  129. package/space/index.d.ts +5 -0
  130. package/space/public_api.d.ts +2 -0
  131. package/space/space.module.d.ts +11 -0
  132. package/space/space.type.d.ts +51 -0
  133. package/switch/switch.type.d.ts +3 -2
  134. package/tabs/tabs.props.d.ts +9 -9
  135. package/tabs/tabs.wrapper.d.ts +4 -3
  136. package/textarea/textarea.type.d.ts +3 -2
  137. package/timepicker/timepicker.type.d.ts +4 -3
  138. package/transfer/transfer.type.d.ts +5 -4
  139. package/tree-select/tree-select.module.d.ts +4 -3
  140. package/tree-select/tree-select.type.d.ts +21 -4
  141. package/upload/upload.module.d.ts +6 -5
  142. package/upload/upload.props.d.ts +4 -2
  143. package/upload/upload.type.d.ts +9 -3
  144. package/esm2022/card/card.wrapper.mjs +0 -47
@@ -1,6 +1,7 @@
1
1
  import { Type } from '@angular/core';
2
- import { FieldType, FieldTypeConfig, FormlyFieldConfig } from '@ngx-formly/core';
2
+ import { FieldType, FieldTypeConfig } from '@ngx-formly/core';
3
3
  import type { FormlyFieldProps } from 'ngx-formly-zorro-antd/form-field';
4
+ import type { NzFormlyFieldConfig } from 'ngx-formly-zorro-antd/common';
4
5
  import type { NzButtonShape, NzButtonSize, NzButtonType } from 'ng-zorro-antd/button';
5
6
  import * as i0 from "@angular/core";
6
7
  interface ButtonProps extends FormlyFieldProps {
@@ -47,7 +48,7 @@ interface ButtonProps extends FormlyFieldProps {
47
48
  */
48
49
  iconOnAfter?: string;
49
50
  }
50
- export interface FormlyButtonFieldConfig extends FormlyFieldConfig<ButtonProps> {
51
+ export interface FormlyButtonFieldConfig extends NzFormlyFieldConfig<ButtonProps> {
51
52
  type: 'button' | 'submit' | 'reset' | Type<FormlyFieldButton>;
52
53
  }
53
54
  export declare class FormlyFieldButton extends FieldType<FieldTypeConfig<ButtonProps>> {
@@ -1,10 +1,11 @@
1
1
  import * as i0 from "@angular/core";
2
- import * as i1 from "./card.wrapper";
2
+ import * as i1 from "./card.type";
3
3
  import * as i2 from "@angular/common";
4
4
  import * as i3 from "ng-zorro-antd/card";
5
- import * as i4 from "@ngx-formly/core";
5
+ import * as i4 from "ng-zorro-antd/core/outlet";
6
+ import * as i5 from "@ngx-formly/core";
6
7
  export declare class FormlyNzCardModule {
7
8
  static ɵfac: i0.ɵɵFactoryDeclaration<FormlyNzCardModule, never>;
8
- static ɵmod: i0.ɵɵNgModuleDeclaration<FormlyNzCardModule, [typeof i1.FormlyWrapperCard], [typeof i2.CommonModule, typeof i3.NzCardModule, typeof i4.FormlyModule], never>;
9
+ static ɵmod: i0.ɵɵNgModuleDeclaration<FormlyNzCardModule, [typeof i1.FormlyFieldCard], [typeof i2.CommonModule, typeof i3.NzCardModule, typeof i4.NzOutletModule, typeof i5.FormlyModule], [typeof i1.FormlyFieldCard]>;
9
10
  static ɵinj: i0.ɵɵInjectorDeclaration<FormlyNzCardModule>;
10
11
  }
@@ -0,0 +1,37 @@
1
+ import { TemplateRef, Type } from '@angular/core';
2
+ import { FieldType, FieldTypeConfig } from '@ngx-formly/core';
3
+ import { FormlyBoxTemplates } from 'ngx-formly-zorro-antd/common';
4
+ import type { NzFormlyFieldConfig } from 'ngx-formly-zorro-antd/common';
5
+ import { CardWrapperProps } from 'ngx-formly-zorro-antd/card-wrapper';
6
+ import * as i0 from "@angular/core";
7
+ interface CardProps extends CardWrapperProps {
8
+ /**
9
+ * 内容
10
+ */
11
+ content?: string | TemplateRef<{
12
+ $implicit: CardProps;
13
+ options: CardProps;
14
+ }>;
15
+ contentName?: string;
16
+ }
17
+ export interface FormlyCardFieldConfig extends NzFormlyFieldConfig<CardProps> {
18
+ type: 'card' | Type<FormlyFieldCard>;
19
+ }
20
+ export declare class FormlyFieldCard extends FieldType<FieldTypeConfig<CardProps>> {
21
+ fieldTemplates: FormlyBoxTemplates;
22
+ defaultOptions: {
23
+ props: {
24
+ bordered: boolean;
25
+ type: string;
26
+ };
27
+ };
28
+ constructor(fieldTemplates: FormlyBoxTemplates);
29
+ get nzTitle(): TemplateRef<any> | undefined;
30
+ get nzCover(): TemplateRef<any> | undefined;
31
+ get nzExtra(): TemplateRef<any> | undefined;
32
+ get nzActions(): TemplateRef<any>[];
33
+ get nzContent(): TemplateRef<any> | undefined;
34
+ static ɵfac: i0.ɵɵFactoryDeclaration<FormlyFieldCard, [{ optional: true; }]>;
35
+ static ɵcmp: i0.ɵɵComponentDeclaration<FormlyFieldCard, "formly-field-card", never, {}, {}, never, never, false, never>;
36
+ }
37
+ export {};
@@ -1,2 +1,2 @@
1
1
  export { FormlyNzCardModule } from './card.module';
2
- export { FormlyWrapperCard, FormlyCardWrapperConfig } from './card.wrapper';
2
+ export { FormlyFieldCard, FormlyCardFieldConfig } from './card.type';
@@ -0,0 +1,11 @@
1
+ import * as i0 from "@angular/core";
2
+ import * as i1 from "./card.wrapper";
3
+ import * as i2 from "@angular/common";
4
+ import * as i3 from "ng-zorro-antd/card";
5
+ import * as i4 from "ngx-formly-zorro-antd/common";
6
+ import * as i5 from "@ngx-formly/core";
7
+ export declare class FormlyNzCardWrapperModule {
8
+ static ɵfac: i0.ɵɵFactoryDeclaration<FormlyNzCardWrapperModule, never>;
9
+ static ɵmod: i0.ɵɵNgModuleDeclaration<FormlyNzCardWrapperModule, [typeof i1.FormlyWrapperCard], [typeof i2.CommonModule, typeof i3.NzCardModule, typeof i4.FormlyCommonModule, typeof i5.FormlyModule], never>;
10
+ static ɵinj: i0.ɵɵInjectorDeclaration<FormlyNzCardWrapperModule>;
11
+ }
@@ -1,12 +1,11 @@
1
- import { TemplateRef, Type } from '@angular/core';
2
- import { FieldWrapper, FormlyFieldConfig } from '@ngx-formly/core';
1
+ import { TemplateRef } from '@angular/core';
3
2
  import type { NzSizeDSType, NgStyleInterface } from 'ng-zorro-antd/core/types';
4
- import * as i0 from "@angular/core";
5
- interface CardProps {
3
+ export interface CardWrapperProps {
6
4
  /**
7
5
  * 卡片操作组,位置在卡片底部
8
6
  */
9
7
  actions?: Array<TemplateRef<void>>;
8
+ actionsName?: string[];
10
9
  /**
11
10
  * 内容区域自定义样式
12
11
  */
@@ -20,10 +19,12 @@ interface CardProps {
20
19
  * 卡片封面
21
20
  */
22
21
  cover?: TemplateRef<void>;
22
+ coverName?: string;
23
23
  /**
24
24
  * 卡片右上角的操作区域
25
25
  */
26
26
  extra?: string | TemplateRef<void>;
27
+ extraName?: string;
27
28
  /**
28
29
  * 鼠标移过时可浮起
29
30
  * @default false
@@ -43,16 +44,13 @@ interface CardProps {
43
44
  * 卡片标题
44
45
  */
45
46
  title?: string | TemplateRef<void>;
47
+ titleName?: string;
46
48
  /**
47
49
  * 卡片类型,可设置为 inner 或 不设置
48
50
  */
49
51
  type?: string | 'inner';
52
+ /**
53
+ * 是否显示边框
54
+ */
55
+ bordered?: boolean;
50
56
  }
51
- export interface FormlyCardWrapperConfig extends FormlyFieldConfig<CardProps> {
52
- wrappers: ('card' | Type<FormlyWrapperCard>)[];
53
- }
54
- export declare class FormlyWrapperCard extends FieldWrapper<FormlyFieldConfig<CardProps>> {
55
- static ɵfac: i0.ɵɵFactoryDeclaration<FormlyWrapperCard, never>;
56
- static ɵcmp: i0.ɵɵComponentDeclaration<FormlyWrapperCard, "formly-wrapper-card", never, {}, {}, never, never, false, never>;
57
- }
58
- export {};
@@ -0,0 +1,24 @@
1
+ import { Type } from '@angular/core';
2
+ import { FieldWrapper } from '@ngx-formly/core';
3
+ import { FormlyBoxTemplates } from 'ngx-formly-zorro-antd/common';
4
+ import type { NzFormlyFieldConfig } from 'ngx-formly-zorro-antd/common';
5
+ import { CardWrapperProps } from './card-wrapper.props';
6
+ import * as i0 from "@angular/core";
7
+ export interface FormlyCardWrapperConfig extends NzFormlyFieldConfig<CardWrapperProps> {
8
+ wrappers: ('card-wrapper' | Type<FormlyWrapperCard>)[];
9
+ }
10
+ export declare class FormlyWrapperCard extends FieldWrapper<NzFormlyFieldConfig<CardWrapperProps>> {
11
+ fieldTemplates: FormlyBoxTemplates;
12
+ defaultOptions: {
13
+ props: {
14
+ bordered: boolean;
15
+ };
16
+ };
17
+ constructor(fieldTemplates: FormlyBoxTemplates);
18
+ get nzTitle(): import("@angular/core").TemplateRef<any> | undefined;
19
+ get nzCover(): import("@angular/core").TemplateRef<any> | undefined;
20
+ get nzExtra(): import("@angular/core").TemplateRef<any> | undefined;
21
+ get nzActions(): import("@angular/core").TemplateRef<any>[];
22
+ static ɵfac: i0.ɵɵFactoryDeclaration<FormlyWrapperCard, [{ optional: true; }]>;
23
+ static ɵcmp: i0.ɵɵComponentDeclaration<FormlyWrapperCard, "formly-wrapper-card", never, {}, {}, never, never, false, never>;
24
+ }
@@ -0,0 +1,5 @@
1
+ /**
2
+ * Generated bundle index. Do not edit.
3
+ */
4
+ /// <amd-module name="ngx-formly-zorro-antd/card-wrapper" />
5
+ export * from './public_api';
@@ -0,0 +1,3 @@
1
+ export { FormlyNzCardWrapperModule } from './card-wrapper.module';
2
+ export { FormlyWrapperCard, FormlyCardWrapperConfig } from './card.wrapper';
3
+ export { CardWrapperProps } from './card-wrapper.props';
@@ -1,8 +1,9 @@
1
1
  import { TemplateRef, Type, OnInit } from '@angular/core';
2
- import { FieldType, FieldTypeConfig, FormlyFieldConfig } from '@ngx-formly/core';
2
+ import { FieldType, FieldTypeConfig } from '@ngx-formly/core';
3
3
  import { FormlyFieldProps } from 'ngx-formly-zorro-antd/form-field';
4
4
  import type { NzCascaderOption, NzShowSearchOptions, NzCascaderExpandTrigger, NzCascaderSize } from 'ng-zorro-antd/cascader';
5
5
  import type { NzSafeAny, NzStatus, NgStyleInterface } from 'ng-zorro-antd/core/types';
6
+ import type { NzFormlyFieldConfig } from 'ngx-formly-zorro-antd/common';
6
7
  import * as i0 from "@angular/core";
7
8
  interface CascaderProps extends FormlyFieldProps {
8
9
  /**
@@ -114,17 +115,17 @@ interface CascaderProps extends FormlyFieldProps {
114
115
  /**
115
116
  * 清除值时触发
116
117
  */
117
- onClear?: (field: FormlyFieldConfig) => void;
118
+ onClear?: (field: NzFormlyFieldConfig) => void;
118
119
  /**
119
120
  * 菜单浮层的显示/隐藏
120
121
  */
121
- visibleChange?: (field: FormlyFieldConfig, visible: boolean) => void;
122
+ visibleChange?: (field: NzFormlyFieldConfig, visible: boolean) => void;
122
123
  /**
123
124
  * 值发生变化时触发
124
125
  */
125
- selectionChange?: (field: FormlyFieldConfig, value: NzCascaderOption[]) => void;
126
+ selectionChange?: (field: NzFormlyFieldConfig, value: NzCascaderOption[]) => void;
126
127
  }
127
- export interface FormlyCascaderFieldConfig extends FormlyFieldConfig<CascaderProps> {
128
+ export interface FormlyCascaderFieldConfig extends NzFormlyFieldConfig<CascaderProps> {
128
129
  type: 'cascader' | Type<FormlyFieldCascader>;
129
130
  }
130
131
  export declare class FormlyFieldCascader extends FieldType<FieldTypeConfig<CascaderProps>> implements OnInit {
@@ -1,5 +1,6 @@
1
1
  import { Type } from '@angular/core';
2
- import { FieldType, FieldTypeConfig, FormlyFieldConfig } from '@ngx-formly/core';
2
+ import { FieldType, FieldTypeConfig } from '@ngx-formly/core';
3
+ import type { NzFormlyFieldConfig, FormlyAttributeEvent } from 'ngx-formly-zorro-antd/common';
3
4
  import type { FormlyFieldProps } from 'ngx-formly-zorro-antd/form-field';
4
5
  import * as i0 from "@angular/core";
5
6
  interface CheckboxProps extends FormlyFieldProps {
@@ -17,9 +18,9 @@ interface CheckboxProps extends FormlyFieldProps {
17
18
  /**
18
19
  * 数值改变时回调
19
20
  */
20
- modelChange?: (field: FormlyFieldConfig, data?: boolean | null) => void;
21
+ modelChange?: FormlyAttributeEvent<boolean | null | undefined>;
21
22
  }
22
- export interface FormlyCheckboxFieldConfig extends FormlyFieldConfig<CheckboxProps> {
23
+ export interface FormlyCheckboxFieldConfig extends NzFormlyFieldConfig<CheckboxProps> {
23
24
  type: 'checkbox' | 'boolean' | Type<FormlyFieldCheckbox>;
24
25
  }
25
26
  export declare class FormlyFieldCheckbox extends FieldType<FieldTypeConfig<CheckboxProps>> {
@@ -0,0 +1,9 @@
1
+ import * as i0 from "@angular/core";
2
+ import * as i1 from "@angular/common";
3
+ import * as i2 from "./formly-box-templates.directive";
4
+ import * as i3 from "@pkt/ng.core";
5
+ export declare class FormlyCommonModule {
6
+ static ɵfac: i0.ɵɵFactoryDeclaration<FormlyCommonModule, never>;
7
+ static ɵmod: i0.ɵɵNgModuleDeclaration<FormlyCommonModule, never, [typeof i1.CommonModule, typeof i2.FormlyBoxTemplates, typeof i3.NamedTemplate], [typeof i2.FormlyBoxTemplates, typeof i3.NamedTemplate]>;
8
+ static ɵinj: i0.ɵɵInjectorDeclaration<FormlyCommonModule>;
9
+ }
@@ -0,0 +1,46 @@
1
+ import { AfterContentInit, EventEmitter, OnChanges, QueryList, SimpleChange, SimpleChanges, TemplateRef } from '@angular/core';
2
+ import { NamedTemplate } from '@pkt/ng.core';
3
+ import type { NzSafeAny } from 'ng-zorro-antd/core/types';
4
+ import * as i0 from "@angular/core";
5
+ export declare class FormlyBoxTemplates implements AfterContentInit, OnChanges {
6
+ private tplMap;
7
+ templateList?: TemplateList;
8
+ templateChange: EventEmitter<Map<string, TemplateRef<any>>>;
9
+ namedTemplate: QueryList<NamedTemplate<NzSafeAny>>;
10
+ get templates(): Map<string, TemplateRef<NzSafeAny>>;
11
+ /**
12
+ * 根据模板名称获取TemplateRef
13
+ * @param templateName 模板名称
14
+ */
15
+ get(templateName: string): TemplateRef<NzSafeAny> | undefined;
16
+ ngAfterContentInit(): void;
17
+ update(emitChange?: boolean): void;
18
+ ngOnChanges(changes: {
19
+ [K in keyof this]?: SimpleChange;
20
+ } & SimpleChanges): void;
21
+ /**
22
+ * 合并参数模板
23
+ * @param tplMap
24
+ * @param emitChange
25
+ */
26
+ mergeTemplate(tplMap: Map<string, TemplateRef<NzSafeAny>>, emitChange?: boolean): void;
27
+ /**
28
+ * 合并content 模板
29
+ * @param tplMap
30
+ * @param templateList
31
+ * @private
32
+ */
33
+ private mergeQueryTemplate;
34
+ /**
35
+ * 合并模板列表
36
+ * @param tplMap 模板Map
37
+ * @param templateList
38
+ */
39
+ private mergeTemplates;
40
+ static ɵfac: i0.ɵɵFactoryDeclaration<FormlyBoxTemplates, never>;
41
+ static ɵdir: i0.ɵɵDirectiveDeclaration<FormlyBoxTemplates, "[formly-box]", ["FormlyBox"], { "templateList": { "alias": "formly-box"; "required": false; }; }, { "templateChange": "templateChange"; }, ["namedTemplate"], never, true, never>;
42
+ }
43
+ /**
44
+ * 模板列表
45
+ */
46
+ export type TemplateList = QueryList<TemplateRef<NzSafeAny>> | QueryList<NamedTemplate<NzSafeAny>> | NamedTemplate<NzSafeAny>[] | TemplateRef<NzSafeAny>;
@@ -0,0 +1,24 @@
1
+ import { TemplateRef } from '@angular/core';
2
+ import type { NzSafeAny } from 'ng-zorro-antd/core/types';
3
+ import { FormlyBoxTemplates } from './formly-box-templates.directive';
4
+ /**
5
+ * 根据属性名获取模板名称
6
+ * @param propName 属性名
7
+ */
8
+ export declare function getTplName(propName: string): string;
9
+ /**
10
+ * 处理属性为模板类型, 根据模板名称处理成模板对象
11
+ * @param value 数据对象
12
+ * @param fieldTemplates 模板容器
13
+ * @param propName 属性名
14
+ * @param propTemplateName 模板属性名称
15
+ */
16
+ export declare function resolveTplName<T = NzSafeAny>(value: NzSafeAny, fieldTemplates: FormlyBoxTemplates, propName: string, propTemplateName?: string): TemplateRef<T> | undefined;
17
+ /**
18
+ * 处理属性为模板类型, 根据模板名称处理成模板对象列表
19
+ * @param value 数据对象
20
+ * @param fieldTemplates 模板容器
21
+ * @param propName 属性名
22
+ * @param propTemplateName 模板属性名称
23
+ */
24
+ export declare function resolveTplNameArray<T = NzSafeAny>(value: NzSafeAny, fieldTemplates: FormlyBoxTemplates, propName: string, propTemplateName?: string): TemplateRef<T>[];
@@ -0,0 +1,5 @@
1
+ /**
2
+ * Generated bundle index. Do not edit.
3
+ */
4
+ /// <amd-module name="ngx-formly-zorro-antd/common" />
5
+ export * from './public_api';
@@ -0,0 +1,19 @@
1
+ import { FormlyFieldConfig, FormlyFieldProps } from '@ngx-formly/core';
2
+ import type { NzSafeAny } from 'ng-zorro-antd/core/types';
3
+ /**
4
+ * 控件模板参数配置项
5
+ */
6
+ export type ControlOptions = FormlyFieldProps & {
7
+ valueChanges?: (value: NzSafeAny, field: NzFormlyFieldConfig) => void;
8
+ };
9
+ export interface NzFormlyFieldConfig<T extends ControlOptions = ControlOptions> extends FormlyFieldConfig {
10
+ /**
11
+ * 这是为模板扩展的属性,所有模板访问的属性都应该从这里访问
12
+ */
13
+ props?: T;
14
+ /**
15
+ * @deprecated 使用 `props` 代替
16
+ */
17
+ templateOptions?: T;
18
+ }
19
+ export type FormlyAttributeEvent<T = NzSafeAny> = (field: NzFormlyFieldConfig, event?: T) => void;
@@ -0,0 +1,4 @@
1
+ export * from './formly-box-templates.directive';
2
+ export * from './common.module';
3
+ export * from './formly-utils';
4
+ export * from './interface';
@@ -1,6 +1,6 @@
1
1
  import { TemplateRef } from '@angular/core';
2
- import type { FormlyFieldConfig } from '@ngx-formly/core';
3
2
  import type { FormlyFieldProps } from 'ngx-formly-zorro-antd/form-field';
3
+ import type { FormlyAttributeEvent } from 'ngx-formly-zorro-antd/common';
4
4
  import type { FunctionProp, NzSafeAny, NzStatus } from 'ng-zorro-antd/core/types';
5
5
  import type { NzDateMode, NzDatePickerSizeType, PresetRanges, DisabledTimeFn, CompatibleDate } from 'ng-zorro-antd/date-picker';
6
6
  export interface DatepickerProps extends FormlyFieldProps {
@@ -117,13 +117,13 @@ export interface DatepickerProps extends FormlyFieldProps {
117
117
  /**
118
118
  * 弹出日历和关闭日历的回调
119
119
  */
120
- openChange?: (field: FormlyFieldConfig, event: boolean) => void;
120
+ openChange?: FormlyAttributeEvent<boolean>;
121
121
  /**
122
122
  * 点击确定按钮的回调
123
123
  */
124
- onOk?: (field: FormlyFieldConfig, date: CompatibleDate | null) => void;
124
+ onOk?: FormlyAttributeEvent<CompatibleDate | null>;
125
125
  /** 数值改变时回调 */
126
- modelChange?: (field: FormlyFieldConfig, date?: Date | Date[] | null) => void;
126
+ modelChange?: FormlyAttributeEvent<Date | Date[] | null>;
127
127
  /**
128
128
  * 日期范围选择器配置
129
129
  */
@@ -140,7 +140,7 @@ export interface DatepickerProps extends FormlyFieldProps {
140
140
  /**
141
141
  * 待选日期发生变化的回调
142
142
  */
143
- calendarChange?: (field: FormlyFieldConfig, range: NzSafeAny) => void;
143
+ calendarChange?: FormlyAttributeEvent;
144
144
  /**
145
145
  * 不可选择的时间
146
146
  */
@@ -1,8 +1,9 @@
1
1
  import { Type } from '@angular/core';
2
- import { FieldType, FormlyFieldConfig, FieldTypeConfig } from '@ngx-formly/core';
2
+ import { FieldType, FieldTypeConfig } from '@ngx-formly/core';
3
+ import type { NzFormlyFieldConfig } from 'ngx-formly-zorro-antd/common';
3
4
  import type { DatepickerProps } from './datepicker.props';
4
5
  import * as i0 from "@angular/core";
5
- export interface FormlyDatepickerFieldConfig extends FormlyFieldConfig<DatepickerProps> {
6
+ export interface FormlyDatepickerFieldConfig extends NzFormlyFieldConfig<DatepickerProps> {
6
7
  type: 'datepicker' | Type<FormlyFieldDatepicker>;
7
8
  }
8
9
  export declare class FormlyFieldDatepicker extends FieldType<FieldTypeConfig> {
@@ -107,4 +107,4 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.5", ngImpor
107
107
  changeDetection: ChangeDetectionStrategy.OnPush
108
108
  }]
109
109
  }] });
110
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYnV0dG9uLnR5cGUuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi9wYWNrYWdlcy9mb3JtbHlhbnRkL2J1dHRvbi9zcmMvYnV0dG9uLnR5cGUudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsT0FBTyxFQUFFLFNBQVMsRUFBUSx1QkFBdUIsRUFBRSxNQUFNLGVBQWUsQ0FBQztBQUN6RSxPQUFPLEVBQUUsU0FBUyxFQUFzQyxNQUFNLGtCQUFrQixDQUFDOzs7Ozs7OztBQXlHakYsTUFBTSxPQUFPLGlCQUFrQixTQUFRLFNBQXVDO0lBM0M5RTs7UUE0Q1csbUJBQWMsR0FBRztZQUN4QixLQUFLLEVBQUU7Z0JBQ0wsS0FBSyxFQ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RhaW5lciAqbmdJZj1cInByb3BzLnR5cGUgPT09ICdhJzsgZWxzZSBlbHNlYnV0dG9uXCI+XG4gICAgICA8YVxuICAgICAgICBuei1idXR0b25cbiAgICAgICAgW2Zvcm1seUF0dHJpYnV0ZXNdPVwiZmllbGRcIlxuICAgICAgICBbbnpHaG9zdF09XCJwcm9wc1snZ2hvc3QnXSEhXCJcbiAgICAgICAgW256TG9hZGluZ109XCJwcm9wc1snbG9hZGluZyddISFcIlxuICAgICAgICBbbnpTaGFwZV09XCJwcm9wc1snc2hhcGUnXSA/PyBudWxsXCJcbiAgICAgICAgW256U2l6ZV09XCJwcm9wc1snc2l6ZSddIVwiXG4gICAgICAgIFtuekJsb2NrXT1cInByb3BzWydibG9jayddISFcIlxuICAgICAgICBbbnpEYW5nZXJdPVwicHJvcHNbJ2RhbmdlciddISFcIlxuICAgICAgICBbbnpUeXBlXT1cInByb3BzWydidXR0b25UeXBlJ10gPz8gJ2xpbmsnXCJcbiAgICAgICAgW25nQ2xhc3NdPVwicHJvcHNbJ2NsYXNzTmFtZSddIVwiXG4gICAgICA+XG4gICAgICAgIDxzcGFuICpuZ0lmPVwicHJvcHNbJ2ljb25PbkJlZm9yZSddXCIgbnotaWNvbiBbbnpUeXBlXT1cInByb3BzWydpY29uT25CZWZvcmUnXVwiPjwvc3Bhbj5cbiAgICAgICAge3sgcHJvcHMubGFiZWwgfX1cbiAgICAgICAgPHNwYW4gKm5nSWY9XCJwcm9wc1snaWNvbk9uQWZ0ZXInXVwiIG56LWljb24gW256VHlwZV09XCJwcm9wc1snaWNvbk9uQWZ0ZXInXVwiPjwvc3Bhbj5cbiAgICAgIDwvYT5cbiAgICA8L25nLWNvbnRhaW5lcj5cbiAgICA8bmctdGVtcGxhdGUgI2Vsc2VidXR0b24+XG4gICAgICA8YnV0dG9uXG4gICAgICAgIG56LWJ1dHRvblxuICAgICAgICBbYXR0ci50eXBlXT1cImZpZWxkLnR5cGVcIlxuICAgICAgICBbZm9ybWx5QXR0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iBmYWxzZSxcbiAgICAgIGxvYWRpbmc6IGZhbHNlLFxuICAgICAgYmxvY2s6IGZhbHNlLFxuICAgICAgc2l6ZTogJ2RlZmF1bHQnIGFzIGNvbnN0LFxuICAgICAgZGFuZ2VyOiBmYWxzZVxuICAgIH1cbiAgfTtcbn1cbiJdfQ==
@@ -1,22 +1,25 @@
1
1
  import { NgModule } from '@angular/core';
2
2
  import { CommonModule } from '@angular/common';
3
3
  import { FormlyModule } from '@ngx-formly/core';
4
- import { FormlyWrapperCard } from './card.wrapper';
4
+ import { NzOutletModule } from 'ng-zorro-antd/core/outlet';
5
+ import { FormlyFieldCard } from './card.type';
5
6
  import { NzCardModule } from 'ng-zorro-antd/card';
6
7
  import * as i0 from "@angular/core";
7
8
  import * as i1 from "@ngx-formly/core";
9
+ const COMPONENT = FormlyFieldCard;
8
10
  export class FormlyNzCardModule {
9
11
  static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.5", ngImport: i0, type: FormlyNzCardModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
10
- static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "16.1.5", ngImport: i0, type: FormlyNzCardModule, declarations: [FormlyWrapperCard], imports: [CommonModule,
11
- NzCardModule, i1.FormlyModule] }); }
12
+ static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "16.1.5", ngImport: i0, type: FormlyNzCardModule, declarations: [FormlyFieldCard], imports: [CommonModule,
13
+ NzCardModule,
14
+ NzOutletModule, i1.FormlyModule], exports: [FormlyFieldCard] }); }
12
15
  static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "16.1.5", ngImport: i0, type: FormlyNzCardModule, imports: [CommonModule,
13
16
  NzCardModule,
17
+ NzOutletModule,
14
18
  FormlyModule.forChild({
15
- wrappers: [
19
+ types: [
16
20
  {
17
21
  name: 'card',
18
- component: FormlyWrapperCard,
19
- types: ['card']
22
+ component: COMPONENT
20
23
  }
21
24
  ]
22
25
  })] }); }
@@ -24,20 +27,21 @@ export class FormlyNzCardModule {
24
27
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.5", ngImport: i0, type: FormlyNzCardModule, decorators: [{
25
28
  type: NgModule,
26
29
  args: [{
27
- declarations: [FormlyWrapperCard],
30
+ declarations: [COMPONENT],
28
31
  imports: [
29
32
  CommonModule,
30
33
  NzCardModule,
34
+ NzOutletModule,
31
35
  FormlyModule.forChild({
32
- wrappers: [
36
+ types: [
33
37
  {
34
38
  name: 'card',
35
- component: FormlyWrapperCard,
36
- types: ['card']
39
+ component: COMPONENT
37
40
  }
38
41
  ]
39
42
  })
40
- ]
43
+ ],
44
+ exports: [COMPONENT]
41
45
  }]
42
46
  }] });
43
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY2FyZC5tb2R1bGUuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi9wYWNrYWdlcy9mb3JtbHlhbnRkL2NhcmQvc3JjL2NhcmQubW9kdWxlLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLE9BQU8sRUFBRSxRQUFRLEVBQUUsTUFBTSxlQUFlLENBQUM7QUFDekMsT0FBTyxFQUFFLFlBQVksRUFBRSxNQUFNLGlCQUFpQixDQUFDO0FBQy9DLE9BQU8sRUFBRSxZQUFZLEVBQUUsTUFBTSxrQkFBa0IsQ0FBQztBQUVoRCxPQUFPLEVBQUUsaUJBQWlCLEVBQUUsTUFBTSxnQkFBZ0IsQ0FBQztBQUNuRCxPQUFPLEVBQUUsWUFBWSxFQUFFLE1BQU0sb0JBQW9CLENBQUM7OztBQW1CbEQsTUFBTSxPQUFPLGtCQUFrQjs4R0FBbEIsa0JBQWtCOytHQUFsQixrQkFBa0IsaUJBaEJkLGlCQUFpQixhQUU5QixZQUFZO1lBQ1osWUF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3JtbHlGaWVsZENhcmQ7XG5cbkBOZ01vZHVsZSh7XG4gIGRlY2xhcmF0aW9uczogW0NPTVBPTkVOVF0sXG4gIGltcG9ydHM6IFtcbiAgICBDb21tb25Nb2R1bGUsXG4gICAgTnpDYXJkTW9kdWxlLFxuICAgIE56T3V0bGV0TW9kdWxlLFxuICAgIEZvcm1seU1vZHVsZS5mb3JDaGlsZCh7XG4gICAgICB0eXBlczogW1xuICAgICAgICB7XG4gICAgICAgICAgbmFtZTogJ2NhcmQnLFxuICAgICAgICAgIGNvbXBvbmVudDogQ09NUE9ORU5UXG4gICAgICAgIH1cbiAgICAgIF1cbiAgICB9KVxuICBdLFxuICBleHBvcnRzOiBbQ09NUE9ORU5UXVxufSlcbmV4cG9ydCBjbGFzcyBGb3JtbHlOekNhcmRNb2R1bGUge31cbiJdfQ==
@@ -0,0 +1,93 @@
1
+ import { Component, Optional, ChangeDetectionStrategy } from '@angular/core';
2
+ import { FieldType } from '@ngx-formly/core';
3
+ import { FormlyBoxTemplates, resolveTplName, resolveTplNameArray } from 'ngx-formly-zorro-antd/common';
4
+ import * as i0 from "@angular/core";
5
+ import * as i1 from "ngx-formly-zorro-antd/common";
6
+ import * as i2 from "@angular/common";
7
+ import * as i3 from "ng-zorro-antd/card";
8
+ import * as i4 from "ng-zorro-antd/core/outlet";
9
+ import * as i5 from "@ngx-formly/core";
10
+ export class FormlyFieldCard extends FieldType {
11
+ constructor(fieldTemplates) {
12
+ super();
13
+ this.fieldTemplates = fieldTemplates;
14
+ this.defaultOptions = {
15
+ props: {
16
+ bordered: true,
17
+ type: 'button'
18
+ }
19
+ };
20
+ }
21
+ get nzTitle() {
22
+ return resolveTplName(this.props, this.fieldTemplates, 'title');
23
+ }
24
+ get nzCover() {
25
+ return resolveTplName(this.props, this.fieldTemplates, 'cover');
26
+ }
27
+ get nzExtra() {
28
+ return resolveTplName(this.props, this.fieldTemplates, 'extra');
29
+ }
30
+ get nzActions() {
31
+ return resolveTplNameArray(this.props, this.fieldTemplates, 'actions') || [];
32
+ }
33
+ get nzContent() {
34
+ return resolveTplName(this.props, this.fieldTemplates, 'content');
35
+ }
36
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.5", ngImport: i0, type: FormlyFieldCard, deps: [{ token: i1.FormlyBoxTemplates, optional: true }], target: i0.ɵɵFactoryTarget.Component }); }
37
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.1.5", type: FormlyFieldCard, selector: "formly-field-card", usesInheritance: true, ngImport: i0, template: `
38
+ <nz-card
39
+ [nzActions]="nzActions"
40
+ [formlyAttributes]="field"
41
+ [nzBodyStyle]="props['bodyStyle'] ?? null"
42
+ [nzSize]="props['size']!"
43
+ [nzBorderless]="props['borderless']!!"
44
+ [nzCover]="nzCover"
45
+ [nzExtra]="nzExtra"
46
+ [nzHoverable]="props['hoverable']!!"
47
+ [nzLoading]="props['loading']!!"
48
+ [nzTitle]="nzTitle"
49
+ [nzBordered]="props['bordered']!!"
50
+ [nzType]="props['type'] ?? null"
51
+ >
52
+ <formly-field [field]="item" *ngFor="let item of field.fieldGroup"></formly-field>
53
+ <ng-container
54
+ *nzStringTemplateOutlet="nzContent; context: { $implicit: field, options: props }"
55
+ >
56
+ {{ nzContent }}
57
+ </ng-container>
58
+ </nz-card>
59
+ `, isInline: true, dependencies: [{ kind: "directive", type: i2.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "component", type: i3.NzCardComponent, selector: "nz-card", inputs: ["nzBordered", "nzBorderless", "nzLoading", "nzHoverable", "nzBodyStyle", "nzCover", "nzActions", "nzType", "nzSize", "nzTitle", "nzExtra"], exportAs: ["nzCard"] }, { kind: "directive", type: i4.NzStringTemplateOutletDirective, selector: "[nzStringTemplateOutlet]", inputs: ["nzStringTemplateOutletContext", "nzStringTemplateOutlet"], exportAs: ["nzStringTemplateOutlet"] }, { kind: "component", type: i5.FormlyField, selector: "formly-field", inputs: ["field"] }, { kind: "directive", type: i5.ɵFormlyAttributes, selector: "[formlyAttributes]", inputs: ["formlyAttributes", "id"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
60
+ }
61
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.5", ngImport: i0, type: FormlyFieldCard, decorators: [{
62
+ type: Component,
63
+ args: [{
64
+ selector: 'formly-field-card',
65
+ template: `
66
+ <nz-card
67
+ [nzActions]="nzActions"
68
+ [formlyAttributes]="field"
69
+ [nzBodyStyle]="props['bodyStyle'] ?? null"
70
+ [nzSize]="props['size']!"
71
+ [nzBorderless]="props['borderless']!!"
72
+ [nzCover]="nzCover"
73
+ [nzExtra]="nzExtra"
74
+ [nzHoverable]="props['hoverable']!!"
75
+ [nzLoading]="props['loading']!!"
76
+ [nzTitle]="nzTitle"
77
+ [nzBordered]="props['bordered']!!"
78
+ [nzType]="props['type'] ?? null"
79
+ >
80
+ <formly-field [field]="item" *ngFor="let item of field.fieldGroup"></formly-field>
81
+ <ng-container
82
+ *nzStringTemplateOutlet="nzContent; context: { $implicit: field, options: props }"
83
+ >
84
+ {{ nzContent }}
85
+ </ng-container>
86
+ </nz-card>
87
+ `,
88
+ changeDetection: ChangeDetectionStrategy.OnPush
89
+ }]
90
+ }], ctorParameters: function () { return [{ type: i1.FormlyBoxTemplates, decorators: [{
91
+ type: Optional
92
+ }] }]; } });
93
+ //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY2FyZC50eXBlLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vcGFja2FnZXMvZm9ybWx5YW50ZC9jYXJkL3NyYy9jYXJkLnR5cGUudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsT0FBTyxFQUFFLFNBQVMsRUFBcUIsUUFBUSxFQUFFLHVCQUF1QixFQUFFLE1BQU0sZU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b250ZW50Pzogc3RyaW5nIHwgVGVtcGxhdGVSZWY8eyAkaW1wbGljaXQ6IENhcmRQcm9wczsgb3B0aW9uczogQ2FyZFByb3BzIH0+O1xuICBjb250ZW50TmFtZT86IHN0cmluZztcbn1cblxuZXhwb3J0IGludGVyZmFjZSBGb3JtbHlDYXJkRmllbGRDb25maWcgZXh0ZW5kcyBOekZvcm1seUZpZWxkQ29uZmlnPENhcmRQcm9wcz4ge1xuICB0eXBlOiAnY2FyZCcgfCBUeXBlPEZvcm1seUZpZWxkQ2FyZD47XG59XG5cbkBDb21wb25lbnQoe1xuICBzZWxlY3RvcjogJ2Zvcm1seS1maWVsZC1jYXJkJyxcbiAgdGVtcGxhdGU6IGBcbiAgICA8bnotY2FyZFxuICAgICAgW256QWN0aW9uc109XCJuekFjdGlvbnNcIlxuICAgICAgW2Zvcm1seUF0dHJpYnV0ZXNdPVwiZmllbGRcIlxuICAgICAgW256Qm9keVN0eWxlXT1cInByb3BzWydib2R5U3R5bGUnXSA/PyBudWxsXCJcbiAgICAgIFtuelNpemVdPVwicHJvcHNbJ3NpemUnXSFcIlxuICAgICAgW256Qm9yZGVybGVzc109XCJwcm9wc1snYm9yZGVybGVzcyddISFcIlxuICAgICAgW256Q292ZXJdPVwibnpDb3ZlclwiXG4gICAgICBbbnpFeHRyYV09XCJuekV4dHJhXCJcbiAgICAgIFtuekhvdmVyYWJsZV09XCJwcm9wc1snaG92ZXJhYmxlJ10hIVwiXG4gICAgICBbbnpMb2FkaW5nXT1cInByb3BzWydsb2FkaW5nJ10hIVwiXG4gICAgICBbbnpUaXRsZV09XCJuelRpdGxlXCJcbiAgICAgIFtuekJvcmRlcmVkXT1cInByb3BzWydib3JkZXJlZCddISFcIlxuICAgICAgW256VHlwZV09XCJwcm9wc1sndHlwZSddID8/IG51bGxcIlxuICAgID5cbiAgICAgIDxmb3JtbHktZmllbGQgW2ZpZWxkXT1cIml0ZW1cIiAqbmdGb3I9XCJsZXQgaXRlbSBvZiBmaWVs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F0ZXMsICdleHRyYScpO1xuICB9XG4gIGdldCBuekFjdGlvbnMoKSB7XG4gICAgcmV0dXJuIHJlc29sdmVUcGxOYW1lQXJyYXkodGhpcy5wcm9wcywgdGhpcy5maWVsZFRlbXBsYXRlcywgJ2FjdGlvbnMnKSB8fCBbXTtcbiAgfVxuICBnZXQgbnpDb250ZW50KCkge1xuICAgIHJldHVybiByZXNvbHZlVHBsTmFtZSh0aGlzLnByb3BzLCB0aGlzLmZpZWxkVGVtcGxhdGVzLCAnY29udGVudCcpO1xuICB9XG59XG4iXX0=
@@ -1,3 +1,3 @@
1
1
  export { FormlyNzCardModule } from './card.module';
2
- export { FormlyWrapperCard } from './card.wrapper';
3
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicHVibGljX2FwaS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uL3BhY2thZ2VzL2Zvcm1seWFudGQvY2FyZC9zcmMvcHVibGljX2FwaS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxPQUFPLEVBQUUsa0JBQWtCLEVBQUUsTUFBTSxlQUFlLENBQUM7QUFDbkQsT0FBTyxFQUFFLGlCQUFpQixFQUEyQixNQUFNLGdCQUFnQixDQUFDIiwic291cmNlc0NvbnRlbnQiOlsiZXhwb3J0IHsgRm9ybWx5TnpDYXJkTW9kdWxlIH0gZnJvbSAnLi9jYXJkLm1vZHVsZSc7XG5leHBvcnQgeyBGb3JtbHlXcmFwcGVyQ2FyZCwgRm9ybWx5Q2FyZFdyYXBwZXJDb25maWcgfSBmcm9tICcuL2NhcmQud3JhcHBlcic7XG4iXX0=
2
+ export { FormlyFieldCard } from './card.type';
3
+ //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicHVibGljX2FwaS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uL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