@ng-nest/ui 18.0.8 → 18.0.10
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/alert/alert.component.d.ts +3 -3
- package/auto-complete/auto-complete-portal.component.d.ts +6 -9
- package/auto-complete/auto-complete.component.d.ts +1 -0
- package/cascade/cascade-portal.component.d.ts +7 -9
- package/cascade/cascade.component.d.ts +1 -9
- package/cascade/cascade.property.d.ts +5 -2
- package/checkbox/checkbox.property.d.ts +10 -98
- package/color-picker/color-picker-portal.component.d.ts +6 -9
- package/core/functions/convert.d.ts +5 -0
- package/core/util/public-api.d.ts +1 -0
- package/core/util/sleep.d.ts +5 -0
- package/date-picker/date-picker-portal.component.d.ts +5 -6
- package/date-picker/date-picker.property.d.ts +1 -31
- package/date-picker/date-range-portal.component.d.ts +5 -6
- package/dialog/dialog.component.d.ts +4 -3
- package/dropdown/dropdown-portal.component.d.ts +5 -7
- package/esm2022/alert/alert.component.mjs +13 -10
- package/esm2022/auto-complete/auto-complete-portal.component.mjs +17 -10
- package/esm2022/auto-complete/auto-complete.component.mjs +7 -4
- package/esm2022/back-top/back-top.component.mjs +4 -2
- package/esm2022/cascade/cascade-portal.component.mjs +20 -11
- package/esm2022/cascade/cascade.component.mjs +5 -3
- package/esm2022/cascade/cascade.property.mjs +2 -2
- package/esm2022/checkbox/checkbox.property.mjs +3 -43
- package/esm2022/color-picker/color-picker-portal.component.mjs +17 -10
- package/esm2022/color-picker/color-picker.component.mjs +3 -3
- package/esm2022/color-picker/color-picker.property.mjs +3 -3
- package/esm2022/core/functions/convert.mjs +15 -1
- package/esm2022/core/util/public-api.mjs +2 -1
- package/esm2022/core/util/sleep.mjs +8 -0
- package/esm2022/date-picker/date-picker-portal.component.mjs +17 -6
- package/esm2022/date-picker/date-picker.component.mjs +3 -3
- package/esm2022/date-picker/date-picker.property.mjs +2 -17
- package/esm2022/date-picker/date-range-portal.component.mjs +17 -6
- package/esm2022/date-picker/date-range.component.mjs +3 -3
- package/esm2022/dialog/dialog.component.mjs +23 -18
- package/esm2022/dropdown/dropdown-portal.component.mjs +17 -8
- package/esm2022/dropdown/dropdown.component.mjs +3 -3
- package/esm2022/find/find.component.mjs +15 -8
- package/esm2022/find/find.property.mjs +7 -57
- package/esm2022/form/form.component.mjs +3 -3
- package/esm2022/form/form.property.mjs +1 -1
- package/esm2022/highlight/highlight.component.mjs +3 -3
- package/esm2022/icon/icon.component.mjs +2 -2
- package/esm2022/image/image.component.mjs +3 -3
- package/esm2022/input/input.component.mjs +3 -3
- package/esm2022/input-number/input-number.component.mjs +3 -3
- package/esm2022/input-number/input-number.property.mjs +3 -23
- package/esm2022/loading/loading.component.mjs +3 -3
- package/esm2022/loading/loading.property.mjs +5 -5
- package/esm2022/radio/radio.property.mjs +3 -53
- package/esm2022/rate/rate.property.mjs +3 -58
- package/esm2022/select/select-portal.component.mjs +17 -10
- package/esm2022/select/select.component.mjs +23 -5
- package/esm2022/select/select.property.mjs +2 -2
- package/esm2022/slider-select/slider-select.property.mjs +3 -58
- package/esm2022/switch/switch.property.mjs +3 -58
- package/esm2022/table/table-body.component.mjs +5 -4
- package/esm2022/table/table.component.mjs +3 -3
- package/esm2022/table/table.property.mjs +14 -4
- package/esm2022/textarea/textarea.property.mjs +3 -38
- package/esm2022/time-picker/time-picker-portal.component.mjs +17 -6
- package/esm2022/time-picker/time-picker.component.mjs +3 -3
- package/esm2022/time-picker/time-picker.property.mjs +3 -3
- package/esm2022/transfer/transfer.component.mjs +3 -3
- package/esm2022/tree/tree-node.component.mjs +10 -2
- package/esm2022/tree/tree.component.mjs +11 -9
- package/esm2022/tree/tree.property.mjs +1 -1
- package/esm2022/tree/tree.service.mjs +28 -4
- package/esm2022/tree-select/tree-select-portal.component.mjs +17 -6
- package/esm2022/tree-select/tree-select.component.mjs +20 -4
- package/fesm2022/ng-nest-ui-alert.mjs +12 -9
- package/fesm2022/ng-nest-ui-alert.mjs.map +1 -1
- package/fesm2022/ng-nest-ui-auto-complete.mjs +21 -11
- package/fesm2022/ng-nest-ui-auto-complete.mjs.map +1 -1
- package/fesm2022/ng-nest-ui-back-top.mjs +3 -1
- package/fesm2022/ng-nest-ui-back-top.mjs.map +1 -1
- package/fesm2022/ng-nest-ui-cascade.mjs +24 -13
- package/fesm2022/ng-nest-ui-cascade.mjs.map +1 -1
- package/fesm2022/ng-nest-ui-checkbox.mjs +2 -42
- package/fesm2022/ng-nest-ui-checkbox.mjs.map +1 -1
- package/fesm2022/ng-nest-ui-color-picker.mjs +20 -13
- package/fesm2022/ng-nest-ui-color-picker.mjs.map +1 -1
- package/fesm2022/ng-nest-ui-core.mjs +23 -1
- package/fesm2022/ng-nest-ui-core.mjs.map +1 -1
- package/fesm2022/ng-nest-ui-date-picker.mjs +36 -29
- package/fesm2022/ng-nest-ui-date-picker.mjs.map +1 -1
- package/fesm2022/ng-nest-ui-dialog.mjs +22 -17
- package/fesm2022/ng-nest-ui-dialog.mjs.map +1 -1
- package/fesm2022/ng-nest-ui-dropdown.mjs +19 -10
- package/fesm2022/ng-nest-ui-dropdown.mjs.map +1 -1
- package/fesm2022/ng-nest-ui-find.mjs +20 -63
- package/fesm2022/ng-nest-ui-find.mjs.map +1 -1
- package/fesm2022/ng-nest-ui-form.mjs +2 -2
- package/fesm2022/ng-nest-ui-form.mjs.map +1 -1
- package/fesm2022/ng-nest-ui-highlight.mjs +2 -2
- package/fesm2022/ng-nest-ui-highlight.mjs.map +1 -1
- package/fesm2022/ng-nest-ui-icon.mjs +1 -1
- package/fesm2022/ng-nest-ui-icon.mjs.map +1 -1
- package/fesm2022/ng-nest-ui-image.mjs +2 -2
- package/fesm2022/ng-nest-ui-image.mjs.map +1 -1
- package/fesm2022/ng-nest-ui-input-number.mjs +4 -24
- package/fesm2022/ng-nest-ui-input-number.mjs.map +1 -1
- package/fesm2022/ng-nest-ui-input.mjs +2 -2
- package/fesm2022/ng-nest-ui-input.mjs.map +1 -1
- package/fesm2022/ng-nest-ui-loading.mjs +6 -6
- package/fesm2022/ng-nest-ui-loading.mjs.map +1 -1
- package/fesm2022/ng-nest-ui-radio.mjs +2 -52
- package/fesm2022/ng-nest-ui-radio.mjs.map +1 -1
- package/fesm2022/ng-nest-ui-rate.mjs +2 -57
- package/fesm2022/ng-nest-ui-rate.mjs.map +1 -1
- package/fesm2022/ng-nest-ui-select.mjs +39 -14
- package/fesm2022/ng-nest-ui-select.mjs.map +1 -1
- package/fesm2022/ng-nest-ui-slider-select.mjs +2 -57
- package/fesm2022/ng-nest-ui-slider-select.mjs.map +1 -1
- package/fesm2022/ng-nest-ui-switch.mjs +2 -57
- package/fesm2022/ng-nest-ui-switch.mjs.map +1 -1
- package/fesm2022/ng-nest-ui-table.mjs +19 -8
- package/fesm2022/ng-nest-ui-table.mjs.map +1 -1
- package/fesm2022/ng-nest-ui-textarea.mjs +2 -37
- package/fesm2022/ng-nest-ui-textarea.mjs.map +1 -1
- package/fesm2022/ng-nest-ui-time-picker.mjs +20 -9
- package/fesm2022/ng-nest-ui-time-picker.mjs.map +1 -1
- package/fesm2022/ng-nest-ui-transfer.mjs +2 -2
- package/fesm2022/ng-nest-ui-transfer.mjs.map +1 -1
- package/fesm2022/ng-nest-ui-tree-select.mjs +35 -8
- package/fesm2022/ng-nest-ui-tree-select.mjs.map +1 -1
- package/fesm2022/ng-nest-ui-tree.mjs +46 -12
- package/fesm2022/ng-nest-ui-tree.mjs.map +1 -1
- package/find/find.component.d.ts +2 -0
- package/find/find.property.d.ts +20 -97
- package/form/form.property.d.ts +13 -6
- package/input-number/input-number.property.d.ts +4 -56
- package/loading/loading.property.d.ts +4 -4
- package/package.json +124 -124
- package/radio/radio.property.d.ts +10 -118
- package/rate/rate.property.d.ts +16 -121
- package/select/select-portal.component.d.ts +6 -9
- package/select/select.component.d.ts +5 -1
- package/slider-select/slider-select.property.d.ts +6 -113
- package/switch/switch.property.d.ts +2 -117
- package/table/table-body.component.d.ts +1 -1
- package/table/table.property.d.ts +13 -3
- package/textarea/textarea.property.d.ts +10 -45
- package/time-picker/time-picker-portal.component.d.ts +5 -6
- package/time-picker/time-picker.property.d.ts +1 -2
- package/tree/tree.component.d.ts +2 -3
- package/tree/tree.property.d.ts +1 -1
- package/tree/tree.service.d.ts +1 -1
- package/tree-select/tree-select-portal.component.d.ts +5 -6
- package/tree-select/tree-select.component.d.ts +7 -4
|
@@ -1,7 +1,6 @@
|
|
|
1
|
-
import { TemplateRef } from '@angular/core';
|
|
2
1
|
import { XButtonType } from '@ng-nest/ui/button';
|
|
3
2
|
import { XFormOption } from '@ng-nest/ui/base-form';
|
|
4
|
-
import type { XData, XIdentityProperty,
|
|
3
|
+
import type { XData, XIdentityProperty, XBoolean, XTemplate, XDirection, XAlign, XJustify, XNumber } from '@ng-nest/ui/core';
|
|
5
4
|
import * as i0 from "@angular/core";
|
|
6
5
|
/**
|
|
7
6
|
* Radio
|
|
@@ -16,16 +15,9 @@ declare const XRadioProperty_base: new () => {
|
|
|
16
15
|
invalidPattern: import("@angular/core").Signal<boolean>;
|
|
17
16
|
requiredIsEmpty: import("@angular/core").Signal<boolean>;
|
|
18
17
|
invalidMessage: import("@angular/core").Signal<string>;
|
|
19
|
-
invalidIndex: import("@angular/core").WritableSignal<number>;
|
|
20
|
-
* @zh_CN 图标样式
|
|
21
|
-
* @en_US Icon style
|
|
22
|
-
*/
|
|
18
|
+
invalidIndex: import("@angular/core").WritableSignal<number>;
|
|
23
19
|
value: import("@angular/core").WritableSignal<any>;
|
|
24
20
|
validatorSignal: import("@angular/core").WritableSignal<boolean>;
|
|
25
|
-
/**
|
|
26
|
-
* @zh_CN tag 标签样式
|
|
27
|
-
* @en_US Tag style
|
|
28
|
-
*/
|
|
29
21
|
disabledSignal: import("@angular/core").WritableSignal<boolean>;
|
|
30
22
|
requiredSignal: import("@angular/core").WritableSignal<boolean>;
|
|
31
23
|
patternSignal: import("@angular/core").WritableSignal<any>;
|
|
@@ -40,10 +32,7 @@ declare const XRadioProperty_base: new () => {
|
|
|
40
32
|
onTouched: () => void;
|
|
41
33
|
writeValue(value: any): void;
|
|
42
34
|
registerOnChange(fn: (value: any) => void): void;
|
|
43
|
-
registerOnTouched(fn: () => void): void;
|
|
44
|
-
* @zh_CN 尺寸
|
|
45
|
-
* @en_US Size
|
|
46
|
-
*/
|
|
35
|
+
registerOnTouched(fn: () => void): void;
|
|
47
36
|
setDisabledState(disabled: boolean): void;
|
|
48
37
|
formControlValidator(): void;
|
|
49
38
|
readonly validator: import("@angular/core").InputSignalWithTransform<boolean, XBoolean>;
|
|
@@ -51,14 +40,17 @@ declare const XRadioProperty_base: new () => {
|
|
|
51
40
|
readonly labelWidth: import("@angular/core").InputSignalWithTransform<string, XNumber>;
|
|
52
41
|
readonly labelAlign: import("@angular/core").InputSignal<XAlign>;
|
|
53
42
|
readonly justify: import("@angular/core").InputSignal<XJustify>;
|
|
54
|
-
readonly align: import("@angular/core").InputSignal<XAlign>;
|
|
43
|
+
readonly align: import("@angular/core").InputSignal<XAlign>; /**
|
|
44
|
+
* @zh_CN flex 布局下的子元素排列方向
|
|
45
|
+
* @en_US The direction of the sub-element arrangement under flex layout
|
|
46
|
+
*/
|
|
55
47
|
readonly direction: import("@angular/core").InputSignal<XDirection>;
|
|
56
|
-
readonly size: import("@angular/core").InputSignal<XSize>;
|
|
48
|
+
readonly size: import("@angular/core").InputSignal<import("@ng-nest/ui/core").XSize>;
|
|
57
49
|
readonly placeholder: import("@angular/core").InputSignal<string | string[]>;
|
|
58
50
|
readonly disabled: import("@angular/core").InputSignalWithTransform<boolean, XBoolean>;
|
|
59
51
|
readonly required: import("@angular/core").InputSignalWithTransform<boolean, XBoolean>;
|
|
60
52
|
readonly readonly: import("@angular/core").InputSignalWithTransform<boolean, XBoolean>;
|
|
61
|
-
readonly valueTpl: import("@angular/core").InputSignal<TemplateRef<any> | undefined>;
|
|
53
|
+
readonly valueTpl: import("@angular/core").InputSignal<import("@angular/core").TemplateRef<any> | undefined>;
|
|
62
54
|
readonly valueTplContext: import("@angular/core").InputSignal<unknown>;
|
|
63
55
|
readonly before: import("@angular/core").InputSignal<XTemplate | undefined>;
|
|
64
56
|
readonly after: import("@angular/core").InputSignal<XTemplate | undefined>;
|
|
@@ -117,16 +109,6 @@ export declare class XRadioProperty extends XRadioProperty_base {
|
|
|
117
109
|
* @en_US Vertical layout, does not support button and icon styles
|
|
118
110
|
*/
|
|
119
111
|
readonly vertical: import("@angular/core").InputSignalWithTransform<boolean, XBoolean>;
|
|
120
|
-
/**
|
|
121
|
-
* @zh_CN 尺寸
|
|
122
|
-
* @en_US Size
|
|
123
|
-
*/
|
|
124
|
-
readonly size: import("@angular/core").InputSignal<XSize>;
|
|
125
|
-
/**
|
|
126
|
-
* @zh_CN 输入框点击样式
|
|
127
|
-
* @en_US Input pointer
|
|
128
|
-
*/
|
|
129
|
-
readonly pointer: import("@angular/core").InputSignalWithTransform<boolean, XBoolean>;
|
|
130
112
|
/**
|
|
131
113
|
* @zh_CN 标签
|
|
132
114
|
* @en_US Label
|
|
@@ -157,11 +139,6 @@ export declare class XRadioProperty extends XRadioProperty_base {
|
|
|
157
139
|
* @en_US The direction of the sub-element arrangement under flex layout
|
|
158
140
|
*/
|
|
159
141
|
readonly direction: import("@angular/core").InputSignal<XDirection>;
|
|
160
|
-
/**
|
|
161
|
-
* @zh_CN 输入提示信息
|
|
162
|
-
* @en_US Enter prompt information
|
|
163
|
-
*/
|
|
164
|
-
readonly placeholder: import("@angular/core").InputSignal<string | string[]>;
|
|
165
142
|
/**
|
|
166
143
|
* @zh_CN 禁用
|
|
167
144
|
* @en_US Disabled
|
|
@@ -172,21 +149,6 @@ export declare class XRadioProperty extends XRadioProperty_base {
|
|
|
172
149
|
* @en_US Required
|
|
173
150
|
*/
|
|
174
151
|
readonly required: import("@angular/core").InputSignalWithTransform<boolean, XBoolean>;
|
|
175
|
-
/**
|
|
176
|
-
* @zh_CN 只读
|
|
177
|
-
* @en_US Readonly
|
|
178
|
-
*/
|
|
179
|
-
readonly readonly: import("@angular/core").InputSignalWithTransform<boolean, XBoolean>;
|
|
180
|
-
/**
|
|
181
|
-
* @zh_CN 值模板
|
|
182
|
-
* @en_US Node template
|
|
183
|
-
*/
|
|
184
|
-
readonly valueTpl: import("@angular/core").InputSignal<TemplateRef<any> | undefined>;
|
|
185
|
-
/**
|
|
186
|
-
* @zh_CN 值模板参数
|
|
187
|
-
* @en_US Node template
|
|
188
|
-
*/
|
|
189
|
-
readonly valueTplContext: import("@angular/core").InputSignal<unknown>;
|
|
190
152
|
/**
|
|
191
153
|
* @zh_CN 前置标签
|
|
192
154
|
* @en_US Before label
|
|
@@ -197,28 +159,8 @@ export declare class XRadioProperty extends XRadioProperty_base {
|
|
|
197
159
|
* @en_US After label
|
|
198
160
|
*/
|
|
199
161
|
readonly after: import("@angular/core").InputSignal<XTemplate | undefined>;
|
|
200
|
-
/**
|
|
201
|
-
* @zh_CN 正则验证规则
|
|
202
|
-
* @en_US Regular verification rules
|
|
203
|
-
*/
|
|
204
|
-
readonly pattern: import("@angular/core").InputSignal<any>;
|
|
205
|
-
/**
|
|
206
|
-
* @zh_CN 验证不通过提示文字
|
|
207
|
-
* @en_US Verify not pass the prompt text
|
|
208
|
-
*/
|
|
209
|
-
readonly message: import("@angular/core").InputSignal<string | string[]>;
|
|
210
|
-
/**
|
|
211
|
-
* @zh_CN 激活状态
|
|
212
|
-
* @en_US Activation state
|
|
213
|
-
*/
|
|
214
|
-
readonly active: import("@angular/core").ModelSignal<boolean>;
|
|
215
|
-
/**
|
|
216
|
-
* @zh_CN 输入验证函数
|
|
217
|
-
* @en_US Enter the verification function
|
|
218
|
-
*/
|
|
219
|
-
readonly inputValidator: import("@angular/core").InputSignal<((value: any) => boolean) | undefined>;
|
|
220
162
|
static ɵfac: i0.ɵɵFactoryDeclaration<XRadioProperty, never>;
|
|
221
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<XRadioProperty, "x-radio-property", never, { "data": { "alias": "data"; "required": false; "isSignal": true; }; "button": { "alias": "button"; "required": false; "isSignal": true; }; "icon": { "alias": "icon"; "required": false; "isSignal": true; }; "tag": { "alias": "tag"; "required": false; "isSignal": true; }; "type": { "alias": "type"; "required": false; "isSignal": true; }; "tagBordered": { "alias": "tagBordered"; "required": false; "isSignal": true; }; "tagDark": { "alias": "tagDark"; "required": false; "isSignal": true; }; "allowCancel": { "alias": "allowCancel"; "required": false; "isSignal": true; }; "vertical": { "alias": "vertical"; "required": false; "isSignal": true; }; "
|
|
163
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<XRadioProperty, "x-radio-property", never, { "data": { "alias": "data"; "required": false; "isSignal": true; }; "button": { "alias": "button"; "required": false; "isSignal": true; }; "icon": { "alias": "icon"; "required": false; "isSignal": true; }; "tag": { "alias": "tag"; "required": false; "isSignal": true; }; "type": { "alias": "type"; "required": false; "isSignal": true; }; "tagBordered": { "alias": "tagBordered"; "required": false; "isSignal": true; }; "tagDark": { "alias": "tagDark"; "required": false; "isSignal": true; }; "allowCancel": { "alias": "allowCancel"; "required": false; "isSignal": true; }; "vertical": { "alias": "vertical"; "required": false; "isSignal": true; }; "label": { "alias": "label"; "required": false; "isSignal": true; }; "labelWidth": { "alias": "labelWidth"; "required": false; "isSignal": true; }; "labelAlign": { "alias": "labelAlign"; "required": false; "isSignal": true; }; "justify": { "alias": "justify"; "required": false; "isSignal": true; }; "align": { "alias": "align"; "required": false; "isSignal": true; }; "direction": { "alias": "direction"; "required": false; "isSignal": true; }; "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; "required": { "alias": "required"; "required": false; "isSignal": true; }; "before": { "alias": "before"; "required": false; "isSignal": true; }; "after": { "alias": "after"; "required": false; "isSignal": true; }; }, {}, never, never, false, never>;
|
|
222
164
|
}
|
|
223
165
|
/**
|
|
224
166
|
* Radio Option
|
|
@@ -269,16 +211,6 @@ export interface XRadioOption extends XFormOption {
|
|
|
269
211
|
* @en_US Vertical layout, does not support button and icon styles
|
|
270
212
|
*/
|
|
271
213
|
vertical?: boolean;
|
|
272
|
-
/**
|
|
273
|
-
* @zh_CN 尺寸
|
|
274
|
-
* @en_US Size
|
|
275
|
-
*/
|
|
276
|
-
size?: XSize;
|
|
277
|
-
/**
|
|
278
|
-
* @zh_CN 输入框点击样式
|
|
279
|
-
* @en_US Input pointer
|
|
280
|
-
*/
|
|
281
|
-
pointer?: boolean;
|
|
282
214
|
/**
|
|
283
215
|
* @zh_CN 标签
|
|
284
216
|
* @en_US Label
|
|
@@ -309,11 +241,6 @@ export interface XRadioOption extends XFormOption {
|
|
|
309
241
|
* @en_US The direction of the sub-element arrangement under flex layout
|
|
310
242
|
*/
|
|
311
243
|
direction?: XDirection;
|
|
312
|
-
/**
|
|
313
|
-
* @zh_CN 输入提示信息
|
|
314
|
-
* @en_US Enter prompt information
|
|
315
|
-
*/
|
|
316
|
-
placeholder?: string;
|
|
317
244
|
/**
|
|
318
245
|
* @zh_CN 禁用
|
|
319
246
|
* @en_US Disabled
|
|
@@ -324,21 +251,6 @@ export interface XRadioOption extends XFormOption {
|
|
|
324
251
|
* @en_US Required
|
|
325
252
|
*/
|
|
326
253
|
required?: boolean;
|
|
327
|
-
/**
|
|
328
|
-
* @zh_CN 只读
|
|
329
|
-
* @en_US Readonly
|
|
330
|
-
*/
|
|
331
|
-
readonly?: boolean;
|
|
332
|
-
/**
|
|
333
|
-
* @zh_CN 值模板
|
|
334
|
-
* @en_US Node template
|
|
335
|
-
*/
|
|
336
|
-
valueTpl?: TemplateRef<any>;
|
|
337
|
-
/**
|
|
338
|
-
* @zh_CN 值模板参数
|
|
339
|
-
* @en_US Node template
|
|
340
|
-
*/
|
|
341
|
-
valueTplContext?: any;
|
|
342
254
|
/**
|
|
343
255
|
* @zh_CN 前置标签
|
|
344
256
|
* @en_US Before label
|
|
@@ -349,26 +261,6 @@ export interface XRadioOption extends XFormOption {
|
|
|
349
261
|
* @en_US After label
|
|
350
262
|
*/
|
|
351
263
|
after?: XTemplate;
|
|
352
|
-
/**
|
|
353
|
-
* @zh_CN 正则验证规则
|
|
354
|
-
* @en_US Regular verification rules
|
|
355
|
-
*/
|
|
356
|
-
pattern?: RegExp | RegExp[];
|
|
357
|
-
/**
|
|
358
|
-
* @zh_CN 验证不通过提示文字
|
|
359
|
-
* @en_US Verify not pass the prompt text
|
|
360
|
-
*/
|
|
361
|
-
message?: string | string[];
|
|
362
|
-
/**
|
|
363
|
-
* @zh_CN 激活状态
|
|
364
|
-
* @en_US Activation state
|
|
365
|
-
*/
|
|
366
|
-
active?: boolean;
|
|
367
|
-
/**
|
|
368
|
-
* @zh_CN 输入验证函数
|
|
369
|
-
* @en_US Enter the verification function
|
|
370
|
-
*/
|
|
371
|
-
inputValidator?: (value: any) => boolean;
|
|
372
264
|
}
|
|
373
265
|
/**
|
|
374
266
|
* @zh_CN Radio 数据对象
|
package/rate/rate.property.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { TemplateRef } from '@angular/core';
|
|
2
2
|
import { XFormOption } from '@ng-nest/ui/base-form';
|
|
3
|
-
import type { XNumber, XBoolean,
|
|
3
|
+
import type { XNumber, XBoolean, XDirection, XAlign, XJustify } from '@ng-nest/ui/core';
|
|
4
4
|
import * as i0 from "@angular/core";
|
|
5
5
|
/**
|
|
6
6
|
* Rate
|
|
@@ -9,10 +9,7 @@ import * as i0 from "@angular/core";
|
|
|
9
9
|
*/
|
|
10
10
|
export declare const XRatePrefix = "x-rate";
|
|
11
11
|
declare const XRateProperty_base: new () => {
|
|
12
|
-
config: import("@ng-nest/ui/core").XRateConfig | undefined;
|
|
13
|
-
* @zh_CN 评分个数
|
|
14
|
-
* @en_US Number of ratings
|
|
15
|
-
*/
|
|
12
|
+
config: import("@ng-nest/ui/core").XRateConfig | undefined;
|
|
16
13
|
cdr: import("@angular/core").ChangeDetectorRef;
|
|
17
14
|
invalid: import("@angular/core").Signal<boolean>;
|
|
18
15
|
invalidPattern: import("@angular/core").Signal<boolean>;
|
|
@@ -20,7 +17,10 @@ declare const XRateProperty_base: new () => {
|
|
|
20
17
|
invalidMessage: import("@angular/core").Signal<string>;
|
|
21
18
|
invalidIndex: import("@angular/core").WritableSignal<number>;
|
|
22
19
|
value: import("@angular/core").WritableSignal<any>;
|
|
23
|
-
validatorSignal: import("@angular/core").WritableSignal<boolean>;
|
|
20
|
+
validatorSignal: import("@angular/core").WritableSignal<boolean>; /**
|
|
21
|
+
* @zh_CN 标签
|
|
22
|
+
* @en_US Label
|
|
23
|
+
*/
|
|
24
24
|
disabledSignal: import("@angular/core").WritableSignal<boolean>;
|
|
25
25
|
requiredSignal: import("@angular/core").WritableSignal<boolean>;
|
|
26
26
|
patternSignal: import("@angular/core").WritableSignal<any>;
|
|
@@ -28,7 +28,10 @@ declare const XRateProperty_base: new () => {
|
|
|
28
28
|
requiredComputed: import("@angular/core").Signal<boolean>;
|
|
29
29
|
disabledComputed: import("@angular/core").Signal<boolean>;
|
|
30
30
|
validatorComputed: import("@angular/core").Signal<boolean>;
|
|
31
|
-
patternComputed: import("@angular/core").Signal<any>;
|
|
31
|
+
patternComputed: import("@angular/core").Signal<any>; /**
|
|
32
|
+
* @zh_CN flex 布局下的子元素垂直排列方式
|
|
33
|
+
* @en_US sub-element vertical arrangement method under flex layout
|
|
34
|
+
*/
|
|
32
35
|
messageComputed: import("@angular/core").Signal<string | string[]>;
|
|
33
36
|
invalidInputValidator: import("@angular/core").WritableSignal<boolean>;
|
|
34
37
|
onChange: (value: any) => void;
|
|
@@ -40,7 +43,9 @@ declare const XRateProperty_base: new () => {
|
|
|
40
43
|
formControlValidator(): void;
|
|
41
44
|
readonly validator: import("@angular/core").InputSignalWithTransform<boolean, XBoolean>;
|
|
42
45
|
readonly label: import("@angular/core").InputSignal<string>;
|
|
43
|
-
readonly labelWidth: import("@angular/core").InputSignalWithTransform<string, XNumber>;
|
|
46
|
+
readonly labelWidth: import("@angular/core").InputSignalWithTransform<string, XNumber>; /**
|
|
47
|
+
* Rate Option
|
|
48
|
+
*/
|
|
44
49
|
readonly labelAlign: import("@angular/core").InputSignal<XAlign>;
|
|
45
50
|
readonly justify: import("@angular/core").InputSignal<XJustify>;
|
|
46
51
|
readonly align: import("@angular/core").InputSignal<XAlign>;
|
|
@@ -52,8 +57,8 @@ declare const XRateProperty_base: new () => {
|
|
|
52
57
|
readonly readonly: import("@angular/core").InputSignalWithTransform<boolean, XBoolean>;
|
|
53
58
|
readonly valueTpl: import("@angular/core").InputSignal<TemplateRef<any> | undefined>;
|
|
54
59
|
readonly valueTplContext: import("@angular/core").InputSignal<unknown>;
|
|
55
|
-
readonly before: import("@angular/core").InputSignal<XTemplate | undefined>;
|
|
56
|
-
readonly after: import("@angular/core").InputSignal<XTemplate | undefined>;
|
|
60
|
+
readonly before: import("@angular/core").InputSignal<import("@ng-nest/ui/core").XTemplate | undefined>;
|
|
61
|
+
readonly after: import("@angular/core").InputSignal<import("@ng-nest/ui/core").XTemplate | undefined>;
|
|
57
62
|
readonly pattern: import("@angular/core").InputSignal<RegExp | RegExp[]>;
|
|
58
63
|
readonly message: import("@angular/core").InputSignal<string | string[]>;
|
|
59
64
|
readonly active: import("@angular/core").ModelSignal<boolean>;
|
|
@@ -84,11 +89,6 @@ export declare class XRateProperty extends XRateProperty_base {
|
|
|
84
89
|
* @en_US Custom template
|
|
85
90
|
*/
|
|
86
91
|
readonly customTemp: import("@angular/core").InputSignal<TemplateRef<any> | undefined>;
|
|
87
|
-
/**
|
|
88
|
-
* @zh_CN 输入框点击样式
|
|
89
|
-
* @en_US Input pointer
|
|
90
|
-
*/
|
|
91
|
-
readonly pointer: import("@angular/core").InputSignalWithTransform<boolean, XBoolean>;
|
|
92
92
|
/**
|
|
93
93
|
* @zh_CN 标签
|
|
94
94
|
* @en_US Label
|
|
@@ -119,11 +119,6 @@ export declare class XRateProperty extends XRateProperty_base {
|
|
|
119
119
|
* @en_US The direction of the sub-element arrangement under flex layout
|
|
120
120
|
*/
|
|
121
121
|
readonly direction: import("@angular/core").InputSignal<XDirection>;
|
|
122
|
-
/**
|
|
123
|
-
* @zh_CN 输入提示信息
|
|
124
|
-
* @en_US Enter prompt information
|
|
125
|
-
*/
|
|
126
|
-
readonly placeholder: import("@angular/core").InputSignal<string | string[]>;
|
|
127
122
|
/**
|
|
128
123
|
* @zh_CN 禁用
|
|
129
124
|
* @en_US Disabled
|
|
@@ -134,53 +129,8 @@ export declare class XRateProperty extends XRateProperty_base {
|
|
|
134
129
|
* @en_US Required
|
|
135
130
|
*/
|
|
136
131
|
readonly required: import("@angular/core").InputSignalWithTransform<boolean, XBoolean>;
|
|
137
|
-
/**
|
|
138
|
-
* @zh_CN 只读
|
|
139
|
-
* @en_US Readonly
|
|
140
|
-
*/
|
|
141
|
-
readonly readonly: import("@angular/core").InputSignalWithTransform<boolean, XBoolean>;
|
|
142
|
-
/**
|
|
143
|
-
* @zh_CN 值模板
|
|
144
|
-
* @en_US Node template
|
|
145
|
-
*/
|
|
146
|
-
readonly valueTpl: import("@angular/core").InputSignal<TemplateRef<any> | undefined>;
|
|
147
|
-
/**
|
|
148
|
-
* @zh_CN 值模板参数
|
|
149
|
-
* @en_US Node template
|
|
150
|
-
*/
|
|
151
|
-
readonly valueTplContext: import("@angular/core").InputSignal<unknown>;
|
|
152
|
-
/**
|
|
153
|
-
* @zh_CN 前置标签
|
|
154
|
-
* @en_US Before label
|
|
155
|
-
*/
|
|
156
|
-
readonly before: import("@angular/core").InputSignal<XTemplate | undefined>;
|
|
157
|
-
/**
|
|
158
|
-
* @zh_CN 后置标签
|
|
159
|
-
* @en_US After label
|
|
160
|
-
*/
|
|
161
|
-
readonly after: import("@angular/core").InputSignal<XTemplate | undefined>;
|
|
162
|
-
/**
|
|
163
|
-
* @zh_CN 正则验证规则
|
|
164
|
-
* @en_US Regular verification rules
|
|
165
|
-
*/
|
|
166
|
-
readonly pattern: import("@angular/core").InputSignal<any>;
|
|
167
|
-
/**
|
|
168
|
-
* @zh_CN 验证不通过提示文字
|
|
169
|
-
* @en_US Verify not pass the prompt text
|
|
170
|
-
*/
|
|
171
|
-
readonly message: import("@angular/core").InputSignal<string | string[]>;
|
|
172
|
-
/**
|
|
173
|
-
* @zh_CN 激活状态
|
|
174
|
-
* @en_US Activation state
|
|
175
|
-
*/
|
|
176
|
-
readonly active: import("@angular/core").ModelSignal<boolean>;
|
|
177
|
-
/**
|
|
178
|
-
* @zh_CN 输入验证函数
|
|
179
|
-
* @en_US Enter the verification function
|
|
180
|
-
*/
|
|
181
|
-
readonly inputValidator: import("@angular/core").InputSignal<((value: any) => boolean) | undefined>;
|
|
182
132
|
static ɵfac: i0.ɵɵFactoryDeclaration<XRateProperty, never>;
|
|
183
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<XRateProperty, "x-rate-property", never, { "count": { "alias": "count"; "required": false; "isSignal": true; }; "half": { "alias": "half"; "required": false; "isSignal": true; }; "color": { "alias": "color"; "required": false; "isSignal": true; }; "customTemp": { "alias": "customTemp"; "required": false; "isSignal": true; }; "
|
|
133
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<XRateProperty, "x-rate-property", never, { "count": { "alias": "count"; "required": false; "isSignal": true; }; "half": { "alias": "half"; "required": false; "isSignal": true; }; "color": { "alias": "color"; "required": false; "isSignal": true; }; "customTemp": { "alias": "customTemp"; "required": false; "isSignal": true; }; "label": { "alias": "label"; "required": false; "isSignal": true; }; "labelWidth": { "alias": "labelWidth"; "required": false; "isSignal": true; }; "labelAlign": { "alias": "labelAlign"; "required": false; "isSignal": true; }; "justify": { "alias": "justify"; "required": false; "isSignal": true; }; "align": { "alias": "align"; "required": false; "isSignal": true; }; "direction": { "alias": "direction"; "required": false; "isSignal": true; }; "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; "required": { "alias": "required"; "required": false; "isSignal": true; }; }, {}, never, never, false, never>;
|
|
184
134
|
}
|
|
185
135
|
/**
|
|
186
136
|
* @zh_CN 颜色类型
|
|
@@ -213,11 +163,6 @@ export interface XRateOption extends XFormOption {
|
|
|
213
163
|
* @en_US Custom template
|
|
214
164
|
*/
|
|
215
165
|
customTemp?: TemplateRef<any>;
|
|
216
|
-
/**
|
|
217
|
-
* @zh_CN 输入框点击样式
|
|
218
|
-
* @en_US Input pointer
|
|
219
|
-
*/
|
|
220
|
-
pointer?: boolean;
|
|
221
166
|
/**
|
|
222
167
|
* @zh_CN 标签
|
|
223
168
|
* @en_US Label
|
|
@@ -248,11 +193,6 @@ export interface XRateOption extends XFormOption {
|
|
|
248
193
|
* @en_US The direction of the sub-element arrangement under flex layout
|
|
249
194
|
*/
|
|
250
195
|
direction?: XDirection;
|
|
251
|
-
/**
|
|
252
|
-
* @zh_CN 输入提示信息
|
|
253
|
-
* @en_US Enter prompt information
|
|
254
|
-
*/
|
|
255
|
-
placeholder?: string;
|
|
256
196
|
/**
|
|
257
197
|
* @zh_CN 禁用
|
|
258
198
|
* @en_US Disabled
|
|
@@ -263,50 +203,5 @@ export interface XRateOption extends XFormOption {
|
|
|
263
203
|
* @en_US Required
|
|
264
204
|
*/
|
|
265
205
|
required?: boolean;
|
|
266
|
-
/**
|
|
267
|
-
* @zh_CN 只读
|
|
268
|
-
* @en_US Readonly
|
|
269
|
-
*/
|
|
270
|
-
readonly?: boolean;
|
|
271
|
-
/**
|
|
272
|
-
* @zh_CN 值模板
|
|
273
|
-
* @en_US Node template
|
|
274
|
-
*/
|
|
275
|
-
valueTpl?: TemplateRef<any>;
|
|
276
|
-
/**
|
|
277
|
-
* @zh_CN 值模板参数
|
|
278
|
-
* @en_US Node template
|
|
279
|
-
*/
|
|
280
|
-
valueTplContext?: any;
|
|
281
|
-
/**
|
|
282
|
-
* @zh_CN 前置标签
|
|
283
|
-
* @en_US Before label
|
|
284
|
-
*/
|
|
285
|
-
before?: XTemplate;
|
|
286
|
-
/**
|
|
287
|
-
* @zh_CN 后置标签
|
|
288
|
-
* @en_US After label
|
|
289
|
-
*/
|
|
290
|
-
after?: XTemplate;
|
|
291
|
-
/**
|
|
292
|
-
* @zh_CN 正则验证规则
|
|
293
|
-
* @en_US Regular verification rules
|
|
294
|
-
*/
|
|
295
|
-
pattern?: RegExp | RegExp[];
|
|
296
|
-
/**
|
|
297
|
-
* @zh_CN 验证不通过提示文字
|
|
298
|
-
* @en_US Verify not pass the prompt text
|
|
299
|
-
*/
|
|
300
|
-
message?: string | string[];
|
|
301
|
-
/**
|
|
302
|
-
* @zh_CN 激活状态
|
|
303
|
-
* @en_US Activation state
|
|
304
|
-
*/
|
|
305
|
-
active?: boolean;
|
|
306
|
-
/**
|
|
307
|
-
* @zh_CN 输入验证函数
|
|
308
|
-
* @en_US Enter the verification function
|
|
309
|
-
*/
|
|
310
|
-
inputValidator?: (value: any) => boolean;
|
|
311
206
|
}
|
|
312
207
|
export {};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { OnInit,
|
|
1
|
+
import { OnInit, TemplateRef } from '@angular/core';
|
|
2
2
|
import { XSelectNode } from './select.property';
|
|
3
3
|
import { Subject } from 'rxjs';
|
|
4
4
|
import { XPlacement, XSize } from '@ng-nest/ui/core';
|
|
@@ -6,15 +6,13 @@ import { XListComponent } from '@ng-nest/ui/list';
|
|
|
6
6
|
import { XInputComponent } from '@ng-nest/ui/input';
|
|
7
7
|
import { XI18nSelect } from '@ng-nest/ui/i18n';
|
|
8
8
|
import * as i0 from "@angular/core";
|
|
9
|
-
export declare class XSelectPortalComponent implements OnInit
|
|
9
|
+
export declare class XSelectPortalComponent implements OnInit {
|
|
10
10
|
get getPlacement(): XPlacement;
|
|
11
|
-
done(
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
start(event: {
|
|
15
|
-
toState: any;
|
|
16
|
-
}): void;
|
|
11
|
+
done(): void;
|
|
12
|
+
start(): void;
|
|
13
|
+
destroy: import("@angular/core").WritableSignal<boolean>;
|
|
17
14
|
private unSubject;
|
|
15
|
+
private destroyRef;
|
|
18
16
|
private i18n;
|
|
19
17
|
list: import("@angular/core").Signal<XListComponent>;
|
|
20
18
|
value: import("@angular/core").ModelSignal<any>;
|
|
@@ -46,7 +44,6 @@ export declare class XSelectPortalComponent implements OnInit, OnDestroy {
|
|
|
46
44
|
}>;
|
|
47
45
|
getSelectAllText: import("@angular/core").Signal<string | undefined>;
|
|
48
46
|
ngOnInit(): void;
|
|
49
|
-
ngOnDestroy(): void;
|
|
50
47
|
stopPropagation(event: Event): void;
|
|
51
48
|
onNodeClick(node: XSelectNode): void;
|
|
52
49
|
onSelectAll(_isSelectAll: boolean): void;
|
|
@@ -21,6 +21,9 @@ export declare class XSelectComponent extends XSelectProperty implements OnInit,
|
|
|
21
21
|
select: import("@angular/core").Signal<ElementRef<HTMLElement>>;
|
|
22
22
|
multipleValueTpl: import("@angular/core").Signal<TemplateRef<void>>;
|
|
23
23
|
multipleInput: import("@angular/core").Signal<XInputComponent | undefined>;
|
|
24
|
+
searchInput: import("@angular/core").Signal<XInputComponent | undefined>;
|
|
25
|
+
valueTemplate: import("@angular/core").Signal<TemplateRef<void>>;
|
|
26
|
+
searchTemplate: import("@angular/core").Signal<TemplateRef<void>>;
|
|
24
27
|
getReadonly: import("@angular/core").Signal<boolean>;
|
|
25
28
|
getMaxTagContent: import("@angular/core").Signal<import("@ng-nest/ui/core").XTemplate | undefined>;
|
|
26
29
|
noPortalWidthPlacements: XPlacement[];
|
|
@@ -54,11 +57,12 @@ export declare class XSelectComponent extends XSelectProperty implements OnInit,
|
|
|
54
57
|
multipleInputSizeChange: Subject<number>;
|
|
55
58
|
private unSubject;
|
|
56
59
|
private resizeObserver;
|
|
57
|
-
|
|
60
|
+
valueTplComputed: import("@angular/core").Signal<TemplateRef<any> | undefined>;
|
|
58
61
|
valueTplContextSignal: import("@angular/core").WritableSignal<{
|
|
59
62
|
$node: any;
|
|
60
63
|
$isValue: boolean;
|
|
61
64
|
}>;
|
|
65
|
+
valueTplContextComputed: import("@angular/core").Signal<unknown>;
|
|
62
66
|
placements: import("@angular/core").Signal<XPlacement[]>;
|
|
63
67
|
private realPlacement;
|
|
64
68
|
portalComponent: import("@angular/core").WritableSignal<ComponentRef<XSelectPortalComponent> | null>;
|