@sixbell-telco/sdk 1.5.0 → 2.0.1
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 +223 -710
- package/README.md +307 -282
- package/_index.css +29 -3
- package/components/audio-player/audio-timeline/audio-timeline.component.d.ts +1 -1
- package/components/audio-player/services/audio.service.d.ts +14 -14
- package/components/countdown/src/countdown.component.d.ts +1 -1
- package/components/dropdown/dropdown-chevron/dropdown-chevron.component.d.ts +6 -1
- package/components/dropdown/dropdown-content/dropdown-content.component.d.ts +1 -1
- package/components/dropdown/dropdown-item/dropdown-item.component.d.ts +6 -1
- package/components/dropdown/dropdown-item-checkbox/dropdown-item-checkbox.component.d.ts +7 -1
- package/components/dropdown/dropdown-item-radio/dropdown-item-radio.component.d.ts +7 -1
- package/components/dropdown/dropdown-trigger/dropdown-trigger.component.d.ts +30 -0
- package/components/dropdown/public-api.d.ts +0 -1
- package/components/dropdown/src/dropdown.component.d.ts +31 -7
- package/components/dropdown-menu/src/dropdown-menu-content/dropdown-menu-content.component.d.ts +2 -3
- package/components/dual-list/src/dual-list.component.d.ts +2 -1
- package/components/file-upload/file-dropzone/file-dropzone.component.d.ts +7 -7
- package/components/file-upload/file-uploader/file-uploader.component.d.ts +7 -7
- package/components/forms/combobox/src/combobox.component.d.ts +24 -0
- package/components/forms/input/src/input.component.d.ts +11 -1
- package/components/forms/select/src/select.component.d.ts +24 -0
- package/components/forms/textarea/src/textarea.component.d.ts +10 -10
- package/components/link/src/link.component.d.ts +0 -3
- package/components/tab/directives/tab-content/tab-content.directive.d.ts +3 -3
- package/components/tab/directives/tab-header/tab-header.directive.d.ts +2 -2
- package/components/wizard/services/wizard.service.d.ts +5 -5
- package/directives/auto-focus/public-api.d.ts +1 -1
- package/directives/auto-focus/src/{autofocus.directive.d.ts → auto-focus.directive.d.ts} +5 -7
- package/directives/only-numbers/public-api.d.ts +6 -1
- package/directives/only-numbers/src/only-numbers.directive.d.ts +37 -0
- package/fesm2022/sixbell-telco-sdk-components-audio-player.mjs +7 -5
- package/fesm2022/sixbell-telco-sdk-components-audio-player.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-components-avatar.mjs +1 -1
- package/fesm2022/sixbell-telco-sdk-components-avatar.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-components-badge.mjs +2 -2
- package/fesm2022/sixbell-telco-sdk-components-badge.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-components-countdown.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-components-data-table.mjs +2 -2
- package/fesm2022/sixbell-telco-sdk-components-data-table.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-components-dropdown-menu.mjs +0 -4
- package/fesm2022/sixbell-telco-sdk-components-dropdown-menu.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-components-dropdown.mjs +472 -341
- package/fesm2022/sixbell-telco-sdk-components-dropdown.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-components-dual-list.mjs +8 -7
- package/fesm2022/sixbell-telco-sdk-components-dual-list.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-components-file-upload.mjs +6 -4
- package/fesm2022/sixbell-telco-sdk-components-file-upload.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-components-forms-combobox.mjs +58 -2
- package/fesm2022/sixbell-telco-sdk-components-forms-combobox.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-components-forms-date-picker.mjs +2 -0
- package/fesm2022/sixbell-telco-sdk-components-forms-date-picker.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-components-forms-input.mjs +15 -5
- package/fesm2022/sixbell-telco-sdk-components-forms-input.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-components-forms-select.mjs +54 -4
- package/fesm2022/sixbell-telco-sdk-components-forms-select.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-components-forms-textarea.mjs +19 -8
- package/fesm2022/sixbell-telco-sdk-components-forms-textarea.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-components-link.mjs +2 -7
- package/fesm2022/sixbell-telco-sdk-components-link.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-components-overlay.mjs +2 -2
- package/fesm2022/sixbell-telco-sdk-components-overlay.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-components-tab.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-components-wizard.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-directives-auto-focus.mjs +14 -31
- package/fesm2022/sixbell-telco-sdk-directives-auto-focus.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-directives-only-numbers.mjs +42 -8
- package/fesm2022/sixbell-telco-sdk-directives-only-numbers.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-utils-date.mjs +1 -1
- package/fesm2022/sixbell-telco-sdk-utils-date.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-utils-pipes-to-bytes-extesion.mjs +1 -1
- package/fesm2022/sixbell-telco-sdk-utils-pipes-to-bytes-extesion.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-utils-runtime-config.mjs +339 -0
- package/fesm2022/sixbell-telco-sdk-utils-runtime-config.mjs.map +1 -0
- package/fesm2022/sixbell-telco-sdk-utils-sync.mjs +1 -1
- package/fesm2022/sixbell-telco-sdk-utils-sync.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-utils-theme.mjs +1053 -716
- package/fesm2022/sixbell-telco-sdk-utils-theme.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-utils-translation.mjs +345 -257
- package/fesm2022/sixbell-telco-sdk-utils-translation.mjs.map +1 -1
- package/package.json +73 -72
- package/utils/runtime-config/README.md +235 -0
- package/utils/{resource-loader → runtime-config}/index.d.ts +1 -1
- package/utils/runtime-config/public-api.d.ts +5 -0
- package/utils/runtime-config/src/http-client.d.ts +11 -0
- package/utils/runtime-config/src/runtime-config-loader.d.ts +23 -0
- package/utils/runtime-config/src/runtime-config-store.d.ts +11 -0
- package/utils/runtime-config/src/runtime-update-adapter.d.ts +15 -0
- package/utils/runtime-config/src/types.d.ts +66 -0
- package/utils/theme/README.md +324 -986
- package/utils/theme/public-api.d.ts +4 -4
- package/utils/theme/src/constants.d.ts +6 -12
- package/utils/theme/src/models/theme.d.ts +46 -173
- package/utils/theme/src/providers/theme.provider.d.ts +0 -10
- package/utils/theme/src/providers/theme.provider.types.d.ts +16 -15
- package/utils/theme/src/theme-assets/theme-assets.service.d.ts +16 -12
- package/utils/theme/src/theme-dom/theme-dom.service.d.ts +8 -0
- package/utils/theme/src/theme.service.d.ts +24 -27
- package/utils/theme/src/utils/utils.d.ts +2 -10
- package/utils/translation/README.md +170 -1390
- package/utils/translation/public-api.d.ts +3 -3
- package/utils/translation/src/constants.d.ts +7 -9
- package/utils/translation/src/models/translation.d.ts +9 -10
- package/utils/translation/src/providers/translation.provider.d.ts +17 -28
- package/utils/translation/src/providers/translation.provider.types.d.ts +13 -6
- package/utils/translation/src/translation.service.d.ts +37 -9
- package/components/dropdown/src/services/dropdown.service.d.ts +0 -22
- package/directives/only-numbers/src/just-numbers.directive.d.ts +0 -9
- package/fesm2022/sixbell-telco-sdk-utils-resource-loader.mjs +0 -1222
- package/fesm2022/sixbell-telco-sdk-utils-resource-loader.mjs.map +0 -1
- package/utils/resource-loader/README.md +0 -460
- package/utils/resource-loader/public-api.d.ts +0 -1
- package/utils/resource-loader/src/cache/index.d.ts +0 -2
- package/utils/resource-loader/src/cache/layers/factory.d.ts +0 -38
- package/utils/resource-loader/src/cache/layers/index.d.ts +0 -3
- package/utils/resource-loader/src/cache/layers/indexed-db-cache.d.ts +0 -118
- package/utils/resource-loader/src/cache/layers/local-storage-cache.d.ts +0 -86
- package/utils/resource-loader/src/cache/layers/memory-cache.d.ts +0 -76
- package/utils/resource-loader/src/cache/types.d.ts +0 -107
- package/utils/resource-loader/src/config/index.d.ts +0 -1
- package/utils/resource-loader/src/config/load-config.d.ts +0 -32
- package/utils/resource-loader/src/constants.d.ts +0 -38
- package/utils/resource-loader/src/http/index.d.ts +0 -1
- package/utils/resource-loader/src/http/retryable-client.d.ts +0 -43
- package/utils/resource-loader/src/index.d.ts +0 -1
- package/utils/resource-loader/src/resource-loader.d.ts +0 -67
- package/utils/resource-loader/src/types.d.ts +0 -152
- package/utils/resource-loader/src/utils/cache-validator.d.ts +0 -72
- package/utils/resource-loader/src/utils/helpers.d.ts +0 -15
- package/utils/resource-loader/src/utils/index.d.ts +0 -2
- package/utils/theme/src/providers/constants.d.ts +0 -7
- package/utils/translation/src/providers/constants.d.ts +0 -11
package/_index.css
CHANGED
|
@@ -56,7 +56,7 @@
|
|
|
56
56
|
--noise: 0;
|
|
57
57
|
|
|
58
58
|
/* Custom Colors */
|
|
59
|
-
--color-base-50: color-mix(in
|
|
59
|
+
--color-base-50: color-mix(in oklab, var(--color-base-content) 10%, transparent);
|
|
60
60
|
--color-primary-light: color-mix(in oklch, var(--color-primary) 75%, #fff);
|
|
61
61
|
--color-primary-gradient: color-mix(in oklch, var(--color-primary) 60%, #121212);
|
|
62
62
|
--color-primary-gradient-content: oklch(100% 0 0);
|
|
@@ -137,7 +137,7 @@
|
|
|
137
137
|
--noise: 0;
|
|
138
138
|
|
|
139
139
|
/* Custom Colors */
|
|
140
|
-
--color-base-50: color-mix(in
|
|
140
|
+
--color-base-50: color-mix(in oklab, var(--color-base-content) 10%, transparent);
|
|
141
141
|
--color-primary-light: color-mix(in oklch, var(--color-primary) 75%, #000);
|
|
142
142
|
--color-primary-gradient: color-mix(in oklch, var(--color-primary) 60%, #121212);
|
|
143
143
|
--color-primary-gradient-content: oklch(100% 0 0);
|
|
@@ -175,7 +175,7 @@
|
|
|
175
175
|
|
|
176
176
|
@theme {
|
|
177
177
|
/* Color tokens registered for Tailwind utilities; values provided in theme plugin blocks */
|
|
178
|
-
--color-base-50: color-mix(in
|
|
178
|
+
--color-base-50: color-mix(in oklab, var(--color-base-content) 10%, transparent);
|
|
179
179
|
--color-primary-light: color-mix(in oklch, var(--color-primary) 75%, #fff);
|
|
180
180
|
--color-primary-gradient: color-mix(in oklch, var(--color-primary) 60%, #121212);
|
|
181
181
|
--color-primary-gradient-content: oklch(100% 0 0);
|
|
@@ -225,6 +225,8 @@
|
|
|
225
225
|
--animate-wave: wave 1s linear infinite;
|
|
226
226
|
--animate-enter: enter 0.15s ease 0s 1 normal none;
|
|
227
227
|
--animate-exit: exit 0.15s ease 0s 1 normal none;
|
|
228
|
+
--animate-morph-in: morphIn 0.2s ease-out;
|
|
229
|
+
--animate-morph-out: morphOut 0.2s ease-in;
|
|
228
230
|
--text-xxs: 0.625rem;
|
|
229
231
|
--text-xxs--line-height: 0.625rem;
|
|
230
232
|
|
|
@@ -409,6 +411,30 @@
|
|
|
409
411
|
opacity: 0;
|
|
410
412
|
}
|
|
411
413
|
}
|
|
414
|
+
|
|
415
|
+
/* Morphing animations for dropdown view transitions */
|
|
416
|
+
@keyframes morphIn {
|
|
417
|
+
0% {
|
|
418
|
+
opacity: 0;
|
|
419
|
+
transform: scale(0.95);
|
|
420
|
+
}
|
|
421
|
+
100% {
|
|
422
|
+
opacity: 1;
|
|
423
|
+
transform: scale(1);
|
|
424
|
+
}
|
|
425
|
+
}
|
|
426
|
+
|
|
427
|
+
@keyframes morphOut {
|
|
428
|
+
0% {
|
|
429
|
+
opacity: 1;
|
|
430
|
+
transform: scale(1);
|
|
431
|
+
}
|
|
432
|
+
100% {
|
|
433
|
+
opacity: 0;
|
|
434
|
+
transform: scale(0.95);
|
|
435
|
+
}
|
|
436
|
+
}
|
|
437
|
+
|
|
412
438
|
.animate-wave {
|
|
413
439
|
animation-delay: calc(1s - var(--i));
|
|
414
440
|
}
|
|
@@ -2,7 +2,7 @@ import { ElementRef } from '@angular/core';
|
|
|
2
2
|
import { AudioPlayerService } from '../services/audio.service';
|
|
3
3
|
import * as i0 from "@angular/core";
|
|
4
4
|
export declare class AudioTimelineComponent {
|
|
5
|
-
timeline: import("@angular/core").Signal<ElementRef<
|
|
5
|
+
timeline: import("@angular/core").Signal<ElementRef<HTMLElement> | undefined>;
|
|
6
6
|
audioService: AudioPlayerService;
|
|
7
7
|
isDragging: import("@angular/core").WritableSignal<boolean>;
|
|
8
8
|
isHovered: import("@angular/core").WritableSignal<boolean>;
|
|
@@ -2,20 +2,20 @@ import { Track } from '../src/audio-player.component';
|
|
|
2
2
|
import * as i0 from "@angular/core";
|
|
3
3
|
export declare class AudioPlayerService {
|
|
4
4
|
private audio;
|
|
5
|
-
private http;
|
|
6
|
-
private objectUrls;
|
|
7
|
-
private _tracks;
|
|
8
|
-
private _currentTrackIndex;
|
|
9
|
-
private _isPlaying;
|
|
10
|
-
private _duration;
|
|
11
|
-
private _currentTime;
|
|
12
|
-
private _volume;
|
|
13
|
-
private _isMuted;
|
|
14
|
-
private _lastVolume;
|
|
15
|
-
private _isBuffering;
|
|
16
|
-
private _isInitializing;
|
|
17
|
-
private _autoPlayNext;
|
|
18
|
-
private _error;
|
|
5
|
+
private readonly http;
|
|
6
|
+
private readonly objectUrls;
|
|
7
|
+
private readonly _tracks;
|
|
8
|
+
private readonly _currentTrackIndex;
|
|
9
|
+
private readonly _isPlaying;
|
|
10
|
+
private readonly _duration;
|
|
11
|
+
private readonly _currentTime;
|
|
12
|
+
private readonly _volume;
|
|
13
|
+
private readonly _isMuted;
|
|
14
|
+
private readonly _lastVolume;
|
|
15
|
+
private readonly _isBuffering;
|
|
16
|
+
private readonly _isInitializing;
|
|
17
|
+
private readonly _autoPlayNext;
|
|
18
|
+
private readonly _error;
|
|
19
19
|
tracks: import("@angular/core").Signal<Track[]>;
|
|
20
20
|
currentTrackIndex: import("@angular/core").Signal<number>;
|
|
21
21
|
isPlaying: import("@angular/core").Signal<boolean>;
|
|
@@ -8,7 +8,7 @@ export declare class CountdownComponent {
|
|
|
8
8
|
showMinutes: import("@angular/core").InputSignal<boolean>;
|
|
9
9
|
showSeconds: import("@angular/core").InputSignal<boolean>;
|
|
10
10
|
finished: import("@angular/core").OutputEmitterRef<void>;
|
|
11
|
-
private countdownDateOnMilliseconds;
|
|
11
|
+
private readonly countdownDateOnMilliseconds;
|
|
12
12
|
countdowntimer$: import("rxjs").Observable<{
|
|
13
13
|
days: number;
|
|
14
14
|
hours: number;
|
|
@@ -5,7 +5,11 @@ import * as i0 from "@angular/core";
|
|
|
5
5
|
* Automatically rotates based on dropdown state and positions itself correctly
|
|
6
6
|
*/
|
|
7
7
|
export declare class DropdownChevronComponent {
|
|
8
|
-
|
|
8
|
+
/**
|
|
9
|
+
* Inject parent trigger component to access its isOpen signal
|
|
10
|
+
* Use SkipSelf to get the immediate parent trigger
|
|
11
|
+
*/
|
|
12
|
+
private readonly trigger;
|
|
9
13
|
/**
|
|
10
14
|
* Custom icon to use instead of default arrow down
|
|
11
15
|
*/
|
|
@@ -28,6 +32,7 @@ export declare class DropdownChevronComponent {
|
|
|
28
32
|
position: import("@angular/core").InputSignal<"left" | "right">;
|
|
29
33
|
/**
|
|
30
34
|
* Whether the chevron is open (rotated)
|
|
35
|
+
* Derives from the parent trigger's isOpen signal
|
|
31
36
|
*/
|
|
32
37
|
private readonly isOpen;
|
|
33
38
|
/**
|
|
@@ -18,7 +18,7 @@ import * as i0 from "@angular/core";
|
|
|
18
18
|
* ```
|
|
19
19
|
*/
|
|
20
20
|
export declare class DropdownContentComponent {
|
|
21
|
-
template: TemplateRef<unknown
|
|
21
|
+
template: import("@angular/core").Signal<TemplateRef<unknown>>;
|
|
22
22
|
/** Custom CSS classes */
|
|
23
23
|
class: import("@angular/core").InputSignal<string>;
|
|
24
24
|
/** Size variant */
|
|
@@ -36,6 +36,11 @@ export declare class DropdownItemComponent {
|
|
|
36
36
|
* @defaultValue false
|
|
37
37
|
*/
|
|
38
38
|
disabled: import("@angular/core").InputSignal<boolean>;
|
|
39
|
+
/**
|
|
40
|
+
* Whether to close the dropdown when the item is selected
|
|
41
|
+
* @defaultValue true
|
|
42
|
+
*/
|
|
43
|
+
closeOnSelect: import("@angular/core").InputSignal<boolean>;
|
|
39
44
|
/**
|
|
40
45
|
* Event emitted when the item is selected
|
|
41
46
|
*/
|
|
@@ -50,5 +55,5 @@ export declare class DropdownItemComponent {
|
|
|
50
55
|
*/
|
|
51
56
|
itemClass: () => string;
|
|
52
57
|
static ɵfac: i0.ɵɵFactoryDeclaration<DropdownItemComponent, never>;
|
|
53
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<DropdownItemComponent, "st-dropdown-item", never, { "active": { "alias": "active"; "required": false; "isSignal": true; }; "class": { "alias": "class"; "required": false; "isSignal": true; }; "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; }, { "selected": "selected"; }, never, ["*"], true, never>;
|
|
58
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<DropdownItemComponent, "st-dropdown-item", never, { "active": { "alias": "active"; "required": false; "isSignal": true; }; "class": { "alias": "class"; "required": false; "isSignal": true; }; "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; "closeOnSelect": { "alias": "closeOnSelect"; "required": false; "isSignal": true; }; }, { "selected": "selected"; }, never, ["*"], true, never>;
|
|
54
59
|
}
|
|
@@ -4,6 +4,7 @@ import * as i0 from "@angular/core";
|
|
|
4
4
|
* Provides checkbox functionality for dropdown selections
|
|
5
5
|
*/
|
|
6
6
|
export declare class DropdownItemCheckboxComponent {
|
|
7
|
+
private readonly dropdown;
|
|
7
8
|
/**
|
|
8
9
|
* Whether the checkbox is checked
|
|
9
10
|
*/
|
|
@@ -24,6 +25,11 @@ export declare class DropdownItemCheckboxComponent {
|
|
|
24
25
|
* Custom CSS classes
|
|
25
26
|
*/
|
|
26
27
|
class: import("@angular/core").InputSignal<string>;
|
|
28
|
+
/**
|
|
29
|
+
* Whether to close the dropdown when the item is selected
|
|
30
|
+
* @defaultValue true
|
|
31
|
+
*/
|
|
32
|
+
closeOnSelect: import("@angular/core").InputSignal<boolean>;
|
|
27
33
|
/**
|
|
28
34
|
* Emitted when the checkbox state changes
|
|
29
35
|
*/
|
|
@@ -45,5 +51,5 @@ export declare class DropdownItemCheckboxComponent {
|
|
|
45
51
|
*/
|
|
46
52
|
itemClass: () => string;
|
|
47
53
|
static ɵfac: i0.ɵɵFactoryDeclaration<DropdownItemCheckboxComponent, never>;
|
|
48
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<DropdownItemCheckboxComponent, "st-dropdown-item-checkbox", never, { "checked": { "alias": "checked"; "required": false; "isSignal": true; }; "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; "indicator": { "alias": "indicator"; "required": false; "isSignal": true; }; "showIndicator": { "alias": "showIndicator"; "required": false; "isSignal": true; }; "class": { "alias": "class"; "required": false; "isSignal": true; }; }, { "checkedChanged": "checkedChanged"; "triggered": "triggered"; }, never, ["*"], true, never>;
|
|
54
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<DropdownItemCheckboxComponent, "st-dropdown-item-checkbox", never, { "checked": { "alias": "checked"; "required": false; "isSignal": true; }; "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; "indicator": { "alias": "indicator"; "required": false; "isSignal": true; }; "showIndicator": { "alias": "showIndicator"; "required": false; "isSignal": true; }; "class": { "alias": "class"; "required": false; "isSignal": true; }; "closeOnSelect": { "alias": "closeOnSelect"; "required": false; "isSignal": true; }; }, { "checkedChanged": "checkedChanged"; "triggered": "triggered"; }, never, ["*"], true, never>;
|
|
49
55
|
}
|
|
@@ -4,6 +4,7 @@ import * as i0 from "@angular/core";
|
|
|
4
4
|
* Provides radio button functionality for dropdown selections
|
|
5
5
|
*/
|
|
6
6
|
export declare class DropdownItemRadioComponent {
|
|
7
|
+
private readonly dropdown;
|
|
7
8
|
/**
|
|
8
9
|
* Whether the radio is checked
|
|
9
10
|
*/
|
|
@@ -28,6 +29,11 @@ export declare class DropdownItemRadioComponent {
|
|
|
28
29
|
* Custom CSS classes
|
|
29
30
|
*/
|
|
30
31
|
class: import("@angular/core").InputSignal<string>;
|
|
32
|
+
/**
|
|
33
|
+
* Whether to close the dropdown when the item is selected
|
|
34
|
+
* @defaultValue true
|
|
35
|
+
*/
|
|
36
|
+
closeOnSelect: import("@angular/core").InputSignal<boolean>;
|
|
31
37
|
/**
|
|
32
38
|
* Emitted when the radio state changes
|
|
33
39
|
*/
|
|
@@ -49,5 +55,5 @@ export declare class DropdownItemRadioComponent {
|
|
|
49
55
|
*/
|
|
50
56
|
itemClass: () => string;
|
|
51
57
|
static ɵfac: i0.ɵɵFactoryDeclaration<DropdownItemRadioComponent, never>;
|
|
52
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<DropdownItemRadioComponent, "st-dropdown-item-radio", never, { "checked": { "alias": "checked"; "required": false; "isSignal": true; }; "value": { "alias": "value"; "required": true; "isSignal": true; }; "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; "indicator": { "alias": "indicator"; "required": false; "isSignal": true; }; "showIndicator": { "alias": "showIndicator"; "required": false; "isSignal": true; }; "class": { "alias": "class"; "required": false; "isSignal": true; }; }, { "checkedChanged": "checkedChanged"; "triggered": "triggered"; }, never, ["*"], true, never>;
|
|
58
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<DropdownItemRadioComponent, "st-dropdown-item-radio", never, { "checked": { "alias": "checked"; "required": false; "isSignal": true; }; "value": { "alias": "value"; "required": true; "isSignal": true; }; "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; "indicator": { "alias": "indicator"; "required": false; "isSignal": true; }; "showIndicator": { "alias": "showIndicator"; "required": false; "isSignal": true; }; "class": { "alias": "class"; "required": false; "isSignal": true; }; "closeOnSelect": { "alias": "closeOnSelect"; "required": false; "isSignal": true; }; }, { "checkedChanged": "checkedChanged"; "triggered": "triggered"; }, never, ["*"], true, never>;
|
|
53
59
|
}
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
import { ConnectedOverlayPositionChange, ConnectedPosition } from '@angular/cdk/overlay';
|
|
2
2
|
import { TemplateRef } from '@angular/core';
|
|
3
3
|
import * as i0 from "@angular/core";
|
|
4
|
+
/** Animation states for the dropdown */
|
|
5
|
+
type DropdownAnimationState = 'closed' | 'opening' | 'open' | 'closing';
|
|
4
6
|
/** Dropdown X position options for CDK overlay positioning */
|
|
5
7
|
export type DropdownXPosition = 'start' | 'center' | 'end';
|
|
6
8
|
/** Dropdown Y position options for CDK overlay positioning */
|
|
@@ -56,8 +58,28 @@ export declare class DropdownTriggerComponent {
|
|
|
56
58
|
closed: import("@angular/core").OutputEmitterRef<void>;
|
|
57
59
|
/** Current open state */
|
|
58
60
|
isOpen: import("@angular/core").WritableSignal<boolean>;
|
|
61
|
+
/** Internal state to control overlay visibility (keeps overlay open during close animation) */
|
|
62
|
+
overlayOpen: import("@angular/core").WritableSignal<boolean>;
|
|
63
|
+
/** Current animation state */
|
|
64
|
+
animationState: import("@angular/core").WritableSignal<DropdownAnimationState>;
|
|
59
65
|
/** Current active position configuration */
|
|
60
66
|
currentPosition: import("@angular/core").WritableSignal<ConnectedPosition | null>;
|
|
67
|
+
/**
|
|
68
|
+
* Computed animation direction based on current position
|
|
69
|
+
* Returns the appropriate direction: 'top', 'bottom', 'left', or 'right'
|
|
70
|
+
*/
|
|
71
|
+
animationDirection: import("@angular/core").Signal<"top" | "bottom" | "left" | "right">;
|
|
72
|
+
/**
|
|
73
|
+
* Static class mappings for different animation directions
|
|
74
|
+
* Maps animation directions to complete Tailwind class names
|
|
75
|
+
* All class names are static and detectable by Tailwind at build time
|
|
76
|
+
*/
|
|
77
|
+
private readonly animationClassMap;
|
|
78
|
+
/**
|
|
79
|
+
* Computed class string for animations
|
|
80
|
+
* Applies the correct animation based on position using static class names
|
|
81
|
+
*/
|
|
82
|
+
animationClasses: import("@angular/core").Signal<string>;
|
|
61
83
|
/** Content template reference */
|
|
62
84
|
contentTemplate: TemplateRef<unknown> | null;
|
|
63
85
|
/**
|
|
@@ -106,12 +128,19 @@ export declare class DropdownTriggerComponent {
|
|
|
106
128
|
toggle(): void;
|
|
107
129
|
/**
|
|
108
130
|
* Open the dropdown
|
|
131
|
+
* Sets up overlay with animation and emits opened event
|
|
109
132
|
*/
|
|
110
133
|
open(): void;
|
|
111
134
|
/**
|
|
112
135
|
* Close the dropdown
|
|
136
|
+
* Triggers closing animation and emits closed event
|
|
113
137
|
*/
|
|
114
138
|
close(): void;
|
|
139
|
+
/**
|
|
140
|
+
* Handle animation end events
|
|
141
|
+
* Completes state transitions when animations finish
|
|
142
|
+
*/
|
|
143
|
+
onAnimationEnd(event: AnimationEvent): void;
|
|
115
144
|
/**
|
|
116
145
|
* Handle position changes from CDK overlay
|
|
117
146
|
*/
|
|
@@ -119,3 +148,4 @@ export declare class DropdownTriggerComponent {
|
|
|
119
148
|
static ɵfac: i0.ɵɵFactoryDeclaration<DropdownTriggerComponent, never>;
|
|
120
149
|
static ɵcmp: i0.ɵɵComponentDeclaration<DropdownTriggerComponent, "st-dropdown-trigger", never, { "offsetX": { "alias": "offsetX"; "required": false; "isSignal": true; }; "offsetY": { "alias": "offsetY"; "required": false; "isSignal": true; }; "originX": { "alias": "originX"; "required": false; "isSignal": true; }; "originY": { "alias": "originY"; "required": false; "isSignal": true; }; "overlayX": { "alias": "overlayX"; "required": false; "isSignal": true; }; "overlayY": { "alias": "overlayY"; "required": false; "isSignal": true; }; "fallbacks": { "alias": "fallbacks"; "required": false; "isSignal": true; }; }, { "opened": "opened"; "closed": "closed"; }, never, ["*"], true, never>;
|
|
121
150
|
}
|
|
151
|
+
export {};
|
|
@@ -8,4 +8,3 @@ export * from './dropdown-label/dropdown-label.component';
|
|
|
8
8
|
export * from './dropdown-separator/dropdown-separator.component';
|
|
9
9
|
export * from './dropdown-trigger/dropdown-trigger.component';
|
|
10
10
|
export * from './src/dropdown.component';
|
|
11
|
-
export * from './src/services/dropdown.service';
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { AfterContentInit } from '@angular/core';
|
|
2
1
|
import { DropdownContentComponent } from '../dropdown-content/dropdown-content.component';
|
|
3
2
|
import { DropdownTriggerComponent } from '../dropdown-trigger/dropdown-trigger.component';
|
|
4
3
|
import * as i0 from "@angular/core";
|
|
@@ -21,12 +20,37 @@ import * as i0 from "@angular/core";
|
|
|
21
20
|
* </st-dropdown-content>
|
|
22
21
|
* </st-dropdown>
|
|
23
22
|
* ```
|
|
23
|
+
*
|
|
24
|
+
* @example
|
|
25
|
+
* ```html
|
|
26
|
+
* <!-- Listen to open/close events -->
|
|
27
|
+
* <st-dropdown (opened)="onOpened()" (closed)="onClosed()">
|
|
28
|
+
* ...
|
|
29
|
+
* </st-dropdown>
|
|
30
|
+
*
|
|
31
|
+
* <!-- Programmatic control with model signal -->
|
|
32
|
+
* <st-dropdown [(open)]="isDropdownOpen">
|
|
33
|
+
* ...
|
|
34
|
+
* <button (click)="isDropdownOpen.set(true)">Open</button>
|
|
35
|
+
* <button (click)="isDropdownOpen.set(false)">Close</button>
|
|
36
|
+
* <div>Is open: {{ isDropdownOpen() }}</div>
|
|
37
|
+
* </st-dropdown>
|
|
38
|
+
* ```
|
|
24
39
|
*/
|
|
25
|
-
export declare class DropdownComponent
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
40
|
+
export declare class DropdownComponent {
|
|
41
|
+
trigger: import("@angular/core").Signal<DropdownTriggerComponent>;
|
|
42
|
+
content: import("@angular/core").Signal<DropdownContentComponent>;
|
|
43
|
+
/** Model signal for open/close state - allows two-way binding [(open)]="isDropdownOpen" */
|
|
44
|
+
open: import("@angular/core").ModelSignal<boolean>;
|
|
45
|
+
/** Event emitted when dropdown is opened - exposed from trigger */
|
|
46
|
+
opened: import("@angular/core").OutputEmitterRef<void>;
|
|
47
|
+
/** Event emitted when dropdown is closed - exposed from trigger */
|
|
48
|
+
closed: import("@angular/core").OutputEmitterRef<void>;
|
|
49
|
+
constructor();
|
|
50
|
+
/**
|
|
51
|
+
* Get the current open state
|
|
52
|
+
*/
|
|
53
|
+
isOpen: import("@angular/core").Signal<boolean>;
|
|
30
54
|
static ɵfac: i0.ɵɵFactoryDeclaration<DropdownComponent, never>;
|
|
31
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<DropdownComponent, "st-dropdown",
|
|
55
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<DropdownComponent, "st-dropdown", ["stDropdown"], { "open": { "alias": "open"; "required": false; "isSignal": true; }; }, { "open": "openChange"; "opened": "opened"; "closed": "closed"; }, ["trigger", "content"], ["*"], true, never>;
|
|
32
56
|
}
|
package/components/dropdown-menu/src/dropdown-menu-content/dropdown-menu-content.component.d.ts
CHANGED
|
@@ -1,12 +1,11 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { TemplateRef } from '@angular/core';
|
|
2
2
|
import * as i0 from "@angular/core";
|
|
3
3
|
/**
|
|
4
4
|
* DropdownMenuContent - Container for dropdown menu items
|
|
5
5
|
*/
|
|
6
|
-
export declare class DropdownMenuContentComponent
|
|
6
|
+
export declare class DropdownMenuContentComponent {
|
|
7
7
|
private readonly menuStack;
|
|
8
8
|
template: TemplateRef<unknown>;
|
|
9
|
-
ngAfterViewInit(): void;
|
|
10
9
|
/**
|
|
11
10
|
* Custom CSS classes
|
|
12
11
|
*/
|
|
@@ -6,6 +6,7 @@ export type DualListData<T> = T & {
|
|
|
6
6
|
export declare class DualListComponent<T> {
|
|
7
7
|
size: import("@angular/core").InputSignal<TableContentSizeProps>;
|
|
8
8
|
height: import("@angular/core").InputSignal<TableContainerHeightProps>;
|
|
9
|
+
maxSize: import("@angular/core").InputSignal<number>;
|
|
9
10
|
chevronLeftIcon: string;
|
|
10
11
|
chevronRightIcon: string;
|
|
11
12
|
searchIcon: string;
|
|
@@ -48,5 +49,5 @@ export declare class DualListComponent<T> {
|
|
|
48
49
|
handleRemoveItems(): void;
|
|
49
50
|
private updateTargetList;
|
|
50
51
|
static ɵfac: i0.ɵɵFactoryDeclaration<DualListComponent<any>, never>;
|
|
51
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<DualListComponent<any>, "st-dual-list", never, { "size": { "alias": "size"; "required": false; "isSignal": true; }; "height": { "alias": "height"; "required": false; "isSignal": true; }; "key": { "alias": "key"; "required": false; "isSignal": true; }; "value": { "alias": "value"; "required": false; "isSignal": true; }; "label": { "alias": "label"; "required": false; "isSignal": true; }; "titleLeft": { "alias": "titleLeft"; "required": false; "isSignal": true; }; "titleRight": { "alias": "titleRight"; "required": false; "isSignal": true; }; "items": { "alias": "items"; "required": true; "isSignal": true; }; "totalItems": { "alias": "totalItems"; "required": false; "isSignal": true; }; "addedItems": { "alias": "addedItems"; "required": true; "isSignal": true; }; "pagination": { "alias": "pagination"; "required": true; "isSignal": true; }; }, { "itemsAdded": "itemsAdded"; "searchQuery": "searchQuery"; "pageChanged": "pageChanged"; "pageSizeChanged": "pageSizeChanged"; }, never, never, true, never>;
|
|
52
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<DualListComponent<any>, "st-dual-list", never, { "size": { "alias": "size"; "required": false; "isSignal": true; }; "height": { "alias": "height"; "required": false; "isSignal": true; }; "maxSize": { "alias": "maxSize"; "required": false; "isSignal": true; }; "key": { "alias": "key"; "required": false; "isSignal": true; }; "value": { "alias": "value"; "required": false; "isSignal": true; }; "label": { "alias": "label"; "required": false; "isSignal": true; }; "titleLeft": { "alias": "titleLeft"; "required": false; "isSignal": true; }; "titleRight": { "alias": "titleRight"; "required": false; "isSignal": true; }; "items": { "alias": "items"; "required": true; "isSignal": true; }; "totalItems": { "alias": "totalItems"; "required": false; "isSignal": true; }; "addedItems": { "alias": "addedItems"; "required": true; "isSignal": true; }; "pagination": { "alias": "pagination"; "required": true; "isSignal": true; }; }, { "itemsAdded": "itemsAdded"; "searchQuery": "searchQuery"; "pageChanged": "pageChanged"; "pageSizeChanged": "pageSizeChanged"; }, never, never, true, never>;
|
|
52
53
|
}
|
|
@@ -82,7 +82,7 @@ export declare class DropzoneComponent implements ControlValueAccessor {
|
|
|
82
82
|
/** @internal Tracks audio player open state */
|
|
83
83
|
opened: import("@angular/core").WritableSignal<boolean>;
|
|
84
84
|
/** @internal Tracks blur events for validation */
|
|
85
|
-
private blurTrigger;
|
|
85
|
+
private readonly blurTrigger;
|
|
86
86
|
/**
|
|
87
87
|
* Parent form group for reactive forms
|
|
88
88
|
*/
|
|
@@ -228,17 +228,17 @@ export declare class DropzoneComponent implements ControlValueAccessor {
|
|
|
228
228
|
*/
|
|
229
229
|
triggerFileInput(): void;
|
|
230
230
|
/** @internal Form control reference */
|
|
231
|
-
private formControl;
|
|
231
|
+
private readonly formControl;
|
|
232
232
|
/** @internal Form control observable */
|
|
233
|
-
private formControl$;
|
|
233
|
+
private readonly formControl$;
|
|
234
234
|
/** @internal Status changes observable */
|
|
235
|
-
private statusChanges$;
|
|
235
|
+
private readonly statusChanges$;
|
|
236
236
|
/** @internal Value changes observable */
|
|
237
|
-
private stateChanges$;
|
|
237
|
+
private readonly stateChanges$;
|
|
238
238
|
/** @internal Status signal */
|
|
239
|
-
private statusSignal;
|
|
239
|
+
private readonly statusSignal;
|
|
240
240
|
/** @internal State signal */
|
|
241
|
-
private stateSignal;
|
|
241
|
+
private readonly stateSignal;
|
|
242
242
|
/**
|
|
243
243
|
* Handles blur events for validation
|
|
244
244
|
* @internal
|
|
@@ -109,7 +109,7 @@ export declare class FileUploaderComponent implements ControlValueAccessor {
|
|
|
109
109
|
*/
|
|
110
110
|
disabled: import("@angular/core").ModelSignal<boolean>;
|
|
111
111
|
/** @internal Track blur events for validation */
|
|
112
|
-
private blurTrigger;
|
|
112
|
+
private readonly blurTrigger;
|
|
113
113
|
/**
|
|
114
114
|
* Parent form group for reactive forms
|
|
115
115
|
*/
|
|
@@ -188,17 +188,17 @@ export declare class FileUploaderComponent implements ControlValueAccessor {
|
|
|
188
188
|
*/
|
|
189
189
|
handleBlur(): void;
|
|
190
190
|
/** @internal */
|
|
191
|
-
private formControl;
|
|
191
|
+
private readonly formControl;
|
|
192
192
|
/** @internal */
|
|
193
|
-
private formControl$;
|
|
193
|
+
private readonly formControl$;
|
|
194
194
|
/** @internal */
|
|
195
|
-
private statusChanges$;
|
|
195
|
+
private readonly statusChanges$;
|
|
196
196
|
/** @internal */
|
|
197
|
-
private stateChanges$;
|
|
197
|
+
private readonly stateChanges$;
|
|
198
198
|
/** @internal */
|
|
199
|
-
private statusSignal;
|
|
199
|
+
private readonly statusSignal;
|
|
200
200
|
/** @internal */
|
|
201
|
-
private stateSignal;
|
|
201
|
+
private readonly stateSignal;
|
|
202
202
|
/**
|
|
203
203
|
* Computes validation classes based on form state
|
|
204
204
|
* @internal
|
|
@@ -11,6 +11,7 @@
|
|
|
11
11
|
* - Animation states for smooth transitions
|
|
12
12
|
*/
|
|
13
13
|
import { CdkListbox } from '@angular/cdk/listbox';
|
|
14
|
+
import { ConnectedOverlayPositionChange } from '@angular/cdk/overlay';
|
|
14
15
|
import { AfterViewInit, ElementRef } from '@angular/core';
|
|
15
16
|
import { ControlValueAccessor, FormGroup } from '@angular/forms';
|
|
16
17
|
import { TranslateService } from '@ngx-translate/core';
|
|
@@ -220,6 +221,24 @@ export declare class ComboboxComponent implements AfterViewInit, ControlValueAcc
|
|
|
220
221
|
listbox: import("@angular/core").Signal<CdkListbox<unknown> | undefined>;
|
|
221
222
|
/** Width of the trigger button for overlay positioning */
|
|
222
223
|
triggerWidth: import("@angular/core").WritableSignal<number>;
|
|
224
|
+
/** Current active position configuration from CDK overlay */
|
|
225
|
+
private readonly currentPosition;
|
|
226
|
+
/**
|
|
227
|
+
* Static class mappings for different animation directions
|
|
228
|
+
* Maps animation directions to complete Tailwind class names
|
|
229
|
+
* All class names are static and detectable by Tailwind at build time
|
|
230
|
+
*/
|
|
231
|
+
private readonly animationClassMap;
|
|
232
|
+
/**
|
|
233
|
+
* Computed animation direction based on current overlay position
|
|
234
|
+
* Dynamically detects position and returns appropriate direction: 'top', 'bottom', 'left', or 'right'
|
|
235
|
+
*/
|
|
236
|
+
animationDirection: import("@angular/core").Signal<"bottom" | "top" | "left" | "right">;
|
|
237
|
+
/**
|
|
238
|
+
* Computed class string for animations
|
|
239
|
+
* Applies the correct animation based on position using static class names
|
|
240
|
+
*/
|
|
241
|
+
animationClasses: import("@angular/core").Signal<string>;
|
|
223
242
|
/** Form control reference for reactive forms */
|
|
224
243
|
private readonly formControl;
|
|
225
244
|
/** Observable stream of form control */
|
|
@@ -365,6 +384,11 @@ export declare class ComboboxComponent implements AfterViewInit, ControlValueAcc
|
|
|
365
384
|
* Cleans up state and triggers blur
|
|
366
385
|
*/
|
|
367
386
|
handleDetach(): void;
|
|
387
|
+
/**
|
|
388
|
+
* Handles overlay position changes to determine animation direction
|
|
389
|
+
* @param event - The position change event from CDK overlay
|
|
390
|
+
*/
|
|
391
|
+
onPositionChange(event: ConnectedOverlayPositionChange): void;
|
|
368
392
|
/**
|
|
369
393
|
* Handles clicks outside the component
|
|
370
394
|
* @param event - The mouse event
|
|
@@ -71,7 +71,17 @@ export declare class InputComponent implements ControlValueAccessor {
|
|
|
71
71
|
*/
|
|
72
72
|
readonly: import("@angular/core").InputSignal<boolean>;
|
|
73
73
|
focus: import("@angular/core").InputSignal<boolean>;
|
|
74
|
+
/**
|
|
75
|
+
* Whether to restrict input to numeric characters only
|
|
76
|
+
* @defaultValue false
|
|
77
|
+
* @deprecated Use `onlyNumbers` instead. This input is maintained for backward compatibility.
|
|
78
|
+
*/
|
|
74
79
|
justNumbers: import("@angular/core").InputSignal<boolean>;
|
|
80
|
+
/**
|
|
81
|
+
* Whether to restrict input to numeric characters only
|
|
82
|
+
* @defaultValue false
|
|
83
|
+
*/
|
|
84
|
+
onlyNumbers: import("@angular/core").InputSignal<boolean>;
|
|
75
85
|
/**
|
|
76
86
|
* Whether to use ghost (transparent) styling
|
|
77
87
|
* @defaultValue false
|
|
@@ -175,6 +185,6 @@ export declare class InputComponent implements ControlValueAccessor {
|
|
|
175
185
|
*/
|
|
176
186
|
private setupDebounce;
|
|
177
187
|
static ɵfac: i0.ɵɵFactoryDeclaration<InputComponent, never>;
|
|
178
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<InputComponent, "st-input", never, { "variant": { "alias": "variant"; "required": false; "isSignal": true; }; "size": { "alias": "size"; "required": false; "isSignal": true; }; "label": { "alias": "label"; "required": false; "isSignal": true; }; "type": { "alias": "type"; "required": false; "isSignal": true; }; "name": { "alias": "name"; "required": false; "isSignal": true; }; "placeholder": { "alias": "placeholder"; "required": false; "isSignal": true; }; "readonly": { "alias": "readonly"; "required": false; "isSignal": true; }; "focus": { "alias": "focus"; "required": false; "isSignal": true; }; "justNumbers": { "alias": "justNumbers"; "required": false; "isSignal": true; }; "ghost": { "alias": "ghost"; "required": false; "isSignal": true; }; "value": { "alias": "value"; "required": false; "isSignal": true; }; "parentForm": { "alias": "parentForm"; "required": false; "isSignal": true; }; "formControlName": { "alias": "formControlName"; "required": false; "isSignal": true; }; "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; "debounceTime": { "alias": "debounceTime"; "required": false; "isSignal": true; }; }, { "value": "valueChange"; "disabled": "disabledChange"; "enterPressed": "enterPressed"; "blurred": "blurred"; "valueDebounced": "valueDebounced"; }, never, ["st-input-content[alignment='start']", "st-input-content[alignment='end']", ":not(st-input-content)"], true, never>;
|
|
188
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<InputComponent, "st-input", never, { "variant": { "alias": "variant"; "required": false; "isSignal": true; }; "size": { "alias": "size"; "required": false; "isSignal": true; }; "label": { "alias": "label"; "required": false; "isSignal": true; }; "type": { "alias": "type"; "required": false; "isSignal": true; }; "name": { "alias": "name"; "required": false; "isSignal": true; }; "placeholder": { "alias": "placeholder"; "required": false; "isSignal": true; }; "readonly": { "alias": "readonly"; "required": false; "isSignal": true; }; "focus": { "alias": "focus"; "required": false; "isSignal": true; }; "justNumbers": { "alias": "justNumbers"; "required": false; "isSignal": true; }; "onlyNumbers": { "alias": "onlyNumbers"; "required": false; "isSignal": true; }; "ghost": { "alias": "ghost"; "required": false; "isSignal": true; }; "value": { "alias": "value"; "required": false; "isSignal": true; }; "parentForm": { "alias": "parentForm"; "required": false; "isSignal": true; }; "formControlName": { "alias": "formControlName"; "required": false; "isSignal": true; }; "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; "debounceTime": { "alias": "debounceTime"; "required": false; "isSignal": true; }; }, { "value": "valueChange"; "disabled": "disabledChange"; "enterPressed": "enterPressed"; "blurred": "blurred"; "valueDebounced": "valueDebounced"; }, never, ["st-input-content[alignment='start']", "st-input-content[alignment='end']", ":not(st-input-content)"], true, never>;
|
|
179
189
|
}
|
|
180
190
|
export {};
|
|
@@ -2,6 +2,7 @@ import { AfterViewInit, ElementRef } from '@angular/core';
|
|
|
2
2
|
import { ControlValueAccessor, FormGroup } from '@angular/forms';
|
|
3
3
|
import { TranslateService } from '@ngx-translate/core';
|
|
4
4
|
import { CdkListbox } from '@angular/cdk/listbox';
|
|
5
|
+
import { ConnectedOverlayPositionChange } from '@angular/cdk/overlay';
|
|
5
6
|
import * as i0 from "@angular/core";
|
|
6
7
|
/** Possible select dropdown style variants */
|
|
7
8
|
export type SelectVariantProps = 'primary' | 'secondary' | 'tertiary' | 'accent' | 'info' | 'success' | 'error' | 'warning' | null | undefined;
|
|
@@ -138,6 +139,24 @@ export declare class SelectComponent implements AfterViewInit, ControlValueAcces
|
|
|
138
139
|
listbox: import("@angular/core").Signal<CdkListbox<unknown> | undefined>;
|
|
139
140
|
/** Width of the trigger button for overlay positioning */
|
|
140
141
|
triggerWidth: import("@angular/core").WritableSignal<number>;
|
|
142
|
+
/** Tracks the overlay position to determine animation direction */
|
|
143
|
+
private readonly currentPosition;
|
|
144
|
+
/**
|
|
145
|
+
* Static class mappings for different animation directions
|
|
146
|
+
* Maps animation directions to complete Tailwind class names
|
|
147
|
+
* All class names are static and detectable by Tailwind at build time
|
|
148
|
+
*/
|
|
149
|
+
private readonly animationClassMap;
|
|
150
|
+
/**
|
|
151
|
+
* Computed animation direction based on overlay positioning
|
|
152
|
+
* Detects actual position from CDK overlay and returns appropriate direction
|
|
153
|
+
*/
|
|
154
|
+
animationDirection: import("@angular/core").Signal<"bottom" | "top" | "left" | "right">;
|
|
155
|
+
/**
|
|
156
|
+
* Computed class string for animations
|
|
157
|
+
* Applies the correct animation based on position using static class names
|
|
158
|
+
*/
|
|
159
|
+
animationClasses: import("@angular/core").Signal<string>;
|
|
141
160
|
/** Form control reference for reactive forms */
|
|
142
161
|
private readonly formControl;
|
|
143
162
|
/** Observable stream of form control */
|
|
@@ -249,6 +268,11 @@ export declare class SelectComponent implements AfterViewInit, ControlValueAcces
|
|
|
249
268
|
* Cleans up state and triggers blur
|
|
250
269
|
*/
|
|
251
270
|
handleDetach(): void;
|
|
271
|
+
/**
|
|
272
|
+
* Handles overlay position changes to determine animation direction
|
|
273
|
+
* @param event - The position change event from CDK overlay
|
|
274
|
+
*/
|
|
275
|
+
onPositionChange(event: ConnectedOverlayPositionChange): void;
|
|
252
276
|
/**
|
|
253
277
|
* Handles clicks outside the component
|
|
254
278
|
* @param event - The mouse event
|
|
@@ -85,7 +85,7 @@ export declare class TextareaComponent {
|
|
|
85
85
|
*/
|
|
86
86
|
blurred: import("@angular/core").OutputEmitterRef<string>;
|
|
87
87
|
/** @internal */
|
|
88
|
-
private blurTrigger;
|
|
88
|
+
private readonly blurTrigger;
|
|
89
89
|
/**
|
|
90
90
|
* Two-way bindable textarea value
|
|
91
91
|
*/
|
|
@@ -131,11 +131,11 @@ export declare class TextareaComponent {
|
|
|
131
131
|
*/
|
|
132
132
|
valueDebounced: import("@angular/core").OutputEmitterRef<string>;
|
|
133
133
|
/** @internal */
|
|
134
|
-
private debounceAction$;
|
|
134
|
+
private readonly debounceAction$;
|
|
135
135
|
/** @internal */
|
|
136
|
-
private
|
|
136
|
+
private readonly value$;
|
|
137
137
|
/** @internal */
|
|
138
|
-
private
|
|
138
|
+
private readonly destroyRef;
|
|
139
139
|
constructor();
|
|
140
140
|
/**
|
|
141
141
|
* @internal
|
|
@@ -177,17 +177,17 @@ export declare class TextareaComponent {
|
|
|
177
177
|
*/
|
|
178
178
|
handleBlur(): void;
|
|
179
179
|
/** @internal */
|
|
180
|
-
private formControl;
|
|
180
|
+
private readonly formControl;
|
|
181
181
|
/** @internal */
|
|
182
|
-
private formControl$;
|
|
182
|
+
private readonly formControl$;
|
|
183
183
|
/** @internal */
|
|
184
|
-
private statusChanges$;
|
|
184
|
+
private readonly statusChanges$;
|
|
185
185
|
/** @internal */
|
|
186
|
-
private stateChanges$;
|
|
186
|
+
private readonly stateChanges$;
|
|
187
187
|
/** @internal */
|
|
188
|
-
private statusSignal;
|
|
188
|
+
private readonly statusSignal;
|
|
189
189
|
/** @internal */
|
|
190
|
-
private stateSignal;
|
|
190
|
+
private readonly stateSignal;
|
|
191
191
|
/**
|
|
192
192
|
* @internal
|
|
193
193
|
* Computed validation classes based on form state
|