ng-zorro-antd-extension 18.1.5 → 19.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (253) hide show
  1. package/README.md +2 -1
  2. package/acl/nzx-acl.directive.d.ts +1 -1
  3. package/acl/nzx-acl.module.d.ts +1 -2
  4. package/blank-field/blank-field.component.d.ts +1 -1
  5. package/blank-field/blank-field.module.d.ts +1 -2
  6. package/checkbox/checkbox-group.component.d.ts +5 -16
  7. package/checkbox/checkbox.module.d.ts +1 -4
  8. package/configurable-query/configurable-query-item/configurable-query-item.component.d.ts +1 -1
  9. package/configurable-query/configurable-query.component.d.ts +1 -1
  10. package/configurable-query/configurable-query.module.d.ts +3 -21
  11. package/configurable-query/control.directive.d.ts +1 -1
  12. package/configurable-query/controls/abstract.control.d.ts +2 -2
  13. package/configurable-query/controls/date-picker.control.d.ts +1 -1
  14. package/configurable-query/controls/input.control.d.ts +1 -1
  15. package/configurable-query/controls/range-picker.control.d.ts +1 -1
  16. package/configurable-query/controls/select.control.d.ts +1 -1
  17. package/configurable-query/controls/template.control.d.ts +1 -1
  18. package/dynamic-form/controls/abstract.control.d.ts +1 -1
  19. package/dynamic-form/controls/date-picker.control.d.ts +1 -1
  20. package/dynamic-form/controls/input.control.d.ts +1 -1
  21. package/dynamic-form/controls/range-picker.control.d.ts +1 -1
  22. package/dynamic-form/controls/select.control.d.ts +1 -1
  23. package/dynamic-form/controls/template.control.d.ts +1 -1
  24. package/dynamic-form/dynamic-form-item/dynamic-form-item.component.d.ts +1 -1
  25. package/dynamic-form/dynamic-form.component.d.ts +1 -1
  26. package/dynamic-form/dynamic-form.module.d.ts +1 -7
  27. package/dynamic-form/wrapper/control/abstract-control-wrapper.d.ts +1 -1
  28. package/dynamic-form/wrapper/control/built-in-control-wrapper.d.ts +1 -1
  29. package/dynamic-form/wrapper/item/abstract-item-wrapper.d.ts +1 -1
  30. package/dynamic-form/wrapper/item/built-in-item-wrapper.d.ts +1 -1
  31. package/dynamic-form/wrapper/label/abstract-label-wrapper.d.ts +1 -1
  32. package/dynamic-form/wrapper/label/built-in-label-wrapper.d.ts +1 -1
  33. package/editable/editable.component.d.ts +1 -1
  34. package/editable/editable.module.d.ts +1 -6
  35. package/fesm2022/ng-zorro-antd-extension-acl.mjs +11 -13
  36. package/fesm2022/ng-zorro-antd-extension-acl.mjs.map +1 -1
  37. package/fesm2022/ng-zorro-antd-extension-blank-field.mjs +19 -17
  38. package/fesm2022/ng-zorro-antd-extension-blank-field.mjs.map +1 -1
  39. package/fesm2022/ng-zorro-antd-extension-checkbox.mjs +28 -37
  40. package/fesm2022/ng-zorro-antd-extension-checkbox.mjs.map +1 -1
  41. package/fesm2022/ng-zorro-antd-extension-configurable-query.mjs +78 -116
  42. package/fesm2022/ng-zorro-antd-extension-configurable-query.mjs.map +1 -1
  43. package/fesm2022/ng-zorro-antd-extension-core-config.mjs +3 -3
  44. package/fesm2022/ng-zorro-antd-extension-core-config.mjs.map +1 -1
  45. package/fesm2022/ng-zorro-antd-extension-dynamic-form.mjs +86 -82
  46. package/fesm2022/ng-zorro-antd-extension-dynamic-form.mjs.map +1 -1
  47. package/fesm2022/ng-zorro-antd-extension-editable.mjs +23 -33
  48. package/fesm2022/ng-zorro-antd-extension-editable.mjs.map +1 -1
  49. package/fesm2022/ng-zorro-antd-extension-jigsaw.mjs +9 -10
  50. package/fesm2022/ng-zorro-antd-extension-jigsaw.mjs.map +1 -1
  51. package/fesm2022/ng-zorro-antd-extension-pipes.mjs +26 -26
  52. package/fesm2022/ng-zorro-antd-extension-pipes.mjs.map +1 -1
  53. package/fesm2022/ng-zorro-antd-extension-print.mjs +23 -21
  54. package/fesm2022/ng-zorro-antd-extension-print.mjs.map +1 -1
  55. package/fesm2022/ng-zorro-antd-extension-simple-table.mjs +22 -22
  56. package/fesm2022/ng-zorro-antd-extension-simple-table.mjs.map +1 -1
  57. package/fesm2022/ng-zorro-antd-extension-table-adaptor.mjs +11 -12
  58. package/fesm2022/ng-zorro-antd-extension-table-adaptor.mjs.map +1 -1
  59. package/fesm2022/ng-zorro-antd-extension-table-form.mjs +36 -53
  60. package/fesm2022/ng-zorro-antd-extension-table-form.mjs.map +1 -1
  61. package/fesm2022/ng-zorro-antd-extension-table-select.mjs +38 -40
  62. package/fesm2022/ng-zorro-antd-extension-table-select.mjs.map +1 -1
  63. package/fesm2022/ng-zorro-antd-extension-timer-button.mjs +8 -10
  64. package/fesm2022/ng-zorro-antd-extension-timer-button.mjs.map +1 -1
  65. package/fesm2022/ng-zorro-antd-extension-trim.mjs +8 -9
  66. package/fesm2022/ng-zorro-antd-extension-trim.mjs.map +1 -1
  67. package/fesm2022/ng-zorro-antd-extension-util.mjs.map +1 -1
  68. package/fesm2022/ng-zorro-antd-extension-wang-editor.mjs +11 -13
  69. package/fesm2022/ng-zorro-antd-extension-wang-editor.mjs.map +1 -1
  70. package/jigsaw/jigsaw.component.d.ts +1 -1
  71. package/jigsaw/jigsaw.module.d.ts +1 -3
  72. package/package.json +9 -51
  73. package/pipes/map.pipe.d.ts +1 -1
  74. package/pipes/pipes.module.d.ts +1 -1
  75. package/pipes/safe-html.pipe.d.ts +1 -1
  76. package/pipes/safe-null.pipe.d.ts +1 -1
  77. package/pipes/safe-resource-url.pipe.d.ts +1 -1
  78. package/pipes/safe-script.pipe.d.ts +1 -1
  79. package/pipes/safe-style.pipe.d.ts +1 -1
  80. package/pipes/safe-url.pipe.d.ts +1 -1
  81. package/print/nzx-print-content.directive.d.ts +1 -1
  82. package/print/nzx-print-v.component.d.ts +1 -1
  83. package/print/nzx-print.component.d.ts +1 -1
  84. package/print/nzx-print.directive.d.ts +1 -1
  85. package/print/nzx-print.module.d.ts +1 -4
  86. package/schematics/ng-add/index.js +1 -2
  87. package/schematics/ng-add/index.js.map +1 -1
  88. package/simple-table/directive/expand.directive.d.ts +1 -1
  89. package/simple-table/directive/td.directive.d.ts +1 -1
  90. package/simple-table/directive/th.directive.d.ts +1 -1
  91. package/simple-table/simple-table.component.d.ts +1 -1
  92. package/simple-table/simple-table.module.d.ts +1 -3
  93. package/table-adaptor/page-table-basic.d.ts +1 -1
  94. package/table-adaptor/table-adaptor.directive.d.ts +1 -1
  95. package/table-adaptor/table-adaptor.module.d.ts +1 -1
  96. package/table-form/directive/table-expand.directive.d.ts +1 -1
  97. package/table-form/directive/table-td.directive.d.ts +1 -1
  98. package/table-form/directive/table-th.directive.d.ts +1 -1
  99. package/table-form/table-form.component.d.ts +1 -1
  100. package/table-form/table-form.module.d.ts +1 -10
  101. package/table-select/abstract-table-select.d.ts +2 -2
  102. package/table-select/key.directive.d.ts +1 -1
  103. package/table-select/nzx-table-select.module.d.ts +1 -6
  104. package/table-select/page-table-select/page-table-select.component.d.ts +1 -1
  105. package/table-select/table-select/table-select.component.d.ts +1 -1
  106. package/timer-button/timer-button.directive.d.ts +1 -1
  107. package/timer-button/timer-button.module.d.ts +1 -2
  108. package/trim/trim.directive.d.ts +1 -1
  109. package/trim/trim.module.d.ts +1 -1
  110. package/wang-editor/wang-editor.component.d.ts +1 -1
  111. package/wang-editor/wang-editor.module.d.ts +1 -2
  112. package/wang-editor/wang-toolbar.component.d.ts +1 -1
  113. package/esm2022/acl/ng-zorro-antd-extension-acl.mjs +0 -5
  114. package/esm2022/acl/nzx-acl.directive.mjs +0 -80
  115. package/esm2022/acl/nzx-acl.module.mjs +0 -25
  116. package/esm2022/acl/nzx-acl.service.mjs +0 -45
  117. package/esm2022/acl/public-api.mjs +0 -8
  118. package/esm2022/blank-field/blank-field.component.mjs +0 -52
  119. package/esm2022/blank-field/blank-field.module.mjs +0 -18
  120. package/esm2022/blank-field/ng-zorro-antd-extension-blank-field.mjs +0 -5
  121. package/esm2022/blank-field/public-api.mjs +0 -7
  122. package/esm2022/checkbox/checkbox-group.component.mjs +0 -108
  123. package/esm2022/checkbox/checkbox.module.mjs +0 -20
  124. package/esm2022/checkbox/ng-zorro-antd-extension-checkbox.mjs +0 -5
  125. package/esm2022/checkbox/public-api.mjs +0 -7
  126. package/esm2022/configurable-query/configurable-query-item/configurable-query-item.component.mjs +0 -86
  127. package/esm2022/configurable-query/configurable-query.component.mjs +0 -309
  128. package/esm2022/configurable-query/configurable-query.module.mjs +0 -111
  129. package/esm2022/configurable-query/control.directive.mjs +0 -18
  130. package/esm2022/configurable-query/controls/abstract.control.mjs +0 -20
  131. package/esm2022/configurable-query/controls/date-picker.control.mjs +0 -37
  132. package/esm2022/configurable-query/controls/input.control.mjs +0 -36
  133. package/esm2022/configurable-query/controls/range-picker.control.mjs +0 -35
  134. package/esm2022/configurable-query/controls/select.control.mjs +0 -51
  135. package/esm2022/configurable-query/controls/template.control.mjs +0 -33
  136. package/esm2022/configurable-query/ng-zorro-antd-extension-configurable-query.mjs +0 -5
  137. package/esm2022/configurable-query/public-api.mjs +0 -7
  138. package/esm2022/configurable-query/query-config.service.mjs +0 -68
  139. package/esm2022/configurable-query/type.mjs +0 -2
  140. package/esm2022/core/config/config.mjs +0 -6
  141. package/esm2022/core/config/config.service.mjs +0 -84
  142. package/esm2022/core/config/ng-zorro-antd-extension-core-config.mjs +0 -5
  143. package/esm2022/core/config/public-api.mjs +0 -3
  144. package/esm2022/dynamic-form/config/dynamic-form-config.mjs +0 -47
  145. package/esm2022/dynamic-form/controls/abstract.control.mjs +0 -17
  146. package/esm2022/dynamic-form/controls/date-picker.control.mjs +0 -20
  147. package/esm2022/dynamic-form/controls/input.control.mjs +0 -15
  148. package/esm2022/dynamic-form/controls/range-picker.control.mjs +0 -15
  149. package/esm2022/dynamic-form/controls/select.control.mjs +0 -49
  150. package/esm2022/dynamic-form/controls/template.control.mjs +0 -30
  151. package/esm2022/dynamic-form/dynamic-form-item/dynamic-form-item.component.mjs +0 -31
  152. package/esm2022/dynamic-form/dynamic-form.component.mjs +0 -45
  153. package/esm2022/dynamic-form/dynamic-form.module.mjs +0 -72
  154. package/esm2022/dynamic-form/ng-zorro-antd-extension-dynamic-form.mjs +0 -5
  155. package/esm2022/dynamic-form/public-api.mjs +0 -8
  156. package/esm2022/dynamic-form/wrapper/control/abstract-control-wrapper.mjs +0 -30
  157. package/esm2022/dynamic-form/wrapper/control/built-in-control-wrapper.mjs +0 -32
  158. package/esm2022/dynamic-form/wrapper/item/abstract-item-wrapper.mjs +0 -44
  159. package/esm2022/dynamic-form/wrapper/item/built-in-item-wrapper.mjs +0 -27
  160. package/esm2022/dynamic-form/wrapper/label/abstract-label-wrapper.mjs +0 -10
  161. package/esm2022/dynamic-form/wrapper/label/built-in-label-wrapper.mjs +0 -17
  162. package/esm2022/editable/editable.component.mjs +0 -140
  163. package/esm2022/editable/editable.module.mjs +0 -36
  164. package/esm2022/editable/ng-zorro-antd-extension-editable.mjs +0 -5
  165. package/esm2022/editable/public-api.mjs +0 -3
  166. package/esm2022/i18n/languages/en_US.mjs +0 -10
  167. package/esm2022/i18n/languages/zh_CN.mjs +0 -10
  168. package/esm2022/i18n/ng-zorro-antd-extension-i18n.mjs +0 -5
  169. package/esm2022/i18n/nz-i18n.interface.mjs +0 -2
  170. package/esm2022/i18n/public-api.mjs +0 -4
  171. package/esm2022/jigsaw/jigsaw.component.mjs +0 -257
  172. package/esm2022/jigsaw/jigsaw.module.mjs +0 -19
  173. package/esm2022/jigsaw/ng-zorro-antd-extension-jigsaw.mjs +0 -5
  174. package/esm2022/jigsaw/public-api.mjs +0 -7
  175. package/esm2022/ng-zorro-antd-extension.mjs +0 -5
  176. package/esm2022/pipes/map.pipe.mjs +0 -24
  177. package/esm2022/pipes/ng-zorro-antd-extension-pipes.mjs +0 -5
  178. package/esm2022/pipes/pipes.module.mjs +0 -50
  179. package/esm2022/pipes/public-api.mjs +0 -13
  180. package/esm2022/pipes/safe-html.pipe.mjs +0 -20
  181. package/esm2022/pipes/safe-null.pipe.mjs +0 -30
  182. package/esm2022/pipes/safe-resource-url.pipe.mjs +0 -20
  183. package/esm2022/pipes/safe-script.pipe.mjs +0 -20
  184. package/esm2022/pipes/safe-style.pipe.mjs +0 -20
  185. package/esm2022/pipes/safe-url.pipe.mjs +0 -34
  186. package/esm2022/print/ng-zorro-antd-extension-print.mjs +0 -5
  187. package/esm2022/print/nzx-print-content.directive.mjs +0 -22
  188. package/esm2022/print/nzx-print-v.component.mjs +0 -312
  189. package/esm2022/print/nzx-print.component.mjs +0 -190
  190. package/esm2022/print/nzx-print.directive.mjs +0 -92
  191. package/esm2022/print/nzx-print.module.mjs +0 -39
  192. package/esm2022/print/public-api.mjs +0 -10
  193. package/esm2022/public-api.mjs +0 -5
  194. package/esm2022/simple-table/directive/expand.directive.mjs +0 -16
  195. package/esm2022/simple-table/directive/td.directive.mjs +0 -18
  196. package/esm2022/simple-table/directive/th.directive.mjs +0 -19
  197. package/esm2022/simple-table/ng-zorro-antd-extension-simple-table.mjs +0 -5
  198. package/esm2022/simple-table/public-api.mjs +0 -10
  199. package/esm2022/simple-table/simple-table.component.mjs +0 -229
  200. package/esm2022/simple-table/simple-table.module.mjs +0 -38
  201. package/esm2022/table-adaptor/ng-zorro-antd-extension-table-adaptor.mjs +0 -5
  202. package/esm2022/table-adaptor/page-table-basic.mjs +0 -22
  203. package/esm2022/table-adaptor/public-api.mjs +0 -8
  204. package/esm2022/table-adaptor/table-adaptor.directive.mjs +0 -173
  205. package/esm2022/table-adaptor/table-adaptor.module.mjs +0 -17
  206. package/esm2022/table-form/directive/table-expand.directive.mjs +0 -18
  207. package/esm2022/table-form/directive/table-td.directive.mjs +0 -18
  208. package/esm2022/table-form/directive/table-th.directive.mjs +0 -20
  209. package/esm2022/table-form/ng-zorro-antd-extension-table-form.mjs +0 -5
  210. package/esm2022/table-form/public-api.mjs +0 -11
  211. package/esm2022/table-form/table-form.component.mjs +0 -370
  212. package/esm2022/table-form/table-form.module.mjs +0 -71
  213. package/esm2022/table-form/type.mjs +0 -2
  214. package/esm2022/table-select/abstract-table-select.mjs +0 -140
  215. package/esm2022/table-select/key.directive.mjs +0 -21
  216. package/esm2022/table-select/ng-zorro-antd-extension-table-select.mjs +0 -5
  217. package/esm2022/table-select/nzx-table-select.module.mjs +0 -50
  218. package/esm2022/table-select/page-table-select/page-table-select.component.mjs +0 -58
  219. package/esm2022/table-select/public-api.mjs +0 -11
  220. package/esm2022/table-select/table-select/table-select.component.mjs +0 -39
  221. package/esm2022/table-select/type.mjs +0 -2
  222. package/esm2022/timer-button/ng-zorro-antd-extension-timer-button.mjs +0 -5
  223. package/esm2022/timer-button/public-api.mjs +0 -7
  224. package/esm2022/timer-button/timer-button.directive.mjs +0 -69
  225. package/esm2022/timer-button/timer-button.module.mjs +0 -18
  226. package/esm2022/trim/ng-zorro-antd-extension-trim.mjs +0 -5
  227. package/esm2022/trim/public-api.mjs +0 -7
  228. package/esm2022/trim/trim.directive.mjs +0 -123
  229. package/esm2022/trim/trim.module.mjs +0 -17
  230. package/esm2022/types/common.mjs +0 -2
  231. package/esm2022/types/ng-zorro-antd-extension-types.mjs +0 -5
  232. package/esm2022/types/public-api.mjs +0 -6
  233. package/esm2022/util/lib/cloneDeep.mjs +0 -49
  234. package/esm2022/util/lib/fileUtil.mjs +0 -51
  235. package/esm2022/util/lib/getElementByTag.mjs +0 -38
  236. package/esm2022/util/lib/isArray.mjs +0 -17
  237. package/esm2022/util/lib/isDate.mjs +0 -4
  238. package/esm2022/util/lib/isEmpty.mjs +0 -19
  239. package/esm2022/util/lib/isNumber.mjs +0 -12
  240. package/esm2022/util/lib/isObject.mjs +0 -10
  241. package/esm2022/util/lib/isString.mjs +0 -11
  242. package/esm2022/util/lib/toNumber.mjs +0 -18
  243. package/esm2022/util/lib/toString.mjs +0 -16
  244. package/esm2022/util/lib/trimObject.mjs +0 -15
  245. package/esm2022/util/lib/updateControlStatus.mjs +0 -47
  246. package/esm2022/util/ng-zorro-antd-extension-util.mjs +0 -5
  247. package/esm2022/util/public-api.mjs +0 -18
  248. package/esm2022/wang-editor/ng-zorro-antd-extension-wang-editor.mjs +0 -5
  249. package/esm2022/wang-editor/public-api.mjs +0 -9
  250. package/esm2022/wang-editor/type.mjs +0 -2
  251. package/esm2022/wang-editor/wang-editor.component.mjs +0 -235
  252. package/esm2022/wang-editor/wang-editor.module.mjs +0 -19
  253. package/esm2022/wang-editor/wang-toolbar.component.mjs +0 -57
