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.
- 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 +9 -9
- package/fesm2022/ng-zorro-antd-extension-checkbox.mjs.map +1 -1
- package/fesm2022/ng-zorro-antd-extension-configurable-query.mjs +39 -39
- 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 +53 -53
- package/fesm2022/ng-zorro-antd-extension-dynamic-form.mjs.map +1 -1
- package/fesm2022/ng-zorro-antd-extension-editable.mjs +9 -9
- 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 +18 -18
- package/fesm2022/ng-zorro-antd-extension-print.mjs.map +1 -1
- package/fesm2022/ng-zorro-antd-extension-simple-table.mjs +18 -18
- 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 +19 -19
- package/fesm2022/ng-zorro-antd-extension-table-form.mjs.map +1 -1
- package/fesm2022/ng-zorro-antd-extension-table-select.mjs +20 -20
- 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 +15 -15
- 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/.npmignore +0 -2
- 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/package.json +0 -3
- 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/package.json +0 -3
- 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/package.json +0 -3
- 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/package.json +0 -3
- 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/package.json +0 -3
- 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/package.json +0 -3
- 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/package.json +0 -3
- 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/package.json +0 -3
- 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/package.json +0 -3
- package/jigsaw/public-api.d.ts +0 -6
- package/pipes/map.pipe.d.ts +0 -9
- package/pipes/package.json +0 -3
- 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/package.json +0 -3
- 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/package.json +0 -3
- 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/package.json +0 -3
- 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/package.json +0 -3
- 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/package.json +0 -3
- 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/package.json +0 -3
- 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/package.json +0 -3
- 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/package.json +0 -3
- 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/package.json +0 -3
- package/util/public-api.d.ts +0 -17
- package/wang-editor/package.json +0 -3
- 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/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 };
|
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
|
-
*
|
|
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
|
-
|
|
5
|
-
|
|
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 };
|
package/wang-editor/index.d.ts
CHANGED
|
@@ -1,5 +1,70 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
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 };
|
package/.npmignore
DELETED
|
@@ -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 {};
|
package/acl/nzx-acl.module.d.ts
DELETED
|
@@ -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
|
-
}
|