ngx-tethys 19.1.0-next.5 → 19.1.0-next.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/CHANGELOG.md +25 -0
- package/color-picker/coordinates.directive.d.ts +1 -2
- 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 +12 -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 +31 -36
- 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-menu.component.d.ts +1 -1
- package/dropdown/dropdown.directive.d.ts +4 -3
- 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-color-picker.mjs +4 -6
- package/fesm2022/ngx-tethys-color-picker.mjs.map +1 -1
- package/fesm2022/ngx-tethys-copy.mjs +2 -2
- package/fesm2022/ngx-tethys-copy.mjs.map +1 -1
- package/fesm2022/ngx-tethys-date-picker.mjs +841 -1068
- package/fesm2022/ngx-tethys-date-picker.mjs.map +1 -1
- package/fesm2022/ngx-tethys-dropdown.mjs +9 -11
- package/fesm2022/ngx-tethys-dropdown.mjs.map +1 -1
- package/fesm2022/ngx-tethys-flexible-text.mjs +4 -5
- package/fesm2022/ngx-tethys-flexible-text.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-image.mjs +5 -7
- package/fesm2022/ngx-tethys-image.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 +147 -166
- package/fesm2022/ngx-tethys-list.mjs.map +1 -1
- package/fesm2022/ngx-tethys-message.mjs +1 -2
- package/fesm2022/ngx-tethys-message.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 +386 -569
- package/fesm2022/ngx-tethys-shared.mjs.map +1 -1
- package/fesm2022/ngx-tethys-skeleton.mjs +1 -2
- package/fesm2022/ngx-tethys-skeleton.mjs.map +1 -1
- package/fesm2022/ngx-tethys-table.mjs +1 -2
- package/fesm2022/ngx-tethys-table.mjs.map +1 -1
- package/fesm2022/ngx-tethys-tooltip.mjs +109 -93
- package/fesm2022/ngx-tethys-tooltip.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/image/preview/image-preview.component.d.ts +2 -2
- 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/list/selection/selection-list.d.ts +33 -46
- package/package.json +1 -1
- 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-contextmenu.directive.d.ts +2 -2
- package/shared/directives/thy-ctrl-enter.directive.d.ts +2 -2
- package/shared/directives/thy-enter.directive.d.ts +2 -2
- package/shared/directives/thy-scroll.directive.d.ts +5 -8
- package/shared/directives/thy-show.d.ts +5 -6
- 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 +9 -13
- package/shared/option/option.component.d.ts +10 -17
- package/shared/option/option.token.d.ts +4 -3
- package/shared/option/options-container.component.d.ts +1 -1
- package/shared/select/select-control/select-control.component.d.ts +27 -47
- package/table/table-column.component.d.ts +15 -5
- package/tooltip/tooltip.directive.d.ts +20 -22
- package/tree-select/tree-select.component.d.ts +53 -70
|
@@ -1,7 +1,6 @@
|
|
|
1
|
-
import { ElementRef,
|
|
1
|
+
import { ElementRef, OnDestroy, OnInit, Signal, TemplateRef } from '@angular/core';
|
|
2
2
|
import { ThyResizeEvent } from 'ngx-tethys/resizable';
|
|
3
3
|
import * as i0 from "@angular/core";
|
|
4
|
-
import * as i1 from "ngx-tethys/util";
|
|
5
4
|
export type ThySidebarTheme = 'white' | 'light' | 'dark';
|
|
6
5
|
export type ThySidebarDirection = 'left' | 'right';
|
|
7
6
|
/**
|
|
@@ -11,53 +10,35 @@ export type ThySidebarDirection = 'left' | 'right';
|
|
|
11
10
|
*/
|
|
12
11
|
export declare class ThySidebarDirective implements OnInit {
|
|
13
12
|
private thyLayoutDirective;
|
|
14
|
-
sidebarIsolated: boolean;
|
|
15
|
-
isDivided: boolean;
|
|
16
|
-
thyLayoutSidebarWidth: number;
|
|
17
13
|
/**
|
|
18
14
|
* sidebar 位置,默认在左侧
|
|
19
15
|
*/
|
|
20
|
-
thyDirection: ThySidebarDirection
|
|
16
|
+
readonly thyDirection: import("@angular/core").InputSignal<ThySidebarDirection>;
|
|
21
17
|
/**
|
|
22
18
|
* 主题
|
|
23
19
|
* @type white | light | dark
|
|
24
20
|
* @default white
|
|
25
21
|
*/
|
|
26
|
-
thyTheme: ThySidebarTheme
|
|
22
|
+
readonly thyTheme: import("@angular/core").InputSignal<ThySidebarTheme>;
|
|
27
23
|
/**
|
|
28
24
|
* 宽度,默认是 240px,传入 `lg` 大小时宽度是300px
|
|
29
25
|
* @default 240px
|
|
30
26
|
*/
|
|
31
|
-
|
|
27
|
+
readonly thyWidth: import("@angular/core").InputSignalWithTransform<string | number, string | number>;
|
|
28
|
+
readonly sidebarWidth: import("@angular/core").WritableSignal<number>;
|
|
32
29
|
/**
|
|
33
30
|
* 是否和右侧 /左侧隔离,当为 true 时距右侧 /左侧会有 margin,同时边框会去掉
|
|
34
31
|
* @default false
|
|
35
32
|
*/
|
|
36
|
-
|
|
33
|
+
readonly thyIsolated: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
|
|
37
34
|
/**
|
|
38
35
|
* sidebar 是否有分割线。当`thyDirection`值为`left`时,控制右侧是否有分割线;当`thyDirection`值为`right`时,控制左侧是否有分割线。
|
|
39
36
|
* @default true
|
|
40
37
|
*/
|
|
41
|
-
|
|
42
|
-
/**
|
|
43
|
-
* 右侧是否有边框,已废弃,请使用 thyDivided
|
|
44
|
-
* @deprecated please use thyDivided
|
|
45
|
-
* @default true
|
|
46
|
-
*/
|
|
47
|
-
set thyHasBorderRight(value: boolean);
|
|
48
|
-
/**
|
|
49
|
-
* 左侧是否有边框,已废弃,请使用 thyDivided
|
|
50
|
-
* @deprecated please use thyDivided
|
|
51
|
-
* @default true
|
|
52
|
-
*/
|
|
53
|
-
set thyHasBorderLeft(value: boolean);
|
|
38
|
+
readonly thyDivided: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
|
|
54
39
|
ngOnInit(): void;
|
|
55
40
|
static ɵfac: i0.ɵɵFactoryDeclaration<ThySidebarDirective, never>;
|
|
56
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<ThySidebarDirective, "[thySidebar]", never, { "thyDirection": { "alias": "thyDirection"; "required": false; }; "thyTheme": { "alias": "thyTheme"; "required": false; }; "thyWidth": { "alias": "thyWidth"; "required": false; }; "thyIsolated": { "alias": "thyIsolated"; "required": false;
|
|
57
|
-
static ngAcceptInputType_thyIsolated: i1.ThyBooleanInput;
|
|
58
|
-
static ngAcceptInputType_thyDivided: i1.ThyBooleanInput;
|
|
59
|
-
static ngAcceptInputType_thyHasBorderRight: i1.ThyBooleanInput;
|
|
60
|
-
static ngAcceptInputType_thyHasBorderLeft: i1.ThyBooleanInput;
|
|
41
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<ThySidebarDirective, "[thySidebar]", never, { "thyDirection": { "alias": "thyDirection"; "required": false; "isSignal": true; }; "thyTheme": { "alias": "thyTheme"; "required": false; "isSignal": true; }; "thyWidth": { "alias": "thyWidth"; "required": false; "isSignal": true; }; "thyIsolated": { "alias": "thyIsolated"; "required": false; "isSignal": true; }; "thyDivided": { "alias": "thyDivided"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
61
42
|
}
|
|
62
43
|
/**
|
|
63
44
|
* 侧边栏布局组件
|
|
@@ -66,88 +47,77 @@ export declare class ThySidebarDirective implements OnInit {
|
|
|
66
47
|
*/
|
|
67
48
|
export declare class ThySidebar implements OnInit, OnDestroy {
|
|
68
49
|
private locale;
|
|
69
|
-
elementRef: ElementRef<any>;
|
|
50
|
+
readonly elementRef: ElementRef<any>;
|
|
70
51
|
private hotkeyDispatcher;
|
|
71
|
-
sidebarDirective: ThySidebarDirective;
|
|
72
|
-
|
|
52
|
+
readonly sidebarDirective: ThySidebarDirective;
|
|
53
|
+
protected readonly isMouseEnter: import("@angular/core").WritableSignal<boolean>;
|
|
54
|
+
protected readonly sidebarWidth: Signal<number>;
|
|
73
55
|
mouseenter($event: MouseEvent): void;
|
|
74
56
|
mouseleave($event: MouseEvent): void;
|
|
75
57
|
/**
|
|
76
58
|
* 宽度是否可以拖拽
|
|
77
59
|
* @default false
|
|
78
60
|
*/
|
|
79
|
-
thyDraggable: boolean
|
|
61
|
+
readonly thyDraggable: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
|
|
80
62
|
/**
|
|
81
63
|
* 拖拽的最大宽度
|
|
82
64
|
*/
|
|
83
|
-
thyDragMaxWidth: number
|
|
65
|
+
readonly thyDragMaxWidth: import("@angular/core").InputSignalWithTransform<number, unknown>;
|
|
84
66
|
/**
|
|
85
67
|
* 拖拽的最小宽度
|
|
86
68
|
*/
|
|
87
|
-
thyDragMinWidth: number
|
|
69
|
+
readonly thyDragMinWidth: import("@angular/core").InputSignalWithTransform<number, unknown>;
|
|
88
70
|
/**
|
|
89
71
|
* 展示收起的触发器自定义模板,默认显示展开收起的圆形图标,设置为 null 表示不展示触发元素,手动控制展开收起状态
|
|
90
72
|
* @type null | undefined | TemplateRef<any>
|
|
91
73
|
* @default undefined
|
|
92
74
|
*/
|
|
93
|
-
thyTrigger:
|
|
75
|
+
readonly thyTrigger: import("@angular/core").InputSignal<TemplateRef<any>>;
|
|
94
76
|
/**
|
|
95
77
|
* 收起状态改变后的事件
|
|
96
78
|
*/
|
|
97
|
-
thyCollapsedChange:
|
|
79
|
+
readonly thyCollapsedChange: import("@angular/core").OutputEmitterRef<boolean>;
|
|
98
80
|
/**
|
|
99
81
|
* 拖拽宽度的修改事件
|
|
100
82
|
*/
|
|
101
|
-
thyDragWidthChange:
|
|
83
|
+
readonly thyDragWidthChange: import("@angular/core").OutputEmitterRef<number>;
|
|
102
84
|
/**
|
|
103
85
|
* 开启收起/展开功能
|
|
104
86
|
* @default false
|
|
105
87
|
*/
|
|
106
|
-
|
|
107
|
-
get thyCollapsible(): boolean;
|
|
88
|
+
readonly thyCollapsible: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
|
|
108
89
|
/**
|
|
109
90
|
* 是否是收起
|
|
110
91
|
* @default false
|
|
111
92
|
*/
|
|
112
|
-
|
|
113
|
-
|
|
93
|
+
readonly thyCollapsed: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
|
|
94
|
+
readonly collapsed: import("@angular/core").WritableSignal<boolean>;
|
|
95
|
+
readonly collapseVisible: Signal<boolean>;
|
|
114
96
|
/**
|
|
115
97
|
* 收起后的宽度
|
|
116
98
|
*/
|
|
117
|
-
thyCollapsedWidth: number
|
|
99
|
+
readonly thyCollapsedWidth: import("@angular/core").InputSignalWithTransform<number, unknown>;
|
|
118
100
|
/**
|
|
119
101
|
* 默认宽度,双击后可恢复到此宽度,默认是 240px,传入 lg 大小时宽度是300px
|
|
120
102
|
*/
|
|
121
|
-
thyDefaultWidth: string | number
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
collapseVisible: boolean;
|
|
129
|
-
collapseHidden: boolean;
|
|
130
|
-
isRemoveTransition: boolean;
|
|
131
|
-
isResizable: boolean;
|
|
132
|
-
get dragMinWidth(): number;
|
|
103
|
+
readonly thyDefaultWidth: import("@angular/core").InputSignalWithTransform<string | number, string | number>;
|
|
104
|
+
readonly collapseTip: Signal<string>;
|
|
105
|
+
private originWidth;
|
|
106
|
+
readonly collapseHidden: import("@angular/core").WritableSignal<boolean>;
|
|
107
|
+
readonly isRemoveTransition: import("@angular/core").WritableSignal<boolean>;
|
|
108
|
+
readonly isResizable: import("@angular/core").WritableSignal<boolean>;
|
|
109
|
+
protected dragMinWidth: Signal<number>;
|
|
133
110
|
private hotkeySubscription;
|
|
111
|
+
constructor();
|
|
134
112
|
ngOnInit(): void;
|
|
135
113
|
private subscribeHotkeyEvent;
|
|
136
|
-
private updateCollapseTip;
|
|
137
114
|
resizeHandler({ width }: ThyResizeEvent): void;
|
|
138
115
|
resizeStart(): void;
|
|
139
116
|
resizeEnd(): void;
|
|
140
|
-
resizeHandleHover(event: MouseEvent, type: 'enter' | 'leave'): void;
|
|
141
117
|
toggleCollapse(event?: MouseEvent): void;
|
|
142
118
|
toggleResizable(event: MouseEvent, type: 'enter' | 'leave'): void;
|
|
143
119
|
restoreToDefaultWidth(): void;
|
|
144
120
|
ngOnDestroy(): void;
|
|
145
121
|
static ɵfac: i0.ɵɵFactoryDeclaration<ThySidebar, never>;
|
|
146
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<ThySidebar, "thy-sidebar", never, { "thyDraggable": { "alias": "thyDraggable"; "required": false; }; "thyDragMaxWidth": { "alias": "thyDragMaxWidth"; "required": false; }; "thyDragMinWidth": { "alias": "thyDragMinWidth"; "required": false; }; "thyTrigger": { "alias": "thyTrigger"; "required": false; }; "thyCollapsible": { "alias": "thyCollapsible"; "required": false; }; "thyCollapsed": { "alias": "thyCollapsed"; "required": false; }; "thyCollapsedWidth": { "alias": "thyCollapsedWidth"; "required": false; }; "thyDefaultWidth": { "alias": "thyDefaultWidth"; "required": false; }; }, { "thyCollapsedChange": "thyCollapsedChange"; "thyDragWidthChange": "thyDragWidthChange"; }, never, ["*"], true, [{ directive: typeof ThySidebarDirective; inputs: { "thyTheme": "thyTheme"; "thyDirection": "thyDirection"; "thyWidth": "thyWidth"; "thyIsolated": "thyIsolated"; "thyDivided": "thyDivided";
|
|
147
|
-
static ngAcceptInputType_thyDraggable: i1.ThyBooleanInput;
|
|
148
|
-
static ngAcceptInputType_thyDragMaxWidth: unknown;
|
|
149
|
-
static ngAcceptInputType_thyDragMinWidth: unknown;
|
|
150
|
-
static ngAcceptInputType_thyCollapsible: i1.ThyBooleanInput;
|
|
151
|
-
static ngAcceptInputType_thyCollapsed: i1.ThyBooleanInput;
|
|
152
|
-
static ngAcceptInputType_thyCollapsedWidth: unknown;
|
|
122
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ThySidebar, "thy-sidebar", never, { "thyDraggable": { "alias": "thyDraggable"; "required": false; "isSignal": true; }; "thyDragMaxWidth": { "alias": "thyDragMaxWidth"; "required": false; "isSignal": true; }; "thyDragMinWidth": { "alias": "thyDragMinWidth"; "required": false; "isSignal": true; }; "thyTrigger": { "alias": "thyTrigger"; "required": false; "isSignal": true; }; "thyCollapsible": { "alias": "thyCollapsible"; "required": false; "isSignal": true; }; "thyCollapsed": { "alias": "thyCollapsed"; "required": false; "isSignal": true; }; "thyCollapsedWidth": { "alias": "thyCollapsedWidth"; "required": false; "isSignal": true; }; "thyDefaultWidth": { "alias": "thyDefaultWidth"; "required": false; "isSignal": true; }; }, { "thyCollapsedChange": "thyCollapsedChange"; "thyDragWidthChange": "thyDragWidthChange"; }, never, ["*"], true, [{ directive: typeof ThySidebarDirective; inputs: { "thyTheme": "thyTheme"; "thyDirection": "thyDirection"; "thyWidth": "thyWidth"; "thyIsolated": "thyIsolated"; "thyDivided": "thyDivided"; }; outputs: {}; }]>;
|
|
153
123
|
}
|
|
@@ -1,11 +1,10 @@
|
|
|
1
1
|
import { IThyListOptionParentComponent, ThyListOption } from 'ngx-tethys/shared';
|
|
2
2
|
import { SelectionModel } from '@angular/cdk/collections';
|
|
3
|
-
import { AfterContentInit, ElementRef,
|
|
3
|
+
import { AfterContentInit, ElementRef, OnDestroy, OnInit, QueryList } from '@angular/core';
|
|
4
4
|
import { ControlValueAccessor } from '@angular/forms';
|
|
5
5
|
import { ThyListLayout } from 'ngx-tethys/shared';
|
|
6
6
|
import { ThySelectionListChange } from './selection.interface';
|
|
7
7
|
import * as i0 from "@angular/core";
|
|
8
|
-
import * as i1 from "ngx-tethys/util";
|
|
9
8
|
export type ThyListSize = 'sm' | 'md' | 'lg';
|
|
10
9
|
/**
|
|
11
10
|
* @name thy-selection-list,[thy-selection-list]
|
|
@@ -16,93 +15,84 @@ export declare class ThySelectionList implements OnInit, OnDestroy, AfterContent
|
|
|
16
15
|
private elementRef;
|
|
17
16
|
private ngZone;
|
|
18
17
|
private changeDetectorRef;
|
|
19
|
-
private
|
|
20
|
-
private
|
|
21
|
-
private
|
|
22
|
-
private _modelValues;
|
|
18
|
+
private keyManager;
|
|
19
|
+
private bindKeyEventUnsubscribe;
|
|
20
|
+
private modelValues;
|
|
23
21
|
private hostRenderer;
|
|
24
22
|
/** The currently selected options. */
|
|
25
23
|
selectionModel: SelectionModel<any>;
|
|
26
24
|
disabled: boolean;
|
|
27
|
-
layout: ThyListLayout;
|
|
28
|
-
_isList: boolean;
|
|
29
|
-
_isSelectionList: boolean;
|
|
30
|
-
multiple: boolean;
|
|
31
|
-
isLayoutGrid: boolean;
|
|
32
25
|
/**
|
|
33
26
|
* @internal
|
|
34
27
|
*/
|
|
35
28
|
options: QueryList<ThyListOption>;
|
|
36
29
|
/**
|
|
37
30
|
* 改变 grid item 的选择模式,使其支持多选
|
|
38
|
-
* @default true
|
|
39
31
|
*/
|
|
40
|
-
|
|
32
|
+
readonly multiple: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
|
|
41
33
|
/**
|
|
42
34
|
* 绑定键盘事件的容器
|
|
43
35
|
* @type HTMLElement | ElementRef | string
|
|
44
36
|
* @default thy-selection-list 组件绑定的元素
|
|
45
37
|
*/
|
|
46
|
-
thyBindKeyEventContainer:
|
|
38
|
+
readonly thyBindKeyEventContainer: import("@angular/core").InputSignal<string | HTMLElement | ElementRef<any>>;
|
|
47
39
|
/**
|
|
48
40
|
* 出现滚动条的容器
|
|
49
41
|
* @type HTMLElement | ElementRef | string
|
|
50
42
|
* @default thy-selection-list 组件绑定的元素
|
|
51
43
|
*/
|
|
52
|
-
thyScrollContainer:
|
|
44
|
+
readonly thyScrollContainer: import("@angular/core").InputSignal<string | HTMLElement | ElementRef<any>>;
|
|
53
45
|
/**
|
|
54
46
|
* 键盘事件触发 Before 调用,如果返回 false 则停止继续执行
|
|
55
47
|
*/
|
|
56
|
-
thyBeforeKeydown: (event?: KeyboardEvent) => boolean
|
|
48
|
+
readonly thyBeforeKeydown: import("@angular/core").InputSignal<(event?: KeyboardEvent) => boolean>;
|
|
57
49
|
/**
|
|
58
50
|
* Option Value 唯一的 Key,用于存储哪些选择被选中的唯一值,只有 Option 的 thyValue 是对象的时才可以传入该选项
|
|
59
51
|
*/
|
|
60
|
-
thyUniqueKey: string
|
|
52
|
+
readonly thyUniqueKey: import("@angular/core").InputSignal<string>;
|
|
61
53
|
/**
|
|
62
54
|
* 比较2个选项的 Value 是否相同
|
|
63
55
|
*/
|
|
64
|
-
thyCompareWith: (o1: any, o2: any) => boolean
|
|
56
|
+
readonly thyCompareWith: import("@angular/core").InputSignal<(o1: any, o2: any) => boolean>;
|
|
65
57
|
/**
|
|
66
58
|
* grid item 的展示样式
|
|
67
59
|
* @type list | grid
|
|
68
|
-
* @default list
|
|
69
60
|
*/
|
|
70
|
-
|
|
61
|
+
readonly layout: import("@angular/core").InputSignal<ThyListLayout>;
|
|
62
|
+
readonly isLayoutGrid: import("@angular/core").Signal<boolean>;
|
|
71
63
|
/**
|
|
72
64
|
* 是否自动激活第一项
|
|
73
65
|
*/
|
|
74
|
-
|
|
66
|
+
readonly thyAutoActiveFirstItem: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
|
|
75
67
|
/**
|
|
76
68
|
* 改变 grid item 的大小,支持默认以及 sm 两种大小
|
|
77
69
|
* @type sm | md | lg
|
|
78
70
|
*/
|
|
79
|
-
|
|
80
|
-
private spaceEnabled;
|
|
71
|
+
readonly thySize: import("@angular/core").InputSignal<ThyListSize>;
|
|
81
72
|
/**
|
|
82
73
|
* 是否按下空格切换聚焦选项
|
|
83
74
|
*/
|
|
84
|
-
|
|
75
|
+
readonly thySpaceKeyEnabled: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
|
|
85
76
|
/**
|
|
86
77
|
* 每当选项的选定状态发生更改时,都会触发更改事件
|
|
87
|
-
* @type EventEmitter<ThySelectionListChange>
|
|
88
78
|
*/
|
|
89
|
-
readonly thySelectionChange:
|
|
90
|
-
private
|
|
91
|
-
private
|
|
92
|
-
|
|
93
|
-
private
|
|
94
|
-
private
|
|
95
|
-
private
|
|
96
|
-
private
|
|
97
|
-
private
|
|
98
|
-
private
|
|
99
|
-
private
|
|
100
|
-
private
|
|
101
|
-
private
|
|
102
|
-
private
|
|
103
|
-
private
|
|
104
|
-
private
|
|
105
|
-
private
|
|
79
|
+
readonly thySelectionChange: import("@angular/core").OutputEmitterRef<ThySelectionListChange<any>>;
|
|
80
|
+
private onTouched;
|
|
81
|
+
private onChange;
|
|
82
|
+
constructor();
|
|
83
|
+
private emitChangeEvent;
|
|
84
|
+
private emitModelValueChange;
|
|
85
|
+
private toggleFocusedOption;
|
|
86
|
+
private initializeFocusKeyManager;
|
|
87
|
+
private instanceSelectionModel;
|
|
88
|
+
private getElementBySelector;
|
|
89
|
+
private compareValue;
|
|
90
|
+
private getOptionSelectionValue;
|
|
91
|
+
private setSelectionByValues;
|
|
92
|
+
private setAllOptionsSelected;
|
|
93
|
+
private getOptionByValue;
|
|
94
|
+
private getActiveOption;
|
|
95
|
+
private setListSize;
|
|
106
96
|
ngOnInit(): void;
|
|
107
97
|
writeValue(value: any[] | any): void;
|
|
108
98
|
registerOnChange(fn: any): void;
|
|
@@ -122,8 +112,5 @@ export declare class ThySelectionList implements OnInit, OnDestroy, AfterContent
|
|
|
122
112
|
ngAfterContentInit(): void;
|
|
123
113
|
ngOnDestroy(): void;
|
|
124
114
|
static ɵfac: i0.ɵɵFactoryDeclaration<ThySelectionList, never>;
|
|
125
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<ThySelectionList, "thy-selection-list,[thy-selection-list]", never, { "
|
|
126
|
-
static ngAcceptInputType_thyMultiple: i1.ThyBooleanInput;
|
|
127
|
-
static ngAcceptInputType_thyAutoActiveFirstItem: i1.ThyBooleanInput;
|
|
128
|
-
static ngAcceptInputType_thySpaceKeyEnabled: i1.ThyBooleanInput;
|
|
115
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ThySelectionList, "thy-selection-list,[thy-selection-list]", never, { "multiple": { "alias": "thyMultiple"; "required": false; "isSignal": true; }; "thyBindKeyEventContainer": { "alias": "thyBindKeyEventContainer"; "required": false; "isSignal": true; }; "thyScrollContainer": { "alias": "thyScrollContainer"; "required": false; "isSignal": true; }; "thyBeforeKeydown": { "alias": "thyBeforeKeydown"; "required": false; "isSignal": true; }; "thyUniqueKey": { "alias": "thyUniqueKey"; "required": false; "isSignal": true; }; "thyCompareWith": { "alias": "thyCompareWith"; "required": false; "isSignal": true; }; "layout": { "alias": "thyLayout"; "required": false; "isSignal": true; }; "thyAutoActiveFirstItem": { "alias": "thyAutoActiveFirstItem"; "required": false; "isSignal": true; }; "thySize": { "alias": "thySize"; "required": false; "isSignal": true; }; "thySpaceKeyEnabled": { "alias": "thySpaceKeyEnabled"; "required": false; "isSignal": true; }; }, { "thySelectionChange": "thySelectionChange"; }, ["options"], ["*"], true, never>;
|
|
129
116
|
}
|
package/package.json
CHANGED
package/schematics/version.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const VERSION = "19.1.0-next.
|
|
1
|
+
export declare const VERSION = "19.1.0-next.7";
|
package/schematics/version.js
CHANGED
|
@@ -5,7 +5,7 @@ import { Observable } from 'rxjs';
|
|
|
5
5
|
import { ActiveDescendantKeyManager } from '@angular/cdk/a11y';
|
|
6
6
|
import { SelectionModel } from '@angular/cdk/collections';
|
|
7
7
|
import { CdkConnectedOverlay, ConnectionPositionPair, ScrollStrategy } from '@angular/cdk/overlay';
|
|
8
|
-
import { AfterContentInit, AfterViewInit, ElementRef,
|
|
8
|
+
import { AfterContentInit, AfterViewInit, ElementRef, OnDestroy, OnInit, QueryList, TemplateRef, Signal } from '@angular/core';
|
|
9
9
|
import { ControlValueAccessor } from '@angular/forms';
|
|
10
10
|
import { ThyDropdownWidthMode, ThySelectConfig } from '../select.config';
|
|
11
11
|
import * as i0 from "@angular/core";
|
|
@@ -51,10 +51,7 @@ export declare class ThySelect extends TabIndexDisabledControlValueAccessorMixin
|
|
|
51
51
|
selectConfig: ThySelectConfig;
|
|
52
52
|
emptyIcon: Signal<string>;
|
|
53
53
|
disabled: boolean;
|
|
54
|
-
size: SelectControlSize;
|
|
55
54
|
mode: SelectMode;
|
|
56
|
-
emptyStateText: string;
|
|
57
|
-
emptySearchMessageText: string;
|
|
58
55
|
scrollTop: number;
|
|
59
56
|
modalValue: any;
|
|
60
57
|
defaultOffset: number;
|
|
@@ -66,7 +63,7 @@ export declare class ThySelect extends TabIndexDisabledControlValueAccessorMixin
|
|
|
66
63
|
* 设置下拉框的最小宽度,默认值 `match-select`,表示与输入框的宽度一致;`min-width` 表示最小宽度为200px;支持自定义最小宽度,比如传 `{minWidth: 150}` 表示最小宽度为150px
|
|
67
64
|
* @default match-select
|
|
68
65
|
*/
|
|
69
|
-
thyDropdownWidthMode: ThyDropdownWidthMode
|
|
66
|
+
readonly thyDropdownWidthMode: import("@angular/core").InputSignal<ThyDropdownWidthMode>;
|
|
70
67
|
dropDownPositions: ConnectionPositionPair[];
|
|
71
68
|
selectionModel: SelectionModel<ThyOption>;
|
|
72
69
|
triggerRectWidth: number;
|
|
@@ -80,74 +77,68 @@ export declare class ThySelect extends TabIndexDisabledControlValueAccessorMixin
|
|
|
80
77
|
private config;
|
|
81
78
|
private readonly destroy$;
|
|
82
79
|
readonly optionSelectionChanges: Observable<ThyOptionSelectionChangeEvent>;
|
|
83
|
-
cdkConnectedOverlay: CdkConnectedOverlay
|
|
84
|
-
isSelectCustom: boolean;
|
|
85
|
-
isSelect: boolean;
|
|
80
|
+
readonly cdkConnectedOverlay: Signal<CdkConnectedOverlay>;
|
|
86
81
|
keyManager: ActiveDescendantKeyManager<ThyOption>;
|
|
87
82
|
panelOpen: boolean;
|
|
88
83
|
/**
|
|
89
84
|
* 搜索时回调
|
|
90
85
|
*/
|
|
91
|
-
thyOnSearch:
|
|
86
|
+
readonly thyOnSearch: import("@angular/core").OutputEmitterRef<string>;
|
|
92
87
|
/**
|
|
93
88
|
* 下拉菜单滚动到底部事件,可以用这个事件实现滚动加载
|
|
94
89
|
*/
|
|
95
|
-
thyOnScrollToBottom:
|
|
90
|
+
readonly thyOnScrollToBottom: import("@angular/core").OutputEmitterRef<void>;
|
|
96
91
|
/**
|
|
97
92
|
* 下拉菜单展开和折叠状态事件
|
|
98
93
|
*/
|
|
99
|
-
thyOnExpandStatusChange:
|
|
94
|
+
readonly thyOnExpandStatusChange: import("@angular/core").OutputEmitterRef<boolean>;
|
|
100
95
|
/**
|
|
101
96
|
* 下拉列表是否显示搜索框
|
|
102
|
-
* @default false
|
|
103
97
|
*/
|
|
104
|
-
thyShowSearch: boolean
|
|
98
|
+
readonly thyShowSearch: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
|
|
105
99
|
/**
|
|
106
100
|
* 选择框默认文字
|
|
107
101
|
*/
|
|
108
|
-
thyPlaceHolder: string
|
|
102
|
+
readonly thyPlaceHolder: import("@angular/core").InputSignal<string>;
|
|
109
103
|
/**
|
|
110
104
|
* 是否使用服务端搜索,当为 true 时,将不再在前端进行过滤
|
|
111
|
-
* @default false
|
|
112
105
|
*/
|
|
113
|
-
thyServerSearch: boolean
|
|
106
|
+
readonly thyServerSearch: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
|
|
114
107
|
/**
|
|
115
108
|
* 异步加载 loading 状态,false 表示加载中,true 表示加载完成
|
|
116
109
|
*/
|
|
117
|
-
thyLoadState: boolean
|
|
110
|
+
readonly thyLoadState: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
|
|
118
111
|
/**
|
|
119
112
|
* 是否自动设置选项第一条为高亮状态
|
|
120
113
|
*/
|
|
121
|
-
thyAutoActiveFirstItem: boolean
|
|
114
|
+
readonly thyAutoActiveFirstItem: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
|
|
122
115
|
/**
|
|
123
116
|
* 下拉选择模式
|
|
124
117
|
* @type 'multiple' | ''
|
|
125
118
|
*/
|
|
126
|
-
|
|
127
|
-
get thyMode(): SelectMode;
|
|
119
|
+
readonly thyMode: import("@angular/core").InputSignal<SelectMode>;
|
|
128
120
|
/**
|
|
129
121
|
* 操作图标类型
|
|
130
122
|
* @type primary | success | danger | warning
|
|
131
123
|
* @default primary
|
|
132
124
|
*/
|
|
133
|
-
|
|
134
|
-
set thySize(value: SelectControlSize);
|
|
125
|
+
readonly thySize: import("@angular/core").InputSignal<SelectControlSize>;
|
|
135
126
|
/**
|
|
136
127
|
* 数据为空时显示的提示文字
|
|
137
128
|
*/
|
|
138
|
-
|
|
129
|
+
readonly thyEmptyStateText: import("@angular/core").InputSignalWithTransform<string, string>;
|
|
139
130
|
/**
|
|
140
131
|
* 搜索结果为空时显示的提示文字
|
|
141
132
|
*/
|
|
142
|
-
|
|
133
|
+
readonly thyEmptySearchMessageText: import("@angular/core").InputSignalWithTransform<string, string>;
|
|
143
134
|
/**
|
|
144
135
|
* 滚动加载是否可用,只能当这个参数可以,下面的thyOnScrollToBottom事件才会触发
|
|
145
136
|
*/
|
|
146
|
-
thyEnableScrollLoad: boolean
|
|
137
|
+
readonly thyEnableScrollLoad: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
|
|
147
138
|
/**
|
|
148
139
|
* 单选( thyMode="" 或者不设置)时,选择框支持清除
|
|
149
140
|
*/
|
|
150
|
-
thyAllowClear: boolean
|
|
141
|
+
readonly thyAllowClear: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
|
|
151
142
|
/**
|
|
152
143
|
* 是否禁用
|
|
153
144
|
* @default false
|
|
@@ -157,63 +148,59 @@ export declare class ThySelect extends TabIndexDisabledControlValueAccessorMixin
|
|
|
157
148
|
/**
|
|
158
149
|
* 排序比较函数
|
|
159
150
|
*/
|
|
160
|
-
thySortComparator: (a: ThyOption, b: ThyOption, options: ThyOption[]) => number
|
|
151
|
+
readonly thySortComparator: import("@angular/core").InputSignal<(a: ThyOption, b: ThyOption, options: ThyOption[]) => number>;
|
|
161
152
|
/**
|
|
162
153
|
* Footer 模板,默认值为空不显示 Footer
|
|
163
|
-
* @type TemplateRef
|
|
164
154
|
*/
|
|
165
|
-
thyFooterTemplate: TemplateRef<any
|
|
155
|
+
readonly thyFooterTemplate: import("@angular/core").InputSignal<TemplateRef<any>>;
|
|
166
156
|
/**
|
|
167
157
|
* 弹出位置
|
|
168
158
|
* @type ThyPlacement
|
|
169
159
|
*/
|
|
170
|
-
thyPlacement: ThyPlacement
|
|
160
|
+
readonly thyPlacement: import("@angular/core").InputSignal<ThyPlacement>;
|
|
171
161
|
/**
|
|
172
162
|
* 自定义 Overlay Origin
|
|
173
163
|
*/
|
|
174
|
-
thyOrigin:
|
|
164
|
+
readonly thyOrigin: import("@angular/core").InputSignal<HTMLElement | ElementRef<any>>;
|
|
175
165
|
/**
|
|
176
166
|
* 自定义 Footer 模板容器 class
|
|
177
167
|
*/
|
|
178
|
-
thyFooterClass: string
|
|
168
|
+
readonly thyFooterClass: import("@angular/core").InputSignal<string>;
|
|
179
169
|
/**
|
|
180
170
|
* @private
|
|
181
171
|
*/
|
|
182
|
-
selectedValueDisplayRef: TemplateRef<any
|
|
172
|
+
readonly selectedValueDisplayRef: Signal<TemplateRef<any>>;
|
|
183
173
|
/**
|
|
184
174
|
* 初始化时,是否展开面板
|
|
185
|
-
* @default false
|
|
186
175
|
*/
|
|
187
|
-
thyAutoExpand: boolean
|
|
176
|
+
readonly thyAutoExpand: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
|
|
188
177
|
/**
|
|
189
178
|
* 是否弹出透明遮罩,如果显示遮罩则会阻止滚动区域滚动
|
|
190
179
|
*/
|
|
191
|
-
thyHasBackdrop: boolean
|
|
180
|
+
readonly thyHasBackdrop: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
|
|
192
181
|
/**
|
|
193
182
|
* 设置多选时最大显示的标签数量,0 表示不限制
|
|
194
183
|
*/
|
|
195
|
-
thyMaxTagCount: number
|
|
184
|
+
readonly thyMaxTagCount: import("@angular/core").InputSignalWithTransform<number, unknown>;
|
|
196
185
|
/**
|
|
197
186
|
* 是否隐藏选择框边框
|
|
198
|
-
* @default false
|
|
199
187
|
*/
|
|
200
|
-
thyBorderless: boolean
|
|
188
|
+
readonly thyBorderless: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
|
|
201
189
|
isReactiveDriven: boolean;
|
|
202
190
|
innerOptions: ThySelectOptionModel[];
|
|
203
191
|
optionGroups: ThyOptionGroupModel[];
|
|
204
192
|
/**
|
|
205
193
|
* option 列表
|
|
206
|
-
* @type ThySelectOptionModel[]
|
|
207
194
|
*/
|
|
208
|
-
|
|
195
|
+
readonly thyOptions: import("@angular/core").InputSignalWithTransform<ThySelectOptionModel[], ThySelectOptionModel[]>;
|
|
209
196
|
options: QueryList<ThyOption>;
|
|
210
197
|
/**
|
|
211
198
|
* 目前只支持多选选中项的展示,默认为空,渲染文字模板,传入tag,渲染展示模板,
|
|
212
199
|
* @default ''|tag
|
|
213
200
|
*/
|
|
214
|
-
thyPreset: string
|
|
201
|
+
readonly thyPreset: import("@angular/core").InputSignal<string>;
|
|
215
202
|
trigger: ElementRef<HTMLElement>;
|
|
216
|
-
panel: ElementRef<HTMLElement
|
|
203
|
+
readonly panel: Signal<ElementRef<HTMLElement>>;
|
|
217
204
|
/**
|
|
218
205
|
* @private
|
|
219
206
|
*/
|
|
@@ -222,8 +209,8 @@ export declare class ThySelect extends TabIndexDisabledControlValueAccessorMixin
|
|
|
222
209
|
/**
|
|
223
210
|
* @private
|
|
224
211
|
*/
|
|
225
|
-
contentGroups:
|
|
226
|
-
viewGroups:
|
|
212
|
+
readonly contentGroups: Signal<readonly ThySelectOptionGroup[]>;
|
|
213
|
+
readonly viewGroups: Signal<readonly ThySelectOptionGroup[]>;
|
|
227
214
|
handleKeydown(event: KeyboardEvent): void;
|
|
228
215
|
get optionsChanges$(): Observable<ThyOption[]>;
|
|
229
216
|
private buildScrollStrategy;
|
|
@@ -278,17 +265,7 @@ export declare class ThySelect extends TabIndexDisabledControlValueAccessorMixin
|
|
|
278
265
|
private unsubscribeTriggerResize;
|
|
279
266
|
ngOnDestroy(): void;
|
|
280
267
|
static ɵfac: i0.ɵɵFactoryDeclaration<ThySelect, never>;
|
|
281
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<ThySelect, "thy-select,thy-custom-select", ["thySelect"], { "thyDropdownWidthMode": { "alias": "thyDropdownWidthMode"; "required": false; }; "thyShowSearch": { "alias": "thyShowSearch"; "required": false; }; "thyPlaceHolder": { "alias": "thyPlaceHolder"; "required": false; }; "thyServerSearch": { "alias": "thyServerSearch"; "required": false; }; "thyLoadState": { "alias": "thyLoadState"; "required": false; }; "thyAutoActiveFirstItem": { "alias": "thyAutoActiveFirstItem"; "required": false; }; "thyMode": { "alias": "thyMode"; "required": false; }; "thySize": { "alias": "thySize"; "required": false; }; "thyEmptyStateText": { "alias": "thyEmptyStateText"; "required": false; }; "thyEmptySearchMessageText": { "alias": "thyEmptySearchMessageText"; "required": false; }; "thyEnableScrollLoad": { "alias": "thyEnableScrollLoad"; "required": false; }; "thyAllowClear": { "alias": "thyAllowClear"; "required": false; }; "thyDisabled": { "alias": "thyDisabled"; "required": false; }; "thySortComparator": { "alias": "thySortComparator"; "required": false; }; "thyFooterTemplate": { "alias": "thyFooterTemplate"; "required": false; }; "thyPlacement": { "alias": "thyPlacement"; "required": false; }; "thyOrigin": { "alias": "thyOrigin"; "required": false; }; "thyFooterClass": { "alias": "thyFooterClass"; "required": false; }; "thyAutoExpand": { "alias": "thyAutoExpand"; "required": false; }; "thyHasBackdrop": { "alias": "thyHasBackdrop"; "required": false; }; "thyMaxTagCount": { "alias": "thyMaxTagCount"; "required": false; }; "thyBorderless": { "alias": "thyBorderless"; "required": false; }; "thyOptions": { "alias": "thyOptions"; "required": false; }; "thyPreset": { "alias": "thyPreset"; "required": false; }; }, { "thyOnSearch": "thyOnSearch"; "thyOnScrollToBottom": "thyOnScrollToBottom"; "thyOnExpandStatusChange": "thyOnExpandStatusChange"; }, ["selectedValueDisplayRef", "
|
|
282
|
-
static ngAcceptInputType_thyShowSearch: i1.ThyBooleanInput;
|
|
283
|
-
static ngAcceptInputType_thyServerSearch: i1.ThyBooleanInput;
|
|
284
|
-
static ngAcceptInputType_thyLoadState: i1.ThyBooleanInput;
|
|
285
|
-
static ngAcceptInputType_thyAutoActiveFirstItem: i1.ThyBooleanInput;
|
|
286
|
-
static ngAcceptInputType_thyEnableScrollLoad: i1.ThyBooleanInput;
|
|
287
|
-
static ngAcceptInputType_thyAllowClear: i1.ThyBooleanInput;
|
|
268
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ThySelect, "thy-select,thy-custom-select", ["thySelect"], { "thyDropdownWidthMode": { "alias": "thyDropdownWidthMode"; "required": false; "isSignal": true; }; "thyShowSearch": { "alias": "thyShowSearch"; "required": false; "isSignal": true; }; "thyPlaceHolder": { "alias": "thyPlaceHolder"; "required": false; "isSignal": true; }; "thyServerSearch": { "alias": "thyServerSearch"; "required": false; "isSignal": true; }; "thyLoadState": { "alias": "thyLoadState"; "required": false; "isSignal": true; }; "thyAutoActiveFirstItem": { "alias": "thyAutoActiveFirstItem"; "required": false; "isSignal": true; }; "thyMode": { "alias": "thyMode"; "required": false; "isSignal": true; }; "thySize": { "alias": "thySize"; "required": false; "isSignal": true; }; "thyEmptyStateText": { "alias": "thyEmptyStateText"; "required": false; "isSignal": true; }; "thyEmptySearchMessageText": { "alias": "thyEmptySearchMessageText"; "required": false; "isSignal": true; }; "thyEnableScrollLoad": { "alias": "thyEnableScrollLoad"; "required": false; "isSignal": true; }; "thyAllowClear": { "alias": "thyAllowClear"; "required": false; "isSignal": true; }; "thyDisabled": { "alias": "thyDisabled"; "required": false; }; "thySortComparator": { "alias": "thySortComparator"; "required": false; "isSignal": true; }; "thyFooterTemplate": { "alias": "thyFooterTemplate"; "required": false; "isSignal": true; }; "thyPlacement": { "alias": "thyPlacement"; "required": false; "isSignal": true; }; "thyOrigin": { "alias": "thyOrigin"; "required": false; "isSignal": true; }; "thyFooterClass": { "alias": "thyFooterClass"; "required": false; "isSignal": true; }; "thyAutoExpand": { "alias": "thyAutoExpand"; "required": false; "isSignal": true; }; "thyHasBackdrop": { "alias": "thyHasBackdrop"; "required": false; "isSignal": true; }; "thyMaxTagCount": { "alias": "thyMaxTagCount"; "required": false; "isSignal": true; }; "thyBorderless": { "alias": "thyBorderless"; "required": false; "isSignal": true; }; "thyOptions": { "alias": "thyOptions"; "required": false; "isSignal": true; }; "thyPreset": { "alias": "thyPreset"; "required": false; "isSignal": true; }; }, { "thyOnSearch": "thyOnSearch"; "thyOnScrollToBottom": "thyOnScrollToBottom"; "thyOnExpandStatusChange": "thyOnExpandStatusChange"; }, ["selectedValueDisplayRef", "contentGroups", "contentOptions"], ["*"], true, never>;
|
|
288
269
|
static ngAcceptInputType_thyDisabled: i1.ThyBooleanInput;
|
|
289
|
-
static ngAcceptInputType_thyAutoExpand: i1.ThyBooleanInput;
|
|
290
|
-
static ngAcceptInputType_thyHasBackdrop: i1.ThyBooleanInput;
|
|
291
|
-
static ngAcceptInputType_thyMaxTagCount: unknown;
|
|
292
|
-
static ngAcceptInputType_thyBorderless: i1.ThyBooleanInput;
|
|
293
270
|
}
|
|
294
271
|
export {};
|
|
@@ -3,7 +3,6 @@ import { ControlValueAccessor } from '@angular/forms';
|
|
|
3
3
|
import { TabIndexDisabledControlValueAccessorMixin } from 'ngx-tethys/core';
|
|
4
4
|
import { ElementRef } from '@angular/core';
|
|
5
5
|
import * as i0 from "@angular/core";
|
|
6
|
-
import * as i1 from "ngx-tethys/util";
|
|
7
6
|
export type InputSize = 'xs' | 'sm' | 'md' | 'lg' | '';
|
|
8
7
|
/**
|
|
9
8
|
* 下拉选择
|
|
@@ -11,17 +10,13 @@ export type InputSize = 'xs' | 'sm' | 'md' | 'lg' | '';
|
|
|
11
10
|
* @order 20
|
|
12
11
|
*/
|
|
13
12
|
export declare class ThyNativeSelect extends TabIndexDisabledControlValueAccessorMixin implements ControlValueAccessor, OnInit {
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
_disabled: boolean;
|
|
18
|
-
_size: InputSize;
|
|
19
|
-
_expandOptions: boolean;
|
|
13
|
+
readonly selectElement: import("@angular/core").Signal<ElementRef<any>>;
|
|
14
|
+
readonly innerValue: import("@angular/core").ModelSignal<any>;
|
|
15
|
+
readonly disabled: import("@angular/core").WritableSignal<boolean>;
|
|
20
16
|
private hostRenderer;
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
thyAllowClear: boolean;
|
|
17
|
+
readonly thySize: import("@angular/core").InputSignal<InputSize>;
|
|
18
|
+
readonly name: import("@angular/core").InputSignal<string>;
|
|
19
|
+
readonly thyAllowClear: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
|
|
25
20
|
writeValue(obj: any): void;
|
|
26
21
|
setDisabledState?(isDisabled: boolean): void;
|
|
27
22
|
constructor();
|
|
@@ -31,6 +26,5 @@ export declare class ThyNativeSelect extends TabIndexDisabledControlValueAccesso
|
|
|
31
26
|
onFocus(event?: Event): void;
|
|
32
27
|
clearSelectValue(event: Event): void;
|
|
33
28
|
static ɵfac: i0.ɵɵFactoryDeclaration<ThyNativeSelect, never>;
|
|
34
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<ThyNativeSelect, "thy-native-select", never, { "thySize": { "alias": "thySize"; "required": false; }; "name": { "alias": "name"; "required": false; }; "thyAllowClear": { "alias": "thyAllowClear"; "required": false; }; }, {}, never, ["*"], true, never>;
|
|
35
|
-
static ngAcceptInputType_thyAllowClear: i1.ThyBooleanInput;
|
|
29
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ThyNativeSelect, "thy-native-select", never, { "innerValue": { "alias": "innerValue"; "required": false; "isSignal": true; }; "thySize": { "alias": "thySize"; "required": false; "isSignal": true; }; "name": { "alias": "name"; "required": false; "isSignal": true; }; "thyAllowClear": { "alias": "thyAllowClear"; "required": false; "isSignal": true; }; }, { "innerValue": "innerValueChange"; }, never, ["*"], true, never>;
|
|
36
30
|
}
|