@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
package/CHANGELOG.md
CHANGED
|
@@ -7,6 +7,105 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
|
7
7
|
|
|
8
8
|
## [Unreleased]
|
|
9
9
|
|
|
10
|
+
## [4.3.0] - 2026-10-15
|
|
11
|
+
|
|
12
|
+
### Added
|
|
13
|
+
|
|
14
|
+
- **Tree**: `st-tree` (`@sixbell-telco/sdk/components/tree`), a single-select WAI-ARIA treeview promoted from Herald. Nodes `{ id, label, badge?, icon?, children?, data? }` nest to any depth (`TreeNode<T>`); roving tabindex, Up/Down/Left/Right, Home/End, type-ahead (Space joins it while typing), `*` to expand every sibling branch, and Enter/Space; case-insensitive `filter` that expands matches; `[(selectedId)]` and `[(expandedIds)]` via `model()`; an `st-empty-state` for no nodes or no matches; and per-node actions through a projected `ng-template[stTreeNodeActions]` rendered for the node whose actions hold focus, else the hovered one, else the selected one, in a `role="group"` beside the tree (Tab from a row always goes to the selected node's actions, and focus moving between two action buttons never retargets the group), so treeitems stay free of interactive content. Rows follow the Herald Figma Tree / Item (32px, 20px indent, layers and tune icons, soft badge). New `sdk.tree.*` keys in the en, es and pt bundles
|
|
15
|
+
- **Truncate**: `stTruncate` directive (`@sixbell-telco/sdk/directives/truncate`) keeps long text on one line, or `stTruncateLines` lines, with an ellipsis and shows the full text in a popover only while the text is cut off. It re-measures on resize, text changes and web-font load (SSR-safe); opens on hover (with open/close delays), keyboard focus and touch tap; the popover is hoverable and closes on Escape, blur or leave (WCAG 1.4.13). Screen readers keep the element's own full text (the popover is `aria-hidden`), and only truncated, non-focusable text outside an interactive ancestor (native control, `tabindex` of 0 or more, or a children-presentational role; `tabindex="-1"` containers such as the dialog container do not count) becomes a tab stop (`stTruncateFocusable="false"` opts out, for dense tables). Replaces the hand-rolled `app-detail-field` truncation in consumers
|
|
16
|
+
- **Segmented Button**: `st-segmented-button` (`@sixbell-telco/sdk/components/segmented-button`), a single-choice control promoted from the reports MFE. WAI-ARIA radio group with a roving tabindex, arrow/Home/End keys that move focus and select (wrapping, skipping disabled segments), `[(value)]` via `model()`, a `ControlValueAccessor` with disabled state, `variant` (default `base`) and `size` on the `st-button` scale, optional icons and `fullWidth`
|
|
17
|
+
- **Dialog**: `fullscreenOnMobile` input (default `true`, accepts the bare attribute). Below the `sm` breakpoint (640px) the dialog fills the screen: full width and `100dvh`, no radius, the content scrolls and the actions stay visible. Pass `[fullscreenOnMobile]="false"` for a short confirm that should stay a centered card on phones. The focus trap and the `prefers-reduced-motion` handling are unchanged
|
|
18
|
+
- **Card**: `sticky` input on `st-card-footer` for long create/edit forms. The footer stays at the bottom of the scroll area on the card surface (`bg-base-200`), with a `base-300` top border and a static shadow (no transition). Prefer `sticky` for long forms; `divided` remains for static footers. Nothing is deprecated
|
|
19
|
+
- **Wizard**: `nextDescribedBy` input, rendered as `aria-describedby` on the built-in Next/End button. Point it at the notice that explains why the step cannot continue
|
|
20
|
+
- **Button**: `ariaDescribedBy` input, forwarded to the inner `<button>` as `aria-describedby`
|
|
21
|
+
- **Button**: `ariaControls` input, forwarded to the inner `<button>` as `aria-controls`
|
|
22
|
+
- **Button**: in dev mode, a button with no `variant` (or `variant="base"`) that is neither `ghost` nor `link` logs one console warning per instance. The default stays `base`; production builds never warn
|
|
23
|
+
- **Table**: `contextLabel` input on `st-table-action` and `st-table-actions`. The accessible name becomes "<tooltip> <contextLabel>" ("Editar producto ABC") while the tooltip still shows "Editar", so the name starts with the visible label (WCAG 2.5.3). In `dropdown` mode the trigger is named "<actions label> <contextLabel>"
|
|
24
|
+
- **Alert**: new `@sixbell-telco/sdk/components/alert` entry point with `st-alert` and `st-alert-actions`, an inline callout with `info` / `success` / `warning` / `error` soft styling, an optional icon, `heading`, projected body, `st-alert-actions` slot and `dismissible` close button (`dismissed` output). The host is the live region: `role="status"` for info, success and warning, `role="alert"` for error or when `assertive` is set. An `id` input lets controls reference it with `aria-describedby`. The surface is opaque and the icon and heading read `--color-<status>-strong`, so text keeps 4.5:1 over the modern layout band. Replaces raw `div.alert` markup
|
|
25
|
+
- **Empty State**: new `@sixbell-telco/sdk/components/empty-state` entry point with `st-empty-state`, `st-empty-state-media` and `st-empty-state-actions`: a theme illustration (asset key, default `empty-illustration`) or projected media, `heading`, `description`, a single CTA slot and a compact `size="sm"` for tables. Opaque `base-100` surface with `base-content` text. Replaces the `app-empty-table` copies
|
|
26
|
+
- **Table**: a projected `st-empty-state` replaces the built-in "no data" and "no results" blocks of `st-table` (never while loading). The table detects it through the new `TABLE_EMPTY_STATE` injection token in the dependency-free `@sixbell-telco/sdk/components/table/tokens` entry (also re-exported from `@sixbell-telco/sdk/components/table`), so neither entry pulls the other's shared bundle in Native Federation; custom empty states can provide the token
|
|
27
|
+
- **Data Table**: a projected `st-empty-state` replaces the built-in "no data" block of `st-data-table`, and its "no results" block when a search or filter is active, the same way as `st-table` (never while loading, never when there are rows). It is detected through the `TABLE_EMPTY_STATE` token from `@sixbell-telco/sdk/components/table/tokens`, so the data-table entry does not import the empty-state entry. Without a projection the built-in blocks are unchanged
|
|
28
|
+
- **Description List**: new `@sixbell-telco/sdk/components/description-list` entry point with `st-description-list` and `div[st-description-item]`, a semantic `<dl>` key/value grid (one column on mobile, `columns` 1 / 2 / 3 from `md`, default 2), `—` placeholder announced as "No value", optional copy button, projected values and `divided` rows. Replaces the `app-detail-field` copies
|
|
29
|
+
- **Forms**: required marker. `st-input`, `st-textarea`, `st-select`, `st-combobox`, `st-range` and `st-date-picker` get a `required` input and show `*` after the label, announced through `aria-required` (date-picker: marker only, its projected trigger carries the attribute; range: marker plus a visually hidden "Required" note in `aria-describedby`, because `aria-required` is not allowed on the slider role). When the input is not set, `st-form-item [required]` and then `Validators.required` on the bound control decide. `showOptional` is unchanged
|
|
30
|
+
- **Forms**: new `@sixbell-telco/sdk/components/forms/form-hint` entry point with `st-form-hint` (helper text whose id is added to the control's `aria-describedby` inside `st-form-item`) and `st-form-required-legend` (`sdk.formFields.requiredLegend`). `st-form-item` gains a `required` input and exports `injectFormFieldA11y` / `optionalBooleanAttribute` for custom controls
|
|
31
|
+
- **Unsaved Changes**: new `@sixbell-telco/sdk/utils/unsaved-changes` entry point with `unsavedChangesGuard` (`CanDeactivateFn<HasUnsavedChanges>`), `UnsavedChangesService.confirmDiscard()` and `injectBeforeUnloadGuard()`. The confirm dialog is `st-dialog` width `lg` with right-aligned "Seguir editando" (`secondary`) then "Descartar" (`error`)
|
|
32
|
+
- **Translations**: new SDK keys `sdk.alert.dismiss`, `sdk.descriptionList.{copy,copied,empty}`, `sdk.formFields.required`, `sdk.formFields.requiredLegend` and `sdk.unsavedChanges.{title,message,keepEditing,discard}` in the en, es and pt bundles (English fallback in code), with a key-parity contract spec
|
|
33
|
+
- **Translation**: the package ships the SDK translation bundles at `i18n/sdk/{en,es,pt}.json`. Serve them from `node_modules` with an `angular.json` asset glob (`{ "glob": "**/*.json", "input": "node_modules/@sixbell-telco/sdk/i18n/sdk", "output": "assets/i18n/sdk" }`) instead of copying them into each app. `lib:build` checks the built package holds byte-identical copies of `projects/sdk/i18n/sdk`
|
|
34
|
+
- **Translation**: `@sixbell-telco/sdk/utils/translation/testing` entry point for specs. `provideTranslationTesting({ translations, lang })` registers the real ngx-translate `TranslateService` with in-memory translations and `FakeTranslationService` (the full public `TranslationService` API), so `instant()` reads the active language at call time, `use()` / `setLanguage()` emit `onLangChange`, and `{{param}}` placeholders are interpolated
|
|
35
|
+
- **Theme**: product theme overlays. A repo-owned overlay file adds tokens to a shared catalog for both schemes, or overrides its `--color-counters-*` / `--color-metrics-*` tokens, without forking the catalog. Register it with `provideRuntimeTheme(path, { overlays: [...] })` or `themes.json` `overlays`. `validateThemeOverlay()` / `validateThemeOverlayFor()` reject DaisyUI core tokens, other catalog tokens, unpaired light/dark tokens and malformed files; the runtime skips a rejected overlay whole and logs why
|
|
36
|
+
|
|
37
|
+
### Consumer upgrade
|
|
38
|
+
|
|
39
|
+
- Delete the copied `src/assets/i18n/sdk/{en,es,pt}.json` and add the asset glob above to `angular.json`
|
|
40
|
+
- Products that edited the synced `enghouse_networks` catalog (IRP's counter colours) move those tokens into an overlay, see the theme utility README
|
|
41
|
+
|
|
42
|
+
### Changed
|
|
43
|
+
|
|
44
|
+
- **Layouts (visual)**: the classic `st-app-layout` sidebar puts the collapse toggle at the right of the logo by default. `collapseToggle` now defaults to `header` instead of `footer`, so the toggle no longer sits at the bottom of the sidebar, above the account menu, with its own divider. On the collapsed rail it stays visible, centred under the logo mark, so a keyboard user can expand a pinned rail (with `header` the toggle used to disappear while collapsed). It forwards `aria-expanded` (the pinned state) and `aria-controls` (the sidebar `aside` id) and keeps the logo, toggle, menu focus order. Pass `collapseToggle="footer"` to keep the old footer button. The modern layout is unchanged
|
|
45
|
+
- **Dialog (visual)**: the default `width` is now `lg` (32rem) instead of `md` (24rem). Dialogs that set no `width` render 8rem wider. Set `width="md"` to keep the old size, or pick the width by purpose (form or action `lg`, delete confirm `xl` or `2xl`)
|
|
46
|
+
- **Dialog (visual)**: a dialog no longer grows wider than the viewport minus 2rem
|
|
47
|
+
- **Dialog**: `st-dialog-actions` aligns `right` by default instead of `left`. The dialog footer wrapper already pushed the actions to the right, so dialogs look the same; only an explicit `alignment` changes the layout. `st-card-actions` and `st-wizard-actions` keep `left`
|
|
48
|
+
|
|
49
|
+
### Fixed
|
|
50
|
+
|
|
51
|
+
- **Select / Combobox**: a value written through the form before its options arrive (async roles or statuses loading after the record) is kept and shows its label once a matching option binds, instead of the placeholder. This also holds when `options` is later replaced by another list, and for `st-combobox` in single and multiple mode (matching values show as soon as they resolve; values with no option yet stay pending, and a later user toggle keeps them in the emitted value instead of silently dropping them). The resolution does not call `onChange`, so the control stays pristine; a user choice, clear or `writeValue(null)` replaces it (clear is ignored while disabled). `st-combobox` multiple mode also no longer shows an extra "+N" for values missing from `options`. Consumers can drop the `afterRenderEffect` / `effect` re-fill workaround
|
|
52
|
+
- **Input / Textarea**: `valueDebounced` no longer emits after the component is destroyed. Leaving a page within the debounce window right after typing flushed the pending value into a destroyed output and threw `NG0953`; the debounce is now a `switchMap` over a `timer`, and `takeUntilDestroyed` unsubscribing on destroy drops the pending value instead of flushing it
|
|
53
|
+
- **Table / Data Table**: only an `st-empty-state` that is a direct child of `st-table` / `st-data-table` replaces the built-in empty blocks (`contentChild(TABLE_EMPTY_STATE, { descendants: false })`). A nested one, for example inside a cell, was detected but never projected, which hid the built-in block and left the area blank
|
|
54
|
+
- **Table / Data Table**: with no items the footer range reads "0-0 of 0 entries" instead of "1-0 of 0 entries"
|
|
55
|
+
- **Date utils**: `DateUtils.toISODate(date, format)` parses custom display formats (`DD/MM/YYYY`, `DD.MM.YYYY`…) on its own: `@sixbell-telco/sdk/utils/date` now registers dayjs `customParseFormat` itself; before, strict parsing only worked once `utils/formatting` or `st-countdown` had loaded and extended dayjs, and otherwise returned `Invalid Date`. An impossible date written in the given format (`31/02/2024`, `02/31/2024`, `2024/02/31`, `29/02/2023`) returns `Invalid Date` instead of rolling into the next month; input that does not fit the format at all still falls back to dayjs' own parsing
|
|
56
|
+
- **Tooltip**: the check that skips `aria-describedby` when the control's name already holds the tooltip text matches whole words, so "Delete" no longer matches inside "Undelete" nor "Copy" inside "Copyright". The name also reads the associated `<label>` (`for` or wrapping), `title` and `img` `alt`, and ignores `hidden` and `aria-hidden` content
|
|
57
|
+
- **Dialog**: the title and subtitle keep clear of the close button (✕); a long title wraps before it instead of running under it. Remove local `pe-*` workarounds
|
|
58
|
+
- **Dialog**: a full-screen dialog (`fullscreenOnMobile`, below `sm`) locks the page scroll behind it with the CDK block strategy, so wheel and touch scrolling no longer move the page under it. The lock follows viewport changes while the dialog is open, and it applies the lock styles inline on `<html>` too, so it works when the host page does not load the SDK stylesheet. Wider viewports and `[fullscreenOnMobile]="false"` dialogs keep the page scroll as before, so a sticky navbar does not jump; selects and tooltips inside the dialog are unaffected
|
|
59
|
+
- **Unsaved changes**: the `unsavedChangesGuard` confirm (`st-unsaved-changes-dialog`) stays a centered `lg` card on phones instead of filling the screen
|
|
60
|
+
- **Layouts**: the `st-layout-switcher` picker dialog stays a centered `lg` card on phones instead of filling the screen
|
|
61
|
+
- **Card (visual)**: a `sticky` `st-card-footer` squares its bottom corners while it floats over the content (`data-stuck`), and keeps the card radius at rest at the end of the card. It now sits 1px past the scroll edge so the stuck state can be detected; a footer entirely off screen is not marked stuck
|
|
62
|
+
- **Button (visual)**: a pressed `base` outline or dash toggle (`[ariaPressed]="true"`) also doubles its border, so the on state no longer differs from off by the light tint alone (about 1.5:1): outline gains an inset `base-content` ring and dash doubles its dashed border width, with the padding reduced to match. The added pixels change from the surface to `base-content`, well over 3:1. No layout shift; colored variants are unchanged
|
|
63
|
+
- **Button**: a pressed `base` outline or dash button (`aria-pressed`, `aria-checked`, `aria-current`, `btn-active` or `:active`) no longer looks weaker than at rest. daisyUI 5.7.47 repainted it with a near-`base-200` fill and a border that all but vanished (light: fill L 0.95, border L 0.93); it now keeps its `base-content` border and dashes and gains an 18% `base-content` tint (light L 0.84, dark L 0.32). Colored outline and dash buttons keep daisyUI's pressed fill. `st-button` marks a button without a color variant with a `btn-base` class for this rule
|
|
64
|
+
- **Wizard**: the built-in End button is disabled while any step is invalid. Its template bound `[disabled]` twice, so `loading()` overrode `!areAllStepsValid()` and End stayed enabled with invalid steps; it now uses `loading() || !areAllStepsValid()`
|
|
65
|
+
- **Layouts / Combobox (visual)**: kit buttons declare their role, so they do not trigger the new dev-mode button warning. The `st-page-banner` back button is `ghost` on a frosted `base-100` surface over art (same look as before) and on the modern gradient (it was a filled `base-200` button); the plain surface keeps `tertiary`, and the `st-combobox` "Clear all" button is `primary` ghost `sm` (the filter Clear role) instead of a base outline button
|
|
66
|
+
- **Avatar**: the `tertiary` variant paints the tertiary tokens (`from-tertiary to-tertiary-gradient`, `text-tertiary-content`) instead of reusing the secondary ones
|
|
67
|
+
- **Table / Data table**: the per-page options ("10 / página") follow a language change instead of keeping the language they were first rendered in
|
|
68
|
+
- **Layouts**: `st-user-menu` drops local classes that repeated the defaults of `st-dropdown-label` and the primary `st-avatar`; no visual change
|
|
69
|
+
- **Tooltip**: a click no longer leaves `st-tooltip` pinned. The tooltip opens on hover and keyboard focus (`:focus-visible`) only, so the focus a mouse click leaves on the trigger (or a dialog restores to it) neither shows it nor keeps it open after the pointer leaves. Pressing or activating the trigger (mouse, Enter or Space) hides it until the next hover or keyboard focus, also inside `st-table-action` and when the projected `st-button` sets `stopPropagation`. Escape hides it while it is hovered, wherever focus is (WCAG 1.4.13)
|
|
70
|
+
- **Tooltip**: the trigger's `aria-describedby` now always resolves. A `hidden` `role="tooltip"` element next to the trigger holds the text: it stays out of the reading order, but `aria-describedby` still resolves it, so screen readers announce the description after a mouse click or other focus that does not show the tooltip. The visible pane is `aria-hidden`, so the text is announced once (APG tooltip pattern). A control whose accessible name already contains the tooltip text (an icon button with its own label, `st-table-action` with `contextLabel`) gets no `aria-describedby`, so the text is not read twice. Tests or styles that queried `[role="tooltip"]` in the overlay container should use `[data-st-tooltip-pane]`
|
|
71
|
+
- **Tooltip**: the tooltip is hoverable (WCAG 1.4.13). Its pane takes the pointer and the new `closeDelay` input (default 120 ms, `0` hides at once) keeps it open while the pointer crosses from the trigger onto it
|
|
72
|
+
- **Tooltip**: Escape comes through the CDK overlay keyboard stack instead of a document listener, so it closes the tooltip only while the tooltip is the top layer. Inside `st-dialog` the first Escape closes the tooltip and the next one the dialog, and an overlay opened above the tooltip keeps its own Escape
|
|
73
|
+
- **MFE shell**: Tailwind utilities that depend on `@property` (`border`, `shadow-*`, `ring-*`, `translate-*`, gradients…) now resolve in content and `st-overlay`/tooltip/dialog panes of a child mounted with `MfeShadowShellComponent`. Browsers ignore `@property` inside a shadow root, so the shell registers the child stylesheet's `@property` rules once at document level. It skips properties the document already registers (registration is global and the first one wins), so a child built with another Tailwind version cannot change the host's initial values, and in dev mode it warns through `LoggerService`, naming the href, when a cross-origin stylesheet without CORS cannot be read.
|
|
74
|
+
- **Inputs**: boolean inputs accept the bare attribute. Every plain boolean flag input across components, layouts and directives (for example `st-input` `passwordToggle`, `st-button` `disabled`, `st-table` `zebra`) now uses Angular's `booleanAttribute` transform, so `<st-input passwordToggle>` enables the flag instead of passing `""` and doing nothing. `[x]="true"` / `[x]="false"` bindings behave as before; tri-state inputs (`ariaExpanded`, `ariaPressed`, side-menu `collapsed`) and `model()` inputs are unchanged
|
|
75
|
+
- **Styles**: the published stylesheet no longer makes Tailwind scan the folder around the package. `_index.css` declared `source('../')`, which in `dist/sdk/` or `node_modules/@sixbell-telco/sdk/` pointed one level above the package, so a consumer build also scanned sibling folders (for example a previous `dist/showcase` build, which grew the showcase styles by 23 kB). The stylesheet now ships as `src/_index.css` next to a one-line `_index.css` that imports it, so the scan root is the package itself and stale build or `coverage/` output next to it no longer changes the generated CSS. The import path `@sixbell-telco/sdk/_index.css` and the generated SDK classes are unchanged
|
|
76
|
+
- **Textarea**: text starts at the top of `st-textarea` without `maxCharacters`. The field had no row template in that case, so DaisyUI's `align-items: center` centred the textarea in the 80px box (22px from the top at `size="sm"` `[rows]="2"`, against 9px with a counter). The text row is now always `minmax(0,1fr)` and the textarea fills it (`h-full min-h-0`), so it starts at the top padding in both cases and a click anywhere in the text area focuses it. Without a counter the field also grows with `rows` instead of overflowing its fixed height. The counter position is unchanged
|
|
77
|
+
|
|
78
|
+
### Consumer upgrade
|
|
79
|
+
|
|
80
|
+
- Dialogs without `width` grow from 24rem to 32rem. Set `width` explicitly by purpose; keep `width="md"` only for a one-line alert
|
|
81
|
+
- Short confirm dialogs that should stay a card on phones: add `[fullscreenOnMobile]="false"`
|
|
82
|
+
- Remove local `pe-*` padding added to dialog titles to clear the ✕ (for example Herald's `pe-10`)
|
|
83
|
+
- Classic sidebar toggle: `collapseToggle="header"` is now the default, so the local override is redundant. SBP (`src/app/core/layouts/main-layout/main-layout.component.html`, its `main-layout.component.spec.ts` assertion and `"collapseToggle": "header"` in `mfe-foundation.config.json`) and IRP (the same three files) can delete it after this release; the starters and the child harnesses (aux-tables, decision-data-tables, audit, bulkload, guas, reports) carry the same attribute. Apps that want the old footer button pass `collapseToggle="footer"`
|
|
84
|
+
- Fix the dev-mode `[st-button] … no role variant` warnings by giving each button a role (`primary`, `secondary`, `tertiary` or a status color), or make utility buttons `ghost`/`link`
|
|
85
|
+
- Row actions: pass `contextLabel` with the row's name to `st-table-action` / `st-table-actions`
|
|
86
|
+
- Remove `appDismissTooltipOnClick` / `DismissTooltipOnClickDirective` (SBP, aux-tables, decision tables) and its call sites: `st-tooltip` now dismisses itself on click
|
|
87
|
+
- Children mounted with `MfeShadowShellComponent` can style overlay content with utility classes again; reports can replace its inline `[style]` token maps (`daisy-overlay-tokens.ts` and the four `*-styles.ts` files) with classes
|
|
88
|
+
|
|
89
|
+
## [4.2.0] - 2026-10-14
|
|
90
|
+
|
|
91
|
+
### Added
|
|
92
|
+
|
|
93
|
+
- **Forms**: `inputId` input on `st-input`, `st-textarea`, `st-select`, `st-combobox`, `st-range` and `st-date-picker` to set the control id the label points at (a stable unique id is generated otherwise).
|
|
94
|
+
- **Input**: `passwordToggle` on `st-input type="password"` (see Fixed).
|
|
95
|
+
- **Theme**: `--color-{info,success,warning,error}-strong` tokens for status text on base surfaces (see Fixed).
|
|
96
|
+
|
|
97
|
+
### Fixed
|
|
98
|
+
|
|
99
|
+
- **Forms**: `st-input`, `st-textarea`, `st-select`, `st-combobox` and `st-range` now name their control from `label`. The hidden `<label for>` pointed at `name`, but the inner control never had that id, so screen readers announced the fields without a name. Each control now gets a stable unique id (`st-input-0`, `st-select-1`, …) or the new `inputId` input, and the label points at it; no hidden label is rendered when `label` is empty. `st-date-picker` gets `inputId` too (falls back to `name`) for the projected trigger and drops the dangling label when neither is set
|
|
100
|
+
- **Input**: `passwordToggle` input on `st-input type="password"` renders a built-in reveal button named from the new `sdk.input.showPassword` / `sdk.input.hidePassword` keys (added to the en, es and pt SDK bundles, English fallback), controlling the input
|
|
101
|
+
- **Theme**: status text on base surfaces now meets WCAG AA. Outline, ghost, soft and dash buttons at rest, link buttons, outline/dash/soft badges and `link-*` read the new `--color-info-strong`, `--color-success-strong`, `--color-warning-strong` and `--color-error-strong` tokens (also `text-*-strong` utilities) instead of the fill colors. Light `enghouse_networks`, on `base-200` (`base-100`): warning 1.75:1 (1.63) → 6.14:1 (5.72), info 2.82:1 (2.62) → 5.78:1 (5.38), success 2.71:1 (2.52) → 6.18:1 (5.75), error 5.38:1 (5.00) → 6.35:1 (5.91, so the soft tint also passes). Dark values equal the fills, which already passed (5.33:1 or more). Filled status buttons and badges are unchanged. Every theme root (`:root` and any `[data-theme]`) derives the tokens from its own colors, `color-mix(in oklab, var(--color-<status>) 40%, var(--color-base-content))`, so a custom light or dark theme without them still passes AA; only `enghouse_networks__light` / `__dark` (and the unthemed root) pin the tuned values. Themes can override the tokens in their own `[data-theme]` block
|
|
102
|
+
|
|
103
|
+
### Consumer upgrade
|
|
104
|
+
|
|
105
|
+
- Remove local label workarounds such as IRP's `appInputLabelFor` directive: `st-input` and the other form fields now associate their label themselves. Pass `inputId` where a test or `aria-describedby` needs a known id
|
|
106
|
+
- Replace app-built password reveal buttons inside `st-input` with `passwordToggle`, or give them an `aria-label`
|
|
107
|
+
- Consumer theme catalogs that copy `enghouse_networks` may add the four `--color-*-strong` tokens; without them the stylesheet's tuned values apply under the `enghouse_networks__*` theme names, and any other theme name gets the mix computed from that theme's own colors
|
|
108
|
+
|
|
10
109
|
## [4.1.2] - 2026-10-13
|
|
11
110
|
|
|
12
111
|
### Fixed
|
|
@@ -945,7 +1044,9 @@ Each MFE (SBP host, aux-tables, audit, Herald, guas, ddt, bulkload) does the fol
|
|
|
945
1044
|
- **ngx-pagination**: Removed dependency after migrating to internal PaginationPipe
|
|
946
1045
|
- **Unused Exports**: Removed unused components and exports from public API
|
|
947
1046
|
|
|
948
|
-
[Unreleased]: https://github.com/EnghouseGlobal/NW-SX-web-libs-ui-kit/compare/4.
|
|
1047
|
+
[Unreleased]: https://github.com/EnghouseGlobal/NW-SX-web-libs-ui-kit/compare/4.3.0...HEAD
|
|
1048
|
+
[4.3.0]: https://github.com/EnghouseGlobal/NW-SX-web-libs-ui-kit/compare/4.2.0...4.3.0
|
|
1049
|
+
[4.2.0]: https://github.com/EnghouseGlobal/NW-SX-web-libs-ui-kit/compare/4.1.2...4.2.0
|
|
949
1050
|
[4.1.2]: https://github.com/EnghouseGlobal/NW-SX-web-libs-ui-kit/compare/4.1.1...4.1.2
|
|
950
1051
|
[4.1.1]: https://github.com/EnghouseGlobal/NW-SX-web-libs-ui-kit/compare/4.1.0...4.1.1
|
|
951
1052
|
[4.1.0]: https://github.com/EnghouseGlobal/NW-SX-web-libs-ui-kit/compare/4.0.0...4.1.0
|
package/README.md
CHANGED
|
@@ -10,7 +10,7 @@ The SDK provides:
|
|
|
10
10
|
|
|
11
11
|
- **25+ Production-Ready Components**: Button, Card, Form inputs, Data Table, Dialog, Dropdown, and more
|
|
12
12
|
- **Utility Services**: Theme management, i18n translation, logging, runtime config, and formatting
|
|
13
|
-
- **Directive Support**: Text, auto-focus, click-outside, and only-numbers
|
|
13
|
+
- **Directive Support**: Text, truncate, auto-focus, click-outside, and only-numbers
|
|
14
14
|
- **Tailwind CSS v4 + DaisyUI**: Modern styling with customizable themes
|
|
15
15
|
- **Multi-Entry Point Architecture**: Granular imports for optimized bundle sizes
|
|
16
16
|
- **Angular 19 Signal-Based**: Modern reactive patterns with Angular signals
|
|
@@ -26,53 +26,59 @@ The SDK provides:
|
|
|
26
26
|
|
|
27
27
|
### General Components
|
|
28
28
|
|
|
29
|
-
| Component
|
|
30
|
-
|
|
|
31
|
-
| Accordion
|
|
32
|
-
|
|
|
33
|
-
|
|
|
34
|
-
|
|
|
35
|
-
|
|
|
36
|
-
|
|
|
37
|
-
|
|
|
38
|
-
|
|
|
39
|
-
|
|
|
40
|
-
|
|
|
41
|
-
|
|
|
42
|
-
|
|
|
43
|
-
|
|
|
44
|
-
|
|
|
45
|
-
|
|
|
46
|
-
|
|
|
47
|
-
|
|
|
48
|
-
|
|
|
49
|
-
|
|
|
50
|
-
|
|
|
51
|
-
|
|
|
52
|
-
|
|
|
53
|
-
|
|
|
54
|
-
|
|
|
55
|
-
|
|
|
56
|
-
|
|
|
57
|
-
|
|
|
29
|
+
| Component | Description | Documentation |
|
|
30
|
+
| ---------------- | ----------------------------------------------------------------------------- | ----------------------------------------------- |
|
|
31
|
+
| Accordion | Expandable/collapsible content sections | [README](components/accordion/README.md) |
|
|
32
|
+
| Alert | Inline status callout with role per urgency | [README](components/alert/README.md) |
|
|
33
|
+
| Audio Player | Audio playback with track controls | [README](components/audio-player/README.md) |
|
|
34
|
+
| Avatar | User profile pictures with initials fallback | [README](components/avatar/README.md) |
|
|
35
|
+
| Badge | Status and label indicators | [README](components/badge/README.md) |
|
|
36
|
+
| Button | Interactive buttons with variants and sizes | [README](components/button/README.md) |
|
|
37
|
+
| Card | Compound content shell with contextual headers, sections, and divided footers | [README](components/card/README.md) |
|
|
38
|
+
| Countdown | Countdown timer with customizable formatting | [README](components/countdown/README.md) |
|
|
39
|
+
| Description List | Semantic responsive key/value grid for detail pages | [README](components/description-list/README.md) |
|
|
40
|
+
| Data Table | Advanced grid with sorting, filtering, pagination, row actions | [README](components/data-table/README.md) |
|
|
41
|
+
| Dialog | Modal dialogs with animations and positioning | [README](components/dialog/README.md) |
|
|
42
|
+
| Divider | Semantic divider with orientation, placement, and margin control | [README](components/divider/README.md) |
|
|
43
|
+
| Dropdown | Menu dropdown for actions and links | [README](components/dropdown/README.md) |
|
|
44
|
+
| Dropdown Menu | Advanced nested menu system | [README](components/dropdown-menu/README.md) |
|
|
45
|
+
| Dual List | Dual list selection for managing items | [README](components/dual-list/README.md) |
|
|
46
|
+
| Empty State | Illustration, heading, description and single CTA for empty areas | [README](components/empty-state/README.md) |
|
|
47
|
+
| File Upload | File uploader and dropzone entry point | [README](components/file-upload/README.md) |
|
|
48
|
+
| Icon | SVG icon component with ng-icons integration | [README](components/icon/README.md) |
|
|
49
|
+
| Link | Hyperlink component with router support | [README](components/link/README.md) |
|
|
50
|
+
| Notification | Toast-style notifications | [README](components/notification/README.md) |
|
|
51
|
+
| Overlay | Generic overlay with trigger and content | [README](components/overlay/README.md) |
|
|
52
|
+
| Paginator | Pagination controls for data | [README](components/paginator/README.md) |
|
|
53
|
+
| Product Card | Product display card with image and actions | [README](components/product-card/README.md) |
|
|
54
|
+
| Progress | Progress bar with variants | [README](components/progress/README.md) |
|
|
55
|
+
| Segmented Button | Single-choice radio group styled as a compact button bar | [README](components/segmented-button/README.md) |
|
|
56
|
+
| Sonner Toast | Modern toast notifications via ngx-sonner | [README](components/sonner/README.md) |
|
|
57
|
+
| Tab | Tabbed navigation interface | [README](components/tab/README.md) |
|
|
58
|
+
| Table | Data table with inline and dropdown row actions | [README](components/table/README.md) |
|
|
59
|
+
| Text | Polymorphic text component with semantic HTML tags | [README](components/text/README.md) |
|
|
60
|
+
| Tree | Single-select WAI-ARIA tree with filter, badges and node actions | [README](components/tree/README.md) |
|
|
61
|
+
| Tooltip | Floating tooltip with positioning | [README](components/tooltip/README.md) |
|
|
62
|
+
| Wizard | Multi-step wizard with validation | [README](components/wizard/README.md) |
|
|
58
63
|
|
|
59
64
|
### Form Components
|
|
60
65
|
|
|
61
|
-
| Component | Description
|
|
62
|
-
| ---------- |
|
|
63
|
-
| Checkbox | Checkbox input with multiple variants
|
|
64
|
-
| Combobox | Searchable dropdown with multi-select support
|
|
65
|
-
| Datepicker | Single and range date selection with time
|
|
66
|
-
| Form Item | Layout wrapper for fields + full-width errors
|
|
67
|
-
| Form
|
|
68
|
-
| Form
|
|
69
|
-
|
|
|
70
|
-
|
|
|
71
|
-
|
|
|
72
|
-
|
|
|
73
|
-
|
|
|
74
|
-
|
|
|
75
|
-
|
|
|
66
|
+
| Component | Description | Documentation |
|
|
67
|
+
| ---------- | ------------------------------------------------------ | ------------------------------------------------ |
|
|
68
|
+
| Checkbox | Checkbox input with multiple variants | [README](components/forms/checkbox/README.md) |
|
|
69
|
+
| Combobox | Searchable dropdown with multi-select support | [README](components/forms/combobox/README.md) |
|
|
70
|
+
| Datepicker | Single and range date selection with time | [README](components/forms/date-picker/README.md) |
|
|
71
|
+
| Form Item | Layout wrapper for fields + full-width errors | [README](components/forms/form-item/README.md) |
|
|
72
|
+
| Form Hint | Field hint linked by aria-describedby, required legend | [README](components/forms/form-hint/README.md) |
|
|
73
|
+
| Form Error | Error message display for form fields | [README](components/forms/form-error/README.md) |
|
|
74
|
+
| Form Group | Vertical spacing helper for grouped fields | [README](components/forms/form-group/README.md) |
|
|
75
|
+
| Input | Text input with variants, icons, and validation | [README](components/forms/input/README.md) |
|
|
76
|
+
| Radio | Radio button group selection | [README](components/forms/radio/README.md) |
|
|
77
|
+
| Range | Slider input for numeric ranges | [README](components/forms/range/README.md) |
|
|
78
|
+
| Select | Dropdown select with object support | [README](components/forms/select/README.md) |
|
|
79
|
+
| Switch | Toggle switch for boolean values | [README](components/forms/switch/README.md) |
|
|
80
|
+
| Textarea | Multi-line text input with character count | [README](components/forms/textarea/README.md) |
|
|
81
|
+
| Toggle | Toggle button for boolean states | [README](components/forms/toggle/README.md) |
|
|
76
82
|
|
|
77
83
|
### Form field chrome (Select, Combobox, Dropdown)
|
|
78
84
|
|
|
@@ -123,13 +129,14 @@ Add the translation key to your SDK translations (example shown for English):
|
|
|
123
129
|
|
|
124
130
|
### Utility Services
|
|
125
131
|
|
|
126
|
-
| Service | Purpose | Documentation
|
|
127
|
-
| ------------------- | -------------------------------------------------- |
|
|
128
|
-
| Logger Service | Theme-aware logging with IndexedDB persistence | [README](utils/logger/)
|
|
129
|
-
|
|
|
130
|
-
|
|
|
131
|
-
|
|
|
132
|
-
|
|
|
132
|
+
| Service | Purpose | Documentation |
|
|
133
|
+
| ------------------- | -------------------------------------------------- | -------------------------------- |
|
|
134
|
+
| Logger Service | Theme-aware logging with IndexedDB persistence | [README](utils/logger/) |
|
|
135
|
+
| Unsaved Changes | canDeactivate guard + beforeunload helper | [README](utils/unsaved-changes/) |
|
|
136
|
+
| Theme Service | Runtime theme management with multi-tenant support | [README](utils/theme/) |
|
|
137
|
+
| Translation Service | Multi-language i18n with ngx-translate integration | [README](utils/translation/) |
|
|
138
|
+
| Formatting Service | Reactive locale-aware formatting utilities | [README](utils/formatting/) |
|
|
139
|
+
| Runtime Config | Last-known-good runtime config loader | [README](utils/runtime-config/) |
|
|
133
140
|
|
|
134
141
|
### Directives
|
|
135
142
|
|
|
@@ -139,6 +146,7 @@ Add the translation key to your SDK translations (example shown for English):
|
|
|
139
146
|
| click-outside | Detect clicks outside an element |
|
|
140
147
|
| only-numbers | Restrict input to numeric values only |
|
|
141
148
|
| text | Apply preset-based typography with line-clamp support |
|
|
149
|
+
| truncate | Ellipsis with a full-text popover only when cut off |
|
|
142
150
|
|
|
143
151
|
## Installation
|
|
144
152
|
|
|
@@ -604,9 +612,22 @@ Create `/assets/translation/translation.json` in your application:
|
|
|
604
612
|
- `excludeLanguages`: built-in languages to remove from the available list
|
|
605
613
|
- `locale.languageToLocale`: mapping used by `FormattingService` and the formatting pipes
|
|
606
614
|
|
|
607
|
-
### 2.
|
|
615
|
+
### 2. Serve the SDK Translations from the Package
|
|
608
616
|
|
|
609
|
-
|
|
617
|
+
The package ships the SDK bundles at `@sixbell-telco/sdk/i18n/sdk/{en,es,pt}.json`. Serve them from `node_modules` with an asset glob in the application's `angular.json` build options, instead of copying them into the app:
|
|
618
|
+
|
|
619
|
+
```json
|
|
620
|
+
"assets": [
|
|
621
|
+
"src/assets",
|
|
622
|
+
{ "glob": "**/*.json", "input": "node_modules/@sixbell-telco/sdk/i18n/sdk", "output": "assets/i18n/sdk" }
|
|
623
|
+
]
|
|
624
|
+
```
|
|
625
|
+
|
|
626
|
+
Keep `"/assets/i18n/sdk/"` in `translationPaths`. Upgrading the SDK then updates its labels with no copy step. Files from later paths win the merge, so to override an `sdk.*` key put your own path after `/assets/i18n/sdk/`. Delete any old copy under `src/assets/i18n/sdk/` so the package is the only source.
|
|
627
|
+
|
|
628
|
+
### 3. Create Translation Files
|
|
629
|
+
|
|
630
|
+
Create your application's translation files at the other paths defined in `translation.json`. The SDK bundles above have this structure, shown here for reference:
|
|
610
631
|
|
|
611
632
|
**English (`/assets/i18n/sdk/en.json`):**
|
|
612
633
|
|
|
@@ -1003,7 +1024,7 @@ Create language translation files at the paths defined in `translation.json`. Th
|
|
|
1003
1024
|
}
|
|
1004
1025
|
```
|
|
1005
1026
|
|
|
1006
|
-
###
|
|
1027
|
+
### 4. Access Language Functionality in Components
|
|
1007
1028
|
|
|
1008
1029
|
The TranslationService automatically loads available languages from `translation.json`:
|
|
1009
1030
|
|
|
@@ -1028,7 +1049,7 @@ export class MyComponent {
|
|
|
1028
1049
|
}
|
|
1029
1050
|
```
|
|
1030
1051
|
|
|
1031
|
-
###
|
|
1052
|
+
### 5. Use Translations in Templates
|
|
1032
1053
|
|
|
1033
1054
|
Translations are automatically loaded and available through the `translate` pipe:
|
|
1034
1055
|
|
|
@@ -1047,7 +1068,7 @@ Translations are automatically loaded and available through the `translate` pipe
|
|
|
1047
1068
|
</select>
|
|
1048
1069
|
```
|
|
1049
1070
|
|
|
1050
|
-
###
|
|
1071
|
+
### 6. Add Custom Application Translations
|
|
1051
1072
|
|
|
1052
1073
|
Extend the translation files with your application-specific keys:
|
|
1053
1074
|
|
|
@@ -1279,28 +1300,39 @@ export class ExampleComponent {}
|
|
|
1279
1300
|
### Using Form Components
|
|
1280
1301
|
|
|
1281
1302
|
```typescript
|
|
1282
|
-
import { Component
|
|
1283
|
-
import { ReactiveFormsModule, FormControl, FormGroup } from '@angular/forms';
|
|
1284
|
-
import { InputComponent } from '@sixbell-telco/sdk/components/forms/input';
|
|
1303
|
+
import { Component } from '@angular/core';
|
|
1304
|
+
import { ReactiveFormsModule, FormControl, FormGroup, Validators } from '@angular/forms';
|
|
1285
1305
|
import { ButtonComponent } from '@sixbell-telco/sdk/components/button';
|
|
1306
|
+
import { FormHintComponent, FormRequiredLegendComponent } from '@sixbell-telco/sdk/components/forms/form-hint';
|
|
1307
|
+
import { FormItemComponent } from '@sixbell-telco/sdk/components/forms/form-item';
|
|
1308
|
+
import { InputComponent } from '@sixbell-telco/sdk/components/forms/input';
|
|
1286
1309
|
|
|
1287
1310
|
@Component({
|
|
1288
1311
|
selector: 'app-form-example',
|
|
1289
1312
|
standalone: true,
|
|
1290
|
-
imports: [
|
|
1313
|
+
imports: [ButtonComponent, FormHintComponent, FormItemComponent, FormRequiredLegendComponent, InputComponent, ReactiveFormsModule],
|
|
1291
1314
|
template: `
|
|
1292
|
-
<form [formGroup]="form">
|
|
1293
|
-
<st-
|
|
1294
|
-
<st-
|
|
1315
|
+
<form [formGroup]="form" (ngSubmit)="submit()">
|
|
1316
|
+
<st-form-required-legend />
|
|
1317
|
+
<st-form-item>
|
|
1318
|
+
<st-input label="Email" formControlName="email" [parentForm]="form" />
|
|
1319
|
+
<st-form-hint>We send the invitation to this address.</st-form-hint>
|
|
1320
|
+
</st-form-item>
|
|
1321
|
+
<!-- The submit stays enabled: validation runs on submit. -->
|
|
1322
|
+
<st-button variant="primary" type="submit">Create contact</st-button>
|
|
1295
1323
|
</form>
|
|
1296
1324
|
`,
|
|
1297
1325
|
})
|
|
1298
1326
|
export class FormExampleComponent {
|
|
1299
1327
|
form = new FormGroup({
|
|
1300
|
-
email: new FormControl(''),
|
|
1328
|
+
email: new FormControl('', [Validators.required, Validators.email]),
|
|
1301
1329
|
});
|
|
1302
1330
|
|
|
1303
1331
|
submit() {
|
|
1332
|
+
if (this.form.invalid) {
|
|
1333
|
+
this.form.markAllAsTouched();
|
|
1334
|
+
return;
|
|
1335
|
+
}
|
|
1304
1336
|
console.log(this.form.value);
|
|
1305
1337
|
}
|
|
1306
1338
|
}
|
|
@@ -1376,7 +1408,7 @@ import { ButtonComponent } from '@sixbell-telco/sdk';
|
|
|
1376
1408
|
All SDK components use the `st-` prefix:
|
|
1377
1409
|
|
|
1378
1410
|
```html
|
|
1379
|
-
<st-button>
|
|
1411
|
+
<st-button variant="primary">Save changes</st-button>
|
|
1380
1412
|
<st-input type="text" />
|
|
1381
1413
|
<st-card>Card Content</st-card>
|
|
1382
1414
|
<st-divider>OR</st-divider>
|