@sixbell-telco/sdk 4.4.0 → 4.6.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.
Files changed (128) hide show
  1. package/CHANGELOG.md +272 -985
  2. package/GLOSSARY.md +76 -0
  3. package/README.md +143 -1346
  4. package/banner.webp +0 -0
  5. package/components/badge/src/badge.component.d.ts +6 -1
  6. package/components/dropdown-menu/README.md +1 -0
  7. package/components/dropdown-menu/bar/dropdown-menu-bar/dropdown-menu-bar.component.d.ts +2 -0
  8. package/components/dropdown-menu/bar/dropdown-menu-bar-sub-trigger/dropdown-menu-bar-sub-trigger.component.d.ts +9 -2
  9. package/components/dropdown-menu/bar/dropdown-menu-bar-trigger/dropdown-menu-bar-trigger.component.d.ts +6 -0
  10. package/components/dropdown-menu/context/dropdown-context-menu-trigger/dropdown-context-menu-trigger.component.d.ts +7 -0
  11. package/components/dropdown-menu/public-api.d.ts +1 -0
  12. package/components/dropdown-menu/src/directives/dropdown-menu-keyboard.directive.d.ts +54 -0
  13. package/components/dropdown-menu/src/dropdown-menu-sub-trigger/dropdown-menu-sub-trigger.component.d.ts +5 -0
  14. package/components/dropdown-menu/src/dropdown-menu-trigger/dropdown-menu-trigger.component.d.ts +15 -2
  15. package/components/forms/checkbox/src/checkbox.component.d.ts +12 -1
  16. package/components/status-illustration/README.md +38 -0
  17. package/components/status-illustration/index.d.ts +5 -0
  18. package/components/status-illustration/public-api.d.ts +1 -0
  19. package/components/status-illustration/src/status-illustration.component.d.ts +42 -0
  20. package/components/tab/directives/tab-content/tab-content.directive.d.ts +1 -1
  21. package/components/tree/README.md +11 -1
  22. package/components/tree/src/tree.component.d.ts +44 -5
  23. package/components/wizard/README.md +17 -0
  24. package/components/wizard/services/wizard.service.d.ts +9 -0
  25. package/components/wizard/wizard-indicator/wizard-indicator.component.d.ts +71 -0
  26. package/components/wizard/wizard-wrapper/wizard-wrapper.component.d.ts +24 -1
  27. package/directives/text/src/text.directive.d.ts +6 -2
  28. package/fesm2022/sixbell-telco-sdk-components-audio-player.mjs +5 -5
  29. package/fesm2022/sixbell-telco-sdk-components-audio-player.mjs.map +1 -1
  30. package/fesm2022/sixbell-telco-sdk-components-badge.mjs +8 -2
  31. package/fesm2022/sixbell-telco-sdk-components-badge.mjs.map +1 -1
  32. package/fesm2022/sixbell-telco-sdk-components-button.mjs +1 -1
  33. package/fesm2022/sixbell-telco-sdk-components-button.mjs.map +1 -1
  34. package/fesm2022/sixbell-telco-sdk-components-card.mjs +3 -3
  35. package/fesm2022/sixbell-telco-sdk-components-card.mjs.map +1 -1
  36. package/fesm2022/sixbell-telco-sdk-components-data-table.mjs +4 -4
  37. package/fesm2022/sixbell-telco-sdk-components-data-table.mjs.map +1 -1
  38. package/fesm2022/sixbell-telco-sdk-components-dialog.mjs +3 -3
  39. package/fesm2022/sixbell-telco-sdk-components-dialog.mjs.map +1 -1
  40. package/fesm2022/sixbell-telco-sdk-components-dropdown-menu-bar.mjs +92 -25
  41. package/fesm2022/sixbell-telco-sdk-components-dropdown-menu-bar.mjs.map +1 -1
  42. package/fesm2022/sixbell-telco-sdk-components-dropdown-menu-context.mjs +29 -3
  43. package/fesm2022/sixbell-telco-sdk-components-dropdown-menu-context.mjs.map +1 -1
  44. package/fesm2022/sixbell-telco-sdk-components-dropdown-menu.mjs +271 -21
  45. package/fesm2022/sixbell-telco-sdk-components-dropdown-menu.mjs.map +1 -1
  46. package/fesm2022/sixbell-telco-sdk-components-dropdown.mjs +2 -2
  47. package/fesm2022/sixbell-telco-sdk-components-dropdown.mjs.map +1 -1
  48. package/fesm2022/sixbell-telco-sdk-components-dual-list.mjs +1 -1
  49. package/fesm2022/sixbell-telco-sdk-components-dual-list.mjs.map +1 -1
  50. package/fesm2022/sixbell-telco-sdk-components-file-upload.mjs +2 -2
  51. package/fesm2022/sixbell-telco-sdk-components-file-upload.mjs.map +1 -1
  52. package/fesm2022/sixbell-telco-sdk-components-forms-checkbox.mjs +14 -3
  53. package/fesm2022/sixbell-telco-sdk-components-forms-checkbox.mjs.map +1 -1
  54. package/fesm2022/sixbell-telco-sdk-components-forms-combobox.mjs +2 -2
  55. package/fesm2022/sixbell-telco-sdk-components-forms-combobox.mjs.map +1 -1
  56. package/fesm2022/sixbell-telco-sdk-components-forms-date-picker.mjs +2 -2
  57. package/fesm2022/sixbell-telco-sdk-components-forms-date-picker.mjs.map +1 -1
  58. package/fesm2022/sixbell-telco-sdk-components-forms-form-error.mjs +2 -2
  59. package/fesm2022/sixbell-telco-sdk-components-forms-form-error.mjs.map +1 -1
  60. package/fesm2022/sixbell-telco-sdk-components-forms-input.mjs +2 -2
  61. package/fesm2022/sixbell-telco-sdk-components-forms-input.mjs.map +1 -1
  62. package/fesm2022/sixbell-telco-sdk-components-forms-select.mjs +2 -2
  63. package/fesm2022/sixbell-telco-sdk-components-forms-select.mjs.map +1 -1
  64. package/fesm2022/sixbell-telco-sdk-components-forms-textarea.mjs +15 -5
  65. package/fesm2022/sixbell-telco-sdk-components-forms-textarea.mjs.map +1 -1
  66. package/fesm2022/sixbell-telco-sdk-components-paginator.mjs +2 -2
  67. package/fesm2022/sixbell-telco-sdk-components-paginator.mjs.map +1 -1
  68. package/fesm2022/sixbell-telco-sdk-components-product-card.mjs +1 -1
  69. package/fesm2022/sixbell-telco-sdk-components-product-card.mjs.map +1 -1
  70. package/fesm2022/sixbell-telco-sdk-components-segmented-button.mjs +1 -1
  71. package/fesm2022/sixbell-telco-sdk-components-segmented-button.mjs.map +1 -1
  72. package/fesm2022/sixbell-telco-sdk-components-sonner-toaster.mjs +2 -2
  73. package/fesm2022/sixbell-telco-sdk-components-sonner-toaster.mjs.map +1 -1
  74. package/fesm2022/sixbell-telco-sdk-components-sonner.mjs +2 -2
  75. package/fesm2022/sixbell-telco-sdk-components-sonner.mjs.map +1 -1
  76. package/fesm2022/sixbell-telco-sdk-components-status-illustration.mjs +66 -0
  77. package/fesm2022/sixbell-telco-sdk-components-status-illustration.mjs.map +1 -0
  78. package/fesm2022/sixbell-telco-sdk-components-tab.mjs +1 -0
  79. package/fesm2022/sixbell-telco-sdk-components-tab.mjs.map +1 -1
  80. package/fesm2022/sixbell-telco-sdk-components-table.mjs +4 -4
  81. package/fesm2022/sixbell-telco-sdk-components-table.mjs.map +1 -1
  82. package/fesm2022/sixbell-telco-sdk-components-tooltip.mjs +1 -1
  83. package/fesm2022/sixbell-telco-sdk-components-tooltip.mjs.map +1 -1
  84. package/fesm2022/sixbell-telco-sdk-components-tree.mjs +171 -51
  85. package/fesm2022/sixbell-telco-sdk-components-tree.mjs.map +1 -1
  86. package/fesm2022/sixbell-telco-sdk-components-wizard.mjs +123 -356
  87. package/fesm2022/sixbell-telco-sdk-components-wizard.mjs.map +1 -1
  88. package/fesm2022/sixbell-telco-sdk-directives-text.mjs +4 -1
  89. package/fesm2022/sixbell-telco-sdk-directives-text.mjs.map +1 -1
  90. package/fesm2022/sixbell-telco-sdk-directives-truncate.mjs +2 -2
  91. package/fesm2022/sixbell-telco-sdk-directives-truncate.mjs.map +1 -1
  92. package/fesm2022/sixbell-telco-sdk-layouts.mjs +61 -17
  93. package/fesm2022/sixbell-telco-sdk-layouts.mjs.map +1 -1
  94. package/fesm2022/sixbell-telco-sdk-utils-theme.mjs +23 -4
  95. package/fesm2022/sixbell-telco-sdk-utils-theme.mjs.map +1 -1
  96. package/i18n/sdk/en.json +4 -1
  97. package/i18n/sdk/es.json +4 -1
  98. package/i18n/sdk/pt.json +4 -1
  99. package/layouts/README.md +24 -6
  100. package/layouts/public-api.d.ts +1 -1
  101. package/layouts/src/layout-account.d.ts +16 -0
  102. package/layouts/src/page-banner/page-banner.component.d.ts +37 -6
  103. package/layouts/src/user-menu/user-menu.component.d.ts +4 -2
  104. package/manifest.json +10943 -0
  105. package/package.json +50 -38
  106. package/schematics/lib/plan.cjs +179 -0
  107. package/schematics/lib/tokens.cjs +133 -0
  108. package/schematics/lib/workspace.cjs +118 -0
  109. package/schematics/manual-steps.json +90 -0
  110. package/schematics/migration.json +15 -0
  111. package/schematics/migrations/v4-0-0/assets.cjs +331 -0
  112. package/schematics/migrations/v4-0-0/canonical/enghouse_networks.json +360 -0
  113. package/schematics/migrations/v4-0-0/canonical/shell.json +25 -0
  114. package/schematics/migrations/v4-0-0/canonical/theme-assets.json +44 -0
  115. package/schematics/migrations/v4-0-0/canonical/themes.json +11 -0
  116. package/schematics/migrations/v4-0-0/index.cjs +96 -0
  117. package/schematics/migrations/v4-0-0/layout.cjs +269 -0
  118. package/schematics/migrations/v4-0-0/shell.cjs +1864 -0
  119. package/schematics/migrations/v4-6-0/index.cjs +394 -0
  120. package/src/_index.css +257 -26
  121. package/utils/theme/README.md +1 -1
  122. package/utils/theme/public-api.d.ts +1 -1
  123. package/utils/theme/src/models/theme.d.ts +10 -0
  124. package/utils/theme/src/theme-assets/theme-assets.service.d.ts +12 -1
  125. package/banner.png +0 -0
  126. package/components/wizard/wizard-marker/wizard-marker.component.d.ts +0 -85
  127. package/components/wizard/wizard-step/wizard-step.component.d.ts +0 -83
  128. package/components/wizard/wizard-sub-step/wizard-sub-step.component.d.ts +0 -95