package/README.md CHANGED
@@ -60,7 +60,8 @@ export class AppModule {}
60
60
 
61
61
  | angular | ng-zorro-antd | ng-zorro-antd-extension | LTS ends |
62
62
  | ------- | ------------- | ----------------------- | --------------- |
63
- | ^18.0.0 | ^18.0.0 | ^18.0.0 | 2025-11-xx |
63
+ | ^19.0.0 | ^19.0.0 | ^19.0.0 | 2026-05-19 |
64
+ | ^18.0.0 | ^18.0.0 | ^18.0.0 | 2025-11-19 |
64
65
  | ^17.0.0 | ^17.0.0 | ^15.6.0 | 2025-05-15 |
65
66
  | ^16.0.0 | ^16.0.0 | ^15.6.0 | 2024-11-08(end) |
66
67
  | ^15.0.0 | ^15.0.0 | ^15.0.0 | 2024-05-18(end) |
@@ -20,6 +20,6 @@ export declare class NzxAclDirective implements OnInit, OnDestroy {
20
20
  private judge;
21
21
  private createView;
22
22
  static ɵfac: i0.ɵɵFactoryDeclaration<NzxAclDirective, never>;
23
- static ɵdir: i0.ɵɵDirectiveDeclaration<NzxAclDirective, "[nzxAcl]", ["NzxAcl"], { "codes": { "alias": "nzxAcl"; "required": false; }; "nzxAclElse": { "alias": "nzxAclElse"; "required": false; }; "dataAcl": { "alias": "nzxAclDataAcl"; "required": false; }; }, {}, never, never, false, never>;
23
+ static ɵdir: i0.ɵɵDirectiveDeclaration<NzxAclDirective, "[nzxAcl]", ["NzxAcl"], { "codes": { "alias": "nzxAcl"; "required": false; }; "nzxAclElse": { "alias": "nzxAclElse"; "required": false; }; "dataAcl": { "alias": "nzxAclDataAcl"; "required": false; }; }, {}, never, never, true, never>;
24
24
  }
