ngx-tethys 19.1.0-next.4 → 19.1.0-next.6
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/CHANGELOG.md +24 -0
- package/date-picker/abstract-picker.component.d.ts +50 -52
- package/date-picker/abstract-picker.directive.d.ts +15 -40
- package/date-picker/base-picker.component.d.ts +11 -40
- package/date-picker/date-picker.config.d.ts +1 -0
- package/date-picker/lib/calendar/calendar-footer.component.d.ts +24 -19
- package/date-picker/lib/calendar/calendar-header.component.d.ts +15 -15
- package/date-picker/lib/calendar/calendar-table.component.d.ts +15 -16
- package/date-picker/lib/date/date-table-cell.component.d.ts +2 -3
- package/date-picker/lib/date/date-table.component.d.ts +2 -3
- package/date-picker/lib/date-carousel/date-carousel.component.d.ts +2 -3
- package/date-picker/lib/decade/decade-header.component.d.ts +2 -5
- package/date-picker/lib/decade/decade-table.component.d.ts +3 -5
- package/date-picker/lib/month/month-table.component.d.ts +1 -2
- package/date-picker/lib/popups/date-popup.component.d.ts +33 -34
- package/date-picker/lib/popups/inner-popup.component.d.ts +22 -29
- package/date-picker/lib/quarter/quarter-table.component.d.ts +1 -4
- package/date-picker/lib/year/year-header.component.d.ts +2 -4
- package/date-picker/lib/year/year-table.component.d.ts +2 -4
- package/date-picker/month-picker.component.d.ts +2 -2
- package/date-picker/picker.component.d.ts +30 -34
- package/date-picker/picker.pipes.d.ts +4 -5
- package/date-picker/picker.util.d.ts +5 -5
- package/date-picker/picker.validators.d.ts +4 -8
- package/date-picker/quarter-picker.component.d.ts +2 -3
- package/date-picker/week-picker.component.d.ts +0 -1
- package/date-picker/year-picker.component.d.ts +2 -3
- package/dropdown/dropdown.directive.d.ts +2 -1
- package/fesm2022/ngx-tethys-autocomplete.mjs +4 -4
- package/fesm2022/ngx-tethys-autocomplete.mjs.map +1 -1
- package/fesm2022/ngx-tethys-checkbox.mjs +2 -2
- package/fesm2022/ngx-tethys-checkbox.mjs.map +1 -1
- package/fesm2022/ngx-tethys-date-picker.mjs +833 -1060
- package/fesm2022/ngx-tethys-date-picker.mjs.map +1 -1
- package/fesm2022/ngx-tethys-divider.mjs +5 -5
- package/fesm2022/ngx-tethys-divider.mjs.map +1 -1
- package/fesm2022/ngx-tethys-dropdown.mjs +2 -1
- package/fesm2022/ngx-tethys-dropdown.mjs.map +1 -1
- package/fesm2022/ngx-tethys-i18n.mjs +11 -6
- package/fesm2022/ngx-tethys-i18n.mjs.map +1 -1
- package/fesm2022/ngx-tethys-layout.mjs +291 -334
- package/fesm2022/ngx-tethys-layout.mjs.map +1 -1
- package/fesm2022/ngx-tethys-list.mjs +11 -10
- package/fesm2022/ngx-tethys-list.mjs.map +1 -1
- package/fesm2022/ngx-tethys-radio.mjs +4 -4
- package/fesm2022/ngx-tethys-radio.mjs.map +1 -1
- package/fesm2022/ngx-tethys-select.mjs +164 -228
- package/fesm2022/ngx-tethys-select.mjs.map +1 -1
- package/fesm2022/ngx-tethys-shared.mjs +371 -523
- package/fesm2022/ngx-tethys-shared.mjs.map +1 -1
- package/fesm2022/ngx-tethys-tree-select.mjs +215 -281
- package/fesm2022/ngx-tethys-tree-select.mjs.map +1 -1
- package/fesm2022/ngx-tethys.mjs +1 -1
- package/fesm2022/ngx-tethys.mjs.map +1 -1
- package/i18n/i18n.d.ts +2 -1
- package/i18n/locales/de-de.d.ts +2 -1
- package/i18n/locales/en-us.d.ts +2 -1
- package/i18n/locales/ja-jp.d.ts +2 -1
- package/i18n/locales/zh-hans.d.ts +2 -1
- package/i18n/locales/zh-hant.d.ts +2 -1
- package/layout/header.component.d.ts +15 -19
- package/layout/layout.component.d.ts +3 -2
- package/layout/sidebar-header.component.d.ts +7 -8
- package/layout/sidebar.component.d.ts +32 -62
- package/package.json +54 -54
- package/schematics/version.d.ts +1 -1
- package/schematics/version.js +1 -1
- package/select/custom-select/custom-select.component.d.ts +33 -56
- package/select/native-select/native-select.component.d.ts +7 -13
- package/shared/base-form-check.component.d.ts +6 -8
- package/shared/directives/string-or-template-outlet.directive.d.ts +5 -6
- package/shared/directives/thy-autofocus.directive.d.ts +4 -6
- package/shared/directives/thy-scroll.directive.d.ts +5 -8
- package/shared/directives/thy-show.d.ts +3 -4
- package/shared/directives/thy-stop-propagation.directive.d.ts +4 -4
- package/shared/directives/view-outlet.directive.d.ts +6 -7
- package/shared/ng-transclude.directive.d.ts +2 -3
- package/shared/option/group/option-group.component.d.ts +5 -9
- package/shared/option/list-option/list-option.component.d.ts +4 -8
- package/shared/option/option.component.d.ts +10 -17
- package/shared/option/options-container.component.d.ts +1 -1
- package/shared/select/select-control/select-control.component.d.ts +27 -47
- package/tree-select/tree-select.component.d.ts +53 -70
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
import { ThyTagSize } from 'ngx-tethys/tag';
|
|
2
|
-
import { ElementRef,
|
|
2
|
+
import { ElementRef, OnInit, TemplateRef, Signal } from '@angular/core';
|
|
3
3
|
import { SelectOptionBase } from '../../option/select-option-base';
|
|
4
4
|
import * as i0 from "@angular/core";
|
|
5
|
-
import * as i1 from "ngx-tethys/util";
|
|
6
5
|
export type SelectControlSize = 'xs' | 'sm' | 'md' | 'lg' | '';
|
|
7
6
|
/**
|
|
8
7
|
* @private
|
|
@@ -11,54 +10,42 @@ export declare class ThySelectControl implements OnInit {
|
|
|
11
10
|
private renderer;
|
|
12
11
|
inputValue: string;
|
|
13
12
|
isComposing: boolean;
|
|
14
|
-
panelOpened: boolean;
|
|
15
|
-
isMultiple: boolean;
|
|
16
|
-
showSearch: boolean;
|
|
17
|
-
disabled: boolean;
|
|
18
|
-
size: SelectControlSize;
|
|
19
|
-
selectedOptions: SelectOptionBase | SelectOptionBase[];
|
|
20
13
|
searchInputControlClass: {
|
|
21
14
|
[key: string]: boolean;
|
|
22
15
|
};
|
|
23
|
-
tagSize: ThyTagSize;
|
|
24
16
|
private hostRenderer;
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
thyBorderless: boolean;
|
|
42
|
-
thyPreset: string;
|
|
43
|
-
thyOnSearch: EventEmitter<string>;
|
|
44
|
-
thyOnRemove: EventEmitter<{
|
|
17
|
+
readonly thyPanelOpened: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
|
|
18
|
+
readonly thyIsMultiple: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
|
|
19
|
+
readonly thyShowSearch: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
|
|
20
|
+
readonly thySelectedOptions: import("@angular/core").InputSignal<SelectOptionBase | SelectOptionBase[]>;
|
|
21
|
+
protected readonly previousSelectedOptions: import("@angular/core").WritableSignal<unknown>;
|
|
22
|
+
readonly thyDisabled: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
|
|
23
|
+
readonly customDisplayTemplate: import("@angular/core").InputSignal<TemplateRef<any>>;
|
|
24
|
+
readonly thyAllowClear: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
|
|
25
|
+
readonly thyPlaceholder: import("@angular/core").InputSignal<string>;
|
|
26
|
+
readonly thySize: import("@angular/core").InputSignal<SelectControlSize>;
|
|
27
|
+
readonly tagSize: Signal<ThyTagSize>;
|
|
28
|
+
readonly thyMaxTagCount: import("@angular/core").InputSignalWithTransform<number, unknown>;
|
|
29
|
+
readonly thyBorderless: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
|
|
30
|
+
readonly thyPreset: import("@angular/core").InputSignal<string>;
|
|
31
|
+
readonly thyOnSearch: import("@angular/core").OutputEmitterRef<string>;
|
|
32
|
+
readonly thyOnRemove: import("@angular/core").OutputEmitterRef<{
|
|
45
33
|
item: SelectOptionBase;
|
|
46
34
|
$eventOrigin: Event;
|
|
47
35
|
}>;
|
|
48
|
-
thyOnClear:
|
|
49
|
-
thyOnBlur:
|
|
50
|
-
inputElement: ElementRef
|
|
36
|
+
readonly thyOnClear: import("@angular/core").OutputEmitterRef<Event>;
|
|
37
|
+
readonly thyOnBlur: import("@angular/core").OutputEmitterRef<Event>;
|
|
38
|
+
readonly inputElement: Signal<ElementRef<any>>;
|
|
39
|
+
isSelectedValue: Signal<boolean>;
|
|
40
|
+
showClearIcon: Signal<boolean>;
|
|
41
|
+
maxSelectedTags: Signal<SelectOptionBase[]>;
|
|
51
42
|
get selectedValueStyle(): {
|
|
52
|
-
|
|
43
|
+
display: string;
|
|
53
44
|
};
|
|
54
45
|
get placeholderStyle(): {
|
|
55
|
-
|
|
46
|
+
display: string;
|
|
56
47
|
};
|
|
57
|
-
|
|
58
|
-
get multipleSelectedValue(): any;
|
|
59
|
-
get maxSelectedTags(): SelectOptionBase[];
|
|
60
|
-
get showClearIcon(): boolean;
|
|
61
|
-
get isSelectedValue(): boolean;
|
|
48
|
+
constructor();
|
|
62
49
|
ngOnInit(): void;
|
|
63
50
|
setSelectControlClass(): void;
|
|
64
51
|
setInputValue(value: string): void;
|
|
@@ -69,12 +56,5 @@ export declare class ThySelectControl implements OnInit {
|
|
|
69
56
|
trackValue(_index: number, option: SelectOptionBase): any;
|
|
70
57
|
onBlur(event: Event): void;
|
|
71
58
|
static ɵfac: i0.ɵɵFactoryDeclaration<ThySelectControl, never>;
|
|
72
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<ThySelectControl, "thy-select-control,[thySelectControl]", never, { "thyPanelOpened": { "alias": "thyPanelOpened"; "required": false; }; "thyIsMultiple": { "alias": "thyIsMultiple"; "required": false; }; "thyShowSearch": { "alias": "thyShowSearch"; "required": false; }; "thySelectedOptions": { "alias": "thySelectedOptions"; "required": false; }; "thyDisabled": { "alias": "thyDisabled"; "required": false; }; "customDisplayTemplate": { "alias": "customDisplayTemplate"; "required": false; }; "thyAllowClear": { "alias": "thyAllowClear"; "required": false; }; "thyPlaceholder": { "alias": "thyPlaceholder"; "required": false; }; "thySize": { "alias": "thySize"; "required": false; }; "thyMaxTagCount": { "alias": "thyMaxTagCount"; "required": false; }; "thyBorderless": { "alias": "thyBorderless"; "required": false; }; "thyPreset": { "alias": "thyPreset"; "required": false; }; }, { "thyOnSearch": "thyOnSearch"; "thyOnRemove": "thyOnRemove"; "thyOnClear": "thyOnClear"; "thyOnBlur": "thyOnBlur"; }, never, never, true, never>;
|
|
73
|
-
static ngAcceptInputType_thyPanelOpened: i1.ThyBooleanInput;
|
|
74
|
-
static ngAcceptInputType_thyIsMultiple: i1.ThyBooleanInput;
|
|
75
|
-
static ngAcceptInputType_thyShowSearch: i1.ThyBooleanInput;
|
|
76
|
-
static ngAcceptInputType_thyDisabled: i1.ThyBooleanInput;
|
|
77
|
-
static ngAcceptInputType_thyAllowClear: i1.ThyBooleanInput;
|
|
78
|
-
static ngAcceptInputType_thyMaxTagCount: unknown;
|
|
79
|
-
static ngAcceptInputType_thyBorderless: i1.ThyBooleanInput;
|
|
59
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ThySelectControl, "thy-select-control,[thySelectControl]", never, { "thyPanelOpened": { "alias": "thyPanelOpened"; "required": false; "isSignal": true; }; "thyIsMultiple": { "alias": "thyIsMultiple"; "required": false; "isSignal": true; }; "thyShowSearch": { "alias": "thyShowSearch"; "required": false; "isSignal": true; }; "thySelectedOptions": { "alias": "thySelectedOptions"; "required": false; "isSignal": true; }; "thyDisabled": { "alias": "thyDisabled"; "required": false; "isSignal": true; }; "customDisplayTemplate": { "alias": "customDisplayTemplate"; "required": false; "isSignal": true; }; "thyAllowClear": { "alias": "thyAllowClear"; "required": false; "isSignal": true; }; "thyPlaceholder": { "alias": "thyPlaceholder"; "required": false; "isSignal": true; }; "thySize": { "alias": "thySize"; "required": false; "isSignal": true; }; "thyMaxTagCount": { "alias": "thyMaxTagCount"; "required": false; "isSignal": true; }; "thyBorderless": { "alias": "thyBorderless"; "required": false; "isSignal": true; }; "thyPreset": { "alias": "thyPreset"; "required": false; "isSignal": true; }; }, { "thyOnSearch": "thyOnSearch"; "thyOnRemove": "thyOnRemove"; "thyOnClear": "thyOnClear"; "thyOnBlur": "thyOnBlur"; }, never, never, true, never>;
|
|
80
60
|
}
|
|
@@ -1,11 +1,10 @@
|
|
|
1
1
|
import { TabIndexDisabledControlValueAccessorMixin } from 'ngx-tethys/core';
|
|
2
2
|
import { Observable } from 'rxjs';
|
|
3
3
|
import { CdkConnectedOverlay, CdkOverlayOrigin, ConnectionPositionPair } from '@angular/cdk/overlay';
|
|
4
|
-
import { ElementRef,
|
|
4
|
+
import { ElementRef, TemplateRef, Signal } from '@angular/core';
|
|
5
5
|
import { ControlValueAccessor } from '@angular/forms';
|
|
6
6
|
import { ThyTreeSelectNode, ThyTreeSelectType } from './tree-select.class';
|
|
7
7
|
import * as i0 from "@angular/core";
|
|
8
|
-
import * as i1 from "ngx-tethys/util";
|
|
9
8
|
type InputSize = 'xs' | 'sm' | 'md' | 'lg' | '';
|
|
10
9
|
export declare function filterTreeData(treeNodes: ThyTreeSelectNode[], searchText: string, searchKey?: string): ThyTreeSelectNode[];
|
|
11
10
|
/**
|
|
@@ -13,122 +12,117 @@ export declare function filterTreeData(treeNodes: ThyTreeSelectNode[], searchTex
|
|
|
13
12
|
* @name thy-tree-select
|
|
14
13
|
* @order 10
|
|
15
14
|
*/
|
|
16
|
-
export declare class ThyTreeSelect extends TabIndexDisabledControlValueAccessorMixin implements
|
|
15
|
+
export declare class ThyTreeSelect extends TabIndexDisabledControlValueAccessorMixin implements ControlValueAccessor {
|
|
17
16
|
elementRef: ElementRef<any>;
|
|
18
17
|
private ngZone;
|
|
19
18
|
private ref;
|
|
20
19
|
private platformId;
|
|
21
20
|
private thyClickDispatcher;
|
|
22
21
|
private viewportRuler;
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
flattenTreeNodes: ThyTreeSelectNode[];
|
|
32
|
-
virtualTreeNodes: ThyTreeSelectNode[];
|
|
33
|
-
cdkConnectOverlayWidth: number;
|
|
22
|
+
private destroyRef;
|
|
23
|
+
expandTreeSelectOptions: import("@angular/core").WritableSignal<boolean>;
|
|
24
|
+
selectedValue: import("@angular/core").WritableSignal<any>;
|
|
25
|
+
selectedNode: import("@angular/core").WritableSignal<ThyTreeSelectNode>;
|
|
26
|
+
selectedNodes: import("@angular/core").WritableSignal<ThyTreeSelectNode[]>;
|
|
27
|
+
flattenTreeNodes: import("@angular/core").WritableSignal<ThyTreeSelectNode[]>;
|
|
28
|
+
virtualTreeNodes: import("@angular/core").WritableSignal<ThyTreeSelectNode[]>;
|
|
29
|
+
cdkConnectOverlayWidth: import("@angular/core").WritableSignal<number>;
|
|
34
30
|
expandedDropdownPositions: ConnectionPositionPair[];
|
|
35
31
|
icons: {
|
|
36
32
|
expand: string;
|
|
37
33
|
collapse: string;
|
|
38
34
|
gap?: number;
|
|
39
35
|
};
|
|
40
|
-
private initialled;
|
|
41
|
-
private destroy$;
|
|
42
36
|
private locale;
|
|
43
|
-
valueIsObject: boolean
|
|
44
|
-
|
|
45
|
-
thyTreeSelectTriggerDisplayRef: TemplateRef<any
|
|
46
|
-
treeNodeTemplateRef: TemplateRef<any
|
|
47
|
-
cdkOverlayOrigin: CdkOverlayOrigin
|
|
48
|
-
cdkConnectedOverlay: CdkConnectedOverlay
|
|
49
|
-
customDisplayTemplate: TemplateRef<any
|
|
37
|
+
valueIsObject: Signal<boolean>;
|
|
38
|
+
searchText: import("@angular/core").WritableSignal<string>;
|
|
39
|
+
readonly thyTreeSelectTriggerDisplayRef: Signal<TemplateRef<any>>;
|
|
40
|
+
readonly treeNodeTemplateRef: Signal<TemplateRef<any>>;
|
|
41
|
+
readonly cdkOverlayOrigin: Signal<CdkOverlayOrigin>;
|
|
42
|
+
readonly cdkConnectedOverlay: Signal<CdkConnectedOverlay>;
|
|
43
|
+
readonly customDisplayTemplate: Signal<TemplateRef<any>>;
|
|
50
44
|
/**
|
|
51
45
|
* treeNodes 数据
|
|
52
46
|
* @type ThyTreeSelectNode[]
|
|
53
47
|
*/
|
|
54
|
-
|
|
48
|
+
readonly thyTreeNodes: import("@angular/core").InputSignal<ThyTreeSelectNode[]>;
|
|
49
|
+
treeNodes: Signal<ThyTreeSelectNode[]>;
|
|
55
50
|
/**
|
|
56
51
|
* 开启虚拟滚动
|
|
57
52
|
*/
|
|
58
|
-
thyVirtualScroll: boolean
|
|
53
|
+
readonly thyVirtualScroll: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
|
|
59
54
|
/**
|
|
60
55
|
* 树节点的唯一标识
|
|
61
56
|
* @type string
|
|
62
57
|
*/
|
|
63
|
-
thyPrimaryKey: string
|
|
58
|
+
readonly thyPrimaryKey: import("@angular/core").InputSignal<string>;
|
|
64
59
|
/**
|
|
65
60
|
* 树节点的显示的字段 key
|
|
66
61
|
* @type string
|
|
67
62
|
*/
|
|
68
|
-
thyShowKey: string
|
|
69
|
-
thyChildCountKey: string
|
|
63
|
+
readonly thyShowKey: import("@angular/core").InputSignal<string>;
|
|
64
|
+
readonly thyChildCountKey: import("@angular/core").InputSignal<string>;
|
|
70
65
|
/**
|
|
71
66
|
* 单选时,是否显示清除按钮,当为 true 时,显示清除按钮
|
|
72
67
|
* @default false
|
|
73
68
|
*/
|
|
74
|
-
thyAllowClear: boolean
|
|
69
|
+
readonly thyAllowClear: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
|
|
75
70
|
/**
|
|
76
71
|
* 是否多选
|
|
77
72
|
* @type boolean
|
|
78
73
|
*/
|
|
79
|
-
thyMultiple: boolean
|
|
74
|
+
readonly thyMultiple: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
|
|
80
75
|
/**
|
|
81
76
|
* 是否禁用树选择器,当为 true 禁用树选择器
|
|
82
77
|
* @type boolean
|
|
83
78
|
*/
|
|
84
|
-
thyDisable: boolean
|
|
79
|
+
readonly thyDisable: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
|
|
85
80
|
get thyDisabled(): boolean;
|
|
86
81
|
/**
|
|
87
82
|
* 树选择框默认文字
|
|
88
83
|
* @type string
|
|
89
84
|
*/
|
|
90
|
-
thyPlaceholder: string
|
|
91
|
-
get placeholder(): string;
|
|
85
|
+
readonly thyPlaceholder: import("@angular/core").InputSignal<string>;
|
|
92
86
|
/**
|
|
93
87
|
* 控制树选择的输入框大小
|
|
94
88
|
* @type xs | sm | md | default | lg
|
|
95
89
|
*/
|
|
96
|
-
thySize: InputSize
|
|
90
|
+
readonly thySize: import("@angular/core").InputSignal<InputSize>;
|
|
97
91
|
/**
|
|
98
92
|
* 改变空选项的情况下的提示文本
|
|
99
93
|
* @type string
|
|
100
94
|
*/
|
|
101
|
-
thyEmptyOptionsText: string
|
|
95
|
+
readonly thyEmptyOptionsText: import("@angular/core").InputSignal<string>;
|
|
102
96
|
/**
|
|
103
97
|
* 设置是否隐藏节点(不可进行任何操作),优先级高于 thyHiddenNodeFn
|
|
104
98
|
* @type string
|
|
105
99
|
*/
|
|
106
|
-
thyHiddenNodeKey: string
|
|
100
|
+
readonly thyHiddenNodeKey: import("@angular/core").InputSignal<string>;
|
|
107
101
|
/**
|
|
108
102
|
* 设置是否禁用节点(不可进行任何操作),优先级高于 thyDisableNodeFn
|
|
109
103
|
* @type string
|
|
110
104
|
*/
|
|
111
|
-
thyDisableNodeKey: string
|
|
105
|
+
readonly thyDisableNodeKey: import("@angular/core").InputSignal<string>;
|
|
112
106
|
/**
|
|
113
107
|
* 是否异步加载节点的子节点(显示加载状态),当为 true 时,异步获取
|
|
114
108
|
* @type boolean
|
|
115
109
|
*/
|
|
116
|
-
thyAsyncNode: boolean
|
|
110
|
+
readonly thyAsyncNode: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
|
|
117
111
|
/**
|
|
118
112
|
* 是否展示全名
|
|
119
113
|
* @type boolean
|
|
120
114
|
*/
|
|
121
|
-
thyShowWholeName: boolean
|
|
115
|
+
readonly thyShowWholeName: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
|
|
122
116
|
/**
|
|
123
117
|
* 是否展示搜索
|
|
124
118
|
* @type boolean
|
|
125
119
|
*/
|
|
126
|
-
thyShowSearch: boolean
|
|
120
|
+
readonly thyShowSearch: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
|
|
127
121
|
/**
|
|
128
122
|
* 图标类型,支持 default | especial,已废弃
|
|
129
123
|
* @deprecated
|
|
130
124
|
*/
|
|
131
|
-
|
|
125
|
+
readonly thyIconType: import("@angular/core").InputSignal<ThyTreeSelectType>;
|
|
132
126
|
/**
|
|
133
127
|
* 设置是否隐藏节点(不可进行任何操作),优先级低于 thyHiddenNodeKey。
|
|
134
128
|
* @default (node: ThyTreeSelectNode) => boolean = (node: ThyTreeSelectNode) => node.hidden
|
|
@@ -148,19 +142,17 @@ export declare class ThyTreeSelect extends TabIndexDisabledControlValueAccessorM
|
|
|
148
142
|
* 树选择组件展开和折叠状态事件
|
|
149
143
|
*/
|
|
150
144
|
readonly thyExpandStatusChange: import("@angular/core").OutputEmitterRef<boolean>;
|
|
151
|
-
private _getNgModelType;
|
|
152
145
|
buildFlattenTreeNodes(): void;
|
|
153
146
|
private getFlattenTreeNodes;
|
|
154
147
|
writeValue(value: any): void;
|
|
155
148
|
constructor();
|
|
156
|
-
|
|
149
|
+
private bindClickEvent;
|
|
150
|
+
private bindResizeEvent;
|
|
157
151
|
onFocus($event: FocusEvent): void;
|
|
158
152
|
onBlur($event: FocusEvent): void;
|
|
159
|
-
|
|
160
|
-
get selectedValueObject(): ThyTreeSelectNode | ThyTreeSelectNode[];
|
|
153
|
+
readonly selectedValueObject: Signal<ThyTreeSelectNode | ThyTreeSelectNode[]>;
|
|
161
154
|
searchValue(searchText: string): void;
|
|
162
155
|
setPosition(): void;
|
|
163
|
-
private init;
|
|
164
156
|
private flattenNodes;
|
|
165
157
|
private _findTreeNode;
|
|
166
158
|
private setSelectedNodes;
|
|
@@ -176,36 +168,27 @@ export declare class ThyTreeSelect extends TabIndexDisabledControlValueAccessorM
|
|
|
176
168
|
selectNode(node: ThyTreeSelectNode): void;
|
|
177
169
|
getNodeChildren(node: ThyTreeSelectNode): Observable<ThyTreeSelectNode>;
|
|
178
170
|
static ɵfac: i0.ɵɵFactoryDeclaration<ThyTreeSelect, never>;
|
|
179
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<ThyTreeSelect, "thy-tree-select", never, { "thyTreeNodes": { "alias": "thyTreeNodes"; "required": false; }; "thyVirtualScroll": { "alias": "thyVirtualScroll"; "required": false; }; "thyPrimaryKey": { "alias": "thyPrimaryKey"; "required": false; }; "thyShowKey": { "alias": "thyShowKey"; "required": false; }; "thyChildCountKey": { "alias": "thyChildCountKey"; "required": false; }; "thyAllowClear": { "alias": "thyAllowClear"; "required": false; }; "thyMultiple": { "alias": "thyMultiple"; "required": false; }; "thyDisable": { "alias": "thyDisable"; "required": false; }; "thyPlaceholder": { "alias": "thyPlaceholder"; "required": false; }; "thySize": { "alias": "thySize"; "required": false; }; "thyEmptyOptionsText": { "alias": "thyEmptyOptionsText"; "required": false; }; "thyHiddenNodeKey": { "alias": "thyHiddenNodeKey"; "required": false; }; "thyDisableNodeKey": { "alias": "thyDisableNodeKey"; "required": false; }; "thyAsyncNode": { "alias": "thyAsyncNode"; "required": false; }; "thyShowWholeName": { "alias": "thyShowWholeName"; "required": false; }; "thyShowSearch": { "alias": "thyShowSearch"; "required": false; }; "thyIconType": { "alias": "thyIconType"; "required": false; }; "thyHiddenNodeFn": { "alias": "thyHiddenNodeFn"; "required": false; }; "thyDisableNodeFn": { "alias": "thyDisableNodeFn"; "required": false; }; "thyGetNodeChildren": { "alias": "thyGetNodeChildren"; "required": false; }; }, { "thyExpandStatusChange": "thyExpandStatusChange"; }, ["thyTreeSelectTriggerDisplayRef", "treeNodeTemplateRef"], never, true, never>;
|
|
180
|
-
static ngAcceptInputType_thyVirtualScroll: i1.ThyBooleanInput;
|
|
181
|
-
static ngAcceptInputType_thyAllowClear: i1.ThyBooleanInput;
|
|
182
|
-
static ngAcceptInputType_thyMultiple: i1.ThyBooleanInput;
|
|
183
|
-
static ngAcceptInputType_thyDisable: i1.ThyBooleanInput;
|
|
184
|
-
static ngAcceptInputType_thyAsyncNode: i1.ThyBooleanInput;
|
|
185
|
-
static ngAcceptInputType_thyShowWholeName: i1.ThyBooleanInput;
|
|
186
|
-
static ngAcceptInputType_thyShowSearch: i1.ThyBooleanInput;
|
|
171
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ThyTreeSelect, "thy-tree-select", never, { "thyTreeNodes": { "alias": "thyTreeNodes"; "required": false; "isSignal": true; }; "thyVirtualScroll": { "alias": "thyVirtualScroll"; "required": false; "isSignal": true; }; "thyPrimaryKey": { "alias": "thyPrimaryKey"; "required": false; "isSignal": true; }; "thyShowKey": { "alias": "thyShowKey"; "required": false; "isSignal": true; }; "thyChildCountKey": { "alias": "thyChildCountKey"; "required": false; "isSignal": true; }; "thyAllowClear": { "alias": "thyAllowClear"; "required": false; "isSignal": true; }; "thyMultiple": { "alias": "thyMultiple"; "required": false; "isSignal": true; }; "thyDisable": { "alias": "thyDisable"; "required": false; "isSignal": true; }; "thyPlaceholder": { "alias": "thyPlaceholder"; "required": false; "isSignal": true; }; "thySize": { "alias": "thySize"; "required": false; "isSignal": true; }; "thyEmptyOptionsText": { "alias": "thyEmptyOptionsText"; "required": false; "isSignal": true; }; "thyHiddenNodeKey": { "alias": "thyHiddenNodeKey"; "required": false; "isSignal": true; }; "thyDisableNodeKey": { "alias": "thyDisableNodeKey"; "required": false; "isSignal": true; }; "thyAsyncNode": { "alias": "thyAsyncNode"; "required": false; "isSignal": true; }; "thyShowWholeName": { "alias": "thyShowWholeName"; "required": false; "isSignal": true; }; "thyShowSearch": { "alias": "thyShowSearch"; "required": false; "isSignal": true; }; "thyIconType": { "alias": "thyIconType"; "required": false; "isSignal": true; }; "thyHiddenNodeFn": { "alias": "thyHiddenNodeFn"; "required": false; }; "thyDisableNodeFn": { "alias": "thyDisableNodeFn"; "required": false; }; "thyGetNodeChildren": { "alias": "thyGetNodeChildren"; "required": false; }; }, { "thyExpandStatusChange": "thyExpandStatusChange"; }, ["thyTreeSelectTriggerDisplayRef", "treeNodeTemplateRef"], never, true, never>;
|
|
187
172
|
}
|
|
188
173
|
/**
|
|
189
174
|
* @private
|
|
190
175
|
*/
|
|
191
|
-
export declare class ThyTreeSelectNodes
|
|
176
|
+
export declare class ThyTreeSelectNodes {
|
|
192
177
|
parent: ThyTreeSelect;
|
|
193
178
|
emptyIcon: Signal<string>;
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
showKey: string;
|
|
200
|
-
isMultiple: boolean;
|
|
201
|
-
valueIsObject: boolean;
|
|
202
|
-
selectedValue: any;
|
|
203
|
-
childCountKey: string;
|
|
204
|
-
treeNodeTemplateRef: TemplateRef<any>;
|
|
179
|
+
readonly treeNodes: import("@angular/core").InputSignal<ThyTreeSelectNode[]>;
|
|
180
|
+
readonly thyVirtualScroll: import("@angular/core").InputSignal<boolean>;
|
|
181
|
+
readonly isMultiple: Signal<boolean>;
|
|
182
|
+
readonly childCountKey: Signal<string>;
|
|
183
|
+
readonly treeNodeTemplateRef: Signal<TemplateRef<any>>;
|
|
205
184
|
defaultItemSize: number;
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
185
|
+
readonly thyPrimaryKey: Signal<string>;
|
|
186
|
+
readonly selectedNodes: Signal<ThyTreeSelectNode[]>;
|
|
187
|
+
readonly selectedNode: Signal<ThyTreeSelectNode>;
|
|
188
|
+
readonly hiddenNodeKey: Signal<string>;
|
|
189
|
+
readonly disableNodeKey: Signal<string>;
|
|
190
|
+
readonly thyVirtualHeight: Signal<string>;
|
|
191
|
+
readonly hasNodeChildren: Signal<boolean>;
|
|
209
192
|
treeNodeIsSelected(node: ThyTreeSelectNode): boolean | ThyTreeSelectNode;
|
|
210
193
|
treeNodeIsHidden(node: ThyTreeSelectNode): any;
|
|
211
194
|
treeNodeIsDisable(node: ThyTreeSelectNode): any;
|
|
@@ -215,6 +198,6 @@ export declare class ThyTreeSelectNodes implements OnInit {
|
|
|
215
198
|
nodeExpandToggle(event: Event, node: ThyTreeSelectNode): void;
|
|
216
199
|
tabTrackBy(index: number, item: ThyTreeSelectNode): number;
|
|
217
200
|
static ɵfac: i0.ɵɵFactoryDeclaration<ThyTreeSelectNodes, never>;
|
|
218
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<ThyTreeSelectNodes, "thy-tree-select-nodes", never, { "treeNodes": { "alias": "treeNodes"; "required": false; }; "thyVirtualScroll": { "alias": "thyVirtualScroll"; "required": false; }; }, {}, never, never, true, never>;
|
|
201
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ThyTreeSelectNodes, "thy-tree-select-nodes", never, { "treeNodes": { "alias": "treeNodes"; "required": false; "isSignal": true; }; "thyVirtualScroll": { "alias": "thyVirtualScroll"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
219
202
|
}
|
|
220
203
|
export {};
|