@sixbell-telco/sdk 4.1.2 → 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 +102 -1
- package/README.md +98 -66
- package/_index.css +2 -1498
- 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 +29 -7
- package/components/forms/date-picker/src/date-picker.component.d.ts +21 -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/README.md +2 -0
- package/components/forms/input/src/input.component.d.ts +41 -7
- package/components/forms/radio/src/radio.component.d.ts +1 -1
- package/components/forms/range/src/range.component.d.ts +26 -4
- package/components/forms/select/README.md +1 -0
- package/components/forms/select/src/select.component.d.ts +28 -5
- package/components/forms/switch/src/switch.component.d.ts +1 -1
- package/components/forms/textarea/src/textarea.component.d.ts +20 -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 +80 -25
- package/fesm2022/sixbell-telco-sdk-components-forms-combobox.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-components-forms-date-picker.mjs +28 -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 +62 -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 +38 -7
- package/fesm2022/sixbell-telco-sdk-components-forms-range.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-components-forms-select.mjs +60 -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 +36 -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 +242 -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 +63 -23
- 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 @@
|
|
|
1
|
+
export * from './src/form-hint.component';
|
|
@@ -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;
|
|
@@ -16,3 +16,5 @@ Text field. Default `variant` is `base`.
|
|
|
16
16
|
|
|
17
17
|
- Supports `parentForm` / `formControlName`, `onlyNumbers`, `ghost`, `debounceTime`.
|
|
18
18
|
- Prefer `(triggered)` instead of the old `(enterPressed)`.
|
|
19
|
+
- `label` names the inner `<input>` through a generated id; pass `inputId` when you need a known id.
|
|
20
|
+
- `passwordToggle` on `type="password"` adds a reveal button named from `sdk.input.showPassword` / `sdk.input.hidePassword`.
|
|
@@ -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'
|
|
@@ -71,6 +78,15 @@ export declare class InputComponent implements ControlValueAccessor {
|
|
|
71
78
|
* HTML name attribute for the input
|
|
72
79
|
*/
|
|
73
80
|
name: import("@angular/core").InputSignal<string | null>;
|
|
81
|
+
/**
|
|
82
|
+
* Id of the inner `<input>`, used by its label. A unique id is generated when omitted.
|
|
83
|
+
*/
|
|
84
|
+
inputId: import("@angular/core").InputSignal<string | null>;
|
|
85
|
+
/**
|
|
86
|
+
* Show a built-in button that reveals or hides the value when `type` is `password`
|
|
87
|
+
* @defaultValue false
|
|
88
|
+
*/
|
|
89
|
+
passwordToggle: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
|
|
74
90
|
/**
|
|
75
91
|
* Input placeholder text
|
|
76
92
|
*/
|
|
@@ -79,18 +95,18 @@ export declare class InputComponent implements ControlValueAccessor {
|
|
|
79
95
|
* Whether the input is read-only
|
|
80
96
|
* @defaultValue false
|
|
81
97
|
*/
|
|
82
|
-
readonly: import("@angular/core").
|
|
83
|
-
focus: import("@angular/core").
|
|
98
|
+
readonly: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
|
|
99
|
+
focus: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
|
|
84
100
|
/**
|
|
85
101
|
* Whether to restrict input to numeric characters only
|
|
86
102
|
* @defaultValue false
|
|
87
103
|
*/
|
|
88
|
-
onlyNumbers: import("@angular/core").
|
|
104
|
+
onlyNumbers: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
|
|
89
105
|
/**
|
|
90
106
|
* Whether to use ghost (transparent) styling
|
|
91
107
|
* @defaultValue false
|
|
92
108
|
*/
|
|
93
|
-
ghost: import("@angular/core").
|
|
109
|
+
ghost: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
|
|
94
110
|
/**
|
|
95
111
|
* Two-way bindable input value
|
|
96
112
|
*/
|
|
@@ -114,7 +130,7 @@ export declare class InputComponent implements ControlValueAccessor {
|
|
|
114
130
|
* Stop event propagation for activation events
|
|
115
131
|
* @defaultValue false
|
|
116
132
|
*/
|
|
117
|
-
stopPropagation: import("@angular/core").
|
|
133
|
+
stopPropagation: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
|
|
118
134
|
/**
|
|
119
135
|
* Event emitted on Enter keydown
|
|
120
136
|
*/
|
|
@@ -144,7 +160,25 @@ export declare class InputComponent implements ControlValueAccessor {
|
|
|
144
160
|
private debounceAction$;
|
|
145
161
|
private debounceTimeEffect;
|
|
146
162
|
private value$;
|
|
163
|
+
private readonly generatedId;
|
|
164
|
+
private readonly translateLabel;
|
|
165
|
+
/** @internal Whether the password value is currently shown as plain text */
|
|
166
|
+
protected readonly passwordVisible: import("@angular/core").WritableSignal<boolean>;
|
|
167
|
+
/** @internal Id applied to the inner input and referenced by its label */
|
|
168
|
+
protected readonly resolvedId: import("@angular/core").Signal<string>;
|
|
169
|
+
/** @internal Whether the built-in password reveal button is rendered */
|
|
170
|
+
protected readonly showPasswordToggle: import("@angular/core").Signal<boolean>;
|
|
171
|
+
/** @internal Native type applied to the inner input */
|
|
172
|
+
protected readonly nativeType: import("@angular/core").Signal<HTMLNativeInputType>;
|
|
173
|
+
/** @internal Name of the icon-only password reveal button */
|
|
174
|
+
protected readonly passwordToggleLabel: import("@angular/core").Signal<string>;
|
|
175
|
+
/** @internal */
|
|
176
|
+
protected readonly iconShowPassword = "<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 24 24\" fill=\"currentColor\"><path d=\"M12 6a9.77 9.77 0 0 1 8.82 5.5C19.17 14.87 15.79 17 12 17s-7.17-2.13-8.82-5.5A9.77 9.77 0 0 1 12 6m0-2C7 4 2.73 7.11 1 11.5C2.73 15.89 7 19 12 19s9.27-3.11 11-7.5C21.27 7.11 17 4 12 4zm0 5a2.5 2.5 0 0 1 0 5a2.5 2.5 0 0 1 0-5m0-2c-2.48 0-4.5 2.02-4.5 4.5S9.52 16 12 16s4.5-2.02 4.5-4.5S14.48 7 12 7z\"></path></svg>";
|
|
177
|
+
/** @internal */
|
|
178
|
+
protected readonly iconHidePassword = "<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 24 24\" fill=\"currentColor\"><path d=\"M12 6a9.77 9.77 0 0 1 8.82 5.5a9.647 9.647 0 0 1-2.41 3.12l1.41 1.41c1.39-1.23 2.49-2.77 3.18-4.53C21.27 7.11 17 4 12 4c-1.27 0-2.49.2-3.64.57l1.65 1.65C10.66 6.09 11.32 6 12 6zm-1.07 1.14L13 9.21c.57.25 1.03.71 1.28 1.28l2.07 2.07c.08-.34.14-.7.14-1.07C16.5 9.01 14.48 7 12 7c-.37 0-.72.05-1.07.14zM2.01 3.87l2.68 2.68A11.738 11.738 0 0 0 1 11.5C2.73 15.89 7 19 12 19c1.52 0 2.98-.29 4.32-.82l3.42 3.42l1.41-1.41L3.42 2.45L2.01 3.87zm7.5 7.5l2.61 2.61c-.04.01-.08.02-.12.02a2.5 2.5 0 0 1-2.5-2.5c0-.05.01-.08.01-.13zm-3.4-3.4l1.75 1.75a4.6 4.6 0 0 0-.36 1.78a4.507 4.507 0 0 0 6.27 4.14l.98.98c-.88.24-1.8.38-2.75.38a9.77 9.77 0 0 1-8.82-5.5c.7-1.43 1.72-2.61 2.93-3.53z\"></path></svg>";
|
|
147
179
|
constructor();
|
|
180
|
+
/** @internal Toggles password visibility */
|
|
181
|
+
togglePasswordVisibility(): void;
|
|
148
182
|
/**
|
|
149
183
|
* @internal
|
|
150
184
|
* Computed base input classes
|
|
@@ -207,6 +241,6 @@ export declare class InputComponent implements ControlValueAccessor {
|
|
|
207
241
|
*/
|
|
208
242
|
private setupDebounce;
|
|
209
243
|
static ɵfac: i0.ɵɵFactoryDeclaration<InputComponent, never>;
|
|
210
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<InputComponent, "st-input", never, { "variant": { "alias": "variant"; "required": false; "isSignal": true; }; "size": { "alias": "size"; "required": false; "isSignal": true; }; "label": { "alias": "label"; "required": false; "isSignal": true; }; "showOptional": { "alias": "showOptional"; "required": false; "isSignal": true; }; "optionalText": { "alias": "optionalText"; "required": false; "isSignal": true; }; "type": { "alias": "type"; "required": false; "isSignal": true; }; "name": { "alias": "name"; "required": false; "isSignal": true; }; "placeholder": { "alias": "placeholder"; "required": false; "isSignal": true; }; "readonly": { "alias": "readonly"; "required": false; "isSignal": true; }; "focus": { "alias": "focus"; "required": false; "isSignal": true; }; "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>;
|
|
211
245
|
}
|
|
212
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,16 +55,38 @@ 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
|
*/
|
|
67
74
|
name: import("@angular/core").InputSignal<string | null>;
|
|
75
|
+
/**
|
|
76
|
+
* Id of the focusable control, used by its label. A unique id is generated when omitted.
|
|
77
|
+
*/
|
|
78
|
+
inputId: import("@angular/core").InputSignal<string | null>;
|
|
79
|
+
/** @internal */
|
|
80
|
+
private readonly generatedId;
|
|
81
|
+
/** @internal Id applied to the focusable control and referenced by its label */
|
|
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>;
|
|
68
90
|
/**
|
|
69
91
|
* Minimum value of the range slider
|
|
70
92
|
* @defaultValue 0
|
|
@@ -79,7 +101,7 @@ export declare class RangeComponent implements ControlValueAccessor {
|
|
|
79
101
|
* Whether to show min/max values
|
|
80
102
|
* @defaultValue true
|
|
81
103
|
*/
|
|
82
|
-
showRange: import("@angular/core").
|
|
104
|
+
showRange: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
|
|
83
105
|
/**
|
|
84
106
|
* Number of steps to display (0 for continuous)
|
|
85
107
|
* @defaultValue 0
|
|
@@ -127,7 +149,7 @@ export declare class RangeComponent implements ControlValueAccessor {
|
|
|
127
149
|
* Stop event propagation for activation events
|
|
128
150
|
* @defaultValue false
|
|
129
151
|
*/
|
|
130
|
-
stopPropagation: import("@angular/core").
|
|
152
|
+
stopPropagation: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
|
|
131
153
|
/**
|
|
132
154
|
* Event emitted on click
|
|
133
155
|
*/
|
|
@@ -165,5 +187,5 @@ export declare class RangeComponent implements ControlValueAccessor {
|
|
|
165
187
|
*/
|
|
166
188
|
handlePointerDown(event: PointerEvent): void;
|
|
167
189
|
static ɵfac: i0.ɵɵFactoryDeclaration<RangeComponent, never>;
|
|
168
|
-
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; }; "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>;
|
|
169
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,21 +64,36 @@ 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
|
*/
|
|
81
88
|
name: import("@angular/core").InputSignal<string | null>;
|
|
89
|
+
/**
|
|
90
|
+
* Id of the focusable control, used by its label. A unique id is generated when omitted.
|
|
91
|
+
*/
|
|
92
|
+
inputId: import("@angular/core").InputSignal<string | null>;
|
|
93
|
+
/** @internal */
|
|
94
|
+
private readonly generatedId;
|
|
95
|
+
/** @internal Id applied to the focusable control and referenced by its label */
|
|
96
|
+
protected readonly resolvedId: import("@angular/core").Signal<string>;
|
|
82
97
|
/**
|
|
83
98
|
* Placeholder text when no option is selected
|
|
84
99
|
*/
|
|
@@ -109,7 +124,7 @@ export declare class SelectComponent implements ControlValueAccessor {
|
|
|
109
124
|
* Whether to show a clear button next to the selected value
|
|
110
125
|
* @default true
|
|
111
126
|
*/
|
|
112
|
-
allowClear: import("@angular/core").
|
|
127
|
+
allowClear: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
|
|
113
128
|
/**
|
|
114
129
|
* Parent form group for reactive forms
|
|
115
130
|
*/
|
|
@@ -135,7 +150,7 @@ export declare class SelectComponent implements ControlValueAccessor {
|
|
|
135
150
|
* Stop event propagation for activation events
|
|
136
151
|
* @defaultValue false
|
|
137
152
|
*/
|
|
138
|
-
stopPropagation: import("@angular/core").
|
|
153
|
+
stopPropagation: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
|
|
139
154
|
/**
|
|
140
155
|
* Event emitted on click
|
|
141
156
|
*/
|
|
@@ -213,6 +228,8 @@ export declare class SelectComponent implements ControlValueAccessor {
|
|
|
213
228
|
private onChange;
|
|
214
229
|
/** Callback function for touch events */
|
|
215
230
|
private onTouched;
|
|
231
|
+
/** Value written through the accessor while no options were bound yet */
|
|
232
|
+
private pendingValue;
|
|
216
233
|
/**
|
|
217
234
|
* Whether the overlay is currently open or in the process of opening/closing
|
|
218
235
|
* @returns True if overlay is visible or animating
|
|
@@ -277,6 +294,12 @@ export declare class SelectComponent implements ControlValueAccessor {
|
|
|
277
294
|
* @param value - The new value to set
|
|
278
295
|
*/
|
|
279
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;
|
|
280
303
|
/**
|
|
281
304
|
* Registers a callback function to be called when the value changes
|
|
282
305
|
* @param fn - The callback function
|
|
@@ -402,6 +425,6 @@ export declare class SelectComponent implements ControlValueAccessor {
|
|
|
402
425
|
*/
|
|
403
426
|
private updateActiveOptionVisually;
|
|
404
427
|
static ɵfac: i0.ɵɵFactoryDeclaration<SelectComponent, never>;
|
|
405
|
-
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; }; "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>;
|
|
406
429
|
}
|
|
407
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,16 +61,31 @@ 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
|
*/
|
|
73
80
|
name: import("@angular/core").InputSignal<string | null>;
|
|
81
|
+
/**
|
|
82
|
+
* Id of the focusable control, used by its label. A unique id is generated when omitted.
|
|
83
|
+
*/
|
|
84
|
+
inputId: import("@angular/core").InputSignal<string | null>;
|
|
85
|
+
/** @internal */
|
|
86
|
+
private readonly generatedId;
|
|
87
|
+
/** @internal Id applied to the focusable control and referenced by its label */
|
|
88
|
+
protected readonly resolvedId: import("@angular/core").Signal<string>;
|
|
74
89
|
/**
|
|
75
90
|
* Placeholder text when empty
|
|
76
91
|
*/
|
|
@@ -84,7 +99,7 @@ export declare class TextareaComponent {
|
|
|
84
99
|
* Whether the textarea is readonly
|
|
85
100
|
* @defaultValue false
|
|
86
101
|
*/
|
|
87
|
-
readonly: import("@angular/core").
|
|
102
|
+
readonly: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
|
|
88
103
|
/**
|
|
89
104
|
* Whether the textarea is disabled
|
|
90
105
|
* @defaultValue false
|
|
@@ -131,7 +146,7 @@ export declare class TextareaComponent {
|
|
|
131
146
|
* Stop event propagation for activation events
|
|
132
147
|
* @defaultValue false
|
|
133
148
|
*/
|
|
134
|
-
stopPropagation: import("@angular/core").
|
|
149
|
+
stopPropagation: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
|
|
135
150
|
/**
|
|
136
151
|
* Event emitted on Enter keydown
|
|
137
152
|
*/
|
|
@@ -244,5 +259,5 @@ export declare class TextareaComponent {
|
|
|
244
259
|
*/
|
|
245
260
|
private setupDebounce;
|
|
246
261
|
static ɵfac: i0.ɵɵFactoryDeclaration<TextareaComponent, never>;
|
|
247
|
-
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; }; "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>;
|
|
248
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'
|