25
25
  export {};
@@ -1,10 +1,9 @@
1
1
  import { ModuleWithProviders } from '@angular/core';
2
2
  import * as i0 from "@angular/core";
3
3
  import * as i1 from "./nzx-acl.directive";
4
- import * as i2 from "@angular/common";
5
4
  export declare class NzxAclModule {
6
5
  static forRoot(): ModuleWithProviders<NzxAclModule>;
7
6
  static ɵfac: i0.ɵɵFactoryDeclaration<NzxAclModule, never>;
8
- static ɵmod: i0.ɵɵNgModuleDeclaration<NzxAclModule, [typeof i1.NzxAclDirective], [typeof i2.CommonModule], [typeof i1.NzxAclDirective]>;
7
+ static ɵmod: i0.ɵɵNgModuleDeclaration<NzxAclModule, never, [typeof i1.NzxAclDirective], [typeof i1.NzxAclDirective]>;
9
8
  static ɵinj: i0.ɵɵInjectorDeclaration<NzxAclModule>;
10
9
  }
@@ -14,6 +14,6 @@ export declare class NzxBlankFieldComponent implements ControlValueAccessor {
14
14
  setDisabledState(isDisabled: boolean): void;
15
15
  writeValue(obj: any): void;
16
16
  static ɵfac: i0.ɵɵFactoryDeclaration<NzxBlankFieldComponent, never>;
17
- static ɵcmp: i0.ɵɵComponentDeclaration<NzxBlankFieldComponent, "nzx-blank-field", never, {}, {}, ["templateRefExp"], never, false, never>;
17
+ static ɵcmp: i0.ɵɵComponentDeclaration<NzxBlankFieldComponent, "nzx-blank-field", never, {}, {}, ["templateRefExp"], never, true, never>;
18
18
  }
19
19
  export {};
@@ -1,8 +1,7 @@
1
1
  import * as i0 from "@angular/core";
2
2
  import * as i1 from "./blank-field.component";
3
- import * as i2 from "@angular/common";
4
3
  export declare class NzxBlankFieldModule {
5
4
  static ɵfac: i0.ɵɵFactoryDeclaration<NzxBlankFieldModule, never>;
6
- static ɵmod: i0.ɵɵNgModuleDeclaration<NzxBlankFieldModule, [typeof i1.NzxBlankFieldComponent], [typeof i2.CommonModule], [typeof i1.NzxBlankFieldComponent]>;
5
+ static ɵmod: i0.ɵɵNgModuleDeclaration<NzxBlankFieldModule, never, [typeof i1.NzxBlankFieldComponent], [typeof i1.NzxBlankFieldComponent]>;
7
6
  static ɵinj: i0.ɵɵInjectorDeclaration<NzxBlankFieldModule>;
8
7
  }
@@ -1,6 +1,6 @@
1
1
  import { ChangeDetectorRef } from '@angular/core';
2
2
  import { ControlValueAccessor } from '@angular/forms';
3
- import { NzxOptions } from 'ng-zorro-antd-extension/types';
3
+ import { NzCheckboxOption } from 'ng-zorro-antd/checkbox';
4
4
  import * as i0 from "@angular/core";
5
5
  /**
6
6
  * nzx-checkbox-group
@@ -8,13 +8,7 @@ import * as i0 from "@angular/core";
8
8
  */
9
9
  export declare class NzxCheckboxGroupComponent implements ControlValueAccessor {
10
10
  private cd;
11
- set checkOptions(value: Array<NzxOptions<string | number>>);
12
- _checkOptions: Array<{
13
- label: string;
14
- value: number | string;
15
- disabled?: boolean;
16
- checked?: boolean;
17
- }>;
11
+ checkOptions: Array<NzCheckboxOption>;
18
12
  /**
19
13
  * 自定义函数用来格式化输输入内容用来回显
20
14
  */
@@ -24,7 +18,7 @@ export declare class NzxCheckboxGroupComponent implements ControlValueAccessor {
24
18
  */
25
19
  customFormateOutFn: (value: any) => any;
26
20
  nzDisabled: boolean;
27
- private templateValue;
21
+ selectValue: any[];
28
22
  private propagateChange;
29
23
  constructor(cd: ChangeDetectorRef);
30
24
  writeValue(v: (string | number)[] | any): void;
@@ -33,12 +27,7 @@ export declare class NzxCheckboxGroupComponent implements ControlValueAccessor {
33
27
  registerOnChange(fn: any): void;
34
28
  registerOnTouched(fn: any): void;
35
29
  setDisabledState?(isDisabled: boolean): void;
36
- valueChange(value: Array<{
37
- label: string;
38
- value: number | string;
39
- checked?: boolean;
40
- }>): void;
41
- private _updateView;
30
+ valueChange(value: Array<number | string>): void;
42
31
  static ɵfac: i0.ɵɵFactoryDeclaration<NzxCheckboxGroupComponent, never>;
43
- static ɵcmp: i0.ɵɵComponentDeclaration<NzxCheckboxGroupComponent, "nzx-checkbox-group", ["NzxCheckboxGroup"], { "checkOptions": { "alias": "checkOptions"; "required": false; }; "customFormateInFn": { "alias": "customFormateInFn"; "required": false; }; "customFormateOutFn": { "alias": "customFormateOutFn"; "required": false; }; }, {}, never, never, false, never>;
32
+ static ɵcmp: i0.ɵɵComponentDeclaration<NzxCheckboxGroupComponent, "nzx-checkbox-group", ["NzxCheckboxGroup"], { "checkOptions": { "alias": "checkOptions"; "required": false; }; "customFormateInFn": { "alias": "customFormateInFn"; "required": false; }; "customFormateOutFn": { "alias": "customFormateOutFn"; "required": false; }; }, {}, never, never, true, never>;
44
33
  }
@@ -1,10 +1,7 @@
1
1
  import * as i0 from "@angular/core";
2
2
  import * as i1 from "./checkbox-group.component";
3
- import * as i2 from "@angular/common";
4
- import * as i3 from "@angular/forms";
5
- import * as i4 from "ng-zorro-antd/checkbox";
6
3
  export declare class NzxCheckboxModule {
7
4
  static ɵfac: i0.ɵɵFactoryDeclaration<NzxCheckboxModule, never>;
8
- static ɵmod: i0.ɵɵNgModuleDeclaration<NzxCheckboxModule, [typeof i1.NzxCheckboxGroupComponent], [typeof i2.CommonModule, typeof i3.FormsModule, typeof i4.NzCheckboxModule], [typeof i1.NzxCheckboxGroupComponent]>;
5
+ static ɵmod: i0.ɵɵNgModuleDeclaration<NzxCheckboxModule, never, [typeof i1.NzxCheckboxGroupComponent], [typeof i1.NzxCheckboxGroupComponent]>;
9
6
  static ɵinj: i0.ɵɵInjectorDeclaration<NzxCheckboxModule>;
10
7
  }
@@ -14,5 +14,5 @@ export declare class NzxConfigurableQueryItemComponent implements OnInit, OnDest
14
14
  ngOnDestroy(): void;
15
15
  private renderControl;
16
16
  static ɵfac: i0.ɵɵFactoryDeclaration<NzxConfigurableQueryItemComponent, never>;
17
- static ɵcmp: i0.ɵɵComponentDeclaration<NzxConfigurableQueryItemComponent, "nzx-configurable-query-item", never, { "form": { "alias": "form"; "required": false; }; "control": { "alias": "control"; "required": false; }; }, {}, never, never, false, never>;
17
+ static ɵcmp: i0.ɵɵComponentDeclaration<NzxConfigurableQueryItemComponent, "nzx-configurable-query-item", never, { "form": { "alias": "form"; "required": false; }; "control": { "alias": "control"; "required": false; }; }, {}, never, never, true, never>;
18
18
  }
@@ -107,5 +107,5 @@ export declare class NzxConfigurableQueryComponent implements OnChanges, OnInit,
107
107
  **/
108
108
  private generateControl;
109
109
  static ɵfac: i0.ɵɵFactoryDeclaration<NzxConfigurableQueryComponent, never>;
110
- static ɵcmp: i0.ɵɵComponentDeclaration<NzxConfigurableQueryComponent, "nzx-configurable-query", ["NzxConfigurableQuery"], { "controls": { "alias": "controls"; "required": false; }; "nzxJustify": { "alias": "nzxJustify"; "required": false; }; "nzxGutter": { "alias": "nzxGutter"; "required": false; }; "lineNumber": { "alias": "lineNumber"; "required": false; }; "nzxBtnSpan": { "alias": "nzxBtnSpan"; "required": false; }; "initQuery": { "alias": "initQuery"; "required": false; }; "fixedParams": { "alias": "fixedParams"; "required": false; }; }, { "queryChange": "queryChange"; "resetChange": "resetChange"; }, ["controlTemplateList"], ["*"], false, never>;
110
+ static ɵcmp: i0.ɵɵComponentDeclaration<NzxConfigurableQueryComponent, "nzx-configurable-query", ["NzxConfigurableQuery"], { "controls": { "alias": "controls"; "required": false; }; "nzxJustify": { "alias": "nzxJustify"; "required": false; }; "nzxGutter": { "alias": "nzxGutter"; "required": false; }; "lineNumber": { "alias": "lineNumber"; "required": false; }; "nzxBtnSpan": { "alias": "nzxBtnSpan"; "required": false; }; "initQuery": { "alias": "initQuery"; "required": false; }; "fixedParams": { "alias": "fixedParams"; "required": false; }; }, { "queryChange": "queryChange"; "resetChange": "resetChange"; }, ["controlTemplateList"], ["*"], true, never>;
111
111
  }
