@sixbell-telco/sdk 4.2.0 → 4.3.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 +81 -1
- package/README.md +98 -66
- package/_index.css +2 -1586
- package/components/accordion/accordion-item/accordion-item.component.d.ts +1 -1
- package/components/alert/README.md +27 -0
- package/components/alert/index.d.ts +5 -0
- package/components/alert/public-api.d.ts +1 -0
- package/components/alert/src/alert.component.d.ts +85 -0
- package/components/audio-player/audio-timeline/audio-timeline.component.d.ts +1 -1
- package/components/audio-player/button-play/button-play.component.d.ts +7 -7
- package/components/audio-player/src/audio-player.component.d.ts +2 -2
- package/components/audio-player/volume-control/volume-control.component.d.ts +1 -1
- package/components/avatar/README.md +1 -0
- package/components/avatar/src/avatar.component.d.ts +2 -2
- package/components/badge/src/badge.component.d.ts +4 -4
- package/components/button/README.md +5 -4
- package/components/button/src/button.component.d.ts +38 -16
- package/components/card/README.md +2 -0
- package/components/card/card-footer/card-footer.component.d.ts +37 -2
- package/components/card/card-section-group/card-section-group.component.d.ts +1 -1
- package/components/card/src/card.component.d.ts +6 -6
- package/components/countdown/src/countdown.component.d.ts +4 -4
- package/components/data-table/README.md +26 -0
- package/components/data-table/expandable/expandable.component.d.ts +4 -4
- package/components/data-table/sortable-header/sortable-header.component.d.ts +1 -1
- package/components/data-table/src/data-table.component.d.ts +15 -8
- package/components/data-table/sub-component-toggle/sub-component-toggle.component.d.ts +1 -1
- package/components/description-list/README.md +27 -0
- package/components/description-list/index.d.ts +5 -0
- package/components/description-list/public-api.d.ts +1 -0
- package/components/description-list/src/description-list.component.d.ts +90 -0
- package/components/dialog/README.md +10 -6
- package/components/dialog/dialog-actions/dialog-actions.component.d.ts +4 -0
- package/components/dialog/src/dialog.component.d.ts +27 -6
- package/components/dialog/src/fullscreen-block-scroll-strategy.d.ts +31 -0
- package/components/divider/src/divider.component.d.ts +1 -1
- package/components/dropdown/README.md +1 -1
- package/components/dropdown/dropdown-content/dropdown-content.component.d.ts +1 -1
- package/components/dropdown/dropdown-item/dropdown-item.component.d.ts +4 -4
- package/components/dropdown/dropdown-item-checkbox/dropdown-item-checkbox.component.d.ts +5 -5
- package/components/dropdown/dropdown-item-radio/dropdown-item-radio.component.d.ts +5 -5
- package/components/dropdown/dropdown-trigger/dropdown-trigger.component.d.ts +1 -1
- package/components/dropdown-menu/README.md +1 -1
- package/components/dropdown-menu/bar/dropdown-menu-bar/dropdown-menu-bar.component.d.ts +1 -1
- package/components/dropdown-menu/bar/dropdown-menu-bar-content/dropdown-menu-bar-content.component.d.ts +1 -1
- package/components/dropdown-menu/bar/dropdown-menu-bar-item/dropdown-menu-bar-item.component.d.ts +3 -3
- package/components/dropdown-menu/bar/dropdown-menu-bar-item-checkbox/dropdown-menu-bar-item-checkbox.component.d.ts +4 -4
- package/components/dropdown-menu/bar/dropdown-menu-bar-item-radio/dropdown-menu-bar-item-radio.component.d.ts +4 -4
- package/components/dropdown-menu/bar/dropdown-menu-bar-sub-trigger/dropdown-menu-bar-sub-trigger.component.d.ts +1 -1
- package/components/dropdown-menu/bar/dropdown-menu-bar-trigger/dropdown-menu-bar-trigger.component.d.ts +1 -1
- package/components/dropdown-menu/context/dropdown-context-menu-trigger/dropdown-context-menu-trigger.component.d.ts +1 -1
- package/components/dropdown-menu/dropdown-menu-chevron/dropdown-menu-chevron.component.d.ts +1 -1
- package/components/dropdown-menu/src/dropdown-menu-item/dropdown-menu-item.component.d.ts +3 -3
- package/components/dropdown-menu/src/dropdown-menu-sub-trigger/dropdown-menu-sub-trigger.component.d.ts +1 -1
- package/components/empty-state/README.md +40 -0
- package/components/empty-state/index.d.ts +5 -0
- package/components/empty-state/public-api.d.ts +1 -0
- package/components/empty-state/src/empty-state.component.d.ts +73 -0
- package/components/file-upload/file-dropzone/file-dropzone.component.d.ts +4 -4
- package/components/file-upload/file-uploader/file-uploader.component.d.ts +2 -2
- package/components/forms/checkbox/src/checkbox.component.d.ts +1 -1
- package/components/forms/combobox/README.md +1 -0
- package/components/forms/combobox/src/combobox.component.d.ts +21 -7
- package/components/forms/date-picker/src/date-picker.component.d.ts +16 -9
- package/components/forms/form-hint/README.md +29 -0
- package/components/forms/form-hint/index.d.ts +5 -0
- package/components/forms/form-hint/public-api.d.ts +1 -0
- package/components/forms/form-hint/src/form-hint.component.d.ts +38 -0
- package/components/forms/form-item/src/form-item.component.d.ts +45 -1
- package/components/forms/input/src/input.component.d.ts +15 -8
- package/components/forms/radio/src/radio.component.d.ts +1 -1
- package/components/forms/range/src/range.component.d.ts +18 -4
- package/components/forms/select/README.md +1 -0
- package/components/forms/select/src/select.component.d.ts +20 -5
- package/components/forms/switch/src/switch.component.d.ts +1 -1
- package/components/forms/textarea/src/textarea.component.d.ts +12 -5
- package/components/forms/toggle/src/toggle.component.d.ts +1 -1
- package/components/notification/src/notification.component.d.ts +1 -1
- package/components/overlay/README.md +1 -1
- package/components/overlay/overlay-trigger/overlay-trigger.component.d.ts +1 -1
- package/components/overlay/src/overlay.component.d.ts +1 -1
- package/components/paginator/components/pagination-item/pagination-item.component.d.ts +3 -3
- package/components/progress/src/progress.component.d.ts +1 -1
- package/components/segmented-button/README.md +57 -0
- package/components/segmented-button/index.d.ts +5 -0
- package/components/segmented-button/public-api.d.ts +1 -0
- package/components/segmented-button/src/segmented-button.component.d.ts +110 -0
- package/components/sonner/toaster/src/toaster.component.d.ts +3 -3
- package/components/tab/src/tab.component.d.ts +2 -2
- package/components/table/README.md +51 -3
- package/components/table/public-api.d.ts +1 -0
- package/components/table/src/table.component.d.ts +20 -13
- package/components/table/table-action/table-action.component.d.ts +14 -3
- package/components/table/table-actions/table-actions.component.d.ts +12 -1
- package/components/table/tokens/README.md +7 -0
- package/components/table/tokens/index.d.ts +5 -0
- package/components/table/tokens/public-api.d.ts +1 -0
- package/components/table/tokens/table-empty-state.d.ts +6 -0
- package/components/tooltip/README.md +22 -5
- package/components/tooltip/src/tooltip.component.d.ts +36 -4
- package/components/tree/README.md +73 -0
- package/components/tree/index.d.ts +5 -0
- package/components/tree/public-api.d.ts +1 -0
- package/components/tree/src/tree.component.d.ts +180 -0
- package/components/wizard/README.md +9 -0
- package/components/wizard/wizard-content/wizard-content.component.d.ts +1 -1
- package/components/wizard/wizard-wrapper/wizard-wrapper.component.d.ts +15 -6
- package/directives/auto-focus/src/auto-focus.directive.d.ts +1 -1
- package/directives/only-numbers/src/only-numbers.directive.d.ts +1 -1
- package/directives/truncate/README.md +49 -0
- package/directives/truncate/index.d.ts +5 -0
- package/directives/truncate/public-api.d.ts +1 -0
- package/directives/truncate/src/truncate-popover.component.d.ts +11 -0
- package/directives/truncate/src/truncate.directive.d.ts +96 -0
- package/fesm2022/sixbell-telco-sdk-components-accordion.mjs +2 -2
- package/fesm2022/sixbell-telco-sdk-components-accordion.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-components-alert.mjs +152 -0
- package/fesm2022/sixbell-telco-sdk-components-alert.mjs.map +1 -0
- package/fesm2022/sixbell-telco-sdk-components-audio-player.mjs +15 -15
- package/fesm2022/sixbell-telco-sdk-components-audio-player.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-components-avatar.mjs +4 -4
- package/fesm2022/sixbell-telco-sdk-components-avatar.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-components-badge.mjs +5 -5
- package/fesm2022/sixbell-telco-sdk-components-badge.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-components-button.mjs +53 -19
- package/fesm2022/sixbell-telco-sdk-components-button.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-components-card.mjs +61 -14
- package/fesm2022/sixbell-telco-sdk-components-card.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-components-countdown.mjs +5 -5
- package/fesm2022/sixbell-telco-sdk-components-countdown.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-components-data-table-sub-component-toggle.mjs +3 -3
- package/fesm2022/sixbell-telco-sdk-components-data-table-sub-component-toggle.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-components-data-table.mjs +34 -33
- package/fesm2022/sixbell-telco-sdk-components-data-table.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-components-description-list.mjs +200 -0
- package/fesm2022/sixbell-telco-sdk-components-description-list.mjs.map +1 -0
- package/fesm2022/sixbell-telco-sdk-components-dialog.mjs +128 -17
- package/fesm2022/sixbell-telco-sdk-components-dialog.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-components-divider.mjs +2 -2
- package/fesm2022/sixbell-telco-sdk-components-divider.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-components-dropdown-menu-bar.mjs +16 -16
- package/fesm2022/sixbell-telco-sdk-components-dropdown-menu-bar.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-components-dropdown-menu-context.mjs +2 -2
- package/fesm2022/sixbell-telco-sdk-components-dropdown-menu-context.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-components-dropdown-menu.mjs +6 -6
- package/fesm2022/sixbell-telco-sdk-components-dropdown-menu.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-components-dropdown.mjs +17 -17
- package/fesm2022/sixbell-telco-sdk-components-dropdown.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-components-dual-list.mjs +1 -1
- package/fesm2022/sixbell-telco-sdk-components-dual-list.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-components-empty-state.mjs +131 -0
- package/fesm2022/sixbell-telco-sdk-components-empty-state.mjs.map +1 -0
- package/fesm2022/sixbell-telco-sdk-components-file-upload.mjs +9 -9
- package/fesm2022/sixbell-telco-sdk-components-file-upload.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-components-forms-checkbox.mjs +2 -2
- package/fesm2022/sixbell-telco-sdk-components-forms-checkbox.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-components-forms-combobox.mjs +71 -25
- package/fesm2022/sixbell-telco-sdk-components-forms-combobox.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-components-forms-date-picker.mjs +23 -12
- package/fesm2022/sixbell-telco-sdk-components-forms-date-picker.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-components-forms-form-hint.mjs +81 -0
- package/fesm2022/sixbell-telco-sdk-components-forms-form-hint.mjs.map +1 -0
- package/fesm2022/sixbell-telco-sdk-components-forms-form-item.mjs +45 -3
- package/fesm2022/sixbell-telco-sdk-components-forms-form-item.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-components-forms-input.mjs +27 -13
- package/fesm2022/sixbell-telco-sdk-components-forms-input.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-components-forms-radio.mjs +2 -2
- package/fesm2022/sixbell-telco-sdk-components-forms-radio.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-components-forms-range.mjs +29 -7
- package/fesm2022/sixbell-telco-sdk-components-forms-range.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-components-forms-select.mjs +51 -15
- package/fesm2022/sixbell-telco-sdk-components-forms-select.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-components-forms-switch.mjs +2 -2
- package/fesm2022/sixbell-telco-sdk-components-forms-switch.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-components-forms-textarea.mjs +27 -22
- package/fesm2022/sixbell-telco-sdk-components-forms-textarea.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-components-forms-toggle.mjs +2 -2
- package/fesm2022/sixbell-telco-sdk-components-forms-toggle.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-components-notification.mjs +2 -2
- package/fesm2022/sixbell-telco-sdk-components-notification.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-components-overlay.mjs +3 -3
- package/fesm2022/sixbell-telco-sdk-components-overlay.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-components-paginator.mjs +4 -4
- package/fesm2022/sixbell-telco-sdk-components-paginator.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-components-progress.mjs +2 -2
- package/fesm2022/sixbell-telco-sdk-components-progress.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-components-segmented-button.mjs +329 -0
- package/fesm2022/sixbell-telco-sdk-components-segmented-button.mjs.map +1 -0
- package/fesm2022/sixbell-telco-sdk-components-sonner-toaster.mjs +4 -4
- package/fesm2022/sixbell-telco-sdk-components-sonner-toaster.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-components-sonner.mjs +4 -4
- package/fesm2022/sixbell-telco-sdk-components-sonner.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-components-tab.mjs +3 -3
- package/fesm2022/sixbell-telco-sdk-components-tab.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-components-table-tokens.mjs +14 -0
- package/fesm2022/sixbell-telco-sdk-components-table-tokens.mjs.map +1 -0
- package/fesm2022/sixbell-telco-sdk-components-table.mjs +63 -32
- package/fesm2022/sixbell-telco-sdk-components-table.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-components-tooltip.mjs +156 -25
- package/fesm2022/sixbell-telco-sdk-components-tooltip.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-components-tree.mjs +478 -0
- package/fesm2022/sixbell-telco-sdk-components-tree.mjs.map +1 -0
- package/fesm2022/sixbell-telco-sdk-components-wizard.mjs +18 -9
- package/fesm2022/sixbell-telco-sdk-components-wizard.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-directives-auto-focus.mjs +2 -2
- package/fesm2022/sixbell-telco-sdk-directives-auto-focus.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-directives-only-numbers.mjs +2 -2
- package/fesm2022/sixbell-telco-sdk-directives-only-numbers.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-directives-truncate.mjs +339 -0
- package/fesm2022/sixbell-telco-sdk-directives-truncate.mjs.map +1 -0
- package/fesm2022/sixbell-telco-sdk-layouts.mjs +43 -35
- package/fesm2022/sixbell-telco-sdk-layouts.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-utils-date.mjs +15 -2
- package/fesm2022/sixbell-telco-sdk-utils-date.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-utils-mfe.mjs +87 -2
- package/fesm2022/sixbell-telco-sdk-utils-mfe.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-utils-theme.mjs +234 -4
- package/fesm2022/sixbell-telco-sdk-utils-theme.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-utils-translation-testing.mjs +203 -0
- package/fesm2022/sixbell-telco-sdk-utils-translation-testing.mjs.map +1 -0
- package/fesm2022/sixbell-telco-sdk-utils-unsaved-changes.mjs +150 -0
- package/fesm2022/sixbell-telco-sdk-utils-unsaved-changes.mjs.map +1 -0
- package/i18n/sdk/en.json +224 -0
- package/i18n/sdk/es.json +224 -0
- package/i18n/sdk/pt.json +224 -0
- package/layouts/README.md +11 -10
- package/layouts/src/app-layout/app-layout.component.d.ts +11 -8
- package/layouts/src/layout.config.d.ts +1 -1
- package/layouts/src/navbar/navbar.component.d.ts +5 -5
- package/layouts/src/page-banner/page-banner.component.d.ts +6 -1
- package/layouts/src/side-menu/side-menu.component.d.ts +2 -2
- package/layouts/src/user-menu/user-menu.component.d.ts +5 -5
- package/package.json +51 -11
- package/src/_index.css +1616 -0
- package/utils/mfe/README.md +1 -0
- package/utils/mfe/src/hoist-property-rules.d.ts +13 -0
- package/utils/mfe/src/mfe-shadow-shell.component.d.ts +3 -0
- package/utils/theme/README.md +94 -1
- package/utils/theme/public-api.d.ts +2 -1
- package/utils/theme/src/models/theme.d.ts +32 -0
- package/utils/theme/src/overlay/theme-overlay.d.ts +33 -0
- package/utils/theme/src/providers/theme.provider.types.d.ts +7 -0
- package/utils/translation/README.md +61 -0
- package/utils/translation/testing/index.d.ts +5 -0
- package/utils/translation/testing/public-api.d.ts +2 -0
- package/utils/translation/testing/src/translation-testing.d.ts +96 -0
- package/utils/unsaved-changes/README.md +33 -0
- package/utils/unsaved-changes/index.d.ts +5 -0
- package/utils/unsaved-changes/public-api.d.ts +1 -0
- package/utils/unsaved-changes/src/unsaved-changes-dialog.component.d.ts +24 -0
- package/utils/unsaved-changes/src/unsaved-changes.d.ts +50 -0
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
/**
|
|
3
|
+
* Helper text for one form field. Inside `st-form-item` it is linked to the field's control through
|
|
4
|
+
* `aria-describedby`, so screen readers read it after the label.
|
|
5
|
+
*
|
|
6
|
+
* @example
|
|
7
|
+
* ```html
|
|
8
|
+
* <st-form-item>
|
|
9
|
+
* <st-input label="Code" formControlName="code" [parentForm]="form" />
|
|
10
|
+
* <st-form-hint>Uppercase letters and digits, up to 10 characters.</st-form-hint>
|
|
11
|
+
* <st-form-errors [parentForm]="form" formField="code" />
|
|
12
|
+
* </st-form-item>
|
|
13
|
+
* ```
|
|
14
|
+
*/
|
|
15
|
+
export declare class FormHintComponent {
|
|
16
|
+
private readonly item;
|
|
17
|
+
private readonly generatedId;
|
|
18
|
+
/** Id of the hint. A unique id is generated when omitted. */
|
|
19
|
+
id: import("@angular/core").InputSignal<string | null>;
|
|
20
|
+
/** @internal */
|
|
21
|
+
readonly resolvedId: import("@angular/core").Signal<string>;
|
|
22
|
+
constructor();
|
|
23
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<FormHintComponent, never>;
|
|
24
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<FormHintComponent, "st-form-hint", never, { "id": { "alias": "id"; "required": false; "isSignal": true; }; }, {}, never, ["*"], true, never>;
|
|
25
|
+
}
|
|
26
|
+
/**
|
|
27
|
+
* The "Fields marked with * are required" legend for a form that uses the required marker.
|
|
28
|
+
* Place it once, above the first field.
|
|
29
|
+
*/
|
|
30
|
+
export declare class FormRequiredLegendComponent {
|
|
31
|
+
private readonly translateLabel;
|
|
32
|
+
/** Translation key or literal text. Defaults to `sdk.formFields.requiredLegend`. */
|
|
33
|
+
textKey: import("@angular/core").InputSignal<string>;
|
|
34
|
+
/** @internal */
|
|
35
|
+
protected readonly text: import("@angular/core").Signal<string>;
|
|
36
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<FormRequiredLegendComponent, never>;
|
|
37
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<FormRequiredLegendComponent, "st-form-required-legend", never, { "textKey": { "alias": "textKey"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
38
|
+
}
|
|
@@ -1,5 +1,49 @@
|
|
|
1
|
+
import { Signal } from '@angular/core';
|
|
2
|
+
import { AbstractControl } from '@angular/forms';
|
|
1
3
|
import * as i0 from "@angular/core";
|
|
4
|
+
/** `booleanAttribute` that keeps `undefined`/`null` as "not set", for tri-state flags. */
|
|
5
|
+
export declare const optionalBooleanAttribute: (value: unknown) => boolean | undefined;
|
|
6
|
+
/**
|
|
7
|
+
* A layout wrapper for one form field: the control, its `st-form-hint` and its `st-form-errors`.
|
|
8
|
+
*
|
|
9
|
+
* @remarks
|
|
10
|
+
* It is also the field context: controls inside it read `required` from here, and every
|
|
11
|
+
* `st-form-hint` inside it is linked to the control through `aria-describedby`.
|
|
12
|
+
*/
|
|
2
13
|
export declare class FormItemComponent {
|
|
14
|
+
/**
|
|
15
|
+
* Mark the field as required. When not set, the control detects `Validators.required` on its form control.
|
|
16
|
+
*/
|
|
17
|
+
required: import("@angular/core").InputSignalWithTransform<boolean | undefined, unknown>;
|
|
18
|
+
private readonly hints;
|
|
19
|
+
/** Ids of the hints inside this item, space separated, or `null` when there are none. */
|
|
20
|
+
readonly describedBy: Signal<string | null>;
|
|
21
|
+
/** @internal Called by `st-form-hint`. */
|
|
22
|
+
registerHint(id: string): void;
|
|
23
|
+
/** @internal Called by `st-form-hint`. */
|
|
24
|
+
unregisterHint(id: string): void;
|
|
3
25
|
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>;
|
|
26
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<FormItemComponent, "st-form-item", never, { "required": { "alias": "required"; "required": false; "isSignal": true; }; }, {}, never, [":not(st-form-errors)", "st-form-errors"], true, never>;
|
|
5
27
|
}
|
|
28
|
+
/** Sources a form control passes to `injectFormFieldA11y`. */
|
|
29
|
+
export interface FormFieldA11ySource {
|
|
30
|
+
/** The control's own `required` input (`undefined` when not set). */
|
|
31
|
+
required: () => boolean | undefined;
|
|
32
|
+
/** The bound reactive form control, if any. */
|
|
33
|
+
control: () => AbstractControl | null | undefined;
|
|
34
|
+
/** A signal that changes when the control status changes, so validator changes are picked up. */
|
|
35
|
+
status?: () => unknown;
|
|
36
|
+
}
|
|
37
|
+
/** Required state and hint ids for a form control. */
|
|
38
|
+
export interface FormFieldA11y {
|
|
39
|
+
/** Whether the field shows the required marker and is announced as required. */
|
|
40
|
+
required: Signal<boolean>;
|
|
41
|
+
/** Value for the control's `aria-describedby`. */
|
|
42
|
+
describedBy: Signal<string | null>;
|
|
43
|
+
}
|
|
44
|
+
/**
|
|
45
|
+
* @internal
|
|
46
|
+
* Resolves the required state (explicit input, then the enclosing `st-form-item`, then `Validators.required`)
|
|
47
|
+
* and the hint ids for a form control. Call it in an injection context.
|
|
48
|
+
*/
|
|
49
|
+
export declare function injectFormFieldA11y(source: FormFieldA11ySource): FormFieldA11y;
|
|
@@ -56,12 +56,19 @@ export declare class InputComponent implements ControlValueAccessor {
|
|
|
56
56
|
* Whether to show optional indicator
|
|
57
57
|
* @defaultValue false
|
|
58
58
|
*/
|
|
59
|
-
showOptional: import("@angular/core").
|
|
59
|
+
showOptional: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
|
|
60
60
|
/**
|
|
61
61
|
* Optional indicator text (translation key or literal)
|
|
62
62
|
* @defaultValue 'sdk.formFields.optional'
|
|
63
63
|
*/
|
|
64
64
|
optionalText: import("@angular/core").InputSignal<string>;
|
|
65
|
+
/**
|
|
66
|
+
* Mark the field as required: shows the `*` marker and announces the field as required.
|
|
67
|
+
* When not set, the enclosing `st-form-item` `required`, then `Validators.required` on the bound control decide.
|
|
68
|
+
*/
|
|
69
|
+
required: import("@angular/core").InputSignalWithTransform<boolean | undefined, unknown>;
|
|
70
|
+
/** @internal Required state and hint ids from the enclosing `st-form-item`. */
|
|
71
|
+
protected readonly fieldA11y: import("@sixbell-telco/sdk/components/forms/form-item").FormFieldA11y;
|
|
65
72
|
/**
|
|
66
73
|
* HTML input type
|
|
67
74
|
* @defaultValue 'text'
|
|
@@ -79,7 +86,7 @@ export declare class InputComponent implements ControlValueAccessor {
|
|
|
79
86
|
* Show a built-in button that reveals or hides the value when `type` is `password`
|
|
80
87
|
* @defaultValue false
|
|
81
88
|
*/
|
|
82
|
-
passwordToggle: import("@angular/core").
|
|
89
|
+
passwordToggle: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
|
|
83
90
|
/**
|
|
84
91
|
* Input placeholder text
|
|
85
92
|
*/
|
|
@@ -88,18 +95,18 @@ export declare class InputComponent implements ControlValueAccessor {
|
|
|
88
95
|
* Whether the input is read-only
|
|
89
96
|
* @defaultValue false
|
|
90
97
|
*/
|
|
91
|
-
readonly: import("@angular/core").
|
|
92
|
-
focus: import("@angular/core").
|
|
98
|
+
readonly: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
|
|
99
|
+
focus: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
|
|
93
100
|
/**
|
|
94
101
|
* Whether to restrict input to numeric characters only
|
|
95
102
|
* @defaultValue false
|
|
96
103
|
*/
|
|
97
|
-
onlyNumbers: import("@angular/core").
|
|
104
|
+
onlyNumbers: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
|
|
98
105
|
/**
|
|
99
106
|
* Whether to use ghost (transparent) styling
|
|
100
107
|
* @defaultValue false
|
|
101
108
|
*/
|
|
102
|
-
ghost: import("@angular/core").
|
|
109
|
+
ghost: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
|
|
103
110
|
/**
|
|
104
111
|
* Two-way bindable input value
|
|
105
112
|
*/
|
|
@@ -123,7 +130,7 @@ export declare class InputComponent implements ControlValueAccessor {
|
|
|
123
130
|
* Stop event propagation for activation events
|
|
124
131
|
* @defaultValue false
|
|
125
132
|
*/
|
|
126
|
-
stopPropagation: import("@angular/core").
|
|
133
|
+
stopPropagation: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
|
|
127
134
|
/**
|
|
128
135
|
* Event emitted on Enter keydown
|
|
129
136
|
*/
|
|
@@ -234,6 +241,6 @@ export declare class InputComponent implements ControlValueAccessor {
|
|
|
234
241
|
*/
|
|
235
242
|
private setupDebounce;
|
|
236
243
|
static ɵfac: i0.ɵɵFactoryDeclaration<InputComponent, never>;
|
|
237
|
-
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; }; "inputId": { "alias": "inputId"; "required": false; "isSignal": true; }; "passwordToggle": { "alias": "passwordToggle"; "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; }; "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"; "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>;
|
|
244
|
+
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; }; "required": { "alias": "required"; "required": false; "isSignal": true; }; "type": { "alias": "type"; "required": false; "isSignal": true; }; "name": { "alias": "name"; "required": false; "isSignal": true; }; "inputId": { "alias": "inputId"; "required": false; "isSignal": true; }; "passwordToggle": { "alias": "passwordToggle"; "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; }; "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"; "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>;
|
|
238
245
|
}
|
|
239
246
|
export {};
|
|
@@ -86,7 +86,7 @@ export declare class RadioComponent implements ControlValueAccessor {
|
|
|
86
86
|
* Stop event propagation for activation events
|
|
87
87
|
* @defaultValue false
|
|
88
88
|
*/
|
|
89
|
-
stopPropagation: import("@angular/core").
|
|
89
|
+
stopPropagation: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
|
|
90
90
|
/**
|
|
91
91
|
* Event emitted on click
|
|
92
92
|
*/
|
|
@@ -55,12 +55,19 @@ export declare class RangeComponent implements ControlValueAccessor {
|
|
|
55
55
|
* Whether to show optional indicator
|
|
56
56
|
* @defaultValue false
|
|
57
57
|
*/
|
|
58
|
-
showOptional: import("@angular/core").
|
|
58
|
+
showOptional: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
|
|
59
59
|
/**
|
|
60
60
|
* Optional indicator text (translation key or literal)
|
|
61
61
|
* @defaultValue 'sdk.formFields.optional'
|
|
62
62
|
*/
|
|
63
63
|
optionalText: import("@angular/core").InputSignal<string>;
|
|
64
|
+
/**
|
|
65
|
+
* Mark the field as required: shows the `*` marker and announces the field as required.
|
|
66
|
+
* When not set, the enclosing `st-form-item` `required`, then `Validators.required` on the bound control decide.
|
|
67
|
+
*/
|
|
68
|
+
required: import("@angular/core").InputSignalWithTransform<boolean | undefined, unknown>;
|
|
69
|
+
/** @internal Required state and hint ids from the enclosing `st-form-item`. */
|
|
70
|
+
protected readonly fieldA11y: import("@sixbell-telco/sdk/components/forms/form-item").FormFieldA11y;
|
|
64
71
|
/**
|
|
65
72
|
* HTML name attribute for the range slider
|
|
66
73
|
*/
|
|
@@ -73,6 +80,13 @@ export declare class RangeComponent implements ControlValueAccessor {
|
|
|
73
80
|
private readonly generatedId;
|
|
74
81
|
/** @internal Id applied to the focusable control and referenced by its label */
|
|
75
82
|
protected readonly resolvedId: import("@angular/core").Signal<string>;
|
|
83
|
+
private readonly translateLabel;
|
|
84
|
+
/** @internal Id of the visually hidden "Required" note; `aria-required` is not allowed on the slider role. */
|
|
85
|
+
protected readonly requiredNoteId: import("@angular/core").Signal<string>;
|
|
86
|
+
/** @internal */
|
|
87
|
+
protected readonly requiredNote: import("@angular/core").Signal<string>;
|
|
88
|
+
/** @internal Hint ids plus the required note, for the slider's `aria-describedby`. */
|
|
89
|
+
protected readonly describedBy: import("@angular/core").Signal<string | null>;
|
|
76
90
|
/**
|
|
77
91
|
* Minimum value of the range slider
|
|
78
92
|
* @defaultValue 0
|
|
@@ -87,7 +101,7 @@ export declare class RangeComponent implements ControlValueAccessor {
|
|
|
87
101
|
* Whether to show min/max values
|
|
88
102
|
* @defaultValue true
|
|
89
103
|
*/
|
|
90
|
-
showRange: import("@angular/core").
|
|
104
|
+
showRange: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
|
|
91
105
|
/**
|
|
92
106
|
* Number of steps to display (0 for continuous)
|
|
93
107
|
* @defaultValue 0
|
|
@@ -135,7 +149,7 @@ export declare class RangeComponent implements ControlValueAccessor {
|
|
|
135
149
|
* Stop event propagation for activation events
|
|
136
150
|
* @defaultValue false
|
|
137
151
|
*/
|
|
138
|
-
stopPropagation: import("@angular/core").
|
|
152
|
+
stopPropagation: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
|
|
139
153
|
/**
|
|
140
154
|
* Event emitted on click
|
|
141
155
|
*/
|
|
@@ -173,5 +187,5 @@ export declare class RangeComponent implements ControlValueAccessor {
|
|
|
173
187
|
*/
|
|
174
188
|
handlePointerDown(event: PointerEvent): void;
|
|
175
189
|
static ɵfac: i0.ɵɵFactoryDeclaration<RangeComponent, never>;
|
|
176
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<RangeComponent, "st-range", 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; }; "name": { "alias": "name"; "required": false; "isSignal": true; }; "inputId": { "alias": "inputId"; "required": false; "isSignal": true; }; "min": { "alias": "min"; "required": false; "isSignal": true; }; "max": { "alias": "max"; "required": false; "isSignal": true; }; "showRange": { "alias": "showRange"; "required": false; "isSignal": true; }; "steps": { "alias": "steps"; "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; }; }, { "value": "valueChange"; "disabled": "disabledChange"; "valueUpdated": "valueUpdated"; "clicked": "clicked"; "pointerDown": "pointerDown"; "triggered": "triggered"; }, never, never, true, never>;
|
|
190
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<RangeComponent, "st-range", 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; }; "required": { "alias": "required"; "required": false; "isSignal": true; }; "name": { "alias": "name"; "required": false; "isSignal": true; }; "inputId": { "alias": "inputId"; "required": false; "isSignal": true; }; "min": { "alias": "min"; "required": false; "isSignal": true; }; "max": { "alias": "max"; "required": false; "isSignal": true; }; "showRange": { "alias": "showRange"; "required": false; "isSignal": true; }; "steps": { "alias": "steps"; "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; }; }, { "value": "valueChange"; "disabled": "disabledChange"; "valueUpdated": "valueUpdated"; "clicked": "clicked"; "pointerDown": "pointerDown"; "triggered": "triggered"; }, never, never, true, never>;
|
|
177
191
|
}
|
|
@@ -16,3 +16,4 @@ List picker. Clear is a sibling of the trigger; the chevron is a custom icon tha
|
|
|
16
16
|
|
|
17
17
|
- `allowClear` defaults to `true`. Overlay animation follows CDK position with a 4px gap.
|
|
18
18
|
- Do not nest the clear button inside the trigger.
|
|
19
|
+
- Async options: a value written through the form (`writeValue`) before its option exists is kept and resolved to the matching option, with its label, as soon as one arrives (first load or a replaced list), without calling `onChange` (the control stays pristine). A user selection, clear or `writeValue(null)` replaces it. While no option matches the select shows the placeholder and its value is `null`; the form control still holds the written value.
|
|
@@ -64,17 +64,24 @@ export declare class SelectComponent implements ControlValueAccessor {
|
|
|
64
64
|
* Whether to show optional indicator
|
|
65
65
|
* @defaultValue false
|
|
66
66
|
*/
|
|
67
|
-
showOptional: import("@angular/core").
|
|
67
|
+
showOptional: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
|
|
68
68
|
/**
|
|
69
69
|
* Optional indicator text (translation key or literal)
|
|
70
70
|
* @defaultValue 'sdk.formFields.optional'
|
|
71
71
|
*/
|
|
72
72
|
optionalText: import("@angular/core").InputSignal<string>;
|
|
73
|
+
/**
|
|
74
|
+
* Mark the field as required: shows the `*` marker and announces the field as required.
|
|
75
|
+
* When not set, the enclosing `st-form-item` `required`, then `Validators.required` on the bound control decide.
|
|
76
|
+
*/
|
|
77
|
+
required: import("@angular/core").InputSignalWithTransform<boolean | undefined, unknown>;
|
|
78
|
+
/** @internal Required state and hint ids from the enclosing `st-form-item`. */
|
|
79
|
+
protected readonly fieldA11y: import("@sixbell-telco/sdk/components/forms/form-item").FormFieldA11y;
|
|
73
80
|
/**
|
|
74
81
|
* Whether to use ghost (transparent) styling
|
|
75
82
|
* @defaultValue false
|
|
76
83
|
*/
|
|
77
|
-
ghost: import("@angular/core").
|
|
84
|
+
ghost: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
|
|
78
85
|
/**
|
|
79
86
|
* HTML name attribute for the select
|
|
80
87
|
*/
|
|
@@ -117,7 +124,7 @@ export declare class SelectComponent implements ControlValueAccessor {
|
|
|
117
124
|
* Whether to show a clear button next to the selected value
|
|
118
125
|
* @default true
|
|
119
126
|
*/
|
|
120
|
-
allowClear: import("@angular/core").
|
|
127
|
+
allowClear: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
|
|
121
128
|
/**
|
|
122
129
|
* Parent form group for reactive forms
|
|
123
130
|
*/
|
|
@@ -143,7 +150,7 @@ export declare class SelectComponent implements ControlValueAccessor {
|
|
|
143
150
|
* Stop event propagation for activation events
|
|
144
151
|
* @defaultValue false
|
|
145
152
|
*/
|
|
146
|
-
stopPropagation: import("@angular/core").
|
|
153
|
+
stopPropagation: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
|
|
147
154
|
/**
|
|
148
155
|
* Event emitted on click
|
|
149
156
|
*/
|
|
@@ -221,6 +228,8 @@ export declare class SelectComponent implements ControlValueAccessor {
|
|
|
221
228
|
private onChange;
|
|
222
229
|
/** Callback function for touch events */
|
|
223
230
|
private onTouched;
|
|
231
|
+
/** Value written through the accessor while no options were bound yet */
|
|
232
|
+
private pendingValue;
|
|
224
233
|
/**
|
|
225
234
|
* Whether the overlay is currently open or in the process of opening/closing
|
|
226
235
|
* @returns True if overlay is visible or animating
|
|
@@ -285,6 +294,12 @@ export declare class SelectComponent implements ControlValueAccessor {
|
|
|
285
294
|
* @param value - The new value to set
|
|
286
295
|
*/
|
|
287
296
|
writeValue(value: any): void;
|
|
297
|
+
/**
|
|
298
|
+
* Resolves a value written before its option existed once the options arrive.
|
|
299
|
+
* Never calls onChange: the form already holds the value.
|
|
300
|
+
*/
|
|
301
|
+
private readonly pendingValueEffect;
|
|
302
|
+
private hasOption;
|
|
288
303
|
/**
|
|
289
304
|
* Registers a callback function to be called when the value changes
|
|
290
305
|
* @param fn - The callback function
|
|
@@ -410,6 +425,6 @@ export declare class SelectComponent implements ControlValueAccessor {
|
|
|
410
425
|
*/
|
|
411
426
|
private updateActiveOptionVisually;
|
|
412
427
|
static ɵfac: i0.ɵɵFactoryDeclaration<SelectComponent, never>;
|
|
413
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<SelectComponent, "st-select", 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; }; "inputId": { "alias": "inputId"; "required": false; "isSignal": true; }; "placeholder": { "alias": "placeholder"; "required": false; "isSignal": true; }; "label": { "alias": "label"; "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; }; "allowClear": { "alias": "allowClear"; "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; }; }, { "value": "valueChange"; "disabled": "disabledChange"; "blurred": "blurred"; "valueUpdated": "valueUpdated"; "clicked": "clicked"; "keyDownEnter": "keyDownEnter"; "keyDownSpace": "keyDownSpace"; "triggered": "triggered"; }, never, ["*"], true, never>;
|
|
428
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<SelectComponent, "st-select", 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; }; "required": { "alias": "required"; "required": false; "isSignal": true; }; "ghost": { "alias": "ghost"; "required": false; "isSignal": true; }; "name": { "alias": "name"; "required": false; "isSignal": true; }; "inputId": { "alias": "inputId"; "required": false; "isSignal": true; }; "placeholder": { "alias": "placeholder"; "required": false; "isSignal": true; }; "label": { "alias": "label"; "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; }; "allowClear": { "alias": "allowClear"; "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; }; }, { "value": "valueChange"; "disabled": "disabledChange"; "blurred": "blurred"; "valueUpdated": "valueUpdated"; "clicked": "clicked"; "keyDownEnter": "keyDownEnter"; "keyDownSpace": "keyDownSpace"; "triggered": "triggered"; }, never, ["*"], true, never>;
|
|
414
429
|
}
|
|
415
430
|
export {};
|
|
@@ -71,7 +71,7 @@ export declare class SwitchComponent implements ControlValueAccessor {
|
|
|
71
71
|
* Stop event propagation for activation events
|
|
72
72
|
* @defaultValue false
|
|
73
73
|
*/
|
|
74
|
-
stopPropagation: import("@angular/core").
|
|
74
|
+
stopPropagation: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
|
|
75
75
|
/**
|
|
76
76
|
* Event emitted on click
|
|
77
77
|
*/
|
|
@@ -52,7 +52,7 @@ export declare class TextareaComponent {
|
|
|
52
52
|
* Whether to use ghost (transparent) styling
|
|
53
53
|
* @defaultValue false
|
|
54
54
|
*/
|
|
55
|
-
ghost: import("@angular/core").
|
|
55
|
+
ghost: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
|
|
56
56
|
/**
|
|
57
57
|
* Label displayed above the textarea
|
|
58
58
|
*/
|
|
@@ -61,12 +61,19 @@ export declare class TextareaComponent {
|
|
|
61
61
|
* Whether to show optional indicator
|
|
62
62
|
* @defaultValue false
|
|
63
63
|
*/
|
|
64
|
-
showOptional: import("@angular/core").
|
|
64
|
+
showOptional: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
|
|
65
65
|
/**
|
|
66
66
|
* Optional indicator text (translation key or literal)
|
|
67
67
|
* @defaultValue 'sdk.formFields.optional'
|
|
68
68
|
*/
|
|
69
69
|
optionalText: import("@angular/core").InputSignal<string>;
|
|
70
|
+
/**
|
|
71
|
+
* Mark the field as required: shows the `*` marker and announces the field as required.
|
|
72
|
+
* When not set, the enclosing `st-form-item` `required`, then `Validators.required` on the bound control decide.
|
|
73
|
+
*/
|
|
74
|
+
required: import("@angular/core").InputSignalWithTransform<boolean | undefined, unknown>;
|
|
75
|
+
/** @internal Required state and hint ids from the enclosing `st-form-item`. */
|
|
76
|
+
protected readonly fieldA11y: import("@sixbell-telco/sdk/components/forms/form-item").FormFieldA11y;
|
|
70
77
|
/**
|
|
71
78
|
* HTML name attribute for the textarea
|
|
72
79
|
*/
|
|
@@ -92,7 +99,7 @@ export declare class TextareaComponent {
|
|
|
92
99
|
* Whether the textarea is readonly
|
|
93
100
|
* @defaultValue false
|
|
94
101
|
*/
|
|
95
|
-
readonly: import("@angular/core").
|
|
102
|
+
readonly: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
|
|
96
103
|
/**
|
|
97
104
|
* Whether the textarea is disabled
|
|
98
105
|
* @defaultValue false
|
|
@@ -139,7 +146,7 @@ export declare class TextareaComponent {
|
|
|
139
146
|
* Stop event propagation for activation events
|
|
140
147
|
* @defaultValue false
|
|
141
148
|
*/
|
|
142
|
-
stopPropagation: import("@angular/core").
|
|
149
|
+
stopPropagation: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
|
|
143
150
|
/**
|
|
144
151
|
* Event emitted on Enter keydown
|
|
145
152
|
*/
|
|
@@ -252,5 +259,5 @@ export declare class TextareaComponent {
|
|
|
252
259
|
*/
|
|
253
260
|
private setupDebounce;
|
|
254
261
|
static ɵfac: i0.ɵɵFactoryDeclaration<TextareaComponent, never>;
|
|
255
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<TextareaComponent, "st-textarea", never, { "variant": { "alias": "variant"; "required": false; "isSignal": true; }; "size": { "alias": "size"; "required": false; "isSignal": true; }; "ghost": { "alias": "ghost"; "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; }; "name": { "alias": "name"; "required": false; "isSignal": true; }; "inputId": { "alias": "inputId"; "required": false; "isSignal": true; }; "placeholder": { "alias": "placeholder"; "required": false; "isSignal": true; }; "rows": { "alias": "rows"; "required": false; "isSignal": true; }; "readonly": { "alias": "readonly"; "required": false; "isSignal": true; }; "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; "value": { "alias": "value"; "required": false; "isSignal": true; }; "maxCharacters": { "alias": "maxCharacters"; "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; }; "debounceTime": { "alias": "debounceTime"; "required": false; "isSignal": true; }; }, { "disabled": "disabledChange"; "blurred": "blurred"; "value": "valueChange"; "keyDownEnter": "keyDownEnter"; "triggered": "triggered"; "valueDebounced": "valueDebounced"; }, never, ["*"], true, never>;
|
|
262
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<TextareaComponent, "st-textarea", never, { "variant": { "alias": "variant"; "required": false; "isSignal": true; }; "size": { "alias": "size"; "required": false; "isSignal": true; }; "ghost": { "alias": "ghost"; "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; }; "required": { "alias": "required"; "required": false; "isSignal": true; }; "name": { "alias": "name"; "required": false; "isSignal": true; }; "inputId": { "alias": "inputId"; "required": false; "isSignal": true; }; "placeholder": { "alias": "placeholder"; "required": false; "isSignal": true; }; "rows": { "alias": "rows"; "required": false; "isSignal": true; }; "readonly": { "alias": "readonly"; "required": false; "isSignal": true; }; "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; "value": { "alias": "value"; "required": false; "isSignal": true; }; "maxCharacters": { "alias": "maxCharacters"; "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; }; "debounceTime": { "alias": "debounceTime"; "required": false; "isSignal": true; }; }, { "disabled": "disabledChange"; "blurred": "blurred"; "value": "valueChange"; "keyDownEnter": "keyDownEnter"; "triggered": "triggered"; "valueDebounced": "valueDebounced"; }, never, ["*"], true, never>;
|
|
256
263
|
}
|
|
@@ -29,7 +29,7 @@ export declare class ToggleComponent {
|
|
|
29
29
|
setDisabledState(isDisabled: boolean): void;
|
|
30
30
|
handleToggle(): void;
|
|
31
31
|
valueUpdated: import("@angular/core").OutputEmitterRef<boolean>;
|
|
32
|
-
stopPropagation: import("@angular/core").
|
|
32
|
+
stopPropagation: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
|
|
33
33
|
clicked: import("@angular/core").OutputEmitterRef<MouseEvent>;
|
|
34
34
|
keyDownEnter: import("@angular/core").OutputEmitterRef<KeyboardEvent>;
|
|
35
35
|
keyDownSpace: import("@angular/core").OutputEmitterRef<KeyboardEvent>;
|
|
@@ -19,7 +19,7 @@ export declare class NotificationComponent {
|
|
|
19
19
|
size: import("@angular/core").InputSignal<"auto" | undefined>;
|
|
20
20
|
icon: import("@angular/core").InputSignal<string>;
|
|
21
21
|
status: import("@angular/core").InputSignal<NotificationStatus>;
|
|
22
|
-
disabled: import("@angular/core").
|
|
22
|
+
disabled: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
|
|
23
23
|
/**
|
|
24
24
|
* Accessible name of the button. Defaults to `sdk.notification.label`, or `sdk.notification.unseen` while `status` is `'unseen'`.
|
|
25
25
|
*/
|
|
@@ -13,7 +13,7 @@ match the trigger.
|
|
|
13
13
|
```html
|
|
14
14
|
<st-overlay>
|
|
15
15
|
<st-overlay-trigger>
|
|
16
|
-
<st-button>
|
|
16
|
+
<st-button variant="tertiary" [outline]="true">Show details</st-button>
|
|
17
17
|
</st-overlay-trigger>
|
|
18
18
|
<st-overlay-content>Overlay content</st-overlay-content>
|
|
19
19
|
</st-overlay>
|
|
@@ -36,7 +36,7 @@ export declare class OverlayTriggerComponent {
|
|
|
36
36
|
* Stop event propagation for activation events
|
|
37
37
|
* @defaultValue false
|
|
38
38
|
*/
|
|
39
|
-
stopPropagation: import("@angular/core").
|
|
39
|
+
stopPropagation: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
|
|
40
40
|
/**
|
|
41
41
|
* Tab index for the trigger wrapper
|
|
42
42
|
* @defaultValue -1
|
|
@@ -84,7 +84,7 @@ export declare class OverlayComponent {
|
|
|
84
84
|
/** Fallback positions configuration */
|
|
85
85
|
fallbacks: import("@angular/core").InputSignal<OverlayFallbackPositions>;
|
|
86
86
|
/** Whether to sync the overlay content width with the trigger width */
|
|
87
|
-
syncWidth: import("@angular/core").
|
|
87
|
+
syncWidth: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
|
|
88
88
|
/** Internal signal to track overlay state */
|
|
89
89
|
readonly _isOpen: import("@angular/core").WritableSignal<boolean>;
|
|
90
90
|
/** Internal signal to keep the portal rendered during exit animation */
|
|
@@ -70,17 +70,17 @@ export declare class PaginationItemComponent {
|
|
|
70
70
|
* Active state styling
|
|
71
71
|
* @defaultValue false
|
|
72
72
|
*/
|
|
73
|
-
active: import("@angular/core").
|
|
73
|
+
active: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
|
|
74
74
|
/**
|
|
75
75
|
* Disabled state styling
|
|
76
76
|
* @defaultValue false
|
|
77
77
|
*/
|
|
78
|
-
disabled: import("@angular/core").
|
|
78
|
+
disabled: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
|
|
79
79
|
/**
|
|
80
80
|
* Stop event propagation for activation events
|
|
81
81
|
* @defaultValue false
|
|
82
82
|
*/
|
|
83
|
-
stopPropagation: import("@angular/core").
|
|
83
|
+
stopPropagation: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
|
|
84
84
|
/**
|
|
85
85
|
* Accessible name forwarded to the inner `<button>` as `aria-label`.
|
|
86
86
|
* Required for the `icon` and `dots` variants, which have no visible text.
|
|
@@ -58,7 +58,7 @@ export declare class ProgressComponent {
|
|
|
58
58
|
* Enable indeterminate animation
|
|
59
59
|
* @defaultValue false
|
|
60
60
|
*/
|
|
61
|
-
indeterminate: import("@angular/core").
|
|
61
|
+
indeterminate: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
|
|
62
62
|
/**
|
|
63
63
|
* Position of progress value label
|
|
64
64
|
* @defaultValue 'none'
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
# Segmented Button
|
|
2
|
+
|
|
3
|
+
Import: `@sixbell-telco/sdk/components/segmented-button`
|
|
4
|
+
|
|
5
|
+
Selector: `st-segmented-button`
|
|
6
|
+
|
|
7
|
+
Single-choice control styled as a compact button bar, for picking a value such
|
|
8
|
+
as a period, an export format or a view mode.
|
|
9
|
+
|
|
10
|
+
## Usage
|
|
11
|
+
|
|
12
|
+
```html
|
|
13
|
+
<st-segmented-button ariaLabel="Period" [options]="periods" [(value)]="period" />
|
|
14
|
+
|
|
15
|
+
<st-segmented-button ariaLabel="Format" variant="primary" fullWidth [options]="formats" formControlName="format" />
|
|
16
|
+
```
|
|
17
|
+
|
|
18
|
+
```ts
|
|
19
|
+
periods: SegmentedButtonOption[] = [
|
|
20
|
+
{ value: 'day', label: 'Day' },
|
|
21
|
+
{ value: 'month', label: 'Month' },
|
|
22
|
+
{ value: 'list', icon: heroListBullet, ariaLabel: 'List' },
|
|
23
|
+
];
|
|
24
|
+
```
|
|
25
|
+
|
|
26
|
+
| Input | Default | Purpose |
|
|
27
|
+
| ---------------- | ------- | ------------------------------------------------------------- |
|
|
28
|
+
| `options` | `[]` | `{ value, label?, icon?, ariaLabel?, disabled? }` per segment |
|
|
29
|
+
| `value` (model) | `null` | Selected value, two-way with `[(value)]` |
|
|
30
|
+
| `variant` | `base` | Selected segment color (`primary`, `secondary`, …) |
|
|
31
|
+
| `size` | `md` | `xs`–`xl`, same scale as `st-button` |
|
|
32
|
+
| `fullWidth` | `false` | Stretch to the parent; segments share the width |
|
|
33
|
+
| `disabled` | `false` | Disable every segment |
|
|
34
|
+
| `ariaLabel` | `''` | Accessible name of the group |
|
|
35
|
+
| `ariaLabelledby` | `''` | Id of a visible label naming the group |
|
|
36
|
+
| `class` | `''` | Extra classes merged onto the track |
|
|
37
|
+
|
|
38
|
+
Implements `ControlValueAccessor` (`formControlName`, `formControl`, `ngModel`),
|
|
39
|
+
including `disable()`; the control is marked touched when focus leaves the group.
|
|
40
|
+
|
|
41
|
+
## Accessibility
|
|
42
|
+
|
|
43
|
+
- WAI-ARIA APG radio group: the host is `role="radiogroup"`, each segment is a
|
|
44
|
+
native `button` with `role="radio"` and `aria-checked`.
|
|
45
|
+
- One tab stop (roving tabindex): the checked segment, or the first enabled one.
|
|
46
|
+
- Arrow Right/Down and Left/Up move focus and select, wrapping and skipping
|
|
47
|
+
disabled segments (Left/Right flip in RTL). Home/End go to the first/last
|
|
48
|
+
segment. Space and Enter select the focused segment.
|
|
49
|
+
- Always name the group (`ariaLabel` or `ariaLabelledby`). Icon-only segments
|
|
50
|
+
need their own `ariaLabel`; icons are `aria-hidden`.
|
|
51
|
+
|
|
52
|
+
## When to use something else
|
|
53
|
+
|
|
54
|
+
- `st-tab`: switches between content panels (tablist semantics), not a form value.
|
|
55
|
+
- `st-radio`: long or descriptive choices, or more than about five options.
|
|
56
|
+
- `st-toggle` / `st-switch`: a single on/off value.
|
|
57
|
+
- DaisyUI `join` only groups buttons visually; it has no selection or keyboard model.
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './src/segmented-button.component';
|