ng-zorro-antd-extension 19.0.1 → 20.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 (177) 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 +11 -12
  13. package/fesm2022/ng-zorro-antd-extension-checkbox.mjs.map +1 -1
  14. package/fesm2022/ng-zorro-antd-extension-configurable-query.mjs +84 -79
  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 +81 -81
  19. package/fesm2022/ng-zorro-antd-extension-dynamic-form.mjs.map +1 -1
  20. package/fesm2022/ng-zorro-antd-extension-editable.mjs +35 -35
  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 +55 -52
  27. package/fesm2022/ng-zorro-antd-extension-print.mjs.map +1 -1
  28. package/fesm2022/ng-zorro-antd-extension-simple-table.mjs +153 -137
  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 +20 -20
  33. package/fesm2022/ng-zorro-antd-extension-table-form.mjs.map +1 -1
  34. package/fesm2022/ng-zorro-antd-extension-table-select.mjs +22 -22
  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 +12 -12
  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/acl/nzx-acl.directive.d.ts +0 -25
  59. package/acl/nzx-acl.module.d.ts +0 -9
  60. package/acl/nzx-acl.service.d.ts +0 -19
  61. package/acl/public-api.d.ts +0 -7
  62. package/blank-field/blank-field.component.d.ts +0 -19
  63. package/blank-field/blank-field.module.d.ts +0 -7
  64. package/blank-field/public-api.d.ts +0 -6
  65. package/checkbox/checkbox-group.component.d.ts +0 -33
  66. package/checkbox/checkbox.module.d.ts +0 -7
  67. package/checkbox/public-api.d.ts +0 -6
  68. package/configurable-query/configurable-query-item/configurable-query-item.component.d.ts +0 -18
  69. package/configurable-query/configurable-query.component.d.ts +0 -111
  70. package/configurable-query/configurable-query.module.d.ts +0 -12
  71. package/configurable-query/control.directive.d.ts +0 -9
  72. package/configurable-query/controls/abstract.control.d.ts +0 -13
  73. package/configurable-query/controls/date-picker.control.d.ts +0 -6
  74. package/configurable-query/controls/input.control.d.ts +0 -6
  75. package/configurable-query/controls/range-picker.control.d.ts +0 -6
  76. package/configurable-query/controls/select.control.d.ts +0 -6
  77. package/configurable-query/controls/template.control.d.ts +0 -6
  78. package/configurable-query/public-api.d.ts +0 -6
  79. package/configurable-query/query-config.service.d.ts +0 -21
  80. package/configurable-query/type.d.ts +0 -89
  81. package/core/config/config.d.ts +0 -30
  82. package/core/config/config.service.d.ts +0 -20
  83. package/core/config/public-api.d.ts +0 -2
  84. package/dynamic-form/config/dynamic-form-config.d.ts +0 -18
  85. package/dynamic-form/controls/abstract.control.d.ts +0 -11
  86. package/dynamic-form/controls/date-picker.control.d.ts +0 -6
  87. package/dynamic-form/controls/input.control.d.ts +0 -6
  88. package/dynamic-form/controls/range-picker.control.d.ts +0 -6
  89. package/dynamic-form/controls/select.control.d.ts +0 -6
  90. package/dynamic-form/controls/template.control.d.ts +0 -6
  91. package/dynamic-form/dynamic-form-item/dynamic-form-item.component.d.ts +0 -12
  92. package/dynamic-form/dynamic-form.component.d.ts +0 -5
  93. package/dynamic-form/dynamic-form.module.d.ts +0 -17
  94. package/dynamic-form/public-api.d.ts +0 -7
  95. package/dynamic-form/wrapper/control/abstract-control-wrapper.d.ts +0 -12
  96. package/dynamic-form/wrapper/control/built-in-control-wrapper.d.ts +0 -7
  97. package/dynamic-form/wrapper/item/abstract-item-wrapper.d.ts +0 -14
  98. package/dynamic-form/wrapper/item/built-in-item-wrapper.d.ts +0 -6
  99. package/dynamic-form/wrapper/label/abstract-label-wrapper.d.ts +0 -5
  100. package/dynamic-form/wrapper/label/built-in-label-wrapper.d.ts +0 -6
  101. package/editable/editable.component.d.ts +0 -20
  102. package/editable/editable.module.d.ts +0 -7
  103. package/editable/public-api.d.ts +0 -2
  104. package/i18n/languages/en_US.d.ts +0 -10
  105. package/i18n/languages/zh_CN.d.ts +0 -10
  106. package/i18n/nz-i18n.interface.d.ts +0 -6
  107. package/i18n/public-api.d.ts +0 -3
  108. package/jigsaw/jigsaw.component.d.ts +0 -41
  109. package/jigsaw/jigsaw.module.d.ts +0 -7
  110. package/jigsaw/public-api.d.ts +0 -6
  111. package/pipes/map.pipe.d.ts +0 -9
  112. package/pipes/pipes.module.d.ts +0 -13
  113. package/pipes/public-api.d.ts +0 -12
  114. package/pipes/safe-html.pipe.d.ts +0 -9
  115. package/pipes/safe-null.pipe.d.ts +0 -11
  116. package/pipes/safe-resource-url.pipe.d.ts +0 -8
  117. package/pipes/safe-script.pipe.d.ts +0 -8
  118. package/pipes/safe-style.pipe.d.ts +0 -8
  119. package/pipes/safe-url.pipe.d.ts +0 -13
  120. package/print/nzx-print-content.directive.d.ts +0 -10
  121. package/print/nzx-print-v.component.d.ts +0 -47
  122. package/print/nzx-print.component.d.ts +0 -34
  123. package/print/nzx-print.directive.d.ts +0 -17
  124. package/print/nzx-print.module.d.ts +0 -10
  125. package/print/public-api.d.ts +0 -9
  126. package/public-api.d.ts +0 -2
  127. package/simple-table/directive/expand.directive.d.ts +0 -8
  128. package/simple-table/directive/td.directive.d.ts +0 -9
  129. package/simple-table/directive/th.directive.d.ts +0 -9
  130. package/simple-table/public-api.d.ts +0 -9
  131. package/simple-table/simple-table.component.d.ts +0 -57
  132. package/simple-table/simple-table.module.d.ts +0 -10
  133. package/table-adaptor/page-table-basic.d.ts +0 -14
  134. package/table-adaptor/public-api.d.ts +0 -7
  135. package/table-adaptor/table-adaptor.directive.d.ts +0 -43
  136. package/table-adaptor/table-adaptor.module.d.ts +0 -7
  137. package/table-form/directive/table-expand.directive.d.ts +0 -9
  138. package/table-form/directive/table-td.directive.d.ts +0 -9
  139. package/table-form/directive/table-th.directive.d.ts +0 -10
  140. package/table-form/public-api.d.ts +0 -10
  141. package/table-form/table-form.component.d.ts +0 -122
  142. package/table-form/table-form.module.d.ts +0 -10
  143. package/table-form/type.d.ts +0 -94
  144. package/table-select/abstract-table-select.d.ts +0 -51
  145. package/table-select/key.directive.d.ts +0 -8
  146. package/table-select/nzx-table-select.module.d.ts +0 -9
  147. package/table-select/page-table-select/page-table-select.component.d.ts +0 -22
  148. package/table-select/public-api.d.ts +0 -10
  149. package/table-select/table-select/table-select.component.d.ts +0 -13
  150. package/table-select/type.d.ts +0 -14
  151. package/timer-button/public-api.d.ts +0 -6
  152. package/timer-button/timer-button.directive.d.ts +0 -20
  153. package/timer-button/timer-button.module.d.ts +0 -7
  154. package/trim/public-api.d.ts +0 -6
  155. package/trim/trim.directive.d.ts +0 -39
  156. package/trim/trim.module.d.ts +0 -7
  157. package/types/common.d.ts +0 -8
  158. package/types/public-api.d.ts +0 -5
  159. package/util/lib/cloneDeep.d.ts +0 -2
  160. package/util/lib/fileUtil.d.ts +0 -16
  161. package/util/lib/getElementByTag.d.ts +0 -8
  162. package/util/lib/isArray.d.ts +0 -2
  163. package/util/lib/isDate.d.ts +0 -1
  164. package/util/lib/isEmpty.d.ts +0 -2
  165. package/util/lib/isNumber.d.ts +0 -1
  166. package/util/lib/isObject.d.ts +0 -1
  167. package/util/lib/isString.d.ts +0 -1
  168. package/util/lib/toNumber.d.ts +0 -1
  169. package/util/lib/toString.d.ts +0 -1
  170. package/util/lib/trimObject.d.ts +0 -2
  171. package/util/lib/updateControlStatus.d.ts +0 -9
  172. package/util/public-api.d.ts +0 -17
  173. package/wang-editor/public-api.d.ts +0 -8
  174. package/wang-editor/type.d.ts +0 -3
  175. package/wang-editor/wang-editor.component.d.ts +0 -41
  176. package/wang-editor/wang-editor.module.d.ts +0 -8
  177. package/wang-editor/wang-toolbar.component.d.ts +0 -19