@@ -1,30 +1,12 @@
1
1
  import { ModuleWithProviders } from '@angular/core';
2
2
  import { NzxQueryConfig } from './type';
3
3
  import * as i0 from "@angular/core";
4
- import * as i1 from "./configurable-query.component";
5
- import * as i2 from "./control.directive";
6
- import * as i3 from "./configurable-query-item/configurable-query-item.component";
7
- import * as i4 from "./controls/input.control";
8
- import * as i5 from "./controls/template.control";
9
- import * as i6 from "./controls/select.control";
10
- import * as i7 from "./controls/date-picker.control";
11
- import * as i8 from "./controls/range-picker.control";
12
- import * as i9 from "@angular/common";
13
- import * as i10 from "@angular/forms";
14
- import * as i11 from "ng-zorro-antd/input";
15
- import * as i12 from "ng-zorro-antd/form";
16
- import * as i13 from "ng-zorro-antd/grid";
17
- import * as i14 from "ng-zorro-antd/button";
18
- import * as i15 from "ng-zorro-antd/select";
19
- import * as i16 from "ng-zorro-antd/date-picker";
20
- import * as i17 from "ng-zorro-antd/card";
21
- import * as i18 from "ng-zorro-antd/space";
22
- import * as i19 from "ng-zorro-antd/icon";
23
- import * as i20 from "ng-zorro-antd/i18n";
4
+ import * as i1 from "./control.directive";
5
+ import * as i2 from "./configurable-query.component";
24
6
  export declare class NzxConfigurableQueryModule {
25
7
  static forRoot(nzxQueryConfig: NzxQueryConfig): ModuleWithProviders<NzxConfigurableQueryModule>;
26
8
  static forChild(nzxQueryConfig: NzxQueryConfig): ModuleWithProviders<NzxConfigurableQueryModule>;
27
9
  static ɵfac: i0.ɵɵFactoryDeclaration<NzxConfigurableQueryModule, never>;
28
- static ɵmod: i0.ɵɵNgModuleDeclaration<NzxConfigurableQueryModule, [typeof i1.NzxConfigurableQueryComponent, typeof i2.NzxControlDirective, typeof i3.NzxConfigurableQueryItemComponent, typeof i4.NzxInputControlComponent, typeof i5.NzxTemplateControlComponent, typeof i6.NzxSelectControlComponent, typeof i7.NzxDatePickerControlComponent, typeof i8.NzxRangePickerControlComponent], [typeof i9.CommonModule, typeof i10.ReactiveFormsModule, typeof i11.NzInputModule, typeof i12.NzFormModule, typeof i13.NzGridModule, typeof i14.NzButtonModule, typeof i15.NzSelectModule, typeof i16.NzDatePickerModule, typeof i17.NzCardModule, typeof i18.NzSpaceModule, typeof i19.NzIconModule, typeof i20.NzI18nModule], [typeof i2.NzxControlDirective, typeof i1.NzxConfigurableQueryComponent]>;
10
+ static ɵmod: i0.ɵɵNgModuleDeclaration<NzxConfigurableQueryModule, never, [typeof i1.NzxControlDirective, typeof i2.NzxConfigurableQueryComponent], [typeof i1.NzxControlDirective, typeof i2.NzxConfigurableQueryComponent]>;
29
11
  static ɵinj: i0.ɵɵInjectorDeclaration<NzxConfigurableQueryModule>;
30
12
  }
@@ -5,5 +5,5 @@ export declare class NzxControlDirective {
5
5
  nzxControl: string;
6
6
  constructor(templateRef: TemplateRef<unknown>);
7
7
  static ɵfac: i0.ɵɵFactoryDeclaration<NzxControlDirective, never>;
8
- static ɵdir: i0.ɵɵDirectiveDeclaration<NzxControlDirective, "[nzxControl]", never, { "nzxControl": { "alias": "nzxControl"; "required": false; }; }, {}, never, never, false, never>;
8
+ static ɵdir: i0.ɵɵDirectiveDeclaration<NzxControlDirective, "[nzxControl]", never, { "nzxControl": { "alias": "nzxControl"; "required": false; }; }, {}, never, never, true, never>;
9
9
  }
@@ -7,7 +7,7 @@ import * as i0 from "@angular/core";
7
7
  export declare abstract class NzxAbstractControl {
8
8
  form: FormGroup<any>;
9
9
  control: NzxQueryControlOptions;
10
- get formControl(): FormControl<any>;
10
+ get formControl(): FormControl;
11
11
  static ɵfac: i0.ɵɵFactoryDeclaration<NzxAbstractControl, never>;
12
- static ɵdir: i0.ɵɵDirectiveDeclaration<NzxAbstractControl, never, never, { "form": { "alias": "form"; "required": false; }; "control": { "alias": "control"; "required": false; }; }, {}, never, never, false, never>;
12
+ static ɵdir: i0.ɵɵDirectiveDeclaration<NzxAbstractControl, never, never, { "form": { "alias": "form"; "required": false; }; "control": { "alias": "control"; "required": false; }; }, {}, never, never, true, never>;
13
13
  }
@@ -2,5 +2,5 @@ import { NzxAbstractControl } from './abstract.control';
2
2
  import * as i0 from "@angular/core";
3
3
  export declare class NzxDatePickerControlComponent extends NzxAbstractControl {
4
4
  static ɵfac: i0.ɵɵFactoryDeclaration<NzxDatePickerControlComponent, never>;
5
- static ɵcmp: i0.ɵɵComponentDeclaration<NzxDatePickerControlComponent, "nzx-date-picker-control", never, {}, {}, never, never, false, never>;
5
+ static ɵcmp: i0.ɵɵComponentDeclaration<NzxDatePickerControlComponent, "nzx-date-picker-control", never, {}, {}, never, never, true, never>;
6
6
  }
@@ -2,5 +2,5 @@ import { NzxAbstractControl } from './abstract.control';
2
2
  import * as i0 from "@angular/core";
3
3
  export declare class NzxInputControlComponent extends NzxAbstractControl {
4
4
  static ɵfac: i0.ɵɵFactoryDeclaration<NzxInputControlComponent, never>;
5
- static ɵcmp: i0.ɵɵComponentDeclaration<NzxInputControlComponent, "nzx-input-control", never, {}, {}, never, never, false, never>;
5
+ static ɵcmp: i0.ɵɵComponentDeclaration<NzxInputControlComponent, "nzx-input-control", never, {}, {}, never, never, true, never>;
6
6
  }
@@ -2,5 +2,5 @@ import { NzxAbstractControl } from './abstract.control';
2
2
  import * as i0 from "@angular/core";
3
3
  export declare class NzxRangePickerControlComponent extends NzxAbstractControl {
4
4
  static ɵfac: i0.ɵɵFactoryDeclaration<NzxRangePickerControlComponent, never>;
5
- static ɵcmp: i0.ɵɵComponentDeclaration<NzxRangePickerControlComponent, "nzx-range-picker-control", never, {}, {}, never, never, false, never>;
5
+ static ɵcmp: i0.ɵɵComponentDeclaration<NzxRangePickerControlComponent, "nzx-range-picker-control", never, {}, {}, never, never, true, never>;
6
6
  }
