@sixbell-telco/sdk 4.2.0 → 4.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +81 -1
- package/README.md +98 -66
- package/_index.css +2 -1586
- package/components/accordion/accordion-item/accordion-item.component.d.ts +1 -1
- package/components/alert/README.md +27 -0
- package/components/alert/index.d.ts +5 -0
- package/components/alert/public-api.d.ts +1 -0
- package/components/alert/src/alert.component.d.ts +85 -0
- package/components/audio-player/audio-timeline/audio-timeline.component.d.ts +1 -1
- package/components/audio-player/button-play/button-play.component.d.ts +7 -7
- package/components/audio-player/src/audio-player.component.d.ts +2 -2
- package/components/audio-player/volume-control/volume-control.component.d.ts +1 -1
- package/components/avatar/README.md +1 -0
- package/components/avatar/src/avatar.component.d.ts +2 -2
- package/components/badge/src/badge.component.d.ts +4 -4
- package/components/button/README.md +5 -4
- package/components/button/src/button.component.d.ts +38 -16
- package/components/card/README.md +2 -0
- package/components/card/card-footer/card-footer.component.d.ts +37 -2
- package/components/card/card-section-group/card-section-group.component.d.ts +1 -1
- package/components/card/src/card.component.d.ts +6 -6
- package/components/countdown/src/countdown.component.d.ts +4 -4
- package/components/data-table/README.md +26 -0
- package/components/data-table/expandable/expandable.component.d.ts +4 -4
- package/components/data-table/sortable-header/sortable-header.component.d.ts +1 -1
- package/components/data-table/src/data-table.component.d.ts +15 -8
- package/components/data-table/sub-component-toggle/sub-component-toggle.component.d.ts +1 -1
- package/components/description-list/README.md +27 -0
- package/components/description-list/index.d.ts +5 -0
- package/components/description-list/public-api.d.ts +1 -0
- package/components/description-list/src/description-list.component.d.ts +90 -0
- package/components/dialog/README.md +10 -6
- package/components/dialog/dialog-actions/dialog-actions.component.d.ts +4 -0
- package/components/dialog/src/dialog.component.d.ts +27 -6
- package/components/dialog/src/fullscreen-block-scroll-strategy.d.ts +31 -0
- package/components/divider/src/divider.component.d.ts +1 -1
- package/components/dropdown/README.md +1 -1
- package/components/dropdown/dropdown-content/dropdown-content.component.d.ts +1 -1
- package/components/dropdown/dropdown-item/dropdown-item.component.d.ts +4 -4
- package/components/dropdown/dropdown-item-checkbox/dropdown-item-checkbox.component.d.ts +5 -5
- package/components/dropdown/dropdown-item-radio/dropdown-item-radio.component.d.ts +5 -5
- package/components/dropdown/dropdown-trigger/dropdown-trigger.component.d.ts +1 -1
- package/components/dropdown-menu/README.md +1 -1
- package/components/dropdown-menu/bar/dropdown-menu-bar/dropdown-menu-bar.component.d.ts +1 -1
- package/components/dropdown-menu/bar/dropdown-menu-bar-content/dropdown-menu-bar-content.component.d.ts +1 -1
- package/components/dropdown-menu/bar/dropdown-menu-bar-item/dropdown-menu-bar-item.component.d.ts +3 -3
- package/components/dropdown-menu/bar/dropdown-menu-bar-item-checkbox/dropdown-menu-bar-item-checkbox.component.d.ts +4 -4
- package/components/dropdown-menu/bar/dropdown-menu-bar-item-radio/dropdown-menu-bar-item-radio.component.d.ts +4 -4
- package/components/dropdown-menu/bar/dropdown-menu-bar-sub-trigger/dropdown-menu-bar-sub-trigger.component.d.ts +1 -1
- package/components/dropdown-menu/bar/dropdown-menu-bar-trigger/dropdown-menu-bar-trigger.component.d.ts +1 -1
- package/components/dropdown-menu/context/dropdown-context-menu-trigger/dropdown-context-menu-trigger.component.d.ts +1 -1
- package/components/dropdown-menu/dropdown-menu-chevron/dropdown-menu-chevron.component.d.ts +1 -1
- package/components/dropdown-menu/src/dropdown-menu-item/dropdown-menu-item.component.d.ts +3 -3
- package/components/dropdown-menu/src/dropdown-menu-sub-trigger/dropdown-menu-sub-trigger.component.d.ts +1 -1
- package/components/empty-state/README.md +40 -0
- package/components/empty-state/index.d.ts +5 -0
- package/components/empty-state/public-api.d.ts +1 -0
- package/components/empty-state/src/empty-state.component.d.ts +73 -0
- package/components/file-upload/file-dropzone/file-dropzone.component.d.ts +4 -4
- package/components/file-upload/file-uploader/file-uploader.component.d.ts +2 -2
- package/components/forms/checkbox/src/checkbox.component.d.ts +1 -1
- package/components/forms/combobox/README.md +1 -0
- package/components/forms/combobox/src/combobox.component.d.ts +21 -7
- package/components/forms/date-picker/src/date-picker.component.d.ts +16 -9
- package/components/forms/form-hint/README.md +29 -0
- package/components/forms/form-hint/index.d.ts +5 -0
- package/components/forms/form-hint/public-api.d.ts +1 -0
- package/components/forms/form-hint/src/form-hint.component.d.ts +38 -0
- package/components/forms/form-item/src/form-item.component.d.ts +45 -1
- package/components/forms/input/src/input.component.d.ts +15 -8
- package/components/forms/radio/src/radio.component.d.ts +1 -1
- package/components/forms/range/src/range.component.d.ts +18 -4
- package/components/forms/select/README.md +1 -0
- package/components/forms/select/src/select.component.d.ts +20 -5
- package/components/forms/switch/src/switch.component.d.ts +1 -1
- package/components/forms/textarea/src/textarea.component.d.ts +12 -5
- package/components/forms/toggle/src/toggle.component.d.ts +1 -1
- package/components/notification/src/notification.component.d.ts +1 -1
- package/components/overlay/README.md +1 -1
- package/components/overlay/overlay-trigger/overlay-trigger.component.d.ts +1 -1
- package/components/overlay/src/overlay.component.d.ts +1 -1
- package/components/paginator/components/pagination-item/pagination-item.component.d.ts +3 -3
- package/components/progress/src/progress.component.d.ts +1 -1
- package/components/segmented-button/README.md +57 -0
- package/components/segmented-button/index.d.ts +5 -0
- package/components/segmented-button/public-api.d.ts +1 -0
- package/components/segmented-button/src/segmented-button.component.d.ts +110 -0
- package/components/sonner/toaster/src/toaster.component.d.ts +3 -3
- package/components/tab/src/tab.component.d.ts +2 -2
- package/components/table/README.md +51 -3
- package/components/table/public-api.d.ts +1 -0
- package/components/table/src/table.component.d.ts +20 -13
- package/components/table/table-action/table-action.component.d.ts +14 -3
- package/components/table/table-actions/table-actions.component.d.ts +12 -1
- package/components/table/tokens/README.md +7 -0
- package/components/table/tokens/index.d.ts +5 -0
- package/components/table/tokens/public-api.d.ts +1 -0
- package/components/table/tokens/table-empty-state.d.ts +6 -0
- package/components/tooltip/README.md +22 -5
- package/components/tooltip/src/tooltip.component.d.ts +36 -4
- package/components/tree/README.md +73 -0
- package/components/tree/index.d.ts +5 -0
- package/components/tree/public-api.d.ts +1 -0
- package/components/tree/src/tree.component.d.ts +180 -0
- package/components/wizard/README.md +9 -0
- package/components/wizard/wizard-content/wizard-content.component.d.ts +1 -1
- package/components/wizard/wizard-wrapper/wizard-wrapper.component.d.ts +15 -6
- package/directives/auto-focus/src/auto-focus.directive.d.ts +1 -1
- package/directives/only-numbers/src/only-numbers.directive.d.ts +1 -1
- package/directives/truncate/README.md +49 -0
- package/directives/truncate/index.d.ts +5 -0
- package/directives/truncate/public-api.d.ts +1 -0
- package/directives/truncate/src/truncate-popover.component.d.ts +11 -0
- package/directives/truncate/src/truncate.directive.d.ts +96 -0
- package/fesm2022/sixbell-telco-sdk-components-accordion.mjs +2 -2
- package/fesm2022/sixbell-telco-sdk-components-accordion.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-components-alert.mjs +152 -0
- package/fesm2022/sixbell-telco-sdk-components-alert.mjs.map +1 -0
- package/fesm2022/sixbell-telco-sdk-components-audio-player.mjs +15 -15
- package/fesm2022/sixbell-telco-sdk-components-audio-player.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-components-avatar.mjs +4 -4
- package/fesm2022/sixbell-telco-sdk-components-avatar.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-components-badge.mjs +5 -5
- package/fesm2022/sixbell-telco-sdk-components-badge.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-components-button.mjs +53 -19
- package/fesm2022/sixbell-telco-sdk-components-button.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-components-card.mjs +61 -14
- package/fesm2022/sixbell-telco-sdk-components-card.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-components-countdown.mjs +5 -5
- package/fesm2022/sixbell-telco-sdk-components-countdown.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-components-data-table-sub-component-toggle.mjs +3 -3
- package/fesm2022/sixbell-telco-sdk-components-data-table-sub-component-toggle.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-components-data-table.mjs +34 -33
- package/fesm2022/sixbell-telco-sdk-components-data-table.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-components-description-list.mjs +200 -0
- package/fesm2022/sixbell-telco-sdk-components-description-list.mjs.map +1 -0
- package/fesm2022/sixbell-telco-sdk-components-dialog.mjs +128 -17
- package/fesm2022/sixbell-telco-sdk-components-dialog.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-components-divider.mjs +2 -2
- package/fesm2022/sixbell-telco-sdk-components-divider.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-components-dropdown-menu-bar.mjs +16 -16
- package/fesm2022/sixbell-telco-sdk-components-dropdown-menu-bar.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-components-dropdown-menu-context.mjs +2 -2
- package/fesm2022/sixbell-telco-sdk-components-dropdown-menu-context.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-components-dropdown-menu.mjs +6 -6
- package/fesm2022/sixbell-telco-sdk-components-dropdown-menu.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-components-dropdown.mjs +17 -17
- package/fesm2022/sixbell-telco-sdk-components-dropdown.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-components-dual-list.mjs +1 -1
- package/fesm2022/sixbell-telco-sdk-components-dual-list.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-components-empty-state.mjs +131 -0
- package/fesm2022/sixbell-telco-sdk-components-empty-state.mjs.map +1 -0
- package/fesm2022/sixbell-telco-sdk-components-file-upload.mjs +9 -9
- package/fesm2022/sixbell-telco-sdk-components-file-upload.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-components-forms-checkbox.mjs +2 -2
- package/fesm2022/sixbell-telco-sdk-components-forms-checkbox.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-components-forms-combobox.mjs +71 -25
- package/fesm2022/sixbell-telco-sdk-components-forms-combobox.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-components-forms-date-picker.mjs +23 -12
- package/fesm2022/sixbell-telco-sdk-components-forms-date-picker.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-components-forms-form-hint.mjs +81 -0
- package/fesm2022/sixbell-telco-sdk-components-forms-form-hint.mjs.map +1 -0
- package/fesm2022/sixbell-telco-sdk-components-forms-form-item.mjs +45 -3
- package/fesm2022/sixbell-telco-sdk-components-forms-form-item.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-components-forms-input.mjs +27 -13
- package/fesm2022/sixbell-telco-sdk-components-forms-input.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-components-forms-radio.mjs +2 -2
- package/fesm2022/sixbell-telco-sdk-components-forms-radio.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-components-forms-range.mjs +29 -7
- package/fesm2022/sixbell-telco-sdk-components-forms-range.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-components-forms-select.mjs +51 -15
- package/fesm2022/sixbell-telco-sdk-components-forms-select.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-components-forms-switch.mjs +2 -2
- package/fesm2022/sixbell-telco-sdk-components-forms-switch.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-components-forms-textarea.mjs +27 -22
- package/fesm2022/sixbell-telco-sdk-components-forms-textarea.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-components-forms-toggle.mjs +2 -2
- package/fesm2022/sixbell-telco-sdk-components-forms-toggle.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-components-notification.mjs +2 -2
- package/fesm2022/sixbell-telco-sdk-components-notification.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-components-overlay.mjs +3 -3
- package/fesm2022/sixbell-telco-sdk-components-overlay.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-components-paginator.mjs +4 -4
- package/fesm2022/sixbell-telco-sdk-components-paginator.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-components-progress.mjs +2 -2
- package/fesm2022/sixbell-telco-sdk-components-progress.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-components-segmented-button.mjs +329 -0
- package/fesm2022/sixbell-telco-sdk-components-segmented-button.mjs.map +1 -0
- package/fesm2022/sixbell-telco-sdk-components-sonner-toaster.mjs +4 -4
- package/fesm2022/sixbell-telco-sdk-components-sonner-toaster.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-components-sonner.mjs +4 -4
- package/fesm2022/sixbell-telco-sdk-components-sonner.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-components-tab.mjs +3 -3
- package/fesm2022/sixbell-telco-sdk-components-tab.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-components-table-tokens.mjs +14 -0
- package/fesm2022/sixbell-telco-sdk-components-table-tokens.mjs.map +1 -0
- package/fesm2022/sixbell-telco-sdk-components-table.mjs +63 -32
- package/fesm2022/sixbell-telco-sdk-components-table.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-components-tooltip.mjs +156 -25
- package/fesm2022/sixbell-telco-sdk-components-tooltip.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-components-tree.mjs +478 -0
- package/fesm2022/sixbell-telco-sdk-components-tree.mjs.map +1 -0
- package/fesm2022/sixbell-telco-sdk-components-wizard.mjs +18 -9
- package/fesm2022/sixbell-telco-sdk-components-wizard.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-directives-auto-focus.mjs +2 -2
- package/fesm2022/sixbell-telco-sdk-directives-auto-focus.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-directives-only-numbers.mjs +2 -2
- package/fesm2022/sixbell-telco-sdk-directives-only-numbers.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-directives-truncate.mjs +339 -0
- package/fesm2022/sixbell-telco-sdk-directives-truncate.mjs.map +1 -0
- package/fesm2022/sixbell-telco-sdk-layouts.mjs +43 -35
- package/fesm2022/sixbell-telco-sdk-layouts.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-utils-date.mjs +15 -2
- package/fesm2022/sixbell-telco-sdk-utils-date.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-utils-mfe.mjs +87 -2
- package/fesm2022/sixbell-telco-sdk-utils-mfe.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-utils-theme.mjs +234 -4
- package/fesm2022/sixbell-telco-sdk-utils-theme.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-utils-translation-testing.mjs +203 -0
- package/fesm2022/sixbell-telco-sdk-utils-translation-testing.mjs.map +1 -0
- package/fesm2022/sixbell-telco-sdk-utils-unsaved-changes.mjs +150 -0
- package/fesm2022/sixbell-telco-sdk-utils-unsaved-changes.mjs.map +1 -0
- package/i18n/sdk/en.json +224 -0
- package/i18n/sdk/es.json +224 -0
- package/i18n/sdk/pt.json +224 -0
- package/layouts/README.md +11 -10
- package/layouts/src/app-layout/app-layout.component.d.ts +11 -8
- package/layouts/src/layout.config.d.ts +1 -1
- package/layouts/src/navbar/navbar.component.d.ts +5 -5
- package/layouts/src/page-banner/page-banner.component.d.ts +6 -1
- package/layouts/src/side-menu/side-menu.component.d.ts +2 -2
- package/layouts/src/user-menu/user-menu.component.d.ts +5 -5
- package/package.json +51 -11
- package/src/_index.css +1616 -0
- package/utils/mfe/README.md +1 -0
- package/utils/mfe/src/hoist-property-rules.d.ts +13 -0
- package/utils/mfe/src/mfe-shadow-shell.component.d.ts +3 -0
- package/utils/theme/README.md +94 -1
- package/utils/theme/public-api.d.ts +2 -1
- package/utils/theme/src/models/theme.d.ts +32 -0
- package/utils/theme/src/overlay/theme-overlay.d.ts +33 -0
- package/utils/theme/src/providers/theme.provider.types.d.ts +7 -0
- package/utils/translation/README.md +61 -0
- package/utils/translation/testing/index.d.ts +5 -0
- package/utils/translation/testing/public-api.d.ts +2 -0
- package/utils/translation/testing/src/translation-testing.d.ts +96 -0
- package/utils/unsaved-changes/README.md +33 -0
- package/utils/unsaved-changes/index.d.ts +5 -0
- package/utils/unsaved-changes/public-api.d.ts +1 -0
- package/utils/unsaved-changes/src/unsaved-changes-dialog.component.d.ts +24 -0
- package/utils/unsaved-changes/src/unsaved-changes.d.ts +50 -0
|
@@ -8,7 +8,7 @@ export type AccordionItemProps = {
|
|
|
8
8
|
};
|
|
9
9
|
export declare class AccordionItemComponent {
|
|
10
10
|
header: import("@angular/core").InputSignal<string>;
|
|
11
|
-
opened: import("@angular/core").
|
|
11
|
+
opened: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
|
|
12
12
|
variant: import("@angular/core").InputSignal<AccordionVariantProps>;
|
|
13
13
|
name: string;
|
|
14
14
|
type: string;
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
# Alert
|
|
2
|
+
|
|
3
|
+
Import: `@sixbell-telco/sdk/components/alert`
|
|
4
|
+
|
|
5
|
+
Selectors: `st-alert`, `st-alert-actions`
|
|
6
|
+
|
|
7
|
+
Inline status callout with a soft status tint: icon, optional heading, projected body, optional actions and dismiss.
|
|
8
|
+
|
|
9
|
+
## Usage
|
|
10
|
+
|
|
11
|
+
```html
|
|
12
|
+
<st-alert variant="warning" heading="Pending distribution groups" [dismissible]="true">
|
|
13
|
+
Two groups have no rules yet.
|
|
14
|
+
<st-alert-actions>
|
|
15
|
+
<st-button variant="warning" size="sm" [outline]="true">Review groups</st-button>
|
|
16
|
+
</st-alert-actions>
|
|
17
|
+
</st-alert>
|
|
18
|
+
```
|
|
19
|
+
|
|
20
|
+
## Notes
|
|
21
|
+
|
|
22
|
+
- Inputs: `variant` (`info` | `success` | `warning` | `error`, default `info`), `heading`, `id`, `showIcon` (default `true`), `icon`, `dismissible`, `assertive`, `class`. Output: `dismissed`.
|
|
23
|
+
- The host is the live region: `role="status"` (polite) for `info`, `success` and `warning`; `role="alert"` (assertive) for `error` or when `assertive` is set.
|
|
24
|
+
- Set `id` to reference the callout from a control with `aria-describedby`.
|
|
25
|
+
- The surface is opaque (the soft tint mixed into `base-100`), the body uses `base-content`, and the icon and heading use `--color-<status>-strong`, so text meets 4.5:1 on any backdrop, including the modern layout band.
|
|
26
|
+
- Nothing renders for an empty heading, missing actions or no dismiss. The dismiss button is named from `sdk.alert.dismiss`.
|
|
27
|
+
- Replaces raw `div.alert alert-*` markup in consumer apps.
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './src/alert.component';
|
|
@@ -0,0 +1,85 @@
|
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
/**
|
|
3
|
+
* @internal
|
|
4
|
+
* Soft status callout classes. Body text stays on `base-content`; the icon and title read the
|
|
5
|
+
* `--color-<status>-strong` token so they meet 4.5:1 on the soft tint.
|
|
6
|
+
*/
|
|
7
|
+
export declare const alertComponent: (props?: ({
|
|
8
|
+
variant?: "info" | "success" | "warning" | "error" | null | undefined;
|
|
9
|
+
} & import("class-variance-authority/types").ClassProp) | undefined) => string;
|
|
10
|
+
/** Status of the callout */
|
|
11
|
+
export type AlertVariantProps = 'info' | 'success' | 'warning' | 'error' | null | undefined;
|
|
12
|
+
/**
|
|
13
|
+
* Inline status callout: icon, optional heading, projected body, optional actions and dismiss.
|
|
14
|
+
*
|
|
15
|
+
* @remarks
|
|
16
|
+
* The host is the live region. `info`, `success` and `warning` use `role="status"` (polite);
|
|
17
|
+
* `error` uses `role="alert"` (assertive), and `assertive` forces `role="alert"` for any variant.
|
|
18
|
+
* Set `id` to reference the callout from a control's `aria-describedby`.
|
|
19
|
+
*
|
|
20
|
+
* @example
|
|
21
|
+
* ```html
|
|
22
|
+
* <st-alert variant="warning" heading="Pending distribution groups">
|
|
23
|
+
* Add at least one rule before publishing.
|
|
24
|
+
* <st-alert-actions>
|
|
25
|
+
* <st-button variant="warning" size="sm" [outline]="true">Review</st-button>
|
|
26
|
+
* </st-alert-actions>
|
|
27
|
+
* </st-alert>
|
|
28
|
+
* ```
|
|
29
|
+
*/
|
|
30
|
+
export declare class AlertComponent {
|
|
31
|
+
/**
|
|
32
|
+
* Status of the callout
|
|
33
|
+
* @defaultValue 'info'
|
|
34
|
+
*/
|
|
35
|
+
variant: import("@angular/core").InputSignal<AlertVariantProps>;
|
|
36
|
+
/** Short heading rendered above the projected body. Nothing is rendered when empty. */
|
|
37
|
+
heading: import("@angular/core").InputSignal<string>;
|
|
38
|
+
/** Id set on the host, so a control can point at the callout with `aria-describedby`. */
|
|
39
|
+
id: import("@angular/core").InputSignal<string | null>;
|
|
40
|
+
/**
|
|
41
|
+
* Show the status icon
|
|
42
|
+
* @defaultValue true
|
|
43
|
+
*/
|
|
44
|
+
showIcon: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
|
|
45
|
+
/** Icon override (an SVG string from `@sixbell-telco/sdk/components/icon/*`). Defaults to the variant icon. */
|
|
46
|
+
icon: import("@angular/core").InputSignal<string | null | undefined>;
|
|
47
|
+
/**
|
|
48
|
+
* Render a close button that hides the callout and emits `dismissed`
|
|
49
|
+
* @defaultValue false
|
|
50
|
+
*/
|
|
51
|
+
dismissible: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
|
|
52
|
+
/**
|
|
53
|
+
* Announce with `role="alert"` whatever the variant
|
|
54
|
+
* @defaultValue false
|
|
55
|
+
*/
|
|
56
|
+
assertive: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
|
|
57
|
+
/** Additional classes merged onto the host */
|
|
58
|
+
class: import("@angular/core").InputSignal<string>;
|
|
59
|
+
/** Emits after the close button hides the callout */
|
|
60
|
+
dismissed: import("@angular/core").OutputEmitterRef<void>;
|
|
61
|
+
private readonly translateLabel;
|
|
62
|
+
/** @internal */
|
|
63
|
+
protected readonly isDismissed: import("@angular/core").WritableSignal<boolean>;
|
|
64
|
+
/** @internal */
|
|
65
|
+
protected readonly dismissIcon = "<svg xmlns=\"http://www.w3.org/2000/svg\" fill=\"none\" viewBox=\"0 0 24 24\" stroke=\"currentColor\" aria-hidden=\"true\" data-slot=\"icon\" style=\"stroke-width:var(--ng-icon__stroke-width, 1.5)\"><path stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M6 18 18 6M6 6l12 12\"></path></svg>";
|
|
66
|
+
/** @internal */
|
|
67
|
+
protected readonly dismissLabel: import("@angular/core").Signal<string>;
|
|
68
|
+
/** @internal */
|
|
69
|
+
readonly role: import("@angular/core").Signal<"alert" | "status">;
|
|
70
|
+
/** @internal */
|
|
71
|
+
protected readonly resolvedIcon: import("@angular/core").Signal<string>;
|
|
72
|
+
/** @internal */
|
|
73
|
+
protected readonly accentClass: import("@angular/core").Signal<string>;
|
|
74
|
+
/** @internal */
|
|
75
|
+
readonly componentClass: import("@angular/core").Signal<string>;
|
|
76
|
+
/** Hides the callout and emits `dismissed`. */
|
|
77
|
+
dismiss(): void;
|
|
78
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<AlertComponent, never>;
|
|
79
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<AlertComponent, "st-alert", never, { "variant": { "alias": "variant"; "required": false; "isSignal": true; }; "heading": { "alias": "heading"; "required": false; "isSignal": true; }; "id": { "alias": "id"; "required": false; "isSignal": true; }; "showIcon": { "alias": "showIcon"; "required": false; "isSignal": true; }; "icon": { "alias": "icon"; "required": false; "isSignal": true; }; "dismissible": { "alias": "dismissible"; "required": false; "isSignal": true; }; "assertive": { "alias": "assertive"; "required": false; "isSignal": true; }; "class": { "alias": "class"; "required": false; "isSignal": true; }; }, { "dismissed": "dismissed"; }, never, ["*", "st-alert-actions"], true, never>;
|
|
80
|
+
}
|
|
81
|
+
/** Action area of `st-alert`, aligned after the body. */
|
|
82
|
+
export declare class AlertActionsComponent {
|
|
83
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<AlertActionsComponent, never>;
|
|
84
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<AlertActionsComponent, "st-alert-actions", never, {}, {}, never, ["*"], true, never>;
|
|
85
|
+
}
|
|
@@ -7,7 +7,7 @@ export declare class AudioTimelineComponent {
|
|
|
7
7
|
* Stop event propagation for activation events
|
|
8
8
|
* @defaultValue false
|
|
9
9
|
*/
|
|
10
|
-
stopPropagation: import("@angular/core").
|
|
10
|
+
stopPropagation: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
|
|
11
11
|
/**
|
|
12
12
|
* Event emitted on click
|
|
13
13
|
*/
|
|
@@ -4,14 +4,14 @@ import * as i0 from "@angular/core";
|
|
|
4
4
|
export declare class ButtonPlayComponent {
|
|
5
5
|
audioService: AudioPlayerService;
|
|
6
6
|
variant: import("@angular/core").InputSignal<ButtonVariantProps>;
|
|
7
|
-
ghost: import("@angular/core").
|
|
8
|
-
outline: import("@angular/core").
|
|
9
|
-
circle: import("@angular/core").
|
|
10
|
-
square: import("@angular/core").
|
|
11
|
-
glass: import("@angular/core").
|
|
7
|
+
ghost: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
|
|
8
|
+
outline: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
|
|
9
|
+
circle: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
|
|
10
|
+
square: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
|
|
11
|
+
glass: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
|
|
12
12
|
size: import("@angular/core").InputSignal<ButtonSizeProps>;
|
|
13
|
-
shadow: import("@angular/core").
|
|
14
|
-
asButton: import("@angular/core").
|
|
13
|
+
shadow: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
|
|
14
|
+
asButton: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
|
|
15
15
|
isHovered: import("@angular/core").WritableSignal<boolean>;
|
|
16
16
|
trackIndex: import("@angular/core").InputSignal<number>;
|
|
17
17
|
togglePlay: import("@angular/core").OutputEmitterRef<void>;
|
|
@@ -10,10 +10,10 @@ export declare class AudioPlayerComponent {
|
|
|
10
10
|
audioPlayerService: AudioPlayerService;
|
|
11
11
|
private readonly destroyRef;
|
|
12
12
|
variant: import("@angular/core").InputSignal<AudioPlayerVariantProps>;
|
|
13
|
-
shadow: import("@angular/core").
|
|
13
|
+
shadow: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
|
|
14
14
|
opened: import("@angular/core").ModelSignal<boolean>;
|
|
15
15
|
tracks: import("@angular/core").InputSignal<Track[]>;
|
|
16
|
-
showTrackList: import("@angular/core").
|
|
16
|
+
showTrackList: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
|
|
17
17
|
currentTrackIndex: import("@angular/core").ModelSignal<number>;
|
|
18
18
|
currentTrack: import("@angular/core").Signal<Track | undefined>;
|
|
19
19
|
iconSkipPrevious: string;
|
|
@@ -8,7 +8,7 @@ export declare class VolumeControlComponent {
|
|
|
8
8
|
* Stop event propagation for activation events
|
|
9
9
|
* @defaultValue false
|
|
10
10
|
*/
|
|
11
|
-
stopPropagation: import("@angular/core").
|
|
11
|
+
stopPropagation: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
|
|
12
12
|
/**
|
|
13
13
|
* Event emitted on click
|
|
14
14
|
*/
|
|
@@ -14,4 +14,5 @@ User image with initials fallback, optional presence, name, and role.
|
|
|
14
14
|
|
|
15
15
|
## Notes
|
|
16
16
|
|
|
17
|
+
- Variants `primary`, `secondary`, `tertiary` and `accent` each paint their own color tokens (`tertiary` uses `--color-tertiary` / `--color-tertiary-content`).
|
|
17
18
|
- `user` is required. Optional `image`, `shape`, `size`, `ring`, `presence`, `showNameAndRole`.
|
|
@@ -93,7 +93,7 @@ export declare class AvatarComponent {
|
|
|
93
93
|
*
|
|
94
94
|
* @default true
|
|
95
95
|
*/
|
|
96
|
-
ring: import("@angular/core").
|
|
96
|
+
ring: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
|
|
97
97
|
/**
|
|
98
98
|
* Specifies the presence indicator state.
|
|
99
99
|
*
|
|
@@ -117,7 +117,7 @@ export declare class AvatarComponent {
|
|
|
117
117
|
*
|
|
118
118
|
* @default false
|
|
119
119
|
*/
|
|
120
|
-
showNameAndRole: import("@angular/core").
|
|
120
|
+
showNameAndRole: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
|
|
121
121
|
/**
|
|
122
122
|
* Computed property that returns the initials derived from the user's name.
|
|
123
123
|
*
|
|
@@ -54,22 +54,22 @@ export declare class BadgeComponent {
|
|
|
54
54
|
* Outline style (border with transparent fill)
|
|
55
55
|
* @defaultValue false
|
|
56
56
|
*/
|
|
57
|
-
outline: import("@angular/core").
|
|
57
|
+
outline: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
|
|
58
58
|
/**
|
|
59
59
|
* Soft style (muted/subdued color variant)
|
|
60
60
|
* @defaultValue false
|
|
61
61
|
*/
|
|
62
|
-
soft: import("@angular/core").
|
|
62
|
+
soft: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
|
|
63
63
|
/**
|
|
64
64
|
* Dash style (dashed border)
|
|
65
65
|
* @defaultValue false
|
|
66
66
|
*/
|
|
67
|
-
dash: import("@angular/core").
|
|
67
|
+
dash: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
|
|
68
68
|
/**
|
|
69
69
|
* Ghost style (transparent background)
|
|
70
70
|
* @defaultValue false
|
|
71
71
|
*/
|
|
72
|
-
ghost: import("@angular/core").
|
|
72
|
+
ghost: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
|
|
73
73
|
/**
|
|
74
74
|
* Icon name (from icon library)
|
|
75
75
|
*/
|
|
@@ -4,7 +4,7 @@ Import: `@sixbell-telco/sdk/components/button`
|
|
|
4
4
|
|
|
5
5
|
Selector: `st-button`
|
|
6
6
|
|
|
7
|
-
Primary action control.
|
|
7
|
+
Primary action control. The default color is `base`, which is meant for `ghost` and `link` buttons only: give every other button a role (`primary` for the main CTA, `secondary`, `tertiary` or a status color). In dev mode a button with no variant (or `base`) that is neither `ghost` nor `link` logs one console warning per instance.
|
|
8
8
|
|
|
9
9
|
## Usage
|
|
10
10
|
|
|
@@ -16,16 +16,17 @@ Primary action control. Default color role is `base`; use `primary` for the main
|
|
|
16
16
|
|
|
17
17
|
- Style flags: `ghost`, `outline`, `link`, `soft`, `dash`, `wide`, `circle`, `square`, `glass`, `block`, `loader`, `shadow`.
|
|
18
18
|
- Activation outputs: `clicked`, `pointerDown`, `keyDownEnter`, `keyDownSpace`, `triggered`. Prefer `(triggered)`.
|
|
19
|
-
- ARIA forwarding: `ariaLabel`, `ariaExpanded` and `
|
|
19
|
+
- ARIA forwarding: `ariaLabel`, `ariaExpanded`, `ariaPressed`, `ariaDescribedBy` and `ariaControls` are set on the inner `<button>`. Attributes bound on the `st-button` host (`[attr.aria-*]`) do not reach the button, so use these inputs for icon-only buttons and disclosure toggles.
|
|
20
20
|
|
|
21
21
|
```html
|
|
22
|
-
<st-button [square]="true" [ghost]="true" [ariaLabel]="'Show details'" [ariaExpanded]="open()" (triggered)="toggle()">
|
|
22
|
+
<st-button variant="base" [square]="true" [ghost]="true" [ariaLabel]="'Show details'" [ariaExpanded]="open()" (triggered)="toggle()">
|
|
23
23
|
<st-icon [icon]="chevron" />
|
|
24
24
|
</st-button>
|
|
25
25
|
```
|
|
26
26
|
|
|
27
|
+
- Pressed toggles (`[ariaPressed]="true"`, `btn-active` or `:active`): colored `outline` and `dash` buttons fill with their color; a `base` outline or dash button (marked `btn-base`) keeps its `base-content` border (and its dashes) and gains an 18% `base-content` tint, so the pressed state always reads stronger than the resting one. With `[ariaPressed]="true"` it also doubles its border, so an on/off toggle does not rely on the tint alone: an outline button gains an inset `base-content` ring, and a dash button doubles its dashed border width (the inline padding shrinks by the same amount, so the size does not change).
|
|
27
28
|
- Icon-only buttons: the icon (from `icon` or a projected `st-icon`) is decorative and hidden from assistive technology. Name the button with `ariaLabel` or projected `<span class="sr-only">` text. In dev mode, an `st-button` with `icon` that is still unnamed two seconds after its last DOM change logs one console warning; names that arrive late (translations, projected text) do not warn.
|
|
28
29
|
|
|
29
30
|
```html
|
|
30
|
-
<st-button [icon]="trash" [square]="true" [ghost]="true" [ariaLabel]="'Delete row'" (triggered)="remove()" />
|
|
31
|
+
<st-button variant="error" [icon]="trash" [square]="true" [ghost]="true" [ariaLabel]="'Delete row'" (triggered)="remove()" />
|
|
31
32
|
```
|
|
@@ -41,6 +41,7 @@ export declare class ButtonComponent {
|
|
|
41
41
|
private readonly host;
|
|
42
42
|
private readonly zone;
|
|
43
43
|
private unnamedIconWarned;
|
|
44
|
+
private roleWarned;
|
|
44
45
|
private nameWatch;
|
|
45
46
|
/**
|
|
46
47
|
* Button style variant
|
|
@@ -51,57 +52,57 @@ export declare class ButtonComponent {
|
|
|
51
52
|
* Ghost button style (transparent background)
|
|
52
53
|
* @defaultValue false
|
|
53
54
|
*/
|
|
54
|
-
ghost: import("@angular/core").
|
|
55
|
+
ghost: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
|
|
55
56
|
/**
|
|
56
57
|
* Outline button style (border with transparent fill)
|
|
57
58
|
* @defaultValue false
|
|
58
59
|
*/
|
|
59
|
-
outline: import("@angular/core").
|
|
60
|
+
outline: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
|
|
60
61
|
/**
|
|
61
62
|
* Link button style (appears as a hyperlink)
|
|
62
63
|
* @defaultValue false
|
|
63
64
|
*/
|
|
64
|
-
link: import("@angular/core").
|
|
65
|
+
link: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
|
|
65
66
|
/**
|
|
66
67
|
* Soft button style (muted/subdued color variant)
|
|
67
68
|
* @defaultValue false
|
|
68
69
|
*/
|
|
69
|
-
soft: import("@angular/core").
|
|
70
|
+
soft: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
|
|
70
71
|
/**
|
|
71
72
|
* Dash button style (dashed border)
|
|
72
73
|
* @defaultValue false
|
|
73
74
|
*/
|
|
74
|
-
dash: import("@angular/core").
|
|
75
|
+
dash: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
|
|
75
76
|
/**
|
|
76
77
|
* Wide button style (increased horizontal padding)
|
|
77
78
|
* @defaultValue false
|
|
78
79
|
*/
|
|
79
|
-
wide: import("@angular/core").
|
|
80
|
+
wide: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
|
|
80
81
|
/**
|
|
81
82
|
* Circular button shape
|
|
82
83
|
* @defaultValue false
|
|
83
84
|
*/
|
|
84
|
-
circle: import("@angular/core").
|
|
85
|
+
circle: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
|
|
85
86
|
/**
|
|
86
87
|
* Square button shape
|
|
87
88
|
* @defaultValue false
|
|
88
89
|
*/
|
|
89
|
-
square: import("@angular/core").
|
|
90
|
+
square: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
|
|
90
91
|
/**
|
|
91
92
|
* Glass effect styling
|
|
92
93
|
* @defaultValue false
|
|
93
94
|
*/
|
|
94
|
-
glass: import("@angular/core").
|
|
95
|
+
glass: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
|
|
95
96
|
/**
|
|
96
97
|
* Full-width button
|
|
97
98
|
* @defaultValue false
|
|
98
99
|
*/
|
|
99
|
-
block: import("@angular/core").
|
|
100
|
+
block: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
|
|
100
101
|
/**
|
|
101
102
|
* Show loading spinner
|
|
102
103
|
* @defaultValue false
|
|
103
104
|
*/
|
|
104
|
-
loader: import("@angular/core").
|
|
105
|
+
loader: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
|
|
105
106
|
/**
|
|
106
107
|
* Button size variant
|
|
107
108
|
* @defaultValue 'md'
|
|
@@ -111,12 +112,12 @@ export declare class ButtonComponent {
|
|
|
111
112
|
* Add drop shadow
|
|
112
113
|
* @defaultValue false
|
|
113
114
|
*/
|
|
114
|
-
shadow: import("@angular/core").
|
|
115
|
+
shadow: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
|
|
115
116
|
/**
|
|
116
117
|
* Button is focusable
|
|
117
118
|
* @defaultValue true
|
|
118
119
|
*/
|
|
119
|
-
focusable: import("@angular/core").
|
|
120
|
+
focusable: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
|
|
120
121
|
/**
|
|
121
122
|
* Icon name (from icon library)
|
|
122
123
|
*/
|
|
@@ -135,12 +136,12 @@ export declare class ButtonComponent {
|
|
|
135
136
|
* Disabled state
|
|
136
137
|
* @defaultValue false
|
|
137
138
|
*/
|
|
138
|
-
disabled: import("@angular/core").
|
|
139
|
+
disabled: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
|
|
139
140
|
/**
|
|
140
141
|
* Stop event propagation for activation events
|
|
141
142
|
* @defaultValue false
|
|
142
143
|
*/
|
|
143
|
-
stopPropagation: import("@angular/core").
|
|
144
|
+
stopPropagation: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
|
|
144
145
|
/**
|
|
145
146
|
* Accessible name forwarded to the inner `<button>` as `aria-label`.
|
|
146
147
|
* Use it for icon-only buttons. Attributes bound on the `st-button` host are not forwarded.
|
|
@@ -156,6 +157,15 @@ export declare class ButtonComponent {
|
|
|
156
157
|
* Leave it unset for ordinary buttons.
|
|
157
158
|
*/
|
|
158
159
|
ariaPressed: import("@angular/core").InputSignal<boolean | "mixed" | null | undefined>;
|
|
160
|
+
/**
|
|
161
|
+
* Forwarded to the inner `<button>` as `aria-describedby`: the id(s) of elements that describe it,
|
|
162
|
+
* such as a notice that explains why the button is disabled.
|
|
163
|
+
*/
|
|
164
|
+
ariaDescribedBy: import("@angular/core").InputSignal<string | null | undefined>;
|
|
165
|
+
/**
|
|
166
|
+
* Forwarded to the inner `<button>` as `aria-controls`: the id(s) of the elements the button shows, hides or resizes.
|
|
167
|
+
*/
|
|
168
|
+
ariaControls: import("@angular/core").InputSignal<string | null | undefined>;
|
|
159
169
|
/**
|
|
160
170
|
* Event emitted on click
|
|
161
171
|
*/
|
|
@@ -181,6 +191,12 @@ export declare class ButtonComponent {
|
|
|
181
191
|
* Computed class string for the button container
|
|
182
192
|
*/
|
|
183
193
|
containerClass: import("@angular/core").Signal<string>;
|
|
194
|
+
/**
|
|
195
|
+
* @internal A base outline/dash toggle differs from rest only by a light tint when pressed, so
|
|
196
|
+
* `aria-pressed="true"` also doubles its border: an inset `base-content` ring for outline, and twice the
|
|
197
|
+
* dashed border width for dash (the padding shrinks by the same amount, so nothing shifts).
|
|
198
|
+
*/
|
|
199
|
+
private readonly isBaseToggleable;
|
|
184
200
|
linkClass: import("@angular/core").Signal<string>;
|
|
185
201
|
constructor();
|
|
186
202
|
/**
|
|
@@ -191,6 +207,12 @@ export declare class ButtonComponent {
|
|
|
191
207
|
*/
|
|
192
208
|
private watchAccessibleName;
|
|
193
209
|
private checkAccessibleName;
|
|
210
|
+
/**
|
|
211
|
+
* @internal
|
|
212
|
+
* Dev mode only: warns once when a filled or outlined button has no declared role. `base` is meant
|
|
213
|
+
* for `ghost` and `link` buttons; every other button should say what it does with a color variant.
|
|
214
|
+
*/
|
|
215
|
+
private checkDeclaredRole;
|
|
194
216
|
private stopNameWatch;
|
|
195
217
|
/**
|
|
196
218
|
* @internal
|
|
@@ -213,5 +235,5 @@ export declare class ButtonComponent {
|
|
|
213
235
|
*/
|
|
214
236
|
handleKeyDownSpace(event: Event): void;
|
|
215
237
|
static ɵfac: i0.ɵɵFactoryDeclaration<ButtonComponent, never>;
|
|
216
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<ButtonComponent, "st-button", never, { "variant": { "alias": "variant"; "required": false; "isSignal": true; }; "ghost": { "alias": "ghost"; "required": false; "isSignal": true; }; "outline": { "alias": "outline"; "required": false; "isSignal": true; }; "link": { "alias": "link"; "required": false; "isSignal": true; }; "soft": { "alias": "soft"; "required": false; "isSignal": true; }; "dash": { "alias": "dash"; "required": false; "isSignal": true; }; "wide": { "alias": "wide"; "required": false; "isSignal": true; }; "circle": { "alias": "circle"; "required": false; "isSignal": true; }; "square": { "alias": "square"; "required": false; "isSignal": true; }; "glass": { "alias": "glass"; "required": false; "isSignal": true; }; "block": { "alias": "block"; "required": false; "isSignal": true; }; "loader": { "alias": "loader"; "required": false; "isSignal": true; }; "size": { "alias": "size"; "required": false; "isSignal": true; }; "shadow": { "alias": "shadow"; "required": false; "isSignal": true; }; "focusable": { "alias": "focusable"; "required": false; "isSignal": true; }; "icon": { "alias": "icon"; "required": false; "isSignal": true; }; "iconPosition": { "alias": "iconPosition"; "required": false; "isSignal": true; }; "type": { "alias": "type"; "required": false; "isSignal": true; }; "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; "stopPropagation": { "alias": "stopPropagation"; "required": false; "isSignal": true; }; "ariaLabel": { "alias": "ariaLabel"; "required": false; "isSignal": true; }; "ariaExpanded": { "alias": "ariaExpanded"; "required": false; "isSignal": true; }; "ariaPressed": { "alias": "ariaPressed"; "required": false; "isSignal": true; }; }, { "clicked": "clicked"; "pointerDown": "pointerDown"; "keyDownEnter": "keyDownEnter"; "keyDownSpace": "keyDownSpace"; "triggered": "triggered"; }, never, ["*"], true, never>;
|
|
238
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ButtonComponent, "st-button", never, { "variant": { "alias": "variant"; "required": false; "isSignal": true; }; "ghost": { "alias": "ghost"; "required": false; "isSignal": true; }; "outline": { "alias": "outline"; "required": false; "isSignal": true; }; "link": { "alias": "link"; "required": false; "isSignal": true; }; "soft": { "alias": "soft"; "required": false; "isSignal": true; }; "dash": { "alias": "dash"; "required": false; "isSignal": true; }; "wide": { "alias": "wide"; "required": false; "isSignal": true; }; "circle": { "alias": "circle"; "required": false; "isSignal": true; }; "square": { "alias": "square"; "required": false; "isSignal": true; }; "glass": { "alias": "glass"; "required": false; "isSignal": true; }; "block": { "alias": "block"; "required": false; "isSignal": true; }; "loader": { "alias": "loader"; "required": false; "isSignal": true; }; "size": { "alias": "size"; "required": false; "isSignal": true; }; "shadow": { "alias": "shadow"; "required": false; "isSignal": true; }; "focusable": { "alias": "focusable"; "required": false; "isSignal": true; }; "icon": { "alias": "icon"; "required": false; "isSignal": true; }; "iconPosition": { "alias": "iconPosition"; "required": false; "isSignal": true; }; "type": { "alias": "type"; "required": false; "isSignal": true; }; "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; "stopPropagation": { "alias": "stopPropagation"; "required": false; "isSignal": true; }; "ariaLabel": { "alias": "ariaLabel"; "required": false; "isSignal": true; }; "ariaExpanded": { "alias": "ariaExpanded"; "required": false; "isSignal": true; }; "ariaPressed": { "alias": "ariaPressed"; "required": false; "isSignal": true; }; "ariaDescribedBy": { "alias": "ariaDescribedBy"; "required": false; "isSignal": true; }; "ariaControls": { "alias": "ariaControls"; "required": false; "isSignal": true; }; }, { "clicked": "clicked"; "pointerDown": "pointerDown"; "keyDownEnter": "keyDownEnter"; "keyDownSpace": "keyDownSpace"; "triggered": "triggered"; }, never, ["*"], true, never>;
|
|
217
239
|
}
|
|
@@ -31,6 +31,8 @@ Compound content shell. Compose with header, body, sections, footer, and actions
|
|
|
31
31
|
|
|
32
32
|
## Notes
|
|
33
33
|
|
|
34
|
+
- `st-card-footer sticky`: for long create/edit forms, keeps the footer actions visible at the bottom of the scroll area on the card surface, with a top border and a static shadow (no animation). While it floats over the content its bottom corners are square; at rest at the end of the card they follow the card radius. Prefer `sticky` for long forms; `divided` remains for static footers. Nothing is deprecated: both inputs are supported, and with both set the border replaces the divider.
|
|
35
|
+
- `st-card-actions` aligns left by default (page actions, primary first).
|
|
34
36
|
- `st-card-content` is legacy; use `st-card-body`.
|
|
35
37
|
- Flat forms in a card: `st-form-group`. Sectioned forms: `st-card-section-group`.
|
|
36
38
|
- See [Card migration](../../../../docs/migrations/Card_Migration.md).
|
|
@@ -1,7 +1,42 @@
|
|
|
1
1
|
import * as i0 from "@angular/core";
|
|
2
|
+
/**
|
|
3
|
+
* Footer region of `st-card`, usually holding `st-card-actions`.
|
|
4
|
+
*
|
|
5
|
+
* @example
|
|
6
|
+
* ```html
|
|
7
|
+
* <st-card-footer sticky>
|
|
8
|
+
* <st-card-actions>
|
|
9
|
+
* <st-button variant="primary">Save</st-button>
|
|
10
|
+
* <st-button variant="tertiary" [outline]="true">Cancel</st-button>
|
|
11
|
+
* </st-card-actions>
|
|
12
|
+
* </st-card-footer>
|
|
13
|
+
* ```
|
|
14
|
+
*/
|
|
2
15
|
export declare class CardFooterComponent {
|
|
3
|
-
|
|
16
|
+
/**
|
|
17
|
+
* Draws a divider above the footer content
|
|
18
|
+
* @defaultValue false
|
|
19
|
+
*/
|
|
20
|
+
divided: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
|
|
21
|
+
/**
|
|
22
|
+
* Keeps the footer visible at the bottom of the viewport while a long card scrolls, on the card
|
|
23
|
+
* surface with a top border and a static shadow (no motion). Use it for long create/edit forms.
|
|
24
|
+
* Prefer it over `divided` for long forms; `divided` remains for static footers. With both set, the
|
|
25
|
+
* border separates the actions and no divider is drawn. While it floats over the content (stuck) the
|
|
26
|
+
* bottom corners are square; at rest at the end of the card they follow the card radius.
|
|
27
|
+
* @defaultValue false
|
|
28
|
+
*/
|
|
29
|
+
sticky: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
|
|
30
|
+
private readonly elementRef;
|
|
31
|
+
/** @internal `true` while the sticky footer floats over the content instead of resting at the card end */
|
|
32
|
+
protected readonly stuck: import("@angular/core").WritableSignal<boolean>;
|
|
33
|
+
/**
|
|
34
|
+
* @internal The footer sits 1px past the scroll edge, so while stuck its bottom edge is clipped:
|
|
35
|
+
* a visible footer with a ratio below 1, clipped at the bottom, is stuck. Off screen it is not.
|
|
36
|
+
*/
|
|
37
|
+
private readonly stuckEffect;
|
|
38
|
+
protected readonly hostClass: import("@angular/core").Signal<string>;
|
|
4
39
|
protected readonly contentClass: import("@angular/core").Signal<"mt-6" | "">;
|
|
5
40
|
static ɵfac: i0.ɵɵFactoryDeclaration<CardFooterComponent, never>;
|
|
6
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<CardFooterComponent, "st-card-footer", never, { "divided": { "alias": "divided"; "required": false; "isSignal": true; }; }, {}, never, ["*"], true, never>;
|
|
41
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<CardFooterComponent, "st-card-footer", never, { "divided": { "alias": "divided"; "required": false; "isSignal": true; }; "sticky": { "alias": "sticky"; "required": false; "isSignal": true; }; }, {}, never, ["*"], true, never>;
|
|
7
42
|
}
|
|
@@ -6,7 +6,7 @@ export declare class CardSectionGroupComponent {
|
|
|
6
6
|
private readonly envInjector;
|
|
7
7
|
private readonly dividerClass;
|
|
8
8
|
private dividerRefs;
|
|
9
|
-
divided: import("@angular/core").
|
|
9
|
+
divided: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
|
|
10
10
|
protected readonly sections: import("@angular/core").Signal<readonly CardSectionComponent[]>;
|
|
11
11
|
constructor();
|
|
12
12
|
private syncDividers;
|
|
@@ -60,7 +60,7 @@ export declare class CardComponent {
|
|
|
60
60
|
* Show border around card
|
|
61
61
|
* @defaultValue false
|
|
62
62
|
*/
|
|
63
|
-
border: import("@angular/core").
|
|
63
|
+
border: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
|
|
64
64
|
/**
|
|
65
65
|
* Image source URL
|
|
66
66
|
*/
|
|
@@ -84,27 +84,27 @@ export declare class CardComponent {
|
|
|
84
84
|
* Use image as full background
|
|
85
85
|
* @defaultValue false
|
|
86
86
|
*/
|
|
87
|
-
imageAsBackground: import("@angular/core").
|
|
87
|
+
imageAsBackground: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
|
|
88
88
|
/**
|
|
89
89
|
* Add drop shadow
|
|
90
90
|
* @defaultValue false
|
|
91
91
|
*/
|
|
92
|
-
shadow: import("@angular/core").
|
|
92
|
+
shadow: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
|
|
93
93
|
/**
|
|
94
94
|
* Glass effect styling
|
|
95
95
|
* @defaultValue false
|
|
96
96
|
*/
|
|
97
|
-
glass: import("@angular/core").
|
|
97
|
+
glass: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
|
|
98
98
|
/**
|
|
99
99
|
* Dashed border style
|
|
100
100
|
* @defaultValue false
|
|
101
101
|
*/
|
|
102
|
-
dash: import("@angular/core").
|
|
102
|
+
dash: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
|
|
103
103
|
/**
|
|
104
104
|
* Full-width card
|
|
105
105
|
* @defaultValue false
|
|
106
106
|
*/
|
|
107
|
-
block: import("@angular/core").
|
|
107
|
+
block: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
|
|
108
108
|
/**
|
|
109
109
|
* @internal
|
|
110
110
|
* Computed class string for the card container
|
|
@@ -3,10 +3,10 @@ export declare class CountdownComponent {
|
|
|
3
3
|
type: import("@angular/core").InputSignal<"simple-1" | "simple-2" | "extended-1" | "extended-2">;
|
|
4
4
|
dueDate: import("@angular/core").InputSignal<string>;
|
|
5
5
|
format: import("@angular/core").InputSignal<string>;
|
|
6
|
-
showDays: import("@angular/core").
|
|
7
|
-
showHours: import("@angular/core").
|
|
8
|
-
showMinutes: import("@angular/core").
|
|
9
|
-
showSeconds: import("@angular/core").
|
|
6
|
+
showDays: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
|
|
7
|
+
showHours: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
|
|
8
|
+
showMinutes: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
|
|
9
|
+
showSeconds: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
|
|
10
10
|
finished: import("@angular/core").OutputEmitterRef<void>;
|
|
11
11
|
private readonly countdownDateOnMilliseconds;
|
|
12
12
|
countdowntimer$: import("rxjs").Observable<{
|
|
@@ -49,6 +49,32 @@ TanStack table shell. You compose `<thead>` / `<tbody>` and cell renderers; ther
|
|
|
49
49
|
</st-data-table>
|
|
50
50
|
```
|
|
51
51
|
|
|
52
|
+
## Empty state
|
|
53
|
+
|
|
54
|
+
Project an `st-empty-state` (from `@sixbell-telco/sdk/components/empty-state`) into `st-data-table` to replace the built-in "no data" block, and the "no results" block when a search (`pagination.search`) or a filter (`hasActiveFiltersCallback`) is active. One slot covers both, as in `st-table`: switch the heading and the CTA on your own filter state. Use `size="sm"` and at most one CTA (a `primary` create action, or a `secondary` "Limpiar filtros" for no results). It is never shown while `loading` or when there are rows. Without a projected empty state the built-in blocks, `noDataIcon`, `noResultsIcon` and `st-data-table-empty-actions` work as before.
|
|
55
|
+
|
|
56
|
+
```html
|
|
57
|
+
<st-data-table [loading]="isLoading()" [totalItems]="total()" [pagination]="pagination()">
|
|
58
|
+
<thead>
|
|
59
|
+
...
|
|
60
|
+
</thead>
|
|
61
|
+
<tbody>
|
|
62
|
+
...
|
|
63
|
+
</tbody>
|
|
64
|
+
@if (pagination().search) {
|
|
65
|
+
<st-empty-state size="sm" heading="No se encontraron resultados" description="Ningún usuario coincide con la búsqueda.">
|
|
66
|
+
<st-empty-state-actions>
|
|
67
|
+
<st-button variant="secondary" size="sm" (triggered)="clearSearch()">Limpiar filtros</st-button>
|
|
68
|
+
</st-empty-state-actions>
|
|
69
|
+
</st-empty-state>
|
|
70
|
+
} @else {
|
|
71
|
+
<st-empty-state size="sm" heading="No users yet" description="Invite the first user to give them access." />
|
|
72
|
+
}
|
|
73
|
+
</st-data-table>
|
|
74
|
+
```
|
|
75
|
+
|
|
76
|
+
The data table finds the projected component through the `TABLE_EMPTY_STATE` injection token from the dependency-free entry `@sixbell-telco/sdk/components/table/tokens`, so `st-data-table` never loads the empty-state entry. A custom empty-state component can provide the token: `providers: [{ provide: TABLE_EMPTY_STATE, useExisting: MyEmptyStateComponent }]`.
|
|
77
|
+
|
|
52
78
|
## Row hover
|
|
53
79
|
|
|
54
80
|
`rowHover` (default `true`) tints the hovered body row with `--color-table-row-hover`, layered over each cell's own background, so zebra rows and the pinned first column follow it. The default tint is `color-mix(in oklch, var(--color-base-content) 12%, transparent)`: it darkens rows in light schemes and lightens them in dark ones, whichever base step is lighter, and keeps at least 1.2:1 between hovered and resting rows with body text above 4.5:1 in the shipped themes. Override `--color-table-row-hover` in a theme to change it. Set `[rowHover]="false"` to turn it off. Remove per-row `hover:bg-*` workarounds.
|