ngx-tethys 19.1.0-next.5 → 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 +15 -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-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
|
@@ -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
|
}
|
|
@@ -13,24 +13,23 @@ export declare class ThyFormCheckBaseComponent extends TabIndexDisabledControlVa
|
|
|
13
13
|
_disabled: boolean;
|
|
14
14
|
private onTouchedCallback;
|
|
15
15
|
private onChangeCallback;
|
|
16
|
-
_labelText: string;
|
|
17
16
|
_isFormCheck: boolean;
|
|
18
|
-
_isFormCheckInline: boolean;
|
|
19
17
|
_isChecked: boolean;
|
|
20
|
-
get _isNoText(): boolean;
|
|
21
18
|
/**
|
|
22
19
|
* 是否同一行展示
|
|
23
20
|
* @default false
|
|
24
21
|
*/
|
|
25
|
-
|
|
22
|
+
readonly thyInline: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
|
|
26
23
|
/**
|
|
27
24
|
* Label 展示文本
|
|
28
25
|
*/
|
|
29
|
-
|
|
26
|
+
readonly thyLabelText: import("@angular/core").InputSignal<string>;
|
|
30
27
|
/**
|
|
31
28
|
* Label 文本多语言 key
|
|
32
29
|
*/
|
|
33
|
-
|
|
30
|
+
readonly thyLabelTextTranslateKey: import("@angular/core").InputSignal<string>;
|
|
31
|
+
_labelText: import("@angular/core").Signal<any>;
|
|
32
|
+
_isNoText: import("@angular/core").Signal<boolean>;
|
|
34
33
|
disabled: boolean;
|
|
35
34
|
/**
|
|
36
35
|
* 是否禁用
|
|
@@ -47,7 +46,6 @@ export declare class ThyFormCheckBaseComponent extends TabIndexDisabledControlVa
|
|
|
47
46
|
change(): void;
|
|
48
47
|
markForCheck(): void;
|
|
49
48
|
static ɵfac: i0.ɵɵFactoryDeclaration<ThyFormCheckBaseComponent, never>;
|
|
50
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<ThyFormCheckBaseComponent, never, never, { "thyInline": { "alias": "thyInline"; "required": false; }; "thyLabelText": { "alias": "thyLabelText"; "required": false; }; "thyLabelTextTranslateKey": { "alias": "thyLabelTextTranslateKey"; "required": false; }; "thyDisabled": { "alias": "thyDisabled"; "required": false; }; }, {}, never, never, true, never>;
|
|
51
|
-
static ngAcceptInputType_thyInline: i1.ThyBooleanInput;
|
|
49
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<ThyFormCheckBaseComponent, never, never, { "thyInline": { "alias": "thyInline"; "required": false; "isSignal": true; }; "thyLabelText": { "alias": "thyLabelText"; "required": false; "isSignal": true; }; "thyLabelTextTranslateKey": { "alias": "thyLabelTextTranslateKey"; "required": false; "isSignal": true; }; "thyDisabled": { "alias": "thyDisabled"; "required": false; }; }, {}, never, never, true, never>;
|
|
52
50
|
static ngAcceptInputType_thyDisabled: i1.ThyBooleanInput;
|
|
53
51
|
}
|
|
@@ -1,18 +1,17 @@
|
|
|
1
|
-
import { OnChanges, SimpleChanges, TemplateRef } from '@angular/core';
|
|
2
1
|
import * as i0 from "@angular/core";
|
|
3
2
|
/**
|
|
4
3
|
* @name thyStringOrTemplateOutlet
|
|
5
4
|
*/
|
|
6
|
-
export declare class ThyStringOrTemplateOutletDirective
|
|
5
|
+
export declare class ThyStringOrTemplateOutletDirective {
|
|
7
6
|
private viewContainerRef;
|
|
8
7
|
private renderer;
|
|
9
8
|
private viewRef;
|
|
10
9
|
private textNode;
|
|
11
|
-
thyStringOrTemplateOutletContext: any
|
|
12
|
-
thyStringOrTemplateOutlet:
|
|
13
|
-
|
|
10
|
+
readonly thyStringOrTemplateOutletContext: import("@angular/core").InputSignal<any>;
|
|
11
|
+
readonly thyStringOrTemplateOutlet: import("@angular/core").InputSignal<any>;
|
|
12
|
+
constructor();
|
|
14
13
|
private updateView;
|
|
15
14
|
private clear;
|
|
16
15
|
static ɵfac: i0.ɵɵFactoryDeclaration<ThyStringOrTemplateOutletDirective, never>;
|
|
17
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<ThyStringOrTemplateOutletDirective, "[thyStringOrTemplateOutlet]", ["thyStringOrTemplateOutlet"], { "thyStringOrTemplateOutletContext": { "alias": "thyStringOrTemplateOutletContext"; "required": false; }; "thyStringOrTemplateOutlet": { "alias": "thyStringOrTemplateOutlet"; "required": false; }; }, {}, never, never, true, never>;
|
|
16
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<ThyStringOrTemplateOutletDirective, "[thyStringOrTemplateOutlet]", ["thyStringOrTemplateOutlet"], { "thyStringOrTemplateOutletContext": { "alias": "thyStringOrTemplateOutletContext"; "required": false; "isSignal": true; }; "thyStringOrTemplateOutlet": { "alias": "thyStringOrTemplateOutlet"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
18
17
|
}
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import * as i0 from "@angular/core";
|
|
2
|
-
import * as i1 from "ngx-tethys/util";
|
|
3
2
|
/**
|
|
4
3
|
* 自动聚焦指令
|
|
5
4
|
* @name input[thyAutofocus],textarea[thyAutofocus]
|
|
@@ -12,14 +11,13 @@ export declare class ThyAutofocusDirective {
|
|
|
12
11
|
* 是否自动聚焦
|
|
13
12
|
* @default false
|
|
14
13
|
*/
|
|
15
|
-
|
|
14
|
+
readonly thyAutofocus: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
|
|
16
15
|
/**
|
|
17
16
|
* 是否自动选择
|
|
18
17
|
* @default false
|
|
19
18
|
*/
|
|
20
|
-
|
|
19
|
+
readonly thyAutoSelect: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
|
|
20
|
+
constructor();
|
|
21
21
|
static ɵfac: i0.ɵɵFactoryDeclaration<ThyAutofocusDirective, never>;
|
|
22
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<ThyAutofocusDirective, "input[thyAutofocus],textarea[thyAutofocus]", never, { "thyAutofocus": { "alias": "thyAutofocus"; "required": false; }; "thyAutoSelect": { "alias": "thyAutoSelect"; "required": false; }; }, {}, never, never, true, never>;
|
|
23
|
-
static ngAcceptInputType_thyAutofocus: i1.ThyBooleanInput;
|
|
24
|
-
static ngAcceptInputType_thyAutoSelect: i1.ThyBooleanInput;
|
|
22
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<ThyAutofocusDirective, "input[thyAutofocus],textarea[thyAutofocus]", never, { "thyAutofocus": { "alias": "thyAutofocus"; "required": false; "isSignal": true; }; "thyAutoSelect": { "alias": "thyAutoSelect"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
25
23
|
}
|
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
import { ElementRef, OnInit, OnDestroy
|
|
1
|
+
import { ElementRef, OnInit, OnDestroy } from '@angular/core';
|
|
2
2
|
import * as i0 from "@angular/core";
|
|
3
|
-
import * as i1 from "ngx-tethys/util";
|
|
4
3
|
/**
|
|
5
4
|
* @name thyScroll
|
|
6
5
|
*/
|
|
@@ -8,11 +7,9 @@ export declare class ThyScrollDirective implements OnInit, OnDestroy {
|
|
|
8
7
|
private elementRef;
|
|
9
8
|
private ngZone;
|
|
10
9
|
private _destroyed;
|
|
11
|
-
private _enable;
|
|
12
|
-
private _initialled;
|
|
13
10
|
private _subscription;
|
|
14
11
|
private _elementScrolled;
|
|
15
|
-
|
|
12
|
+
readonly thyEnable: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
|
|
16
13
|
/**
|
|
17
14
|
* @description
|
|
18
15
|
*
|
|
@@ -32,11 +29,11 @@ export declare class ThyScrollDirective implements OnInit, OnDestroy {
|
|
|
32
29
|
* }
|
|
33
30
|
* ```
|
|
34
31
|
*/
|
|
35
|
-
thyOnScrolled:
|
|
32
|
+
readonly thyOnScrolled: import("@angular/core").OutputEmitterRef<ElementRef<any>>;
|
|
33
|
+
constructor();
|
|
36
34
|
ngOnInit(): void;
|
|
37
35
|
ngOnDestroy(): void;
|
|
38
36
|
getElementRef(): ElementRef<HTMLElement>;
|
|
39
37
|
static ɵfac: i0.ɵɵFactoryDeclaration<ThyScrollDirective, never>;
|
|
40
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<ThyScrollDirective, "[thyScroll]", never, { "thyEnable": { "alias": "thyEnable"; "required": false; }; }, { "thyOnScrolled": "thyOnScrolled"; }, never, never, true, never>;
|
|
41
|
-
static ngAcceptInputType_thyEnable: i1.ThyBooleanInput;
|
|
38
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<ThyScrollDirective, "[thyScroll]", never, { "thyEnable": { "alias": "thyEnable"; "required": false; "isSignal": true; }; }, { "thyOnScrolled": "thyOnScrolled"; }, never, never, true, never>;
|
|
42
39
|
}
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { EventEmitter, OnDestroy } from '@angular/core';
|
|
2
2
|
import * as i0 from "@angular/core";
|
|
3
|
-
import * as i1 from "ngx-tethys/util";
|
|
4
3
|
/**
|
|
5
4
|
* @name thyShow
|
|
6
5
|
*/
|
|
@@ -12,9 +11,9 @@ export declare class ThyShowDirective implements OnDestroy {
|
|
|
12
11
|
private hostRenderer;
|
|
13
12
|
private unListenEvent;
|
|
14
13
|
private unListenDocument;
|
|
15
|
-
|
|
14
|
+
readonly thyShow: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
|
|
15
|
+
constructor();
|
|
16
16
|
ngOnDestroy(): void;
|
|
17
17
|
static ɵfac: i0.ɵɵFactoryDeclaration<ThyShowDirective, never>;
|
|
18
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<ThyShowDirective, "[thyShow]", never, { "thyShow": { "alias": "thyShow"; "required": false; }; }, { "thyShowChange": "thyShowChange"; }, never, never, true, never>;
|
|
19
|
-
static ngAcceptInputType_thyShow: i1.ThyBooleanInput;
|
|
18
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<ThyShowDirective, "[thyShow]", never, { "thyShow": { "alias": "thyShow"; "required": false; "isSignal": true; }; }, { "thyShowChange": "thyShowChange"; }, never, never, true, never>;
|
|
20
19
|
}
|
|
@@ -5,13 +5,13 @@ import * as i0 from "@angular/core";
|
|
|
5
5
|
* @name thyStopPropagation
|
|
6
6
|
*/
|
|
7
7
|
export declare class ThyStopPropagationDirective implements OnDestroy {
|
|
8
|
-
|
|
9
|
-
private
|
|
10
|
-
|
|
8
|
+
readonly thyStopPropagation: import("@angular/core").InputSignal<string | boolean>;
|
|
9
|
+
private readonly _eventName;
|
|
10
|
+
private readonly _shouldStopPropagation;
|
|
11
11
|
private _changes$;
|
|
12
12
|
private _destroy$;
|
|
13
13
|
constructor();
|
|
14
14
|
ngOnDestroy(): void;
|
|
15
15
|
static ɵfac: i0.ɵɵFactoryDeclaration<ThyStopPropagationDirective, never>;
|
|
16
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<ThyStopPropagationDirective, "[thyStopPropagation]", never, { "thyStopPropagation": { "alias": "thyStopPropagation"; "required": false; }; }, {}, never, never, true, never>;
|
|
16
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<ThyStopPropagationDirective, "[thyStopPropagation]", never, { "thyStopPropagation": { "alias": "thyStopPropagation"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
17
17
|
}
|
|
@@ -1,12 +1,11 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { SafeAny } from 'ngx-tethys/types';
|
|
1
|
+
import { Type, TemplateRef } from '@angular/core';
|
|
3
2
|
import * as i0 from "@angular/core";
|
|
4
3
|
/**
|
|
5
4
|
* 视图 Outlet 组件,取代 NgComponentOutlet 和 NgTemplateOutlet
|
|
6
5
|
* @name thyViewOutlet
|
|
7
6
|
* @order 10
|
|
8
7
|
*/
|
|
9
|
-
export declare class ThyViewOutletDirective
|
|
8
|
+
export declare class ThyViewOutletDirective {
|
|
10
9
|
private viewContainerRef;
|
|
11
10
|
private keyValueDiffers;
|
|
12
11
|
private componentRef;
|
|
@@ -14,14 +13,14 @@ export declare class ThyViewOutletDirective implements OnChanges {
|
|
|
14
13
|
/**
|
|
15
14
|
* 组件或者模板 TemplateRef
|
|
16
15
|
*/
|
|
17
|
-
thyViewOutlet: Type<
|
|
16
|
+
readonly thyViewOutlet: import("@angular/core").InputSignal<Type<any> | TemplateRef<any>>;
|
|
18
17
|
/**
|
|
19
18
|
* 组件和模板上下文传递数据
|
|
20
19
|
*/
|
|
21
|
-
thyViewOutletContext
|
|
20
|
+
readonly thyViewOutletContext: import("@angular/core").InputSignal<any>;
|
|
22
21
|
private keyValueDiffer;
|
|
23
|
-
|
|
22
|
+
constructor();
|
|
24
23
|
private updateContext;
|
|
25
24
|
static ɵfac: i0.ɵɵFactoryDeclaration<ThyViewOutletDirective, never>;
|
|
26
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<ThyViewOutletDirective, "[thyViewOutlet]", never, { "thyViewOutlet": { "alias": "thyViewOutlet"; "required": false; }; "thyViewOutletContext": { "alias": "thyViewOutletContext"; "required": false; }; }, {}, never, never, true, never>;
|
|
25
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<ThyViewOutletDirective, "[thyViewOutlet]", never, { "thyViewOutlet": { "alias": "thyViewOutlet"; "required": false; "isSignal": true; }; "thyViewOutletContext": { "alias": "thyViewOutletContext"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
27
26
|
}
|
|
@@ -7,9 +7,8 @@ export declare class ThyTranscludeDirective {
|
|
|
7
7
|
viewRef: ViewContainerRef;
|
|
8
8
|
protected _viewRef: ViewContainerRef;
|
|
9
9
|
protected _ngTransclude: TemplateRef<any>;
|
|
10
|
-
|
|
11
|
-
get thyTransclude(): TemplateRef<any>;
|
|
10
|
+
readonly thyTransclude: import("@angular/core").InputSignal<TemplateRef<any>>;
|
|
12
11
|
constructor();
|
|
13
12
|
static ɵfac: i0.ɵɵFactoryDeclaration<ThyTranscludeDirective, never>;
|
|
14
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<ThyTranscludeDirective, "[thyTransclude]", never, { "thyTransclude": { "alias": "thyTransclude"; "required": false; }; }, {}, never, never, true, never>;
|
|
13
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<ThyTranscludeDirective, "[thyTransclude]", never, { "thyTransclude": { "alias": "thyTransclude"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
15
14
|
}
|
|
@@ -1,19 +1,16 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { OnDestroy, AfterContentInit, QueryList, WritableSignal } from '@angular/core';
|
|
2
2
|
import { Observable, Subject } from 'rxjs';
|
|
3
3
|
import { ThyOptionVisibleChangeEvent, ThyOption } from '../option.component';
|
|
4
4
|
import * as i0 from "@angular/core";
|
|
5
|
-
import * as i1 from "ngx-tethys/util";
|
|
6
5
|
/**
|
|
7
6
|
* @private
|
|
8
7
|
*/
|
|
9
8
|
export declare class ThySelectOptionGroup implements OnDestroy, AfterContentInit {
|
|
10
9
|
private _ngZone;
|
|
11
10
|
private cdr;
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
get hidden(): boolean;
|
|
16
|
-
thyGroupLabel: string;
|
|
11
|
+
readonly thyDisabled: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
|
|
12
|
+
readonly hidden: WritableSignal<boolean>;
|
|
13
|
+
readonly thyGroupLabel: import("@angular/core").InputSignal<string>;
|
|
17
14
|
options: QueryList<ThyOption>;
|
|
18
15
|
_destroy$: Subject<void>;
|
|
19
16
|
optionVisibleChanges: Observable<ThyOptionVisibleChangeEvent>;
|
|
@@ -21,6 +18,5 @@ export declare class ThySelectOptionGroup implements OnDestroy, AfterContentInit
|
|
|
21
18
|
_resetOptions(): void;
|
|
22
19
|
ngOnDestroy(): void;
|
|
23
20
|
static ɵfac: i0.ɵɵFactoryDeclaration<ThySelectOptionGroup, never>;
|
|
24
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<ThySelectOptionGroup, "thy-option-group", never, { "thyDisabled": { "alias": "thyDisabled"; "required": false; }; "thyGroupLabel": { "alias": "thyGroupLabel"; "required": false; }; }, {}, ["options"], ["*"], true, never>;
|
|
25
|
-
static ngAcceptInputType_thyDisabled: i1.ThyBooleanInput;
|
|
21
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ThySelectOptionGroup, "thy-option-group", never, { "thyDisabled": { "alias": "thyDisabled"; "required": false; "isSignal": true; }; "thyGroupLabel": { "alias": "thyGroupLabel"; "required": false; "isSignal": true; }; }, {}, ["options"], ["*"], true, never>;
|
|
26
22
|
}
|
|
@@ -2,23 +2,20 @@ import { ElementRef } from '@angular/core';
|
|
|
2
2
|
import { Highlightable } from '@angular/cdk/a11y';
|
|
3
3
|
import { IThyOptionComponent } from '../option.token';
|
|
4
4
|
import * as i0 from "@angular/core";
|
|
5
|
-
import * as i1 from "ngx-tethys/util";
|
|
6
5
|
/**
|
|
7
6
|
* @private
|
|
8
7
|
* @order 30
|
|
9
8
|
*/
|
|
10
9
|
export declare class ThyListOption implements IThyOptionComponent, Highlightable {
|
|
11
10
|
element: ElementRef<HTMLElement>;
|
|
12
|
-
private changeDetector;
|
|
13
11
|
parentSelectionList: import("../option.token").IThyListOptionParentComponent;
|
|
14
12
|
get _isListOption(): boolean;
|
|
15
13
|
get _parentLayout(): boolean;
|
|
16
14
|
_role: string;
|
|
17
15
|
_tabIndex: number;
|
|
18
|
-
id: string
|
|
19
|
-
thyValue: any
|
|
20
|
-
|
|
21
|
-
disabled?: boolean;
|
|
16
|
+
readonly id: import("@angular/core").InputSignal<string>;
|
|
17
|
+
readonly thyValue: import("@angular/core").InputSignal<any>;
|
|
18
|
+
readonly thyDisabled: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
|
|
22
19
|
/** Whether the option is selected. */
|
|
23
20
|
get selected(): boolean;
|
|
24
21
|
onClick(event: Event): void;
|
|
@@ -31,6 +28,5 @@ export declare class ThyListOption implements IThyOptionComponent, Highlightable
|
|
|
31
28
|
*/
|
|
32
29
|
getLabel(): string;
|
|
33
30
|
static ɵfac: i0.ɵɵFactoryDeclaration<ThyListOption, never>;
|
|
34
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<ThyListOption, "thy-list-option,[thy-list-option]", never, { "id": { "alias": "id"; "required": false; }; "thyValue": { "alias": "thyValue"; "required": false; }; "thyDisabled": { "alias": "thyDisabled"; "required": false; }; }, {}, never, ["*"], true, never>;
|
|
35
|
-
static ngAcceptInputType_thyDisabled: i1.ThyBooleanInput;
|
|
31
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ThyListOption, "thy-list-option,[thy-list-option]", never, { "id": { "alias": "id"; "required": false; "isSignal": true; }; "thyValue": { "alias": "thyValue"; "required": false; "isSignal": true; }; "thyDisabled": { "alias": "thyDisabled"; "required": false; "isSignal": true; }; }, {}, never, ["*"], true, never>;
|
|
36
32
|
}
|
|
@@ -1,8 +1,7 @@
|
|
|
1
|
-
import { TemplateRef, ElementRef,
|
|
1
|
+
import { TemplateRef, ElementRef, OnDestroy, WritableSignal } from '@angular/core';
|
|
2
2
|
import { Highlightable } from '@angular/cdk/a11y';
|
|
3
3
|
import { SelectOptionBase } from './select-option-base';
|
|
4
4
|
import * as i0 from "@angular/core";
|
|
5
|
-
import * as i1 from "ngx-tethys/util";
|
|
6
5
|
export declare class ThyOptionSelectionChangeEvent {
|
|
7
6
|
option: ThyOption;
|
|
8
7
|
isUserInput: boolean;
|
|
@@ -19,24 +18,19 @@ export declare class ThyOption extends SelectOptionBase implements OnDestroy, Hi
|
|
|
19
18
|
element: ElementRef<HTMLElement>;
|
|
20
19
|
parent: import("./option.token").IThyOptionParentComponent;
|
|
21
20
|
private cdr;
|
|
22
|
-
private _selected;
|
|
23
|
-
private _hidden;
|
|
24
|
-
private _disabled;
|
|
25
21
|
thyValue: any;
|
|
26
22
|
thyRawValue: any;
|
|
27
23
|
thyLabelText: string;
|
|
28
|
-
thyShowOptionCustom: boolean
|
|
29
|
-
thySearchKey: string
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
get thyDisabled(): boolean;
|
|
24
|
+
readonly thyShowOptionCustom: import("@angular/core").InputSignal<boolean>;
|
|
25
|
+
readonly thySearchKey: import("@angular/core").InputSignal<string>;
|
|
26
|
+
readonly template: import("@angular/core").Signal<TemplateRef<any>>;
|
|
27
|
+
readonly thyDisabled: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
|
|
28
|
+
readonly hidden: WritableSignal<boolean>;
|
|
34
29
|
get disabled(): boolean;
|
|
35
|
-
get hidden(): boolean;
|
|
36
30
|
get tabIndex(): string;
|
|
37
|
-
|
|
38
|
-
readonly selectionChange:
|
|
39
|
-
readonly visibleChange:
|
|
31
|
+
readonly selected: WritableSignal<boolean>;
|
|
32
|
+
readonly selectionChange: import("@angular/core").OutputEmitterRef<ThyOptionSelectionChangeEvent>;
|
|
33
|
+
readonly visibleChange: import("@angular/core").OutputEmitterRef<ThyOptionVisibleChangeEvent>;
|
|
40
34
|
constructor();
|
|
41
35
|
getHostElement(): HTMLElement;
|
|
42
36
|
onClick(event: Event): void;
|
|
@@ -53,6 +47,5 @@ export declare class ThyOption extends SelectOptionBase implements OnDestroy, Hi
|
|
|
53
47
|
private emitSelectionChangeEvent;
|
|
54
48
|
ngOnDestroy(): void;
|
|
55
49
|
static ɵfac: i0.ɵɵFactoryDeclaration<ThyOption, never>;
|
|
56
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<ThyOption, "thy-option", never, { "thyValue": { "alias": "thyValue"; "required": false; }; "thyRawValue": { "alias": "thyRawValue"; "required": false; }; "thyLabelText": { "alias": "thyLabelText"; "required": false; }; "thyShowOptionCustom": { "alias": "thyShowOptionCustom"; "required": false; }; "thySearchKey": { "alias": "thySearchKey"; "required": false; }; "thyDisabled": { "alias": "thyDisabled"; "required": false; }; }, { "selectionChange": "selectionChange"; "visibleChange": "visibleChange"; }, never, ["*"], true, never>;
|
|
57
|
-
static ngAcceptInputType_thyDisabled: i1.ThyBooleanInput;
|
|
50
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ThyOption, "thy-option", never, { "thyValue": { "alias": "thyValue"; "required": false; }; "thyRawValue": { "alias": "thyRawValue"; "required": false; }; "thyLabelText": { "alias": "thyLabelText"; "required": false; }; "thyShowOptionCustom": { "alias": "thyShowOptionCustom"; "required": false; "isSignal": true; }; "thySearchKey": { "alias": "thySearchKey"; "required": false; "isSignal": true; }; "thyDisabled": { "alias": "thyDisabled"; "required": false; "isSignal": true; }; }, { "selectionChange": "selectionChange"; "visibleChange": "visibleChange"; }, never, ["*"], true, never>;
|
|
58
51
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { OnInit, TemplateRef } from '@angular/core';
|
|
2
2
|
import * as i0 from "@angular/core";
|
|
3
3
|
export declare class ThyOptionsContainer implements OnInit {
|
|
4
|
-
optionsTemplate: TemplateRef<any
|
|
4
|
+
readonly optionsTemplate: import("@angular/core").Signal<TemplateRef<any>>;
|
|
5
5
|
constructor();
|
|
6
6
|
ngOnInit(): void;
|
|
7
7
|
static ɵfac: i0.ɵɵFactoryDeclaration<ThyOptionsContainer, never>;
|