@@ -2,5 +2,5 @@ import { NzxAbstractControl } from './abstract.control';
2
2
  import * as i0 from "@angular/core";
3
3
  export declare class NzxSelectControlComponent extends NzxAbstractControl {
4
4
  static ɵfac: i0.ɵɵFactoryDeclaration<NzxSelectControlComponent, never>;
5
- static ɵcmp: i0.ɵɵComponentDeclaration<NzxSelectControlComponent, "nzx-select-control", never, {}, {}, never, never, false, never>;
5
+ static ɵcmp: i0.ɵɵComponentDeclaration<NzxSelectControlComponent, "nzx-select-control", never, {}, {}, never, never, true, never>;
6
6
  }
@@ -2,5 +2,5 @@ import { NzxAbstractControl } from './abstract.control';
2
2
  import * as i0 from "@angular/core";
3
3
  export declare class NzxTemplateControlComponent extends NzxAbstractControl {
4
4
  static ɵfac: i0.ɵɵFactoryDeclaration<NzxTemplateControlComponent, never>;
5
- static ɵcmp: i0.ɵɵComponentDeclaration<NzxTemplateControlComponent, "nzx-template-control", never, {}, {}, never, never, false, never>;
5
+ static ɵcmp: i0.ɵɵComponentDeclaration<NzxTemplateControlComponent, "nzx-template-control", never, {}, {}, never, never, true, never>;
6
6
  }
@@ -7,5 +7,5 @@ export declare class NzxDFAbstractControl {
7
7
  form: FormGroup<any>;
8
8
  control: any;
9
9
  static ɵfac: i0.ɵɵFactoryDeclaration<NzxDFAbstractControl, never>;
10
- static ɵdir: i0.ɵɵDirectiveDeclaration<NzxDFAbstractControl, never, never, { "form": { "alias": "form"; "required": false; }; "control": { "alias": "control"; "required": false; }; }, {}, never, never, false, never>;
10
+ static ɵdir: i0.ɵɵDirectiveDeclaration<NzxDFAbstractControl, never, never, { "form": { "alias": "form"; "required": false; }; "control": { "alias": "control"; "required": false; }; }, {}, never, never, true, never>;
11
11
  }
@@ -2,5 +2,5 @@ import { NzxDFAbstractControl } from './abstract.control';
2
2
  import * as i0 from "@angular/core";
3
3
  export declare class NzxDFDatePickerControlComponent extends NzxDFAbstractControl {
4
4
  static ɵfac: i0.ɵɵFactoryDeclaration<NzxDFDatePickerControlComponent, never>;
5
- static ɵcmp: i0.ɵɵComponentDeclaration<NzxDFDatePickerControlComponent, "ng-component", never, {}, {}, never, never, false, never>;
5
+ static ɵcmp: i0.ɵɵComponentDeclaration<NzxDFDatePickerControlComponent, "ng-component", never, {}, {}, never, never, true, never>;
6
6
  }
@@ -2,5 +2,5 @@ import { NzxDFAbstractControl } from './abstract.control';
2
2
  import * as i0 from "@angular/core";
3
3
  export declare class NzxDFInputControlComponent extends NzxDFAbstractControl {
4
4
  static ɵfac: i0.ɵɵFactoryDeclaration<NzxDFInputControlComponent, never>;
5
- static ɵcmp: i0.ɵɵComponentDeclaration<NzxDFInputControlComponent, "ng-component", never, {}, {}, never, never, false, never>;
5
+ static ɵcmp: i0.ɵɵComponentDeclaration<NzxDFInputControlComponent, "ng-component", never, {}, {}, never, never, true, never>;
6
6
  }
@@ -2,5 +2,5 @@ import { NzxDFAbstractControl } from './abstract.control';
2
2
  import * as i0 from "@angular/core";
3
3
  export declare class NzxDFRangePickerControlComponent extends NzxDFAbstractControl {
4
4
  static ɵfac: i0.ɵɵFactoryDeclaration<NzxDFRangePickerControlComponent, never>;
5
- static ɵcmp: i0.ɵɵComponentDeclaration<NzxDFRangePickerControlComponent, "ng-component", never, {}, {}, never, never, false, never>;
5
+ static ɵcmp: i0.ɵɵComponentDeclaration<NzxDFRangePickerControlComponent, "ng-component", never, {}, {}, never, never, true, never>;
6
6
  }
@@ -2,5 +2,5 @@ import { NzxDFAbstractControl } from './abstract.control';
2
2
  import * as i0 from "@angular/core";
3
3
  export declare class NzxDFSelectControlComponent extends NzxDFAbstractControl {
4
4
  static ɵfac: i0.ɵɵFactoryDeclaration<NzxDFSelectControlComponent, never>;
5
- static ɵcmp: i0.ɵɵComponentDeclaration<NzxDFSelectControlComponent, "ng-component", never, {}, {}, never, never, false, never>;
5
+ static ɵcmp: i0.ɵɵComponentDeclaration<NzxDFSelectControlComponent, "ng-component", never, {}, {}, never, never, true, never>;
6
6
  }
@@ -2,5 +2,5 @@ import { NzxDFAbstractControl } from './abstract.control';
2
2
  import * as i0 from "@angular/core";
3
3
  export declare class NzxDFTemplateControlComponent extends NzxDFAbstractControl {
4
4
  static ɵfac: i0.ɵɵFactoryDeclaration<NzxDFTemplateControlComponent, never>;
5
- static ɵcmp: i0.ɵɵComponentDeclaration<NzxDFTemplateControlComponent, "ng-component", never, {}, {}, never, never, false, never>;
5
+ static ɵcmp: i0.ɵɵComponentDeclaration<NzxDFTemplateControlComponent, "ng-component", never, {}, {}, never, never, true, never>;
6
6
  }
@@ -8,5 +8,5 @@ export declare class DynamicFormItemComponent implements OnInit {
8
8
  ngOnInit(): void;
9
9
  private renderItem;
10
10
  static ɵfac: i0.ɵɵFactoryDeclaration<DynamicFormItemComponent, never>;
11
- static ɵcmp: i0.ɵɵComponentDeclaration<DynamicFormItemComponent, "nzx-dynamic-form-item", never, {}, {}, never, never, false, never>;
11
+ static ɵcmp: i0.ɵɵComponentDeclaration<DynamicFormItemComponent, "nzx-dynamic-form-item", never, {}, {}, never, never, true, never>;
12
12
  }
@@ -1,5 +1,5 @@
1
1
  import * as i0 from "@angular/core";
2
2
  export declare class NzxDynamicFormComponent {
3
3
  static ɵfac: i0.ɵɵFactoryDeclaration<NzxDynamicFormComponent, never>;
4
- static ɵcmp: i0.ɵɵComponentDeclaration<NzxDynamicFormComponent, "nzx-dynamic-form", never, {}, {}, never, never, false, never>;
4
+ static ɵcmp: i0.ɵɵComponentDeclaration<NzxDynamicFormComponent, "nzx-dynamic-form", never, {}, {}, never, never, true, never>;
5
5
  }
@@ -9,15 +9,9 @@ import * as i6 from "./controls/date-picker.control";
9
9
  import * as i7 from "./controls/input.control";
10
10
  import * as i8 from "./controls/range-picker.control";
11
11
  import * as i9 from "./controls/select.control";
12
- import * as i10 from "@angular/common";
13
- import * as i11 from "@angular/forms";
14
- import * as i12 from "ng-zorro-antd/form";
15
- import * as i13 from "ng-zorro-antd/input";
16
- import * as i14 from "ng-zorro-antd/select";
17
- import * as i15 from "ng-zorro-antd/date-picker";
18
12
  export declare class NzxDynamicFormModule {
19
13
  static forRoot(): ModuleWithProviders<NzxDynamicFormModule>;
20
14
  static ɵfac: i0.ɵɵFactoryDeclaration<NzxDynamicFormModule, never>;
21
- static ɵmod: i0.ɵɵNgModuleDeclaration<NzxDynamicFormModule, [typeof i1.NzxDynamicFormComponent, typeof i2.DynamicFormItemComponent, typeof i3.NzxDFBuiltInItemWrapperComponent, typeof i4.NzxDFBuiltInLabelWrapperComponent, typeof i5.NzxDFBuiltInControlWrapperComponent, typeof i6.NzxDFDatePickerControlComponent, typeof i7.NzxDFInputControlComponent, typeof i8.NzxDFRangePickerControlComponent, typeof i9.NzxDFSelectControlComponent], [typeof i10.CommonModule, typeof i11.ReactiveFormsModule, typeof i12.NzFormModule, typeof i13.NzInputModule, typeof i14.NzSelectModule, typeof i15.NzDatePickerModule], [typeof i1.NzxDynamicFormComponent]>;
15
+ static ɵmod: i0.ɵɵNgModuleDeclaration<NzxDynamicFormModule, never, [typeof i1.NzxDynamicFormComponent, typeof i2.DynamicFormItemComponent, typeof i3.NzxDFBuiltInItemWrapperComponent, typeof i4.NzxDFBuiltInLabelWrapperComponent, typeof i5.NzxDFBuiltInControlWrapperComponent, typeof i6.NzxDFDatePickerControlComponent, typeof i7.NzxDFInputControlComponent, typeof i8.NzxDFRangePickerControlComponent, typeof i9.NzxDFSelectControlComponent], [typeof i1.NzxDynamicFormComponent]>;
22
16
  static ɵinj: i0.ɵɵInjectorDeclaration<NzxDynamicFormModule>;
23
17
  }