package/util/index.d.ts CHANGED
@@ -1,5 +1,62 @@
1
+ import { AbstractControl } from '@angular/forms';
2
+ import { Observable } from 'rxjs';
3
+
1
4
  /**
2
- * Generated bundle index. Do not edit.
5
+ * 用来更新控件的状态,默认标注控件以及子控件为dirty,通常用来更新ng zorro中表单错误及时更新错误提示
6
+ *
7
+ * @param abstractControl FormControl、FormArray、FormGroup实例
8
+ * @param markAsClean 是否标记控件为干净状态,实际只设置pristine为true,如要设置更多参数请使用customOperate自定义
9
+ * @param customOperate 当markAsClean为true时可以自定义操作,用来完全让control干净,比如markAsUntouched
3
10
  */
4
- /// <amd-module name="ng-zorro-antd-extension/util" />
5
- export * from './public-api';
11
+ declare function updateControlStatus(abstractControl: AbstractControl, markAsClean?: boolean, customOperate?: (control: AbstractControl) => void): void;
12
+
13
+ /** trim去空Object*/
14
+ declare function trimObject(ob: any): any;
15
+
16
+ /** 深克隆 */
17
+ declare function cloneDeep(obj: any, hash?: WeakMap<object, any>): any;
18
+
19
+ /** 判断是否为数组 */
20
+ declare function isArray(obj: any): boolean;
21
+
22
+ declare function isDate(value: any): boolean;
23
+
24
+ /**判断一个值是否为空,包括undefined、null、空字符串、空数组、空对象等情况 */
25
+ declare function isEmpty(value: any): boolean;
26
+
27
+ declare function isNumber(obj: any): boolean;
28
+
29
+ declare function isObject(obj: any): boolean;
30
+
31
+ declare function isString(obj: any): boolean;
32
+
33
+ declare function toNumber(value: any): number;
34
+
35
+ declare function toString(value: any): string;
36
+
37
+ /**选择文件*/
38
+ declare function selectFile(accept?: string, multiple?: false): Observable<File | null>;
39
+ declare function selectFile(accept?: string, multiple?: true): Observable<FileList | null>;
40
+ /**
41
+ * 文件下载
42
+ ** 此方法只适合文件较小的情况下使用
43
+ * 文件较大请使用downloadFileByUrl触发浏览器下载
44
+ * 此方法只适合文件较小的情况下使用
45
+ * 文件较大请使用downloadFileByUrl触发浏览器下载
46
+ */
47
+ declare function downloadFile(file: Blob, fileName?: string): void;
48
+ /**
49
+ * 通过url下载文件
50
+ */
51
+ declare function downloadFileByUrl(url: string, fileName?: string, target?: string): void;
52
+
53
+ /**
54
+ * 获取当前document下所有指定标签
55
+ * @param tagName 标签名
56
+ * @param identifier 唯一标识符,选取标签内容
57
+ *
58
+ * @returns string 标签字符串
59
+ */
60
+ declare function getElementByTag(tagName: keyof HTMLElementTagNameMap, identifier?: string | string[]): string;
61
+
62
+ export { cloneDeep, downloadFile, downloadFileByUrl, getElementByTag, isArray, isDate, isEmpty, isNumber, isObject, isString, selectFile, toNumber, toString, trimObject, updateControlStatus };
@@ -1,5 +1,70 @@
1
- /**
2
- * Generated bundle index. Do not edit.
3
- */
4
- /// <amd-module name="ng-zorro-antd-extension/wang-editor" />
5
- export * from './public-api';
1
+ import * as i0 from '@angular/core';
2
+ import { OnInit, OnChanges, OnDestroy, ElementRef, SimpleChanges, EventEmitter, ChangeDetectorRef } from '@angular/core';
3
+ import { IDomEditor, IToolbarConfig, Toolbar, SlateDescendant, IEditorConfig } from '@wangeditor/editor';
4
+ import { ControlValueAccessor, Validator, AbstractControl, ValidationErrors } from '@angular/forms';
5
+
6
+ type Mode = 'simple' | 'default';
7
+ type AlertType = 'success' | 'info' | 'warning' | 'error';
8
+ type InsertFnType = (url: string, alt?: string, href?: string) => void;
9
+
10
+ declare class NzxWangToolbarDirective implements OnInit, OnChanges, OnDestroy {
11
+ private toolbarRef;
12
+ mode: Mode;
13
+ editor: IDomEditor;
14
+ defaultConfig: Partial<IToolbarConfig>;
15
+ display: string;
16
+ toolbar: Toolbar;
17
+ constructor(toolbarRef: ElementRef);
18
+ ngOnInit(): void;
19
+ ngOnChanges(changes: SimpleChanges): void;
20
+ private initToolbar;
21
+ ngOnDestroy(): void;
22
+ static ɵfac: i0.ɵɵFactoryDeclaration<NzxWangToolbarDirective, never>;
23
+ static ɵdir: i0.ɵɵDirectiveDeclaration<NzxWangToolbarDirective, "nzx-wang-toolbar,[nzxWangToolbar]", ["NzxWangToolbar"], { "mode": { "alias": "mode"; "required": false; }; "editor": { "alias": "editor"; "required": false; }; "defaultConfig": { "alias": "defaultConfig"; "required": false; }; }, {}, never, never, true, never>;
24
+ }
25
+
26
+ declare class NzxWangEditorDirective implements OnInit, ControlValueAccessor, OnDestroy, OnChanges, Validator {
27
+ private editorRef;
28
+ private cd;
29
+ mode: Mode;
30
+ defaultContent: SlateDescendant[];
31
+ defaultHtml: string;
32
+ defaultConfig: Partial<IEditorConfig>;
33
+ height: string;
34
+ /**富文本编辑器必填,必须有text内容 */
35
+ textRequired: boolean;
36
+ onCreated: EventEmitter<any>;
37
+ onDestroyed: EventEmitter<any>;
38
+ onMaxLength: EventEmitter<any>;
39
+ onFocus: EventEmitter<any>;
40
+ onBlur: EventEmitter<any>;
41
+ customAlert: EventEmitter<any>;
42
+ customPaste: EventEmitter<any>;
43
+ onChange: EventEmitter<any>;
44
+ display: string;
45
+ editor: IDomEditor;
46
+ currentValue: string;
47
+ private propagateChange;
48
+ constructor(editorRef: ElementRef, cd: ChangeDetectorRef);
49
+ ngOnInit(): void;
50
+ ngOnChanges(changes: SimpleChanges): void;
51
+ validate(control: AbstractControl<any, any>): ValidationErrors | null;
52
+ private init;
53
+ writeValue(html: any): void;
54
+ registerOnChange(fn: any): void;
55
+ registerOnTouched(fn: any): void;
56
+ setDisabledState?(isDisabled: boolean): void;
57
+ ngOnDestroy(): void;
58
+ private genErrorInfo;
59
+ static ɵfac: i0.ɵɵFactoryDeclaration<NzxWangEditorDirective, never>;
60
+ static ɵdir: i0.ɵɵDirectiveDeclaration<NzxWangEditorDirective, "nzx-wang-editor,[nzxWangEditor]", ["NzxWangEditor"], { "mode": { "alias": "mode"; "required": false; }; "defaultContent": { "alias": "defaultContent"; "required": false; }; "defaultHtml": { "alias": "defaultHtml"; "required": false; }; "defaultConfig": { "alias": "defaultConfig"; "required": false; }; "height": { "alias": "height"; "required": false; }; "textRequired": { "alias": "textRequired"; "required": false; }; }, { "onCreated": "onCreated"; "onDestroyed": "onDestroyed"; "onMaxLength": "onMaxLength"; "onFocus": "onFocus"; "onBlur": "onBlur"; "customAlert": "customAlert"; "customPaste": "customPaste"; "onChange": "onChange"; }, never, never, true, never>;
61
+ }
62
+
63
+ declare class NzxWangEditorModule {
64
+ static ɵfac: i0.ɵɵFactoryDeclaration<NzxWangEditorModule, never>;
65
+ static ɵmod: i0.ɵɵNgModuleDeclaration<NzxWangEditorModule, never, [typeof NzxWangToolbarDirective, typeof NzxWangEditorDirective], [typeof NzxWangToolbarDirective, typeof NzxWangEditorDirective]>;
66
+ static ɵinj: i0.ɵɵInjectorDeclaration<NzxWangEditorModule>;
67
+ }
68
+
69
+ export { NzxWangEditorDirective, NzxWangEditorModule, NzxWangToolbarDirective };
70
+ export type { AlertType, InsertFnType, Mode };
@@ -1,25 +0,0 @@
1
- import { ChangeDetectorRef, OnDestroy, OnInit, TemplateRef, ViewContainerRef } from '@angular/core';
2
- import { NzxAclService } from './nzx-acl.service';
3
- import * as i0 from "@angular/core";
4
- interface AclContext {
5
- $implicit: string[];
6
- currentAcl: string;
7
- }
8
- export declare class NzxAclDirective implements OnInit, OnDestroy {
9
- private templateRef;
10
- private viewContainerRef;
11
- private nzxAclService;
12
- private cd;
13
- codes: string | string[];
14
- nzxAclElse?: TemplateRef<any>;
15
- dataAcl: boolean;
16
- private destroy$;
17
- constructor(templateRef: TemplateRef<AclContext>, viewContainerRef: ViewContainerRef, nzxAclService: NzxAclService, cd: ChangeDetectorRef);
18
- ngOnDestroy(): void;
19
- ngOnInit(): void;
20
- private judge;
21
- private createView;
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, true, never>;
24
- }
25
- export {};
@@ -1,9 +0,0 @@
1
- import { ModuleWithProviders } from '@angular/core';
2
- import * as i0 from "@angular/core";
3
- import * as i1 from "./nzx-acl.directive";
4
- export declare class NzxAclModule {
5
- static forRoot(): ModuleWithProviders<NzxAclModule>;
6
- static ɵfac: i0.ɵɵFactoryDeclaration<NzxAclModule, never>;
7
- static ɵmod: i0.ɵɵNgModuleDeclaration<NzxAclModule, never, [typeof i1.NzxAclDirective], [typeof i1.NzxAclDirective]>;
8
- static ɵinj: i0.ɵɵInjectorDeclaration<NzxAclModule>;
9
- }
@@ -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
- }
@@ -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,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,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,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 {};