@sixbell-telco/sdk 2.0.1 → 3.0.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 +134 -1
- package/README.md +360 -87
- package/_index.css +0 -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/card/card-actions/card-actions.component.d.ts +4 -4
- package/components/card/card-body/card-body.component.d.ts +5 -0
- package/components/card/card-context.d.ts +8 -0
- package/components/card/card-footer/card-footer.component.d.ts +7 -0
- package/components/card/card-header/card-header.component.d.ts +5 -0
- package/components/card/card-header-aside/card-header-aside.component.d.ts +5 -0
- package/components/card/card-section/card-section.component.d.ts +5 -0
- package/components/card/card-section-body/card-section-body.component.d.ts +5 -0
- package/components/card/card-section-footer/card-section-footer.component.d.ts +5 -0
- package/components/card/card-section-group/card-section-group.component.d.ts +16 -0
- package/components/card/card-section-header/card-section-header.component.d.ts +5 -0
- package/components/card/card-section-header-aside/card-section-header-aside.component.d.ts +5 -0
- package/components/card/card-subtitle/card-subtitle.component.d.ts +34 -0
- package/components/card/card-title/card-title.component.d.ts +23 -14
- package/components/card/public-api.d.ts +12 -1
- package/components/card/src/card.component.d.ts +5 -1
- package/components/data-table/actions/actions.component.d.ts +67 -0
- package/components/data-table/actions/actions.types.d.ts +38 -0
- 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 +3 -0
- package/components/data-table/sortable-header/sortable-header.component.d.ts +2 -0
- package/components/data-table/src/data-table.component.d.ts +24 -7
- package/components/dialog/src/dialog.component.d.ts +51 -5
- package/{directives/typography → components/divider}/index.d.ts +1 -1
- package/components/divider/public-api.d.ts +1 -0
- package/components/divider/src/divider.component.d.ts +13 -0
- 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 +14 -1
- package/components/forms/form-error/src/form-error.component.d.ts +8 -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 +32 -10
- 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 +49 -4
- 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 +46 -1
- package/components/paginator/src/paginator.component.d.ts +7 -1
- package/components/tab/directives/tab-content/tab-content.directive.d.ts +3 -4
- package/components/table/public-api.d.ts +2 -0
- package/components/table/src/table.component.d.ts +72 -7
- package/components/table/table-action/table-action.component.d.ts +2 -6
- package/components/table/table-actions/table-actions.component.d.ts +52 -6
- package/components/table/table-actions/table-actions.types.d.ts +28 -0
- 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 → text}/index.d.ts +1 -1
- package/components/text/public-api.d.ts +2 -0
- package/components/text/src/text.component.d.ts +38 -0
- 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/public-api.d.ts +0 -5
- package/directives/only-numbers/src/only-numbers.directive.d.ts +1 -14
- package/directives/text/index.d.ts +5 -0
- package/directives/text/public-api.d.ts +1 -0
- package/directives/text/src/text.directive.d.ts +87 -0
- package/fesm2022/sixbell-telco-sdk-components-accordion.mjs +9 -12
- package/fesm2022/sixbell-telco-sdk-components-accordion.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-components-audio-player.mjs +130 -50
- package/fesm2022/sixbell-telco-sdk-components-audio-player.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-components-avatar.mjs +10 -11
- package/fesm2022/sixbell-telco-sdk-components-avatar.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-components-badge.mjs +3 -3
- package/fesm2022/sixbell-telco-sdk-components-badge.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-components-button.mjs +79 -5
- package/fesm2022/sixbell-telco-sdk-components-button.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-components-card.mjs +414 -47
- package/fesm2022/sixbell-telco-sdk-components-card.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 +236 -59
- package/fesm2022/sixbell-telco-sdk-components-data-table.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-components-dialog.mjs +87 -17
- package/fesm2022/sixbell-telco-sdk-components-dialog.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-components-divider.mjs +44 -0
- package/fesm2022/sixbell-telco-sdk-components-divider.mjs.map +1 -0
- 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 +8 -6
- package/fesm2022/sixbell-telco-sdk-components-dual-list.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-components-file-upload.mjs +148 -9
- 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 +32 -6
- package/fesm2022/sixbell-telco-sdk-components-forms-date-picker.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-components-forms-form-error.mjs +12 -5
- 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 +48 -14
- 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 +112 -11
- package/fesm2022/sixbell-telco-sdk-components-forms-textarea.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-components-forms-toggle.mjs +71 -5
- package/fesm2022/sixbell-telco-sdk-components-forms-toggle.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-components-icon.mjs +2 -2
- package/fesm2022/sixbell-telco-sdk-components-icon.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-components-link.mjs +3 -3
- package/fesm2022/sixbell-telco-sdk-components-link.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 +113 -24
- package/fesm2022/sixbell-telco-sdk-components-paginator.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-components-progress.mjs +3 -3
- package/fesm2022/sixbell-telco-sdk-components-progress.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 +565 -89
- package/fesm2022/sixbell-telco-sdk-components-table.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-components-text.mjs +308 -0
- package/fesm2022/sixbell-telco-sdk-components-text.mjs.map +1 -0
- 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 +15 -15
- 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 +11 -31
- package/fesm2022/sixbell-telco-sdk-directives-only-numbers.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-directives-text.mjs +160 -0
- package/fesm2022/sixbell-telco-sdk-directives-text.mjs.map +1 -0
- package/fesm2022/sixbell-telco-sdk-utils-formatting.mjs +490 -0
- package/fesm2022/sixbell-telco-sdk-utils-formatting.mjs.map +1 -0
- 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 +55 -12
- package/fesm2022/sixbell-telco-sdk-utils-translation.mjs.map +1 -1
- package/package.json +90 -74
- package/utils/formatting/README.md +100 -0
- package/utils/formatting/index.d.ts +5 -0
- package/utils/formatting/public-api.d.ts +9 -0
- package/utils/formatting/src/constants/constants.d.ts +18 -0
- package/utils/formatting/src/models/formatting.d.ts +33 -0
- package/utils/formatting/src/pipes/currency/st-currency.pipe.d.ts +9 -0
- package/utils/formatting/src/pipes/date/st-date.pipe.d.ts +9 -0
- package/utils/formatting/src/pipes/decimal/st-decimal.pipe.d.ts +9 -0
- package/utils/formatting/src/pipes/percent/st-percent.pipe.d.ts +9 -0
- package/utils/formatting/src/service/formatting.service.d.ts +13 -0
- package/utils/formatting/src/utils/date-format/date-format.d.ts +9 -0
- package/utils/formatting/src/utils/number-format/number-format.d.ts +12 -0
- package/utils/logger/README.md +8 -19
- package/utils/runtime-config/README.md +1 -1
- package/utils/theme/README.md +21 -2
- package/utils/theme/src/theme-dom/theme-dom.service.d.ts +2 -3
- package/utils/translation/README.md +40 -10
- package/utils/translation/public-api.d.ts +1 -1
- package/utils/translation/src/constants.d.ts +9 -2
- package/utils/translation/src/models/translation.d.ts +11 -0
- package/utils/translation/src/providers/translation.provider.d.ts +1 -1
- package/utils/translation/src/translation-dom/translation-dom.service.d.ts +2 -3
- package/utils/translation/src/translation.service.d.ts +6 -1
- package/assets/styles/toast.css +0 -63
- package/components/card/card-content/card-content.component.d.ts +0 -30
- package/components/toast/public-api.d.ts +0 -12
- package/components/toast/services/toast.service.d.ts +0 -35
- package/components/toast/toast-message/toast-message.component.d.ts +0 -29
- package/components/toast/toasts-container/toasts-container.component.d.ts +0 -21
- package/directives/typography/public-api.d.ts +0 -1
- package/directives/typography/src/typography.directive.d.ts +0 -68
- package/fesm2022/sixbell-telco-sdk-components-toast.mjs +0 -185
- package/fesm2022/sixbell-telco-sdk-components-toast.mjs.map +0 -1
- package/fesm2022/sixbell-telco-sdk-directives-typography.mjs +0 -126
- package/fesm2022/sixbell-telco-sdk-directives-typography.mjs.map +0 -1
package/components/dropdown-menu/src/dropdown-menu-content/dropdown-menu-content.component.d.ts
CHANGED
|
@@ -5,7 +5,8 @@ import * as i0 from "@angular/core";
|
|
|
5
5
|
*/
|
|
6
6
|
export declare class DropdownMenuContentComponent {
|
|
7
7
|
private readonly menuStack;
|
|
8
|
-
|
|
8
|
+
private readonly templateRef;
|
|
9
|
+
get template(): TemplateRef<unknown>;
|
|
9
10
|
/**
|
|
10
11
|
* Custom CSS classes
|
|
11
12
|
*/
|
|
@@ -25,14 +25,46 @@ export declare class DropdownMenuItemComponent {
|
|
|
25
25
|
* Emitted when the menu item is triggered/clicked
|
|
26
26
|
*/
|
|
27
27
|
triggered: import("@angular/core").OutputEmitterRef<void>;
|
|
28
|
+
/**
|
|
29
|
+
* Stop event propagation for activation events
|
|
30
|
+
* @defaultValue false
|
|
31
|
+
*/
|
|
32
|
+
stopPropagation: import("@angular/core").InputSignal<boolean>;
|
|
33
|
+
/**
|
|
34
|
+
* Event emitted on click
|
|
35
|
+
*/
|
|
36
|
+
clicked: import("@angular/core").OutputEmitterRef<MouseEvent>;
|
|
37
|
+
/**
|
|
38
|
+
* Event emitted on Enter keydown
|
|
39
|
+
*/
|
|
40
|
+
keyDownEnter: import("@angular/core").OutputEmitterRef<KeyboardEvent>;
|
|
41
|
+
/**
|
|
42
|
+
* Event emitted on Space keydown
|
|
43
|
+
*/
|
|
44
|
+
keyDownSpace: import("@angular/core").OutputEmitterRef<KeyboardEvent>;
|
|
28
45
|
/**
|
|
29
46
|
* Handle item click - close all menus unless disabled
|
|
30
47
|
*/
|
|
31
48
|
onItemClick(): void;
|
|
49
|
+
/**
|
|
50
|
+
* @internal
|
|
51
|
+
* Handle click activation
|
|
52
|
+
*/
|
|
53
|
+
handleClick(event: MouseEvent): void;
|
|
54
|
+
/**
|
|
55
|
+
* @internal
|
|
56
|
+
* Handle Enter key activation
|
|
57
|
+
*/
|
|
58
|
+
handleKeyDownEnter(event: Event): void;
|
|
59
|
+
/**
|
|
60
|
+
* @internal
|
|
61
|
+
* Handle Space key activation
|
|
62
|
+
*/
|
|
63
|
+
handleKeyDownSpace(event: Event): void;
|
|
32
64
|
/**
|
|
33
65
|
* Computed CSS classes for the menu item
|
|
34
66
|
*/
|
|
35
67
|
itemClass: () => string;
|
|
36
68
|
static ɵfac: i0.ɵɵFactoryDeclaration<DropdownMenuItemComponent, never>;
|
|
37
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<DropdownMenuItemComponent, "st-dropdown-menu-item", never, { "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; "active": { "alias": "active"; "required": false; "isSignal": true; }; "shortcut": { "alias": "shortcut"; "required": false; "isSignal": true; }; "class": { "alias": "class"; "required": false; "isSignal": true; }; }, { "triggered": "triggered"; }, never, ["*"], true, [{ directive: typeof i1.CdkMenuItem; inputs: {}; outputs: { "cdkMenuItemTriggered": "triggered"; }; }]>;
|
|
69
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<DropdownMenuItemComponent, "st-dropdown-menu-item", never, { "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; "active": { "alias": "active"; "required": false; "isSignal": true; }; "shortcut": { "alias": "shortcut"; "required": false; "isSignal": true; }; "class": { "alias": "class"; "required": false; "isSignal": true; }; "stopPropagation": { "alias": "stopPropagation"; "required": false; "isSignal": true; }; }, { "triggered": "triggered"; "clicked": "clicked"; "keyDownEnter": "keyDownEnter"; "keyDownSpace": "keyDownSpace"; }, never, ["*"], true, [{ directive: typeof i1.CdkMenuItem; inputs: {}; outputs: { "cdkMenuItemTriggered": "triggered"; }; }]>;
|
|
38
70
|
}
|
|
@@ -5,7 +5,8 @@ import * as i0 from "@angular/core";
|
|
|
5
5
|
*/
|
|
6
6
|
export declare class DropdownMenuSubContentComponent {
|
|
7
7
|
private readonly menuStack;
|
|
8
|
-
|
|
8
|
+
private readonly templateRef;
|
|
9
|
+
get template(): TemplateRef<unknown>;
|
|
9
10
|
/**
|
|
10
11
|
* Custom CSS classes
|
|
11
12
|
*/
|
|
@@ -32,8 +32,9 @@ export declare class DualListComponent<T> {
|
|
|
32
32
|
itemsAdded: import("@angular/core").OutputEmitterRef<DualListData<T>[]>;
|
|
33
33
|
itemsAddedEffect: import("@angular/core").EffectRef;
|
|
34
34
|
searchQuery: import("@angular/core").OutputEmitterRef<string>;
|
|
35
|
+
searchQueryValue: import("@angular/core").ModelSignal<string>;
|
|
35
36
|
handleSearch(search: string): void;
|
|
36
|
-
searchTarget: import("@angular/core").
|
|
37
|
+
searchTarget: import("@angular/core").ModelSignal<string>;
|
|
37
38
|
searchTargetComputed: import("@angular/core").Signal<DualListData<T>[]>;
|
|
38
39
|
handleTargetListSearch(search: string): void;
|
|
39
40
|
pagination: import("@angular/core").InputSignal<TablePagination>;
|
|
@@ -49,5 +50,5 @@ export declare class DualListComponent<T> {
|
|
|
49
50
|
handleRemoveItems(): void;
|
|
50
51
|
private updateTargetList;
|
|
51
52
|
static ɵfac: i0.ɵɵFactoryDeclaration<DualListComponent<any>, 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>;
|
|
53
|
+
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; }; "searchQueryValue": { "alias": "searchQueryValue"; "required": false; "isSignal": true; }; "searchTarget": { "alias": "searchTarget"; "required": false; "isSignal": true; }; "pagination": { "alias": "pagination"; "required": true; "isSignal": true; }; }, { "itemsAdded": "itemsAdded"; "searchQuery": "searchQuery"; "searchQueryValue": "searchQueryValueChange"; "searchTarget": "searchTargetChange"; "pageChanged": "pageChanged"; "pageSizeChanged": "pageSizeChanged"; }, never, never, true, never>;
|
|
53
54
|
}
|
|
@@ -99,6 +99,31 @@ export declare class DropzoneComponent implements ControlValueAccessor {
|
|
|
99
99
|
* Emitted when a file is removed
|
|
100
100
|
*/
|
|
101
101
|
fileRemoved: import("@angular/core").OutputEmitterRef<File>;
|
|
102
|
+
/**
|
|
103
|
+
* Stop event propagation for activation events
|
|
104
|
+
* @defaultValue false
|
|
105
|
+
*/
|
|
106
|
+
stopPropagation: import("@angular/core").InputSignal<boolean>;
|
|
107
|
+
/**
|
|
108
|
+
* Event emitted on click
|
|
109
|
+
*/
|
|
110
|
+
clicked: import("@angular/core").OutputEmitterRef<MouseEvent>;
|
|
111
|
+
/**
|
|
112
|
+
* Event emitted on pointer down
|
|
113
|
+
*/
|
|
114
|
+
pointerDown: import("@angular/core").OutputEmitterRef<PointerEvent>;
|
|
115
|
+
/**
|
|
116
|
+
* Event emitted on Enter keydown
|
|
117
|
+
*/
|
|
118
|
+
keyDownEnter: import("@angular/core").OutputEmitterRef<KeyboardEvent>;
|
|
119
|
+
/**
|
|
120
|
+
* Event emitted on Space keydown
|
|
121
|
+
*/
|
|
122
|
+
keyDownSpace: import("@angular/core").OutputEmitterRef<KeyboardEvent>;
|
|
123
|
+
/**
|
|
124
|
+
* Event emitted on activation (click or keyboard)
|
|
125
|
+
*/
|
|
126
|
+
triggered: import("@angular/core").OutputEmitterRef<void>;
|
|
102
127
|
/** @internal Current list of uploaded files */
|
|
103
128
|
files: import("@angular/core").WritableSignal<File[]>;
|
|
104
129
|
/** @internal Drag state tracker */
|
|
@@ -136,6 +161,26 @@ export declare class DropzoneComponent implements ControlValueAccessor {
|
|
|
136
161
|
* @internal
|
|
137
162
|
*/
|
|
138
163
|
getIndexForTracks(file: File): number;
|
|
164
|
+
/**
|
|
165
|
+
* @internal
|
|
166
|
+
* Handle click activation
|
|
167
|
+
*/
|
|
168
|
+
handleClick(event: MouseEvent): void;
|
|
169
|
+
/**
|
|
170
|
+
* @internal
|
|
171
|
+
* Handle pointer down activation
|
|
172
|
+
*/
|
|
173
|
+
handlePointerDown(event: PointerEvent): void;
|
|
174
|
+
/**
|
|
175
|
+
* @internal
|
|
176
|
+
* Handle Enter key activation
|
|
177
|
+
*/
|
|
178
|
+
handleKeyDownEnter(event: Event): void;
|
|
179
|
+
/**
|
|
180
|
+
* @internal
|
|
181
|
+
* Handle Space key activation
|
|
182
|
+
*/
|
|
183
|
+
handleKeyDownSpace(event: Event): void;
|
|
139
184
|
/**
|
|
140
185
|
* Handles drag over event
|
|
141
186
|
* @param event - Drag event
|
|
@@ -250,5 +295,5 @@ export declare class DropzoneComponent implements ControlValueAccessor {
|
|
|
250
295
|
*/
|
|
251
296
|
dropzoneClass: import("@angular/core").Signal<string>;
|
|
252
297
|
static ɵfac: i0.ɵɵFactoryDeclaration<DropzoneComponent, never>;
|
|
253
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<DropzoneComponent, "st-file-dropzone", never, { "maxFiles": { "alias": "maxFiles"; "required": false; "isSignal": true; }; "maxFileSize": { "alias": "maxFileSize"; "required": false; "isSignal": true; }; "showFiles": { "alias": "showFiles"; "required": false; "isSignal": true; }; "extensions": { "alias": "extensions"; "required": true; "isSignal": true; }; "uploading": { "alias": "uploading"; "required": false; "isSignal": true; }; "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; "multiple": { "alias": "multiple"; "required": false; "isSignal": true; }; "name": { "alias": "name"; "required": false; "isSignal": true; }; "parentForm": { "alias": "parentForm"; "required": false; "isSignal": true; }; "formControlName": { "alias": "formControlName"; "required": false; "isSignal": true; }; }, { "disabled": "disabledChange"; "fileDropped": "fileDropped"; "fileRemoved": "fileRemoved"; }, never, ["*"], true, never>;
|
|
298
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<DropzoneComponent, "st-file-dropzone", never, { "maxFiles": { "alias": "maxFiles"; "required": false; "isSignal": true; }; "maxFileSize": { "alias": "maxFileSize"; "required": false; "isSignal": true; }; "showFiles": { "alias": "showFiles"; "required": false; "isSignal": true; }; "extensions": { "alias": "extensions"; "required": true; "isSignal": true; }; "uploading": { "alias": "uploading"; "required": false; "isSignal": true; }; "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; "multiple": { "alias": "multiple"; "required": false; "isSignal": true; }; "name": { "alias": "name"; "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": "disabledChange"; "fileDropped": "fileDropped"; "fileRemoved": "fileRemoved"; "clicked": "clicked"; "pointerDown": "pointerDown"; "keyDownEnter": "keyDownEnter"; "keyDownSpace": "keyDownSpace"; "triggered": "triggered"; }, never, ["*"], true, never>;
|
|
254
299
|
}
|
|
@@ -79,6 +79,27 @@ export declare class FileUploaderComponent implements ControlValueAccessor {
|
|
|
79
79
|
* Event emitted when a valid file is selected
|
|
80
80
|
*/
|
|
81
81
|
fileUpdated: import("@angular/core").OutputEmitterRef<File>;
|
|
82
|
+
/**
|
|
83
|
+
* Stop event propagation for activation events
|
|
84
|
+
* @defaultValue false
|
|
85
|
+
*/
|
|
86
|
+
stopPropagation: import("@angular/core").InputSignal<boolean>;
|
|
87
|
+
/**
|
|
88
|
+
* Event emitted on click
|
|
89
|
+
*/
|
|
90
|
+
clicked: import("@angular/core").OutputEmitterRef<MouseEvent>;
|
|
91
|
+
/**
|
|
92
|
+
* Event emitted on Enter keydown
|
|
93
|
+
*/
|
|
94
|
+
keyDownEnter: import("@angular/core").OutputEmitterRef<KeyboardEvent>;
|
|
95
|
+
/**
|
|
96
|
+
* Event emitted on Space keydown
|
|
97
|
+
*/
|
|
98
|
+
keyDownSpace: import("@angular/core").OutputEmitterRef<KeyboardEvent>;
|
|
99
|
+
/**
|
|
100
|
+
* Event emitted on activation (click or keyboard)
|
|
101
|
+
*/
|
|
102
|
+
triggered: import("@angular/core").OutputEmitterRef<void>;
|
|
82
103
|
/**
|
|
83
104
|
* Current selected filename
|
|
84
105
|
* @internal
|
|
@@ -150,7 +171,17 @@ export declare class FileUploaderComponent implements ControlValueAccessor {
|
|
|
150
171
|
* Handles click event on the upload area
|
|
151
172
|
* @internal
|
|
152
173
|
*/
|
|
153
|
-
handleClick(): void;
|
|
174
|
+
handleClick(event: MouseEvent): void;
|
|
175
|
+
/**
|
|
176
|
+
* @internal
|
|
177
|
+
* Handle Enter key activation
|
|
178
|
+
*/
|
|
179
|
+
handleKeyDownEnter(event: Event): void;
|
|
180
|
+
/**
|
|
181
|
+
* @internal
|
|
182
|
+
* Handle Space key activation
|
|
183
|
+
*/
|
|
184
|
+
handleKeyDownSpace(event: Event): void;
|
|
154
185
|
/**
|
|
155
186
|
* Notifies form control of value changes
|
|
156
187
|
* @internal
|
|
@@ -205,5 +236,5 @@ export declare class FileUploaderComponent implements ControlValueAccessor {
|
|
|
205
236
|
*/
|
|
206
237
|
validationClass: import("@angular/core").Signal<FileUploaderProps>;
|
|
207
238
|
static ɵfac: i0.ɵɵFactoryDeclaration<FileUploaderComponent, never>;
|
|
208
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<FileUploaderComponent, "st-file-uploader", 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; }; "placeholder": { "alias": "placeholder"; "required": false; "isSignal": true; }; "showExtensions": { "alias": "showExtensions"; "required": false; "isSignal": true; }; "extensions": { "alias": "extensions"; "required": true; "isSignal": true; }; "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; "parentForm": { "alias": "parentForm"; "required": false; "isSignal": true; }; "formControlName": { "alias": "formControlName"; "required": false; "isSignal": true; }; "value": { "alias": "value"; "required": false; "isSignal": true; }; }, { "fileUpdated": "fileUpdated"; "blurred": "blurred"; "disabled": "disabledChange"; "value": "valueChange"; }, never, ["*"], true, never>;
|
|
239
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<FileUploaderComponent, "st-file-uploader", 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; }; "placeholder": { "alias": "placeholder"; "required": false; "isSignal": true; }; "showExtensions": { "alias": "showExtensions"; "required": false; "isSignal": true; }; "extensions": { "alias": "extensions"; "required": true; "isSignal": true; }; "stopPropagation": { "alias": "stopPropagation"; "required": false; "isSignal": true; }; "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; "parentForm": { "alias": "parentForm"; "required": false; "isSignal": true; }; "formControlName": { "alias": "formControlName"; "required": false; "isSignal": true; }; "value": { "alias": "value"; "required": false; "isSignal": true; }; }, { "fileUpdated": "fileUpdated"; "clicked": "clicked"; "keyDownEnter": "keyDownEnter"; "keyDownSpace": "keyDownSpace"; "triggered": "triggered"; "blurred": "blurred"; "disabled": "disabledChange"; "value": "valueChange"; }, never, ["*"], true, never>;
|
|
209
240
|
}
|
|
@@ -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 checkbox color variants */
|
|
4
4
|
export type CheckboxVariantProps = 'primary' | 'secondary' | 'tertiary' | 'accent' | 'success' | 'warning' | 'info' | 'error' | null | undefined;
|
|
@@ -56,10 +56,39 @@ export declare class CheckboxComponent implements ControlValueAccessor {
|
|
|
56
56
|
* Two-way bindable checkbox state
|
|
57
57
|
*/
|
|
58
58
|
value: import("@angular/core").ModelSignal<boolean>;
|
|
59
|
+
/**
|
|
60
|
+
* Parent form group for reactive forms
|
|
61
|
+
*/
|
|
62
|
+
parentForm: import("@angular/core").InputSignal<FormGroup<any> | null>;
|
|
63
|
+
/**
|
|
64
|
+
* Form control name for reactive forms
|
|
65
|
+
*/
|
|
66
|
+
formControlName: import("@angular/core").InputSignal<string>;
|
|
59
67
|
/**
|
|
60
68
|
* Event emitted when checkbox state changes
|
|
61
69
|
*/
|
|
62
70
|
valueUpdated: import("@angular/core").OutputEmitterRef<boolean>;
|
|
71
|
+
/**
|
|
72
|
+
* Stop event propagation for activation events
|
|
73
|
+
* @defaultValue false
|
|
74
|
+
*/
|
|
75
|
+
stopPropagation: import("@angular/core").InputSignal<boolean>;
|
|
76
|
+
/**
|
|
77
|
+
* Event emitted on click
|
|
78
|
+
*/
|
|
79
|
+
clicked: import("@angular/core").OutputEmitterRef<MouseEvent>;
|
|
80
|
+
/**
|
|
81
|
+
* Event emitted on Enter keydown
|
|
82
|
+
*/
|
|
83
|
+
keyDownEnter: import("@angular/core").OutputEmitterRef<KeyboardEvent>;
|
|
84
|
+
/**
|
|
85
|
+
* Event emitted on Space keydown
|
|
86
|
+
*/
|
|
87
|
+
keyDownSpace: import("@angular/core").OutputEmitterRef<KeyboardEvent>;
|
|
88
|
+
/**
|
|
89
|
+
* Event emitted on activation (click or keyboard)
|
|
90
|
+
*/
|
|
91
|
+
triggered: import("@angular/core").OutputEmitterRef<void>;
|
|
63
92
|
private onControlChange;
|
|
64
93
|
private onControlTouch;
|
|
65
94
|
/**
|
|
@@ -86,6 +115,21 @@ export declare class CheckboxComponent implements ControlValueAccessor {
|
|
|
86
115
|
* Handles blur event
|
|
87
116
|
*/
|
|
88
117
|
handleBlur(): void;
|
|
118
|
+
/**
|
|
119
|
+
* @internal
|
|
120
|
+
* Handles click activation
|
|
121
|
+
*/
|
|
122
|
+
handleClick(event: MouseEvent): void;
|
|
123
|
+
/**
|
|
124
|
+
* @internal
|
|
125
|
+
* Handles Enter keydown activation
|
|
126
|
+
*/
|
|
127
|
+
handleKeyDownEnter(event: Event): void;
|
|
128
|
+
/**
|
|
129
|
+
* @internal
|
|
130
|
+
* Handles Space keydown activation
|
|
131
|
+
*/
|
|
132
|
+
handleKeyDownSpace(event: Event): void;
|
|
89
133
|
static ɵfac: i0.ɵɵFactoryDeclaration<CheckboxComponent, never>;
|
|
90
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<CheckboxComponent, "st-checkbox", 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": false; "isSignal": true; }; "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; }, { "value": "valueChange"; "valueUpdated": "valueUpdated"; "disabled": "disabledChange"; }, never, never, true, never>;
|
|
134
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<CheckboxComponent, "st-checkbox", 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": 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; }; }, { "value": "valueChange"; "valueUpdated": "valueUpdated"; "clicked": "clicked"; "keyDownEnter": "keyDownEnter"; "keyDownSpace": "keyDownSpace"; "triggered": "triggered"; "disabled": "disabledChange"; }, never, never, true, never>;
|
|
91
135
|
}
|
|
@@ -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 {};
|
|
@@ -76,6 +76,7 @@ export declare class DatepickerComponent implements ControlValueAccessor {
|
|
|
76
76
|
private isUpdatingRange;
|
|
77
77
|
/** Translation service for reactive language changes */
|
|
78
78
|
private readonly translationService;
|
|
79
|
+
private readonly formattingService;
|
|
79
80
|
/** Form change callback */
|
|
80
81
|
private onControlChange;
|
|
81
82
|
/** Form touch callback */
|
|
@@ -84,6 +85,16 @@ export declare class DatepickerComponent implements ControlValueAccessor {
|
|
|
84
85
|
datePickerOverlay: import("@angular/core").Signal<OverlayComponent | undefined>;
|
|
85
86
|
/** Label displayed above the fieldset legend */
|
|
86
87
|
label: import("@angular/core").InputSignal<string>;
|
|
88
|
+
/**
|
|
89
|
+
* Whether to show optional indicator
|
|
90
|
+
* @defaultValue false
|
|
91
|
+
*/
|
|
92
|
+
showOptional: import("@angular/core").InputSignal<boolean>;
|
|
93
|
+
/**
|
|
94
|
+
* Optional indicator text (translation key or literal)
|
|
95
|
+
* @defaultValue 'sdk.formFields.optional'
|
|
96
|
+
*/
|
|
97
|
+
optionalText: import("@angular/core").InputSignal<string>;
|
|
87
98
|
/**
|
|
88
99
|
* Picker mode
|
|
89
100
|
* @defaultValue 'single'
|
|
@@ -211,6 +222,8 @@ export declare class DatepickerComponent implements ControlValueAccessor {
|
|
|
211
222
|
endTimeDisplay: import("@angular/core").Signal<string>;
|
|
212
223
|
/** Keep internal state in sync when rangeValue input changes */
|
|
213
224
|
syncInputEff: import("@angular/core").EffectRef;
|
|
225
|
+
/** Keep internal state in sync when single value input changes */
|
|
226
|
+
syncSingleInputEff: import("@angular/core").EffectRef;
|
|
214
227
|
/** Sync external start/end time inputs into internal signals */
|
|
215
228
|
syncTimeInputsEff: import("@angular/core").EffectRef;
|
|
216
229
|
/** Exposed selected date value (ISO format) for template access */
|
|
@@ -319,5 +332,5 @@ export declare class DatepickerComponent implements ControlValueAccessor {
|
|
|
319
332
|
onStartTimeChange(ev: Event): void;
|
|
320
333
|
onEndTimeChange(ev: Event): void;
|
|
321
334
|
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>;
|
|
335
|
+
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
336
|
}
|
|
@@ -4,7 +4,14 @@ export declare class FormErrorsComponent {
|
|
|
4
4
|
parentForm: import("@angular/core").InputSignal<FormGroup<any>>;
|
|
5
5
|
formField: import("@angular/core").InputSignal<string>;
|
|
6
6
|
formControl: import("@angular/core").Signal<FormControl<any>>;
|
|
7
|
-
|
|
7
|
+
/**
|
|
8
|
+
* Returns the value of the first custom error on the current form control.
|
|
9
|
+
*
|
|
10
|
+
* This is intentionally a method (not a `computed()`) because `FormControl.errors`
|
|
11
|
+
* is a plain mutable object — not a signal — so a `computed()` cannot track when
|
|
12
|
+
* validation errors change and would return a stale cached value.
|
|
13
|
+
*/
|
|
14
|
+
customError(): string | null;
|
|
8
15
|
isRequired: import("@angular/core").InputSignal<string | undefined>;
|
|
9
16
|
isMinLength: import("@angular/core").InputSignal<string | undefined>;
|
|
10
17
|
isMaxLength: import("@angular/core").InputSignal<string | undefined>;
|
|
@@ -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';
|