@@ -8,5 +8,5 @@ export declare class NzxDFAbstractControlWrapper implements OnInit {
8
8
  ngOnInit(): void;
9
9
  private renderControl;
10
10
  static ɵfac: i0.ɵɵFactoryDeclaration<NzxDFAbstractControlWrapper, never>;
11
- static ɵdir: i0.ɵɵDirectiveDeclaration<NzxDFAbstractControlWrapper, never, never, {}, {}, never, never, false, never>;
11
+ static ɵdir: i0.ɵɵDirectiveDeclaration<NzxDFAbstractControlWrapper, never, never, {}, {}, never, never, true, never>;
12
12
  }
@@ -3,5 +3,5 @@ import * as i0 from "@angular/core";
3
3
  export declare class NzxDFBuiltInControlWrapperComponent extends NzxDFAbstractControlWrapper {
4
4
  controlWrapper: boolean;
5
5
  static ɵfac: i0.ɵɵFactoryDeclaration<NzxDFBuiltInControlWrapperComponent, never>;
6
- static ɵcmp: i0.ɵɵComponentDeclaration<NzxDFBuiltInControlWrapperComponent, "nzx-built-in-control-wrapper", never, {}, {}, never, never, false, never>;
6
+ static ɵcmp: i0.ɵɵComponentDeclaration<NzxDFBuiltInControlWrapperComponent, "nzx-built-in-control-wrapper", never, {}, {}, never, never, true, never>;
7
7
  }
@@ -10,5 +10,5 @@ export declare class NzxDFAbstractItemWrapper implements OnInit {
10
10
  private renderLabel;
11
11
  private renderControl;
12
12
  static ɵfac: i0.ɵɵFactoryDeclaration<NzxDFAbstractItemWrapper, never>;
13
- static ɵdir: i0.ɵɵDirectiveDeclaration<NzxDFAbstractItemWrapper, never, never, {}, {}, never, never, false, never>;
13
+ static ɵdir: i0.ɵɵDirectiveDeclaration<NzxDFAbstractItemWrapper, never, never, {}, {}, never, never, true, never>;
14
14
  }
@@ -2,5 +2,5 @@ import { NzxDFAbstractItemWrapper } from './abstract-item-wrapper';
2
2
  import * as i0 from "@angular/core";
3
3
  export declare class NzxDFBuiltInItemWrapperComponent extends NzxDFAbstractItemWrapper {
4
4
  static ɵfac: i0.ɵɵFactoryDeclaration<NzxDFBuiltInItemWrapperComponent, never>;
5
- static ɵcmp: i0.ɵɵComponentDeclaration<NzxDFBuiltInItemWrapperComponent, "nzx-built-in-item-wrapper", never, {}, {}, never, never, false, never>;
5
+ static ɵcmp: i0.ɵɵComponentDeclaration<NzxDFBuiltInItemWrapperComponent, "nzx-built-in-item-wrapper", never, {}, {}, never, never, true, never>;
6
6
  }
@@ -1,5 +1,5 @@
1
1
  import * as i0 from "@angular/core";
2
2
  export declare class NzxDFAbstractLabelWrapper {
3
3
  static ɵfac: i0.ɵɵFactoryDeclaration<NzxDFAbstractLabelWrapper, never>;
4
- static ɵdir: i0.ɵɵDirectiveDeclaration<NzxDFAbstractLabelWrapper, never, never, {}, {}, never, never, false, never>;
4
+ static ɵdir: i0.ɵɵDirectiveDeclaration<NzxDFAbstractLabelWrapper, never, never, {}, {}, never, never, true, never>;
5
5
  }
@@ -2,5 +2,5 @@ import { NzxDFAbstractLabelWrapper } from './abstract-label-wrapper';
2
2
  import * as i0 from "@angular/core";
3
3
  export declare class NzxDFBuiltInLabelWrapperComponent extends NzxDFAbstractLabelWrapper {
4
4
  static ɵfac: i0.ɵɵFactoryDeclaration<NzxDFBuiltInLabelWrapperComponent, never>;
5
- static ɵcmp: i0.ɵɵComponentDeclaration<NzxDFBuiltInLabelWrapperComponent, "nzx-built-in-label-wrapper", never, {}, {}, never, never, false, never>;
5
+ static ɵcmp: i0.ɵɵComponentDeclaration<NzxDFBuiltInLabelWrapperComponent, "nzx-built-in-label-wrapper", never, {}, {}, never, never, true, never>;
6
6
  }
@@ -16,5 +16,5 @@ export declare class NzxEditableComponent implements OnInit {
16
16
  blur(): void;
17
17
  valueChange(value: any): void;
18
18
  static ɵfac: i0.ɵɵFactoryDeclaration<NzxEditableComponent, never>;
19
- static ɵcmp: i0.ɵɵComponentDeclaration<NzxEditableComponent, "[nzx-editable]", ["NzxEditable"], { "nzxContent": { "alias": "nzxContent"; "required": false; }; "nzxShowBtn": { "alias": "nzxShowBtn"; "required": false; }; "nzxContentType": { "alias": "nzxContentType"; "required": false; }; }, { "nzxContentChange": "nzxContentChange"; }, never, never, false, never>;
19
+ static ɵcmp: i0.ɵɵComponentDeclaration<NzxEditableComponent, "[nzx-editable]", ["NzxEditable"], { "nzxContent": { "alias": "nzxContent"; "required": false; }; "nzxShowBtn": { "alias": "nzxShowBtn"; "required": false; }; "nzxContentType": { "alias": "nzxContentType"; "required": false; }; }, { "nzxContentChange": "nzxContentChange"; }, never, never, true, never>;
20
20
  }
@@ -1,12 +1,7 @@
1
1
  import * as i0 from "@angular/core";
2
2
  import * as i1 from "./editable.component";
3
- import * as i2 from "@angular/common";
4
- import * as i3 from "@angular/forms";
5
- import * as i4 from "ng-zorro-antd/icon";
6
- import * as i5 from "ng-zorro-antd/input";
7
- import * as i6 from "ng-zorro-antd/core/trans-button";
8
3
  export declare class NzxEditableModule {
9
4
  static ɵfac: i0.ɵɵFactoryDeclaration<NzxEditableModule, never>;
10
- static ɵmod: i0.ɵɵNgModuleDeclaration<NzxEditableModule, [typeof i1.NzxEditableComponent], [typeof i2.CommonModule, typeof i3.FormsModule, typeof i4.NzIconModule, typeof i5.NzInputModule, typeof i6.NzTransButtonModule], [typeof i1.NzxEditableComponent]>;
5
+ static ɵmod: i0.ɵɵNgModuleDeclaration<NzxEditableModule, never, [typeof i1.NzxEditableComponent], [typeof i1.NzxEditableComponent]>;
11
6
  static ɵinj: i0.ɵɵInjectorDeclaration<NzxEditableModule>;
12
7
  }
@@ -1,7 +1,6 @@
1
1
  import * as i0 from '@angular/core';
2
2
  import { Injectable, Directive, Input, NgModule } from '@angular/core';
3
3
  import { BehaviorSubject, Subject, takeUntil } from 'rxjs';
4
- import { CommonModule } from '@angular/common';
5
4
 
6
5
  class NzxAclService {
7
6
  constructor() {
@@ -38,10 +37,10 @@ class NzxAclService {
38
37
  this.permissionsSource.next(this.permissionsSource.value);
39
38
  }, 0);
40
39
  }
41
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: NzxAclService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
42
- static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: NzxAclService }); }
40
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.1.2", ngImport: i0, type: NzxAclService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
41
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.1.2", ngImport: i0, type: NzxAclService }); }
43
42
  }
44
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: NzxAclService, decorators: [{
43
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.2", ngImport: i0, type: NzxAclService, decorators: [{
45
44
  type: Injectable
46
45
  }], ctorParameters: () => [] });
47
46
 
@@ -102,10 +101,10 @@ class NzxAclDirective {
102
101
  this.cd.markForCheck();
103
102
  }
104
103
  }
105
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: NzxAclDirective, deps: [{ token: i0.TemplateRef }, { token: i0.ViewContainerRef }, { token: NzxAclService }, { token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Directive }); }
106
- static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "18.2.13", type: NzxAclDirective, selector: "[nzxAcl]", inputs: { codes: ["nzxAcl", "codes"], nzxAclElse: "nzxAclElse", dataAcl: ["nzxAclDataAcl", "dataAcl"] }, exportAs: ["NzxAcl"], ngImport: i0 }); }
104
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.1.2", ngImport: i0, type: NzxAclDirective, deps: [{ token: i0.TemplateRef }, { token: i0.ViewContainerRef }, { token: NzxAclService }, { token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Directive }); }
105
+ static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "19.1.2", type: NzxAclDirective, isStandalone: true, selector: "[nzxAcl]", inputs: { codes: ["nzxAcl", "codes"], nzxAclElse: "nzxAclElse", dataAcl: ["nzxAclDataAcl", "dataAcl"] }, exportAs: ["NzxAcl"], ngImport: i0 }); }
107
106
  }
108
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: NzxAclDirective, decorators: [{
107
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.2", ngImport: i0, type: NzxAclDirective, decorators: [{
109
108
  type: Directive,
110
109
  args: [{
111
110
  selector: '[nzxAcl]',
@@ -128,15 +127,14 @@ class NzxAclModule {
128
127
  providers: [NzxAclService],
129
128
  };
130
129
  }
131
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: NzxAclModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
132
- static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "18.2.13", ngImport: i0, type: NzxAclModule, declarations: [NzxAclDirective], imports: [CommonModule], exports: [NzxAclDirective] }); }
133
- static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: NzxAclModule, imports: [CommonModule] }); }
130
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.1.2", ngImport: i0, type: NzxAclModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
131
+ static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "19.1.2", ngImport: i0, type: NzxAclModule, imports: [NzxAclDirective], exports: [NzxAclDirective] }); }
132
+ static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "19.1.2", ngImport: i0, type: NzxAclModule }); }
134
133
  }
