ngx-tethys 16.2.0-next.8 → 16.2.0

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 CHANGED
@@ -2,6 +2,55 @@
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.2.0](https://github.com/atinc/ngx-tethys/compare/16.2.0-next.11...16.2.0) (2024-01-02)
6
+
7
+
8
+ ### Bug Fixes
9
+
10
+ * **input-number:** fix input number display value error with suffix when delete #INFR-11109 ([6cbf2b4](https://github.com/atinc/ngx-tethys/commit/6cbf2b45f080514c1b8dfff71bf9765db2b90c8b)), closes [#INFR-11109](https://github.com/atinc/ngx-tethys/issues/INFR-11109)
11
+ * **tree-select:** optimize tree select popover width style #INFR-11127 ([#3009](https://github.com/atinc/ngx-tethys/issues/3009)) ([3faa2f7](https://github.com/atinc/ngx-tethys/commit/3faa2f7073a62837c4817c6ffde4870d198e50ea)), closes [#INFR-11127](https://github.com/atinc/ngx-tethys/issues/INFR-11127)
12
+
13
+
14
+
15
+ # [16.2.0-next.11](https://github.com/atinc/ngx-tethys/compare/16.2.0-next.10...16.2.0-next.11) (2023-12-29)
16
+
17
+
18
+ ### Bug Fixes
19
+
20
+ * **overlay:** #INFR-11126 adjust dispatch dispose timing ([#3005](https://github.com/atinc/ngx-tethys/issues/3005)) ([468f62d](https://github.com/atinc/ngx-tethys/commit/468f62d1ba6bfc2f23ded8de730e9626ae969265)), closes [#INFR-11126](https://github.com/atinc/ngx-tethys/issues/INFR-11126)
21
+
22
+
23
+ ### Features
24
+
25
+ * **cascader:** support thyHasBackdrop and fix some known bugs for trigger hover #INFR-11123 ([#3007](https://github.com/atinc/ngx-tethys/issues/3007)) ([f0c9d9a](https://github.com/atinc/ngx-tethys/commit/f0c9d9a8905e0a0f3002f8f6a421a4f5a04ec4e5)), closes [#INFR-11123](https://github.com/atinc/ngx-tethys/issues/INFR-11123)
26
+
27
+
28
+
29
+ # [16.2.0-next.10](https://github.com/atinc/ngx-tethys/compare/16.2.0-next.9...16.2.0-next.10) (2023-12-29)
30
+
31
+
32
+ ### Bug Fixes
33
+
34
+ * **action:** fix action-lite disabled style (#INFR-11105) ([#2999](https://github.com/atinc/ngx-tethys/issues/2999)) ([5dae2b6](https://github.com/atinc/ngx-tethys/commit/5dae2b614873bcb869dd32a100a4d03a40c98dbd)), closes [#INFR-11105](https://github.com/atinc/ngx-tethys/issues/INFR-11105)
35
+ * **cascader:** fix option will be auto selected when children is [] #INFR-11090 ([#2998](https://github.com/atinc/ngx-tethys/issues/2998)) ([3aff9c6](https://github.com/atinc/ngx-tethys/commit/3aff9c6a0c39417033fb0e70083c5f2b61de0ef4)), closes [#INFR-11090](https://github.com/atinc/ngx-tethys/issues/INFR-11090)
36
+ * **property:** fix style when operation's height is not 32 #INFR-11125 ([#3004](https://github.com/atinc/ngx-tethys/issues/3004)) ([4687472](https://github.com/atinc/ngx-tethys/commit/4687472e48f7b34f1166c028dd884efff325073e)), closes [#INFR-11125](https://github.com/atinc/ngx-tethys/issues/INFR-11125)
37
+
38
+
39
+
40
+ # [16.2.0-next.9](https://github.com/atinc/ngx-tethys/compare/16.2.0-next.8...16.2.0-next.9) (2023-12-28)
41
+
42
+
43
+ ### Bug Fixes
44
+
45
+ * **cascader:** update position when cascader resize #INFR-11114 ([#3001](https://github.com/atinc/ngx-tethys/issues/3001)) ([6ce3cec](https://github.com/atinc/ngx-tethys/commit/6ce3cec2f19769b393456b22ad5f65c356a180cb)), closes [#INFR-11114](https://github.com/atinc/ngx-tethys/issues/INFR-11114)
46
+
47
+
48
+ ### Features
49
+
50
+ * **property:** add background & adjust html for property-item #INFR-11030 #INFR-11089 ([#2994](https://github.com/atinc/ngx-tethys/issues/2994)) ([925972c](https://github.com/atinc/ngx-tethys/commit/925972c982a9b905b324a26129afbbca641a03d2)), closes [#INFR-11030](https://github.com/atinc/ngx-tethys/issues/INFR-11030) [#INFR-11089](https://github.com/atinc/ngx-tethys/issues/INFR-11089)
51
+
52
+
53
+
5
54
  # [16.2.0-next.8](https://github.com/atinc/ngx-tethys/compare/16.2.0-next.7...16.2.0-next.8) (2023-12-26)
6
55
 
7
56
 
@@ -76,7 +76,7 @@
76
76
 
77
77
  .thy-action-lite {
78
78
  @include hover.hover-active {
79
- &:not(.thy-action-has-feedback) {
79
+ &:not(.thy-action-has-feedback):not(.disabled) {
80
80
  background: none;
81
81
  }
82
82
  }
@@ -1,6 +1,6 @@
1
1
  import { TabIndexDisabledControlValueAccessorMixin, ThyClickDispatcher } from 'ngx-tethys/core';
2
2
  import { SelectControlSize, SelectOptionBase } from 'ngx-tethys/shared';
3
- import { CdkConnectedOverlay, ConnectedOverlayPositionChange, ConnectionPositionPair, ViewportRuler } from '@angular/cdk/overlay';
3
+ import { CdkConnectedOverlay, ConnectedOverlayPositionChange, ConnectionPositionPair } from '@angular/cdk/overlay';
4
4
  import { AfterContentInit, ChangeDetectorRef, ElementRef, EventEmitter, NgZone, OnChanges, OnDestroy, OnInit, QueryList, SimpleChanges, TemplateRef } from '@angular/core';
5
5
  import { ControlValueAccessor } from '@angular/forms';
6
6
  import { ThyCascaderExpandTrigger, ThyCascaderOption, ThyCascaderSearchOption, ThyCascaderTriggerType } from './types';
@@ -13,7 +13,6 @@ import * as i0 from "@angular/core";
13
13
  export declare class ThyCascaderComponent extends TabIndexDisabledControlValueAccessorMixin implements ControlValueAccessor, OnInit, OnChanges, OnDestroy, AfterContentInit {
14
14
  private platformId;
15
15
  private cdr;
16
- private viewPortRuler;
17
16
  elementRef: ElementRef;
18
17
  private thyClickDispatcher;
19
18
  private ngZone;
@@ -138,6 +137,10 @@ export declare class ThyCascaderComponent extends TabIndexDisabledControlValueAc
138
137
  * @default ''|tag
139
138
  */
140
139
  thyPreset: string;
140
+ /**
141
+ * 是否有幕布
142
+ */
143
+ thyHasBackdrop: boolean;
141
144
  /**
142
145
  * 值发生变化时触发,返回选择项的值
143
146
  * @type EventEmitter<any[]>
@@ -207,6 +210,7 @@ export declare class ThyCascaderComponent extends TabIndexDisabledControlValueAc
207
210
  get isLoading(): boolean;
208
211
  get columns(): ThyCascaderOption[][];
209
212
  private afterChangeFn;
213
+ private resizeSubscription;
210
214
  ngOnInit(): void;
211
215
  ngAfterContentInit(): void;
212
216
  ngOnChanges(changes: SimpleChanges): void;
@@ -231,10 +235,10 @@ export declare class ThyCascaderComponent extends TabIndexDisabledControlValueAc
231
235
  private isHoverTriggerAction;
232
236
  private isHoverExpandTriggerAction;
233
237
  toggleClick($event: Event): void;
234
- toggleHover($event: Event): void;
238
+ toggleMouseEnter(event: MouseEvent): void;
239
+ toggleMouseLeave(event: MouseEvent): void;
235
240
  clickOption(option: ThyCascaderOption, index: number, event: Event | boolean): void;
236
241
  mouseoverOption(option: ThyCascaderOption, index: number, event: Event): void;
237
- mouseleaveMenu(event: Event): void;
238
242
  onBlur(event?: FocusEvent): void;
239
243
  onFocus(event?: FocusEvent): void;
240
244
  closeMenu(): void;
@@ -246,14 +250,16 @@ export declare class ThyCascaderComponent extends TabIndexDisabledControlValueAc
246
250
  }): void;
247
251
  private shouldPerformSelection;
248
252
  clearSelection($event: Event): void;
249
- constructor(platformId: string, cdr: ChangeDetectorRef, viewPortRuler: ViewportRuler, elementRef: ElementRef, thyClickDispatcher: ThyClickDispatcher, ngZone: NgZone, thyCascaderService: ThyCascaderService);
253
+ constructor(platformId: string, cdr: ChangeDetectorRef, elementRef: ElementRef, thyClickDispatcher: ThyClickDispatcher, ngZone: NgZone, thyCascaderService: ThyCascaderService);
250
254
  trackByFn(index: number, item: ThyCascaderOption): any;
251
255
  searchFilter(searchText: string): void;
252
256
  private initSearch;
253
257
  private searchInLocal;
254
258
  private resetSearch;
255
259
  selectSearchResult(selectOptionData: ThyCascaderSearchOption): void;
260
+ private subscribeTriggerResize;
261
+ private unsubscribeTriggerResize;
256
262
  ngOnDestroy(): void;
257
263
  static ɵfac: i0.ɵɵFactoryDeclaration<ThyCascaderComponent, never>;
258
- 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; }; "thyAutoExpand": { "alias": "thyAutoExpand"; "required": false; }; "thyShowSearch": { "alias": "thyShowSearch"; "required": false; }; "thyPreset": { "alias": "thyPreset"; "required": false; }; }, { "thyChange": "thyChange"; "thySelectionChange": "thySelectionChange"; "thySelect": "thySelect"; "thyDeselect": "thyDeselect"; "thyClear": "thyClear"; "thyExpandStatusChange": "thyExpandStatusChange"; }, never, never, true, never>;
264
+ 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; }; "thyAutoExpand": { "alias": "thyAutoExpand"; "required": false; }; "thyShowSearch": { "alias": "thyShowSearch"; "required": false; }; "thyPreset": { "alias": "thyPreset"; "required": false; }; "thyHasBackdrop": { "alias": "thyHasBackdrop"; "required": false; }; }, { "thyChange": "thyChange"; "thySelectionChange": "thySelectionChange"; "thySelect": "thySelect"; "thyDeselect": "thyDeselect"; "thyClear": "thyClear"; "thyExpandStatusChange": "thyExpandStatusChange"; }, never, never, true, never>;
259
265
  }
@@ -1,7 +1,7 @@
1
1
  import { SelectionModel } from '@angular/cdk/collections';
2
2
  import { SelectOptionBase } from 'ngx-tethys/shared';
3
- import { ThyCascaderOption, ThyCascaderSearchOption } from './types';
4
3
  import { Subject } from 'rxjs';
4
+ import { ThyCascaderOption, ThyCascaderSearchOption } from './types';
5
5
  import * as i0 from "@angular/core";
6
6
  /**
7
7
  * @internal
@@ -27,6 +27,8 @@ $cascader-menu-min-width: 122px;
27
27
  border-radius: 4px;
28
28
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
29
29
  white-space: nowrap;
30
+ margin-top: 4px;
31
+ margin-bottom: 4px;
30
32
  ul,
31
33
  ol {
32
34
  list-style: none;