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.
- package/acl/index.d.ts +52 -5
- package/blank-field/index.d.ts +27 -5
- package/checkbox/index.d.ts +40 -3
- package/configurable-query/index.d.ts +243 -3
- package/core/config/index.d.ts +52 -3
- package/dynamic-form/index.d.ts +112 -3
- package/editable/index.d.ts +29 -5
- package/fesm2022/ng-zorro-antd-extension-acl.mjs +11 -11
- package/fesm2022/ng-zorro-antd-extension-acl.mjs.map +1 -1
- package/fesm2022/ng-zorro-antd-extension-blank-field.mjs +8 -8
- package/fesm2022/ng-zorro-antd-extension-blank-field.mjs.map +1 -1
- package/fesm2022/ng-zorro-antd-extension-checkbox.mjs +11 -12
- package/fesm2022/ng-zorro-antd-extension-checkbox.mjs.map +1 -1
- package/fesm2022/ng-zorro-antd-extension-configurable-query.mjs +84 -79
- package/fesm2022/ng-zorro-antd-extension-configurable-query.mjs.map +1 -1
- package/fesm2022/ng-zorro-antd-extension-core-config.mjs +4 -4
- package/fesm2022/ng-zorro-antd-extension-core-config.mjs.map +1 -1
- package/fesm2022/ng-zorro-antd-extension-dynamic-form.mjs +81 -81
- package/fesm2022/ng-zorro-antd-extension-dynamic-form.mjs.map +1 -1
- package/fesm2022/ng-zorro-antd-extension-editable.mjs +35 -35
- package/fesm2022/ng-zorro-antd-extension-editable.mjs.map +1 -1
- package/fesm2022/ng-zorro-antd-extension-jigsaw.mjs +8 -8
- package/fesm2022/ng-zorro-antd-extension-jigsaw.mjs.map +1 -1
- package/fesm2022/ng-zorro-antd-extension-pipes.mjs +25 -25
- package/fesm2022/ng-zorro-antd-extension-pipes.mjs.map +1 -1
- package/fesm2022/ng-zorro-antd-extension-print.mjs +55 -52
- package/fesm2022/ng-zorro-antd-extension-print.mjs.map +1 -1
- package/fesm2022/ng-zorro-antd-extension-simple-table.mjs +153 -137
- package/fesm2022/ng-zorro-antd-extension-simple-table.mjs.map +1 -1
- package/fesm2022/ng-zorro-antd-extension-table-adaptor.mjs +11 -11
- package/fesm2022/ng-zorro-antd-extension-table-adaptor.mjs.map +1 -1
- package/fesm2022/ng-zorro-antd-extension-table-form.mjs +20 -20
- package/fesm2022/ng-zorro-antd-extension-table-form.mjs.map +1 -1
- package/fesm2022/ng-zorro-antd-extension-table-select.mjs +22 -22
- package/fesm2022/ng-zorro-antd-extension-table-select.mjs.map +1 -1
- package/fesm2022/ng-zorro-antd-extension-timer-button.mjs +8 -8
- package/fesm2022/ng-zorro-antd-extension-timer-button.mjs.map +1 -1
- package/fesm2022/ng-zorro-antd-extension-trim.mjs +8 -8
- package/fesm2022/ng-zorro-antd-extension-trim.mjs.map +1 -1
- package/fesm2022/ng-zorro-antd-extension-util.mjs.map +1 -1
- package/fesm2022/ng-zorro-antd-extension-wang-editor.mjs +11 -11
- package/fesm2022/ng-zorro-antd-extension-wang-editor.mjs.map +1 -1
- package/i18n/index.d.ts +29 -5
- package/index.d.ts +2 -5
- package/jigsaw/index.d.ts +50 -5
- package/package.json +12 -12
- package/pipes/index.d.ts +68 -5
- package/print/index.d.ts +111 -3
- package/simple-table/index.d.ts +85 -3
- package/table-adaptor/index.d.ts +66 -5
- package/table-form/index.d.ts +247 -3
- package/table-select/index.d.ts +107 -3
- package/timer-button/index.d.ts +29 -5
- package/trim/index.d.ts +48 -5
- package/types/index.d.ts +8 -3
- package/util/index.d.ts +60 -3
- package/wang-editor/index.d.ts +70 -5
- package/acl/nzx-acl.directive.d.ts +0 -25
- package/acl/nzx-acl.module.d.ts +0 -9
- package/acl/nzx-acl.service.d.ts +0 -19
- package/acl/public-api.d.ts +0 -7
- package/blank-field/blank-field.component.d.ts +0 -19
- package/blank-field/blank-field.module.d.ts +0 -7
- package/blank-field/public-api.d.ts +0 -6
- package/checkbox/checkbox-group.component.d.ts +0 -33
- package/checkbox/checkbox.module.d.ts +0 -7
- package/checkbox/public-api.d.ts +0 -6
- package/configurable-query/configurable-query-item/configurable-query-item.component.d.ts +0 -18
- package/configurable-query/configurable-query.component.d.ts +0 -111
- package/configurable-query/configurable-query.module.d.ts +0 -12
- package/configurable-query/control.directive.d.ts +0 -9
- package/configurable-query/controls/abstract.control.d.ts +0 -13
- package/configurable-query/controls/date-picker.control.d.ts +0 -6
- package/configurable-query/controls/input.control.d.ts +0 -6
- package/configurable-query/controls/range-picker.control.d.ts +0 -6
- package/configurable-query/controls/select.control.d.ts +0 -6
- package/configurable-query/controls/template.control.d.ts +0 -6
- package/configurable-query/public-api.d.ts +0 -6
- package/configurable-query/query-config.service.d.ts +0 -21
- package/configurable-query/type.d.ts +0 -89
- package/core/config/config.d.ts +0 -30
- package/core/config/config.service.d.ts +0 -20
- package/core/config/public-api.d.ts +0 -2
- package/dynamic-form/config/dynamic-form-config.d.ts +0 -18
- package/dynamic-form/controls/abstract.control.d.ts +0 -11
- package/dynamic-form/controls/date-picker.control.d.ts +0 -6
- package/dynamic-form/controls/input.control.d.ts +0 -6
- package/dynamic-form/controls/range-picker.control.d.ts +0 -6
- package/dynamic-form/controls/select.control.d.ts +0 -6
- package/dynamic-form/controls/template.control.d.ts +0 -6
- package/dynamic-form/dynamic-form-item/dynamic-form-item.component.d.ts +0 -12
- package/dynamic-form/dynamic-form.component.d.ts +0 -5
- package/dynamic-form/dynamic-form.module.d.ts +0 -17
- package/dynamic-form/public-api.d.ts +0 -7
- package/dynamic-form/wrapper/control/abstract-control-wrapper.d.ts +0 -12
- package/dynamic-form/wrapper/control/built-in-control-wrapper.d.ts +0 -7
- package/dynamic-form/wrapper/item/abstract-item-wrapper.d.ts +0 -14
- package/dynamic-form/wrapper/item/built-in-item-wrapper.d.ts +0 -6
- package/dynamic-form/wrapper/label/abstract-label-wrapper.d.ts +0 -5
- package/dynamic-form/wrapper/label/built-in-label-wrapper.d.ts +0 -6
- package/editable/editable.component.d.ts +0 -20
- package/editable/editable.module.d.ts +0 -7
- package/editable/public-api.d.ts +0 -2
- package/i18n/languages/en_US.d.ts +0 -10
- package/i18n/languages/zh_CN.d.ts +0 -10
- package/i18n/nz-i18n.interface.d.ts +0 -6
- package/i18n/public-api.d.ts +0 -3
- package/jigsaw/jigsaw.component.d.ts +0 -41
- package/jigsaw/jigsaw.module.d.ts +0 -7
- package/jigsaw/public-api.d.ts +0 -6
- package/pipes/map.pipe.d.ts +0 -9
- package/pipes/pipes.module.d.ts +0 -13
- package/pipes/public-api.d.ts +0 -12
- package/pipes/safe-html.pipe.d.ts +0 -9
- package/pipes/safe-null.pipe.d.ts +0 -11
- package/pipes/safe-resource-url.pipe.d.ts +0 -8
- package/pipes/safe-script.pipe.d.ts +0 -8
- package/pipes/safe-style.pipe.d.ts +0 -8
- package/pipes/safe-url.pipe.d.ts +0 -13
- package/print/nzx-print-content.directive.d.ts +0 -10
- package/print/nzx-print-v.component.d.ts +0 -47
- package/print/nzx-print.component.d.ts +0 -34
- package/print/nzx-print.directive.d.ts +0 -17
- package/print/nzx-print.module.d.ts +0 -10
- package/print/public-api.d.ts +0 -9
- package/public-api.d.ts +0 -2
- package/simple-table/directive/expand.directive.d.ts +0 -8
- package/simple-table/directive/td.directive.d.ts +0 -9
- package/simple-table/directive/th.directive.d.ts +0 -9
- package/simple-table/public-api.d.ts +0 -9
- package/simple-table/simple-table.component.d.ts +0 -57
- package/simple-table/simple-table.module.d.ts +0 -10
- package/table-adaptor/page-table-basic.d.ts +0 -14
- package/table-adaptor/public-api.d.ts +0 -7
- package/table-adaptor/table-adaptor.directive.d.ts +0 -43
- package/table-adaptor/table-adaptor.module.d.ts +0 -7
- package/table-form/directive/table-expand.directive.d.ts +0 -9
- package/table-form/directive/table-td.directive.d.ts +0 -9
- package/table-form/directive/table-th.directive.d.ts +0 -10
- package/table-form/public-api.d.ts +0 -10
- package/table-form/table-form.component.d.ts +0 -122
- package/table-form/table-form.module.d.ts +0 -10
- package/table-form/type.d.ts +0 -94
- package/table-select/abstract-table-select.d.ts +0 -51
- package/table-select/key.directive.d.ts +0 -8
- package/table-select/nzx-table-select.module.d.ts +0 -9
- package/table-select/page-table-select/page-table-select.component.d.ts +0 -22
- package/table-select/public-api.d.ts +0 -10
- package/table-select/table-select/table-select.component.d.ts +0 -13
- package/table-select/type.d.ts +0 -14
- package/timer-button/public-api.d.ts +0 -6
- package/timer-button/timer-button.directive.d.ts +0 -20
- package/timer-button/timer-button.module.d.ts +0 -7
- package/trim/public-api.d.ts +0 -6
- package/trim/trim.directive.d.ts +0 -39
- package/trim/trim.module.d.ts +0 -7
- package/types/common.d.ts +0 -8
- package/types/public-api.d.ts +0 -5
- package/util/lib/cloneDeep.d.ts +0 -2
- package/util/lib/fileUtil.d.ts +0 -16
- package/util/lib/getElementByTag.d.ts +0 -8
- package/util/lib/isArray.d.ts +0 -2
- package/util/lib/isDate.d.ts +0 -1
- package/util/lib/isEmpty.d.ts +0 -2
- package/util/lib/isNumber.d.ts +0 -1
- package/util/lib/isObject.d.ts +0 -1
- package/util/lib/isString.d.ts +0 -1
- package/util/lib/toNumber.d.ts +0 -1
- package/util/lib/toString.d.ts +0 -1
- package/util/lib/trimObject.d.ts +0 -2
- package/util/lib/updateControlStatus.d.ts +0 -9
- package/util/public-api.d.ts +0 -17
- package/wang-editor/public-api.d.ts +0 -8
- package/wang-editor/type.d.ts +0 -3
- package/wang-editor/wang-editor.component.d.ts +0 -41
- package/wang-editor/wang-editor.module.d.ts +0 -8
- package/wang-editor/wang-toolbar.component.d.ts +0 -19
package/simple-table/index.d.ts
CHANGED
|
@@ -1,5 +1,87 @@
|
|
|
1
|
+
import * as i0 from '@angular/core';
|
|
2
|
+
import { TemplateRef, AfterContentInit } from '@angular/core';
|
|
3
|
+
import { NzTableSize } from 'ng-zorro-antd/table';
|
|
4
|
+
|
|
5
|
+
declare class NzxTdDirective {
|
|
6
|
+
templateRef: TemplateRef<any>;
|
|
7
|
+
key?: any;
|
|
8
|
+
constructor(templateRef: TemplateRef<any>);
|
|
9
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<NzxTdDirective, never>;
|
|
10
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<NzxTdDirective, "[nzxTd]", never, { "key": { "alias": "key"; "required": false; }; }, {}, never, never, true, never>;
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
declare class NzxThDirective {
|
|
14
|
+
templateRef: TemplateRef<unknown>;
|
|
15
|
+
width: string | null;
|
|
16
|
+
constructor(templateRef: TemplateRef<unknown>);
|
|
17
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<NzxThDirective, never>;
|
|
18
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<NzxThDirective, "[nzxTh]", never, { "width": { "alias": "width"; "required": false; }; }, {}, never, never, true, never>;
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
declare class NzxExpandDirective {
|
|
22
|
+
templateRef: TemplateRef<unknown>;
|
|
23
|
+
constructor(templateRef: TemplateRef<unknown>);
|
|
24
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<NzxExpandDirective, never>;
|
|
25
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<NzxExpandDirective, "[nzxExpandTr]", never, {}, {}, never, never, true, never>;
|
|
26
|
+
}
|
|
27
|
+
|
|
1
28
|
/**
|
|
2
|
-
*
|
|
29
|
+
* nzx-simple-table 组件配置格式
|
|
3
30
|
*/
|
|
4
|
-
|
|
5
|
-
|
|
31
|
+
interface NzxSimpleTableConfig<T> {
|
|
32
|
+
/**
|
|
33
|
+
* 表头名
|
|
34
|
+
*/
|
|
35
|
+
header: string;
|
|
36
|
+
/**
|
|
37
|
+
* 字段key值
|
|
38
|
+
*/
|
|
39
|
+
key?: string | number;
|
|
40
|
+
/**
|
|
41
|
+
* td宽度
|
|
42
|
+
*/
|
|
43
|
+
width?: string;
|
|
44
|
+
/**
|
|
45
|
+
* 数据格式化函数
|
|
46
|
+
*/
|
|
47
|
+
format?: (data: T) => any;
|
|
48
|
+
template?: TemplateRef<any>;
|
|
49
|
+
}
|
|
50
|
+
declare class NzxSimpleTableComponent<T extends {
|
|
51
|
+
expand?: boolean;
|
|
52
|
+
[key: string]: any;
|
|
53
|
+
}> implements AfterContentInit {
|
|
54
|
+
/** th td 布局方式 */
|
|
55
|
+
nzxAlign: 'left' | 'right' | 'center' | null;
|
|
56
|
+
/** table 标题 */
|
|
57
|
+
nzxTitle: string | TemplateRef<void>;
|
|
58
|
+
/** table 页脚*/
|
|
59
|
+
nzxFooter: string | TemplateRef<void>;
|
|
60
|
+
/** 支持展开 */
|
|
61
|
+
nzxExpand: boolean;
|
|
62
|
+
/** 启用边框 */
|
|
63
|
+
nzxBordered: boolean;
|
|
64
|
+
/** table数据集合 */
|
|
65
|
+
nzxData: Array<T>;
|
|
66
|
+
/** table size */
|
|
67
|
+
nzxSize: NzTableSize;
|
|
68
|
+
/** table 配置项 */
|
|
69
|
+
nzxConfig: Array<NzxSimpleTableConfig<T>>;
|
|
70
|
+
tdList: Array<NzxTdDirective>;
|
|
71
|
+
thList: Array<NzxThDirective>;
|
|
72
|
+
expandDirective: NzxExpandDirective;
|
|
73
|
+
private _thList;
|
|
74
|
+
private _tdList;
|
|
75
|
+
ngAfterContentInit(): void;
|
|
76
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<NzxSimpleTableComponent<any>, never>;
|
|
77
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<NzxSimpleTableComponent<any>, "nzx-simple-table", never, { "nzxAlign": { "alias": "nzxAlign"; "required": false; }; "nzxTitle": { "alias": "nzxTitle"; "required": false; }; "nzxFooter": { "alias": "nzxFooter"; "required": false; }; "nzxExpand": { "alias": "nzxExpand"; "required": false; }; "nzxBordered": { "alias": "nzxBordered"; "required": false; }; "nzxData": { "alias": "nzxData"; "required": false; }; "nzxSize": { "alias": "nzxSize"; "required": false; }; "nzxConfig": { "alias": "nzxConfig"; "required": false; }; }, {}, ["expandDirective", "_thList", "_tdList"], never, true, never>;
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
declare class NzxSimpleTableModule {
|
|
81
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<NzxSimpleTableModule, never>;
|
|
82
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<NzxSimpleTableModule, never, [typeof NzxSimpleTableComponent, typeof NzxThDirective, typeof NzxTdDirective, typeof NzxExpandDirective], [typeof NzxThDirective, typeof NzxTdDirective, typeof NzxExpandDirective, typeof NzxSimpleTableComponent]>;
|
|
83
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<NzxSimpleTableModule>;
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
export { NzxExpandDirective, NzxSimpleTableComponent, NzxSimpleTableModule, NzxTdDirective, NzxThDirective };
|
|
87
|
+
export type { NzxSimpleTableConfig };
|
package/table-adaptor/index.d.ts
CHANGED
|
@@ -1,5 +1,66 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
1
|
+
import * as i0 from '@angular/core';
|
|
2
|
+
import { OnInit, OnDestroy, EventEmitter } from '@angular/core';
|
|
3
|
+
import { Router } from '@angular/router';
|
|
4
|
+
import { NzTableQueryParams } from 'ng-zorro-antd/table';
|
|
5
|
+
import { NzxConfigKey } from 'ng-zorro-antd-extension/core/config';
|
|
6
|
+
|
|
7
|
+
interface NzxTableQueryParams extends NzTableQueryParams {
|
|
8
|
+
[key: string]: any;
|
|
9
|
+
}
|
|
10
|
+
declare class NzxTableAdaptor implements OnInit, OnDestroy {
|
|
11
|
+
private router;
|
|
12
|
+
readonly _nzModuleName: NzxConfigKey;
|
|
13
|
+
set queryParams(value: any);
|
|
14
|
+
get queryParams(): any;
|
|
15
|
+
enableCache: boolean;
|
|
16
|
+
dateFormat: string;
|
|
17
|
+
customFormateOutFn: (params: any) => any;
|
|
18
|
+
nzxQueryParams: EventEmitter<NzxTableQueryParams>;
|
|
19
|
+
nzxQueryCacheQueryParams: EventEmitter<NzxTableQueryParams>;
|
|
20
|
+
private _queryParams;
|
|
21
|
+
private nzTableQueryParams;
|
|
22
|
+
private destroy$;
|
|
23
|
+
private nzxConfigService;
|
|
24
|
+
private nzTable;
|
|
25
|
+
private nzTableDataService;
|
|
26
|
+
constructor(router: Router);
|
|
27
|
+
ngOnInit(): void;
|
|
28
|
+
ngOnDestroy(): void;
|
|
29
|
+
/**
|
|
30
|
+
* currentPage
|
|
31
|
+
* - true 查询当前页
|
|
32
|
+
* - false 跳转第一页
|
|
33
|
+
*
|
|
34
|
+
* 默认跳转第一页
|
|
35
|
+
*/
|
|
36
|
+
refresh(currentPage?: boolean): void;
|
|
37
|
+
/**
|
|
38
|
+
* 重置查询条件并查询
|
|
39
|
+
*/
|
|
40
|
+
reset(params?: any): void;
|
|
41
|
+
private emit;
|
|
42
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<NzxTableAdaptor, never>;
|
|
43
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<NzxTableAdaptor, "nz-table[nzxTableAdaptor]", ["NzxTableAdaptor"], { "queryParams": { "alias": "queryParams"; "required": false; }; "enableCache": { "alias": "enableCache"; "required": false; }; "dateFormat": { "alias": "dateFormat"; "required": false; }; "customFormateOutFn": { "alias": "customFormateOutFn"; "required": false; }; }, { "nzxQueryParams": "nzxQueryParams"; "nzxQueryCacheQueryParams": "nzxQueryCacheQueryParams"; }, never, never, true, never>;
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
declare class NzxTableAdaptorModule {
|
|
47
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<NzxTableAdaptorModule, never>;
|
|
48
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<NzxTableAdaptorModule, never, [typeof NzxTableAdaptor], [typeof NzxTableAdaptor]>;
|
|
49
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<NzxTableAdaptorModule>;
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
declare class NzxPageTableBase<T = any> {
|
|
53
|
+
/** 列表数据 */
|
|
54
|
+
list: Array<T>;
|
|
55
|
+
/** loading加载条标志位 */
|
|
56
|
+
loading: boolean;
|
|
57
|
+
/** 分页总条数 */
|
|
58
|
+
nzTotal: number;
|
|
59
|
+
/** 表单指令实例用来刷新重置 */
|
|
60
|
+
nzxTableAdaptorRef: NzxTableAdaptor;
|
|
61
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<NzxPageTableBase<any>, never>;
|
|
62
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<NzxPageTableBase<any>, never, never, {}, {}, never, never, true, never>;
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
export { NzxPageTableBase, NzxTableAdaptor, NzxTableAdaptorModule };
|
|
66
|
+
export type { NzxTableQueryParams };
|
package/table-form/index.d.ts
CHANGED
|
@@ -1,5 +1,249 @@
|
|
|
1
|
+
import * as i0 from '@angular/core';
|
|
2
|
+
import { TemplateRef, OnInit, AfterContentInit, OnDestroy, EventEmitter, ChangeDetectorRef } from '@angular/core';
|
|
3
|
+
import { ControlValueAccessor, Validator, ValidatorFn, FormGroup, FormArray, FormBuilder, AbstractControl, ValidationErrors } from '@angular/forms';
|
|
4
|
+
import { NzTableLayout, NzTableSize } from 'ng-zorro-antd/table';
|
|
5
|
+
import { NzxOptions } from 'ng-zorro-antd-extension/types';
|
|
6
|
+
|
|
7
|
+
declare class NzxTableFormExpandDirective {
|
|
8
|
+
templateRef: TemplateRef<any>;
|
|
9
|
+
controlName: string;
|
|
10
|
+
constructor(templateRef: TemplateRef<any>);
|
|
11
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<NzxTableFormExpandDirective, never>;
|
|
12
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<NzxTableFormExpandDirective, "[nzxTableFormExpand]", never, { "controlName": { "alias": "controlName"; "required": false; }; }, {}, never, never, true, never>;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
declare class NzxTableFormTdDirective {
|
|
16
|
+
templateRef: TemplateRef<any>;
|
|
17
|
+
controlName: string;
|
|
18
|
+
constructor(templateRef: TemplateRef<any>);
|
|
19
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<NzxTableFormTdDirective, never>;
|
|
20
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<NzxTableFormTdDirective, "[nzxTableFormTd]", never, { "controlName": { "alias": "controlName"; "required": false; }; }, {}, never, never, true, never>;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
declare class NzxTableFormThDirective {
|
|
24
|
+
templateRef: TemplateRef<any>;
|
|
25
|
+
controlName: string;
|
|
26
|
+
width?: string;
|
|
27
|
+
constructor(templateRef: TemplateRef<any>);
|
|
28
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<NzxTableFormThDirective, never>;
|
|
29
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<NzxTableFormThDirective, "[nzxTableFormTh]", never, { "controlName": { "alias": "controlName"; "required": false; }; "width": { "alias": "width"; "required": false; }; }, {}, never, never, true, never>;
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
interface NzxLimitMessage {
|
|
33
|
+
type: 'max' | 'min';
|
|
34
|
+
limit: number;
|
|
35
|
+
msg: string;
|
|
36
|
+
}
|
|
1
37
|
/**
|
|
2
|
-
*
|
|
38
|
+
* nzx-table-form 配置项
|
|
3
39
|
*/
|
|
4
|
-
|
|
5
|
-
|
|
40
|
+
interface NzxTableFormConfig {
|
|
41
|
+
/** 表头名 */
|
|
42
|
+
header: string;
|
|
43
|
+
/** td th 宽度 */
|
|
44
|
+
width?: string;
|
|
45
|
+
/** 控件名 */
|
|
46
|
+
controlName: string;
|
|
47
|
+
/** 控件默认值 */
|
|
48
|
+
defaultValue?: any;
|
|
49
|
+
/** 控件类型 */
|
|
50
|
+
type?: 'input' | 'date' | 'select' | 'number' | 'radio' | 'textarea' | 'template';
|
|
51
|
+
/** 控件校验 */
|
|
52
|
+
validation?: Array<any>;
|
|
53
|
+
/** 控件错误提示 */
|
|
54
|
+
errorTip?: string;
|
|
55
|
+
/** 控件为select radio时下拉选项 */
|
|
56
|
+
options?: Array<NzxOptions<any>>;
|
|
57
|
+
/** 控件模式 */
|
|
58
|
+
controlMode?: 'readonly' | 'edit';
|
|
59
|
+
/** 控件列是否在table中展示 */
|
|
60
|
+
isShow?: boolean;
|
|
61
|
+
/** placeholder */
|
|
62
|
+
placeholder?: string;
|
|
63
|
+
/** select时,是否允许清空 */
|
|
64
|
+
allowClear?: boolean;
|
|
65
|
+
/** th是否展示必填星号 */
|
|
66
|
+
showRequiredTip?: boolean;
|
|
67
|
+
/** 自定义模板,可不填 */
|
|
68
|
+
templateRef?: TemplateRef<unknown>;
|
|
69
|
+
/** 最大长度 */
|
|
70
|
+
maxLength?: string | number;
|
|
71
|
+
/** nz-input-number时max */
|
|
72
|
+
max?: number;
|
|
73
|
+
/** readonly时自定义函数用来自定义展示 */
|
|
74
|
+
format?: (value: any) => any;
|
|
75
|
+
}
|
|
76
|
+
interface NzxTableFormHeaderConfig {
|
|
77
|
+
/** 表头名 */
|
|
78
|
+
header: string;
|
|
79
|
+
/** td th 宽度 */
|
|
80
|
+
width?: string;
|
|
81
|
+
/** 控件名 */
|
|
82
|
+
controlName?: string;
|
|
83
|
+
/** 控件列是否在table中展示 */
|
|
84
|
+
isShow?: boolean;
|
|
85
|
+
/** 自定义模板,可不填 */
|
|
86
|
+
templateRef?: TemplateRef<unknown>;
|
|
87
|
+
/** th是否展示必填星号 */
|
|
88
|
+
showRequiredTip?: boolean;
|
|
89
|
+
}
|
|
90
|
+
interface NzxTableFormTdConfig {
|
|
91
|
+
/** td th 宽度 */
|
|
92
|
+
width?: string;
|
|
93
|
+
/** 控件名 */
|
|
94
|
+
controlName: string;
|
|
95
|
+
/** 控件列是否在table中展示 */
|
|
96
|
+
isShow?: boolean;
|
|
97
|
+
/** 自定义模板,可不填 */
|
|
98
|
+
templateRef?: TemplateRef<unknown>;
|
|
99
|
+
/** th是否展示必填星号 */
|
|
100
|
+
showRequiredTip?: boolean;
|
|
101
|
+
/** 控件默认值 */
|
|
102
|
+
defaultValue?: any;
|
|
103
|
+
/** 控件类型 */
|
|
104
|
+
type?: 'input' | 'date' | 'select' | 'number' | 'radio' | 'textarea' | 'template';
|
|
105
|
+
/** 控件校验 */
|
|
106
|
+
validation?: Array<any>;
|
|
107
|
+
/** 控件错误提示 */
|
|
108
|
+
errorTip?: string;
|
|
109
|
+
/** 控件为select时下拉选项 */
|
|
110
|
+
options?: Array<NzxOptions>;
|
|
111
|
+
/** 控件模式 */
|
|
112
|
+
controlMode?: 'readonly' | 'edit';
|
|
113
|
+
/** placeholder */
|
|
114
|
+
placeholder?: string;
|
|
115
|
+
/** select时,是否允许清空 */
|
|
116
|
+
allowClear?: boolean;
|
|
117
|
+
/** 最大长度 */
|
|
118
|
+
maxLength?: string | number;
|
|
119
|
+
/** nz-input-number时max */
|
|
120
|
+
max?: number;
|
|
121
|
+
/** 自定义函数用来自定义展示 */
|
|
122
|
+
format?: (value: any) => any;
|
|
123
|
+
}
|
|
124
|
+
|
|
125
|
+
declare class NzxTableFormComponent implements OnInit, ControlValueAccessor, AfterContentInit, Validator, OnDestroy {
|
|
126
|
+
private cd;
|
|
127
|
+
private fb;
|
|
128
|
+
tableLayout: NzTableLayout;
|
|
129
|
+
tableAlign: 'left' | 'right' | 'center' | null;
|
|
130
|
+
/** table 启用扩展行 */
|
|
131
|
+
enableExpand: boolean;
|
|
132
|
+
/** table border */
|
|
133
|
+
nzxBordered: boolean;
|
|
134
|
+
/** table size */
|
|
135
|
+
nzxSize: NzTableSize;
|
|
136
|
+
/** 启用数量限制 */
|
|
137
|
+
enableLimit: boolean;
|
|
138
|
+
/** 最大数量 */
|
|
139
|
+
maxLimit: number;
|
|
140
|
+
/** 最少数量 */
|
|
141
|
+
minLimit: number;
|
|
142
|
+
/** 自定义footer */
|
|
143
|
+
nzxFooter?: string | TemplateRef<void>;
|
|
144
|
+
/**是否在前端对数据进行分页,如果在服务器分页数据或者需要在前端显示全部数据时传入 false */
|
|
145
|
+
nzxFrontPagination: boolean;
|
|
146
|
+
/**
|
|
147
|
+
* 校验整个table的错误提示自定义模板
|
|
148
|
+
*/
|
|
149
|
+
errorTemplate?: TemplateRef<any>;
|
|
150
|
+
/** 启用序号 */
|
|
151
|
+
enableNo: boolean;
|
|
152
|
+
/** 序号宽度 */
|
|
153
|
+
serialNumberWidth: string;
|
|
154
|
+
/** 序号自定义模板 */
|
|
155
|
+
serialNumberTemplate?: TemplateRef<void>;
|
|
156
|
+
/**
|
|
157
|
+
* 校验table的函数
|
|
158
|
+
*/
|
|
159
|
+
tableValidatorFn: ValidatorFn;
|
|
160
|
+
/** table config */
|
|
161
|
+
tableFormConfig: NzxTableFormConfig[];
|
|
162
|
+
/** 数量限制回调 */
|
|
163
|
+
limitMessage: EventEmitter<NzxLimitMessage>;
|
|
164
|
+
headerConfig: Array<NzxTableFormHeaderConfig>;
|
|
165
|
+
tdConfig: Array<NzxTableFormTdConfig>;
|
|
166
|
+
thTemplateOfNullInForm: {
|
|
167
|
+
templateRef: TemplateRef<unknown>;
|
|
168
|
+
width?: string;
|
|
169
|
+
}[];
|
|
170
|
+
tdTemplateOfNullInForm: {
|
|
171
|
+
templateRef: TemplateRef<unknown>;
|
|
172
|
+
}[];
|
|
173
|
+
/** 整个table-form */
|
|
174
|
+
form: FormGroup;
|
|
175
|
+
isDisabled: boolean;
|
|
176
|
+
/** formGroup下的formArray,formArray中是多行formGroup*/
|
|
177
|
+
get tableFormArray(): FormArray<FormGroup>;
|
|
178
|
+
/** table formGroups集合 */
|
|
179
|
+
get formGroupList(): FormGroup<any>[];
|
|
180
|
+
get invalid(): boolean;
|
|
181
|
+
/** 一行的form配置 */
|
|
182
|
+
private controlsConfig;
|
|
183
|
+
private destroyed$;
|
|
184
|
+
private tableTdDirectiveList;
|
|
185
|
+
private tableThDirectiveList;
|
|
186
|
+
tableExpandDirective: NzxTableFormExpandDirective;
|
|
187
|
+
constructor(cd: ChangeDetectorRef, fb: FormBuilder);
|
|
188
|
+
ngOnDestroy(): void;
|
|
189
|
+
ngOnInit(): void;
|
|
190
|
+
ngAfterContentInit(): void;
|
|
191
|
+
/**
|
|
192
|
+
* 若table为空或者有一行数据校验不通过,则整个组件校验不通过
|
|
193
|
+
*/
|
|
194
|
+
validate(control: AbstractControl): ValidationErrors | null;
|
|
195
|
+
/**
|
|
196
|
+
* 根据controlName设置config值
|
|
197
|
+
*/
|
|
198
|
+
setConfig(controlName: string, config: Partial<NzxTableFormConfig>): void;
|
|
199
|
+
/**
|
|
200
|
+
* 重置table表单为空
|
|
201
|
+
*/
|
|
202
|
+
clearTable(): void;
|
|
203
|
+
/**
|
|
204
|
+
* 添加table一行
|
|
205
|
+
*/
|
|
206
|
+
addRow(rowValue?: any): void;
|
|
207
|
+
/**
|
|
208
|
+
* 删除table一行
|
|
209
|
+
*/
|
|
210
|
+
deleteRow(i: number): void;
|
|
211
|
+
writeValue(obj: any): void;
|
|
212
|
+
registerOnChange(fn: any): void;
|
|
213
|
+
registerOnTouched(fn: any): void;
|
|
214
|
+
setDisabledState?(isDisabled: boolean): void;
|
|
215
|
+
/**
|
|
216
|
+
* 更新table config配置项
|
|
217
|
+
* 在更新config时候需要调用重新渲染table
|
|
218
|
+
*/
|
|
219
|
+
private updateTableConfig;
|
|
220
|
+
private propagateChange;
|
|
221
|
+
/**
|
|
222
|
+
* 匹配投影模板template放到config中
|
|
223
|
+
*/
|
|
224
|
+
private matchTemplate;
|
|
225
|
+
/**
|
|
226
|
+
* 解析配置生成controls
|
|
227
|
+
*/
|
|
228
|
+
private parseFormConfig;
|
|
229
|
+
/**
|
|
230
|
+
* 解析配置生成header
|
|
231
|
+
*
|
|
232
|
+
*/
|
|
233
|
+
private parseHeader;
|
|
234
|
+
/**
|
|
235
|
+
* 解析配置生成Content
|
|
236
|
+
*/
|
|
237
|
+
private parseTd;
|
|
238
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<NzxTableFormComponent, never>;
|
|
239
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<NzxTableFormComponent, "nzx-table-form", ["NzxTableForm"], { "tableLayout": { "alias": "tableLayout"; "required": false; }; "tableAlign": { "alias": "tableAlign"; "required": false; }; "enableExpand": { "alias": "enableExpand"; "required": false; }; "nzxBordered": { "alias": "nzxBordered"; "required": false; }; "nzxSize": { "alias": "nzxSize"; "required": false; }; "enableLimit": { "alias": "enableLimit"; "required": false; }; "maxLimit": { "alias": "maxLimit"; "required": false; }; "minLimit": { "alias": "minLimit"; "required": false; }; "nzxFooter": { "alias": "nzxFooter"; "required": false; }; "nzxFrontPagination": { "alias": "nzxFrontPagination"; "required": false; }; "errorTemplate": { "alias": "errorTemplate"; "required": false; }; "enableNo": { "alias": "enableNo"; "required": false; }; "serialNumberWidth": { "alias": "serialNumberWidth"; "required": false; }; "serialNumberTemplate": { "alias": "serialNumberTemplate"; "required": false; }; "tableValidatorFn": { "alias": "tableValidatorFn"; "required": false; }; "tableFormConfig": { "alias": "tableFormConfig"; "required": false; }; }, { "limitMessage": "limitMessage"; }, ["tableExpandDirective", "tableTdDirectiveList", "tableThDirectiveList"], ["*"], true, never>;
|
|
240
|
+
}
|
|
241
|
+
|
|
242
|
+
declare class NzxTableFormModule {
|
|
243
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<NzxTableFormModule, never>;
|
|
244
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<NzxTableFormModule, never, [typeof NzxTableFormComponent, typeof NzxTableFormTdDirective, typeof NzxTableFormThDirective, typeof NzxTableFormExpandDirective], [typeof NzxTableFormComponent, typeof NzxTableFormTdDirective, typeof NzxTableFormThDirective, typeof NzxTableFormExpandDirective]>;
|
|
245
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<NzxTableFormModule>;
|
|
246
|
+
}
|
|
247
|
+
|
|
248
|
+
export { NzxTableFormComponent, NzxTableFormExpandDirective, NzxTableFormModule, NzxTableFormTdDirective, NzxTableFormThDirective };
|
|
249
|
+
export type { NzxLimitMessage, NzxTableFormConfig, NzxTableFormHeaderConfig, NzxTableFormTdConfig };
|
package/table-select/index.d.ts
CHANGED
|
@@ -1,5 +1,109 @@
|
|
|
1
|
+
import * as i0 from '@angular/core';
|
|
2
|
+
import { TemplateRef, AfterContentInit, EventEmitter, OnChanges, SimpleChanges } from '@angular/core';
|
|
3
|
+
import { ControlValueAccessor } from '@angular/forms';
|
|
4
|
+
import { NzxQueryControlOptions, NzxQueryParams } from 'ng-zorro-antd-extension/configurable-query';
|
|
5
|
+
import { NzxTableQueryParams, NzxTableAdaptor } from 'ng-zorro-antd-extension/table-adaptor';
|
|
6
|
+
|
|
7
|
+
interface PageTableRequire {
|
|
8
|
+
id: string | number;
|
|
9
|
+
disabled?: boolean;
|
|
10
|
+
[key: string]: any;
|
|
11
|
+
}
|
|
12
|
+
type TableSelectMode = 'single' | 'multiple';
|
|
13
|
+
interface TableSelectConfig<T = any> {
|
|
14
|
+
label: string;
|
|
15
|
+
key: string;
|
|
16
|
+
/** data 一行数据*/
|
|
17
|
+
format?: (data: T) => string | number;
|
|
18
|
+
template?: TemplateRef<unknown>;
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
declare class NzxKeyDirective {
|
|
22
|
+
key: string;
|
|
23
|
+
templateRef: TemplateRef<any>;
|
|
24
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<NzxKeyDirective, never>;
|
|
25
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<NzxKeyDirective, "[nzxTableSelectKey]", ["NzxTableSelectKey"], { "key": { "alias": "nzxTableSelectKey"; "required": false; }; }, {}, never, never, true, never>;
|
|
26
|
+
}
|
|
27
|
+
|
|
1
28
|
/**
|
|
2
|
-
*
|
|
29
|
+
* table选择基类,可以自己实现相关组件
|
|
3
30
|
*/
|
|
4
|
-
|
|
5
|
-
|
|
31
|
+
declare abstract class NzxAbstractTableSelect<T extends PageTableRequire> implements ControlValueAccessor, AfterContentInit {
|
|
32
|
+
controls: Array<NzxQueryControlOptions>;
|
|
33
|
+
checkboxWidth: string;
|
|
34
|
+
/** 唯一标识字段,默认字段为id, 可以使用.分隔层级
|
|
35
|
+
* 比如login对象下的uuid可以使用传入'login.uuid'等同于['login','uuid']*/
|
|
36
|
+
uniqueKey: string | string[];
|
|
37
|
+
nzxBtnSpan: number;
|
|
38
|
+
nzxCollapse: boolean;
|
|
39
|
+
list: T[];
|
|
40
|
+
nzxQueryParamsChange: EventEmitter<NzxTableQueryParams | NzxQueryParams>;
|
|
41
|
+
/**
|
|
42
|
+
* 组件模式,支持多选单选,默认单选
|
|
43
|
+
* - single 单选
|
|
44
|
+
* - multiple 多选
|
|
45
|
+
*/
|
|
46
|
+
mode: TableSelectMode;
|
|
47
|
+
tableConfig: Array<TableSelectConfig<T>>;
|
|
48
|
+
selectedData: T[];
|
|
49
|
+
setOfCheckedId: Set<string | number>;
|
|
50
|
+
checked: boolean;
|
|
51
|
+
indeterminate: boolean;
|
|
52
|
+
private dirs;
|
|
53
|
+
isDisabled: boolean;
|
|
54
|
+
private propagateChange;
|
|
55
|
+
ngAfterContentInit(): void;
|
|
56
|
+
writeValue(obj: any[]): void;
|
|
57
|
+
registerOnChange(fn: any): void;
|
|
58
|
+
registerOnTouched(fn: any): void;
|
|
59
|
+
setDisabledState?(isDisabled: boolean): void;
|
|
60
|
+
updateDisabledState(): void;
|
|
61
|
+
/** 更新选中集合 */
|
|
62
|
+
updateCheckedSet(data: T, checked: boolean): void;
|
|
63
|
+
/*** 全选 */
|
|
64
|
+
onAllChecked(value: boolean): void;
|
|
65
|
+
/*** 刷新checkbox选中状态 */
|
|
66
|
+
refreshCheckedStatus(): void;
|
|
67
|
+
/*** 每条checkbox选中*/
|
|
68
|
+
onItemChecked(data: T, checked: boolean): void;
|
|
69
|
+
getValue(obj: any, keys: string[] | string): any;
|
|
70
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<NzxAbstractTableSelect<any>, never>;
|
|
71
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<NzxAbstractTableSelect<any>, never, never, { "controls": { "alias": "controls"; "required": false; }; "checkboxWidth": { "alias": "checkboxWidth"; "required": false; }; "uniqueKey": { "alias": "uniqueKey"; "required": false; }; "nzxBtnSpan": { "alias": "nzxBtnSpan"; "required": false; }; "nzxCollapse": { "alias": "nzxCollapse"; "required": false; }; "list": { "alias": "list"; "required": false; }; "mode": { "alias": "mode"; "required": false; }; "tableConfig": { "alias": "tableConfig"; "required": false; }; }, { "nzxQueryParamsChange": "nzxQueryParamsChange"; }, ["dirs"], never, true, never>;
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
/**
|
|
75
|
+
* 通用table选择组件,确保list中有唯一标识字段
|
|
76
|
+
* uniqueKey默认为id
|
|
77
|
+
*/
|
|
78
|
+
declare class NzxTableSelectComponent<T extends PageTableRequire> extends NzxAbstractTableSelect<T> implements OnChanges {
|
|
79
|
+
ngOnChanges(changes: SimpleChanges): void;
|
|
80
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<NzxTableSelectComponent<any>, never>;
|
|
81
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<NzxTableSelectComponent<any>, "nzx-table-select", ["NzxTableSelect"], {}, {}, never, never, true, never>;
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
/**
|
|
85
|
+
* 通用table选择组件,支持分页,确保list中有唯一标识字段
|
|
86
|
+
* uniqueKey默认为id
|
|
87
|
+
*
|
|
88
|
+
*/
|
|
89
|
+
declare class NzxPageTableSelectComponent<T extends PageTableRequire> extends NzxAbstractTableSelect<T> implements OnChanges {
|
|
90
|
+
/** loading加载条标志位 */
|
|
91
|
+
loading: boolean;
|
|
92
|
+
/** 分页总条数 */
|
|
93
|
+
nzTotal: number;
|
|
94
|
+
/** 表单指令实例用来刷新重置 */
|
|
95
|
+
nzxTableAdaptorRef: NzxTableAdaptor;
|
|
96
|
+
private cd;
|
|
97
|
+
ngOnChanges(changes: SimpleChanges): void;
|
|
98
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<NzxPageTableSelectComponent<any>, never>;
|
|
99
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<NzxPageTableSelectComponent<any>, "nzx-page-table-select", ["NzxPageTableSelect"], { "loading": { "alias": "loading"; "required": false; }; "nzTotal": { "alias": "nzTotal"; "required": false; }; }, {}, never, never, true, never>;
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
declare class NzxTableSelectModule {
|
|
103
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<NzxTableSelectModule, never>;
|
|
104
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<NzxTableSelectModule, never, [typeof NzxKeyDirective, typeof NzxTableSelectComponent, typeof NzxPageTableSelectComponent], [typeof NzxKeyDirective, typeof NzxTableSelectComponent, typeof NzxPageTableSelectComponent]>;
|
|
105
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<NzxTableSelectModule>;
|
|
106
|
+
}
|
|
107
|
+
|
|
108
|
+
export { NzxAbstractTableSelect, NzxKeyDirective, NzxPageTableSelectComponent, NzxTableSelectComponent, NzxTableSelectModule };
|
|
109
|
+
export type { PageTableRequire, TableSelectConfig, TableSelectMode };
|
package/timer-button/index.d.ts
CHANGED
|
@@ -1,5 +1,29 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
1
|
+
import * as i0 from '@angular/core';
|
|
2
|
+
import { AfterViewInit, OnDestroy, EventEmitter, ElementRef, ChangeDetectorRef } from '@angular/core';
|
|
3
|
+
import { NzxConfigKey } from 'ng-zorro-antd-extension/core/config';
|
|
4
|
+
|
|
5
|
+
declare class NzxTimerButtonDirective implements AfterViewInit, OnDestroy {
|
|
6
|
+
private elementRef;
|
|
7
|
+
private cd;
|
|
8
|
+
duration: number;
|
|
9
|
+
isCompleted: EventEmitter<boolean>;
|
|
10
|
+
remainingTime: EventEmitter<number>;
|
|
11
|
+
get _disabled(): true;
|
|
12
|
+
private destroy$;
|
|
13
|
+
private disabled;
|
|
14
|
+
readonly _nzModuleName: NzxConfigKey;
|
|
15
|
+
private nzxConfigService;
|
|
16
|
+
constructor(elementRef: ElementRef, cd: ChangeDetectorRef);
|
|
17
|
+
ngAfterViewInit(): void;
|
|
18
|
+
ngOnDestroy(): void;
|
|
19
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<NzxTimerButtonDirective, never>;
|
|
20
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<NzxTimerButtonDirective, "button[nzxTimerButton]", ["NzxTimerButton"], { "duration": { "alias": "duration"; "required": false; }; }, { "isCompleted": "isCompleted"; "remainingTime": "remainingTime"; }, never, never, true, never>;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
declare class NzxTimerButtonModule {
|
|
24
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<NzxTimerButtonModule, never>;
|
|
25
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<NzxTimerButtonModule, never, [typeof NzxTimerButtonDirective], [typeof NzxTimerButtonDirective]>;
|
|
26
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<NzxTimerButtonModule>;
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
export { NzxTimerButtonDirective, NzxTimerButtonModule };
|
package/trim/index.d.ts
CHANGED
|
@@ -1,5 +1,48 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
1
|
+
import * as i0 from '@angular/core';
|
|
2
|
+
import { Renderer2, ElementRef } from '@angular/core';
|
|
3
|
+
import { ControlValueAccessor } from '@angular/forms';
|
|
4
|
+
import { NzxConfigKey } from 'ng-zorro-antd-extension/core/config';
|
|
5
|
+
|
|
6
|
+
declare class NzxTrimDirective implements ControlValueAccessor {
|
|
7
|
+
private _renderer;
|
|
8
|
+
private _elementRef;
|
|
9
|
+
private _compositionMode;
|
|
10
|
+
readonly _nzModuleName: NzxConfigKey;
|
|
11
|
+
private nzxConfigService;
|
|
12
|
+
private _composing;
|
|
13
|
+
onChange: (_: any) => void;
|
|
14
|
+
onTouched: () => void;
|
|
15
|
+
/**
|
|
16
|
+
* - trim 前后过滤空格
|
|
17
|
+
* - trimStart 过滤前空格
|
|
18
|
+
* - trimEnd 过滤后空格
|
|
19
|
+
*/
|
|
20
|
+
trimType: 'trim' | 'trimStart' | 'trimEnd';
|
|
21
|
+
constructor(_renderer: Renderer2, _elementRef: ElementRef, _compositionMode: boolean);
|
|
22
|
+
input(val: string): void;
|
|
23
|
+
compositionstart(val: string): void;
|
|
24
|
+
compositionend(val: any): void;
|
|
25
|
+
blur(val: string): void;
|
|
26
|
+
/** @internal */
|
|
27
|
+
_handleInput(value: any): void;
|
|
28
|
+
/** @internal */
|
|
29
|
+
_compositionStart(): void;
|
|
30
|
+
/** @internal */
|
|
31
|
+
_compositionEnd(value: any): void;
|
|
32
|
+
/** @internal */
|
|
33
|
+
_isAndroid(): boolean;
|
|
34
|
+
writeValue(value: any): void;
|
|
35
|
+
registerOnChange(fn: any): void;
|
|
36
|
+
registerOnTouched(fn: any): void;
|
|
37
|
+
setProperty(key: string, value: any): void;
|
|
38
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<NzxTrimDirective, [null, null, { optional: true; }]>;
|
|
39
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<NzxTrimDirective, "[nzxTrim]", ["NzxTrim"], { "trimType": { "alias": "trimType"; "required": false; }; }, {}, never, never, true, never>;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
declare class NzxTrimModule {
|
|
43
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<NzxTrimModule, never>;
|
|
44
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<NzxTrimModule, never, [typeof NzxTrimDirective], [typeof NzxTrimDirective]>;
|
|
45
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<NzxTrimModule>;
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
export { NzxTrimDirective, NzxTrimModule };
|
package/types/index.d.ts
CHANGED
|
@@ -1,5 +1,10 @@
|
|
|
1
1
|
/**
|
|
2
|
-
*
|
|
2
|
+
* 通用下拉选项
|
|
3
3
|
*/
|
|
4
|
-
|
|
5
|
-
|
|
4
|
+
interface NzxOptions<T = string> {
|
|
5
|
+
label: string;
|
|
6
|
+
value: T;
|
|
7
|
+
[key: string]: any;
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
export type { NzxOptions };
|