@sixbell-telco/sdk 2.0.1 → 2.1.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 +65 -1
- package/README.md +37 -3
- package/components/accordion/accordion-item/accordion-item.component.d.ts +3 -4
- package/components/audio-player/audio-timeline/audio-timeline.component.d.ts +28 -1
- package/components/audio-player/src/audio-player.component.d.ts +7 -3
- package/components/audio-player/volume-control/volume-control.component.d.ts +28 -1
- package/components/button/src/button.component.d.ts +46 -1
- package/components/data-table/data-table-empty-actions/data-table-empty-actions.component.d.ts +5 -0
- package/components/data-table/public-api.d.ts +1 -0
- package/components/data-table/src/data-table.component.d.ts +11 -3
- package/components/dialog/src/dialog.component.d.ts +51 -5
- package/components/dropdown/dropdown-content/dropdown-content.component.d.ts +2 -1
- package/components/dropdown/dropdown-item/dropdown-item.component.d.ts +37 -1
- package/components/dropdown/dropdown-item-checkbox/dropdown-item-checkbox.component.d.ts +33 -1
- package/components/dropdown/dropdown-item-radio/dropdown-item-radio.component.d.ts +33 -1
- package/components/dropdown/dropdown-trigger/dropdown-trigger.component.d.ts +53 -2
- package/components/dropdown/src/dropdown.component.d.ts +2 -2
- package/components/dropdown-menu/bar/dropdown-menu-bar-content/dropdown-menu-bar-content.component.d.ts +2 -1
- package/components/dropdown-menu/bar/dropdown-menu-bar-item/dropdown-menu-bar-item.component.d.ts +33 -1
- package/components/dropdown-menu/bar/dropdown-menu-bar-item-checkbox/dropdown-menu-bar-item-checkbox.component.d.ts +33 -1
- package/components/dropdown-menu/bar/dropdown-menu-bar-item-radio/dropdown-menu-bar-item-radio.component.d.ts +33 -1
- package/components/dropdown-menu/src/directives/dropdown-menu.directive.d.ts +1 -3
- package/components/dropdown-menu/src/dropdown-menu-content/dropdown-menu-content.component.d.ts +2 -1
- package/components/dropdown-menu/src/dropdown-menu-item/dropdown-menu-item.component.d.ts +33 -1
- package/components/dropdown-menu/src/dropdown-menu-sub-content/dropdown-menu-sub-content.component.d.ts +2 -1
- package/components/dual-list/src/dual-list.component.d.ts +3 -2
- package/components/file-upload/file-dropzone/file-dropzone.component.d.ts +46 -1
- package/components/file-upload/file-uploader/file-uploader.component.d.ts +33 -2
- package/components/forms/checkbox/src/checkbox.component.d.ts +46 -2
- package/components/forms/combobox/src/combobox.component.d.ts +40 -5
- package/components/forms/date-picker/src/date-picker.component.d.ts +11 -1
- package/components/forms/form-group/README.md +114 -0
- package/components/forms/form-group/index.d.ts +5 -0
- package/components/forms/form-group/public-api.d.ts +1 -0
- package/components/forms/form-group/src/form-group.component.d.ts +150 -0
- package/components/forms/form-item/README.md +17 -0
- package/components/forms/form-item/index.d.ts +5 -0
- package/components/forms/form-item/public-api.d.ts +1 -0
- package/components/forms/form-item/src/form-item.component.d.ts +5 -0
- package/components/forms/input/src/input.component.d.ts +35 -2
- package/components/forms/radio/src/radio.component.d.ts +46 -2
- package/components/forms/range/src/range.component.d.ts +38 -1
- package/components/forms/select/src/select.component.d.ts +40 -5
- package/components/forms/switch/src/switch.component.d.ts +46 -2
- package/components/forms/textarea/src/textarea.component.d.ts +52 -2
- package/components/forms/toggle/src/toggle.component.d.ts +46 -1
- package/components/overlay/overlay-content/overlay-content.component.d.ts +2 -1
- package/components/overlay/overlay-trigger/overlay-trigger.component.d.ts +37 -5
- package/components/overlay/src/overlay.component.d.ts +4 -5
- package/components/paginator/components/pagination-item/pagination-item.component.d.ts +37 -1
- package/components/tab/directives/tab-content/tab-content.directive.d.ts +3 -4
- package/components/table/public-api.d.ts +1 -0
- package/components/table/src/table.component.d.ts +36 -4
- package/components/table/table-empty-actions/table-empty-actions.component.d.ts +5 -0
- package/components/table/table-header-checkbox/table-header-checkbox.component.d.ts +5 -11
- package/components/table/table-row-checkbox/table-row-checkbox.component.d.ts +5 -11
- package/components/toast/toast-message/toast-message.component.d.ts +42 -1
- package/components/tooltip/src/tooltip.component.d.ts +10 -1
- package/components/wizard/wizard-marker/wizard-marker.component.d.ts +2 -3
- package/directives/auto-focus/src/auto-focus.directive.d.ts +5 -9
- package/directives/click-outside/src/click-outside.directive.d.ts +1 -3
- package/directives/only-numbers/src/only-numbers.directive.d.ts +0 -1
- package/fesm2022/sixbell-telco-sdk-components-accordion.mjs +6 -9
- package/fesm2022/sixbell-telco-sdk-components-accordion.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-components-audio-player.mjs +126 -46
- package/fesm2022/sixbell-telco-sdk-components-audio-player.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-components-button.mjs +78 -4
- package/fesm2022/sixbell-telco-sdk-components-button.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-components-data-table-sub-component-toggle.mjs +1 -1
- package/fesm2022/sixbell-telco-sdk-components-data-table-sub-component-toggle.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-components-data-table.mjs +52 -26
- package/fesm2022/sixbell-telco-sdk-components-data-table.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-components-dialog.mjs +82 -12
- package/fesm2022/sixbell-telco-sdk-components-dialog.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-components-dropdown-menu-bar.mjs +166 -13
- package/fesm2022/sixbell-telco-sdk-components-dropdown-menu-bar.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-components-dropdown-menu.mjs +69 -21
- package/fesm2022/sixbell-telco-sdk-components-dropdown-menu.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-components-dropdown.mjs +283 -16
- package/fesm2022/sixbell-telco-sdk-components-dropdown.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-components-dual-list.mjs +6 -4
- package/fesm2022/sixbell-telco-sdk-components-dual-list.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-components-file-upload.mjs +146 -7
- package/fesm2022/sixbell-telco-sdk-components-file-upload.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-components-forms-checkbox.mjs +69 -3
- package/fesm2022/sixbell-telco-sdk-components-forms-checkbox.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-components-forms-combobox.mjs +96 -19
- package/fesm2022/sixbell-telco-sdk-components-forms-combobox.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-components-forms-date-picker.mjs +13 -3
- package/fesm2022/sixbell-telco-sdk-components-forms-date-picker.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-components-forms-form-error.mjs +2 -2
- package/fesm2022/sixbell-telco-sdk-components-forms-form-error.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-components-forms-form-group.mjs +159 -0
- package/fesm2022/sixbell-telco-sdk-components-forms-form-group.mjs.map +1 -0
- package/fesm2022/sixbell-telco-sdk-components-forms-form-item.mjs +20 -0
- package/fesm2022/sixbell-telco-sdk-components-forms-form-item.mjs.map +1 -0
- package/fesm2022/sixbell-telco-sdk-components-forms-input.mjs +51 -5
- package/fesm2022/sixbell-telco-sdk-components-forms-input.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-components-forms-radio.mjs +69 -3
- package/fesm2022/sixbell-telco-sdk-components-forms-radio.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-components-forms-range.mjs +57 -4
- package/fesm2022/sixbell-telco-sdk-components-forms-range.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-components-forms-select.mjs +89 -18
- package/fesm2022/sixbell-telco-sdk-components-forms-select.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-components-forms-switch.mjs +80 -6
- package/fesm2022/sixbell-telco-sdk-components-forms-switch.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-components-forms-textarea.mjs +113 -6
- package/fesm2022/sixbell-telco-sdk-components-forms-textarea.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-components-forms-toggle.mjs +69 -3
- package/fesm2022/sixbell-telco-sdk-components-forms-toggle.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-components-overlay.mjs +94 -42
- package/fesm2022/sixbell-telco-sdk-components-overlay.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-components-paginator.mjs +71 -10
- package/fesm2022/sixbell-telco-sdk-components-paginator.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-components-tab.mjs +5 -9
- package/fesm2022/sixbell-telco-sdk-components-tab.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-components-table.mjs +131 -47
- package/fesm2022/sixbell-telco-sdk-components-table.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-components-toast.mjs +69 -4
- package/fesm2022/sixbell-telco-sdk-components-toast.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-components-tooltip.mjs +15 -3
- package/fesm2022/sixbell-telco-sdk-components-tooltip.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-components-wizard.mjs +4 -4
- package/fesm2022/sixbell-telco-sdk-components-wizard.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-directives-auto-focus.mjs +16 -19
- package/fesm2022/sixbell-telco-sdk-directives-auto-focus.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-directives-click-outside.mjs +7 -10
- package/fesm2022/sixbell-telco-sdk-directives-click-outside.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-directives-only-numbers.mjs +6 -9
- package/fesm2022/sixbell-telco-sdk-directives-only-numbers.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-utils-theme.mjs +7 -12
- package/fesm2022/sixbell-telco-sdk-utils-theme.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-utils-translation.mjs +6 -11
- package/fesm2022/sixbell-telco-sdk-utils-translation.mjs.map +1 -1
- package/package.json +52 -44
- package/utils/theme/src/theme-dom/theme-dom.service.d.ts +2 -3
- package/utils/translation/src/translation-dom/translation-dom.service.d.ts +2 -3
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
*/
|
|
13
13
|
import { CdkListbox } from '@angular/cdk/listbox';
|
|
14
14
|
import { ConnectedOverlayPositionChange } from '@angular/cdk/overlay';
|
|
15
|
-
import {
|
|
15
|
+
import { ElementRef } from '@angular/core';
|
|
16
16
|
import { ControlValueAccessor, FormGroup } from '@angular/forms';
|
|
17
17
|
import { TranslateService } from '@ngx-translate/core';
|
|
18
18
|
import { BadgeSizeProps } from '@sixbell-telco/sdk/components/badge';
|
|
@@ -76,7 +76,7 @@ export type ComboboxSearchQueryEvent = {
|
|
|
76
76
|
* </st-combobox>
|
|
77
77
|
* ```
|
|
78
78
|
*/
|
|
79
|
-
export declare class ComboboxComponent implements
|
|
79
|
+
export declare class ComboboxComponent implements ControlValueAccessor {
|
|
80
80
|
/**
|
|
81
81
|
* Angular translation service for internationalization
|
|
82
82
|
* @internal
|
|
@@ -92,6 +92,16 @@ export declare class ComboboxComponent implements AfterViewInit, ControlValueAcc
|
|
|
92
92
|
* @default 'md'
|
|
93
93
|
*/
|
|
94
94
|
size: import("@angular/core").InputSignal<ComboboxSizeProps>;
|
|
95
|
+
/**
|
|
96
|
+
* Whether to show optional indicator
|
|
97
|
+
* @defaultValue false
|
|
98
|
+
*/
|
|
99
|
+
showOptional: import("@angular/core").InputSignal<boolean>;
|
|
100
|
+
/**
|
|
101
|
+
* Optional indicator text (translation key or literal)
|
|
102
|
+
* @defaultValue 'sdk.formFields.optional'
|
|
103
|
+
*/
|
|
104
|
+
optionalText: import("@angular/core").InputSignal<string>;
|
|
95
105
|
/**
|
|
96
106
|
* Whether to use ghost (transparent) styling
|
|
97
107
|
* @default false
|
|
@@ -187,6 +197,27 @@ export declare class ComboboxComponent implements AfterViewInit, ControlValueAcc
|
|
|
187
197
|
* Event emitted when selection changes
|
|
188
198
|
*/
|
|
189
199
|
valueUpdated: import("@angular/core").OutputEmitterRef<any>;
|
|
200
|
+
/**
|
|
201
|
+
* Stop event propagation for activation events
|
|
202
|
+
* @defaultValue false
|
|
203
|
+
*/
|
|
204
|
+
stopPropagation: import("@angular/core").InputSignal<boolean>;
|
|
205
|
+
/**
|
|
206
|
+
* Event emitted on click
|
|
207
|
+
*/
|
|
208
|
+
clicked: import("@angular/core").OutputEmitterRef<MouseEvent>;
|
|
209
|
+
/**
|
|
210
|
+
* Event emitted on Enter keydown
|
|
211
|
+
*/
|
|
212
|
+
keyDownEnter: import("@angular/core").OutputEmitterRef<KeyboardEvent>;
|
|
213
|
+
/**
|
|
214
|
+
* Event emitted on Space keydown
|
|
215
|
+
*/
|
|
216
|
+
keyDownSpace: import("@angular/core").OutputEmitterRef<KeyboardEvent>;
|
|
217
|
+
/**
|
|
218
|
+
* Event emitted on activation (click or keyboard)
|
|
219
|
+
*/
|
|
220
|
+
triggered: import("@angular/core").OutputEmitterRef<void>;
|
|
190
221
|
/**
|
|
191
222
|
* Event emitted when search query changes with filtered results
|
|
192
223
|
*/
|
|
@@ -350,10 +381,9 @@ export declare class ComboboxComponent implements AfterViewInit, ControlValueAcc
|
|
|
350
381
|
*/
|
|
351
382
|
get currentSearchValue(): string;
|
|
352
383
|
/**
|
|
353
|
-
* Angular lifecycle hook called after view initialization
|
|
354
384
|
* Updates the trigger width for proper overlay positioning
|
|
355
385
|
*/
|
|
356
|
-
|
|
386
|
+
private readonly triggerWidthEffect;
|
|
357
387
|
/**
|
|
358
388
|
* Writes a new value to the component
|
|
359
389
|
* @param value - The new value to set
|
|
@@ -374,6 +404,11 @@ export declare class ComboboxComponent implements AfterViewInit, ControlValueAcc
|
|
|
374
404
|
* Handles focus management and animation state transitions
|
|
375
405
|
*/
|
|
376
406
|
toggleOverlay(): void;
|
|
407
|
+
/**
|
|
408
|
+
* @internal
|
|
409
|
+
* Handle click activation on trigger
|
|
410
|
+
*/
|
|
411
|
+
handleClick(event: MouseEvent): void;
|
|
377
412
|
/**
|
|
378
413
|
* Handles animation end events to update state
|
|
379
414
|
* @param event - The animation event
|
|
@@ -510,6 +545,6 @@ export declare class ComboboxComponent implements AfterViewInit, ControlValueAcc
|
|
|
510
545
|
*/
|
|
511
546
|
private setupSearchQueryEmission;
|
|
512
547
|
static ɵfac: i0.ɵɵFactoryDeclaration<ComboboxComponent, never>;
|
|
513
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<ComboboxComponent, "st-combobox", never, { "variant": { "alias": "variant"; "required": false; "isSignal": true; }; "size": { "alias": "size"; "required": false; "isSignal": true; }; "ghost": { "alias": "ghost"; "required": false; "isSignal": true; }; "name": { "alias": "name"; "required": false; "isSignal": true; }; "placeholder": { "alias": "placeholder"; "required": false; "isSignal": true; }; "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; "label": { "alias": "label"; "required": false; "isSignal": true; }; "parentForm": { "alias": "parentForm"; "required": false; "isSignal": true; }; "formControlName": { "alias": "formControlName"; "required": false; "isSignal": true; }; "allowClear": { "alias": "allowClear"; "required": false; "isSignal": true; }; "allowClearAll": { "alias": "allowClearAll"; "required": false; "isSignal": true; }; "searchPlaceholder": { "alias": "searchPlaceholder"; "required": false; "isSignal": true; }; "noResultsText": { "alias": "noResultsText"; "required": false; "isSignal": true; }; "value": { "alias": "value"; "required": false; "isSignal": true; }; "options": { "alias": "options"; "required": false; "isSignal": true; }; "displayKey": { "alias": "displayKey"; "required": false; "isSignal": true; }; "valueKey": { "alias": "valueKey"; "required": false; "isSignal": true; }; "selectionType": { "alias": "selectionType"; "required": false; "isSignal": true; }; "searchDebounced": { "alias": "searchDebounced"; "required": false; "isSignal": true; }; "searchDebounceTime": { "alias": "searchDebounceTime"; "required": false; "isSignal": true; }; }, { "disabled": "disabledChange"; "value": "valueChange"; "blurred": "blurred"; "valueUpdated": "valueUpdated"; "searchQuery": "searchQuery"; }, never, ["*"], true, never>;
|
|
548
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ComboboxComponent, "st-combobox", never, { "variant": { "alias": "variant"; "required": false; "isSignal": true; }; "size": { "alias": "size"; "required": false; "isSignal": true; }; "showOptional": { "alias": "showOptional"; "required": false; "isSignal": true; }; "optionalText": { "alias": "optionalText"; "required": false; "isSignal": true; }; "ghost": { "alias": "ghost"; "required": false; "isSignal": true; }; "name": { "alias": "name"; "required": false; "isSignal": true; }; "placeholder": { "alias": "placeholder"; "required": false; "isSignal": true; }; "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; "label": { "alias": "label"; "required": false; "isSignal": true; }; "parentForm": { "alias": "parentForm"; "required": false; "isSignal": true; }; "formControlName": { "alias": "formControlName"; "required": false; "isSignal": true; }; "allowClear": { "alias": "allowClear"; "required": false; "isSignal": true; }; "allowClearAll": { "alias": "allowClearAll"; "required": false; "isSignal": true; }; "searchPlaceholder": { "alias": "searchPlaceholder"; "required": false; "isSignal": true; }; "noResultsText": { "alias": "noResultsText"; "required": false; "isSignal": true; }; "value": { "alias": "value"; "required": false; "isSignal": true; }; "options": { "alias": "options"; "required": false; "isSignal": true; }; "displayKey": { "alias": "displayKey"; "required": false; "isSignal": true; }; "valueKey": { "alias": "valueKey"; "required": false; "isSignal": true; }; "selectionType": { "alias": "selectionType"; "required": false; "isSignal": true; }; "searchDebounced": { "alias": "searchDebounced"; "required": false; "isSignal": true; }; "searchDebounceTime": { "alias": "searchDebounceTime"; "required": false; "isSignal": true; }; "stopPropagation": { "alias": "stopPropagation"; "required": false; "isSignal": true; }; }, { "disabled": "disabledChange"; "value": "valueChange"; "blurred": "blurred"; "valueUpdated": "valueUpdated"; "clicked": "clicked"; "keyDownEnter": "keyDownEnter"; "keyDownSpace": "keyDownSpace"; "triggered": "triggered"; "searchQuery": "searchQuery"; }, never, ["*"], true, never>;
|
|
514
549
|
}
|
|
515
550
|
export {};
|
|
@@ -84,6 +84,16 @@ export declare class DatepickerComponent implements ControlValueAccessor {
|
|
|
84
84
|
datePickerOverlay: import("@angular/core").Signal<OverlayComponent | undefined>;
|
|
85
85
|
/** Label displayed above the fieldset legend */
|
|
86
86
|
label: import("@angular/core").InputSignal<string>;
|
|
87
|
+
/**
|
|
88
|
+
* Whether to show optional indicator
|
|
89
|
+
* @defaultValue false
|
|
90
|
+
*/
|
|
91
|
+
showOptional: import("@angular/core").InputSignal<boolean>;
|
|
92
|
+
/**
|
|
93
|
+
* Optional indicator text (translation key or literal)
|
|
94
|
+
* @defaultValue 'sdk.formFields.optional'
|
|
95
|
+
*/
|
|
96
|
+
optionalText: import("@angular/core").InputSignal<string>;
|
|
87
97
|
/**
|
|
88
98
|
* Picker mode
|
|
89
99
|
* @defaultValue 'single'
|
|
@@ -319,5 +329,5 @@ export declare class DatepickerComponent implements ControlValueAccessor {
|
|
|
319
329
|
onStartTimeChange(ev: Event): void;
|
|
320
330
|
onEndTimeChange(ev: Event): void;
|
|
321
331
|
static ɵfac: i0.ɵɵFactoryDeclaration<DatepickerComponent, never>;
|
|
322
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<DatepickerComponent, "st-datepicker", ["stDatepicker"], { "label": { "alias": "label"; "required": false; "isSignal": true; }; "mode": { "alias": "mode"; "required": false; "isSignal": true; }; "format": { "alias": "format"; "required": false; "isSignal": true; }; "language": { "alias": "language"; "required": false; "isSignal": true; }; "minDate": { "alias": "minDate"; "required": false; "isSignal": true; }; "maxDate": { "alias": "maxDate"; "required": false; "isSignal": true; }; "value": { "alias": "value"; "required": false; "isSignal": true; }; "rangeValue": { "alias": "rangeValue"; "required": false; "isSignal": true; }; "name": { "alias": "name"; "required": false; "isSignal": true; }; "rangeCalendars": { "alias": "rangeCalendars"; "required": false; "isSignal": true; }; "showQuickActions": { "alias": "showQuickActions"; "required": false; "isSignal": true; }; "showTimePicker": { "alias": "showTimePicker"; "required": false; "isSignal": true; }; "showSeconds": { "alias": "showSeconds"; "required": false; "isSignal": true; }; "timeDisplayFormat": { "alias": "timeDisplayFormat"; "required": false; "isSignal": true; }; "languageMapping": { "alias": "languageMapping"; "required": false; "isSignal": true; }; "useLocaleDisplay": { "alias": "useLocaleDisplay"; "required": false; "isSignal": true; }; "dateStyle": { "alias": "dateStyle"; "required": false; "isSignal": true; }; "startTimeValue": { "alias": "startTimeValue"; "required": false; "isSignal": true; }; "endTimeValue": { "alias": "endTimeValue"; "required": false; "isSignal": true; }; "parentForm": { "alias": "parentForm"; "required": false; "isSignal": true; }; "formControlName": { "alias": "formControlName"; "required": false; "isSignal": true; }; }, { "dateUpdated": "dateUpdated"; "rangeUpdated": "rangeUpdated"; "valueChanged": "valueChanged"; "rangeValueChanged": "rangeValueChanged"; "startTimeChanged": "startTimeChanged"; "endTimeChanged": "endTimeChanged"; }, never, ["*"], true, never>;
|
|
332
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<DatepickerComponent, "st-datepicker", ["stDatepicker"], { "label": { "alias": "label"; "required": false; "isSignal": true; }; "showOptional": { "alias": "showOptional"; "required": false; "isSignal": true; }; "optionalText": { "alias": "optionalText"; "required": false; "isSignal": true; }; "mode": { "alias": "mode"; "required": false; "isSignal": true; }; "format": { "alias": "format"; "required": false; "isSignal": true; }; "language": { "alias": "language"; "required": false; "isSignal": true; }; "minDate": { "alias": "minDate"; "required": false; "isSignal": true; }; "maxDate": { "alias": "maxDate"; "required": false; "isSignal": true; }; "value": { "alias": "value"; "required": false; "isSignal": true; }; "rangeValue": { "alias": "rangeValue"; "required": false; "isSignal": true; }; "name": { "alias": "name"; "required": false; "isSignal": true; }; "rangeCalendars": { "alias": "rangeCalendars"; "required": false; "isSignal": true; }; "showQuickActions": { "alias": "showQuickActions"; "required": false; "isSignal": true; }; "showTimePicker": { "alias": "showTimePicker"; "required": false; "isSignal": true; }; "showSeconds": { "alias": "showSeconds"; "required": false; "isSignal": true; }; "timeDisplayFormat": { "alias": "timeDisplayFormat"; "required": false; "isSignal": true; }; "languageMapping": { "alias": "languageMapping"; "required": false; "isSignal": true; }; "useLocaleDisplay": { "alias": "useLocaleDisplay"; "required": false; "isSignal": true; }; "dateStyle": { "alias": "dateStyle"; "required": false; "isSignal": true; }; "startTimeValue": { "alias": "startTimeValue"; "required": false; "isSignal": true; }; "endTimeValue": { "alias": "endTimeValue"; "required": false; "isSignal": true; }; "parentForm": { "alias": "parentForm"; "required": false; "isSignal": true; }; "formControlName": { "alias": "formControlName"; "required": false; "isSignal": true; }; }, { "dateUpdated": "dateUpdated"; "rangeUpdated": "rangeUpdated"; "valueChanged": "valueChanged"; "rangeValueChanged": "rangeValueChanged"; "startTimeChanged": "startTimeChanged"; "endTimeChanged": "endTimeChanged"; }, never, ["*"], true, never>;
|
|
323
333
|
}
|
|
@@ -0,0 +1,114 @@
|
|
|
1
|
+
# Form Group
|
|
2
|
+
|
|
3
|
+
`st-form-group` is a layout wrapper component that groups form components with consistent vertical spacing. It provides three gap variants to suit different layout densities and accessibility needs.
|
|
4
|
+
|
|
5
|
+
## Features
|
|
6
|
+
|
|
7
|
+
- **Three gap variants**: tight (6px), normal (12px), relaxed (16px)
|
|
8
|
+
- **CVA-based styling**: Class-variance-authority for efficient variant management
|
|
9
|
+
- **Custom class support**: Merge additional Tailwind classes with `cn()` utility
|
|
10
|
+
- **Flexible content projection**: Wrap any form items or custom content
|
|
11
|
+
- **Fully typed**: Complete TypeScript support with JSDoc annotations
|
|
12
|
+
|
|
13
|
+
## Usage
|
|
14
|
+
|
|
15
|
+
### Basic Usage (Default - Tight Gap)
|
|
16
|
+
|
|
17
|
+
```html
|
|
18
|
+
<st-form-group>
|
|
19
|
+
<st-form-item>
|
|
20
|
+
<st-input label="Email" [(value)]="email"></st-input>
|
|
21
|
+
</st-form-item>
|
|
22
|
+
<st-form-item>
|
|
23
|
+
<st-input label="Password" type="password" [(value)]="password"></st-input>
|
|
24
|
+
</st-form-item>
|
|
25
|
+
</st-form-group>
|
|
26
|
+
```
|
|
27
|
+
|
|
28
|
+
### Tight Gap (Compact Spacing - 6px)
|
|
29
|
+
|
|
30
|
+
Use for dense layouts or when space is limited.
|
|
31
|
+
|
|
32
|
+
```html
|
|
33
|
+
<st-form-group gap="tight">
|
|
34
|
+
<st-form-item><st-input label="First" ...></st-input></st-form-item>
|
|
35
|
+
<st-form-item><st-input label="Second" ...></st-input></st-form-item>
|
|
36
|
+
</st-form-group>
|
|
37
|
+
```
|
|
38
|
+
|
|
39
|
+
### Normal Gap (12px)
|
|
40
|
+
|
|
41
|
+
Use when you want more breathing room between fields.
|
|
42
|
+
|
|
43
|
+
```html
|
|
44
|
+
<st-form-group gap="normal">
|
|
45
|
+
<!-- form items -->
|
|
46
|
+
</st-form-group>
|
|
47
|
+
```
|
|
48
|
+
|
|
49
|
+
Or simply omit the gap prop (defaults to "tight"):
|
|
50
|
+
|
|
51
|
+
```html
|
|
52
|
+
<st-form-group>
|
|
53
|
+
<!-- form items -->
|
|
54
|
+
</st-form-group>
|
|
55
|
+
```
|
|
56
|
+
|
|
57
|
+
### Relaxed Gap (Spacious Spacing - 16px)
|
|
58
|
+
|
|
59
|
+
Best for accessibility-focused forms and improved readability.
|
|
60
|
+
|
|
61
|
+
```html
|
|
62
|
+
<st-form-group gap="relaxed">
|
|
63
|
+
<st-form-item><st-input label="Email" ...></st-input></st-form-item>
|
|
64
|
+
<st-form-item><st-input label="Phone" ...></st-input></st-form-item>
|
|
65
|
+
</st-form-group>
|
|
66
|
+
```
|
|
67
|
+
|
|
68
|
+
## With Custom Classes
|
|
69
|
+
|
|
70
|
+
Merge custom Tailwind classes with the gap variant:
|
|
71
|
+
|
|
72
|
+
```html
|
|
73
|
+
<st-form-group gap="tight" class="bg-base-200 border-primary rounded-lg border p-6">
|
|
74
|
+
<!-- form items with tight spacing + custom styling -->
|
|
75
|
+
</st-form-group>
|
|
76
|
+
```
|
|
77
|
+
|
|
78
|
+
Responsive modifications:
|
|
79
|
+
|
|
80
|
+
```html
|
|
81
|
+
<st-form-group gap="tight" class="md:p-8 lg:gap-4">
|
|
82
|
+
<!-- responsive padding and gap adjustments -->
|
|
83
|
+
</st-form-group>
|
|
84
|
+
```
|
|
85
|
+
|
|
86
|
+
## API
|
|
87
|
+
|
|
88
|
+
### Inputs
|
|
89
|
+
|
|
90
|
+
| Input | Type | Default | Description |
|
|
91
|
+
| ------- | ---------------------------------- | --------- | ------------------------------------------------------------------------- |
|
|
92
|
+
| `gap` | `'tight' \| 'normal' \| 'relaxed'` | `'tight'` | Vertical spacing between form items. Tight=6px, Normal=12px, Relaxed=16px |
|
|
93
|
+
| `class` | `string` | `''` | Additional custom Tailwind CSS classes |
|
|
94
|
+
|
|
95
|
+
### Slot
|
|
96
|
+
|
|
97
|
+
| Slot | Description |
|
|
98
|
+
| --------- | ----------------------------------------- |
|
|
99
|
+
| (default) | Any form items or custom content to group |
|
|
100
|
+
|
|
101
|
+
## Gap Variants Reference
|
|
102
|
+
|
|
103
|
+
| Variant | Spacing | Tailwind Class | Use Case |
|
|
104
|
+
| ----------- | -------------- | -------------- | --------------------------------------------------------- |
|
|
105
|
+
| **tight** | 6px (0.375rem) | `gap-1.5` | Compact forms, modal dialogs, dense layouts (default) |
|
|
106
|
+
| **normal** | 12px (0.75rem) | `gap-3` | Standard forms, roomier layout |
|
|
107
|
+
| **relaxed** | 16px (1rem) | `gap-4` | Accessible forms, improved readability, touch-friendly UI |
|
|
108
|
+
|
|
109
|
+
## Notes
|
|
110
|
+
|
|
111
|
+
- Always place `st-form-errors` as a sibling inside `st-form-item`, not as a child of input components
|
|
112
|
+
- Combine with `st-form-item` for consistent field + error message layout
|
|
113
|
+
- Use `cn()` utility internally for proper Tailwind class precedence
|
|
114
|
+
- Fully compatible with Angular 19 signals and reactive forms
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './src/form-group.component';
|
|
@@ -0,0 +1,150 @@
|
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
/**
|
|
3
|
+
* @internal
|
|
4
|
+
* Generates base form-group classes with gap variants using class-variance-authority
|
|
5
|
+
*/
|
|
6
|
+
export declare const formGroupComponent: (props?: ({
|
|
7
|
+
gap?: "tight" | "normal" | "relaxed" | null | undefined;
|
|
8
|
+
} & import("class-variance-authority/types").ClassProp) | undefined) => string;
|
|
9
|
+
/**
|
|
10
|
+
* Possible form-group gap spacing variants
|
|
11
|
+
*
|
|
12
|
+
* @description
|
|
13
|
+
* - `'tight'` - 6px spacing (gap-1.5). Best for compact forms or dense UI layouts. Default.
|
|
14
|
+
* - `'normal'` - 12px spacing (gap-3). Use for more breathing room in standard forms.
|
|
15
|
+
* - `'relaxed'` - 16px spacing (gap-4). Best for spacious forms, accessibility focus, or improved readability.
|
|
16
|
+
*/
|
|
17
|
+
export type FormGroupGapProps = 'tight' | 'normal' | 'relaxed' | null | undefined;
|
|
18
|
+
/**
|
|
19
|
+
* Configuration object for form-group styling
|
|
20
|
+
*
|
|
21
|
+
* @property gap - Vertical spacing between form items
|
|
22
|
+
* @property class - Additional custom Tailwind CSS classes to merge
|
|
23
|
+
*/
|
|
24
|
+
export type FormGroupProps = {
|
|
25
|
+
gap?: FormGroupGapProps;
|
|
26
|
+
class?: string;
|
|
27
|
+
};
|
|
28
|
+
/**
|
|
29
|
+
* A flexible layout wrapper for grouping form components with consistent vertical spacing.
|
|
30
|
+
*
|
|
31
|
+
* @remarks
|
|
32
|
+
* `st-form-group` is a layout utility that wraps form items or form sections with configurable
|
|
33
|
+
* vertical spacing. Built with Tailwind CSS v4 and class-variance-authority for efficient
|
|
34
|
+
* variant management. It uses modern Angular signals for reactive input/output handling.
|
|
35
|
+
*
|
|
36
|
+
* The component supports three gap variants that scale from compact to spacious layouts,
|
|
37
|
+
* making it ideal for diverse UI patterns:
|
|
38
|
+
* - **Tight (6px)**: Dense layouts, compact form sections (default)
|
|
39
|
+
* - **Normal (12px)**: Standard forms, roomier layout
|
|
40
|
+
* - **Relaxed (16px)**: Accessible forms, improved readability
|
|
41
|
+
*
|
|
42
|
+
* @example
|
|
43
|
+
* ```html
|
|
44
|
+
* <!-- Default tight spacing (6px) -->
|
|
45
|
+
* <st-form-group>
|
|
46
|
+
* <st-form-item>
|
|
47
|
+
* <st-input label="Email" [(value)]="email"></st-input>
|
|
48
|
+
* </st-form-item>
|
|
49
|
+
* <st-form-item>
|
|
50
|
+
* <st-input label="Password" type="password" [(value)]="password"></st-input>
|
|
51
|
+
* </st-form-item>
|
|
52
|
+
* </st-form-group>
|
|
53
|
+
* ```
|
|
54
|
+
*
|
|
55
|
+
* @example
|
|
56
|
+
* ```html
|
|
57
|
+
* <!-- Tight spacing for compact UI (6px) -->
|
|
58
|
+
* <st-form-group gap="tight">
|
|
59
|
+
* <st-form-item><st-input label="First" ...></st-input></st-form-item>
|
|
60
|
+
* <st-form-item><st-input label="Second" ...></st-input></st-form-item>
|
|
61
|
+
* </st-form-group>
|
|
62
|
+
* ```
|
|
63
|
+
*
|
|
64
|
+
* @example
|
|
65
|
+
* ```html
|
|
66
|
+
* <!-- Relaxed spacing for accessibility (16px) -->
|
|
67
|
+
* <st-form-group gap="relaxed">
|
|
68
|
+
* <st-form-item><st-input label="Email" ...></st-input></st-form-item>
|
|
69
|
+
* <st-form-item><st-input label="Phone" ...></st-input></st-form-item>
|
|
70
|
+
* </st-form-group>
|
|
71
|
+
* ```
|
|
72
|
+
*
|
|
73
|
+
* @example
|
|
74
|
+
* ```html
|
|
75
|
+
* <!-- Custom classes merged with variant -->
|
|
76
|
+
* <st-form-group gap="tight" class="p-4 border-2 border-primary rounded-lg">
|
|
77
|
+
* <!-- Form items with normal spacing + custom styling -->
|
|
78
|
+
* </st-form-group>
|
|
79
|
+
* ```
|
|
80
|
+
*/
|
|
81
|
+
export declare class FormGroupComponent {
|
|
82
|
+
/**
|
|
83
|
+
* Gap variant for vertical spacing between form items.
|
|
84
|
+
*
|
|
85
|
+
* @defaultValue 'tight'
|
|
86
|
+
*
|
|
87
|
+
* @description
|
|
88
|
+
* Controls the vertical spacing (`gap-*` utility) between child form components.
|
|
89
|
+
* Choose based on your layout needs and accessibility requirements:
|
|
90
|
+
*
|
|
91
|
+
* @param 'tight' - 6px spacing (Tailwind `gap-1.5`)
|
|
92
|
+
* Use when designing compact, dense form layouts where space is limited.
|
|
93
|
+
* Examples: Modal dialogs, inline form sections, sidebar forms.
|
|
94
|
+
* Spacing: 6px (0.375rem)
|
|
95
|
+
*
|
|
96
|
+
* @param 'normal' - 12px spacing (Tailwind `gap-3`)
|
|
97
|
+
* Use when you need more breathing room between fields. Works well for
|
|
98
|
+
* standard web forms and layouts.
|
|
99
|
+
* Spacing: 12px (0.75rem)
|
|
100
|
+
*
|
|
101
|
+
* @param 'relaxed' - 16px spacing (Tailwind `gap-4`)
|
|
102
|
+
* Use for forms prioritizing accessibility and readability. Ideal for
|
|
103
|
+
* forms targeting users with visual or motor impairments. Also great
|
|
104
|
+
* for mobile-first or touch-friendly interfaces.
|
|
105
|
+
* Spacing: 16px (1rem)
|
|
106
|
+
*
|
|
107
|
+
* @example
|
|
108
|
+
* ```typescript
|
|
109
|
+
* // In component template:
|
|
110
|
+
* <st-form-group gap="tight">...</st-form-group> // 6px spacing (default)
|
|
111
|
+
* <st-form-group gap="normal">...</st-form-group> // 12px spacing
|
|
112
|
+
* <st-form-group gap="relaxed">...</st-form-group> // 16px spacing
|
|
113
|
+
* ```
|
|
114
|
+
*/
|
|
115
|
+
gap: import("@angular/core").InputSignal<FormGroupGapProps>;
|
|
116
|
+
/**
|
|
117
|
+
* Additional custom CSS classes.
|
|
118
|
+
*
|
|
119
|
+
* @defaultValue ''
|
|
120
|
+
*
|
|
121
|
+
* @description
|
|
122
|
+
* Any valid Tailwind CSS or custom classes to apply alongside the gap variant.
|
|
123
|
+
* Classes are merged using the `cn()` utility, which handles proper class
|
|
124
|
+
* precedence and conflict resolution with Tailwind's merge logic.
|
|
125
|
+
*
|
|
126
|
+
* @example
|
|
127
|
+
* ```html
|
|
128
|
+
* <!-- Add custom padding and background -->
|
|
129
|
+
* <st-form-group class="p-6 bg-base-200 rounded-lg border border-primary">
|
|
130
|
+
* ...
|
|
131
|
+
* </st-form-group>
|
|
132
|
+
*
|
|
133
|
+
* <!-- Responsive modifications -->
|
|
134
|
+
* <st-form-group gap="normal" class="md:p-8 lg:gap-4">
|
|
135
|
+
* ...
|
|
136
|
+
* </st-form-group>
|
|
137
|
+
* ```
|
|
138
|
+
*/
|
|
139
|
+
class: import("@angular/core").InputSignal<string>;
|
|
140
|
+
/**
|
|
141
|
+
* @internal
|
|
142
|
+
* Computed class string combining gap variant and custom classes.
|
|
143
|
+
*
|
|
144
|
+
* Uses CVA pattern to manage gap variants and `cn()` utility to merge
|
|
145
|
+
* with custom classes, handling Tailwind class conflicts properly.
|
|
146
|
+
*/
|
|
147
|
+
containerClass: import("@angular/core").Signal<string>;
|
|
148
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<FormGroupComponent, never>;
|
|
149
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<FormGroupComponent, "st-form-group", never, { "gap": { "alias": "gap"; "required": false; "isSignal": true; }; "class": { "alias": "class"; "required": false; "isSignal": true; }; }, {}, never, ["*"], true, never>;
|
|
150
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
# Form Item
|
|
2
|
+
|
|
3
|
+
`st-form-item` is a layout wrapper for form fields. It ensures labels, controls, and error messages have consistent spacing and that `st-form-errors` can span the full available width of the form row.
|
|
4
|
+
|
|
5
|
+
## Usage
|
|
6
|
+
|
|
7
|
+
```html
|
|
8
|
+
<st-form-item>
|
|
9
|
+
<st-input formControlName="controlInput" label="Input" name="name" placeholder="placeholder" [parentForm]="inputForm"></st-input>
|
|
10
|
+
<st-form-errors [parentForm]="inputForm" formField="controlInput" />
|
|
11
|
+
</st-form-item>
|
|
12
|
+
```
|
|
13
|
+
|
|
14
|
+
## Notes
|
|
15
|
+
|
|
16
|
+
- Place `st-form-errors` as a sibling (not inside) the input/field component.
|
|
17
|
+
- `st-form-item` provides a consistent vertical gap and full-width error line.
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './src/form-item.component';
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
export declare class FormItemComponent {
|
|
3
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<FormItemComponent, never>;
|
|
4
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<FormItemComponent, "st-form-item", never, {}, {}, never, [":not(st-form-errors)", "st-form-errors"], true, never>;
|
|
5
|
+
}
|
|
@@ -52,6 +52,16 @@ export declare class InputComponent implements ControlValueAccessor {
|
|
|
52
52
|
* Label text displayed above the input
|
|
53
53
|
*/
|
|
54
54
|
label: import("@angular/core").InputSignal<string>;
|
|
55
|
+
/**
|
|
56
|
+
* Whether to show optional indicator
|
|
57
|
+
* @defaultValue false
|
|
58
|
+
*/
|
|
59
|
+
showOptional: import("@angular/core").InputSignal<boolean>;
|
|
60
|
+
/**
|
|
61
|
+
* Optional indicator text (translation key or literal)
|
|
62
|
+
* @defaultValue 'sdk.formFields.optional'
|
|
63
|
+
*/
|
|
64
|
+
optionalText: import("@angular/core").InputSignal<string>;
|
|
55
65
|
/**
|
|
56
66
|
* HTML input type
|
|
57
67
|
* @defaultValue 'text'
|
|
@@ -108,8 +118,26 @@ export declare class InputComponent implements ControlValueAccessor {
|
|
|
108
118
|
disabled: import("@angular/core").ModelSignal<boolean>;
|
|
109
119
|
/**
|
|
110
120
|
* Event emitted when Enter key is pressed
|
|
121
|
+
* @deprecated Use keyDownEnter or triggered instead. This output will be removed in the next major.
|
|
111
122
|
*/
|
|
112
123
|
enterPressed: import("@angular/core").OutputEmitterRef<string>;
|
|
124
|
+
/**
|
|
125
|
+
* Stop event propagation for activation events
|
|
126
|
+
* @defaultValue false
|
|
127
|
+
*/
|
|
128
|
+
stopPropagation: import("@angular/core").InputSignal<boolean>;
|
|
129
|
+
/**
|
|
130
|
+
* Event emitted on Enter keydown
|
|
131
|
+
*/
|
|
132
|
+
keyDownEnter: import("@angular/core").OutputEmitterRef<KeyboardEvent>;
|
|
133
|
+
/**
|
|
134
|
+
* Event emitted on activation (Enter)
|
|
135
|
+
*/
|
|
136
|
+
triggered: import("@angular/core").OutputEmitterRef<void>;
|
|
137
|
+
/**
|
|
138
|
+
* Event emitted on click
|
|
139
|
+
*/
|
|
140
|
+
clicked: import("@angular/core").OutputEmitterRef<MouseEvent>;
|
|
113
141
|
/**
|
|
114
142
|
* Event emitted when input loses focus
|
|
115
143
|
*/
|
|
@@ -152,11 +180,16 @@ export declare class InputComponent implements ControlValueAccessor {
|
|
|
152
180
|
* Handles input value changes
|
|
153
181
|
*/
|
|
154
182
|
handleChange(): void;
|
|
183
|
+
/**
|
|
184
|
+
* @internal
|
|
185
|
+
* Handles click activation
|
|
186
|
+
*/
|
|
187
|
+
handleClick(event: MouseEvent): void;
|
|
155
188
|
/**
|
|
156
189
|
* @internal
|
|
157
190
|
* Handles Enter key press
|
|
158
191
|
*/
|
|
159
|
-
handleEnter(): void;
|
|
192
|
+
handleEnter(event: Event): void;
|
|
160
193
|
/**
|
|
161
194
|
* @internal
|
|
162
195
|
* Handles blur event
|
|
@@ -185,6 +218,6 @@ export declare class InputComponent implements ControlValueAccessor {
|
|
|
185
218
|
*/
|
|
186
219
|
private setupDebounce;
|
|
187
220
|
static ɵfac: i0.ɵɵFactoryDeclaration<InputComponent, 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>;
|
|
221
|
+
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; }; "showOptional": { "alias": "showOptional"; "required": false; "isSignal": true; }; "optionalText": { "alias": "optionalText"; "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; }; "stopPropagation": { "alias": "stopPropagation"; "required": false; "isSignal": true; }; "debounceTime": { "alias": "debounceTime"; "required": false; "isSignal": true; }; }, { "value": "valueChange"; "disabled": "disabledChange"; "enterPressed": "enterPressed"; "keyDownEnter": "keyDownEnter"; "triggered": "triggered"; "clicked": "clicked"; "blurred": "blurred"; "valueDebounced": "valueDebounced"; }, never, ["st-input-content[alignment='start']", "st-input-content[alignment='end']", ":not(st-input-content)"], true, never>;
|
|
189
222
|
}
|
|
190
223
|
export {};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ControlValueAccessor } from '@angular/forms';
|
|
1
|
+
import { ControlValueAccessor, FormGroup } from '@angular/forms';
|
|
2
2
|
import * as i0 from "@angular/core";
|
|
3
3
|
/** Possible radio button color variants */
|
|
4
4
|
export type RadioVariantProps = 'primary' | 'secondary' | 'tertiary' | 'accent' | 'success' | 'warning' | 'info' | 'error' | null | undefined;
|
|
@@ -70,10 +70,39 @@ export declare class RadioComponent implements ControlValueAccessor {
|
|
|
70
70
|
* Two-way bindable selected value for radio group
|
|
71
71
|
*/
|
|
72
72
|
selected: import("@angular/core").ModelSignal<any>;
|
|
73
|
+
/**
|
|
74
|
+
* Parent form group for reactive forms
|
|
75
|
+
*/
|
|
76
|
+
parentForm: import("@angular/core").InputSignal<FormGroup<any> | null>;
|
|
77
|
+
/**
|
|
78
|
+
* Form control name for reactive forms
|
|
79
|
+
*/
|
|
80
|
+
formControlName: import("@angular/core").InputSignal<string>;
|
|
73
81
|
/**
|
|
74
82
|
* Event emitted when radio button is selected
|
|
75
83
|
*/
|
|
76
84
|
valueUpdated: import("@angular/core").OutputEmitterRef<any>;
|
|
85
|
+
/**
|
|
86
|
+
* Stop event propagation for activation events
|
|
87
|
+
* @defaultValue false
|
|
88
|
+
*/
|
|
89
|
+
stopPropagation: import("@angular/core").InputSignal<boolean>;
|
|
90
|
+
/**
|
|
91
|
+
* Event emitted on click
|
|
92
|
+
*/
|
|
93
|
+
clicked: import("@angular/core").OutputEmitterRef<MouseEvent>;
|
|
94
|
+
/**
|
|
95
|
+
* Event emitted on Enter keydown
|
|
96
|
+
*/
|
|
97
|
+
keyDownEnter: import("@angular/core").OutputEmitterRef<KeyboardEvent>;
|
|
98
|
+
/**
|
|
99
|
+
* Event emitted on Space keydown
|
|
100
|
+
*/
|
|
101
|
+
keyDownSpace: import("@angular/core").OutputEmitterRef<KeyboardEvent>;
|
|
102
|
+
/**
|
|
103
|
+
* Event emitted on activation (click or keyboard)
|
|
104
|
+
*/
|
|
105
|
+
triggered: import("@angular/core").OutputEmitterRef<void>;
|
|
77
106
|
private onControlChange;
|
|
78
107
|
private onControlTouch;
|
|
79
108
|
/**
|
|
@@ -100,6 +129,21 @@ export declare class RadioComponent implements ControlValueAccessor {
|
|
|
100
129
|
* Handles blur event
|
|
101
130
|
*/
|
|
102
131
|
handleBlur(): void;
|
|
132
|
+
/**
|
|
133
|
+
* @internal
|
|
134
|
+
* Handles click activation
|
|
135
|
+
*/
|
|
136
|
+
handleClick(event: MouseEvent): void;
|
|
137
|
+
/**
|
|
138
|
+
* @internal
|
|
139
|
+
* Handles Enter keydown activation
|
|
140
|
+
*/
|
|
141
|
+
handleKeyDownEnter(event: Event): void;
|
|
142
|
+
/**
|
|
143
|
+
* @internal
|
|
144
|
+
* Handles Space keydown activation
|
|
145
|
+
*/
|
|
146
|
+
handleKeyDownSpace(event: Event): void;
|
|
103
147
|
static ɵfac: i0.ɵɵFactoryDeclaration<RadioComponent, never>;
|
|
104
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<RadioComponent, "st-radio", never, { "variant": { "alias": "variant"; "required": false; "isSignal": true; }; "size": { "alias": "size"; "required": false; "isSignal": true; }; "label": { "alias": "label"; "required": false; "isSignal": true; }; "name": { "alias": "name"; "required": false; "isSignal": true; }; "value": { "alias": "value"; "required": true; "isSignal": true; }; "selected": { "alias": "selected"; "required": false; "isSignal": true; }; "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; }, { "selected": "selectedChange"; "valueUpdated": "valueUpdated"; "disabled": "disabledChange"; }, never, never, true, never>;
|
|
148
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<RadioComponent, "st-radio", never, { "variant": { "alias": "variant"; "required": false; "isSignal": true; }; "size": { "alias": "size"; "required": false; "isSignal": true; }; "label": { "alias": "label"; "required": false; "isSignal": true; }; "name": { "alias": "name"; "required": false; "isSignal": true; }; "value": { "alias": "value"; "required": true; "isSignal": true; }; "selected": { "alias": "selected"; "required": false; "isSignal": true; }; "parentForm": { "alias": "parentForm"; "required": false; "isSignal": true; }; "formControlName": { "alias": "formControlName"; "required": false; "isSignal": true; }; "stopPropagation": { "alias": "stopPropagation"; "required": false; "isSignal": true; }; "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; }, { "selected": "selectedChange"; "valueUpdated": "valueUpdated"; "clicked": "clicked"; "keyDownEnter": "keyDownEnter"; "keyDownSpace": "keyDownSpace"; "triggered": "triggered"; "disabled": "disabledChange"; }, never, never, true, never>;
|
|
105
149
|
}
|