ng-zorro-antd-extension 19.0.1 → 20.0.0

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 (198) hide show
  1. package/acl/index.d.ts +52 -5
  2. package/blank-field/index.d.ts +27 -5
  3. package/checkbox/index.d.ts +40 -3
  4. package/configurable-query/index.d.ts +243 -3
  5. package/core/config/index.d.ts +52 -3
  6. package/dynamic-form/index.d.ts +112 -3
  7. package/editable/index.d.ts +29 -5
  8. package/fesm2022/ng-zorro-antd-extension-acl.mjs +11 -11
  9. package/fesm2022/ng-zorro-antd-extension-acl.mjs.map +1 -1
  10. package/fesm2022/ng-zorro-antd-extension-blank-field.mjs +8 -8
  11. package/fesm2022/ng-zorro-antd-extension-blank-field.mjs.map +1 -1
  12. package/fesm2022/ng-zorro-antd-extension-checkbox.mjs +9 -9
  13. package/fesm2022/ng-zorro-antd-extension-checkbox.mjs.map +1 -1
  14. package/fesm2022/ng-zorro-antd-extension-configurable-query.mjs +39 -39
  15. package/fesm2022/ng-zorro-antd-extension-configurable-query.mjs.map +1 -1
  16. package/fesm2022/ng-zorro-antd-extension-core-config.mjs +4 -4
  17. package/fesm2022/ng-zorro-antd-extension-core-config.mjs.map +1 -1
  18. package/fesm2022/ng-zorro-antd-extension-dynamic-form.mjs +53 -53
  19. package/fesm2022/ng-zorro-antd-extension-dynamic-form.mjs.map +1 -1
  20. package/fesm2022/ng-zorro-antd-extension-editable.mjs +9 -9
  21. package/fesm2022/ng-zorro-antd-extension-editable.mjs.map +1 -1
  22. package/fesm2022/ng-zorro-antd-extension-jigsaw.mjs +8 -8
  23. package/fesm2022/ng-zorro-antd-extension-jigsaw.mjs.map +1 -1
  24. package/fesm2022/ng-zorro-antd-extension-pipes.mjs +25 -25
  25. package/fesm2022/ng-zorro-antd-extension-pipes.mjs.map +1 -1
  26. package/fesm2022/ng-zorro-antd-extension-print.mjs +18 -18
  27. package/fesm2022/ng-zorro-antd-extension-print.mjs.map +1 -1
  28. package/fesm2022/ng-zorro-antd-extension-simple-table.mjs +18 -18
  29. package/fesm2022/ng-zorro-antd-extension-simple-table.mjs.map +1 -1
  30. package/fesm2022/ng-zorro-antd-extension-table-adaptor.mjs +11 -11
  31. package/fesm2022/ng-zorro-antd-extension-table-adaptor.mjs.map +1 -1
  32. package/fesm2022/ng-zorro-antd-extension-table-form.mjs +19 -19
  33. package/fesm2022/ng-zorro-antd-extension-table-form.mjs.map +1 -1
  34. package/fesm2022/ng-zorro-antd-extension-table-select.mjs +20 -20
  35. package/fesm2022/ng-zorro-antd-extension-table-select.mjs.map +1 -1
  36. package/fesm2022/ng-zorro-antd-extension-timer-button.mjs +8 -8
  37. package/fesm2022/ng-zorro-antd-extension-timer-button.mjs.map +1 -1
  38. package/fesm2022/ng-zorro-antd-extension-trim.mjs +8 -8
  39. package/fesm2022/ng-zorro-antd-extension-trim.mjs.map +1 -1
  40. package/fesm2022/ng-zorro-antd-extension-util.mjs.map +1 -1
  41. package/fesm2022/ng-zorro-antd-extension-wang-editor.mjs +11 -11
  42. package/fesm2022/ng-zorro-antd-extension-wang-editor.mjs.map +1 -1
  43. package/i18n/index.d.ts +29 -5
  44. package/index.d.ts +2 -5
  45. package/jigsaw/index.d.ts +50 -5
  46. package/package.json +15 -15
  47. package/pipes/index.d.ts +68 -5
  48. package/print/index.d.ts +111 -3
  49. package/simple-table/index.d.ts +85 -3
  50. package/table-adaptor/index.d.ts +66 -5
  51. package/table-form/index.d.ts +247 -3
  52. package/table-select/index.d.ts +107 -3
  53. package/timer-button/index.d.ts +29 -5
  54. package/trim/index.d.ts +48 -5
  55. package/types/index.d.ts +8 -3
  56. package/util/index.d.ts +60 -3
  57. package/wang-editor/index.d.ts +70 -5
  58. package/.npmignore +0 -2
  59. package/acl/nzx-acl.directive.d.ts +0 -25
  60. package/acl/nzx-acl.module.d.ts +0 -9
  61. package/acl/nzx-acl.service.d.ts +0 -19
  62. package/acl/package.json +0 -3
  63. package/acl/public-api.d.ts +0 -7
  64. package/blank-field/blank-field.component.d.ts +0 -19
  65. package/blank-field/blank-field.module.d.ts +0 -7
  66. package/blank-field/package.json +0 -3
  67. package/blank-field/public-api.d.ts +0 -6
  68. package/checkbox/checkbox-group.component.d.ts +0 -33
  69. package/checkbox/checkbox.module.d.ts +0 -7
  70. package/checkbox/package.json +0 -3
  71. package/checkbox/public-api.d.ts +0 -6
  72. package/configurable-query/configurable-query-item/configurable-query-item.component.d.ts +0 -18
  73. package/configurable-query/configurable-query.component.d.ts +0 -111
  74. package/configurable-query/configurable-query.module.d.ts +0 -12
  75. package/configurable-query/control.directive.d.ts +0 -9
  76. package/configurable-query/controls/abstract.control.d.ts +0 -13
  77. package/configurable-query/controls/date-picker.control.d.ts +0 -6
  78. package/configurable-query/controls/input.control.d.ts +0 -6
  79. package/configurable-query/controls/range-picker.control.d.ts +0 -6
  80. package/configurable-query/controls/select.control.d.ts +0 -6
  81. package/configurable-query/controls/template.control.d.ts +0 -6
  82. package/configurable-query/package.json +0 -3
  83. package/configurable-query/public-api.d.ts +0 -6
  84. package/configurable-query/query-config.service.d.ts +0 -21
  85. package/configurable-query/type.d.ts +0 -89
  86. package/core/config/config.d.ts +0 -30
  87. package/core/config/config.service.d.ts +0 -20
  88. package/core/config/package.json +0 -3
  89. package/core/config/public-api.d.ts +0 -2
  90. package/dynamic-form/config/dynamic-form-config.d.ts +0 -18
  91. package/dynamic-form/controls/abstract.control.d.ts +0 -11
  92. package/dynamic-form/controls/date-picker.control.d.ts +0 -6
  93. package/dynamic-form/controls/input.control.d.ts +0 -6
  94. package/dynamic-form/controls/range-picker.control.d.ts +0 -6
  95. package/dynamic-form/controls/select.control.d.ts +0 -6
  96. package/dynamic-form/controls/template.control.d.ts +0 -6
  97. package/dynamic-form/dynamic-form-item/dynamic-form-item.component.d.ts +0 -12
  98. package/dynamic-form/dynamic-form.component.d.ts +0 -5
  99. package/dynamic-form/dynamic-form.module.d.ts +0 -17
  100. package/dynamic-form/package.json +0 -3
  101. package/dynamic-form/public-api.d.ts +0 -7
  102. package/dynamic-form/wrapper/control/abstract-control-wrapper.d.ts +0 -12
  103. package/dynamic-form/wrapper/control/built-in-control-wrapper.d.ts +0 -7
  104. package/dynamic-form/wrapper/item/abstract-item-wrapper.d.ts +0 -14
  105. package/dynamic-form/wrapper/item/built-in-item-wrapper.d.ts +0 -6
  106. package/dynamic-form/wrapper/label/abstract-label-wrapper.d.ts +0 -5
  107. package/dynamic-form/wrapper/label/built-in-label-wrapper.d.ts +0 -6
  108. package/editable/editable.component.d.ts +0 -20
  109. package/editable/editable.module.d.ts +0 -7
  110. package/editable/package.json +0 -3
  111. package/editable/public-api.d.ts +0 -2
  112. package/i18n/languages/en_US.d.ts +0 -10
  113. package/i18n/languages/zh_CN.d.ts +0 -10
  114. package/i18n/nz-i18n.interface.d.ts +0 -6
  115. package/i18n/package.json +0 -3
  116. package/i18n/public-api.d.ts +0 -3
  117. package/jigsaw/jigsaw.component.d.ts +0 -41
  118. package/jigsaw/jigsaw.module.d.ts +0 -7
  119. package/jigsaw/package.json +0 -3
  120. package/jigsaw/public-api.d.ts +0 -6
  121. package/pipes/map.pipe.d.ts +0 -9
  122. package/pipes/package.json +0 -3
  123. package/pipes/pipes.module.d.ts +0 -13
  124. package/pipes/public-api.d.ts +0 -12
  125. package/pipes/safe-html.pipe.d.ts +0 -9
  126. package/pipes/safe-null.pipe.d.ts +0 -11
  127. package/pipes/safe-resource-url.pipe.d.ts +0 -8
  128. package/pipes/safe-script.pipe.d.ts +0 -8
  129. package/pipes/safe-style.pipe.d.ts +0 -8
  130. package/pipes/safe-url.pipe.d.ts +0 -13
  131. package/print/nzx-print-content.directive.d.ts +0 -10
  132. package/print/nzx-print-v.component.d.ts +0 -47
  133. package/print/nzx-print.component.d.ts +0 -34
  134. package/print/nzx-print.directive.d.ts +0 -17
  135. package/print/nzx-print.module.d.ts +0 -10
  136. package/print/package.json +0 -3
  137. package/print/public-api.d.ts +0 -9
  138. package/public-api.d.ts +0 -2
  139. package/simple-table/directive/expand.directive.d.ts +0 -8
  140. package/simple-table/directive/td.directive.d.ts +0 -9
  141. package/simple-table/directive/th.directive.d.ts +0 -9
  142. package/simple-table/package.json +0 -3
  143. package/simple-table/public-api.d.ts +0 -9
  144. package/simple-table/simple-table.component.d.ts +0 -57
  145. package/simple-table/simple-table.module.d.ts +0 -10
  146. package/table-adaptor/package.json +0 -3
  147. package/table-adaptor/page-table-basic.d.ts +0 -14
  148. package/table-adaptor/public-api.d.ts +0 -7
  149. package/table-adaptor/table-adaptor.directive.d.ts +0 -43
  150. package/table-adaptor/table-adaptor.module.d.ts +0 -7
  151. package/table-form/directive/table-expand.directive.d.ts +0 -9
  152. package/table-form/directive/table-td.directive.d.ts +0 -9
  153. package/table-form/directive/table-th.directive.d.ts +0 -10
  154. package/table-form/package.json +0 -3
  155. package/table-form/public-api.d.ts +0 -10
  156. package/table-form/table-form.component.d.ts +0 -122
  157. package/table-form/table-form.module.d.ts +0 -10
  158. package/table-form/type.d.ts +0 -94
  159. package/table-select/abstract-table-select.d.ts +0 -51
  160. package/table-select/key.directive.d.ts +0 -8
  161. package/table-select/nzx-table-select.module.d.ts +0 -9
  162. package/table-select/package.json +0 -3
  163. package/table-select/page-table-select/page-table-select.component.d.ts +0 -22
  164. package/table-select/public-api.d.ts +0 -10
  165. package/table-select/table-select/table-select.component.d.ts +0 -13
  166. package/table-select/type.d.ts +0 -14
  167. package/timer-button/package.json +0 -3
  168. package/timer-button/public-api.d.ts +0 -6
  169. package/timer-button/timer-button.directive.d.ts +0 -20
  170. package/timer-button/timer-button.module.d.ts +0 -7
  171. package/trim/package.json +0 -3
  172. package/trim/public-api.d.ts +0 -6
  173. package/trim/trim.directive.d.ts +0 -39
  174. package/trim/trim.module.d.ts +0 -7
  175. package/types/common.d.ts +0 -8
  176. package/types/package.json +0 -3
  177. package/types/public-api.d.ts +0 -5
  178. package/util/lib/cloneDeep.d.ts +0 -2
  179. package/util/lib/fileUtil.d.ts +0 -16
  180. package/util/lib/getElementByTag.d.ts +0 -8
  181. package/util/lib/isArray.d.ts +0 -2
  182. package/util/lib/isDate.d.ts +0 -1
  183. package/util/lib/isEmpty.d.ts +0 -2
  184. package/util/lib/isNumber.d.ts +0 -1
  185. package/util/lib/isObject.d.ts +0 -1
  186. package/util/lib/isString.d.ts +0 -1
  187. package/util/lib/toNumber.d.ts +0 -1
  188. package/util/lib/toString.d.ts +0 -1
  189. package/util/lib/trimObject.d.ts +0 -2
  190. package/util/lib/updateControlStatus.d.ts +0 -9
  191. package/util/package.json +0 -3
  192. package/util/public-api.d.ts +0 -17
  193. package/wang-editor/package.json +0 -3
  194. package/wang-editor/public-api.d.ts +0 -8
  195. package/wang-editor/type.d.ts +0 -3
  196. package/wang-editor/wang-editor.component.d.ts +0 -41
  197. package/wang-editor/wang-editor.module.d.ts +0 -8
  198. package/wang-editor/wang-toolbar.component.d.ts +0 -19
