@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
|
@@ -22,7 +22,7 @@ export declare class DropdownMenuBarContentComponent {
|
|
|
22
22
|
*/
|
|
23
23
|
size: import("@angular/core").InputSignal<"xs" | "sm" | "md" | "lg" | "xl">;
|
|
24
24
|
/** Whether to apply shadow */
|
|
25
|
-
shadow: import("@angular/core").
|
|
25
|
+
shadow: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
|
|
26
26
|
/**
|
|
27
27
|
* Emitted when the menu is opened
|
|
28
28
|
*/
|
package/components/dropdown-menu/bar/dropdown-menu-bar-item/dropdown-menu-bar-item.component.d.ts
CHANGED
|
@@ -7,11 +7,11 @@ export declare class DropdownMenuBarItemComponent {
|
|
|
7
7
|
/**
|
|
8
8
|
* Whether the menu item is disabled
|
|
9
9
|
*/
|
|
10
|
-
disabled: import("@angular/core").
|
|
10
|
+
disabled: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
|
|
11
11
|
/**
|
|
12
12
|
* Whether the menu item is active
|
|
13
13
|
*/
|
|
14
|
-
active: import("@angular/core").
|
|
14
|
+
active: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
|
|
15
15
|
/**
|
|
16
16
|
* Optional keyboard shortcut text
|
|
17
17
|
*/
|
|
@@ -28,7 +28,7 @@ export declare class DropdownMenuBarItemComponent {
|
|
|
28
28
|
* Stop event propagation for activation events
|
|
29
29
|
* @defaultValue false
|
|
30
30
|
*/
|
|
31
|
-
stopPropagation: import("@angular/core").
|
|
31
|
+
stopPropagation: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
|
|
32
32
|
/**
|
|
33
33
|
* Event emitted on click
|
|
34
34
|
*/
|
|
@@ -8,7 +8,7 @@ export declare class DropdownMenuBarItemCheckboxComponent {
|
|
|
8
8
|
/**
|
|
9
9
|
* Whether the checkbox is checked
|
|
10
10
|
*/
|
|
11
|
-
checked: import("@angular/core").
|
|
11
|
+
checked: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
|
|
12
12
|
/**
|
|
13
13
|
* Watch for changes to checked input
|
|
14
14
|
*/
|
|
@@ -16,7 +16,7 @@ export declare class DropdownMenuBarItemCheckboxComponent {
|
|
|
16
16
|
/**
|
|
17
17
|
* Whether the menu item is disabled
|
|
18
18
|
*/
|
|
19
|
-
disabled: import("@angular/core").
|
|
19
|
+
disabled: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
|
|
20
20
|
/**
|
|
21
21
|
* Custom indicator character or text
|
|
22
22
|
*/
|
|
@@ -24,7 +24,7 @@ export declare class DropdownMenuBarItemCheckboxComponent {
|
|
|
24
24
|
/**
|
|
25
25
|
* Whether to show the indicator
|
|
26
26
|
*/
|
|
27
|
-
showIndicator: import("@angular/core").
|
|
27
|
+
showIndicator: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
|
|
28
28
|
/**
|
|
29
29
|
* Custom CSS classes
|
|
30
30
|
*/
|
|
@@ -41,7 +41,7 @@ export declare class DropdownMenuBarItemCheckboxComponent {
|
|
|
41
41
|
* Stop event propagation for activation events
|
|
42
42
|
* @defaultValue false
|
|
43
43
|
*/
|
|
44
|
-
stopPropagation: import("@angular/core").
|
|
44
|
+
stopPropagation: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
|
|
45
45
|
/**
|
|
46
46
|
* Event emitted on click
|
|
47
47
|
*/
|
|
@@ -8,7 +8,7 @@ export declare class DropdownMenuBarItemRadioComponent {
|
|
|
8
8
|
/**
|
|
9
9
|
* Whether the radio is checked
|
|
10
10
|
*/
|
|
11
|
-
checked: import("@angular/core").
|
|
11
|
+
checked: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
|
|
12
12
|
/**
|
|
13
13
|
* The value of this radio item
|
|
14
14
|
*/
|
|
@@ -16,7 +16,7 @@ export declare class DropdownMenuBarItemRadioComponent {
|
|
|
16
16
|
/**
|
|
17
17
|
* Whether the menu item is disabled
|
|
18
18
|
*/
|
|
19
|
-
disabled: import("@angular/core").
|
|
19
|
+
disabled: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
|
|
20
20
|
/**
|
|
21
21
|
* Custom indicator character or text
|
|
22
22
|
*/
|
|
@@ -24,7 +24,7 @@ export declare class DropdownMenuBarItemRadioComponent {
|
|
|
24
24
|
/**
|
|
25
25
|
* Whether to show the indicator
|
|
26
26
|
*/
|
|
27
|
-
showIndicator: import("@angular/core").
|
|
27
|
+
showIndicator: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
|
|
28
28
|
/**
|
|
29
29
|
* Custom CSS classes
|
|
30
30
|
*/
|
|
@@ -41,7 +41,7 @@ export declare class DropdownMenuBarItemRadioComponent {
|
|
|
41
41
|
* Stop event propagation for activation events
|
|
42
42
|
* @defaultValue false
|
|
43
43
|
*/
|
|
44
|
-
stopPropagation: import("@angular/core").
|
|
44
|
+
stopPropagation: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
|
|
45
45
|
/**
|
|
46
46
|
* Event emitted on click
|
|
47
47
|
*/
|
|
@@ -7,7 +7,7 @@ export declare class DropdownMenuBarSubTriggerComponent {
|
|
|
7
7
|
private readonly elementRef;
|
|
8
8
|
private readonly isOpen;
|
|
9
9
|
private hoverTimeout;
|
|
10
|
-
readonly disabled: import("@angular/core").
|
|
10
|
+
readonly disabled: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
|
|
11
11
|
readonly className: import("@angular/core").InputSignal<string | undefined>;
|
|
12
12
|
readonly chevronIcon: import("@angular/core").InputSignal<string>;
|
|
13
13
|
/**
|
|
@@ -10,7 +10,7 @@ export declare class DropdownMenuBarTriggerComponent {
|
|
|
10
10
|
/**
|
|
11
11
|
* Whether the trigger is disabled
|
|
12
12
|
*/
|
|
13
|
-
disabled: import("@angular/core").
|
|
13
|
+
disabled: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
|
|
14
14
|
/**
|
|
15
15
|
* Menu template reference for the clean API (menuTriggerFor)
|
|
16
16
|
*/
|
|
@@ -9,7 +9,7 @@ export declare class DropdownContextMenuTriggerComponent {
|
|
|
9
9
|
/**
|
|
10
10
|
* Whether the context menu is disabled
|
|
11
11
|
*/
|
|
12
|
-
disabled: import("@angular/core").
|
|
12
|
+
disabled: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
|
|
13
13
|
/**
|
|
14
14
|
* Handle menu opened - prevent body scroll
|
|
15
15
|
*/
|
|
@@ -29,7 +29,7 @@ export declare class DropdownMenuChevronComponent {
|
|
|
29
29
|
/**
|
|
30
30
|
* Whether the menu is open (for rotation) - now uses service or input
|
|
31
31
|
*/
|
|
32
|
-
isOpen: import("@angular/core").
|
|
32
|
+
isOpen: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
|
|
33
33
|
/**
|
|
34
34
|
* Computed open state that uses service first, then input
|
|
35
35
|
*/
|
|
@@ -8,11 +8,11 @@ export declare class DropdownMenuItemComponent {
|
|
|
8
8
|
/**
|
|
9
9
|
* Whether the menu item is disabled
|
|
10
10
|
*/
|
|
11
|
-
disabled: import("@angular/core").
|
|
11
|
+
disabled: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
|
|
12
12
|
/**
|
|
13
13
|
* Whether the menu item is active
|
|
14
14
|
*/
|
|
15
|
-
active: import("@angular/core").
|
|
15
|
+
active: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
|
|
16
16
|
/**
|
|
17
17
|
* Optional keyboard shortcut text
|
|
18
18
|
*/
|
|
@@ -29,7 +29,7 @@ export declare class DropdownMenuItemComponent {
|
|
|
29
29
|
* Stop event propagation for activation events
|
|
30
30
|
* @defaultValue false
|
|
31
31
|
*/
|
|
32
|
-
stopPropagation: import("@angular/core").
|
|
32
|
+
stopPropagation: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
|
|
33
33
|
/**
|
|
34
34
|
* Event emitted on click
|
|
35
35
|
*/
|
|
@@ -6,7 +6,7 @@ import * as i1 from "@angular/cdk/menu";
|
|
|
6
6
|
export declare class DropdownMenuSubTriggerComponent {
|
|
7
7
|
private readonly dropdownMenuService;
|
|
8
8
|
readonly iconChevronRight = "<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 24 24\" fill=\"currentColor\"><path d=\"M10 6L8.59 7.41L13.17 12l-4.58 4.59L10 18l6-6z\"></path></svg>";
|
|
9
|
-
readonly disabled: import("@angular/core").
|
|
9
|
+
readonly disabled: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
|
|
10
10
|
readonly className: import("@angular/core").InputSignal<string | undefined>;
|
|
11
11
|
private readonly isOpen;
|
|
12
12
|
readonly triggerClass: import("@angular/core").Signal<string>;
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
# Empty State
|
|
2
|
+
|
|
3
|
+
Import: `@sixbell-telco/sdk/components/empty-state`
|
|
4
|
+
|
|
5
|
+
Selectors: `st-empty-state`, `st-empty-state-media`, `st-empty-state-actions`
|
|
6
|
+
|
|
7
|
+
Placeholder for an area with nothing to show: theme illustration (or projected media), heading, description and at most one call to action.
|
|
8
|
+
|
|
9
|
+
## Usage
|
|
10
|
+
|
|
11
|
+
```html
|
|
12
|
+
<st-empty-state heading="No services yet" description="Create the first service to start routing traffic.">
|
|
13
|
+
<st-empty-state-actions>
|
|
14
|
+
<st-button variant="primary" [icon]="addIcon">New service</st-button>
|
|
15
|
+
</st-empty-state-actions>
|
|
16
|
+
</st-empty-state>
|
|
17
|
+
```
|
|
18
|
+
|
|
19
|
+
Inside a table, project it into `st-table` with `size="sm"`; it replaces the built-in "no data" / "no results" blocks:
|
|
20
|
+
|
|
21
|
+
```html
|
|
22
|
+
<st-table [data]="rows()" [totalItems]="total()">
|
|
23
|
+
<thead>
|
|
24
|
+
…
|
|
25
|
+
</thead>
|
|
26
|
+
<tbody>
|
|
27
|
+
…
|
|
28
|
+
</tbody>
|
|
29
|
+
<st-empty-state size="sm" heading="No tables yet" description="Create a table to store lookup values." />
|
|
30
|
+
</st-table>
|
|
31
|
+
```
|
|
32
|
+
|
|
33
|
+
## Notes
|
|
34
|
+
|
|
35
|
+
- Inputs: `heading`, `description`, `illustration` (theme asset key, default `empty-illustration`; `null` hides it), `size` (`md` | `sm`), `class`.
|
|
36
|
+
- CTA rule: a single `primary` button when the empty area is the creation point; a single `secondary` "Limpiar filtros" for no results; otherwise no button.
|
|
37
|
+
- Never show it while data is loading.
|
|
38
|
+
- It provides the `TABLE_EMPTY_STATE` token from the dependency-free `@sixbell-telco/sdk/components/table/tokens` entry, which is how `st-table` and `st-data-table` detect it. Using `st-empty-state` does not load the table or data-table entry.
|
|
39
|
+
- Opaque `base-100` surface with `base-content` text; the illustration is decorative (`alt=""`).
|
|
40
|
+
- Replaces the `app-empty-table` copies in consumer apps.
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './src/empty-state.component';
|
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
/**
|
|
3
|
+
* @internal
|
|
4
|
+
* Layout classes per size. The surface is opaque (`bg-base-100`) so a coloured backdrop, such as the modern layout band, never shows through.
|
|
5
|
+
*/
|
|
6
|
+
export declare const emptyStateComponent: (props?: ({
|
|
7
|
+
size?: "sm" | "md" | null | undefined;
|
|
8
|
+
} & import("class-variance-authority/types").ClassProp) | undefined) => string;
|
|
9
|
+
/** Size of the empty state. `sm` fits inside a table body. */
|
|
10
|
+
export type EmptyStateSizeProps = 'sm' | 'md' | null | undefined;
|
|
11
|
+
/** Custom artwork for `st-empty-state`; replaces the theme illustration. */
|
|
12
|
+
export declare class EmptyStateMediaComponent {
|
|
13
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<EmptyStateMediaComponent, never>;
|
|
14
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<EmptyStateMediaComponent, "st-empty-state-media", never, {}, {}, never, ["*"], true, never>;
|
|
15
|
+
}
|
|
16
|
+
/**
|
|
17
|
+
* Call to action of `st-empty-state`. Project a single button:
|
|
18
|
+
* a `primary` CTA when the empty area is the creation point, or a `secondary` "Limpiar filtros" for no results.
|
|
19
|
+
*/
|
|
20
|
+
export declare class EmptyStateActionsComponent {
|
|
21
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<EmptyStateActionsComponent, never>;
|
|
22
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<EmptyStateActionsComponent, "st-empty-state-actions", never, {}, {}, never, ["*"], true, never>;
|
|
23
|
+
}
|
|
24
|
+
/**
|
|
25
|
+
* Empty area placeholder: theme illustration (or projected media), heading, description and an optional single CTA.
|
|
26
|
+
*
|
|
27
|
+
* @remarks
|
|
28
|
+
* Project it into `st-table` to replace the table's built-in "no data" / "no results" blocks.
|
|
29
|
+
* Never show it while the data is loading.
|
|
30
|
+
*
|
|
31
|
+
* @example
|
|
32
|
+
* ```html
|
|
33
|
+
* <st-empty-state heading="No services yet" description="Create the first service to start routing traffic.">
|
|
34
|
+
* <st-empty-state-actions>
|
|
35
|
+
* <st-button variant="primary" [icon]="addIcon">New service</st-button>
|
|
36
|
+
* </st-empty-state-actions>
|
|
37
|
+
* </st-empty-state>
|
|
38
|
+
* ```
|
|
39
|
+
*/
|
|
40
|
+
export declare class EmptyStateComponent {
|
|
41
|
+
private readonly themeService;
|
|
42
|
+
private readonly themeAssetsService;
|
|
43
|
+
/** Short heading. Nothing is rendered when empty. */
|
|
44
|
+
heading: import("@angular/core").InputSignal<string>;
|
|
45
|
+
/** Supporting text that says what could appear here and how to populate it. Nothing is rendered when empty. */
|
|
46
|
+
description: import("@angular/core").InputSignal<string>;
|
|
47
|
+
/**
|
|
48
|
+
* Theme asset key of the illustration, resolved for the active theme and scheme. `null` or `''` hides it.
|
|
49
|
+
* Projected `st-empty-state-media` replaces it.
|
|
50
|
+
* @defaultValue 'empty-illustration'
|
|
51
|
+
*/
|
|
52
|
+
illustration: import("@angular/core").InputSignal<string | null>;
|
|
53
|
+
/**
|
|
54
|
+
* Size; `sm` is the compact variant for in-table use
|
|
55
|
+
* @defaultValue 'md'
|
|
56
|
+
*/
|
|
57
|
+
size: import("@angular/core").InputSignal<EmptyStateSizeProps>;
|
|
58
|
+
/** Additional classes merged onto the host */
|
|
59
|
+
class: import("@angular/core").InputSignal<string>;
|
|
60
|
+
private readonly media;
|
|
61
|
+
/** @internal */
|
|
62
|
+
protected readonly hasMedia: import("@angular/core").Signal<boolean>;
|
|
63
|
+
/** @internal */
|
|
64
|
+
protected readonly illustrationUrl: import("@angular/core").Signal<string | null>;
|
|
65
|
+
/** @internal */
|
|
66
|
+
protected readonly illustrationClass: import("@angular/core").Signal<string>;
|
|
67
|
+
/** @internal */
|
|
68
|
+
protected readonly headingPreset: import("@angular/core").Signal<"7" | "6">;
|
|
69
|
+
/** @internal */
|
|
70
|
+
readonly componentClass: import("@angular/core").Signal<string>;
|
|
71
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<EmptyStateComponent, never>;
|
|
72
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<EmptyStateComponent, "st-empty-state", never, { "heading": { "alias": "heading"; "required": false; "isSignal": true; }; "description": { "alias": "description"; "required": false; "isSignal": true; }; "illustration": { "alias": "illustration"; "required": false; "isSignal": true; }; "size": { "alias": "size"; "required": false; "isSignal": true; }; "class": { "alias": "class"; "required": false; "isSignal": true; }; }, {}, ["media"], ["st-empty-state-media", "*", "st-empty-state-actions"], true, never>;
|
|
73
|
+
}
|
|
@@ -50,7 +50,7 @@ export declare class DropzoneComponent implements ControlValueAccessor {
|
|
|
50
50
|
* Whether to display uploaded files list
|
|
51
51
|
* @defaultValue true
|
|
52
52
|
*/
|
|
53
|
-
showFiles: import("@angular/core").
|
|
53
|
+
showFiles: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
|
|
54
54
|
/**
|
|
55
55
|
* Allowed file extensions (e.g., ['.pdf', '.mp3'])
|
|
56
56
|
*/
|
|
@@ -59,7 +59,7 @@ export declare class DropzoneComponent implements ControlValueAccessor {
|
|
|
59
59
|
* Whether upload is in progress
|
|
60
60
|
* @defaultValue false
|
|
61
61
|
*/
|
|
62
|
-
uploading: import("@angular/core").
|
|
62
|
+
uploading: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
|
|
63
63
|
/**
|
|
64
64
|
* Whether the component is disabled
|
|
65
65
|
* @defaultValue false
|
|
@@ -69,7 +69,7 @@ export declare class DropzoneComponent implements ControlValueAccessor {
|
|
|
69
69
|
* Whether multiple files can be uploaded
|
|
70
70
|
* @defaultValue false
|
|
71
71
|
*/
|
|
72
|
-
multiple: import("@angular/core").
|
|
72
|
+
multiple: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
|
|
73
73
|
/**
|
|
74
74
|
* HTML name attribute for the input
|
|
75
75
|
* @defaultValue 'file'
|
|
@@ -104,7 +104,7 @@ export declare class DropzoneComponent implements ControlValueAccessor {
|
|
|
104
104
|
* Stop event propagation for activation events
|
|
105
105
|
* @defaultValue false
|
|
106
106
|
*/
|
|
107
|
-
stopPropagation: import("@angular/core").
|
|
107
|
+
stopPropagation: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
|
|
108
108
|
/**
|
|
109
109
|
* Color variant for the file-action tooltips (play, download, remove)
|
|
110
110
|
* @defaultValue 'base'
|
|
@@ -65,7 +65,7 @@ export declare class FileUploaderComponent implements ControlValueAccessor {
|
|
|
65
65
|
* Whether to show allowed file extensions
|
|
66
66
|
* @defaultValue true
|
|
67
67
|
*/
|
|
68
|
-
showExtensions: import("@angular/core").
|
|
68
|
+
showExtensions: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
|
|
69
69
|
/**
|
|
70
70
|
* Allowed file extensions (e.g., ['.pdf', '.docx'])
|
|
71
71
|
*/
|
|
@@ -83,7 +83,7 @@ export declare class FileUploaderComponent implements ControlValueAccessor {
|
|
|
83
83
|
* Stop event propagation for activation events
|
|
84
84
|
* @defaultValue false
|
|
85
85
|
*/
|
|
86
|
-
stopPropagation: import("@angular/core").
|
|
86
|
+
stopPropagation: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
|
|
87
87
|
/**
|
|
88
88
|
* Event emitted on click
|
|
89
89
|
*/
|
|
@@ -72,7 +72,7 @@ export declare class CheckboxComponent implements ControlValueAccessor {
|
|
|
72
72
|
* Stop event propagation for activation events
|
|
73
73
|
* @defaultValue false
|
|
74
74
|
*/
|
|
75
|
-
stopPropagation: import("@angular/core").
|
|
75
|
+
stopPropagation: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
|
|
76
76
|
/**
|
|
77
77
|
* Event emitted on click
|
|
78
78
|
*/
|
|
@@ -24,3 +24,4 @@ Searchable select. Clear is a sibling of the trigger; the chevron is a custom ic
|
|
|
24
24
|
- `allowClear` keeps the clear control in tab order after the trigger. Do not nest a button in the trigger.
|
|
25
25
|
- Overlay animation follows CDK position with a 4px gap above or below.
|
|
26
26
|
- `selectionType` is `'single'` or `'multiple'`.
|
|
27
|
+
- Async options: a value written through the form (`writeValue`) before its options exist is kept and resolved, with its label, once a matching option arrives, without calling `onChange` (the control stays pristine). It is resolved again whenever `options` is replaced, so a list that is filtered or reloaded later still shows the label. A user selection, clear or `writeValue(null)` replaces it (clear is ignored while disabled). In `multiple` mode the values that match show right away and the ones without an option stay pending in the form, showing when their option arrives; a user toggle emits the visible values plus the still-pending ones, so nothing the form holds is silently dropped. Pending values are cleared by `writeValue`, a reset or a user clear.
|
|
@@ -105,21 +105,36 @@ export declare class ComboboxComponent implements ControlValueAccessor {
|
|
|
105
105
|
* Whether to show optional indicator
|
|
106
106
|
* @defaultValue false
|
|
107
107
|
*/
|
|
108
|
-
showOptional: import("@angular/core").
|
|
108
|
+
showOptional: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
|
|
109
109
|
/**
|
|
110
110
|
* Optional indicator text (translation key or literal)
|
|
111
111
|
* @defaultValue 'sdk.formFields.optional'
|
|
112
112
|
*/
|
|
113
113
|
optionalText: import("@angular/core").InputSignal<string>;
|
|
114
|
+
/**
|
|
115
|
+
* Mark the field as required: shows the `*` marker and announces the field as required.
|
|
116
|
+
* When not set, the enclosing `st-form-item` `required`, then `Validators.required` on the bound control decide.
|
|
117
|
+
*/
|
|
118
|
+
required: import("@angular/core").InputSignalWithTransform<boolean | undefined, unknown>;
|
|
119
|
+
/** @internal Required state and hint ids from the enclosing `st-form-item`. */
|
|
120
|
+
protected readonly fieldA11y: import("@sixbell-telco/sdk/components/forms/form-item").FormFieldA11y;
|
|
114
121
|
/**
|
|
115
122
|
* Whether to use ghost (transparent) styling
|
|
116
123
|
* @default false
|
|
117
124
|
*/
|
|
118
|
-
ghost: import("@angular/core").
|
|
125
|
+
ghost: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
|
|
119
126
|
/**
|
|
120
127
|
* The HTML name attribute for the underlying form control
|
|
121
128
|
*/
|
|
122
129
|
name: import("@angular/core").InputSignal<string | null>;
|
|
130
|
+
/**
|
|
131
|
+
* Id of the focusable control, used by its label. A unique id is generated when omitted.
|
|
132
|
+
*/
|
|
133
|
+
inputId: import("@angular/core").InputSignal<string | null>;
|
|
134
|
+
/** @internal */
|
|
135
|
+
private readonly generatedId;
|
|
136
|
+
/** @internal Id applied to the focusable control and referenced by its label */
|
|
137
|
+
protected readonly resolvedId: import("@angular/core").Signal<string>;
|
|
123
138
|
/**
|
|
124
139
|
* Placeholder text displayed when no option is selected
|
|
125
140
|
*/
|
|
@@ -146,13 +161,13 @@ export declare class ComboboxComponent implements ControlValueAccessor {
|
|
|
146
161
|
* Works for both single and multiple selection modes
|
|
147
162
|
* @default true
|
|
148
163
|
*/
|
|
149
|
-
allowClear: import("@angular/core").
|
|
164
|
+
allowClear: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
|
|
150
165
|
/**
|
|
151
166
|
* Whether to show a "Clear All" button at the bottom of the dropdown for multiple selection
|
|
152
167
|
* Only applies when selectionType is 'multiple'
|
|
153
168
|
* @default true
|
|
154
169
|
*/
|
|
155
|
-
allowClearAll: import("@angular/core").
|
|
170
|
+
allowClearAll: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
|
|
156
171
|
/**
|
|
157
172
|
* Placeholder text for the search input field
|
|
158
173
|
* @default 'Search...'
|
|
@@ -192,7 +207,7 @@ export declare class ComboboxComponent implements ControlValueAccessor {
|
|
|
192
207
|
* Whether to enable debounced search functionality
|
|
193
208
|
* @default false
|
|
194
209
|
*/
|
|
195
|
-
searchDebounced: import("@angular/core").
|
|
210
|
+
searchDebounced: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
|
|
196
211
|
/**
|
|
197
212
|
* Debounce time in milliseconds for search input
|
|
198
213
|
* @default 300
|
|
@@ -210,7 +225,7 @@ export declare class ComboboxComponent implements ControlValueAccessor {
|
|
|
210
225
|
* Stop event propagation for activation events
|
|
211
226
|
* @defaultValue false
|
|
212
227
|
*/
|
|
213
|
-
stopPropagation: import("@angular/core").
|
|
228
|
+
stopPropagation: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
|
|
214
229
|
/**
|
|
215
230
|
* Event emitted on click
|
|
216
231
|
*/
|
|
@@ -297,6 +312,8 @@ export declare class ComboboxComponent implements ControlValueAccessor {
|
|
|
297
312
|
private readonly stateSignal;
|
|
298
313
|
/** Callback function for value changes */
|
|
299
314
|
private onChange;
|
|
315
|
+
/** Value written through the accessor before any matching option was bound */
|
|
316
|
+
private pendingValue;
|
|
300
317
|
/** Callback function for touch events */
|
|
301
318
|
private onTouched;
|
|
302
319
|
constructor();
|
|
@@ -402,6 +419,11 @@ export declare class ComboboxComponent implements ControlValueAccessor {
|
|
|
402
419
|
* @param value - The new value to set
|
|
403
420
|
*/
|
|
404
421
|
writeValue(value: any): void;
|
|
422
|
+
/**
|
|
423
|
+
* Resolves a value written before its options existed once matching options arrive.
|
|
424
|
+
* Multiple selection shows the matching values and keeps the rest pending until they resolve. Never calls onChange.
|
|
425
|
+
*/
|
|
426
|
+
private readonly pendingValueEffect;
|
|
405
427
|
/**
|
|
406
428
|
* Registers a callback function to be called when the value changes
|
|
407
429
|
* @param fn - The callback function
|
|
@@ -564,6 +586,6 @@ export declare class ComboboxComponent implements ControlValueAccessor {
|
|
|
564
586
|
*/
|
|
565
587
|
private setupSearchQueryEmission;
|
|
566
588
|
static ɵfac: i0.ɵɵFactoryDeclaration<ComboboxComponent, never>;
|
|
567
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<ComboboxComponent, "st-combobox", never, { "variant": { "alias": "variant"; "required": false; "isSignal": true; }; "size": { "alias": "size"; "required": false; "isSignal": true; }; "showOptional": { "alias": "showOptional"; "required": false; "isSignal": true; }; "optionalText": { "alias": "optionalText"; "required": false; "isSignal": true; }; "ghost": { "alias": "ghost"; "required": false; "isSignal": true; }; "name": { "alias": "name"; "required": false; "isSignal": true; }; "placeholder": { "alias": "placeholder"; "required": false; "isSignal": true; }; "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; "label": { "alias": "label"; "required": false; "isSignal": true; }; "parentForm": { "alias": "parentForm"; "required": false; "isSignal": true; }; "formControlName": { "alias": "formControlName"; "required": false; "isSignal": true; }; "allowClear": { "alias": "allowClear"; "required": false; "isSignal": true; }; "allowClearAll": { "alias": "allowClearAll"; "required": false; "isSignal": true; }; "searchPlaceholder": { "alias": "searchPlaceholder"; "required": false; "isSignal": true; }; "noResultsText": { "alias": "noResultsText"; "required": false; "isSignal": true; }; "value": { "alias": "value"; "required": false; "isSignal": true; }; "options": { "alias": "options"; "required": false; "isSignal": true; }; "displayKey": { "alias": "displayKey"; "required": false; "isSignal": true; }; "valueKey": { "alias": "valueKey"; "required": false; "isSignal": true; }; "selectionType": { "alias": "selectionType"; "required": false; "isSignal": true; }; "searchDebounced": { "alias": "searchDebounced"; "required": false; "isSignal": true; }; "searchDebounceTime": { "alias": "searchDebounceTime"; "required": false; "isSignal": true; }; "stopPropagation": { "alias": "stopPropagation"; "required": false; "isSignal": true; }; }, { "disabled": "disabledChange"; "value": "valueChange"; "blurred": "blurred"; "valueUpdated": "valueUpdated"; "clicked": "clicked"; "keyDownEnter": "keyDownEnter"; "keyDownSpace": "keyDownSpace"; "triggered": "triggered"; "searchQuery": "searchQuery"; }, never, ["*"], true, never>;
|
|
589
|
+
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>;
|
|
568
590
|
}
|
|
569
591
|
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'
|
|
@@ -123,6 +130,11 @@ export declare class DatepickerComponent implements ControlValueAccessor {
|
|
|
123
130
|
rangeValue: import("@angular/core").InputSignal<DateRange | null>;
|
|
124
131
|
/** Name attribute for associated input (useful when wrapping with st-input). */
|
|
125
132
|
name: import("@angular/core").InputSignal<string>;
|
|
133
|
+
/**
|
|
134
|
+
* Id of the projected trigger control that the hidden label points to (falls back to `name`).
|
|
135
|
+
* Give the same id to the projected control, for example `<st-input [inputId]="...">`.
|
|
136
|
+
*/
|
|
137
|
+
inputId: import("@angular/core").InputSignal<string | null>;
|
|
126
138
|
/**
|
|
127
139
|
* Number of calendars to show in range mode
|
|
128
140
|
* @defaultValue 2
|
|
@@ -132,22 +144,22 @@ export declare class DatepickerComponent implements ControlValueAccessor {
|
|
|
132
144
|
* Whether to show quick action buttons for common ranges
|
|
133
145
|
* @defaultValue true
|
|
134
146
|
*/
|
|
135
|
-
showQuickActions: import("@angular/core").
|
|
147
|
+
showQuickActions: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
|
|
136
148
|
/**
|
|
137
149
|
* Whether the user can clear the current selection from overlay Clear and public clear methods
|
|
138
150
|
* @defaultValue true
|
|
139
151
|
*/
|
|
140
|
-
allowClear: import("@angular/core").
|
|
152
|
+
allowClear: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
|
|
141
153
|
/**
|
|
142
154
|
* Whether to show time pickers for start/end
|
|
143
155
|
* @defaultValue false
|
|
144
156
|
*/
|
|
145
|
-
showTimePicker: import("@angular/core").
|
|
157
|
+
showTimePicker: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
|
|
146
158
|
/**
|
|
147
159
|
* Whether to include seconds in time inputs and display
|
|
148
160
|
* @defaultValue false
|
|
149
161
|
*/
|
|
150
|
-
showSeconds: import("@angular/core").
|
|
162
|
+
showSeconds: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
|
|
151
163
|
/**
|
|
152
164
|
* Time display format for trigger text
|
|
153
165
|
* @defaultValue '24h'
|
|
@@ -163,7 +175,7 @@ export declare class DatepickerComponent implements ControlValueAccessor {
|
|
|
163
175
|
* Use locale-based formatting for the trigger display instead of the custom pattern
|
|
164
176
|
* @defaultValue false
|
|
165
177
|
*/
|
|
166
|
-
useLocaleDisplay: import("@angular/core").
|
|
178
|
+
useLocaleDisplay: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
|
|
167
179
|
/**
|
|
168
180
|
* Locale date style when useLocaleDisplay=true
|
|
169
181
|
* @defaultValue 'short'
|
|
@@ -345,5 +357,5 @@ export declare class DatepickerComponent implements ControlValueAccessor {
|
|
|
345
357
|
onStartTimeChange(ev: Event): void;
|
|
346
358
|
onEndTimeChange(ev: Event): void;
|
|
347
359
|
static ɵfac: i0.ɵɵFactoryDeclaration<DatepickerComponent, never>;
|
|
348
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<DatepickerComponent, "st-datepicker", ["stDatepicker"], { "label": { "alias": "label"; "required": false; "isSignal": true; }; "showOptional": { "alias": "showOptional"; "required": false; "isSignal": true; }; "optionalText": { "alias": "optionalText"; "required": false; "isSignal": true; }; "mode": { "alias": "mode"; "required": false; "isSignal": true; }; "format": { "alias": "format"; "required": false; "isSignal": true; }; "language": { "alias": "language"; "required": false; "isSignal": true; }; "minDate": { "alias": "minDate"; "required": false; "isSignal": true; }; "maxDate": { "alias": "maxDate"; "required": false; "isSignal": true; }; "value": { "alias": "value"; "required": false; "isSignal": true; }; "rangeValue": { "alias": "rangeValue"; "required": false; "isSignal": true; }; "name": { "alias": "name"; "required": false; "isSignal": true; }; "rangeCalendars": { "alias": "rangeCalendars"; "required": false; "isSignal": true; }; "showQuickActions": { "alias": "showQuickActions"; "required": false; "isSignal": true; }; "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>;
|
|
349
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.
|