@sixbell-telco/sdk 4.2.0 → 4.4.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 +108 -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 +2 -2
- package/components/dropdown/dropdown-chevron/dropdown-chevron.component.d.ts +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 +11 -14
- package/components/dropdown-menu/README.md +2 -2
- 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 +6 -2
- 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 +3 -1
- package/components/dropdown-menu/bar/dropdown-menu-bar-trigger/dropdown-menu-bar-trigger.component.d.ts +3 -1
- package/components/dropdown-menu/context/dropdown-context-menu-trigger/dropdown-context-menu-trigger.component.d.ts +2 -1
- package/components/dropdown-menu/dropdown-menu-chevron/dropdown-menu-chevron.component.d.ts +1 -1
- package/components/dropdown-menu/src/dropdown-menu-content/dropdown-menu-content.component.d.ts +2 -0
- package/components/dropdown-menu/src/dropdown-menu-item/dropdown-menu-item.component.d.ts +3 -3
- package/components/dropdown-menu/src/dropdown-menu-sub-content/dropdown-menu-sub-content.component.d.ts +2 -0
- package/components/dropdown-menu/src/dropdown-menu-sub-trigger/dropdown-menu-sub-trigger.component.d.ts +2 -1
- package/components/dropdown-menu/src/dropdown-menu-trigger/dropdown-menu-trigger.component.d.ts +1 -0
- 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 +2 -1
- package/components/forms/combobox/src/combobox.component.d.ts +31 -18
- 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 +2 -1
- package/components/forms/select/src/select.component.d.ts +30 -16
- 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 +7 -2
- package/components/overlay/overlay-trigger/overlay-trigger.component.d.ts +1 -1
- package/components/overlay/src/overlay.component.d.ts +10 -9
- 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 +25 -7
- package/components/tooltip/src/tooltip.component.d.ts +44 -12
- 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 +33 -24
- package/fesm2022/sixbell-telco-sdk-components-dropdown-menu-bar.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-components-dropdown-menu-context.mjs +7 -3
- package/fesm2022/sixbell-telco-sdk-components-dropdown-menu-context.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-components-dropdown-menu.mjs +25 -14
- package/fesm2022/sixbell-telco-sdk-components-dropdown-menu.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-components-dropdown.mjs +43 -72
- 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 +104 -72
- 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 +84 -56
- 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 +41 -79
- 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 +187 -75
- 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 +69 -41
- 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-popover-motion.mjs +186 -0
- package/fesm2022/sixbell-telco-sdk-utils-popover-motion.mjs.map +1 -0
- 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-translation.mjs +129 -14
- package/fesm2022/sixbell-telco-sdk-utils-translation.mjs.map +1 -1
- 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 +18 -11
- package/layouts/public-api.d.ts +1 -1
- package/layouts/src/app-layout/app-layout.component.d.ts +11 -8
- package/layouts/src/layout.config.d.ts +1 -1
- package/layouts/src/menu/menu-active.d.ts +2 -1
- package/layouts/src/menu/menu-url.d.ts +2 -0
- package/layouts/src/navbar/navbar.component.d.ts +5 -5
- package/layouts/src/page-banner/page-banner.component.d.ts +19 -2
- 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 +64 -20
- package/src/_index.css +1701 -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/popover-motion/README.md +38 -0
- package/utils/popover-motion/index.d.ts +5 -0
- package/utils/popover-motion/public-api.d.ts +2 -0
- package/utils/popover-motion/src/popover-menu-motion.d.ts +37 -0
- package/utils/popover-motion/src/popover-motion.d.ts +31 -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 +63 -0
- package/utils/translation/src/translation.service.d.ts +24 -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
|
@@ -16,6 +16,7 @@ import { ElementRef } from '@angular/core';
|
|
|
16
16
|
import { ControlValueAccessor, FormGroup } from '@angular/forms';
|
|
17
17
|
import { TranslateService } from '@ngx-translate/core';
|
|
18
18
|
import { BadgeSizeProps } from '@sixbell-telco/sdk/components/badge';
|
|
19
|
+
import { PopoverPlacement, PopoverSide } from '@sixbell-telco/sdk/utils/popover-motion';
|
|
19
20
|
import { ThemeDomService } from '@sixbell-telco/sdk/utils/theme';
|
|
20
21
|
import * as i0 from "@angular/core";
|
|
21
22
|
/**
|
|
@@ -105,17 +106,24 @@ export declare class ComboboxComponent implements ControlValueAccessor {
|
|
|
105
106
|
* Whether to show optional indicator
|
|
106
107
|
* @defaultValue false
|
|
107
108
|
*/
|
|
108
|
-
showOptional: import("@angular/core").
|
|
109
|
+
showOptional: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
|
|
109
110
|
/**
|
|
110
111
|
* Optional indicator text (translation key or literal)
|
|
111
112
|
* @defaultValue 'sdk.formFields.optional'
|
|
112
113
|
*/
|
|
113
114
|
optionalText: import("@angular/core").InputSignal<string>;
|
|
115
|
+
/**
|
|
116
|
+
* Mark the field as required: shows the `*` marker and announces the field as required.
|
|
117
|
+
* When not set, the enclosing `st-form-item` `required`, then `Validators.required` on the bound control decide.
|
|
118
|
+
*/
|
|
119
|
+
required: import("@angular/core").InputSignalWithTransform<boolean | undefined, unknown>;
|
|
120
|
+
/** @internal Required state and hint ids from the enclosing `st-form-item`. */
|
|
121
|
+
protected readonly fieldA11y: import("@sixbell-telco/sdk/components/forms/form-item").FormFieldA11y;
|
|
114
122
|
/**
|
|
115
123
|
* Whether to use ghost (transparent) styling
|
|
116
124
|
* @default false
|
|
117
125
|
*/
|
|
118
|
-
ghost: import("@angular/core").
|
|
126
|
+
ghost: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
|
|
119
127
|
/**
|
|
120
128
|
* The HTML name attribute for the underlying form control
|
|
121
129
|
*/
|
|
@@ -154,13 +162,13 @@ export declare class ComboboxComponent implements ControlValueAccessor {
|
|
|
154
162
|
* Works for both single and multiple selection modes
|
|
155
163
|
* @default true
|
|
156
164
|
*/
|
|
157
|
-
allowClear: import("@angular/core").
|
|
165
|
+
allowClear: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
|
|
158
166
|
/**
|
|
159
167
|
* Whether to show a "Clear All" button at the bottom of the dropdown for multiple selection
|
|
160
168
|
* Only applies when selectionType is 'multiple'
|
|
161
169
|
* @default true
|
|
162
170
|
*/
|
|
163
|
-
allowClearAll: import("@angular/core").
|
|
171
|
+
allowClearAll: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
|
|
164
172
|
/**
|
|
165
173
|
* Placeholder text for the search input field
|
|
166
174
|
* @default 'Search...'
|
|
@@ -200,7 +208,7 @@ export declare class ComboboxComponent implements ControlValueAccessor {
|
|
|
200
208
|
* Whether to enable debounced search functionality
|
|
201
209
|
* @default false
|
|
202
210
|
*/
|
|
203
|
-
searchDebounced: import("@angular/core").
|
|
211
|
+
searchDebounced: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
|
|
204
212
|
/**
|
|
205
213
|
* Debounce time in milliseconds for search input
|
|
206
214
|
* @default 300
|
|
@@ -218,7 +226,7 @@ export declare class ComboboxComponent implements ControlValueAccessor {
|
|
|
218
226
|
* Stop event propagation for activation events
|
|
219
227
|
* @defaultValue false
|
|
220
228
|
*/
|
|
221
|
-
stopPropagation: import("@angular/core").
|
|
229
|
+
stopPropagation: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
|
|
222
230
|
/**
|
|
223
231
|
* Event emitted on click
|
|
224
232
|
*/
|
|
@@ -255,6 +263,8 @@ export declare class ComboboxComponent implements ControlValueAccessor {
|
|
|
255
263
|
private readonly searchSubject;
|
|
256
264
|
/** Current animation state of the overlay */
|
|
257
265
|
private readonly animationState;
|
|
266
|
+
/** Set when the exit animation already ran the close cleanup, so the detach that follows does not repeat it */
|
|
267
|
+
private exitSettled;
|
|
258
268
|
/** Trigger for blur events in form validation */
|
|
259
269
|
private readonly blurTrigger;
|
|
260
270
|
/** Active option index for keyboard navigation */
|
|
@@ -275,20 +285,16 @@ export declare class ComboboxComponent implements ControlValueAccessor {
|
|
|
275
285
|
private readonly currentPosition;
|
|
276
286
|
/** Overlay positions with a symmetric 4px trigger gap (below first, flip above) */
|
|
277
287
|
readonly overlayPositions: ConnectedPosition[];
|
|
288
|
+
/** Real placement of the open panel, bound to `data-side` / `data-align`; null until the CDK places it */
|
|
289
|
+
readonly placement: import("@angular/core").Signal<PopoverPlacement | null>;
|
|
278
290
|
/**
|
|
279
|
-
*
|
|
280
|
-
*
|
|
281
|
-
* All class names are static and detectable by Tailwind at build time
|
|
282
|
-
*/
|
|
283
|
-
private readonly animationClassMap;
|
|
284
|
-
/**
|
|
285
|
-
* Computed animation direction based on current overlay position
|
|
286
|
-
* Dynamically detects position and returns appropriate direction: 'top', 'bottom', 'left', or 'right'
|
|
291
|
+
* Side of the field the panel opened on (`'bottom'` until the CDK places it)
|
|
292
|
+
* @deprecated Read `data-side` on the panel instead; kept for compatibility
|
|
287
293
|
*/
|
|
288
|
-
animationDirection: import("@angular/core").Signal<
|
|
294
|
+
animationDirection: import("@angular/core").Signal<PopoverSide>;
|
|
289
295
|
/**
|
|
290
|
-
*
|
|
291
|
-
*
|
|
296
|
+
* Class of the panel: the shared `popover-motion` utility driven by `data-state` and `data-side`
|
|
297
|
+
* @deprecated Kept for compatibility; the motion lives in the `popover-motion` utility
|
|
292
298
|
*/
|
|
293
299
|
animationClasses: import("@angular/core").Signal<string>;
|
|
294
300
|
/** Form control reference for reactive forms */
|
|
@@ -305,6 +311,8 @@ export declare class ComboboxComponent implements ControlValueAccessor {
|
|
|
305
311
|
private readonly stateSignal;
|
|
306
312
|
/** Callback function for value changes */
|
|
307
313
|
private onChange;
|
|
314
|
+
/** Value written through the accessor before any matching option was bound */
|
|
315
|
+
private pendingValue;
|
|
308
316
|
/** Callback function for touch events */
|
|
309
317
|
private onTouched;
|
|
310
318
|
constructor();
|
|
@@ -410,6 +418,11 @@ export declare class ComboboxComponent implements ControlValueAccessor {
|
|
|
410
418
|
* @param value - The new value to set
|
|
411
419
|
*/
|
|
412
420
|
writeValue(value: any): void;
|
|
421
|
+
/**
|
|
422
|
+
* Resolves a value written before its options existed once matching options arrive.
|
|
423
|
+
* Multiple selection shows the matching values and keeps the rest pending until they resolve. Never calls onChange.
|
|
424
|
+
*/
|
|
425
|
+
private readonly pendingValueEffect;
|
|
413
426
|
/**
|
|
414
427
|
* Registers a callback function to be called when the value changes
|
|
415
428
|
* @param fn - The callback function
|
|
@@ -572,6 +585,6 @@ export declare class ComboboxComponent implements ControlValueAccessor {
|
|
|
572
585
|
*/
|
|
573
586
|
private setupSearchQueryEmission;
|
|
574
587
|
static ɵfac: i0.ɵɵFactoryDeclaration<ComboboxComponent, never>;
|
|
575
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<ComboboxComponent, "st-combobox", never, { "variant": { "alias": "variant"; "required": false; "isSignal": true; }; "size": { "alias": "size"; "required": false; "isSignal": true; }; "showOptional": { "alias": "showOptional"; "required": false; "isSignal": true; }; "optionalText": { "alias": "optionalText"; "required": false; "isSignal": true; }; "ghost": { "alias": "ghost"; "required": false; "isSignal": true; }; "name": { "alias": "name"; "required": false; "isSignal": true; }; "inputId": { "alias": "inputId"; "required": false; "isSignal": true; }; "placeholder": { "alias": "placeholder"; "required": false; "isSignal": true; }; "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; "label": { "alias": "label"; "required": false; "isSignal": true; }; "parentForm": { "alias": "parentForm"; "required": false; "isSignal": true; }; "formControlName": { "alias": "formControlName"; "required": false; "isSignal": true; }; "allowClear": { "alias": "allowClear"; "required": false; "isSignal": true; }; "allowClearAll": { "alias": "allowClearAll"; "required": false; "isSignal": true; }; "searchPlaceholder": { "alias": "searchPlaceholder"; "required": false; "isSignal": true; }; "noResultsText": { "alias": "noResultsText"; "required": false; "isSignal": true; }; "value": { "alias": "value"; "required": false; "isSignal": true; }; "options": { "alias": "options"; "required": false; "isSignal": true; }; "displayKey": { "alias": "displayKey"; "required": false; "isSignal": true; }; "valueKey": { "alias": "valueKey"; "required": false; "isSignal": true; }; "selectionType": { "alias": "selectionType"; "required": false; "isSignal": true; }; "searchDebounced": { "alias": "searchDebounced"; "required": false; "isSignal": true; }; "searchDebounceTime": { "alias": "searchDebounceTime"; "required": false; "isSignal": true; }; "stopPropagation": { "alias": "stopPropagation"; "required": false; "isSignal": true; }; }, { "disabled": "disabledChange"; "value": "valueChange"; "blurred": "blurred"; "valueUpdated": "valueUpdated"; "clicked": "clicked"; "keyDownEnter": "keyDownEnter"; "keyDownSpace": "keyDownSpace"; "triggered": "triggered"; "searchQuery": "searchQuery"; }, never, ["*"], true, never>;
|
|
588
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ComboboxComponent, "st-combobox", never, { "variant": { "alias": "variant"; "required": false; "isSignal": true; }; "size": { "alias": "size"; "required": false; "isSignal": true; }; "showOptional": { "alias": "showOptional"; "required": false; "isSignal": true; }; "optionalText": { "alias": "optionalText"; "required": false; "isSignal": true; }; "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; }; "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; "label": { "alias": "label"; "required": false; "isSignal": true; }; "parentForm": { "alias": "parentForm"; "required": false; "isSignal": true; }; "formControlName": { "alias": "formControlName"; "required": false; "isSignal": true; }; "allowClear": { "alias": "allowClear"; "required": false; "isSignal": true; }; "allowClearAll": { "alias": "allowClearAll"; "required": false; "isSignal": true; }; "searchPlaceholder": { "alias": "searchPlaceholder"; "required": false; "isSignal": true; }; "noResultsText": { "alias": "noResultsText"; "required": false; "isSignal": true; }; "value": { "alias": "value"; "required": false; "isSignal": true; }; "options": { "alias": "options"; "required": false; "isSignal": true; }; "displayKey": { "alias": "displayKey"; "required": false; "isSignal": true; }; "valueKey": { "alias": "valueKey"; "required": false; "isSignal": true; }; "selectionType": { "alias": "selectionType"; "required": false; "isSignal": true; }; "searchDebounced": { "alias": "searchDebounced"; "required": false; "isSignal": true; }; "searchDebounceTime": { "alias": "searchDebounceTime"; "required": false; "isSignal": true; }; "stopPropagation": { "alias": "stopPropagation"; "required": false; "isSignal": true; }; }, { "disabled": "disabledChange"; "value": "valueChange"; "blurred": "blurred"; "valueUpdated": "valueUpdated"; "clicked": "clicked"; "keyDownEnter": "keyDownEnter"; "keyDownSpace": "keyDownSpace"; "triggered": "triggered"; "searchQuery": "searchQuery"; }, never, ["*"], true, never>;
|
|
576
589
|
}
|
|
577
590
|
export {};
|
|
@@ -29,7 +29,7 @@ import * as i0 from "@angular/core";
|
|
|
29
29
|
* (dateUpdated)="onDate($event)"
|
|
30
30
|
* #picker="stDatepicker"
|
|
31
31
|
* >
|
|
32
|
-
* <st-button [outline]="true">{{ picker.displayValue() || 'Pick a date' }}</st-button>
|
|
32
|
+
* <st-button variant="tertiary" [outline]="true">{{ picker.displayValue() || 'Pick a date' }}</st-button>
|
|
33
33
|
* </st-datepicker>
|
|
34
34
|
* ```
|
|
35
35
|
*
|
|
@@ -45,7 +45,7 @@ import * as i0 from "@angular/core";
|
|
|
45
45
|
* (endTimeChanged)="onEndTime($event)"
|
|
46
46
|
* #picker="stDatepicker"
|
|
47
47
|
* >
|
|
48
|
-
* <st-button [outline]="true">{{ picker.displayValue() || 'Pick range' }}</st-button>
|
|
48
|
+
* <st-button variant="tertiary" [outline]="true">{{ picker.displayValue() || 'Pick range' }}</st-button>
|
|
49
49
|
* </st-datepicker>
|
|
50
50
|
* ```
|
|
51
51
|
*
|
|
@@ -89,12 +89,19 @@ export declare class DatepickerComponent implements ControlValueAccessor {
|
|
|
89
89
|
* Whether to show optional indicator
|
|
90
90
|
* @defaultValue false
|
|
91
91
|
*/
|
|
92
|
-
showOptional: import("@angular/core").
|
|
92
|
+
showOptional: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
|
|
93
93
|
/**
|
|
94
94
|
* Optional indicator text (translation key or literal)
|
|
95
95
|
* @defaultValue 'sdk.formFields.optional'
|
|
96
96
|
*/
|
|
97
97
|
optionalText: import("@angular/core").InputSignal<string>;
|
|
98
|
+
/**
|
|
99
|
+
* Mark the field as required: shows the `*` marker and announces the field as required.
|
|
100
|
+
* When not set, the enclosing `st-form-item` `required`, then `Validators.required` on the bound control decide.
|
|
101
|
+
*/
|
|
102
|
+
required: import("@angular/core").InputSignalWithTransform<boolean | undefined, unknown>;
|
|
103
|
+
/** @internal Required state and hint ids from the enclosing `st-form-item`. */
|
|
104
|
+
protected readonly fieldA11y: import("@sixbell-telco/sdk/components/forms/form-item").FormFieldA11y;
|
|
98
105
|
/**
|
|
99
106
|
* Picker mode
|
|
100
107
|
* @defaultValue 'single'
|
|
@@ -137,22 +144,22 @@ export declare class DatepickerComponent implements ControlValueAccessor {
|
|
|
137
144
|
* Whether to show quick action buttons for common ranges
|
|
138
145
|
* @defaultValue true
|
|
139
146
|
*/
|
|
140
|
-
showQuickActions: import("@angular/core").
|
|
147
|
+
showQuickActions: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
|
|
141
148
|
/**
|
|
142
149
|
* Whether the user can clear the current selection from overlay Clear and public clear methods
|
|
143
150
|
* @defaultValue true
|
|
144
151
|
*/
|
|
145
|
-
allowClear: import("@angular/core").
|
|
152
|
+
allowClear: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
|
|
146
153
|
/**
|
|
147
154
|
* Whether to show time pickers for start/end
|
|
148
155
|
* @defaultValue false
|
|
149
156
|
*/
|
|
150
|
-
showTimePicker: import("@angular/core").
|
|
157
|
+
showTimePicker: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
|
|
151
158
|
/**
|
|
152
159
|
* Whether to include seconds in time inputs and display
|
|
153
160
|
* @defaultValue false
|
|
154
161
|
*/
|
|
155
|
-
showSeconds: import("@angular/core").
|
|
162
|
+
showSeconds: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
|
|
156
163
|
/**
|
|
157
164
|
* Time display format for trigger text
|
|
158
165
|
* @defaultValue '24h'
|
|
@@ -168,7 +175,7 @@ export declare class DatepickerComponent implements ControlValueAccessor {
|
|
|
168
175
|
* Use locale-based formatting for the trigger display instead of the custom pattern
|
|
169
176
|
* @defaultValue false
|
|
170
177
|
*/
|
|
171
|
-
useLocaleDisplay: import("@angular/core").
|
|
178
|
+
useLocaleDisplay: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
|
|
172
179
|
/**
|
|
173
180
|
* Locale date style when useLocaleDisplay=true
|
|
174
181
|
* @defaultValue 'short'
|
|
@@ -350,5 +357,5 @@ export declare class DatepickerComponent implements ControlValueAccessor {
|
|
|
350
357
|
onStartTimeChange(ev: Event): void;
|
|
351
358
|
onEndTimeChange(ev: Event): void;
|
|
352
359
|
static ɵfac: i0.ɵɵFactoryDeclaration<DatepickerComponent, never>;
|
|
353
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<DatepickerComponent, "st-datepicker", ["stDatepicker"], { "label": { "alias": "label"; "required": false; "isSignal": true; }; "showOptional": { "alias": "showOptional"; "required": false; "isSignal": true; }; "optionalText": { "alias": "optionalText"; "required": false; "isSignal": true; }; "mode": { "alias": "mode"; "required": false; "isSignal": true; }; "format": { "alias": "format"; "required": false; "isSignal": true; }; "language": { "alias": "language"; "required": false; "isSignal": true; }; "minDate": { "alias": "minDate"; "required": false; "isSignal": true; }; "maxDate": { "alias": "maxDate"; "required": false; "isSignal": true; }; "value": { "alias": "value"; "required": false; "isSignal": true; }; "rangeValue": { "alias": "rangeValue"; "required": false; "isSignal": true; }; "name": { "alias": "name"; "required": false; "isSignal": true; }; "inputId": { "alias": "inputId"; "required": false; "isSignal": true; }; "rangeCalendars": { "alias": "rangeCalendars"; "required": false; "isSignal": true; }; "showQuickActions": { "alias": "showQuickActions"; "required": false; "isSignal": true; }; "allowClear": { "alias": "allowClear"; "required": false; "isSignal": true; }; "showTimePicker": { "alias": "showTimePicker"; "required": false; "isSignal": true; }; "showSeconds": { "alias": "showSeconds"; "required": false; "isSignal": true; }; "timeDisplayFormat": { "alias": "timeDisplayFormat"; "required": false; "isSignal": true; }; "languageMapping": { "alias": "languageMapping"; "required": false; "isSignal": true; }; "useLocaleDisplay": { "alias": "useLocaleDisplay"; "required": false; "isSignal": true; }; "dateStyle": { "alias": "dateStyle"; "required": false; "isSignal": true; }; "startTimeValue": { "alias": "startTimeValue"; "required": false; "isSignal": true; }; "endTimeValue": { "alias": "endTimeValue"; "required": false; "isSignal": true; }; "parentForm": { "alias": "parentForm"; "required": false; "isSignal": true; }; "formControlName": { "alias": "formControlName"; "required": false; "isSignal": true; }; }, { "dateUpdated": "dateUpdated"; "rangeUpdated": "rangeUpdated"; "valueChanged": "valueChanged"; "rangeValueChanged": "rangeValueChanged"; "startTimeChanged": "startTimeChanged"; "endTimeChanged": "endTimeChanged"; }, never, ["*"], true, never>;
|
|
360
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<DatepickerComponent, "st-datepicker", ["stDatepicker"], { "label": { "alias": "label"; "required": false; "isSignal": true; }; "showOptional": { "alias": "showOptional"; "required": false; "isSignal": true; }; "optionalText": { "alias": "optionalText"; "required": false; "isSignal": true; }; "required": { "alias": "required"; "required": false; "isSignal": true; }; "mode": { "alias": "mode"; "required": false; "isSignal": true; }; "format": { "alias": "format"; "required": false; "isSignal": true; }; "language": { "alias": "language"; "required": false; "isSignal": true; }; "minDate": { "alias": "minDate"; "required": false; "isSignal": true; }; "maxDate": { "alias": "maxDate"; "required": false; "isSignal": true; }; "value": { "alias": "value"; "required": false; "isSignal": true; }; "rangeValue": { "alias": "rangeValue"; "required": false; "isSignal": true; }; "name": { "alias": "name"; "required": false; "isSignal": true; }; "inputId": { "alias": "inputId"; "required": false; "isSignal": true; }; "rangeCalendars": { "alias": "rangeCalendars"; "required": false; "isSignal": true; }; "showQuickActions": { "alias": "showQuickActions"; "required": false; "isSignal": true; }; "allowClear": { "alias": "allowClear"; "required": false; "isSignal": true; }; "showTimePicker": { "alias": "showTimePicker"; "required": false; "isSignal": true; }; "showSeconds": { "alias": "showSeconds"; "required": false; "isSignal": true; }; "timeDisplayFormat": { "alias": "timeDisplayFormat"; "required": false; "isSignal": true; }; "languageMapping": { "alias": "languageMapping"; "required": false; "isSignal": true; }; "useLocaleDisplay": { "alias": "useLocaleDisplay"; "required": false; "isSignal": true; }; "dateStyle": { "alias": "dateStyle"; "required": false; "isSignal": true; }; "startTimeValue": { "alias": "startTimeValue"; "required": false; "isSignal": true; }; "endTimeValue": { "alias": "endTimeValue"; "required": false; "isSignal": true; }; "parentForm": { "alias": "parentForm"; "required": false; "isSignal": true; }; "formControlName": { "alias": "formControlName"; "required": false; "isSignal": true; }; }, { "dateUpdated": "dateUpdated"; "rangeUpdated": "rangeUpdated"; "valueChanged": "valueChanged"; "rangeValueChanged": "rangeValueChanged"; "startTimeChanged": "startTimeChanged"; "endTimeChanged": "endTimeChanged"; }, never, ["*"], true, never>;
|
|
354
361
|
}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
# Form Hint
|
|
2
|
+
|
|
3
|
+
Import: `@sixbell-telco/sdk/components/forms/form-hint`
|
|
4
|
+
|
|
5
|
+
Selectors: `st-form-hint`, `st-form-required-legend`
|
|
6
|
+
|
|
7
|
+
Helper text for a form field, linked to its control through `aria-describedby`, and the legend that explains the required marker.
|
|
8
|
+
|
|
9
|
+
## Usage
|
|
10
|
+
|
|
11
|
+
```html
|
|
12
|
+
<st-form-required-legend />
|
|
13
|
+
<st-form-item>
|
|
14
|
+
<st-input label="Code" formControlName="code" [parentForm]="form" />
|
|
15
|
+
<st-form-hint>Uppercase letters and digits, up to 10 characters.</st-form-hint>
|
|
16
|
+
<st-form-errors [parentForm]="form" formField="code" />
|
|
17
|
+
</st-form-item>
|
|
18
|
+
```
|
|
19
|
+
|
|
20
|
+
## Notes
|
|
21
|
+
|
|
22
|
+
- `st-form-hint` must sit inside `st-form-item`. Input: `id` (generated when omitted). The control's `aria-describedby` lists every hint in the item.
|
|
23
|
+
- `st-form-required-legend` renders `sdk.formFields.requiredLegend` ("Fields marked with * are required"); `textKey` overrides it. Place it once above the first field.
|
|
24
|
+
- Required marker: `st-input`, `st-textarea`, `st-select`, `st-combobox`, `st-range` and `st-date-picker` show `*` after the label and (except `st-date-picker`, see below) set `aria-required="true"` on the native control or `role="combobox"` trigger when their `required` input is set, else when `st-form-item [required]` is set, else when the bound control has `Validators.required`. The `*` is `aria-hidden`; `showOptional` is unchanged.
|
|
25
|
+
- `st-date-picker` projects its own trigger: mark the projected `st-input` too (for example through `st-form-item [required]`) so it is announced.
|
|
26
|
+
- `st-range` shows the marker but does not set `aria-required` (not allowed on the `slider` role); it adds a visually hidden "Required" note (`sdk.formFields.required`) to its `aria-describedby` instead.
|
|
27
|
+
- `st-date-picker` reads `Validators.required` when it renders and when its inputs change; a validator added later is not picked up, so set `required` explicitly in that case.
|
|
28
|
+
- An explicit `required` on the control wins over `st-form-item [required]` and over the validator, so `[required]="false"` removes the marker. Angular's `RequiredValidator` also matches `[required]` next to `formControlName`, so `[required]="true"` adds `Validators.required` to the control.
|
|
29
|
+
- Replaces hand-rolled `span.field-hint` hints in consumer apps.
|
|
@@ -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;
|
|
@@ -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
|
}
|
|
@@ -14,5 +14,6 @@ List picker. Clear is a sibling of the trigger; the chevron is a custom icon tha
|
|
|
14
14
|
|
|
15
15
|
## Notes
|
|
16
16
|
|
|
17
|
-
- `allowClear` defaults to `true`.
|
|
17
|
+
- `allowClear` defaults to `true`. The panel opens 4px from the field with the shared popover motion (`popover-motion`), toward the side the CDK placed it on.
|
|
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.
|