package/GLOSSARY.md ADDED
@@ -0,0 +1,76 @@
1
+ # Glossary
2
+
3
+ The words the Enghouse Networks UI Kit (`@sixbell-telco/sdk`), its docs, its lint rules, its CLI and MCP answers, and the MFE skills use. Each term is defined once: what it means here, an example, and the words not to use for it. When you write about the kit, use the term, never a word from its "Not" list.
4
+
5
+ This file ships in the SDK package, so it matches the installed version. Read it with `npx @sixbell-telco/sdk-tools mcp` (the `SixbellSdk:get_glossary` tool or the `glossary` resource).
6
+
7
+ ## Terms
8
+
9
+ - **base variant**: The ordinary, non-semantic `variant`, the default for fields; on an action it is valid only with ghost or link. Example: a shell icon control is `variant="base" ghost`. Not: neutral button, default color.
10
+ - **canvas**: The page background, the `base-100` step; raised surfaces sit on it. Example: `bg-base-100` behind the cards of a page. Not: page background, body color.
11
+ - **check**: `sdk-tools check`, the gate that runs the lint rules, the type check and the project steps and returns findings; work is done at exit 0. Example: `npx @sixbell-telco/sdk-tools check --json`. Not: audit, scan.
12
+ - **child**: An MFE that exposes routes to a host and also runs standalone in its harness. Example: the Herald MFE inside the IRP host. Not: micro-app, sub-app, client app.
13
+ - **composition**: How kit components combine into a screen: which component, where its actions go, which variant each takes. Example: a list page is one `st-card` with an `st-table` and row actions. Not: wrapping, skinning.
14
+ - **declaration**: One component, directive or pipe the manifest lists, with its kind, selector, entry point, inputs, outputs and slots. Example: `ButtonComponent` (`st-button`). Not: API item, widget.
15
+ - **delete confirm**: The dialog that confirms a delete: width `xl`, a `secondary` Cancel, then an `error` confirm last. Example: `[Cancelar] [Eliminar]`. Not: type-to-confirm, are-you-sure box.
16
+ - **deprecated**: Still works but is marked for removal, with a replacement the lint rules and the manifest name. Example: `get_tokens` lists each deprecated token with the role token that replaces it. Not: obsolete, sunset.
17
+ - **dialog**: The kit `st-dialog`, a window over the page with a title, content and `st-dialog-actions`; its width follows its purpose. Example: `st-dialog width="lg"` for a form dialog. Not: modal, popup.
18
+ - **empty state**: The `st-empty-state` shown where a list or page has nothing to show, with at most one action. Example: "No results" with a Clear filters button. Not: blank slate, no-data placeholder.
19
+ - **entry point**: One importable path of the SDK, one per component, directive or util; import only from it. Example: `@sixbell-telco/sdk/components/button`. Not: barrel, subpath, sub-entry.
20
+ - **exception**: An approved, dated entry in `sdk-tools.exceptions.json` (rule, path, reason, owner, until) that excepts matching findings. Example: `{ "rule": "DS_COLOR_LITERAL", "until": "2027-03-31" }`. Not: suppression, waiver, allowlist.
21
+ - **expose**: A key of a child's `federation.config.js` `exposes` that maps a public name to the route file the host loads. Example: `'./ReportsRoutes': './src/app/reports-shell.routes.ts'`. Not: export key, public route.
22
+ - **federation manifest**: The host's `federation.manifest.json`, which maps each remote's name to its URL. Example: `{ "mfe-reports": "/mfe-reports/remoteEntry.json" }`. Not: remotes file, remote registry.
23
+ - **finding**: One problem a check or a lint rule reports: file, line, severity, rule id, message and fix. Example: `src/app/a.html:4:3 error sdk/button-variant`. Not: violation, issue.
24
+ - **harness**: The child's own `MainLayoutComponent` with the shell, used only when the child runs standalone. Example: `ng serve` of a child shows its harness. Not: dev shell, test shell.
25
+ - **host**: The MFE that renders the shell, loads remotes from its federation manifest and owns the session, permissions, menus and page banner. Example: the IRP, SBP or Tracer web app. Not: container app, parent app, main app.
26
+ - **i18n key**: A dotted key in `translation.json` or the `sdk.*` bundles; one complete key per entity, never joined from parts. Example: `mfe_reports.list.title`. Not: message key, string id, translation key.
27
+ - **input**: A signal input of a kit component (`input()` or `model()`), with a type, allowed values and a default in the manifest. Example: `variant` on `st-button`. Not: prop, knob.
28
+ - **integration**: The wiring of a child into a host and its product: expose, federation manifest, proxy, route, permissions and i18n. Example: `npx @sixbell-telco/sdk-tools check --integration`. Not: hookup, plumbing.
29
+ - **kebab menu**: The `st-table-actions mode="dropdown"` menu that holds the row actions of a row with three or more. Example: view, edit and delete behind one ⋮ button. Not: overflow menu, three-dot menu, more menu.
30
+ - **kit**: The Enghouse Networks UI Kit: the design system, its theme and its SDK. Example: "use a kit component first". Not: UI lib, design library.
31
+ - **kit candidate**: A local `app-*` component built because the kit has none, marked with a `Kit candidate:` JSDoc line so it can move into the kit. Example: `/** Kit candidate: a step indicator. */`. Not: custom kit component.
32
+ - **layout**: The arrangement of the shell, `classic` or `modern`, set with `provideLayout({ defaultLayout })` and the layout selector. Example: `defaultLayout: 'modern'`. Not: view mode, page template.
33
+ - **main action**: The one `primary` action of a surface. Example: "Guardar cambios" on an edit page. Not: CTA, hero button.
34
+ - **manifest**: `@sixbell-telco/sdk/manifest.json`, the facts of the installed SDK: entry points, declarations, inputs, slots, stories and tokens. Example: `manifest.declarations[0].selector`. Not: API dump, component index.
35
+ - **MCP server**: `npx @sixbell-telco/sdk-tools mcp`, the `SixbellSdk` server whose tools answer from the installed SDK. Example: `SixbellSdk:get_component`. Not: AI plugin, API server.
36
+ - **menu param**: The `menu` query param that keeps a side menu item active under a `menu-id` host; navigations keep it with `queryParamsHandling`. Example: `/orders/new?menu=42`. Not: nav param, sidebar param.
37
+ - **MFE**: A micro frontend: an Angular app built with Native Federation that is a host or a child. Example: the Herald MFE. Not: microfrontend module, mini app.
38
+ - **MFE role**: Whether an MFE is a host or a child, from `mfe-foundation.config.json` `role`, else from its federation config. Example: `"role": "child"`. Not: app type, app kind.
39
+ - **migration**: An `ng update` schematic in the SDK that rewrites app code for one version. Example: the 4.6.0 migration renames removed inputs. Not: codemod, patch script.
40
+ - **modifier**: A style input that combines with a variant: outline, ghost, link, soft, dash, size. Example: `variant="primary" ghost size="sm"`. Not: style flag, style switch.
41
+ - **output**: An event of a kit component (`output()`), listed in the manifest. Example: `(saved)` on a form dialog. Not: event emitter, callback prop.
42
+ - **overlay**: Content the CDK renders outside the component tree: dialogs, dropdowns, tooltips, select panels; in a child it is outside the Shadow DOM. Example: an `st-dialog` panel in `.cdk-overlay-container`. Not: portal, floating layer.
43
+ - **page banner**: The `st-page-banner` at the top of a page: title, subtitle, back link and banner art. Example: route `title` and `data.subtitle` fill it. Not: hero, jumbotron, title bar.
44
+ - **page header**: The title and subtitle a child publishes to the host's page banner through the `PAGE_HEADER` SET and CLEAR topics. Example: `REPORTS.PAGE_HEADER.SET` with `{ title, subtitle }`. Not: header event, title message.
45
+ - **permission**: A string the host grants a user; a route guarded by `PermissionsGuard` lists the ones it needs in `data.permissionsRequired`. Example: `REPORTS_VIEW`. Not: privilege, access right.
46
+ - **preference selector**: A user menu control for language, scheme, theme or layout; hidden when only one choice is configured. Example: `showThemeSelector`. Not: switcher, preference picker.
47
+ - **product**: A host and its children, released together. Example: IRP, SBP, Tracer. Not: suite, solution.
48
+ - **project step**: A part of `check` over the whole app: federation, harness, wiring, config, i18n, styles or security. Example: the styles step reports `DS_COLOR_LITERAL`. Not: validator, phase.
49
+ - **PubSub**: The message bus a host and its children share; each message goes to a topic. Example: `PubSub.publish(PAGE_HEADER_SET, header)`. Not: event bus, broadcast.
50
+ - **recipe**: A step-by-step guide for a screen or a local component, served by `get_recipe` and written by `sdk-tools add`. Example: `crud-list`, `form-dialog`. Not: blueprint, playbook, cookbook.
51
+ - **recipe part**: A folder of template files under `recipes/parts/` that `sdk-tools add` writes; recipes share parts. Example: the `entity` part (model and store). Not: scaffold fragment, boilerplate.
52
+ - **remote**: A child as the host loads it at run time, by name from the federation manifest. Example: `loadRemoteModule('mfe-reports', './ReportsRoutes')`. Not: remote app, federated plugin.
53
+ - **remote shell**: The Shadow DOM component a child's expose mounts first, so the child's styles stay inside it. Example: `ReportsRemoteShellComponent` with `MfeShadowShellComponent`. Not: shadow wrapper, style sandbox.
54
+ - **restyle**: To put color, typography or surface classes on an `st-*` element; only layout and spacing classes are allowed there. Example: `<st-button class="bg-red-500">`. Not: reskin, style override.
55
+ - **role**: What an action does on its surface (main action, dismiss, destructive confirm, row action, shell control); each role has one variant. Example: a dialog dismiss is `secondary`. Not: action type, button type.
56
+ - **row action**: An action on one table row: view `primary`, edit `warning`, delete `error`, each with a tooltip. Example: `st-table-actions` with `contextLabel`. Not: inline action, row button.
57
+ - **rule id**: The stable name of a finding's rule: an MFE id or a lint rule name; exceptions and fixes key on it. Example: `MFE_NAV_001`, `sdk/button-role`. Not: error code, check id.
58
+ - **scheme**: The light or dark color set of a theme, or `system`. Example: `defaultScheme: 'system'`. Not: dark mode, color mode.
59
+ - **selector**: The tag or attribute an Angular declaration matches: `st-*` for the kit, `app-*` for the app. Example: `st-button`, `stTextColor`. Not: tag name, element name.
60
+ - **severity**: How serious a finding is: `error` fails the check, `warning` does not. Example: `sdk/no-nested-card` is a warning. Not: level, priority.
61
+ - **shell**: The kit `st-app-layout` frame of an app: navbar, side menu, page banner and the router outlet. Example: `<st-app-layout [items]="menus()">`. Not: chrome, app frame.
62
+ - **slot**: A place in a kit component where you project content, by element or attribute selector. Example: `st-card-header-aside` in `st-card-header`. Not: content area, insertion point.
63
+ - **standalone**: A child running on its own, without a host, with its harness and mock permissions. Example: `npm start` in a child repo. Not: solo mode, isolated mode.
64
+ - **state**: An interaction condition of a control: checked, open, selected, disabled, invalid, loading, expanded; never part of a variant name. Example: `[disabled]="saving()"`. Not: primary-disabled, mode flag.
65
+ - **status**: The `info`, `success`, `warning` and `error` variants; status text uses the `-strong` tokens and never shows by color alone. Example: `st-badge variant="success"` with "Active". Not: alert level, signal color.
66
+ - **status page**: A full page for not found, forbidden or server error, with a status illustration and a Home link resolved from the menus. Example: `/not-found`. Not: error screen, fallback page.
67
+ - **story**: A Storybook story of a kit component; the manifest lists its id as an example. Example: `ui-kit-button--primary`. Not: demo, sample page.
68
+ - **surface**: An area with its own background step: the `base-100` canvas, `base-200` raised components, `base-300` subtle fills. Example: one card per surface, one main action per surface. Not: layer, plate.
69
+ - **theme**: A named set of colors, fonts and assets with a light and a dark scheme, chosen at run time. Example: `enghouse_networks`. Not: skin, brand pack.
70
+ - **theme catalog**: The JSON file that defines one theme (schema v3): colors, fonts and assets, loaded from `themes.json`. Example: `/assets/themes/catalog/enghouse_networks.json`. Not: theme file, theme config.
71
+ - **token**: A named theme value used through its utility or CSS variable: a semantic color or a radius, shadow, easing, font or text role. Example: `bg-base-200`, `rounded-box`. Not: design token, style constant.
72
+ - **tone**: Whether a banner asset is light or dark, declared in the theme catalog as `tone { light, dark }`; `st-page-banner` picks its text color from it. Example: `"tone": { "light": "light", "dark": "dark" }`. Not: brightness, shade.
73
+ - **topic**: The name of a PubSub message. Example: `PAGE_HEADER_SET`. Not: channel, event name.
74
+ - **upgrade**: Moving an app between SDK versions: `sdk-tools upgrade` runs the migrations, then the manual steps follow. Example: `npx @sixbell-telco/sdk-tools upgrade --to 4.6.0`. Not: version bump.
75
+ - **utility**: A Tailwind or DaisyUI class that maps to one style or token. Example: `text-error-strong`, `outline-hidden`. Not: helper class, atomic class.
76
+ - **variant**: The `variant` input that gives a kit component its role color: `base`, `primary`, `secondary`, `tertiary`, `accent`, a status or `neutral`. Example: `<st-button variant="primary">`. Not: appearance, color prop.