ngx-tethys 19.1.5 → 19.1.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 +9 -0
- package/cascader/cascader.component.d.ts +3 -4
- package/fesm2022/ngx-tethys-cascader.mjs +10 -5
- package/fesm2022/ngx-tethys-cascader.mjs.map +1 -1
- package/fesm2022/ngx-tethys-select.mjs +12 -6
- package/fesm2022/ngx-tethys-select.mjs.map +1 -1
- package/fesm2022/ngx-tethys-shared.mjs +106 -19
- package/fesm2022/ngx-tethys-shared.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/select/custom-select/custom-select.component.d.ts +7 -7
- package/shared/select/select-control/select-control.component.d.ts +12 -4
- package/shared/select/select-control/select-control.scss +8 -0
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ThyTagSize } from 'ngx-tethys/tag';
|
|
2
|
-
import { ElementRef, OnInit,
|
|
2
|
+
import { AfterViewInit, ElementRef, OnInit, Signal, TemplateRef } from '@angular/core';
|
|
3
3
|
import { ThySharedLocale } from 'ngx-tethys/i18n';
|
|
4
4
|
import { SelectOptionBase } from '../../option/select-option-base';
|
|
5
5
|
import * as i0 from "@angular/core";
|
|
@@ -7,8 +7,11 @@ export type SelectControlSize = 'xs' | 'sm' | 'md' | 'lg' | '';
|
|
|
7
7
|
/**
|
|
8
8
|
* @private
|
|
9
9
|
*/
|
|
10
|
-
export declare class ThySelectControl implements OnInit {
|
|
10
|
+
export declare class ThySelectControl implements OnInit, AfterViewInit {
|
|
11
11
|
private renderer;
|
|
12
|
+
private cdr;
|
|
13
|
+
private ngZone;
|
|
14
|
+
private readonly destroyRef;
|
|
12
15
|
inputValue: import("@angular/core").ModelSignal<string>;
|
|
13
16
|
isComposing: import("@angular/core").WritableSignal<boolean>;
|
|
14
17
|
searchInputControlClass: {
|
|
@@ -27,7 +30,7 @@ export declare class ThySelectControl implements OnInit {
|
|
|
27
30
|
readonly thyPlaceholder: import("@angular/core").InputSignal<string>;
|
|
28
31
|
readonly thySize: import("@angular/core").InputSignal<SelectControlSize>;
|
|
29
32
|
readonly tagSize: Signal<ThyTagSize>;
|
|
30
|
-
readonly thyMaxTagCount: import("@angular/core").InputSignalWithTransform<number,
|
|
33
|
+
readonly thyMaxTagCount: import("@angular/core").InputSignalWithTransform<number | "auto", number | "auto">;
|
|
31
34
|
readonly thyBorderless: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
|
|
32
35
|
readonly thyPreset: import("@angular/core").InputSignal<string>;
|
|
33
36
|
readonly thyOnSearch: import("@angular/core").OutputEmitterRef<string>;
|
|
@@ -40,8 +43,10 @@ export declare class ThySelectControl implements OnInit {
|
|
|
40
43
|
readonly inputElement: Signal<ElementRef<any>>;
|
|
41
44
|
locale: Signal<ThySharedLocale>;
|
|
42
45
|
isSelectedValue: Signal<boolean>;
|
|
46
|
+
readonly tagsContainer: Signal<ElementRef<any>>;
|
|
47
|
+
visibleTagCount: import("@angular/core").WritableSignal<number>;
|
|
43
48
|
showClearIcon: Signal<boolean>;
|
|
44
|
-
|
|
49
|
+
selectedTags: Signal<SelectOptionBase[]>;
|
|
45
50
|
collapsedSelectedTags: Signal<SelectOptionBase[]>;
|
|
46
51
|
selectedValueStyle: Signal<{
|
|
47
52
|
display: string;
|
|
@@ -51,6 +56,9 @@ export declare class ThySelectControl implements OnInit {
|
|
|
51
56
|
}>;
|
|
52
57
|
constructor();
|
|
53
58
|
ngOnInit(): void;
|
|
59
|
+
ngAfterViewInit(): void;
|
|
60
|
+
private resizeObserver;
|
|
61
|
+
private calculateVisibleTags;
|
|
54
62
|
setSelectControlClass(): void;
|
|
55
63
|
setInputValue(value: string): void;
|
|
56
64
|
handleBackspace(event: Event): void;
|
|
@@ -153,6 +153,14 @@
|
|
|
153
153
|
color: variables.$gray-500;
|
|
154
154
|
}
|
|
155
155
|
}
|
|
156
|
+
.custom-choice-item,
|
|
157
|
+
.choice-item {
|
|
158
|
+
&.hidden {
|
|
159
|
+
opacity: 0;
|
|
160
|
+
height: 0;
|
|
161
|
+
position: absolute;
|
|
162
|
+
}
|
|
163
|
+
}
|
|
156
164
|
}
|
|
157
165
|
.select-control-borderless {
|
|
158
166
|
border-color: transparent !important;
|