@ng-nest/ui 20.1.4 → 20.1.7
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/attachments/index.d.ts +277 -0
- package/auto-complete/index.d.ts +1 -0
- package/card/index.d.ts +12 -2
- package/checkbox/index.d.ts +1 -1
- package/core/index.d.ts +50 -2
- package/coversations/index.d.ts +29 -7
- package/dropdown/index.d.ts +30 -8
- package/fesm2022/ng-nest-ui-attachments.mjs +331 -0
- package/fesm2022/ng-nest-ui-attachments.mjs.map +1 -0
- package/fesm2022/ng-nest-ui-auto-complete.mjs +3 -0
- package/fesm2022/ng-nest-ui-auto-complete.mjs.map +1 -1
- package/fesm2022/ng-nest-ui-bubble.mjs +2 -2
- package/fesm2022/ng-nest-ui-bubble.mjs.map +1 -1
- package/fesm2022/ng-nest-ui-card.mjs +11 -5
- package/fesm2022/ng-nest-ui-card.mjs.map +1 -1
- package/fesm2022/ng-nest-ui-core.mjs +29 -1
- package/fesm2022/ng-nest-ui-core.mjs.map +1 -1
- package/fesm2022/ng-nest-ui-coversations.mjs +26 -3
- package/fesm2022/ng-nest-ui-coversations.mjs.map +1 -1
- package/fesm2022/ng-nest-ui-dropdown.mjs +160 -38
- package/fesm2022/ng-nest-ui-dropdown.mjs.map +1 -1
- package/fesm2022/ng-nest-ui-examples.mjs +2 -2
- package/fesm2022/ng-nest-ui-examples.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-list.mjs +48 -14
- package/fesm2022/ng-nest-ui-list.mjs.map +1 -1
- package/fesm2022/ng-nest-ui-loading.mjs +13 -3
- package/fesm2022/ng-nest-ui-loading.mjs.map +1 -1
- package/fesm2022/ng-nest-ui-message.mjs +20 -20
- package/fesm2022/ng-nest-ui-message.mjs.map +1 -1
- package/fesm2022/ng-nest-ui-progress.mjs +24 -3
- package/fesm2022/ng-nest-ui-progress.mjs.map +1 -1
- package/fesm2022/ng-nest-ui-prompts.mjs +103 -0
- package/fesm2022/ng-nest-ui-prompts.mjs.map +1 -0
- package/fesm2022/ng-nest-ui-select.mjs +3 -0
- package/fesm2022/ng-nest-ui-select.mjs.map +1 -1
- package/fesm2022/ng-nest-ui-sender.mjs +6 -5
- package/fesm2022/ng-nest-ui-sender.mjs.map +1 -1
- package/fesm2022/ng-nest-ui-suggestion.mjs +110 -0
- package/fesm2022/ng-nest-ui-suggestion.mjs.map +1 -0
- package/fesm2022/ng-nest-ui-table.mjs +2 -2
- package/fesm2022/ng-nest-ui-table.mjs.map +1 -1
- package/fesm2022/ng-nest-ui-thought-chain.mjs +121 -0
- package/fesm2022/ng-nest-ui-thought-chain.mjs.map +1 -0
- package/fesm2022/ng-nest-ui-timeline.mjs +27 -5
- package/fesm2022/ng-nest-ui-timeline.mjs.map +1 -1
- package/fesm2022/ng-nest-ui-upload.mjs +205 -11
- package/fesm2022/ng-nest-ui-upload.mjs.map +1 -1
- package/fesm2022/ng-nest-ui-welcome.mjs +84 -0
- package/fesm2022/ng-nest-ui-welcome.mjs.map +1 -0
- package/fesm2022/ng-nest-ui.mjs +5 -0
- package/fesm2022/ng-nest-ui.mjs.map +1 -1
- package/index.d.ts +5 -0
- package/list/index.d.ts +43 -21
- package/loading/index.d.ts +17 -1
- package/message/index.d.ts +1 -1
- package/package.json +89 -69
- package/progress/index.d.ts +7 -1
- package/prompts/index.d.ts +103 -0
- package/radio/index.d.ts +1 -1
- package/select/index.d.ts +1 -0
- package/sender/index.d.ts +1 -0
- package/suggestion/index.d.ts +96 -0
- package/thought-chain/index.d.ts +107 -0
- package/timeline/index.d.ts +35 -19
- package/upload/index.d.ts +39 -2
- package/welcome/index.d.ts +65 -0
|
@@ -0,0 +1,103 @@
|
|
|
1
|
+
import * as i0 from '@angular/core';
|
|
2
|
+
import { SimpleChanges } from '@angular/core';
|
|
3
|
+
import * as _ng_nest_ui_core from '@ng-nest/ui/core';
|
|
4
|
+
import { XTemplate, XData, XIdentityProperty, XStyle, XBoolean } from '@ng-nest/ui/core';
|
|
5
|
+
import { Subject } from 'rxjs';
|
|
6
|
+
|
|
7
|
+
/**
|
|
8
|
+
* Prompts
|
|
9
|
+
* @selector x-prompts
|
|
10
|
+
* @decorator component
|
|
11
|
+
*/
|
|
12
|
+
declare const XPromptsPrefix = "x-prompts";
|
|
13
|
+
declare const XPromptsProperty_base: new () => {
|
|
14
|
+
config: _ng_nest_ui_core.XPromptsConfig | undefined;
|
|
15
|
+
};
|
|
16
|
+
/**
|
|
17
|
+
* Prompts Property
|
|
18
|
+
*/
|
|
19
|
+
declare class XPromptsProperty extends XPromptsProperty_base {
|
|
20
|
+
/**
|
|
21
|
+
* @zh_CN 显示标题,支持自定义模板
|
|
22
|
+
* @en_US Display title, support custom template
|
|
23
|
+
*/
|
|
24
|
+
readonly title: i0.InputSignal<XTemplate | undefined>;
|
|
25
|
+
/**
|
|
26
|
+
* @zh_CN 列表数据
|
|
27
|
+
* @en_US List data
|
|
28
|
+
*/
|
|
29
|
+
readonly data: i0.InputSignal<XData<XPromptsNode>>;
|
|
30
|
+
/**
|
|
31
|
+
* @zh_CN 纵向展示
|
|
32
|
+
* @en_US List vertical display
|
|
33
|
+
*/
|
|
34
|
+
readonly vertical: i0.InputSignalWithTransform<boolean, XBoolean>;
|
|
35
|
+
/**
|
|
36
|
+
* @zh_CN wrap
|
|
37
|
+
* @en_US List wrap display
|
|
38
|
+
*/
|
|
39
|
+
readonly wrap: i0.InputSignalWithTransform<boolean, XBoolean>;
|
|
40
|
+
/**
|
|
41
|
+
* @zh_CN Item 点击事件
|
|
42
|
+
* @en_US Item click event
|
|
43
|
+
*/
|
|
44
|
+
readonly itemClick: i0.OutputEmitterRef<XPromptsNode>;
|
|
45
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<XPromptsProperty, never>;
|
|
46
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<XPromptsProperty, "x-prompts-property", never, { "title": { "alias": "title"; "required": false; "isSignal": true; }; "data": { "alias": "data"; "required": false; "isSignal": true; }; "vertical": { "alias": "vertical"; "required": false; "isSignal": true; }; "wrap": { "alias": "wrap"; "required": false; "isSignal": true; }; }, { "itemClick": "itemClick"; }, never, never, true, never>;
|
|
47
|
+
}
|
|
48
|
+
/**
|
|
49
|
+
* @zh_CN 提示词
|
|
50
|
+
* @en_US Promtp
|
|
51
|
+
*/
|
|
52
|
+
interface XPromptsNode extends XIdentityProperty {
|
|
53
|
+
/**
|
|
54
|
+
* @zh_CN 描述
|
|
55
|
+
* @en_US Description
|
|
56
|
+
*/
|
|
57
|
+
description?: string;
|
|
58
|
+
/**
|
|
59
|
+
* @zh_CN 图标
|
|
60
|
+
* @en_US Icon
|
|
61
|
+
*/
|
|
62
|
+
icon?: string;
|
|
63
|
+
/**
|
|
64
|
+
* @zh_CN 节点样式
|
|
65
|
+
* @en_US Icon style
|
|
66
|
+
*/
|
|
67
|
+
style?: XStyle;
|
|
68
|
+
/**
|
|
69
|
+
* @zh_CN 图标样式
|
|
70
|
+
* @en_US Icon style
|
|
71
|
+
*/
|
|
72
|
+
iconStyle?: XStyle;
|
|
73
|
+
/**
|
|
74
|
+
* @zh_CN 是否禁用
|
|
75
|
+
* @en_US Whether to disable
|
|
76
|
+
*/
|
|
77
|
+
disabled?: boolean;
|
|
78
|
+
/**
|
|
79
|
+
* @zh_CN 自定义属性
|
|
80
|
+
* @en_US Custom attributes
|
|
81
|
+
*/
|
|
82
|
+
[property: string]: any;
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
declare class XPromptsComponent extends XPromptsProperty {
|
|
86
|
+
nodes: i0.WritableSignal<XPromptsNode[]>;
|
|
87
|
+
unSubject: Subject<void>;
|
|
88
|
+
ngOnChanges(changes: SimpleChanges): void;
|
|
89
|
+
ngOnDestroy(): void;
|
|
90
|
+
onItemClick(node: XPromptsNode): void;
|
|
91
|
+
private setData;
|
|
92
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<XPromptsComponent, never>;
|
|
93
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<XPromptsComponent, "x-prompts", never, {}, {}, never, never, true, never>;
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
declare class XPromptsModule {
|
|
97
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<XPromptsModule, never>;
|
|
98
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<XPromptsModule, never, [typeof XPromptsComponent], [typeof XPromptsComponent]>;
|
|
99
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<XPromptsModule>;
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
export { XPromptsComponent, XPromptsModule, XPromptsPrefix, XPromptsProperty };
|
|
103
|
+
export type { XPromptsNode };
|
package/radio/index.d.ts
CHANGED
|
@@ -298,7 +298,7 @@ declare class XRadioComponent extends XRadioProperty implements OnChanges, OnDes
|
|
|
298
298
|
labelMapSignal: _angular_core.Signal<{
|
|
299
299
|
[x: string]: boolean;
|
|
300
300
|
}>;
|
|
301
|
-
radioType: _angular_core.Signal<"
|
|
301
|
+
radioType: _angular_core.Signal<"initial" | "button" | "icon" | "tag">;
|
|
302
302
|
ngOnChanges(changes: SimpleChanges): void;
|
|
303
303
|
ngOnDestroy(): void;
|
|
304
304
|
radioClick(event: Event, node: XRadioNode): void;
|
package/select/index.d.ts
CHANGED
|
@@ -571,6 +571,7 @@ declare class XSelectPortalComponent implements OnInit {
|
|
|
571
571
|
}>;
|
|
572
572
|
getSelectAllText: _angular_core.Signal<string | undefined>;
|
|
573
573
|
ngOnInit(): void;
|
|
574
|
+
ngAfterViewInit(): void;
|
|
574
575
|
stopPropagation(event: Event): void;
|
|
575
576
|
onNodeClick(node: XSelectNode): void;
|
|
576
577
|
onSelectAll(_isSelectAll: boolean): void;
|
package/sender/index.d.ts
CHANGED
|
@@ -153,6 +153,7 @@ declare class XSenderProperty extends XSenderProperty_base {
|
|
|
153
153
|
type XSenderSubmitType = 'enter' | 'shiftEnter';
|
|
154
154
|
|
|
155
155
|
declare class XSenderComponent extends XSenderProperty {
|
|
156
|
+
elementRef: ElementRef<any>;
|
|
156
157
|
textarea: _angular_core.Signal<ElementRef<HTMLTextAreaElement>>;
|
|
157
158
|
focused: _angular_core.WritableSignal<boolean>;
|
|
158
159
|
maxRowsComputed: _angular_core.Signal<number | undefined>;
|
|
@@ -0,0 +1,96 @@
|
|
|
1
|
+
import * as _angular_core from '@angular/core';
|
|
2
|
+
import * as _ng_nest_ui_core from '@ng-nest/ui/core';
|
|
3
|
+
import { XDataArray, XPlacement, XBoolean, XNumber, XSize } from '@ng-nest/ui/core';
|
|
4
|
+
import { XDropdownNode } from '@ng-nest/ui/dropdown';
|
|
5
|
+
|
|
6
|
+
/**
|
|
7
|
+
* Suggestion
|
|
8
|
+
* @selector x-suggestion
|
|
9
|
+
* @decorator component
|
|
10
|
+
*/
|
|
11
|
+
declare const XSuggestionPrefix = "x-suggestion";
|
|
12
|
+
declare const XSuggestionProperty_base: new () => {
|
|
13
|
+
config: _ng_nest_ui_core.XSuggestionConfig | undefined;
|
|
14
|
+
};
|
|
15
|
+
/**
|
|
16
|
+
* Suggestion Property
|
|
17
|
+
*/
|
|
18
|
+
declare class XSuggestionProperty extends XSuggestionProperty_base {
|
|
19
|
+
/**
|
|
20
|
+
* @zh_CN 建议项列表
|
|
21
|
+
* @en_US Suggestion items
|
|
22
|
+
*/
|
|
23
|
+
readonly data: _angular_core.InputSignalWithTransform<XSuggestionNode[], XDataArray<XSuggestionNode>>;
|
|
24
|
+
/**
|
|
25
|
+
* @zh_CN 显示建议项
|
|
26
|
+
* @en_US Show Suggestion items
|
|
27
|
+
*/
|
|
28
|
+
readonly visible: _angular_core.ModelSignal<boolean>;
|
|
29
|
+
/**
|
|
30
|
+
* @zh_CN 展示位置
|
|
31
|
+
* @en_US Placement
|
|
32
|
+
*/
|
|
33
|
+
readonly placement: _angular_core.InputSignal<XPlacement>;
|
|
34
|
+
/**
|
|
35
|
+
* @zh_CN 禁用
|
|
36
|
+
* @en_US Disabled
|
|
37
|
+
*/
|
|
38
|
+
readonly disabled: _angular_core.InputSignalWithTransform<boolean, XBoolean>;
|
|
39
|
+
/**
|
|
40
|
+
* @zh_CN 节点中已经包含子节点数据
|
|
41
|
+
* @en_US The node already contains child node data
|
|
42
|
+
*/
|
|
43
|
+
readonly children: _angular_core.InputSignalWithTransform<boolean, XBoolean>;
|
|
44
|
+
/**
|
|
45
|
+
* @zh_CN 弹框的最小宽度
|
|
46
|
+
* @en_US Portal min-width
|
|
47
|
+
*/
|
|
48
|
+
readonly portalMinWidth: _angular_core.InputSignalWithTransform<string, XNumber>;
|
|
49
|
+
/**
|
|
50
|
+
* @zh_CN 弹框的最大宽度
|
|
51
|
+
* @en_US Portal max-width
|
|
52
|
+
*/
|
|
53
|
+
readonly portalMaxWidth: _angular_core.InputSignalWithTransform<string, XNumber>;
|
|
54
|
+
/**
|
|
55
|
+
* @zh_CN 弹框的最小高度
|
|
56
|
+
* @en_US Portal min-height
|
|
57
|
+
*/
|
|
58
|
+
readonly portalMinHeight: _angular_core.InputSignalWithTransform<string, XNumber>;
|
|
59
|
+
/**
|
|
60
|
+
* @zh_CN 弹框的最大高度
|
|
61
|
+
* @en_US Portal max-height
|
|
62
|
+
*/
|
|
63
|
+
readonly portalMaxHeight: _angular_core.InputSignalWithTransform<string, XNumber>;
|
|
64
|
+
/**
|
|
65
|
+
* @zh_CN 尺寸
|
|
66
|
+
* @en_US Size
|
|
67
|
+
*/
|
|
68
|
+
readonly size: _angular_core.InputSignal<XSize>;
|
|
69
|
+
/**
|
|
70
|
+
* @zh_CN 建议项点击事件
|
|
71
|
+
* @en_US Suggestion item click event
|
|
72
|
+
*/
|
|
73
|
+
readonly nodeClick: _angular_core.OutputEmitterRef<XSuggestionNode>;
|
|
74
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<XSuggestionProperty, never>;
|
|
75
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<XSuggestionProperty, "x-suggestion-property", never, { "data": { "alias": "data"; "required": false; "isSignal": true; }; "visible": { "alias": "visible"; "required": false; "isSignal": true; }; "placement": { "alias": "placement"; "required": false; "isSignal": true; }; "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; "children": { "alias": "children"; "required": false; "isSignal": true; }; "portalMinWidth": { "alias": "portalMinWidth"; "required": false; "isSignal": true; }; "portalMaxWidth": { "alias": "portalMaxWidth"; "required": false; "isSignal": true; }; "portalMinHeight": { "alias": "portalMinHeight"; "required": false; "isSignal": true; }; "portalMaxHeight": { "alias": "portalMaxHeight"; "required": false; "isSignal": true; }; "size": { "alias": "size"; "required": false; "isSignal": true; }; }, { "visible": "visibleChange"; "nodeClick": "nodeClick"; }, never, never, true, never>;
|
|
76
|
+
}
|
|
77
|
+
/**
|
|
78
|
+
* @zh_CN 建议项
|
|
79
|
+
* @en_US Suggestion
|
|
80
|
+
*/
|
|
81
|
+
interface XSuggestionNode extends XDropdownNode {
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
declare class XSuggestionComponent extends XSuggestionProperty {
|
|
85
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<XSuggestionComponent, never>;
|
|
86
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<XSuggestionComponent, "x-suggestion", never, {}, {}, never, ["*"], true, never>;
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
declare class XSuggestionModule {
|
|
90
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<XSuggestionModule, never>;
|
|
91
|
+
static ɵmod: _angular_core.ɵɵNgModuleDeclaration<XSuggestionModule, never, [typeof XSuggestionComponent], [typeof XSuggestionComponent]>;
|
|
92
|
+
static ɵinj: _angular_core.ɵɵInjectorDeclaration<XSuggestionModule>;
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
export { XSuggestionComponent, XSuggestionModule, XSuggestionPrefix, XSuggestionProperty };
|
|
96
|
+
export type { XSuggestionNode };
|
|
@@ -0,0 +1,107 @@
|
|
|
1
|
+
import * as _angular_core from '@angular/core';
|
|
2
|
+
import { ChangeDetectorRef } from '@angular/core';
|
|
3
|
+
import * as _ng_nest_ui_core from '@ng-nest/ui/core';
|
|
4
|
+
import { XBoolean, XSize, XTemplate } from '@ng-nest/ui/core';
|
|
5
|
+
import { XTimelineNode } from '@ng-nest/ui/timeline';
|
|
6
|
+
import { XLoadingType } from '@ng-nest/ui/loading';
|
|
7
|
+
|
|
8
|
+
/**
|
|
9
|
+
* ThoughtChain
|
|
10
|
+
* @selector x-thought-chain
|
|
11
|
+
* @decorator component
|
|
12
|
+
*/
|
|
13
|
+
declare const XThoughtChainPrefix = "x-thought-chain";
|
|
14
|
+
declare const XThoughtChainProperty_base: new () => {
|
|
15
|
+
config: _ng_nest_ui_core.XThoughtChainConfig | undefined;
|
|
16
|
+
};
|
|
17
|
+
/**
|
|
18
|
+
* ThoughtChain Property
|
|
19
|
+
*/
|
|
20
|
+
declare class XThoughtChainProperty extends XThoughtChainProperty_base {
|
|
21
|
+
/**
|
|
22
|
+
* @zh_CN 思维链节点数据
|
|
23
|
+
* @en_US ThoughtChain items
|
|
24
|
+
*/
|
|
25
|
+
readonly data: _angular_core.ModelSignal<XThoughtChainNode[]>;
|
|
26
|
+
/**
|
|
27
|
+
* @zh_CN 显示序号
|
|
28
|
+
* @en_US Show number
|
|
29
|
+
*/
|
|
30
|
+
readonly showNumber: _angular_core.InputSignalWithTransform<boolean, XBoolean>;
|
|
31
|
+
/**
|
|
32
|
+
* @zh_CN 尺寸
|
|
33
|
+
* @en_US Size
|
|
34
|
+
*/
|
|
35
|
+
readonly size: _angular_core.InputSignal<XSize>;
|
|
36
|
+
/**
|
|
37
|
+
* @zh_CN 自定义内容模板
|
|
38
|
+
* @en_US Content template
|
|
39
|
+
*/
|
|
40
|
+
readonly wrapper: _angular_core.InputSignal<XTemplate | undefined>;
|
|
41
|
+
/**
|
|
42
|
+
* @zh_CN 自定义图标模板
|
|
43
|
+
* @en_US Icon template
|
|
44
|
+
*/
|
|
45
|
+
readonly icon: _angular_core.InputSignal<XTemplate | undefined>;
|
|
46
|
+
/**
|
|
47
|
+
* @zh_CN 节点标题右侧额外的内容模板
|
|
48
|
+
* @en_US Node extra content
|
|
49
|
+
*/
|
|
50
|
+
readonly extra: _angular_core.InputSignal<XTemplate | undefined>;
|
|
51
|
+
/**
|
|
52
|
+
* @zh_CN 节点详细内容模板
|
|
53
|
+
* @en_US Node detail content
|
|
54
|
+
*/
|
|
55
|
+
readonly content: _angular_core.InputSignal<XTemplate | undefined>;
|
|
56
|
+
/**
|
|
57
|
+
* @zh_CN 详细内容是否可折叠
|
|
58
|
+
* @en_US Collapsible detail content
|
|
59
|
+
*/
|
|
60
|
+
readonly collapsible: _angular_core.InputSignalWithTransform<boolean, XBoolean>;
|
|
61
|
+
/**
|
|
62
|
+
* @zh_CN loading 的类型样式
|
|
63
|
+
* @en_US Loading type style
|
|
64
|
+
*/
|
|
65
|
+
readonly loadingType: _angular_core.InputSignal<XLoadingType>;
|
|
66
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<XThoughtChainProperty, never>;
|
|
67
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<XThoughtChainProperty, "x-thought-chain-property", never, { "data": { "alias": "data"; "required": false; "isSignal": true; }; "showNumber": { "alias": "showNumber"; "required": false; "isSignal": true; }; "size": { "alias": "size"; "required": false; "isSignal": true; }; "wrapper": { "alias": "wrapper"; "required": false; "isSignal": true; }; "icon": { "alias": "icon"; "required": false; "isSignal": true; }; "extra": { "alias": "extra"; "required": false; "isSignal": true; }; "content": { "alias": "content"; "required": false; "isSignal": true; }; "collapsible": { "alias": "collapsible"; "required": false; "isSignal": true; }; "loadingType": { "alias": "loadingType"; "required": false; "isSignal": true; }; }, { "data": "dataChange"; }, never, never, true, never>;
|
|
68
|
+
}
|
|
69
|
+
/**
|
|
70
|
+
* @zh_CN 思维链节点
|
|
71
|
+
* @en_US Thought chain node
|
|
72
|
+
*/
|
|
73
|
+
interface XThoughtChainNode extends XTimelineNode {
|
|
74
|
+
/**
|
|
75
|
+
* @zh_CN 节点描述
|
|
76
|
+
* @en_US Node description
|
|
77
|
+
*/
|
|
78
|
+
description?: string;
|
|
79
|
+
/**
|
|
80
|
+
* @zh_CN 节点状态
|
|
81
|
+
* @en_US Node status
|
|
82
|
+
*/
|
|
83
|
+
status?: XThoughtChainNodeStatus;
|
|
84
|
+
}
|
|
85
|
+
/**
|
|
86
|
+
* @zh_CN 节点状态
|
|
87
|
+
* @en_US Node status
|
|
88
|
+
*/
|
|
89
|
+
type XThoughtChainNodeStatus = 'success' | 'error' | 'pending';
|
|
90
|
+
|
|
91
|
+
declare class XThoughtChainComponent extends XThoughtChainProperty {
|
|
92
|
+
cdr: ChangeDetectorRef;
|
|
93
|
+
addNode(node: XThoughtChainNode): void;
|
|
94
|
+
updateNode(node: XThoughtChainNode): void;
|
|
95
|
+
removeNode(node: XThoughtChainNode): void;
|
|
96
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<XThoughtChainComponent, never>;
|
|
97
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<XThoughtChainComponent, "x-thought-chain", never, {}, {}, never, never, true, never>;
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
declare class XThoughtChainModule {
|
|
101
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<XThoughtChainModule, never>;
|
|
102
|
+
static ɵmod: _angular_core.ɵɵNgModuleDeclaration<XThoughtChainModule, never, [typeof XThoughtChainComponent], [typeof XThoughtChainComponent]>;
|
|
103
|
+
static ɵinj: _angular_core.ɵɵInjectorDeclaration<XThoughtChainModule>;
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
export { XThoughtChainComponent, XThoughtChainModule, XThoughtChainPrefix, XThoughtChainProperty };
|
|
107
|
+
export type { XThoughtChainNode, XThoughtChainNodeStatus };
|
package/timeline/index.d.ts
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as _angular_core from '@angular/core';
|
|
2
2
|
import * as _ng_nest_ui_core from '@ng-nest/ui/core';
|
|
3
|
-
import { XIdentityProperty, XDate,
|
|
3
|
+
import { XIdentityProperty, XDate, XType, XDataArray, XTemplate, XBoolean, XSize } from '@ng-nest/ui/core';
|
|
4
|
+
import { XLoadingType } from '@ng-nest/ui/loading';
|
|
4
5
|
|
|
5
6
|
/**
|
|
6
7
|
* Timeline
|
|
@@ -19,19 +20,39 @@ declare class XTimelineProperty extends XTimelineProperty_base {
|
|
|
19
20
|
* @zh_CN 数据
|
|
20
21
|
* @en_US Date
|
|
21
22
|
*/
|
|
22
|
-
readonly data:
|
|
23
|
+
readonly data: _angular_core.InputSignalWithTransform<XTimelineNode[], XDataArray<XTimelineNode>>;
|
|
23
24
|
/**
|
|
24
25
|
* @zh_CN 内容模板
|
|
25
26
|
* @en_US Content template
|
|
26
27
|
*/
|
|
27
|
-
readonly wrapper:
|
|
28
|
+
readonly wrapper: _angular_core.InputSignal<XTemplate | undefined>;
|
|
29
|
+
/**
|
|
30
|
+
* @zh_CN 图标模板
|
|
31
|
+
* @en_US Icon template
|
|
32
|
+
*/
|
|
33
|
+
readonly icon: _angular_core.InputSignal<XTemplate | undefined>;
|
|
34
|
+
/**
|
|
35
|
+
* @zh_CN 显示序号
|
|
36
|
+
* @en_US Show number
|
|
37
|
+
*/
|
|
38
|
+
readonly showNumber: _angular_core.InputSignalWithTransform<boolean, XBoolean>;
|
|
28
39
|
/**
|
|
29
40
|
* @zh_CN 时间轴的相对位置
|
|
30
41
|
* @en_US Content and timeline relative position
|
|
31
42
|
*/
|
|
32
|
-
readonly mode:
|
|
33
|
-
|
|
34
|
-
|
|
43
|
+
readonly mode: _angular_core.InputSignal<XTimelineMode>;
|
|
44
|
+
/**
|
|
45
|
+
* @zh_CN loading 的类型样式
|
|
46
|
+
* @en_US Loading type style
|
|
47
|
+
*/
|
|
48
|
+
readonly loadingType: _angular_core.InputSignal<XLoadingType>;
|
|
49
|
+
/**
|
|
50
|
+
* @zh_CN 尺寸
|
|
51
|
+
* @en_US Size
|
|
52
|
+
*/
|
|
53
|
+
readonly size: _angular_core.InputSignal<XSize>;
|
|
54
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<XTimelineProperty, never>;
|
|
55
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<XTimelineProperty, "x-timeline-property", never, { "data": { "alias": "data"; "required": false; "isSignal": true; }; "wrapper": { "alias": "wrapper"; "required": false; "isSignal": true; }; "icon": { "alias": "icon"; "required": false; "isSignal": true; }; "showNumber": { "alias": "showNumber"; "required": false; "isSignal": true; }; "mode": { "alias": "mode"; "required": false; "isSignal": true; }; "loadingType": { "alias": "loadingType"; "required": false; "isSignal": true; }; "size": { "alias": "size"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
35
56
|
}
|
|
36
57
|
/**
|
|
37
58
|
* @zh_CN Timeline 数据对象
|
|
@@ -48,11 +69,6 @@ interface XTimelineNode extends XIdentityProperty {
|
|
|
48
69
|
* @en_US Content
|
|
49
70
|
*/
|
|
50
71
|
content?: string;
|
|
51
|
-
/**
|
|
52
|
-
* @zh_CN 尺寸
|
|
53
|
-
* @en_US Size
|
|
54
|
-
*/
|
|
55
|
-
size?: XSize;
|
|
56
72
|
/**
|
|
57
73
|
* @zh_CN 类型
|
|
58
74
|
* @en_US Type
|
|
@@ -91,19 +107,19 @@ interface XTimelineNode extends XIdentityProperty {
|
|
|
91
107
|
type XTimelineMode = 'left' | 'right' | 'alternate';
|
|
92
108
|
|
|
93
109
|
declare class XTimelineComponent extends XTimelineProperty {
|
|
94
|
-
classMap:
|
|
110
|
+
classMap: _angular_core.Signal<{
|
|
95
111
|
[x: string]: boolean;
|
|
96
112
|
}>;
|
|
97
|
-
nodes:
|
|
113
|
+
nodes: _angular_core.Signal<XTimelineNode[]>;
|
|
98
114
|
private setDashed;
|
|
99
|
-
static ɵfac:
|
|
100
|
-
static ɵcmp:
|
|
115
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<XTimelineComponent, never>;
|
|
116
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<XTimelineComponent, "x-timeline", never, {}, {}, never, never, true, never>;
|
|
101
117
|
}
|
|
102
118
|
|
|
103
119
|
declare class XTimelineModule {
|
|
104
|
-
static ɵfac:
|
|
105
|
-
static ɵmod:
|
|
106
|
-
static ɵinj:
|
|
120
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<XTimelineModule, never>;
|
|
121
|
+
static ɵmod: _angular_core.ɵɵNgModuleDeclaration<XTimelineModule, never, [typeof XTimelineComponent], [typeof XTimelineComponent]>;
|
|
122
|
+
static ɵinj: _angular_core.ɵɵInjectorDeclaration<XTimelineModule>;
|
|
107
123
|
}
|
|
108
124
|
|
|
109
125
|
export { XTimelineComponent, XTimelineModule, XTimelinePrefix, XTimelineProperty };
|
package/upload/index.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as _ng_nest_ui_core from '@ng-nest/ui/core';
|
|
2
2
|
import { XBoolean, XTemplate, XNumber, XPosition, XCorner } from '@ng-nest/ui/core';
|
|
3
3
|
import * as _angular_core from '@angular/core';
|
|
4
|
-
import { AfterViewInit, OnDestroy
|
|
4
|
+
import { ElementRef, AfterViewInit, OnDestroy } from '@angular/core';
|
|
5
5
|
import { HttpEvent } from '@angular/common/http';
|
|
6
6
|
import * as rxjs from 'rxjs';
|
|
7
7
|
import { XI18nUpload } from '@ng-nest/ui/i18n';
|
|
@@ -77,6 +77,31 @@ declare class XUploadProperty extends XUploadProperty_base {
|
|
|
77
77
|
* @en_US Request address
|
|
78
78
|
*/
|
|
79
79
|
readonly action: _angular_core.InputSignal<string | undefined>;
|
|
80
|
+
/**
|
|
81
|
+
* @zh_CN 可拖拽上传的区域
|
|
82
|
+
* @en_US Drag and drop upload area
|
|
83
|
+
*/
|
|
84
|
+
readonly dropContainer: _angular_core.InputSignal<ElementRef<any> | HTMLElement | undefined>;
|
|
85
|
+
/**
|
|
86
|
+
* @zh_CN 可拖拽上传的区域的图标
|
|
87
|
+
* @en_US Drag and drop upload area icon
|
|
88
|
+
*/
|
|
89
|
+
readonly dropIcon: _angular_core.InputSignal<XTemplate | undefined>;
|
|
90
|
+
/**
|
|
91
|
+
* @zh_CN 可拖拽上传的区域的标题
|
|
92
|
+
* @en_US Drag and drop upload area title
|
|
93
|
+
*/
|
|
94
|
+
readonly dropTitle: _angular_core.InputSignal<XTemplate | undefined>;
|
|
95
|
+
/**
|
|
96
|
+
* @zh_CN 可拖拽上传的区域的描述
|
|
97
|
+
* @en_US Drag and drop upload area description
|
|
98
|
+
*/
|
|
99
|
+
readonly dropDescription: _angular_core.InputSignal<XTemplate | undefined>;
|
|
100
|
+
/**
|
|
101
|
+
* @zh_CN 直接显示可拖拽上传的区域
|
|
102
|
+
* @en_US Show the drag and drop upload area directly
|
|
103
|
+
*/
|
|
104
|
+
readonly showDrop: _angular_core.InputSignalWithTransform<boolean, XBoolean>;
|
|
80
105
|
/**
|
|
81
106
|
* @zh_CN 上传文件类型,与原生的 input file 组件一致
|
|
82
107
|
* @en_US Upload file type, consistent with native input file component
|
|
@@ -158,7 +183,7 @@ declare class XUploadProperty extends XUploadProperty_base {
|
|
|
158
183
|
*/
|
|
159
184
|
readonly uploadError: _angular_core.OutputEmitterRef<XUploadNode>;
|
|
160
185
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<XUploadProperty, never>;
|
|
161
|
-
static ɵcmp: _angular_core.ɵɵComponentDeclaration<XUploadProperty, "x-upload-property", never, { "text": { "alias": "text"; "required": false; "isSignal": true; }; "action": { "alias": "action"; "required": false; "isSignal": true; }; "accept": { "alias": "accept"; "required": false; "isSignal": true; }; "type": { "alias": "type"; "required": false; "isSignal": true; }; "imgFallback": { "alias": "imgFallback"; "required": false; "isSignal": true; }; "imgCut": { "alias": "imgCut"; "required": false; "isSignal": true; }; "multiple": { "alias": "multiple"; "required": false; "isSignal": true; }; "download": { "alias": "download"; "required": false; "isSignal": true; }; "multipleModel": { "alias": "multipleModel"; "required": false; "isSignal": true; }; "filesTpl": { "alias": "filesTpl"; "required": false; "isSignal": true; }; "maxLimit": { "alias": "maxLimit"; "required": false; "isSignal": true; }; "headers": { "alias": "headers"; "required": false; "isSignal": true; }; }, { "removeClick": "removeClick"; "uploadReady": "uploadReady"; "uploading": "uploading"; "uploadSuccess": "uploadSuccess"; "uploadError": "uploadError"; }, never, never, true, never>;
|
|
186
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<XUploadProperty, "x-upload-property", never, { "text": { "alias": "text"; "required": false; "isSignal": true; }; "action": { "alias": "action"; "required": false; "isSignal": true; }; "dropContainer": { "alias": "dropContainer"; "required": false; "isSignal": true; }; "dropIcon": { "alias": "dropIcon"; "required": false; "isSignal": true; }; "dropTitle": { "alias": "dropTitle"; "required": false; "isSignal": true; }; "dropDescription": { "alias": "dropDescription"; "required": false; "isSignal": true; }; "showDrop": { "alias": "showDrop"; "required": false; "isSignal": true; }; "accept": { "alias": "accept"; "required": false; "isSignal": true; }; "type": { "alias": "type"; "required": false; "isSignal": true; }; "imgFallback": { "alias": "imgFallback"; "required": false; "isSignal": true; }; "imgCut": { "alias": "imgCut"; "required": false; "isSignal": true; }; "multiple": { "alias": "multiple"; "required": false; "isSignal": true; }; "download": { "alias": "download"; "required": false; "isSignal": true; }; "multipleModel": { "alias": "multipleModel"; "required": false; "isSignal": true; }; "filesTpl": { "alias": "filesTpl"; "required": false; "isSignal": true; }; "maxLimit": { "alias": "maxLimit"; "required": false; "isSignal": true; }; "headers": { "alias": "headers"; "required": false; "isSignal": true; }; }, { "removeClick": "removeClick"; "uploadReady": "uploadReady"; "uploading": "uploading"; "uploadSuccess": "uploadSuccess"; "uploadError": "uploadError"; }, never, never, true, never>;
|
|
162
187
|
}
|
|
163
188
|
/**
|
|
164
189
|
* @zh_CN Upload 数据对象
|
|
@@ -265,6 +290,12 @@ declare class XUploadComponent extends XUploadProperty {
|
|
|
265
290
|
private portalService;
|
|
266
291
|
private viewContainerRef;
|
|
267
292
|
private i18n;
|
|
293
|
+
private renderer;
|
|
294
|
+
private dragOverlayService;
|
|
295
|
+
private dropSubscription?;
|
|
296
|
+
private dragCounter;
|
|
297
|
+
elementRef: ElementRef<any>;
|
|
298
|
+
get getShowDrop(): boolean;
|
|
268
299
|
file: _angular_core.Signal<ElementRef<HTMLInputElement>>;
|
|
269
300
|
files: _angular_core.WritableSignal<XUploadNode[]>;
|
|
270
301
|
showUpload: _angular_core.WritableSignal<boolean>;
|
|
@@ -281,8 +312,14 @@ declare class XUploadComponent extends XUploadProperty {
|
|
|
281
312
|
writeValue(value: XUploadNode[]): void;
|
|
282
313
|
acceptSignal: _angular_core.Signal<string | undefined>;
|
|
283
314
|
constructor();
|
|
315
|
+
ngAfterViewInit(): void;
|
|
316
|
+
ngOnDestory(): void;
|
|
317
|
+
private setupDropContainer;
|
|
318
|
+
private addDragOverStyle;
|
|
319
|
+
private removeDragOverStyle;
|
|
284
320
|
setFiles(): void;
|
|
285
321
|
change(event: Event): void;
|
|
322
|
+
handleFiles(fileList: FileList): void;
|
|
286
323
|
remove(file: XUploadNode, index: number): void;
|
|
287
324
|
uploadClick(): void;
|
|
288
325
|
onUploading(): void;
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
import * as i0 from '@angular/core';
|
|
2
|
+
import * as _ng_nest_ui_core from '@ng-nest/ui/core';
|
|
3
|
+
import { XTemplate, XStyle } from '@ng-nest/ui/core';
|
|
4
|
+
|
|
5
|
+
/**
|
|
6
|
+
* Welcome
|
|
7
|
+
* @selector x-welcome
|
|
8
|
+
* @decorator component
|
|
9
|
+
*/
|
|
10
|
+
declare const XWelcomePrefix = "x-welcome";
|
|
11
|
+
declare const XWelcomeProperty_base: new () => {
|
|
12
|
+
config: _ng_nest_ui_core.XWelcomeConfig | undefined;
|
|
13
|
+
};
|
|
14
|
+
/**
|
|
15
|
+
* Welcome Property
|
|
16
|
+
*/
|
|
17
|
+
declare class XWelcomeProperty extends XWelcomeProperty_base {
|
|
18
|
+
/**
|
|
19
|
+
* @zh_CN 显示图标,支持自定义模板
|
|
20
|
+
* @en_US Display icon, support custom template
|
|
21
|
+
*/
|
|
22
|
+
readonly icon: i0.InputSignal<XTemplate | undefined>;
|
|
23
|
+
/**
|
|
24
|
+
* @zh_CN 显示标题,支持自定义模板
|
|
25
|
+
* @en_US Display title, support custom template
|
|
26
|
+
*/
|
|
27
|
+
readonly title: i0.InputSignal<XTemplate | undefined>;
|
|
28
|
+
/**
|
|
29
|
+
* @zh_CN 描述文字,支持自定义模板
|
|
30
|
+
* @en_US Display text
|
|
31
|
+
*/
|
|
32
|
+
readonly description: i0.InputSignal<XTemplate | undefined>;
|
|
33
|
+
/**
|
|
34
|
+
* @zh_CN 形态变体
|
|
35
|
+
* @en_US Variant
|
|
36
|
+
*/
|
|
37
|
+
readonly variant: i0.InputSignal<XWelcomeVariant>;
|
|
38
|
+
/**
|
|
39
|
+
* @zh_CN 自定义样式
|
|
40
|
+
* @en_US Custom style
|
|
41
|
+
*/
|
|
42
|
+
readonly style: i0.InputSignal<XStyle | undefined>;
|
|
43
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<XWelcomeProperty, never>;
|
|
44
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<XWelcomeProperty, "x-welcome-property", never, { "icon": { "alias": "icon"; "required": false; "isSignal": true; }; "title": { "alias": "title"; "required": false; "isSignal": true; }; "description": { "alias": "description"; "required": false; "isSignal": true; }; "variant": { "alias": "variant"; "required": false; "isSignal": true; }; "style": { "alias": "style"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
45
|
+
}
|
|
46
|
+
/**
|
|
47
|
+
* @zh_CN 形态变体
|
|
48
|
+
* @en_US Box variant
|
|
49
|
+
*/
|
|
50
|
+
type XWelcomeVariant = 'outlined' | 'filled' | 'borderless';
|
|
51
|
+
|
|
52
|
+
declare class XWelcomeComponent extends XWelcomeProperty {
|
|
53
|
+
isStringIcon: i0.Signal<boolean>;
|
|
54
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<XWelcomeComponent, never>;
|
|
55
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<XWelcomeComponent, "x-welcome", never, {}, {}, never, never, true, never>;
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
declare class XWelcomeModule {
|
|
59
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<XWelcomeModule, never>;
|
|
60
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<XWelcomeModule, never, [typeof XWelcomeComponent], [typeof XWelcomeComponent]>;
|
|
61
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<XWelcomeModule>;
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
export { XWelcomeComponent, XWelcomeModule, XWelcomePrefix, XWelcomeProperty };
|
|
65
|
+
export type { XWelcomeVariant };
|