@@ -1,19 +0,0 @@
1
- import { Observable } from 'rxjs';
2
- import * as i0 from "@angular/core";
3
- export declare class NzxAclService {
4
- permissions$: Observable<string[]>;
5
- private permissionsSource;
6
- constructor();
7
- /** 加载权限 */
8
- loadPermissions(permissions: string[]): void;
9
- /** 含有权限 */
10
- hasPermission(permission: string): boolean;
11
- /** 添加权限 */
12
- addPermission(permission: string): void;
13
- /** 移除权限 */
14
- removePermission(permission: string): void;
15
- /** 刷新权限 */
16
- refreshPermission(): void;
17
- static ɵfac: i0.ɵɵFactoryDeclaration<NzxAclService, never>;
18
- static ɵprov: i0.ɵɵInjectableDeclaration<NzxAclService>;
19
- }
package/acl/package.json DELETED
@@ -1,3 +0,0 @@
1
- {
2
- "module": "../fesm2022/ng-zorro-antd-extension-acl.mjs"
3
- }
@@ -1,7 +0,0 @@
1
- /**
2
- * Use of this source code is governed by an MIT-style license that can be
3
- * found in the LICENSE file at https://github.com/NG-ZORRO/ng-zorro-antd/blob/master/LICENSE
4
- */
5
- export * from './nzx-acl.directive';
6
- export * from './nzx-acl.service';
7
- export * from './nzx-acl.module';
@@ -1,19 +0,0 @@
1
- import { TemplateRef } from '@angular/core';
2
- import { ControlValueAccessor } from '@angular/forms';
3
- import * as i0 from "@angular/core";
4
- interface Context {
5
- disabled: boolean;
6
- $implicit: any;
7
- }
8
- export declare class NzxBlankFieldComponent implements ControlValueAccessor {
9
- contextExp: Context;
10
- templateRefExp: TemplateRef<Context>;
11
- private propagateChange;
12
- registerOnChange(fn: any): void;
13
- registerOnTouched(fn: any): void;
14
- setDisabledState(isDisabled: boolean): void;
15
- writeValue(obj: any): void;
16
- static ɵfac: i0.ɵɵFactoryDeclaration<NzxBlankFieldComponent, never>;
17
- static ɵcmp: i0.ɵɵComponentDeclaration<NzxBlankFieldComponent, "nzx-blank-field", never, {}, {}, ["templateRefExp"], never, true, never>;
18
- }
19
- export {};
@@ -1,7 +0,0 @@
1
- import * as i0 from "@angular/core";
2
- import * as i1 from "./blank-field.component";
3
- export declare class NzxBlankFieldModule {
4
- static ɵfac: i0.ɵɵFactoryDeclaration<NzxBlankFieldModule, never>;
5
- static ɵmod: i0.ɵɵNgModuleDeclaration<NzxBlankFieldModule, never, [typeof i1.NzxBlankFieldComponent], [typeof i1.NzxBlankFieldComponent]>;
6
- static ɵinj: i0.ɵɵInjectorDeclaration<NzxBlankFieldModule>;
7
- }
@@ -1,3 +0,0 @@
1
- {
2
- "module": "../fesm2022/ng-zorro-antd-extension-blank-field.mjs"
3
- }
@@ -1,6 +0,0 @@
1
- /**
2
- * Use of this source code is governed by an MIT-style license that can be
3
- * found in the LICENSE file at https://github.com/NG-ZORRO/ng-zorro-antd/blob/master/LICENSE
4
- */
5
- export * from './blank-field.module';
6
- export * from './blank-field.component';
@@ -1,33 +0,0 @@
1
- import { ChangeDetectorRef } from '@angular/core';
2
- import { ControlValueAccessor } from '@angular/forms';
3
- import { NzCheckboxOption } from 'ng-zorro-antd/checkbox';
4
- import * as i0 from "@angular/core";
5
- /**
6
- * nzx-checkbox-group
7
- * 自定义选择框,选择时传出的值为数组形式如:[1,2]
8
- */
9
- export declare class NzxCheckboxGroupComponent implements ControlValueAccessor {
10
- private cd;
11
- checkOptions: Array<NzCheckboxOption>;
12
- /**
13
- * 自定义函数用来格式化输输入内容用来回显
14
- */
15
- customFormateInFn: (value: any) => Array<any>;
16
- /**
17
- * 自定义函数用来格式化输出内容用来接口入参
18
- */
19
- customFormateOutFn: (value: any) => any;
20
- nzDisabled: boolean;
21
- selectValue: any[];
22
- private propagateChange;
23
- constructor(cd: ChangeDetectorRef);
24
- writeValue(v: (string | number)[] | any): void;
25
- /**更新视图 */
26
- updateView(): void;
27
- registerOnChange(fn: any): void;
28
- registerOnTouched(fn: any): void;
29
- setDisabledState?(isDisabled: boolean): void;
30
- valueChange(value: Array<number | string>): void;
31
- static ɵfac: i0.ɵɵFactoryDeclaration<NzxCheckboxGroupComponent, 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>;
33
- }
@@ -1,7 +0,0 @@
1
- import * as i0 from "@angular/core";
2
- import * as i1 from "./checkbox-group.component";
3
- export declare class NzxCheckboxModule {
4
- static ɵfac: i0.ɵɵFactoryDeclaration<NzxCheckboxModule, never>;
5
- static ɵmod: i0.ɵɵNgModuleDeclaration<NzxCheckboxModule, never, [typeof i1.NzxCheckboxGroupComponent], [typeof i1.NzxCheckboxGroupComponent]>;
6
- static ɵinj: i0.ɵɵInjectorDeclaration<NzxCheckboxModule>;
7
- }
@@ -1,3 +0,0 @@
1
- {
2
- "module": "../fesm2022/ng-zorro-antd-extension-checkbox.mjs"
3
- }
@@ -1,6 +0,0 @@
1
- /**
2
- * Use of this source code is governed by an MIT-style license that can be
3
- * found in the LICENSE file at https://github.com/NG-ZORRO/ng-zorro-antd/blob/master/LICENSE
4
- */
5
- export * from './checkbox-group.component';
6
- export * from './checkbox.module';
@@ -1,18 +0,0 @@
1
- import { OnDestroy, OnInit } from '@angular/core';
2
- import { FormGroup } from '@angular/forms';
3
- import { NzxQueryConfigService } from '../query-config.service';
4
- import { NzxQueryControlOptions } from '../type';
5
- import * as i0 from "@angular/core";
6
- export declare class NzxConfigurableQueryItemComponent implements OnInit, OnDestroy {
7
- private nzxQueryConfigService;
8
- form: FormGroup;
9
- control: NzxQueryControlOptions;
10
- private controlTemplateView;
11
- private destroy$;
12
- constructor(nzxQueryConfigService: NzxQueryConfigService);
13
- ngOnInit(): void;
14
- ngOnDestroy(): void;
15
- private renderControl;
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, true, never>;
18
- }
@@ -1,111 +0,0 @@
1
- import { AfterContentInit, AfterViewInit, ChangeDetectorRef, EventEmitter, OnChanges, OnDestroy, OnInit, QueryList, SimpleChanges } from '@angular/core';
2
- import { AbstractControl, FormBuilder, FormGroup } from '@angular/forms';
3
- import { NzxQueryI18nInterface } from 'ng-zorro-antd-extension/i18n';
4
- import { NzJustify } from 'ng-zorro-antd/grid';
5
- import { NzI18nService } from 'ng-zorro-antd/i18n';
6
- import { NzxControlDirective } from './control.directive';
7
- import { NzxQueryControlOptions, NzxQueryParams } from './type';
8
- import * as i0 from "@angular/core";
9
- /**
10
- * 查询组件
11
- * 支持模板自定义,在使用模板自定义时,要注意controlType应该设置为Template并且确保controlName与指令上的nzxControl应该相同
12
- */
13
- export declare class NzxConfigurableQueryComponent implements OnChanges, OnInit, AfterViewInit, AfterContentInit, OnDestroy {
14
- private i18n;
15
- private fb;
16
- private cd;
17
- /**
18
- * 配置项用来生成查询表单
19
- */
20
- controls: Array<NzxQueryControlOptions>;
21
- /** 查询表单排列方式默认start */
22
- nzxJustify: NzJustify;
23
- /** 查询项间隔默认为8 */
24
- nzxGutter: number;
25
- /** 一行展示多少查询项默认展示3个 */
26
- lineNumber: number;
27
- /** 操作按钮所占栅格数,24则换行 */
28
- nzxBtnSpan: number | null;
29
- /** 初始化时,是否主动触发查询 */
30
- initQuery: boolean;
31
- /** 缺省 固定参数会固定携带在抛出事件中 */
32
- fixedParams: {};
33
- /** 查询时会触发抛出查询参数 */
34
- queryChange: EventEmitter<NzxQueryParams>;
35
- /** 重置时会触发抛出查询参数 */
36
- resetChange: EventEmitter<NzxQueryParams>;
37
- /** 组件最终的查询参数 */
38
- get queryParams(): any;
39
- set queryParams(value: any);
40
- /** 判断当前组件是否展示展开折叠按钮 */
41
- get nzxCollapse(): boolean;
42
- /** 内置 form 查询表单实例 */
43
- queryForm: FormGroup;
44
- locale: NzxQueryI18nInterface;
45
- collapseIcon: string;
46
- collapseText: string;
47
- private _queryParams;
48
- /** 重置时用来给查询框默认值 */
49
- private defaultValue;
50
- private cacheParams;
51
- private destroy$;
52
- private queyFormEl;
53
- controlTemplateList: QueryList<NzxControlDirective>;
54
- constructor(i18n: NzI18nService, fb: FormBuilder, cd: ChangeDetectorRef);
55
- ngOnChanges(changes: SimpleChanges): void;
56
- ngOnInit(): void;
57
- ngAfterViewInit(): void;
58
- ngAfterContentInit(): void;
59
- /** 设置查询值进行回显 */
60
- setQueryParams(cacheParams: NzxQueryParams): void;
61
- /**
62
- * 根据controlName设置config值
63
- * @param defaultValueResettable 添加的表单控件默认值是否可以重置,默认不可以
64
- */
65
- setControl(controlName: string, config: Partial<NzxQueryControlOptions>, defaultValueResettable?: boolean): void;
66
- /**
67
- * 动态添加控件
68
- * @param config 配置项
69
- * @param position 添加位置 不传为末尾
70
- * @param defaultValueResettable 添加的表单控件默认值是否可以重置,默认不可以
71
- */
72
- addControl(config: NzxQueryControlOptions, position?: number | undefined, defaultValueResettable?: boolean): void;
73
- /**
74
- * 根据控件名删除控件
75
- */
76
- removeControl(controlName: string): void;
77
- /**
78
- * 根据controlName获取config项
79
- */
80
- getControl(controlName: string | undefined): NzxQueryControlOptions | undefined;
81
- /**
82
- * 检索给定控件名称或路径的子控件。
83
- * 这个 getFormControl 签名支持字符串和 const 数组(.getFormControl(['foo', 'bar'] as const))
84
- */
85
- getFormControl(path: string | readonly (string | number)[]): AbstractControl<any, any> | null;
86
- /** 查询 */
87
- search(): void;
88
- /** 重置 */
89
- reset(): void;
90
- /**展开、收起*/
91
- toggleCollapse(): void;
92
- ngOnDestroy(): void;
93
- /** 计算展开收起icon、文案 */
94
- private calculateText;
95
- /** 清空表单控件 */
96
- private clearFormControl;
97
- /** 生成 queryForm 表单 */
98
- private generateForm;
99
- /**
100
- *
101
- * @param controlConfig control配置
102
- * @param defaultValueResettable 添加的表单控件默认值是否可以重置,默认不可以
103
- *
104
- * 1. 生成单个表单控件并将其添加到queryForm中
105
- * 2. 如果没有templateRef根据controlName获取投影的templateList中的templateRef给 templateRef 赋值
106
- *
107
- **/
108
- private generateControl;
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"], ["*"], true, never>;
111
- }
@@ -1,12 +0,0 @@
1
- import { ModuleWithProviders } from '@angular/core';
2
- import { NzxQueryConfig } from './type';
3
- import * as i0 from "@angular/core";
4
- import * as i1 from "./control.directive";
5
- import * as i2 from "./configurable-query.component";
6
- export declare class NzxConfigurableQueryModule {
7
- static forRoot(nzxQueryConfig: NzxQueryConfig): ModuleWithProviders<NzxConfigurableQueryModule>;
8
- static forChild(nzxQueryConfig: NzxQueryConfig): ModuleWithProviders<NzxConfigurableQueryModule>;
9
- static ɵfac: i0.ɵɵFactoryDeclaration<NzxConfigurableQueryModule, never>;
10
- static ɵmod: i0.ɵɵNgModuleDeclaration<NzxConfigurableQueryModule, never, [typeof i1.NzxControlDirective, typeof i2.NzxConfigurableQueryComponent], [typeof i1.NzxControlDirective, typeof i2.NzxConfigurableQueryComponent]>;
11
- static ɵinj: i0.ɵɵInjectorDeclaration<NzxConfigurableQueryModule>;
12
- }
@@ -1,9 +0,0 @@
1
- import { TemplateRef } from '@angular/core';
2
- import * as i0 from "@angular/core";
3
- export declare class NzxControlDirective {
4
- templateRef: TemplateRef<unknown>;
5
- nzxControl: string;
6
- constructor(templateRef: TemplateRef<unknown>);
7
- static ɵfac: i0.ɵɵFactoryDeclaration<NzxControlDirective, never>;
8
- static ɵdir: i0.ɵɵDirectiveDeclaration<NzxControlDirective, "[nzxControl]", never, { "nzxControl": { "alias": "nzxControl"; "required": false; }; }, {}, never, never, true, never>;
9
- }
@@ -1,13 +0,0 @@
1
- import { NzxQueryControlOptions } from '../type';
2
- import { FormControl, FormGroup } from '@angular/forms';
3
- import * as i0 from "@angular/core";
4
- /**
5
- * 用来动态添加control type类型控件,类型控件需要继承此控件
6
- */
7
- export declare abstract class NzxAbstractControl {
8
- form: FormGroup<any>;
9
- control: NzxQueryControlOptions;
10
- get formControl(): FormControl;
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, true, never>;
13
- }
@@ -1,6 +0,0 @@
1
- import { NzxAbstractControl } from './abstract.control';
2
- import * as i0 from "@angular/core";
3
- export declare class NzxDatePickerControlComponent extends NzxAbstractControl {
4
- static ɵfac: i0.ɵɵFactoryDeclaration<NzxDatePickerControlComponent, never>;
5
- static ɵcmp: i0.ɵɵComponentDeclaration<NzxDatePickerControlComponent, "nzx-date-picker-control", never, {}, {}, never, never, true, never>;
6
- }
@@ -1,6 +0,0 @@
1
- import { NzxAbstractControl } from './abstract.control';
2
- import * as i0 from "@angular/core";
3
- export declare class NzxInputControlComponent extends NzxAbstractControl {
4
- static ɵfac: i0.ɵɵFactoryDeclaration<NzxInputControlComponent, never>;
5
- static ɵcmp: i0.ɵɵComponentDeclaration<NzxInputControlComponent, "nzx-input-control", never, {}, {}, never, never, true, never>;
6
- }
@@ -1,6 +0,0 @@
1
- import { NzxAbstractControl } from './abstract.control';
2
- import * as i0 from "@angular/core";
3
- export declare class NzxRangePickerControlComponent extends NzxAbstractControl {
4
- static ɵfac: i0.ɵɵFactoryDeclaration<NzxRangePickerControlComponent, never>;
5
- static ɵcmp: i0.ɵɵComponentDeclaration<NzxRangePickerControlComponent, "nzx-range-picker-control", never, {}, {}, never, never, true, never>;
6
- }
@@ -1,6 +0,0 @@
1
- import { NzxAbstractControl } from './abstract.control';
2
- import * as i0 from "@angular/core";
3
- export declare class NzxSelectControlComponent extends NzxAbstractControl {
4
- static ɵfac: i0.ɵɵFactoryDeclaration<NzxSelectControlComponent, never>;
5
- static ɵcmp: i0.ɵɵComponentDeclaration<NzxSelectControlComponent, "nzx-select-control", never, {}, {}, never, never, true, never>;
6
- }
@@ -1,6 +0,0 @@
1
- import { NzxAbstractControl } from './abstract.control';
2
- import * as i0 from "@angular/core";
3
- export declare class NzxTemplateControlComponent extends NzxAbstractControl {
4
- static ɵfac: i0.ɵɵFactoryDeclaration<NzxTemplateControlComponent, never>;
5
- static ɵcmp: i0.ɵɵComponentDeclaration<NzxTemplateControlComponent, "nzx-template-control", never, {}, {}, never, never, true, never>;
6
- }
@@ -1,3 +0,0 @@
1
- {
2
- "module": "../fesm2022/ng-zorro-antd-extension-configurable-query.mjs"
3
- }
@@ -1,6 +0,0 @@
1
- export * from './type';
2
- export * from './control.directive';
3
- export * from './configurable-query.component';
4
- export * from './configurable-query.module';
5
- export * from './controls/abstract.control';
6
- export * from './query-config.service';
@@ -1,21 +0,0 @@
1
- import { InjectionToken } from '@angular/core';
2
- import { NzxQueryConfig, NzxQueryControlType } from './type';
3
- import { BehaviorSubject } from 'rxjs';
4
- import * as i0 from "@angular/core";
5
- export declare const QUERY_CONFIG: InjectionToken<NzxQueryControlType[]>;
6
- /**
7
- * 用来动态添加control type类型控件
8
- */
9
- export declare class NzxQueryConfigService {
10
- private controlTypePoll;
11
- controlTypes$: BehaviorSubject<NzxQueryControlType[]>;
12
- constructor(nzxQueryConfig: NzxQueryConfig);
13
- /** 添加controlType 类型控件 */
14
- addControlType(controlType: NzxQueryControlType): void;
15
- /** 删除controlType 类型控件 */
16
- removeControlType(key: string): void;
17
- /** 刷新 */
18
- refreshControlType(): void;
19
- static ɵfac: i0.ɵɵFactoryDeclaration<NzxQueryConfigService, [{ optional: true; }]>;
20
- static ɵprov: i0.ɵɵInjectableDeclaration<NzxQueryConfigService>;
21
- }
@@ -1,89 +0,0 @@
1
- import { TemplateRef } from '@angular/core';
2
- import { AbstractControl } from '@angular/forms';
3
- import { NzxOptions } from 'ng-zorro-antd-extension/types';
4
- import { NzxAbstractControl } from './controls/abstract.control';
5
- /**
6
- * 查询参数
7
- */
8
- export interface NzxQueryParams {
9
- [key: string]: any;
10
- }
11
- type ControlType = 'input' | 'select' | 'datePicker' | 'rangePicker' | 'Template' | string;
12
- /**
13
- * 配置项
14
- */
15
- export interface NzxQueryControlOptions {
16
- /**
17
- * 控件名对应查询参数的key
18
- */
19
- controlName?: string;
20
- /**
21
- * 控件类型
22
- */
23
- controlType?: ControlType;
24
- /**
25
- * 查询框label
26
- */
27
- label?: string;
28
- /**
29
- * 查询框placeholder
30
- */
31
- placeholder?: string;
32
- /**
33
- * 控件为select时下拉集合
34
- */
35
- menuList?: Array<NzxOptions<any>>;
36
- /**
37
- * 控件为select时允许单独清空
38
- */
39
- nzxAllowClear?: boolean;
40
- /**
41
- * 控件为select时允许前端搜索
42
- */
43
- nzxShowSearch?: boolean;
44
- /**
45
- * 查询项所占栅格数
46
- */
47
- nzxSpan?: number;
48
- /**
49
- * 控件默认值,注意默认值重置时不会清空
50
- */
51
- default?: any;
52
- /**
53
- * 查询项label所占栅格数
54
- */
55
- nzxLSpan?: number;
56
- /**
57
- * 查询项控件所占栅格数
58
- */
59
- nzxRSpan?: number;
60
- /**
61
- * 校验错误提示
62
- */
63
- errorTip?: string;
64
- /**
65
- * 折叠
66
- */
67
- collapse?: boolean;
68
- /**
69
- * 隐藏控件(主要用来携带查询参数但界面不可见)
70
- */
71
- hidden?: boolean;
72
- /**
73
- * 控件实例,可选
74
- */
75
- controlInstance?: AbstractControl;
76
- /**
77
- * 自定义模板
78
- */
79
- templateRef?: TemplateRef<unknown>;
80
- [key: string]: any;
81
- }
82
- export interface NzxQueryControlType {
83
- key: string;
84
- component: typeof NzxAbstractControl;
85
- }
86
- export interface NzxQueryConfig {
87
- controlTypes: NzxQueryControlType[];
88
- }
89
- export {};
@@ -1,30 +0,0 @@
1
- import { InjectionToken } from '@angular/core';
2
- export interface NzxConfig {
3
- nzxSafeNull?: SafeNull;
4
- nzxSafeUrl?: SafeUrl;
5
- nzxTrim?: Trim;
6
- nzxTableAdaptor?: TableAdaptor;
7
- nzxTimerButton?: TimerButton;
8
- }
9
- export interface SafeNull {
10
- placeholder?: any;
11
- }
12
- export interface SafeUrl {
13
- protocol: 'http' | 'https';
14
- }
15
- export interface Trim {
16
- trimType: 'trim' | 'trimStart' | 'trimEnd';
17
- }
18
- export interface TableAdaptor {
19
- enableCache: boolean;
20
- dateFormat: string;
21
- customFormateOutFn: (queryParams: any) => any;
22
- }
23
- export interface TimerButton {
24
- duration: number;
25
- }
26
- export type NzxConfigKey = keyof NzxConfig;
27
- /**
28
- * User should provide an object implements this interface to set global configurations.
29
- */
30
- export declare const NZX_CONFIG: InjectionToken<NzxConfig>;
@@ -1,20 +0,0 @@
1
- import { Observable } from 'rxjs';
2
- import { NzxConfig, NzxConfigKey } from './config';
3
- import * as i0 from "@angular/core";
4
- export declare class NzxConfigService {
5
- private configUpdated$;
6
- /** Global config holding property. */
7
- private readonly config;
8
- constructor(defaultConfig?: NzxConfig);
9
- getConfig(): NzxConfig;
10
- getConfigForComponent<T extends NzxConfigKey>(componentName: T): NzxConfig[T];
11
- getConfigChangeEventForComponent(componentName: NzxConfigKey): Observable<void>;
12
- set<T extends NzxConfigKey>(componentName: T, value: NzxConfig[T]): void;
13
- static ɵfac: i0.ɵɵFactoryDeclaration<NzxConfigService, [{ optional: true; }]>;
14
- static ɵprov: i0.ɵɵInjectableDeclaration<NzxConfigService>;
15
- }
16
- /**
17
- * This decorator is used to decorate properties. If a property is decorated, it would try to load default value from
18
- * config.
19
- */
20
- export declare function ExtensionWithConfig<T>(): (target: any, propName: any, originalDescriptor?: TypedPropertyDescriptor<T>) => any;
@@ -1,3 +0,0 @@
1
- {
2
- "module": "../../fesm2022/ng-zorro-antd-extension-core-config.mjs"
3
- }
@@ -1,2 +0,0 @@
1
- export * from './config';
2
- export * from './config.service';
@@ -1,18 +0,0 @@
1
- import { NzxDFAbstractItemWrapper } from '../wrapper/item/abstract-item-wrapper';
2
- import { NzxDFAbstractLabelWrapper } from '../wrapper/label/abstract-label-wrapper';
3
- import { NzxDFAbstractControlWrapper } from '../wrapper/control/abstract-control-wrapper';
4
- import { NzxDFAbstractControl } from '../controls/abstract.control';
5
- import * as i0 from "@angular/core";
6
- export declare class NzxDFConfigService {
7
- private itemWrapperMap;
8
- private labelWrapperMap;
9
- private controlWrapperMap;
10
- private controlMap;
11
- constructor();
12
- getItemWrapper(key: string): typeof NzxDFAbstractItemWrapper;
13
- getLabelWrapper(key: string): typeof NzxDFAbstractLabelWrapper;
14
- getControlWrapper(key: string): typeof NzxDFAbstractControlWrapper;
15
- getControl(key: string): typeof NzxDFAbstractControl;
16
- static ɵfac: i0.ɵɵFactoryDeclaration<NzxDFConfigService, never>;
17
- static ɵprov: i0.ɵɵInjectableDeclaration<NzxDFConfigService>;
18
- }
@@ -1,11 +0,0 @@
1
- import { FormGroup } from '@angular/forms';
2
- import * as i0 from "@angular/core";
3
- /**
4
- * 用来动态添加control type类型控件,类型控件需要继承此控件
5
- */
6
- export declare class NzxDFAbstractControl {
7
- form: FormGroup<any>;
8
- control: any;
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, true, never>;
11
- }
@@ -1,6 +0,0 @@
1
- import { NzxDFAbstractControl } from './abstract.control';
2
- import * as i0 from "@angular/core";
3
- export declare class NzxDFDatePickerControlComponent extends NzxDFAbstractControl {
4
- static ɵfac: i0.ɵɵFactoryDeclaration<NzxDFDatePickerControlComponent, never>;
5
- static ɵcmp: i0.ɵɵComponentDeclaration<NzxDFDatePickerControlComponent, "ng-component", never, {}, {}, never, never, true, never>;
6
- }
@@ -1,6 +0,0 @@
1
- import { NzxDFAbstractControl } from './abstract.control';
2
- import * as i0 from "@angular/core";
3
- export declare class NzxDFInputControlComponent extends NzxDFAbstractControl {
4
- static ɵfac: i0.ɵɵFactoryDeclaration<NzxDFInputControlComponent, never>;
5
- static ɵcmp: i0.ɵɵComponentDeclaration<NzxDFInputControlComponent, "ng-component", never, {}, {}, never, never, true, never>;
6
- }
@@ -1,6 +0,0 @@
1
- import { NzxDFAbstractControl } from './abstract.control';
2
- import * as i0 from "@angular/core";
3
- export declare class NzxDFRangePickerControlComponent extends NzxDFAbstractControl {
4
- static ɵfac: i0.ɵɵFactoryDeclaration<NzxDFRangePickerControlComponent, never>;
5
- static ɵcmp: i0.ɵɵComponentDeclaration<NzxDFRangePickerControlComponent, "ng-component", never, {}, {}, never, never, true, never>;
6
- }
@@ -1,6 +0,0 @@
1
- import { NzxDFAbstractControl } from './abstract.control';
2
- import * as i0 from "@angular/core";
3
- export declare class NzxDFSelectControlComponent extends NzxDFAbstractControl {
4
- static ɵfac: i0.ɵɵFactoryDeclaration<NzxDFSelectControlComponent, never>;
5
- static ɵcmp: i0.ɵɵComponentDeclaration<NzxDFSelectControlComponent, "ng-component", never, {}, {}, never, never, true, never>;
6
- }
@@ -1,6 +0,0 @@
1
- import { NzxDFAbstractControl } from './abstract.control';
2
- import * as i0 from "@angular/core";
3
- export declare class NzxDFTemplateControlComponent extends NzxDFAbstractControl {
4
- static ɵfac: i0.ɵɵFactoryDeclaration<NzxDFTemplateControlComponent, never>;
5
- static ɵcmp: i0.ɵɵComponentDeclaration<NzxDFTemplateControlComponent, "ng-component", never, {}, {}, never, never, true, never>;
6
- }
@@ -1,12 +0,0 @@
1
- import { OnInit } from '@angular/core';
2
- import { NzxDFConfigService } from '../config/dynamic-form-config';
3
- import * as i0 from "@angular/core";
4
- export declare class DynamicFormItemComponent implements OnInit {
5
- private nzxDFConfig;
6
- private itemTemplateView;
7
- constructor(nzxDFConfig: NzxDFConfigService);
8
- ngOnInit(): void;
9
- private renderItem;
10
- static ɵfac: i0.ɵɵFactoryDeclaration<DynamicFormItemComponent, never>;
11
- static ɵcmp: i0.ɵɵComponentDeclaration<DynamicFormItemComponent, "nzx-dynamic-form-item", never, {}, {}, never, never, true, never>;
12
- }
@@ -1,5 +0,0 @@
1
- import * as i0 from "@angular/core";
2
- export declare class NzxDynamicFormComponent {
3
- static ɵfac: i0.ɵɵFactoryDeclaration<NzxDynamicFormComponent, never>;
4
- static ɵcmp: i0.ɵɵComponentDeclaration<NzxDynamicFormComponent, "nzx-dynamic-form", never, {}, {}, never, never, true, never>;
5
- }