ngx-tethys 16.1.6 → 16.1.8
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/cascader/cascader-li.component.d.ts +2 -1
- package/cascader/cascader.component.d.ts +13 -3
- package/cascader/types.d.ts +2 -0
- package/date-picker/abstract-picker.component.d.ts +11 -2
- package/date-picker/abstract-picker.directive.d.ts +1 -0
- package/date-picker/lib/popups/date-popup.component.d.ts +6 -2
- package/date-picker/standard-types.d.ts +7 -0
- package/esm2022/cascader/cascader-li.component.mjs +15 -6
- package/esm2022/cascader/cascader.component.mjs +93 -35
- package/esm2022/cascader/types.mjs +1 -1
- package/esm2022/date-picker/abstract-picker.component.mjs +15 -2
- package/esm2022/date-picker/abstract-picker.directive.mjs +6 -1
- package/esm2022/date-picker/date-picker.component.mjs +3 -3
- package/esm2022/date-picker/lib/popups/date-popup.component.mjs +21 -2
- package/esm2022/date-picker/month-picker.component.mjs +3 -3
- package/esm2022/date-picker/range-picker.component.mjs +3 -3
- package/esm2022/date-picker/standard-types.mjs +1 -1
- package/esm2022/date-picker/week-picker.component.mjs +3 -3
- package/esm2022/date-picker/year-picker.component.mjs +3 -3
- package/esm2022/select/custom-select/custom-select.component.mjs +13 -4
- package/esm2022/version.mjs +2 -2
- package/fesm2022/ngx-tethys-cascader.mjs +98 -32
- package/fesm2022/ngx-tethys-cascader.mjs.map +1 -1
- package/fesm2022/ngx-tethys-date-picker.mjs +49 -12
- package/fesm2022/ngx-tethys-date-picker.mjs.map +1 -1
- package/fesm2022/ngx-tethys-select.mjs +12 -3
- package/fesm2022/ngx-tethys-select.mjs.map +1 -1
- package/fesm2022/ngx-tethys.mjs +1 -1
- package/fesm2022/ngx-tethys.mjs.map +1 -1
- package/package.json +1 -1
- package/schematics/version.d.ts +1 -1
- package/schematics/version.js +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,30 @@
|
|
|
2
2
|
|
|
3
3
|
All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.
|
|
4
4
|
|
|
5
|
+
## [16.1.8](https://github.com/atinc/ngx-tethys/compare/16.1.7...16.1.8) (2023-11-02)
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
### Bug Fixes
|
|
9
|
+
|
|
10
|
+
* **cascader:** reset selectionModel when writeValue #INFR-10101 ([#2883](https://github.com/atinc/ngx-tethys/issues/2883)) ([56496fd](https://github.com/atinc/ngx-tethys/commit/56496fd31cc62bd113543f34cb2bad2b2f0f5d6d)), closes [#INFR-10101](https://github.com/atinc/ngx-tethys/issues/INFR-10101)
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
### Features
|
|
14
|
+
|
|
15
|
+
* **date-picker:** add event thyDateChange and deprecated shortcutValueChange #INFR-9829 ([#2865](https://github.com/atinc/ngx-tethys/issues/2865)) ([adf0f6b](https://github.com/atinc/ngx-tethys/commit/adf0f6b6fb05993ad811b62a13d64d9da86e46ee)), closes [#INFR-9829](https://github.com/atinc/ngx-tethys/issues/INFR-9829)
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
## [16.1.7](https://github.com/atinc/ngx-tethys/compare/16.1.6...16.1.7) (2023-11-02)
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
### Features
|
|
23
|
+
|
|
24
|
+
* **cascader:** search and select all nodes when isOnlySelectLeaf is false #INFR-10101 ([#2873](https://github.com/atinc/ngx-tethys/issues/2873)) ([f0d6751](https://github.com/atinc/ngx-tethys/commit/f0d67511309a092e9d7364009c9082d471e58517)), closes [#INFR-10101](https://github.com/atinc/ngx-tethys/issues/INFR-10101)
|
|
25
|
+
* **select:** #INFR-10094 dispatch toggle select panel not close when thyShowSearch is true ([#2872](https://github.com/atinc/ngx-tethys/issues/2872)) ([10c2ec1](https://github.com/atinc/ngx-tethys/commit/10c2ec19d8d6ff0024283d8a4f6c3a243eac717b))
|
|
26
|
+
|
|
27
|
+
|
|
28
|
+
|
|
5
29
|
## [16.1.6](https://github.com/atinc/ngx-tethys/compare/16.2.0-next...16.1.6) (2023-10-27)
|
|
6
30
|
|
|
7
31
|
|
|
@@ -11,6 +11,7 @@ export declare class ThyCascaderOptionComponent implements OnInit {
|
|
|
11
11
|
class: string;
|
|
12
12
|
item: boolean;
|
|
13
13
|
active: boolean;
|
|
14
|
+
selected: boolean;
|
|
14
15
|
get disabled(): boolean;
|
|
15
16
|
get expand(): boolean;
|
|
16
17
|
labelProperty: string;
|
|
@@ -19,5 +20,5 @@ export declare class ThyCascaderOptionComponent implements OnInit {
|
|
|
19
20
|
ngOnInit(): void;
|
|
20
21
|
toggleOption(value: boolean): void;
|
|
21
22
|
static ɵfac: i0.ɵɵFactoryDeclaration<ThyCascaderOptionComponent, never>;
|
|
22
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<ThyCascaderOptionComponent, "[thy-cascader-option]", never, { "option": { "alias": "option"; "required": false; }; "multiple": { "alias": "multiple"; "required": false; }; "isOnlySelectLeaf": { "alias": "isOnlySelectLeaf"; "required": false; }; "active": { "alias": "active"; "required": false; }; "labelProperty": { "alias": "labelProperty"; "required": false; }; }, { "toggleSelectChange": "toggleSelectChange"; }, never, never, true, never>;
|
|
23
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ThyCascaderOptionComponent, "[thy-cascader-option]", never, { "option": { "alias": "option"; "required": false; }; "multiple": { "alias": "multiple"; "required": false; }; "isOnlySelectLeaf": { "alias": "isOnlySelectLeaf"; "required": false; }; "active": { "alias": "active"; "required": false; }; "selected": { "alias": "selected"; "required": false; }; "labelProperty": { "alias": "labelProperty"; "required": false; }; }, { "toggleSelectChange": "toggleSelectChange"; }, never, never, true, never>;
|
|
23
24
|
}
|
|
@@ -114,7 +114,8 @@ export declare class ThyCascaderComponent extends TabIndexDisabledControlValueAc
|
|
|
114
114
|
*/
|
|
115
115
|
thyMaxTagCount: number;
|
|
116
116
|
/**
|
|
117
|
-
*
|
|
117
|
+
* 是否仅允许选择叶子项
|
|
118
|
+
* @default true
|
|
118
119
|
*/
|
|
119
120
|
thyIsOnlySelectLeaf: boolean;
|
|
120
121
|
/**
|
|
@@ -150,6 +151,10 @@ export declare class ThyCascaderComponent extends TabIndexDisabledControlValueAc
|
|
|
150
151
|
* 清空选项时触发
|
|
151
152
|
*/
|
|
152
153
|
thyClear: EventEmitter<void>;
|
|
154
|
+
/**
|
|
155
|
+
* 下拉选项展开和折叠状态事件
|
|
156
|
+
*/
|
|
157
|
+
thyExpandStatusChange: EventEmitter<boolean>;
|
|
153
158
|
cascaderOptions: QueryList<ElementRef>;
|
|
154
159
|
cascaderOptionContainers: QueryList<ElementRef>;
|
|
155
160
|
cdkConnectedOverlay: CdkConnectedOverlay;
|
|
@@ -196,6 +201,8 @@ export declare class ThyCascaderComponent extends TabIndexDisabledControlValueAc
|
|
|
196
201
|
* 会导致恢复级联状态再变为搜索状态
|
|
197
202
|
*/
|
|
198
203
|
private isSelectingSearchState;
|
|
204
|
+
private flattenOptions;
|
|
205
|
+
private leafNodes;
|
|
199
206
|
ngOnInit(): void;
|
|
200
207
|
private initSelectionModel;
|
|
201
208
|
private initPosition;
|
|
@@ -211,6 +218,7 @@ export declare class ThyCascaderComponent extends TabIndexDisabledControlValueAc
|
|
|
211
218
|
getOptionLabel(option: ThyCascaderOption): any;
|
|
212
219
|
getOptionValue(option: ThyCascaderOption): any;
|
|
213
220
|
isActivatedOption(option: ThyCascaderOption, index: number): boolean;
|
|
221
|
+
isSelectedOption(option: ThyCascaderOption, index: number): boolean;
|
|
214
222
|
attached(): void;
|
|
215
223
|
private scrollActiveElementIntoView;
|
|
216
224
|
private findOption;
|
|
@@ -230,7 +238,7 @@ export declare class ThyCascaderComponent extends TabIndexDisabledControlValueAc
|
|
|
230
238
|
private isHoverExpandTriggerAction;
|
|
231
239
|
toggleClick($event: Event): void;
|
|
232
240
|
toggleHover($event: Event): void;
|
|
233
|
-
clickOption(option: ThyCascaderOption, index: number, event: Event): void;
|
|
241
|
+
clickOption(option: ThyCascaderOption, index: number, event: Event | boolean): void;
|
|
234
242
|
mouseoverOption(option: ThyCascaderOption, index: number, event: Event): void;
|
|
235
243
|
mouseleaveMenu(event: Event): void;
|
|
236
244
|
onBlur(event?: FocusEvent): void;
|
|
@@ -255,10 +263,12 @@ export declare class ThyCascaderComponent extends TabIndexDisabledControlValueAc
|
|
|
255
263
|
trackByFn(index: number, item: ThyCascaderOption): any;
|
|
256
264
|
searchFilter(searchText: string): void;
|
|
257
265
|
private initSearch;
|
|
266
|
+
private forEachColumns;
|
|
267
|
+
private setSearchResultList;
|
|
258
268
|
private searchInLocal;
|
|
259
269
|
private resetSearch;
|
|
260
270
|
selectSearchResult(selectOptionData: ThyCascaderSearchOption): void;
|
|
261
271
|
ngOnDestroy(): void;
|
|
262
272
|
static ɵfac: i0.ɵɵFactoryDeclaration<ThyCascaderComponent, never>;
|
|
263
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<ThyCascaderComponent, "thy-cascader,[thy-cascader]", never, { "thyValueProperty": { "alias": "thyValueProperty"; "required": false; }; "thyLabelProperty": { "alias": "thyLabelProperty"; "required": false; }; "thyPlaceholder": { "alias": "thyPlaceholder"; "required": false; }; "thySize": { "alias": "thySize"; "required": false; }; "thyOptions": { "alias": "thyOptions"; "required": false; }; "thyChangeOn": { "alias": "thyChangeOn"; "required": false; }; "thyChangeOnSelect": { "alias": "thyChangeOnSelect"; "required": false; }; "thyShowInput": { "alias": "thyShowInput"; "required": false; }; "thyLabelRender": { "alias": "thyLabelRender"; "required": false; }; "thyLoadData": { "alias": "thyLoadData"; "required": false; }; "thyTriggerAction": { "alias": "thyTriggerAction"; "required": false; }; "thyExpandTriggerAction": { "alias": "thyExpandTriggerAction"; "required": false; }; "thyMenuStyle": { "alias": "thyMenuStyle"; "required": false; }; "thyMenuClassName": { "alias": "thyMenuClassName"; "required": false; }; "thyColumnClassName": { "alias": "thyColumnClassName"; "required": false; }; "thyDisabled": { "alias": "thyDisabled"; "required": false; }; "thyEmptyStateText": { "alias": "thyEmptyStateText"; "required": false; }; "thyMultiple": { "alias": "thyMultiple"; "required": false; }; "thyMaxTagCount": { "alias": "thyMaxTagCount"; "required": false; }; "thyIsOnlySelectLeaf": { "alias": "thyIsOnlySelectLeaf"; "required": false; }; "thyShowSearch": { "alias": "thyShowSearch"; "required": false; }; }, { "thyChange": "thyChange"; "thySelectionChange": "thySelectionChange"; "thySelect": "thySelect"; "thyDeselect": "thyDeselect"; "thyClear": "thyClear"; }, never, never, true, never>;
|
|
273
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ThyCascaderComponent, "thy-cascader,[thy-cascader]", never, { "thyValueProperty": { "alias": "thyValueProperty"; "required": false; }; "thyLabelProperty": { "alias": "thyLabelProperty"; "required": false; }; "thyPlaceholder": { "alias": "thyPlaceholder"; "required": false; }; "thySize": { "alias": "thySize"; "required": false; }; "thyOptions": { "alias": "thyOptions"; "required": false; }; "thyChangeOn": { "alias": "thyChangeOn"; "required": false; }; "thyChangeOnSelect": { "alias": "thyChangeOnSelect"; "required": false; }; "thyShowInput": { "alias": "thyShowInput"; "required": false; }; "thyLabelRender": { "alias": "thyLabelRender"; "required": false; }; "thyLoadData": { "alias": "thyLoadData"; "required": false; }; "thyTriggerAction": { "alias": "thyTriggerAction"; "required": false; }; "thyExpandTriggerAction": { "alias": "thyExpandTriggerAction"; "required": false; }; "thyMenuStyle": { "alias": "thyMenuStyle"; "required": false; }; "thyMenuClassName": { "alias": "thyMenuClassName"; "required": false; }; "thyColumnClassName": { "alias": "thyColumnClassName"; "required": false; }; "thyDisabled": { "alias": "thyDisabled"; "required": false; }; "thyEmptyStateText": { "alias": "thyEmptyStateText"; "required": false; }; "thyMultiple": { "alias": "thyMultiple"; "required": false; }; "thyMaxTagCount": { "alias": "thyMaxTagCount"; "required": false; }; "thyIsOnlySelectLeaf": { "alias": "thyIsOnlySelectLeaf"; "required": false; }; "thyShowSearch": { "alias": "thyShowSearch"; "required": false; }; }, { "thyChange": "thyChange"; "thySelectionChange": "thySelectionChange"; "thySelect": "thySelect"; "thyDeselect": "thyDeselect"; "thyClear": "thyClear"; "thyExpandStatusChange": "thyExpandStatusChange"; }, never, never, true, never>;
|
|
264
274
|
}
|
package/cascader/types.d.ts
CHANGED
|
@@ -5,7 +5,7 @@ import { ChangeDetectorRef, EventEmitter, OnChanges, OnDestroy, OnInit, SimpleCh
|
|
|
5
5
|
import { ControlValueAccessor } from '@angular/forms';
|
|
6
6
|
import { CompatibleValue, RangeAdvancedValue } from './inner-types';
|
|
7
7
|
import { ThyPickerComponent } from './picker.component';
|
|
8
|
-
import { CompatibleDate, DateEntry, DisabledDateFn, ThyDateRangeEntry, ThyPanelMode, ThyShortcutPosition, CompatiblePresets, ThyShortcutValueChange, ThyDateGranularity } from './standard-types';
|
|
8
|
+
import { CompatibleDate, DateEntry, DisabledDateFn, ThyDateRangeEntry, ThyPanelMode, ThyShortcutPosition, CompatiblePresets, ThyShortcutValueChange, ThyDateGranularity, ThyDateChangeEvent } from './standard-types';
|
|
9
9
|
import * as i0 from "@angular/core";
|
|
10
10
|
/**
|
|
11
11
|
* @private
|
|
@@ -99,7 +99,15 @@ export declare abstract class AbstractPickerComponent extends TabIndexDisabledCo
|
|
|
99
99
|
* @type ThyShortcutPreset[]
|
|
100
100
|
*/
|
|
101
101
|
set thyShortcutPresets(presets: CompatiblePresets);
|
|
102
|
+
/**
|
|
103
|
+
* 已废弃,请使用 thyDateChange
|
|
104
|
+
* @deprecated please use thyDateChange
|
|
105
|
+
*/
|
|
102
106
|
readonly thyShortcutValueChange: EventEmitter<ThyShortcutValueChange>;
|
|
107
|
+
/**
|
|
108
|
+
* 日期变化的回调
|
|
109
|
+
*/
|
|
110
|
+
readonly thyDateChange: EventEmitter<ThyDateChangeEvent>;
|
|
103
111
|
readonly thyOpenChange: EventEmitter<boolean>;
|
|
104
112
|
picker: ThyPickerComponent;
|
|
105
113
|
/**
|
|
@@ -125,6 +133,7 @@ export declare abstract class AbstractPickerComponent extends TabIndexDisabledCo
|
|
|
125
133
|
ngOnInit(): void;
|
|
126
134
|
isFlexible(): void;
|
|
127
135
|
onShortcutValueChange(event: ThyShortcutValueChange): void;
|
|
136
|
+
onDateValueChange(event: ThyDateChangeEvent): void;
|
|
128
137
|
ngOnChanges(changes: SimpleChanges): void;
|
|
129
138
|
ngOnDestroy(): void;
|
|
130
139
|
closeOverlay(): void;
|
|
@@ -142,5 +151,5 @@ export declare abstract class AbstractPickerComponent extends TabIndexDisabledCo
|
|
|
142
151
|
private setDefaultPlaceHolder;
|
|
143
152
|
setValue(value: CompatibleDate): void;
|
|
144
153
|
static ɵfac: i0.ɵɵFactoryDeclaration<AbstractPickerComponent, never>;
|
|
145
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<AbstractPickerComponent, never, never, { "thyMode": { "alias": "thyMode"; "required": false; }; "thyAllowClear": { "alias": "thyAllowClear"; "required": false; }; "thyAutoFocus": { "alias": "thyAutoFocus"; "required": false; }; "thyOpen": { "alias": "thyOpen"; "required": false; }; "thyDisabledDate": { "alias": "thyDisabledDate"; "required": false; }; "thyMinDate": { "alias": "thyMinDate"; "required": false; }; "thyMaxDate": { "alias": "thyMaxDate"; "required": false; }; "thyPlaceHolder": { "alias": "thyPlaceHolder"; "required": false; }; "thyReadonly": { "alias": "thyReadonly"; "required": false; }; "thyOriginClassName": { "alias": "thyOriginClassName"; "required": false; }; "thyPanelClassName": { "alias": "thyPanelClassName"; "required": false; }; "thySize": { "alias": "thySize"; "required": false; }; "thyFormat": { "alias": "thyFormat"; "required": false; }; "thyAutoStartAndEnd": { "alias": "thyAutoStartAndEnd"; "required": false; }; "thyDefaultPickerValue": { "alias": "thyDefaultPickerValue"; "required": false; }; "thySuffixIcon": { "alias": "thySuffixIcon"; "required": false; }; "thyShowShortcut": { "alias": "thyShowShortcut"; "required": false; }; "thyShortcutPosition": { "alias": "thyShortcutPosition"; "required": false; }; "thyShortcutPresets": { "alias": "thyShortcutPresets"; "required": false; }; "thyDisabled": { "alias": "thyDisabled"; "required": false; }; }, { "thyShortcutValueChange": "thyShortcutValueChange"; "thyOpenChange": "thyOpenChange"; }, never, never, false, never>;
|
|
154
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<AbstractPickerComponent, never, never, { "thyMode": { "alias": "thyMode"; "required": false; }; "thyAllowClear": { "alias": "thyAllowClear"; "required": false; }; "thyAutoFocus": { "alias": "thyAutoFocus"; "required": false; }; "thyOpen": { "alias": "thyOpen"; "required": false; }; "thyDisabledDate": { "alias": "thyDisabledDate"; "required": false; }; "thyMinDate": { "alias": "thyMinDate"; "required": false; }; "thyMaxDate": { "alias": "thyMaxDate"; "required": false; }; "thyPlaceHolder": { "alias": "thyPlaceHolder"; "required": false; }; "thyReadonly": { "alias": "thyReadonly"; "required": false; }; "thyOriginClassName": { "alias": "thyOriginClassName"; "required": false; }; "thyPanelClassName": { "alias": "thyPanelClassName"; "required": false; }; "thySize": { "alias": "thySize"; "required": false; }; "thyFormat": { "alias": "thyFormat"; "required": false; }; "thyAutoStartAndEnd": { "alias": "thyAutoStartAndEnd"; "required": false; }; "thyDefaultPickerValue": { "alias": "thyDefaultPickerValue"; "required": false; }; "thySuffixIcon": { "alias": "thySuffixIcon"; "required": false; }; "thyShowShortcut": { "alias": "thyShowShortcut"; "required": false; }; "thyShortcutPosition": { "alias": "thyShortcutPosition"; "required": false; }; "thyShortcutPresets": { "alias": "thyShortcutPresets"; "required": false; }; "thyDisabled": { "alias": "thyDisabled"; "required": false; }; }, { "thyShortcutValueChange": "thyShortcutValueChange"; "thyDateChange": "thyDateChange"; "thyOpenChange": "thyOpenChange"; }, never, never, false, never>;
|
|
146
155
|
}
|
|
@@ -61,6 +61,7 @@ export declare abstract class PickerDirective extends AbstractPickerComponent im
|
|
|
61
61
|
private destroy$;
|
|
62
62
|
private el;
|
|
63
63
|
readonly $click: Observable<boolean>;
|
|
64
|
+
takeUntilDestroyed: import("rxjs").MonoTypeOperatorFunction<unknown>;
|
|
64
65
|
ngOnInit(): void;
|
|
65
66
|
private getInitialState;
|
|
66
67
|
private openOverlay;
|
|
@@ -2,7 +2,7 @@ import { FunctionProp, TinyDate } from 'ngx-tethys/util';
|
|
|
2
2
|
import { ChangeDetectorRef, EventEmitter, OnChanges, OnInit, SimpleChanges, TemplateRef } from '@angular/core';
|
|
3
3
|
import { ThyDatePickerConfigService } from '../../date-picker.service';
|
|
4
4
|
import { CompatibleValue, DatePickerFlexibleTab, RangeAdvancedValue, RangePartType } from '../../inner-types';
|
|
5
|
-
import { CompatibleDate, CompatiblePresets, DisabledDateFn, SupportTimeOptions, ThyDateGranularity, ThyPanelMode, ThyShortcutPosition, ThyShortcutPreset, ThyShortcutValueChange } from '../../standard-types';
|
|
5
|
+
import { CompatibleDate, CompatiblePresets, DisabledDateFn, SupportTimeOptions, ThyDateChangeEvent, ThyDateGranularity, ThyPanelMode, ThyShortcutPosition, ThyShortcutPreset, ThyShortcutValueChange } from '../../standard-types';
|
|
6
6
|
import * as i0 from "@angular/core";
|
|
7
7
|
/**
|
|
8
8
|
* @private
|
|
@@ -40,7 +40,11 @@ export declare class DatePopupComponent implements OnChanges, OnInit {
|
|
|
40
40
|
readonly valueChange: EventEmitter<CompatibleValue | RangeAdvancedValue>;
|
|
41
41
|
readonly resultOk: EventEmitter<void>;
|
|
42
42
|
readonly showTimePickerChange: EventEmitter<boolean>;
|
|
43
|
+
/**
|
|
44
|
+
* @deprecated
|
|
45
|
+
*/
|
|
43
46
|
readonly shortcutValueChange: EventEmitter<ThyShortcutValueChange>;
|
|
47
|
+
readonly dateValueChange: EventEmitter<ThyDateChangeEvent>;
|
|
44
48
|
prefixCls: string;
|
|
45
49
|
showTimePicker: boolean;
|
|
46
50
|
timeOptions: SupportTimeOptions | SupportTimeOptions[] | null;
|
|
@@ -92,5 +96,5 @@ export declare class DatePopupComponent implements OnChanges, OnInit {
|
|
|
92
96
|
shortcutSetValue(shortcutPresets: ThyShortcutPreset): void;
|
|
93
97
|
trackByFn(index: number): number;
|
|
94
98
|
static ɵfac: i0.ɵɵFactoryDeclaration<DatePopupComponent, never>;
|
|
95
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<DatePopupComponent, "date-popup", ["datePopup"], { "isRange": { "alias": "isRange"; "required": false; }; "showWeek": { "alias": "showWeek"; "required": false; }; "format": { "alias": "format"; "required": false; }; "disabledDate": { "alias": "disabledDate"; "required": false; }; "minDate": { "alias": "minDate"; "required": false; }; "maxDate": { "alias": "maxDate"; "required": false; }; "showToday": { "alias": "showToday"; "required": false; }; "showTime": { "alias": "showTime"; "required": false; }; "mustShowTime": { "alias": "mustShowTime"; "required": false; }; "dateRender": { "alias": "dateRender"; "required": false; }; "className": { "alias": "className"; "required": false; }; "panelMode": { "alias": "panelMode"; "required": false; }; "value": { "alias": "value"; "required": false; }; "defaultPickerValue": { "alias": "defaultPickerValue"; "required": false; }; "showShortcut": { "alias": "showShortcut"; "required": false; }; "shortcutPresets": { "alias": "shortcutPresets"; "required": false; }; "shortcutPosition": { "alias": "shortcutPosition"; "required": false; }; "flexible": { "alias": "flexible"; "required": false; }; "flexibleDateGranularity": { "alias": "flexibleDateGranularity"; "required": false; }; }, { "panelModeChange": "panelModeChange"; "calendarChange": "calendarChange"; "valueChange": "valueChange"; "resultOk": "resultOk"; "showTimePickerChange": "showTimePickerChange"; "shortcutValueChange": "shortcutValueChange"; }, never, never, true, never>;
|
|
99
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<DatePopupComponent, "date-popup", ["datePopup"], { "isRange": { "alias": "isRange"; "required": false; }; "showWeek": { "alias": "showWeek"; "required": false; }; "format": { "alias": "format"; "required": false; }; "disabledDate": { "alias": "disabledDate"; "required": false; }; "minDate": { "alias": "minDate"; "required": false; }; "maxDate": { "alias": "maxDate"; "required": false; }; "showToday": { "alias": "showToday"; "required": false; }; "showTime": { "alias": "showTime"; "required": false; }; "mustShowTime": { "alias": "mustShowTime"; "required": false; }; "dateRender": { "alias": "dateRender"; "required": false; }; "className": { "alias": "className"; "required": false; }; "panelMode": { "alias": "panelMode"; "required": false; }; "value": { "alias": "value"; "required": false; }; "defaultPickerValue": { "alias": "defaultPickerValue"; "required": false; }; "showShortcut": { "alias": "showShortcut"; "required": false; }; "shortcutPresets": { "alias": "shortcutPresets"; "required": false; }; "shortcutPosition": { "alias": "shortcutPosition"; "required": false; }; "flexible": { "alias": "flexible"; "required": false; }; "flexibleDateGranularity": { "alias": "flexibleDateGranularity"; "required": false; }; }, { "panelModeChange": "panelModeChange"; "calendarChange": "calendarChange"; "valueChange": "valueChange"; "resultOk": "resultOk"; "showTimePickerChange": "showTimePickerChange"; "shortcutValueChange": "shortcutValueChange"; "dateValueChange": "dateValueChange"; }, never, never, true, never>;
|
|
96
100
|
}
|
|
@@ -43,10 +43,17 @@ export interface ThyShortcutPreset {
|
|
|
43
43
|
value?: ThyShortcutValue | [ThyShortcutValue, ThyShortcutValue];
|
|
44
44
|
disabled?: boolean;
|
|
45
45
|
}
|
|
46
|
+
/**
|
|
47
|
+
* @deprecated
|
|
48
|
+
*/
|
|
46
49
|
export interface ThyShortcutValueChange {
|
|
47
50
|
value: CompatibleValue;
|
|
48
51
|
triggerPresets: ThyShortcutPreset;
|
|
49
52
|
}
|
|
53
|
+
export interface ThyDateChangeEvent {
|
|
54
|
+
value: CompatibleValue;
|
|
55
|
+
triggerPreset?: ThyShortcutPreset;
|
|
56
|
+
}
|
|
50
57
|
/**
|
|
51
58
|
* @deprecated please use ThyPanelMode
|
|
52
59
|
*/
|
|
@@ -1,10 +1,12 @@
|
|
|
1
1
|
import { __decorate, __metadata } from "tslib";
|
|
2
|
-
import { InputBoolean } from 'ngx-tethys/core';
|
|
3
|
-
import { ChangeDetectionStrategy, Component, EventEmitter, HostBinding, Input, Output, ViewEncapsulation } from '@angular/core';
|
|
4
|
-
import { FormsModule } from '@angular/forms';
|
|
5
2
|
import { ThyCheckboxComponent } from 'ngx-tethys/checkbox';
|
|
3
|
+
import { InputBoolean } from 'ngx-tethys/core';
|
|
6
4
|
import { ThyFlexibleTextComponent } from 'ngx-tethys/flexible-text';
|
|
5
|
+
import { ThyRadioComponent } from 'ngx-tethys/radio';
|
|
6
|
+
import { ThyStopPropagationDirective } from 'ngx-tethys/shared';
|
|
7
7
|
import { NgIf } from '@angular/common';
|
|
8
|
+
import { ChangeDetectionStrategy, Component, EventEmitter, HostBinding, Input, Output, ViewEncapsulation } from '@angular/core';
|
|
9
|
+
import { FormsModule } from '@angular/forms';
|
|
8
10
|
import * as i0 from "@angular/core";
|
|
9
11
|
import * as i1 from "@angular/forms";
|
|
10
12
|
/**
|
|
@@ -23,6 +25,7 @@ export class ThyCascaderOptionComponent {
|
|
|
23
25
|
this.class = 'd-flex';
|
|
24
26
|
this.item = true;
|
|
25
27
|
this.active = false;
|
|
28
|
+
this.selected = false;
|
|
26
29
|
this.labelProperty = 'label';
|
|
27
30
|
this.toggleSelectChange = new EventEmitter();
|
|
28
31
|
}
|
|
@@ -31,7 +34,7 @@ export class ThyCascaderOptionComponent {
|
|
|
31
34
|
this.toggleSelectChange.emit(value);
|
|
32
35
|
}
|
|
33
36
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.0", ngImport: i0, type: ThyCascaderOptionComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
34
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.0", type: ThyCascaderOptionComponent, isStandalone: true, selector: "[thy-cascader-option]", inputs: { option: "option", multiple: "multiple", isOnlySelectLeaf: "isOnlySelectLeaf", active: "active", labelProperty: "labelProperty" }, outputs: { toggleSelectChange: "toggleSelectChange" }, host: { properties: { "class": "this.class", "class.thy-cascader-menu-item": "this.item", "class.thy-cascader-menu-item-active": "this.active", "class.thy-cascader-menu-item-disabled": "this.disabled", "class.thy-cascader-menu-item-expand": "this.expand" } }, ngImport: i0, template: "<
|
|
37
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.0", type: ThyCascaderOptionComponent, isStandalone: true, selector: "[thy-cascader-option]", inputs: { option: "option", multiple: "multiple", isOnlySelectLeaf: "isOnlySelectLeaf", active: "active", selected: "selected", labelProperty: "labelProperty" }, outputs: { toggleSelectChange: "toggleSelectChange" }, host: { properties: { "class": "this.class", "class.thy-cascader-menu-item": "this.item", "class.thy-cascader-menu-item-active": "this.active", "class.thy-cascader-menu-item-disabled": "this.disabled", "class.thy-cascader-menu-item-expand": "this.expand" } }, ngImport: i0, template: "<div thyStopPropagation>\n <label\n *ngIf=\"multiple && (!isOnlySelectLeaf || option.isLeaf)\"\n thyCheckbox\n [disabled]=\"option.disabled\"\n [name]=\"option.value || option._id\"\n [(ngModel)]=\"selected\"\n (ngModelChange)=\"toggleOption($event)\"></label>\n <label\n *ngIf=\"!multiple && !isOnlySelectLeaf\"\n thyRadio\n [disabled]=\"option.disabled\"\n [name]=\"option.value || option._id\"\n [(ngModel)]=\"selected\"\n (ngModelChange)=\"toggleOption($event)\"></label>\n</div>\n\n<span thyFlexibleText [thyTooltipContent]=\"option[labelProperty] || ''\"> {{ option[labelProperty] || '' }}</span>\n\n<span\n *ngIf=\"!option.isLeaf || (option.children && option.children.length) || option.loading\"\n class=\"wtf wtf-angle-right thy-cascader-menu-item-expand-icon\">\n</span>\n", dependencies: [{ kind: "directive", type: NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: ThyFlexibleTextComponent, selector: "thy-flexible-text,[thyFlexibleText]", inputs: ["thyTooltipTrigger", "thyContainerClass", "thyTooltipContent", "thyTooltipPlacement", "thyTooltipOffset"], exportAs: ["thyFlexibleText"] }, { kind: "component", type: ThyCheckboxComponent, selector: "thy-checkbox,[thy-checkbox],[thyCheckbox]", inputs: ["thyIndeterminate"] }, { kind: "component", type: ThyRadioComponent, selector: "[thy-radio],[thyRadio]", inputs: ["thyValue"] }, { kind: "ngmodule", type: FormsModule }, { kind: "directive", type: i1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i1.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "directive", type: ThyStopPropagationDirective, selector: "[thyStopPropagation]", inputs: ["thyStopPropagation"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None }); }
|
|
35
38
|
}
|
|
36
39
|
__decorate([
|
|
37
40
|
InputBoolean(),
|
|
@@ -45,9 +48,13 @@ __decorate([
|
|
|
45
48
|
InputBoolean(),
|
|
46
49
|
__metadata("design:type", Boolean)
|
|
47
50
|
], ThyCascaderOptionComponent.prototype, "active", void 0);
|
|
51
|
+
__decorate([
|
|
52
|
+
InputBoolean(),
|
|
53
|
+
__metadata("design:type", Boolean)
|
|
54
|
+
], ThyCascaderOptionComponent.prototype, "selected", void 0);
|
|
48
55
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.0", ngImport: i0, type: ThyCascaderOptionComponent, decorators: [{
|
|
49
56
|
type: Component,
|
|
50
|
-
args: [{ changeDetection: ChangeDetectionStrategy.OnPush, encapsulation: ViewEncapsulation.None, selector: '[thy-cascader-option]', standalone: true, imports: [NgIf, ThyFlexibleTextComponent, ThyCheckboxComponent, FormsModule], template: "<
|
|
57
|
+
args: [{ changeDetection: ChangeDetectionStrategy.OnPush, encapsulation: ViewEncapsulation.None, selector: '[thy-cascader-option]', standalone: true, imports: [NgIf, ThyFlexibleTextComponent, ThyCheckboxComponent, ThyRadioComponent, FormsModule, ThyStopPropagationDirective], template: "<div thyStopPropagation>\n <label\n *ngIf=\"multiple && (!isOnlySelectLeaf || option.isLeaf)\"\n thyCheckbox\n [disabled]=\"option.disabled\"\n [name]=\"option.value || option._id\"\n [(ngModel)]=\"selected\"\n (ngModelChange)=\"toggleOption($event)\"></label>\n <label\n *ngIf=\"!multiple && !isOnlySelectLeaf\"\n thyRadio\n [disabled]=\"option.disabled\"\n [name]=\"option.value || option._id\"\n [(ngModel)]=\"selected\"\n (ngModelChange)=\"toggleOption($event)\"></label>\n</div>\n\n<span thyFlexibleText [thyTooltipContent]=\"option[labelProperty] || ''\"> {{ option[labelProperty] || '' }}</span>\n\n<span\n *ngIf=\"!option.isLeaf || (option.children && option.children.length) || option.loading\"\n class=\"wtf wtf-angle-right thy-cascader-menu-item-expand-icon\">\n</span>\n" }]
|
|
51
58
|
}], ctorParameters: function () { return []; }, propDecorators: { option: [{
|
|
52
59
|
type: Input
|
|
53
60
|
}], multiple: [{
|
|
@@ -65,6 +72,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.0", ngImpor
|
|
|
65
72
|
args: ['class.thy-cascader-menu-item-active']
|
|
66
73
|
}, {
|
|
67
74
|
type: Input
|
|
75
|
+
}], selected: [{
|
|
76
|
+
type: Input
|
|
68
77
|
}], disabled: [{
|
|
69
78
|
type: HostBinding,
|
|
70
79
|
args: ['class.thy-cascader-menu-item-disabled']
|
|
@@ -76,4 +85,4 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.0", ngImpor
|
|
|
76
85
|
}], toggleSelectChange: [{
|
|
77
86
|
type: Output
|
|
78
87
|
}] } });
|
|
79
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
88
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY2FzY2FkZXItbGkuY29tcG9uZW50LmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vc3JjL2Nhc2NhZGVyL2Nhc2NhZGVyLWxpLmNvbXBvbmVudC50cyIsIi4uLy4uLy4uLy4uL3NyYy9jYXNjYWRlci9jYXNjYWRlci1saS5jb21wb25lbnQuaHRtbCJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiO0FBQUEsT0FBTyxFQUFFLG9CQU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