135
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: NzxAclModule, decorators: [{
134
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.2", ngImport: i0, type: NzxAclModule, decorators: [{
136
135
  type: NgModule,
137
136
  args: [{
138
- imports: [CommonModule],
139
- declarations: [NzxAclDirective],
137
+ imports: [NzxAclDirective],
140
138
  exports: [NzxAclDirective],
141
139
  }]
142
140
  }] });
@@ -1 +1 @@
1
- {"version":3,"file":"ng-zorro-antd-extension-acl.mjs","sources":["../../../components/acl/nzx-acl.service.ts","../../../components/acl/nzx-acl.directive.ts","../../../components/acl/nzx-acl.module.ts","../../../components/acl/public-api.ts","../../../components/acl/ng-zorro-antd-extension-acl.ts"],"sourcesContent":["import { Injectable } from '@angular/core';\nimport { BehaviorSubject, Observable } from 'rxjs';\n\n@Injectable()\nexport class NzxAclService {\n public permissions$: Observable<string[]>;\n\n private permissionsSource: BehaviorSubject<string[]>;\n\n constructor() {\n this.permissionsSource = new BehaviorSubject<string[]>([]);\n this.permissions$ = this.permissionsSource.asObservable();\n }\n\n /** 加载权限 */\n loadPermissions(permissions: string[]) {\n this.permissionsSource.next([\n ...this.permissionsSource.value,\n ...permissions,\n ]);\n }\n\n /** 含有权限 */\n hasPermission(permission: string) {\n return this.permissionsSource.value.includes(permission);\n }\n\n /** 添加权限 */\n addPermission(permission: string) {\n if (this.hasPermission(permission)) {\n return;\n }\n const permissions = [...this.permissionsSource.value, permission];\n this.permissionsSource.next(permissions);\n }\n\n /** 移除权限 */\n removePermission(permission: string) {\n const permissions = this.permissionsSource.value.filter(\n (p) => p !== permission\n );\n this.permissionsSource.next(permissions);\n }\n\n /** 刷新权限 */\n refreshPermission() {\n setTimeout(() => {\n this.permissionsSource.next(this.permissionsSource.value);\n }, 0);\n }\n}\n","import {\n ChangeDetectorRef,\n Directive,\n Input,\n OnDestroy,\n OnInit,\n TemplateRef,\n ViewContainerRef,\n} from '@angular/core';\n\nimport { NzxAclService } from './nzx-acl.service';\nimport { Subject, takeUntil } from 'rxjs';\n\ninterface AclContext {\n $implicit: string[];\n currentAcl: string;\n}\n\n@Directive({\n selector: '[nzxAcl]',\n exportAs: 'NzxAcl',\n})\nexport class NzxAclDirective implements OnInit, OnDestroy {\n @Input('nzxAcl') codes: string | string[] = '';\n @Input() nzxAclElse?: TemplateRef<any>;\n\n @Input('nzxAclDataAcl')\n dataAcl = true;\n\n private destroy$ = new Subject<void>();\n\n constructor(\n private templateRef: TemplateRef<AclContext>,\n private viewContainerRef: ViewContainerRef,\n private nzxAclService: NzxAclService,\n private cd: ChangeDetectorRef\n ) {}\n\n ngOnDestroy(): void {\n this.destroy$.next();\n this.destroy$.complete();\n }\n\n ngOnInit() {\n this.viewContainerRef.clear();\n this.nzxAclService.permissions$\n .pipe(takeUntil(this.destroy$))\n .subscribe((acls) => {\n this.viewContainerRef.clear();\n this.judge(acls);\n });\n }\n\n private judge(acls: string[]) {\n if (Array.isArray(this.codes)) {\n const isFind = acls.some((acl) => {\n return this.codes.includes(acl) === true;\n });\n\n if (isFind) {\n this.createView(acls);\n } else {\n if (this.nzxAclElse) {\n this.viewContainerRef.createEmbeddedView(this.nzxAclElse);\n }\n }\n }\n\n if (typeof this.codes === 'string') {\n if (acls.includes(this.codes)) {\n this.createView(acls);\n } else {\n if (this.nzxAclElse) {\n this.viewContainerRef.createEmbeddedView(this.nzxAclElse);\n }\n }\n }\n }\n\n private createView(acls: string[]) {\n if (this.dataAcl) {\n this.viewContainerRef.createEmbeddedView(this.templateRef, {\n $implicit: acls,\n currentAcl: this.codes,\n });\n this.cd.markForCheck();\n }\n }\n}\n","import { CommonModule } from '@angular/common';\nimport { ModuleWithProviders, NgModule } from '@angular/core';\nimport { NzxAclDirective } from './nzx-acl.directive';\nimport { NzxAclService } from './nzx-acl.service';\n\n@NgModule({\n imports: [CommonModule],\n declarations: [NzxAclDirective],\n exports: [NzxAclDirective],\n})\nexport class NzxAclModule {\n static forRoot(): ModuleWithProviders<NzxAclModule> {\n return {\n ngModule: NzxAclModule,\n providers: [NzxAclService],\n };\n }\n}\n","/**\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://github.com/NG-ZORRO/ng-zorro-antd/blob/master/LICENSE\n */\nexport * from './nzx-acl.directive';\nexport * from './nzx-acl.service';\nexport * from './nzx-acl.module';\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":["i1.NzxAclService"],"mappings":";;;;;MAIa,aAAa,CAAA;AAKxB,IAAA,WAAA,GAAA;QACE,IAAI,CAAC,iBAAiB,GAAG,IAAI,eAAe,CAAW,EAAE,CAAC,CAAC;QAC3D,IAAI,CAAC,YAAY,GAAG,IAAI,CAAC,iBAAiB,CAAC,YAAY,EAAE,CAAC;KAC3D;;AAGD,IAAA,eAAe,CAAC,WAAqB,EAAA;AACnC,QAAA,IAAI,CAAC,iBAAiB,CAAC,IAAI,CAAC;AAC1B,YAAA,GAAG,IAAI,CAAC,iBAAiB,CAAC,KAAK;AAC/B,YAAA,GAAG,WAAW;AACf,SAAA,CAAC,CAAC;KACJ;;AAGD,IAAA,aAAa,CAAC,UAAkB,EAAA;QAC9B,OAAO,IAAI,CAAC,iBAAiB,CAAC,KAAK,CAAC,QAAQ,CAAC,UAAU,CAAC,CAAC;KAC1D;;AAGD,IAAA,aAAa,CAAC,UAAkB,EAAA;AAC9B,QAAA,IAAI,IAAI,CAAC,aAAa,CAAC,UAAU,CAAC,EAAE;YAClC,OAAO;SACR;AACD,QAAA,MAAM,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OAAO,EAAA,CAAA;sBADN,KAAK;uBAAC,eAAe,CAAA;;;MChBX,YAAY,CAAA;AACvB,IAAA,OAAO,OAAO,GAAA;QACZ,OAAO;AACL,YAAA,QAAQ,EAAE,YAAY;YACtB,SAAS,EAAE,CAAC,aAAa,CAAC;SAC3B,CAAC;KACH;+GANU,YAAY,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,QAAA,EAAA,CAAA,CAAA,EAAA;AAAZ,IAAA,SAAA,IAAA,CAAA,IAAA,GAAA,EAAA,CAAA,mBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,SAAA,EAAA,QAAA,EAAA,EAAA,EAAA,IAAA,EAAA,YAAY,EAHR,YAAA,EAAA,CAAA,eAAe,CADpB,EAAA,OAAA,EAAA,CAAA,YAAY,aAEZ,eAAe,CAAA,EAAA,CAAA,CAAA,EAAA;AAEd,IAAA,SAAA,IAAA,CAAA,IAAA,GAAA,EAAA,CAAA,mBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,SAAA,EAAA,QAAA,EAAA,EAAA,EAAA,IAAA,EAAA,YAAY,YAJb,YAAY,CAAA,EAAA,CAAA,CAAA,EAAA;;4FAIX,YAAY,EAAA,UAAA,EAAA,CAAA;kBALxB,QAAQ;AAAC,YAAA,IAAA,EAAA,CAAA;oBACR,OAAO,EAAE,CAAC,YAAY,CAAC;oBACvB,YAAY,EAAE,CAAC,eAAe,CAAC;oBAC/B,OAAO,EAAE,CAAC,eAAe,CAAC;AAC3B,iBAAA,CAAA;;;ACTD;;;AAGG;;ACHH;;AAEG;;;;"}
1
+ {"version":3,"file":"ng-zorro-antd-extension-acl.mjs","sources":["../../../components/acl/nzx-acl.service.ts","../../../components/acl/nzx-acl.directive.ts","../../../components/acl/nzx-acl.module.ts","../../../components/acl/public-api.ts","../../../components/acl/ng-zorro-antd-extension-acl.ts"],"sourcesContent":["import { Injectable } from '@angular/core';\nimport { BehaviorSubject, Observable } from 'rxjs';\n\n@Injectable()\nexport class NzxAclService {\n public permissions$: Observable<string[]>;\n\n private permissionsSource: BehaviorSubject<string[]>;\n\n constructor() {\n this.permissionsSource = new BehaviorSubject<string[]>([]);\n this.permissions$ = this.permissionsSource.asObservable();\n }\n\n /** 加载权限 */\n loadPermissions(permissions: string[]) {\n this.permissionsSource.next([\n ...this.permissionsSource.value,\n ...permissions,\n ]);\n }\n\n /** 含有权限 */\n hasPermission(permission: string) {\n return this.permissionsSource.value.includes(permission);\n }\n\n /** 添加权限 */\n addPermission(permission: string) {\n if (this.hasPermission(permission)) {\n return;\n }\n const permissions = [...this.permissionsSource.value, permission];\n this.permissionsSource.next(permissions);\n }\n\n /** 移除权限 */\n removePermission(permission: string) {\n const permissions = this.permissionsSource.value.filter(\n (p) => p !== permission\n );\n this.permissionsSource.next(permissions);\n }\n\n /** 刷新权限 */\n refreshPermission() {\n setTimeout(() => {\n this.permissionsSource.next(this.permissionsSource.value);\n }, 0);\n }\n}\n","import {\n ChangeDetectorRef,\n Directive,\n Input,\n OnDestroy,\n OnInit,\n TemplateRef,\n ViewContainerRef,\n} from '@angular/core';\n\nimport { NzxAclService } from './nzx-acl.service';\nimport { Subject, takeUntil } from 'rxjs';\n\ninterface AclContext {\n $implicit: string[];\n currentAcl: string;\n}\n\n@Directive({\n selector: '[nzxAcl]',\n exportAs: 'NzxAcl',\n})\nexport class NzxAclDirective implements OnInit, OnDestroy {\n @Input('nzxAcl') codes: string | string[] = '';\n @Input() nzxAclElse?: TemplateRef<any>;\n\n @Input('nzxAclDataAcl')\n dataAcl = true;\n\n private destroy$ = new Subject<void>();\n\n constructor(\n private templateRef: TemplateRef<AclContext>,\n private viewContainerRef: ViewContainerRef,\n private nzxAclService: NzxAclService,\n private cd: ChangeDetectorRef\n ) {}\n\n ngOnDestroy(): void {\n this.destroy$.next();\n this.destroy$.complete();\n }\n\n ngOnInit() {\n this.viewContainerRef.clear();\n this.nzxAclService.permissions$\n .pipe(takeUntil(this.destroy$))\n .subscribe((acls) => {\n this.viewContainerRef.clear();\n this.judge(acls);\n });\n }\n\n private judge(acls: string[]) {\n if (Array.isArray(this.codes)) {\n const isFind = acls.some((acl) => {\n return this.codes.includes(acl) === true;\n });\n\n if (isFind) {\n this.createView(acls);\n } else {\n if (this.nzxAclElse) {\n this.viewContainerRef.createEmbeddedView(this.nzxAclElse);\n }\n }\n }\n\n if (typeof this.codes === 'string') {\n if (acls.includes(this.codes)) {\n this.createView(acls);\n } else {\n if (this.nzxAclElse) {\n this.viewContainerRef.createEmbeddedView(this.nzxAclElse);\n }\n }\n }\n }\n\n private createView(acls: string[]) {\n if (this.dataAcl) {\n this.viewContainerRef.createEmbeddedView(this.templateRef, {\n $implicit: acls,\n currentAcl: this.codes,\n });\n this.cd.markForCheck();\n }\n }\n}\n","import { ModuleWithProviders, NgModule } from '@angular/core';\nimport { NzxAclDirective } from './nzx-acl.directive';\nimport { NzxAclService } from './nzx-acl.service';\n\n@NgModule({\n imports: [NzxAclDirective],\n exports: [NzxAclDirective],\n})\nexport class NzxAclModule {\n static forRoot(): ModuleWithProviders<NzxAclModule> {\n return {\n ngModule: NzxAclModule,\n providers: [NzxAclService],\n };\n }\n}\n","/**\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://github.com/NG-ZORRO/ng-zorro-antd/blob/master/LICENSE\n */\nexport * from './nzx-acl.directive';\nexport * from './nzx-acl.service';\nexport * from './nzx-acl.module';\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":["i1.NzxAclService"],"mappings":";;;;MAIa,aAAa,CAAA;AAKxB,IAAA,WAAA,GAAA;QACE,IAAI,CAAC,iBAAiB,GAAG,IAAI,eAAe,CAAW,EAAE,CAAC;QAC1D,IAAI,CAAC,YAAY,GAAG,IAAI,CAAC,iBAAiB,CAAC,YAAY,EAAE;;;AAI3D,IAAA,eAAe,CAAC,WAAqB,EAAA;AACnC,QAAA,IAA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KAEkB,KAAK,EAAA,CAAA;sBAArB,KAAK;uBAAC,QAAQ;gBACN,UAAU,EAAA,CAAA;sBAAlB;gBAGD,OAAO,EAAA,CAAA;sBADN,KAAK;uBAAC,eAAe;;;MClBX,YAAY,CAAA;AACvB,IAAA,OAAO,OAAO,GAAA;QACZ,OAAO;AACL,YAAA,QAAQ,EAAE,YAAY;YACtB,SAAS,EAAE,CAAC,aAAa,CAAC;SAC3B;;8GALQ,YAAY,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,QAAA,EAAA,CAAA,CAAA;+GAAZ,YAAY,EAAA,OAAA,EAAA,CAHb,eAAe,CAAA,EAAA,OAAA,EAAA,CACf,eAAe,CAAA,EAAA,CAAA,CAAA;+GAEd,YAAY,EAAA,CAAA,CAAA;;2FAAZ,YAAY,EAAA,UAAA,EAAA,CAAA;kBAJxB,QAAQ;AAAC,YAAA,IAAA,EAAA,CAAA;oBACR,OAAO,EAAE,CAAC,eAAe,CAAC;oBAC1B,OAAO,EAAE,CAAC,eAAe,CAAC;AAC3B,iBAAA;;;ACPD;;;AAGG;;ACHH;;AAEG;;;;"}
@@ -1,7 +1,7 @@
1
- import * as i1 from '@angular/common';
2
- import { CommonModule } from '@angular/common';
3
1
  import * as i0 from '@angular/core';
4
2
  import { forwardRef, TemplateRef, Component, ChangeDetectionStrategy, ContentChild, NgModule } from '@angular/core';
3
+ import * as i1 from '@angular/common';
4
+ import { CommonModule } from '@angular/common';
5
5
  import { NG_VALUE_ACCESSOR } from '@angular/forms';
6
6
 
7
7
  /* eslint-disable @angular-eslint/component-selector */
@@ -20,24 +20,27 @@ class NzxBlankFieldComponent {
20
20
  writeValue(obj) {
21
21
  this.contextExp.$implicit = obj;
22
22
  }
23
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: NzxBlankFieldComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
24
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "18.2.13", type: NzxBlankFieldComponent, selector: "nzx-blank-field", providers: [
23
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.1.2", ngImport: i0, type: NzxBlankFieldComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
24
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.1.2", type: NzxBlankFieldComponent, isStandalone: true, selector: "nzx-blank-field", providers: [
25
25
  {
26
26
  provide: NG_VALUE_ACCESSOR,
27
27
  useExisting: forwardRef(() => NzxBlankFieldComponent),
28
28
  multi: true,
29
29
  },
30
- ], queries: [{ propertyName: "templateRefExp", first: true, predicate: TemplateRef, descendants: true }], ngImport: i0, template: ` <ng-container
31
- *ngTemplateOutlet="templateRefExp; context: contextExp"
32
- ></ng-container>`, isInline: true, dependencies: [{ kind: "directive", type: i1.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
30
+ ], queries: [{ propertyName: "templateRefExp", first: true, predicate: TemplateRef, descendants: true }], ngImport: i0, template: `
31
+ <ng-container *ngTemplateOutlet="templateRefExp; context: contextExp">
32
+ </ng-container>
33
+ `, isInline: true, dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i1.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
33
34
  }
34
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: NzxBlankFieldComponent, decorators: [{
35
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.2", ngImport: i0, type: NzxBlankFieldComponent, decorators: [{
35
36
  type: Component,
36
37
  args: [{
37
38
  selector: 'nzx-blank-field',
38
- template: ` <ng-container
39
- *ngTemplateOutlet="templateRefExp; context: contextExp"
40
- ></ng-container>`,
39
+ imports: [CommonModule],
40
+ template: `
41
+ <ng-container *ngTemplateOutlet="templateRefExp; context: contextExp">
42
+ </ng-container>
43
+ `,
41
44
  changeDetection: ChangeDetectionStrategy.OnPush,
42
45
  providers: [
43
46
  {
@@ -53,15 +56,14 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.13", ngImpo
53
56
  }] } });
54
57
 
55
58
  class NzxBlankFieldModule {
56
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: NzxBlankFieldModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
57
- static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "18.2.13", ngImport: i0, type: NzxBlankFieldModule, declarations: [NzxBlankFieldComponent], imports: [CommonModule], exports: [NzxBlankFieldComponent] }); }
58
- static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: NzxBlankFieldModule, imports: [CommonModule] }); }
59
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.1.2", ngImport: i0, type: NzxBlankFieldModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
60
+ static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "19.1.2", ngImport: i0, type: NzxBlankFieldModule, imports: [NzxBlankFieldComponent], exports: [NzxBlankFieldComponent] }); }
61
+ static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "19.1.2", ngImport: i0, type: NzxBlankFieldModule, imports: [NzxBlankFieldComponent] }); }
59
62
  }
60
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: NzxBlankFieldModule, decorators: [{
63
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.2", ngImport: i0, type: NzxBlankFieldModule, decorators: [{
61
64
  type: NgModule,
62
65
  args: [{
63
- declarations: [NzxBlankFieldComponent],
64
- imports: [CommonModule],
66
+ imports: [NzxBlankFieldComponent],
65
67
  exports: [NzxBlankFieldComponent],
66
68
  }]
67
69
  }] });