@sixbell-telco/sdk 4.5.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 (125) hide show
  1. package/CHANGELOG.md +266 -986
  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 +55 -13
  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 +16 -6
  100. package/layouts/src/page-banner/page-banner.component.d.ts +37 -6
  101. package/manifest.json +10943 -0
  102. package/package.json +53 -41
  103. package/schematics/lib/plan.cjs +179 -0
  104. package/schematics/lib/tokens.cjs +133 -0
  105. package/schematics/lib/workspace.cjs +118 -0
  106. package/schematics/manual-steps.json +90 -0
  107. package/schematics/migration.json +15 -0
  108. package/schematics/migrations/v4-0-0/assets.cjs +331 -0
  109. package/schematics/migrations/v4-0-0/canonical/enghouse_networks.json +360 -0
  110. package/schematics/migrations/v4-0-0/canonical/shell.json +25 -0
  111. package/schematics/migrations/v4-0-0/canonical/theme-assets.json +44 -0
  112. package/schematics/migrations/v4-0-0/canonical/themes.json +11 -0
  113. package/schematics/migrations/v4-0-0/index.cjs +96 -0
  114. package/schematics/migrations/v4-0-0/layout.cjs +269 -0
  115. package/schematics/migrations/v4-0-0/shell.cjs +1864 -0
  116. package/schematics/migrations/v4-6-0/index.cjs +394 -0
  117. package/src/_index.css +257 -26
  118. package/utils/theme/README.md +1 -1
  119. package/utils/theme/public-api.d.ts +1 -1
  120. package/utils/theme/src/models/theme.d.ts +10 -0
  121. package/utils/theme/src/theme-assets/theme-assets.service.d.ts +12 -1
  122. package/banner.png +0 -0
  123. package/components/wizard/wizard-marker/wizard-marker.component.d.ts +0 -85
  124. package/components/wizard/wizard-step/wizard-step.component.d.ts +0 -83
  125. package/components/wizard/wizard-sub-step/wizard-sub-step.component.d.ts +0 -95
@@ -1 +1 @@
1
- {"version":3,"file":"sixbell-telco-sdk-components-wizard.mjs","sources":["../../../projects/sdk/components/wizard/services/wizard.service.ts","../../../projects/sdk/components/wizard/wizard-actions/wizard-actions.component.ts","../../../projects/sdk/components/wizard/wizard-actions/wizard-actions.component.html","../../../projects/sdk/components/wizard/wizard-content/wizard-content.component.ts","../../../projects/sdk/components/wizard/wizard-content/wizard-content.component.html","../../../projects/sdk/components/wizard/wizard-marker/wizard-marker.component.ts","../../../projects/sdk/components/wizard/wizard-marker/wizard-marker.component.html","../../../projects/sdk/components/wizard/wizard-step/wizard-step.component.ts","../../../projects/sdk/components/wizard/wizard-step/wizard-step.component.html","../../../projects/sdk/components/wizard/wizard-sub-step/wizard-sub-step.component.ts","../../../projects/sdk/components/wizard/wizard-sub-step/wizard-sub-step.component.html","../../../projects/sdk/components/wizard/wizard-wrapper/wizard-wrapper.component.ts","../../../projects/sdk/components/wizard/wizard-wrapper/wizard-wrapper.component.html","../../../projects/sdk/components/wizard/sixbell-telco-sdk-components-wizard.ts"],"sourcesContent":["import { computed, Injectable, signal } from '@angular/core';\n\n/**\n * Enum-like object representing possible wizard step statuses\n * @readonly\n * @enum {string}\n */\nexport const WIZARD_STEP_STATUS = {\n\tIN_PROGRESS: 'in progress',\n\tPENDING: 'pending',\n\tCOMPLETED: 'completed',\n\tERROR: 'error',\n} as const;\n\n/**\n * Configuration object for a wizard step\n * @property {string} name - Unique identifier for the step\n * @property {(typeof WIZARD_STEP_STATUS)[keyof typeof WIZARD_STEP_STATUS]} status - Current status of the step\n * @property {boolean} isValid - Indicates if the step's data is valid\n * @property {string} label - Display text for the step\n * @property {string} [icon] - Optional icon for the step\n */\nexport type WizardStepConfig = {\n\tname: string;\n\tstatus: (typeof WIZARD_STEP_STATUS)[keyof typeof WIZARD_STEP_STATUS];\n\tisValid: boolean;\n\tlabel: string;\n\ticon?: string;\n};\n\n/**\n * Simplified step definition without status and validation\n * @property {string} name - Unique identifier for the step\n * @property {string} label - Display text for the step\n * @property {string} [icon] - Optional icon for the step\n */\nexport type WizardStep = Omit<WizardStepConfig, 'status' | 'isValid'>;\n\n/**\n * Union type of possible wizard step status values\n */\nexport type WizardStepStatus = (typeof WIZARD_STEP_STATUS)[keyof typeof WIZARD_STEP_STATUS];\n\n/**\n * Service for managing wizard state and navigation\n * @Injectable\n */\n@Injectable({\n\tprovidedIn: 'root',\n})\nexport class WizardService {\n\t// State signals\n\t/** @private Internal signal for wizard steps */\n\tprivate readonly _steps = signal<WizardStepConfig[]>([]);\n\t/** @private Internal signal for current step index */\n\tprivate readonly _currentStepIndex = signal<number>(0);\n\t/** @private Internal signal for first step index */\n\tprivate readonly _fistStepIndex = signal<number>(0);\n\t/** @private Internal signal for last step index */\n\tprivate readonly _lastStepIndex = signal<number>(0);\n\t/** @private Internal signal for transition state */\n\tprivate readonly _isTransitioning = signal<boolean>(false);\n\t// Readonly signals\n\t/** Readonly array of wizard steps */\n\tpublic steps = this._steps.asReadonly();\n\n\t/**\n\t * Current step index\n\t * @readonly\n\t */\n\tpublic currentStepIndex = this._currentStepIndex.asReadonly();\n\t/**\n\t * Currently active step\n\t * @readonly\n\t */\n\tpublic currentStep = computed(() => this.steps()[this.currentStepIndex()]);\n\n\t/**\n\t * Array of valid steps\n\t * @readonly\n\t */\n\tpublic validSteps = computed(() => this.steps().filter((step) => step.isValid));\n\t/**\n\t * Indicates if all steps are valid\n\t * @readonly\n\t */\n\tpublic areAllStepsValid = computed(() => this.validSteps().length === this.steps().length);\n\n\t/**\n\t * First step index\n\t * @readonly\n\t */\n\tpublic fistStepIndex = this._fistStepIndex.asReadonly();\n\t/**\n\t * First step in the wizard\n\t * @readonly\n\t */\n\tpublic firstStep = computed(() => this.steps()[this.fistStepIndex()]);\n\n\t/**\n\t * Last step index\n\t * @readonly\n\t */\n\tpublic lastStepIndex = this._lastStepIndex.asReadonly();\n\t/**\n\t * Last step in the wizard\n\t * @readonly\n\t */\n\tpublic lastStep = computed(() => this.steps()[this.lastStepIndex()]);\n\n\t/**\n\t * Completed steps\n\t * @readonly\n\t */\n\tpublic completedSteps = computed(() => this.steps().filter((step) => step.status === 'completed'));\n\t/**\n\t * Pending steps\n\t * @readonly\n\t */\n\tpublic pendingSteps = computed(() => this.steps().filter((step) => step.status === 'pending'));\n\t/**\n\t * In-progress steps\n\t * @readonly\n\t */\n\tpublic inProgressSteps = computed(() => this.steps().filter((step) => step.status === 'in progress'));\n\n\t/**\n\t * Indicates if all steps are completed\n\t * @readonly\n\t */\n\tpublic isCompleted = computed(() => this.completedSteps().length === this.steps().length);\n\t/**\n\t * Indicates if current step is the first step\n\t * @readonly\n\t */\n\tpublic isCurrentStepFirst = computed(() => this.currentStepIndex() === this.fistStepIndex());\n\t/**\n\t * Indicates if current step is the last step\n\t * @readonly\n\t */\n\tpublic isCurrentStepLast = computed(() => this.currentStepIndex() === this.lastStepIndex());\n\n\t/**\n\t * Indicates if wizard is transitioning between steps\n\t * @readonly\n\t */\n\tpublic isTransitioning = this._isTransitioning.asReadonly();\n\n\t/**\n\t * Initializes the wizard with given steps\n\t * @param {WizardStep[]} steps - Array of step configurations\n\t */\n\tpublic init(steps: WizardStep[]): void {\n\t\tthis.setSteps(\n\t\t\tsteps.map((step, index) => ({\n\t\t\t\t...step,\n\t\t\t\tstatus: index === 0 ? 'in progress' : 'pending',\n\t\t\t\tisValid: false,\n\t\t\t})),\n\t\t);\n\t\tthis.setFistStepIndex(0);\n\t\tthis.setLastStepIndex(steps.length - 1);\n\t}\n\n\t/**\n\t * Replaces all steps with new configuration\n\t * @param {WizardStepConfig[]} steps - New array of step configurations\n\t */\n\tpublic setSteps(steps: WizardStepConfig[]): void {\n\t\tthis._steps.set(steps);\n\t}\n\n\t/**\n\t * Adds a new step to the end of the wizard\n\t * @param {WizardStepConfig} step - Step configuration to add\n\t */\n\tpublic addStep(step: WizardStepConfig): void {\n\t\tthis.setSteps([...this.steps(), step]);\n\t}\n\n\t/**\n\t * Inserts a step at specific index\n\t * @param {number} index - Position to insert the step\n\t * @param {WizardStepConfig} step - Step configuration to add\n\t */\n\tpublic addStepAtIndex(index: number, step: WizardStepConfig): void {\n\t\tconst newSteps = this.steps().reduce((acc: WizardStepConfig[], s, i) => {\n\t\t\tif (i === index) {\n\t\t\t\tacc.push(step);\n\t\t\t}\n\t\t\tacc.push(s);\n\t\t\treturn acc;\n\t\t}, []);\n\t\tthis.setSteps(newSteps);\n\t}\n\n\t/**\n\t * Removes step at specified index\n\t * @param {number} index - Index of step to remove\n\t */\n\tpublic removeStep(index: number): void {\n\t\tconst newSteps = this.steps().filter((_, i) => i !== index);\n\t\tthis.setSteps(newSteps);\n\t}\n\n\t/**\n\t * Updates name of step at specified index\n\t * @param {number} index - Index of step to update\n\t * @param {string} name - New name for the step\n\t */\n\tpublic updateStepName(index: number, name: string): void {\n\t\tconst newSteps = this.steps().map((s, i) => (i === index ? { ...s, name } : s));\n\t\tthis.setSteps(newSteps);\n\t}\n\n\t/**\n\t * Updates label of step at specified index\n\t * @param {number} index - Index of step to update\n\t * @param {string} label - New label for the step\n\t */\n\tpublic updateStepLabel(index: number, label: string): void {\n\t\tconst newSteps = this.steps().map((s, i) => (i === index ? { ...s, label } : s));\n\t\tthis.setSteps(newSteps);\n\t}\n\n\t/**\n\t * Updates status of step at specified index\n\t * @param {number} index - Index of step to update\n\t * @param {WizardStepStatus} status - New status for the step\n\t * @param {number} [stale] - Optional delay in milliseconds before applying changes\n\t */\n\tpublic updateStepStatus(index: number, status: WizardStepStatus, stale?: number): void {\n\t\tconst newSteps = this.steps().map((s, i) => (i === index ? { ...s, status } : s));\n\n\t\tthis._isTransitioning.set(true);\n\n\t\tif (stale === undefined) {\n\t\t\tthis._isTransitioning.set(false);\n\t\t\tthis.setSteps(newSteps);\n\t\t\treturn;\n\t\t}\n\n\t\tsetTimeout(() => {\n\t\t\tthis._isTransitioning.set(false);\n\t\t\tthis.setSteps(newSteps);\n\t\t}, stale);\n\t}\n\n\t/**\n\t * Updates validation status of step at specified index\n\t * @param {number} index - Index of step to update\n\t * @param {boolean} isValid - New validation status\n\t */\n\tpublic updateStepIsValid(index: number, isValid: boolean): void {\n\t\tconst newSteps = this.steps().map((s, i) => (i === index ? { ...s, isValid } : s));\n\t\tthis.setSteps(newSteps);\n\t}\n\n\t/**\n\t * Replaces entire step configuration at specified index\n\t * @param {number} index - Index of step to replace\n\t * @param {WizardStepConfig} step - New step configuration\n\t */\n\tpublic updateStep(index: number, step: WizardStepConfig): void {\n\t\tconst newSteps = this.steps().map((s, i) => (i === index ? step : s));\n\t\tthis.setSteps(newSteps);\n\t}\n\n\t/**\n\t * Sets current active step index\n\t * @param {number} index - New current step index\n\t */\n\tpublic setCurrentStepIndex(index: number): void {\n\t\tthis._currentStepIndex.set(index);\n\t}\n\n\t/**\n\t * Sets index for first step in wizard\n\t * @param {number} index - New first step index\n\t */\n\tpublic setFistStepIndex(index: number): void {\n\t\tthis._fistStepIndex.set(index);\n\t}\n\n\t/**\n\t * Sets index for last step in wizard\n\t * @param {number} index - New last step index\n\t */\n\tpublic setLastStepIndex(index: number): void {\n\t\tthis._lastStepIndex.set(index);\n\t}\n\n\t/**\n\t * Navigates to next valid step\n\t */\n\tpublic nextStep(): void {\n\t\tif (!this.currentStep().isValid) return;\n\n\t\tconst lastIndex = this._steps().length - 1;\n\t\tconst nextIndex = this.currentStepIndex() + 1;\n\t\tif (nextIndex > lastIndex) return;\n\n\t\tconst nextStepIndex = nextIndex;\n\n\t\tthis.updateStepStatus(this.currentStepIndex(), 'completed');\n\t\tthis._currentStepIndex.set(nextStepIndex);\n\t\tthis.updateStepStatus(nextStepIndex, 'in progress', 300);\n\t}\n\n\t/**\n\t * Navigates to previous step\n\t */\n\tpublic previousStep(): void {\n\t\tif (this.currentStepIndex() <= 0) return;\n\n\t\tconst previousStepIndex = this.currentStepIndex() - 1;\n\n\t\tthis.updateStepStatus(this.currentStepIndex(), 'pending');\n\t\tthis._currentStepIndex.set(previousStepIndex);\n\t\tthis.updateStepStatus(previousStepIndex, 'in progress', 300);\n\t}\n\n\t/**\n\t * Jumps to specified step index\n\t * @param {number} index - Target step index to navigate to\n\t */\n\tpublic gotoStep(index: number): void {\n\t\tif (index < 0 || index >= this.steps().length) return;\n\n\t\tconst newSteps = this.steps().map((step, i) => {\n\t\t\tif (i === index) {\n\t\t\t\treturn { ...step, status: WIZARD_STEP_STATUS.IN_PROGRESS };\n\t\t\t}\n\t\t\tif (index === this.fistStepIndex()) {\n\t\t\t\tif (i === this.fistStepIndex()) {\n\t\t\t\t\treturn { ...step, status: WIZARD_STEP_STATUS.IN_PROGRESS };\n\t\t\t\t}\n\t\t\t\treturn { ...step, status: WIZARD_STEP_STATUS.PENDING };\n\t\t\t}\n\n\t\t\tif (index === this.lastStepIndex()) {\n\t\t\t\tif (i === this.lastStepIndex()) {\n\t\t\t\t\treturn { ...step, status: WIZARD_STEP_STATUS.IN_PROGRESS };\n\t\t\t\t}\n\t\t\t\treturn { ...step, status: WIZARD_STEP_STATUS.COMPLETED };\n\t\t\t}\n\n\t\t\tif (i < index) {\n\t\t\t\treturn { ...step, status: WIZARD_STEP_STATUS.COMPLETED };\n\t\t\t}\n\n\t\t\tif (i > index) {\n\t\t\t\treturn { ...step, status: WIZARD_STEP_STATUS.PENDING };\n\t\t\t}\n\n\t\t\treturn step;\n\t\t});\n\n\t\tthis.setSteps(newSteps);\n\t\tthis._currentStepIndex.set(index);\n\t}\n\n\t/**\n\t * Resets wizard to initial state\n\t */\n\tpublic reset(): void {\n\t\tthis._steps.set([]);\n\t\tthis._currentStepIndex.set(0);\n\t\tthis._fistStepIndex.set(0);\n\t\tthis._lastStepIndex.set(0);\n\t\tthis._isTransitioning.set(false);\n\t}\n}\n","import { CommonModule } from '@angular/common';\nimport { ChangeDetectionStrategy, Component, computed, input } from '@angular/core';\nimport { cn } from '@sixbell-telco/sdk/utils/cn';\n\nexport type WizardActionsAligmentProps = 'left' | 'right' | 'center';\n\n@Component({\n\tselector: 'st-wizard-actions',\n\timports: [CommonModule],\n\ttemplateUrl: './wizard-actions.component.html',\n\tchangeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class WizardActionsComponent {\n\t// Base table properties\n\talignment = input<WizardActionsAligmentProps>('left');\n\n\tcomponentClass = computed(() => {\n\t\treturn cn('font-body flex flex-wrap items-center gap-2 leading-normal text-pretty', {\n\t\t\t'justify-start': this.alignment() === 'left',\n\t\t\t'justify-end': this.alignment() === 'right',\n\t\t\t'justify-center': this.alignment() === 'center',\n\t\t});\n\t});\n}\n","<div [class]=\"componentClass()\">\n\t<ng-content></ng-content>\n</div>\n","import { booleanAttribute, Component, computed, inject, input } from '@angular/core';\nimport { takeUntilDestroyed, toObservable } from '@angular/core/rxjs-interop';\nimport { cn } from '@sixbell-telco/sdk/utils/cn';\nimport { WizardService } from '../services/wizard.service';\n\n/**\n * Component wrapper for individual wizard step content with validation integration.\n *\n * @remarks\n * Manages content visibility and validation state synchronization with the wizard service.\n * Automatically handles:\n * - Step activation status\n * - Validation state propagation\n * - Fade animations\n * - Destruction cleanup\n *\n * @example\n * ```html\n * <st-wizard-content\n * [stepIndex]=\"0\"\n * [isValid]=\"form.valid\"\n * >\n * <!-- Step content -->\n * </st-wizard-content>\n * ```\n */\n@Component({\n\tselector: 'st-wizard-content',\n\timports: [],\n\ttemplateUrl: './wizard-content.component.html',\n})\nexport class WizardContentComponent {\n\t/** @internal Injected wizard state service */\n\twizardService = inject(WizardService);\n\n\t/**\n\t * Position index in the wizard sequence (0-based)\n\t * @default 0\n\t */\n\tstepIndex = input(0);\n\n\t/**\n\t * Current validation state of the step\n\t * @default false\n\t * @remarks Updates wizard service automatically when changed\n\t */\n\tisValid = input(false, { transform: booleanAttribute });\n\n\t/**\n\t * Computed status from wizard service\n\t * @internal\n\t */\n\tstatus = computed(() => this.wizardService.steps()[this.stepIndex()].status);\n\n\t/**\n\t * Observable version of isValid input\n\t * @internal\n\t */\n\tprivate isValid$ = toObservable(this.isValid);\n\n\t/**\n\t * Current active step index from service\n\t * @internal\n\t */\n\tcurrentStep = computed(() => this.wizardService.currentStepIndex());\n\n\t/**\n\t * Checks if this content's step is currently active\n\t * @returns {boolean} True if stepIndex matches current active step\n\t * @internal\n\t */\n\tisStepActive = computed(() => this.stepIndex() === this.wizardService.currentStepIndex());\n\n\t/**\n\t * Computed CSS classes for content container\n\t * @returns {string} Animation classes\n\t * @internal\n\t */\n\tcomponentClass = computed(() => cn('animate-fade-in animate-duration-300 font-body leading-normal text-pretty'));\n\n\t/**\n\t * Sets up validation state synchronization\n\t * @remarks Uses takeUntilDestroyed for automatic cleanup\n\t */\n\tconstructor() {\n\t\tthis.isValid$.pipe(takeUntilDestroyed()).subscribe((isValid) => {\n\t\t\tthis.wizardService.updateStepIsValid(this.stepIndex(), isValid);\n\t\t});\n\t}\n}\n","@if (this.isStepActive()) {\n\t<div [class]=\"componentClass()\">\n\t\t<ng-content></ng-content>\n\t</div>\n}\n","import { ChangeDetectionStrategy, Component, computed, effect, inject, input, signal } from '@angular/core';\nimport { _, TranslateService } from '@ngx-translate/core';\nimport { TextDirective } from '@sixbell-telco/sdk/directives/text';\nimport { cn } from '@sixbell-telco/sdk/utils/cn';\nimport { WizardService, WizardStepStatus } from '../services/wizard.service';\n\n/**\n * Component that displays a status badge for wizard steps with translated labels.\n *\n * @remarks\n * Shows visual indicators for different step states with automatic translations.\n * Supports three status types with corresponding styling:\n * - Completed (green background)\n * - In progress (neutral border)\n * - Pending (dimmed appearance)\n *\n * Uses NGX-Translate for localization of status labels.\n *\n * @example\n * ```html\n * <!-- Completed state -->\n * <st-wizard-marker [status]=\"'completed'\"></st-wizard-marker>\n *\n * <!-- In progress state -->\n * <st-wizard-marker [status]=\"'in progress'\"></st-wizard-marker>\n * ```\n */\n@Component({\n\tselector: 'st-wizard-marker',\n\timports: [TextDirective],\n\ttemplateUrl: './wizard-marker.component.html',\n\tchangeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class WizardMarkerComponent {\n\t/** @internal Translation service instance */\n\ttranslateService = inject(TranslateService);\n\n\t/** @internal Wizard state service */\n\twizardService = inject(WizardService);\n\n\t/**\n\t * Current status of the associated wizard step\n\t * @remarks Determines badge styling and label\n\t */\n\tstatus = input.required<WizardStepStatus>();\n\n\t/**\n\t * Computed translated status message\n\t * @internal\n\t */\n\tstatusMarkerMessage = computed(() => this.getStatusMarkerMessage());\n\n\t/**\n\t * Computed CSS classes for the status badge\n\t * @internal\n\t */\n\tstatusMarkerClasses = computed(() => this.getStepStatusMarkerClasses());\n\n\t/** @internal Signal holding translated \"completed\" text */\n\tcompleted = signal('completed');\n\t/** @internal Signal holding translated \"in progress\" text */\n\tinProgress = signal('in progress');\n\t/** @internal Signal holding translated \"pending\" text */\n\tpending = signal('pending');\n\t/** @internal Signal holding translated \"error\" text */\n\terror = signal('error');\n\n\t/** @internal Base CSS classes for the marker */\n\tprivate baseClasses = 'rounded-selector transition-colors duration-300 ease-out delay-150 text-nowrap w-max';\n\n\t/** @internal Status-to-class mapping */\n\tprivate statusClassMap = {\n\t\tcompleted: 'bg-success/20 text-success border-[2px] border-success px-3 py-[5px]',\n\t\t'in progress': 'bg-primary text-primary-content border-[2px] border-primary px-[10px] py-[3px]',\n\t\tpending: 'bg-base-200 text-base-content border-[2px] border-base-300 px-[10px] py-[3px]',\n\t\terror: 'bg-error/20 text-error border-[2px] border-error px-[10px] py-[3px]',\n\t};\n\n\t/**\n\t * Initializes component translations\n\t * @remarks Loads translated status labels using NGX-Translate\n\t */\n\tprivate readonly translationEffect = effect(() => {\n\t\tthis.initTranslatations();\n\t});\n\n\t/**\n\t * Gets the appropriate translated status message\n\t * @returns {string} Translated status label\n\t * @internal\n\t */\n\tprivate getStatusMarkerMessage() {\n\t\tif (this.status() === 'completed') return this.completed();\n\t\tif (this.status() === 'in progress') return this.inProgress();\n\t\tif (this.status() === 'error') return this.error();\n\t\treturn this.pending();\n\t}\n\n\t/**\n\t * Computes CSS classes based on current status\n\t * @returns {string} Combined Tailwind classes\n\t * @internal\n\t */\n\tprivate getStepStatusMarkerClasses() {\n\t\treturn cn(this.baseClasses, this.statusClassMap[this.status()]);\n\t}\n\n\t/**\n\t * Initializes translations for status labels\n\t * @remarks Uses translation keys:\n\t * - 'sdk.wizard.wizardMarker.completed'\n\t * - 'sdk.wizard.wizardMarker.inProgress'\n\t * - 'sdk.wizard.wizardMarker.pending'\n\t * @internal\n\t */\n\tprivate initTranslatations() {\n\t\tthis.translateService.get(_('sdk.wizard.wizardMarker.completed')).subscribe((res: string) => {\n\t\t\tthis.completed.set(res);\n\t\t});\n\t\tthis.translateService.get(_('sdk.wizard.wizardMarker.inProgress')).subscribe((res: string) => {\n\t\t\tthis.inProgress.set(res);\n\t\t});\n\t\tthis.translateService.get(_('sdk.wizard.wizardMarker.pending')).subscribe((res: string) => {\n\t\t\tthis.pending.set(res);\n\t\t});\n\t\tthis.translateService.get(_('sdk.wizard.wizardMarker.error')).subscribe((res: string) => {\n\t\t\tthis.error.set(res);\n\t\t});\n\t}\n}\n","<div [class]=\"statusMarkerClasses()\">\n\t<span stText=\"10\" stTextWeight=\"medium\">{{ statusMarkerMessage() }}</span>\n</div>\n","import { ChangeDetectionStrategy, Component, computed, inject, input } from '@angular/core';\nimport { IconComponent } from '@sixbell-telco/sdk/components/icon';\nimport { matCheckOutline } from '@sixbell-telco/sdk/components/icon/material/outline';\nimport { TextDirective } from '@sixbell-telco/sdk/directives/text';\nimport { cn } from '@sixbell-telco/sdk/utils/cn';\nimport { WizardService, WizardStepStatus } from '../services/wizard.service';\n\n/**\n * Visual indicator component for individual wizard steps with status-dependent styling and animations.\n *\n * @remarks\n * Displays step progress through dynamic border and background colors. Supports three states:\n * - Completed (checkmark icon)\n * - In progress (highlighted border)\n * - Pending (dimmed appearance)\n *\n * Uses Angular signals for optimized change detection and smooth transitions.\n *\n * @example\n * ```html\n * <!-- Completed step with custom icon -->\n * <st-wizard-step\n * [stepIndex]=\"1\"\n * [status]=\"'completed'\"\n * icon=\"user-profile\"\n * ></st-wizard-step>\n *\n * <!-- Current active step -->\n * <st-wizard-step\n * [stepIndex]=\"2\"\n * [status]=\"'in progress'\"\n * ></st-wizard-step>\n * ```\n */\n@Component({\n\tselector: 'st-wizard-step',\n\ttemplateUrl: './wizard-step.component.html',\n\timports: [TextDirective, IconComponent],\n\tchangeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class WizardStepComponent {\n\t/** @internal Injected wizard state service */\n\twizardService = inject(WizardService);\n\n\t/**\n\t * Optional custom icon name for completed state\n\t * @default undefined (uses checkmark)\n\t */\n\ticon = input<string | undefined>();\n\n\t/**\n\t * Current progress status of the step\n\t * @remarks Determines visual state and transitions\n\t */\n\tstatus = input.required<WizardStepStatus>();\n\n\t/**\n\t * Position in wizard sequence (0-based index)\n\t * @remarks Used for current step comparison\n\t */\n\tstepIndex = input.required<number>();\n\n\t/** @internal Predefined checkmark icon */\n\ticonCheck = matCheckOutline;\n\n\t/**\n\t * Computed CSS classes for step containers\n\t * @returns {Object} Classes for outer/inner elements\n\t * @remarks Applies:\n\t * - 300ms color transitions\n\t * - 300ms delay for pending states\n\t * - Primary colors for active/completed states\n\t * @internal\n\t */\n\tstepClasses = computed(() => {\n\t\tconst baseOuterClasses =\n\t\t\t'flex h-[50px] min-h-[50px] w-[50px] min-w-[50px] items-center justify-center rounded-full border border-solid p-[2px] font-medium text-neutral-content';\n\t\tconst baseInnerClasses = 'flex h-full w-full items-center justify-center rounded-full';\n\n\t\tconst currentStatus = this.status();\n\t\tconst isCompleted = currentStatus === 'completed';\n\t\tconst isInProgress = currentStatus === 'in progress';\n\t\tconst isPending = currentStatus === 'pending';\n\t\tconst isError = currentStatus === 'error';\n\n\t\tconst outerClasses = cn(baseOuterClasses, {\n\t\t\t'border-primary currentStep transition-colors duration-300 ease-out': isInProgress,\n\t\t\t'border-success notCurrentStep transition-colors duration-300 ease-out': isCompleted,\n\t\t\t'border-error notCurrentStep transition-colors duration-300 ease-out': isError,\n\t\t\t'border-base-300 notCurrentStep transition-colors delay-300 duration-300 ease-out': isPending,\n\t\t});\n\n\t\tconst innerClasses = cn(baseInnerClasses, {\n\t\t\t'bg-primary text-primary-content currentStep transition-colors duration-300 ease-out': isInProgress,\n\t\t\t'bg-success text-success-content notCurrentStep transition-colors duration-300 ease-out': isCompleted,\n\t\t\t'bg-error text-error-content notCurrentStep transition-colors duration-300 ease-out': isError,\n\t\t\t'bg-base-200 text-base-content notCurrentStep transition-colors delay-300 duration-300 ease-out': isPending,\n\t\t});\n\n\t\treturn { outerClasses, innerClasses };\n\t});\n\n\t/**\n\t * Step number visibility classes\n\t * @returns {string} Tailwind classes with fade animation\n\t * @remarks\n\t * - Hidden when completed\n\t * - 350ms fade-in delay for smooth transitions\n\t * @internal\n\t */\n\tstepNumberClasses = computed(() => {\n\t\tconst isCompleted = this.status() === 'completed';\n\t\treturn cn('col-start-1 row-start-1 grid place-items-center leading-none', {\n\t\t\t'invisible opacity-0': isCompleted,\n\t\t\t'animate-fade-in animate-duration-300 opacity-100 delay-350': !isCompleted,\n\t\t});\n\t});\n\n\t/**\n\t * Completion icon visibility classes\n\t * @returns {string} Tailwind classes with fade animation\n\t * @remarks\n\t * - Only visible when completed\n\t * - 350ms fade-in delay for smooth transition\n\t * @internal\n\t */\n\tstepIconClasses = computed(() => {\n\t\tconst isCompleted = this.status() === 'completed';\n\t\treturn cn('col-start-1 row-start-1 grid place-items-center leading-none', {\n\t\t\t'animate-fade-in animate-duration-300 opacity-100 delay-350': isCompleted,\n\t\t\t'invisible opacity-0': !isCompleted,\n\t\t});\n\t});\n}\n","<div [class]=\"stepClasses().outerClasses\">\n\t<div [class]=\"stepClasses().innerClasses\">\n\t\t<div class=\"wizard-step-overlay grid h-full w-full place-items-center\">\n\t\t\t<div [class]=\"stepNumberClasses()\">\n\t\t\t\t@let iconVar = icon();\n\t\t\t\t@if (iconVar) {\n\t\t\t\t\t<st-icon [icon]=\"iconVar\" color=\"inherit\" size=\"md\"></st-icon>\n\t\t\t\t} @else {\n\t\t\t\t\t<span stText=\"7\" stTextColor=\"inherit\" stTextWeight=\"semibold\">\n\t\t\t\t\t\t{{ stepIndex() + 1 }}\n\t\t\t\t\t</span>\n\t\t\t\t}\n\t\t\t</div>\n\t\t\t<div [class]=\"stepIconClasses()\">\n\t\t\t\t<st-icon [icon]=\"iconCheck\" color=\"inherit\" size=\"md\"></st-icon>\n\t\t\t</div>\n\t\t</div>\n\t</div>\n</div>\n","import { Component, computed, inject, input } from '@angular/core';\nimport { cn } from '@sixbell-telco/sdk/utils/cn';\nimport { WizardService } from '../services/wizard.service';\n\n/**\n * Layout variants for the sub-step connector\n * @typedef {'vertical' | 'horizontal'} WizardSubStepVariantProps\n */\nexport type WizardSubStepVariantProps = 'vertical' | 'horizontal';\n\n/**\n * A component that visualizes the connection between wizard steps with animated progress indicators.\n *\n * @remarks\n * Handles both horizontal and vertical layouts with status-dependent animations. Manages three segments:\n * - Left connector (before the step)\n * - Center indicator (current step marker)\n * - Right connector (after the step)\n *\n * @example\n * ```html\n * <!-- Horizontal sub-step -->\n * <st-wizard-sub-step\n * [stepIndex]=\"1\"\n * [stepStatus]=\"'completed'\"\n * ></st-wizard-sub-step>\n *\n * <!-- Vertical sub-step -->\n * <st-wizard-sub-step\n * variant=\"vertical\"\n * [stepIndex]=\"2\"\n * [stepStatus]=\"'in progress'\"\n * ></st-wizard-sub-step>\n * ```\n */\n@Component({\n\tselector: 'st-wizard-sub-step',\n\timports: [],\n\ttemplateUrl: './wizard-sub-step.component.html',\n})\nexport class WizardSubStepComponent {\n\t/**\n\t * Layout direction for the sub-step connectors\n\t * @default 'horizontal'\n\t */\n\tvariant = input<WizardSubStepVariantProps>('horizontal');\n\n\t/** @internal Injected wizard state service */\n\twizardService = inject(WizardService);\n\n\t/**\n\t * Index of the parent step in the wizard sequence\n\t * @remarks Required for position calculation\n\t */\n\tstepIndex = input.required<number>();\n\n\t/**\n\t * Current status of the associated wizard step\n\t * @remarks Determines visual state and animations\n\t */\n\tstepStatus = input.required<'completed' | 'in progress' | 'pending' | 'error'>();\n\n\t/**\n\t * Checks if this sub-step's index matches the current active step\n\t * @returns {boolean} True if this is the active step\n\t * @internal\n\t */\n\tisCurrentStep = computed(() => this.wizardService.currentStepIndex() === this.stepIndex());\n\n\t/**\n\t * Computed classes for horizontal left connector segment\n\t * @returns {string} Tailwind classes with animated width transition\n\t * @internal\n\t */\n\thorizontalLeftClasses = computed(() => {\n\t\tconst isCompleted = this.stepStatus() === 'completed';\n\t\tconst isInProgress = this.stepStatus() === 'in progress';\n\t\tconst isError = this.stepStatus() === 'error';\n\t\tconst afterWidthClass = isCompleted || isError || (this.isCurrentStep() && isInProgress) ? 'after:w-full' : 'after:w-0';\n\n\t\treturn cn(\n\t\t\t'bg-secondary relative h-[2px] w-full',\n\t\t\t'after:absolute after:bottom-0 after:left-0 after:h-[2px]',\n\t\t\tisCompleted ? 'after:bg-success' : isError ? 'after:bg-error' : 'after:bg-primary',\n\t\t\t'after:transition-[width] after:duration-300 after:ease-out',\n\t\t\tafterWidthClass,\n\t\t);\n\t});\n\n\t/**\n\t * Computed classes for horizontal center indicator\n\t * @returns {string} Tailwind classes with color transition delays\n\t * @internal\n\t */\n\thorizontalCenterClasses = computed(() => {\n\t\tconst isCompleted = this.stepStatus() === 'completed';\n\t\tconst isInProgress = this.stepStatus() === 'in progress';\n\t\tconst isError = this.stepStatus() === 'error';\n\t\tconst isPrimaryBg = (this.isCurrentStep() && isInProgress) || (!this.isCurrentStep() && isCompleted);\n\n\t\treturn cn(\n\t\t\t'h-3 min-h-3 w-3 min-w-3 rounded-full',\n\t\t\t'transition-colors duration-300 ease-out',\n\t\t\tisCompleted ? 'bg-success' : isError ? 'bg-error' : isPrimaryBg ? 'bg-primary' : 'bg-secondary',\n\t\t\tisPrimaryBg && !this.isCurrentStep() ? '' : 'delay-300',\n\t\t);\n\t});\n\n\t/**\n\t * Computed classes for horizontal right connector segment\n\t * @returns {string} Tailwind classes with completion-based width\n\t * @internal\n\t */\n\thorizontalRightClasses = computed(() => {\n\t\tconst isCompleted = this.stepStatus() === 'completed';\n\t\tconst isError = this.stepStatus() === 'error';\n\t\tconst afterWidthClass = isCompleted || isError ? 'after:w-full' : 'after:w-0';\n\n\t\treturn cn(\n\t\t\t'bg-secondary relative h-[2px] w-full',\n\t\t\t'after:absolute after:bottom-0 after:left-0 after:h-[2px]',\n\t\t\tisCompleted ? 'after:bg-success' : isError ? 'after:bg-error' : 'after:bg-primary',\n\t\t\t'after:transition-[width] after:duration-300 after:ease-out',\n\t\t\tafterWidthClass,\n\t\t);\n\t});\n\n\t/**\n\t * Computed classes for vertical left connector segment\n\t * @returns {string} Tailwind classes with animated height transition\n\t * @internal\n\t */\n\tverticalLeftClasses = computed(() => {\n\t\tconst isCompleted = this.stepStatus() === 'completed';\n\t\tconst isInProgress = this.stepStatus() === 'in progress';\n\t\tconst isError = this.stepStatus() === 'error';\n\t\tconst afterHeightClass = isCompleted || isError || (this.isCurrentStep() && isInProgress) ? 'after:h-full' : 'after:h-0';\n\n\t\treturn cn(\n\t\t\t'bg-secondary relative h-full w-[2px] rotate-180',\n\t\t\t'after:absolute after:bottom-0 after:left-0 after:w-[2px]',\n\t\t\tisCompleted ? 'after:bg-success' : isError ? 'after:bg-error' : 'after:bg-primary',\n\t\t\t'after:transition-[height] after:duration-300 after:ease-out',\n\t\t\tafterHeightClass,\n\t\t);\n\t});\n\n\t/**\n\t * Computed classes for vertical center indicator\n\t * @returns {string} Tailwind classes with color transition logic\n\t * @internal\n\t */\n\tverticalCenterClasses = computed(() => {\n\t\tconst isCompleted = this.stepStatus() === 'completed';\n\t\tconst isInProgress = this.stepStatus() === 'in progress';\n\t\tconst isError = this.stepStatus() === 'error';\n\t\tconst isPrimaryBg = (this.isCurrentStep() && isInProgress) || (!this.isCurrentStep() && isCompleted);\n\n\t\treturn cn(\n\t\t\t'h-3 min-h-3 w-3 min-w-3 rounded-full',\n\t\t\t'transition-colors duration-300 ease-out',\n\t\t\tisCompleted ? 'bg-success' : isError ? 'bg-error' : isPrimaryBg ? 'bg-primary' : 'bg-secondary',\n\t\t\tisPrimaryBg && !this.isCurrentStep() ? '' : 'delay-300',\n\t\t);\n\t});\n\n\t/**\n\t * Computed classes for vertical right connector segment\n\t * @returns {string} Tailwind classes with completion-based height\n\t * @internal\n\t */\n\tverticalRightClasses = computed(() => {\n\t\tconst isCompleted = this.stepStatus() === 'completed';\n\t\tconst isError = this.stepStatus() === 'error';\n\t\tconst afterHeightClass = isCompleted || isError ? 'after:h-full' : 'after:h-0';\n\n\t\treturn cn(\n\t\t\t'bg-secondary relative h-full w-[2px] rotate-180',\n\t\t\t'after:absolute after:bottom-0 after:left-0 after:w-[2px]',\n\t\t\tisCompleted ? 'after:bg-success' : isError ? 'after:bg-error' : 'after:bg-primary',\n\t\t\t'after:transition-[height] after:duration-300 after:ease-out',\n\t\t\tafterHeightClass,\n\t\t);\n\t});\n}\n","@if (variant() === 'horizontal') {\n\t<div class=\"wizard-sub-step-horizontal flex w-full min-w-full -translate-y-[25px] items-center\">\n\t\t<div [class]=\"horizontalLeftClasses()\"></div>\n\t\t<div [class]=\"horizontalCenterClasses()\"></div>\n\t\t<div [class]=\"horizontalRightClasses()\"></div>\n\t</div>\n} @else {\n\t<div class=\"wizard-sub-step-vertical flex h-20 min-h-20 w-fit translate-x-[25px] flex-col items-center\">\n\t\t<div [class]=\"verticalLeftClasses()\"></div>\n\t\t<div [class]=\"verticalCenterClasses()\"></div>\n\t\t<div [class]=\"verticalRightClasses()\"></div>\n\t</div>\n}\n","import { NgClass } from '@angular/common';\nimport { booleanAttribute, Component, contentChildren, inject, input, output } from '@angular/core';\nimport { matChevronLeftOutline, matChevronRightOutline, matKeyboardReturnOutline, matSaveOutline } from '@ng-icons/material-icons/outline';\nimport { TranslatePipe } from '@ngx-translate/core';\nimport { ButtonComponent } from '@sixbell-telco/sdk/components/button';\nimport { IconComponent } from '@sixbell-telco/sdk/components/icon';\nimport { TextDirective } from '@sixbell-telco/sdk/directives/text';\nimport { WizardService } from '../services/wizard.service';\nimport { WizardContentComponent } from '../wizard-content/wizard-content.component';\nimport { WizardMarkerComponent } from '../wizard-marker/wizard-marker.component';\nimport { WizardStepComponent } from '../wizard-step/wizard-step.component';\nimport { WizardSubStepComponent } from '../wizard-sub-step/wizard-sub-step.component';\n\n/**\n * Layout direction variants for the wizard component\n * @typedef {'vertical' | 'horizontal'} WizardVariantProps\n */\nexport type WizardVariantProps = 'vertical' | 'horizontal';\n\n/**\n * A container component for multi-step workflows with navigation controls and layout management.\n *\n * @remarks\n * Integrates with WizardService for state management and provides template structure for wizard steps.\n * Supports both horizontal and vertical layouts with customizable navigation controls.\n *\n * @example\n * ```html\n * <!-- Basic horizontal wizard -->\n * <st-wizard>\n * <st-wizard-content [stepIndex]=\"0\" name=\"Step 1\" [isValid]=\"true\">\n * <!-- Step content -->\n * </st-wizard-content>\n * <st-wizard-content [stepIndex]=\"1\" name=\"Step 2\">\n * <!-- Step content -->\n * </st-wizard-content>\n * </st-wizard>\n *\n * <!-- Vertical wizard with external controls -->\n * <st-wizard variant=\"vertical\" [showControls]=\"false\">\n * <!-- Step contents -->\n * </st-wizard>\n * <div class=\"controls\">\n * <st-button variant=\"secondary\" [outline]=\"true\" (click)=\"handlePrevious()\">Previous</st-button>\n * <st-button variant=\"primary\" (click)=\"handleNext()\">Next</st-button>\n * </div>\n * ```\n */\n@Component({\n\tselector: 'st-wizard',\n\ttemplateUrl: './wizard-wrapper.component.html',\n\timports: [\n\t\tWizardStepComponent,\n\t\tButtonComponent,\n\t\tNgClass,\n\t\tTextDirective,\n\t\tWizardMarkerComponent,\n\t\tWizardSubStepComponent,\n\t\tTranslatePipe,\n\t\tIconComponent,\n\t],\n})\nexport class WizardWrapperComponent {\n\t/**\n\t * Injected wizard state management service instance\n\t * @internal\n\t */\n\twizardService = inject(WizardService);\n\n\t/**\n\t * Controls the layout direction of the wizard steps\n\t * @default 'horizontal'\n\t * @example\n\t * <st-wizard variant=\"vertical\">...</st-wizard>\n\t */\n\tvariant = input<WizardVariantProps>('horizontal');\n\n\t/**\n\t * Add a card style to the wizard\n\t * @default false\n\t * @example\n\t * <st-wizard [card]=\"true\">...</st-wizard>\n\t */\n\tcard = input(false, { transform: booleanAttribute });\n\n\t/**\n\t * Query list of contained wizard content components\n\t * @internal\n\t */\n\tcontents = contentChildren(WizardContentComponent);\n\n\t/**\n\t * Controls visibility of built-in navigation controls\n\t * @default true\n\t * @example\n\t * <st-wizard [showControls]=\"false\">...</st-wizard>\n\t */\n\tshowControls = input(true, { transform: booleanAttribute });\n\n\t/**\n\t * Event emitted when the back button is clicked\n\t * @example\n\t * <st-wizard (back)=\"handleCancel()\">...</st-wizard>\n\t */\n\tback = output<void>();\n\n\t/**\n\t * Event emitted when navigating to the previous step\n\t * @example\n\t * <st-wizard (previous)=\"logStepChange('previous')\">...</st-wizard>\n\t */\n\tprevious = output<void>();\n\n\t/**\n\t * Event emitted when navigating to the next valid step\n\t * @example\n\t * <st-wizard (next)=\"logStepChange('next')\">...</st-wizard>\n\t */\n\tnext = output<void>();\n\n\t/**\n\t * Event emitted when all steps are completed\n\t * @example\n\t * <st-wizard (complete)=\"showCompletionModal()\">...</st-wizard>\n\t */\n\tcomplete = output<void>();\n\n\t/**\n\t * Controls visibility of the loading spinner for completition button\n\t * @default false\n\t * @example\n\t * <st-wizard [loading]=\"true\">...</st-wizard>\n\t */\n\tloading = input(false, { transform: booleanAttribute });\n\n\t/**\n\t * Id(s) of the element(s) that describe the built-in Next/End button, rendered as its `aria-describedby`.\n\t * Point it at a notice that explains why the step cannot continue, so screen readers announce it with the button.\n\t *\n\t * @example\n\t * <p id=\"next-blocked\">Pick at least one product to continue.</p>\n\t * <st-wizard nextDescribedBy=\"next-blocked\">...</st-wizard>\n\t */\n\tnextDescribedBy = input<string | null | undefined>();\n\n\t// Icon definitions\n\t/** @internal Material design chevron left icon */\n\ticonChevronLeft = matChevronLeftOutline;\n\t/** @internal Material design chevron right icon */\n\ticonChevronRight = matChevronRightOutline;\n\t/** @internal Material design return arrow icon */\n\ticonReturn = matKeyboardReturnOutline;\n\t/** @internal Material design save/floppy disk icon */\n\ticonSave = matSaveOutline;\n\n\t/**\n\t * Handles back navigation and emits onBack event\n\t * @emits back\n\t * @example\n\t * // Template\n\t * <button (click)=\"handleBack()\">Cancel</button>\n\t *\n\t * // Component\n\t * handleBack() {\n\t * this.back.emit();\n\t * }\n\t */\n\thandleBack() {\n\t\tthis.back.emit();\n\t}\n\n\t/**\n\t * Navigates to previous step and emits previous event\n\t * @emits previous\n\t * @example\n\t * // Manually trigger previous step\n\t * previousStep() {\n\t * this.wizardService.previousStep();\n\t * this.previous.emit();\n\t * }\n\t */\n\thandlePrevious() {\n\t\tthis.wizardService.previousStep();\n\t\tthis.previous.emit();\n\t}\n\n\t/**\n\t * Navigates to next valid step and emits next event\n\t * @emits next\n\t * @example\n\t * // Custom next step handler\n\t * handleNext() {\n\t * if (form.valid) {\n\t * this.wizardService.nextStep();\n\t * this.next.emit();\n\t * }\n\t * }\n\t */\n\thandleNext() {\n\t\tthis.wizardService.nextStep();\n\t\tthis.next.emit();\n\t}\n\n\t/**\n\t * Completes wizard flow and emits complete event\n\t * @emits complete\n\t * @example\n\t * // Final step handler\n\t * handleComplete() {\n\t * if (allStepsValid) {\n\t * this.complete.emit();\n\t * }\n\t * }\n\t */\n\thandleComplete() {\n\t\tthis.complete.emit();\n\t}\n}\n","@let contentsVar = contents();\n@let varinatVar = variant();\n\n<div\n\t[class]=\"varinatVar === 'horizontal' ? 'flex flex-col gap-6' : 'flex gap-6'\"\n\t[ngClass]=\"{ 'rounded-box bg-base-200 shadow-main p-6': card() && varinatVar === 'horizontal' }\"\n>\n\t<!-- Steps -->\n\t@if (varinatVar === 'horizontal') {\n\t\t<ul class=\"mx-auto my-0 flex w-full max-w-[80%_40vw] min-w-fit gap-4 px-3.5 pt-6 md:px-4 lg:px-5\">\n\t\t\t@for (step of wizardService.steps(); track $index) {\n\t\t\t\t<li [ngClass]=\"{ 'flex-1': contentsVar.length - 1 !== $index }\">\n\t\t\t\t\t<div class=\"flex items-center gap-4\">\n\t\t\t\t\t\t<st-wizard-step [icon]=\"step.icon\" [stepIndex]=\"$index\" [status]=\"step.status\"></st-wizard-step>\n\t\t\t\t\t\t@if (contentsVar.length - 1 !== $index) {\n\t\t\t\t\t\t\t<div class=\"flex min-w-min flex-1 flex-col justify-center\">\n\t\t\t\t\t\t\t\t<div class=\"flex -translate-y-6 justify-center\">\n\t\t\t\t\t\t\t\t\t<st-wizard-marker [status]=\"step.status\"></st-wizard-marker>\n\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t<st-wizard-sub-step [stepIndex]=\"$index\" [stepStatus]=\"step.status\"></st-wizard-sub-step>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t}\n\t\t\t\t\t</div>\n\t\t\t\t\t<div class=\"mt-1 w-[50px]\">\n\t\t\t\t\t\t<div class=\"relative flex max-w-fit flex-col items-center\">\n\t\t\t\t\t\t\t<div class=\"min-w-max\">\n\t\t\t\t\t\t\t\t<span stText=\"8\" stTextColor=\"base\" stTextWeight=\"medium\">{{ step.label }}</span>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t<div class=\"text-secondary relative -top-1 min-w-max\" stText=\"9\">\n\t\t\t\t\t\t\t\t{{ 'sdk.wizard.wizardWrapper.step' | translate: { index: $index + 1 } }}\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t</div>\n\t\t\t\t\t</div>\n\t\t\t\t</li>\n\t\t\t}\n\t\t</ul>\n\t} @else {\n\t\t<ul class=\"grid h-min max-h-min gap-4\" [ngClass]=\"{ 'rounded-box bg-base-200 shadow-main p-6': card() }\">\n\t\t\t@for (step of wizardService.steps(); track $index) {\n\t\t\t\t<li>\n\t\t\t\t\t<!-- step pogress -->\n\t\t\t\t\t<div class=\"grid grid-rows-[min-content_min-content] gap-4\">\n\t\t\t\t\t\t<div class=\"flex items-center gap-3\">\n\t\t\t\t\t\t\t<st-wizard-step [icon]=\"step.icon\" [stepIndex]=\"$index\" [status]=\"step.status\"></st-wizard-step>\n\t\t\t\t\t\t\t<!-- step info -->\n\t\t\t\t\t\t\t<div>\n\t\t\t\t\t\t\t\t<div class=\"relative flex max-w-fit flex-col\">\n\t\t\t\t\t\t\t\t\t<div class=\"min-w-max\">\n\t\t\t\t\t\t\t\t\t\t<span stText=\"8\" stTextColor=\"base\" stTextWeight=\"medium\">{{ step.label }}</span>\n\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\t<div class=\"text-neutral relative -top-1 min-w-max\" stText=\"9\">\n\t\t\t\t\t\t\t\t\t\t{{ 'sdk.wizard.wizardWrapper.step' | translate: { index: $index + 1 } }}\n\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t</div>\n\t\t\t\t\t\t@if (contentsVar.length - 1 !== $index) {\n\t\t\t\t\t\t\t<div class=\"flex flex-col justify-center\">\n\t\t\t\t\t\t\t\t<st-wizard-sub-step variant=\"vertical\" [stepIndex]=\"$index\" [stepStatus]=\"step.status\"></st-wizard-sub-step>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t}\n\t\t\t\t\t</div>\n\t\t\t\t</li>\n\t\t\t}\n\t\t</ul>\n\t}\n\n\t<div class=\"flex flex-1 flex-col gap-6\" [ngClass]=\"{ 'rounded-box bg-base-200 shadow-main p-6': card() && varinatVar === 'vertical' }\">\n\t\t<!-- Content -->\n\t\t<div>\n\t\t\t<ng-content></ng-content>\n\t\t</div>\n\n\t\t<!-- Actions -->\n\t\t@if (this.showControls()) {\n\t\t\t<div class=\"flex items-center gap-3\">\n\t\t\t\t@if (wizardService.isCurrentStepFirst()) {\n\t\t\t\t\t<st-button variant=\"secondary\" [outline]=\"true\" [icon]=\"iconReturn\" (click)=\"handleBack()\">{{\n\t\t\t\t\t\t'sdk.wizard.wizardWrapper.back' | translate\n\t\t\t\t\t}}</st-button>\n\t\t\t\t} @else {\n\t\t\t\t\t<st-button [icon]=\"iconChevronLeft\" variant=\"secondary\" [outline]=\"true\" (click)=\"handlePrevious()\">{{\n\t\t\t\t\t\t'sdk.wizard.wizardWrapper.previous' | translate\n\t\t\t\t\t}}</st-button>\n\t\t\t\t}\n\t\t\t\t@if (wizardService.isCurrentStepLast()) {\n\t\t\t\t\t<st-button\n\t\t\t\t\t\tvariant=\"primary\"\n\t\t\t\t\t\t[ariaDescribedBy]=\"nextDescribedBy()\"\n\t\t\t\t\t\t(click)=\"handleComplete()\"\n\t\t\t\t\t\t[disabled]=\"loading() || !wizardService.areAllStepsValid()\"\n\t\t\t\t\t\t[loader]=\"loading()\"\n\t\t\t\t\t>\n\t\t\t\t\t\t@if (!loading()) {\n\t\t\t\t\t\t\t<st-icon [icon]=\"iconSave\"></st-icon>\n\n\t\t\t\t\t\t\t{{ 'sdk.wizard.wizardWrapper.end' | translate }}\n\t\t\t\t\t\t}\n\t\t\t\t\t</st-button>\n\t\t\t\t} @else {\n\t\t\t\t\t<st-button\n\t\t\t\t\t\tvariant=\"primary\"\n\t\t\t\t\t\t[icon]=\"iconChevronRight\"\n\t\t\t\t\t\ticonPosition=\"right\"\n\t\t\t\t\t\t[ariaDescribedBy]=\"nextDescribedBy()\"\n\t\t\t\t\t\t[disabled]=\"!wizardService.currentStep().isValid\"\n\t\t\t\t\t\t(click)=\"handleNext()\"\n\t\t\t\t\t\t>{{ 'sdk.wizard.wizardWrapper.next' | translate }}</st-button\n\t\t\t\t\t>\n\t\t\t\t}\n\t\t\t</div>\n\t\t} @else {\n\t\t\t<ng-content select=\"st-wizard-actions\"></ng-content>\n\t\t}\n\t</div>\n</div>\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;;;;;;;;;;;AAEA;;;;AAIG;AACI,MAAM,kBAAkB,GAAG;AACjC,IAAA,WAAW,EAAE,aAAa;AAC1B,IAAA,OAAO,EAAE,SAAS;AAClB,IAAA,SAAS,EAAE,WAAW;AACtB,IAAA,KAAK,EAAE,OAAO;;AAgCf;;;AAGG;MAIU,aAAa,CAAA;;;AAGR,IAAA,MAAM,GAAG,MAAM,CAAqB,EAAE,CAAC;;AAEvC,IAAA,iBAAiB,GAAG,MAAM,CAAS,CAAC,CAAC;;AAErC,IAAA,cAAc,GAAG,MAAM,CAAS,CAAC,CAAC;;AAElC,IAAA,cAAc,GAAG,MAAM,CAAS,CAAC,CAAC;;AAElC,IAAA,gBAAgB,GAAG,MAAM,CAAU,KAAK,CAAC;;;AAGnD,IAAA,KAAK,GAAG,IAAI,CAAC,MAAM,CAAC,UAAU,EAAE;AAEvC;;;AAGG;AACI,IAAA,gBAAgB,GAAG,IAAI,CAAC,iBAAiB,CAAC,UAAU,EAAE;AAC7D;;;AAGG;AACI,IAAA,WAAW,GAAG,QAAQ,CAAC,MAAM,IAAI,CAAC,KAAK,EAAE,CAAC,IAAI,CAAC,gBAAgB,EAAE,CAAC,CAAC;AAE1E;;;AAGG;IACI,UAAU,GAAG,QAAQ,CAAC,MAAM,IAAI,CAAC,KAAK,EA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A,CAAA,SAAA,EAAA,WAAA,EAAA,YAAA,CAAA,EAAA,EAAA,EAAA,IAAA,EAAA,MAAA,EAAA,IAAA,EACtB,aAAa,kDACb,aAAa,EAAA,QAAA,EAAA,SAAA,EAAA,MAAA,EAAA,CAAA,OAAA,EAAA,MAAA,EAAA,MAAA,EAAA,WAAA,CAAA,EAAA,CAAA,EAAA,CAAA;;4FAGF,sBAAsB,EAAA,UAAA,EAAA,CAAA;kBAdlC,SAAS;AACC,YAAA,IAAA,EAAA,CAAA,EAAA,QAAA,EAAA,WAAW,EAAA,OAAA,EAEZ;wBACR,mBAAmB;wBACnB,eAAe;wBACf,OAAO;wBACP,aAAa;wBACb,qBAAqB;wBACrB,sBAAsB;wBACtB,aAAa;wBACb,aAAa;AACb,qBAAA,EAAA,QAAA,EAAA,w4JAAA,EAAA;;;AE5DF;;AAEG;;;;"}
1
+ {"version":3,"file":"sixbell-telco-sdk-components-wizard.mjs","sources":["../../../projects/sdk/components/wizard/services/wizard.service.ts","../../../projects/sdk/components/wizard/wizard-actions/wizard-actions.component.ts","../../../projects/sdk/components/wizard/wizard-actions/wizard-actions.component.html","../../../projects/sdk/components/wizard/wizard-content/wizard-content.component.ts","../../../projects/sdk/components/wizard/wizard-content/wizard-content.component.html","../../../projects/sdk/components/wizard/wizard-indicator/wizard-indicator.component.ts","../../../projects/sdk/components/wizard/wizard-indicator/wizard-indicator.component.html","../../../projects/sdk/components/wizard/wizard-wrapper/wizard-wrapper.component.ts","../../../projects/sdk/components/wizard/wizard-wrapper/wizard-wrapper.component.html","../../../projects/sdk/components/wizard/sixbell-telco-sdk-components-wizard.ts"],"sourcesContent":["import { computed, Injectable, signal } from '@angular/core';\n\n/**\n * Enum-like object representing possible wizard step statuses\n * @readonly\n * @enum {string}\n */\nexport const WIZARD_STEP_STATUS = {\n\tIN_PROGRESS: 'in progress',\n\tPENDING: 'pending',\n\tCOMPLETED: 'completed',\n\tERROR: 'error',\n} as const;\n\n/**\n * Configuration object for a wizard step\n * @property {string} name - Unique identifier for the step\n * @property {(typeof WIZARD_STEP_STATUS)[keyof typeof WIZARD_STEP_STATUS]} status - Current status of the step\n * @property {boolean} isValid - Indicates if the step's data is valid\n * @property {string} label - Display text for the step\n * @property {string} [icon] - Optional icon for the step\n * @property {string} [meta] - Optional short summary shown next to the step by the checklist indicator (for example \"Tested\")\n */\nexport type WizardStepConfig = {\n\tname: string;\n\tstatus: (typeof WIZARD_STEP_STATUS)[keyof typeof WIZARD_STEP_STATUS];\n\tisValid: boolean;\n\tlabel: string;\n\ticon?: string;\n\tmeta?: string;\n};\n\n/**\n * Simplified step definition without status and validation\n * @property {string} name - Unique identifier for the step\n * @property {string} label - Display text for the step\n * @property {string} [icon] - Optional icon for the step\n * @property {string} [meta] - Optional short summary shown by the checklist indicator\n */\nexport type WizardStep = Omit<WizardStepConfig, 'status' | 'isValid'>;\n\n/**\n * Union type of possible wizard step status values\n */\nexport type WizardStepStatus = (typeof WIZARD_STEP_STATUS)[keyof typeof WIZARD_STEP_STATUS];\n\n/**\n * Service for managing wizard state and navigation\n * @Injectable\n */\n@Injectable({\n\tprovidedIn: 'root',\n})\nexport class WizardService {\n\t// State signals\n\t/** @private Internal signal for wizard steps */\n\tprivate readonly _steps = signal<WizardStepConfig[]>([]);\n\t/** @private Internal signal for current step index */\n\tprivate readonly _currentStepIndex = signal<number>(0);\n\t/** @private Internal signal for first step index */\n\tprivate readonly _fistStepIndex = signal<number>(0);\n\t/** @private Internal signal for last step index */\n\tprivate readonly _lastStepIndex = signal<number>(0);\n\t/** @private Internal signal for transition state */\n\tprivate readonly _isTransitioning = signal<boolean>(false);\n\t// Readonly signals\n\t/** Readonly array of wizard steps */\n\tpublic steps = this._steps.asReadonly();\n\n\t/**\n\t * Current step index\n\t * @readonly\n\t */\n\tpublic currentStepIndex = this._currentStepIndex.asReadonly();\n\t/**\n\t * Currently active step\n\t * @readonly\n\t */\n\tpublic currentStep = computed(() => this.steps()[this.currentStepIndex()]);\n\n\t/**\n\t * Array of valid steps\n\t * @readonly\n\t */\n\tpublic validSteps = computed(() => this.steps().filter((step) => step.isValid));\n\t/**\n\t * Indicates if all steps are valid\n\t * @readonly\n\t */\n\tpublic areAllStepsValid = computed(() => this.validSteps().length === this.steps().length);\n\n\t/**\n\t * First step index\n\t * @readonly\n\t */\n\tpublic fistStepIndex = this._fistStepIndex.asReadonly();\n\t/**\n\t * First step in the wizard\n\t * @readonly\n\t */\n\tpublic firstStep = computed(() => this.steps()[this.fistStepIndex()]);\n\n\t/**\n\t * Last step index\n\t * @readonly\n\t */\n\tpublic lastStepIndex = this._lastStepIndex.asReadonly();\n\t/**\n\t * Last step in the wizard\n\t * @readonly\n\t */\n\tpublic lastStep = computed(() => this.steps()[this.lastStepIndex()]);\n\n\t/**\n\t * Completed steps\n\t * @readonly\n\t */\n\tpublic completedSteps = computed(() => this.steps().filter((step) => step.status === 'completed'));\n\t/**\n\t * Pending steps\n\t * @readonly\n\t */\n\tpublic pendingSteps = computed(() => this.steps().filter((step) => step.status === 'pending'));\n\t/**\n\t * In-progress steps\n\t * @readonly\n\t */\n\tpublic inProgressSteps = computed(() => this.steps().filter((step) => step.status === 'in progress'));\n\n\t/**\n\t * Indicates if all steps are completed\n\t * @readonly\n\t */\n\tpublic isCompleted = computed(() => this.completedSteps().length === this.steps().length);\n\t/**\n\t * Indicates if current step is the first step\n\t * @readonly\n\t */\n\tpublic isCurrentStepFirst = computed(() => this.currentStepIndex() === this.fistStepIndex());\n\t/**\n\t * Indicates if current step is the last step\n\t * @readonly\n\t */\n\tpublic isCurrentStepLast = computed(() => this.currentStepIndex() === this.lastStepIndex());\n\n\t/**\n\t * Indicates if wizard is transitioning between steps\n\t * @readonly\n\t */\n\tpublic isTransitioning = this._isTransitioning.asReadonly();\n\n\t/**\n\t * Initializes the wizard with given steps\n\t * @param {WizardStep[]} steps - Array of step configurations\n\t */\n\tpublic init(steps: WizardStep[]): void {\n\t\tthis.setSteps(\n\t\t\tsteps.map((step, index) => ({\n\t\t\t\t...step,\n\t\t\t\tstatus: index === 0 ? 'in progress' : 'pending',\n\t\t\t\tisValid: false,\n\t\t\t})),\n\t\t);\n\t\tthis.setFistStepIndex(0);\n\t\tthis.setLastStepIndex(steps.length - 1);\n\t}\n\n\t/**\n\t * Replaces all steps with new configuration\n\t * @param {WizardStepConfig[]} steps - New array of step configurations\n\t */\n\tpublic setSteps(steps: WizardStepConfig[]): void {\n\t\tthis._steps.set(steps);\n\t}\n\n\t/**\n\t * Adds a new step to the end of the wizard\n\t * @param {WizardStepConfig} step - Step configuration to add\n\t */\n\tpublic addStep(step: WizardStepConfig): void {\n\t\tthis.setSteps([...this.steps(), step]);\n\t}\n\n\t/**\n\t * Inserts a step at specific index\n\t * @param {number} index - Position to insert the step\n\t * @param {WizardStepConfig} step - Step configuration to add\n\t */\n\tpublic addStepAtIndex(index: number, step: WizardStepConfig): void {\n\t\tconst newSteps = this.steps().reduce((acc: WizardStepConfig[], s, i) => {\n\t\t\tif (i === index) {\n\t\t\t\tacc.push(step);\n\t\t\t}\n\t\t\tacc.push(s);\n\t\t\treturn acc;\n\t\t}, []);\n\t\tthis.setSteps(newSteps);\n\t}\n\n\t/**\n\t * Removes step at specified index\n\t * @param {number} index - Index of step to remove\n\t */\n\tpublic removeStep(index: number): void {\n\t\tconst newSteps = this.steps().filter((_, i) => i !== index);\n\t\tthis.setSteps(newSteps);\n\t}\n\n\t/**\n\t * Updates name of step at specified index\n\t * @param {number} index - Index of step to update\n\t * @param {string} name - New name for the step\n\t */\n\tpublic updateStepName(index: number, name: string): void {\n\t\tconst newSteps = this.steps().map((s, i) => (i === index ? { ...s, name } : s));\n\t\tthis.setSteps(newSteps);\n\t}\n\n\t/**\n\t * Updates label of step at specified index\n\t * @param {number} index - Index of step to update\n\t * @param {string} label - New label for the step\n\t */\n\tpublic updateStepLabel(index: number, label: string): void {\n\t\tconst newSteps = this.steps().map((s, i) => (i === index ? { ...s, label } : s));\n\t\tthis.setSteps(newSteps);\n\t}\n\n\t/**\n\t * Updates the meta text of the step at the specified index (shown by the checklist indicator)\n\t * @param {number} index - Index of step to update\n\t * @param {string | undefined} meta - New meta text, or undefined to clear it\n\t */\n\tpublic updateStepMeta(index: number, meta: string | undefined): void {\n\t\tconst newSteps = this.steps().map((s, i) => (i === index ? { ...s, meta } : s));\n\t\tthis.setSteps(newSteps);\n\t}\n\n\t/**\n\t * Updates status of step at specified index\n\t * @param {number} index - Index of step to update\n\t * @param {WizardStepStatus} status - New status for the step\n\t * @param {number} [stale] - Optional delay in milliseconds before applying changes\n\t */\n\tpublic updateStepStatus(index: number, status: WizardStepStatus, stale?: number): void {\n\t\t// Built when applied, so a delayed status never reverts a change (validity, label) made meanwhile\n\t\tconst withStatus = () => this.steps().map((s, i) => (i === index ? { ...s, status } : s));\n\n\t\tthis._isTransitioning.set(true);\n\n\t\tif (stale === undefined) {\n\t\t\tthis._isTransitioning.set(false);\n\t\t\tthis.setSteps(withStatus());\n\t\t\treturn;\n\t\t}\n\n\t\tsetTimeout(() => {\n\t\t\tthis._isTransitioning.set(false);\n\t\t\tthis.setSteps(withStatus());\n\t\t}, stale);\n\t}\n\n\t/**\n\t * Updates validation status of step at specified index\n\t * @param {number} index - Index of step to update\n\t * @param {boolean} isValid - New validation status\n\t */\n\tpublic updateStepIsValid(index: number, isValid: boolean): void {\n\t\tconst newSteps = this.steps().map((s, i) => (i === index ? { ...s, isValid } : s));\n\t\tthis.setSteps(newSteps);\n\t}\n\n\t/**\n\t * Replaces entire step configuration at specified index\n\t * @param {number} index - Index of step to replace\n\t * @param {WizardStepConfig} step - New step configuration\n\t */\n\tpublic updateStep(index: number, step: WizardStepConfig): void {\n\t\tconst newSteps = this.steps().map((s, i) => (i === index ? step : s));\n\t\tthis.setSteps(newSteps);\n\t}\n\n\t/**\n\t * Sets current active step index\n\t * @param {number} index - New current step index\n\t */\n\tpublic setCurrentStepIndex(index: number): void {\n\t\tthis._currentStepIndex.set(index);\n\t}\n\n\t/**\n\t * Sets index for first step in wizard\n\t * @param {number} index - New first step index\n\t */\n\tpublic setFistStepIndex(index: number): void {\n\t\tthis._fistStepIndex.set(index);\n\t}\n\n\t/**\n\t * Sets index for last step in wizard\n\t * @param {number} index - New last step index\n\t */\n\tpublic setLastStepIndex(index: number): void {\n\t\tthis._lastStepIndex.set(index);\n\t}\n\n\t/**\n\t * Navigates to next valid step\n\t */\n\tpublic nextStep(): void {\n\t\tif (!this.currentStep().isValid) return;\n\n\t\tconst lastIndex = this._steps().length - 1;\n\t\tconst nextIndex = this.currentStepIndex() + 1;\n\t\tif (nextIndex > lastIndex) return;\n\n\t\tconst nextStepIndex = nextIndex;\n\n\t\tthis.updateStepStatus(this.currentStepIndex(), 'completed');\n\t\tthis._currentStepIndex.set(nextStepIndex);\n\t\tthis.updateStepStatus(nextStepIndex, 'in progress', 300);\n\t}\n\n\t/**\n\t * Navigates to previous step\n\t */\n\tpublic previousStep(): void {\n\t\tif (this.currentStepIndex() <= 0) return;\n\n\t\tconst previousStepIndex = this.currentStepIndex() - 1;\n\n\t\tthis.updateStepStatus(this.currentStepIndex(), 'pending');\n\t\tthis._currentStepIndex.set(previousStepIndex);\n\t\tthis.updateStepStatus(previousStepIndex, 'in progress', 300);\n\t}\n\n\t/**\n\t * Jumps to specified step index\n\t * @param {number} index - Target step index to navigate to\n\t */\n\tpublic gotoStep(index: number): void {\n\t\tif (index < 0 || index >= this.steps().length) return;\n\n\t\tconst newSteps = this.steps().map((step, i) => {\n\t\t\tif (i === index) {\n\t\t\t\treturn { ...step, status: WIZARD_STEP_STATUS.IN_PROGRESS };\n\t\t\t}\n\t\t\tif (index === this.fistStepIndex()) {\n\t\t\t\tif (i === this.fistStepIndex()) {\n\t\t\t\t\treturn { ...step, status: WIZARD_STEP_STATUS.IN_PROGRESS };\n\t\t\t\t}\n\t\t\t\treturn { ...step, status: WIZARD_STEP_STATUS.PENDING };\n\t\t\t}\n\n\t\t\tif (index === this.lastStepIndex()) {\n\t\t\t\tif (i === this.lastStepIndex()) {\n\t\t\t\t\treturn { ...step, status: WIZARD_STEP_STATUS.IN_PROGRESS };\n\t\t\t\t}\n\t\t\t\treturn { ...step, status: WIZARD_STEP_STATUS.COMPLETED };\n\t\t\t}\n\n\t\t\tif (i < index) {\n\t\t\t\treturn { ...step, status: WIZARD_STEP_STATUS.COMPLETED };\n\t\t\t}\n\n\t\t\tif (i > index) {\n\t\t\t\treturn { ...step, status: WIZARD_STEP_STATUS.PENDING };\n\t\t\t}\n\n\t\t\treturn step;\n\t\t});\n\n\t\tthis.setSteps(newSteps);\n\t\tthis._currentStepIndex.set(index);\n\t}\n\n\t/**\n\t * Resets wizard to initial state\n\t */\n\tpublic reset(): void {\n\t\tthis._steps.set([]);\n\t\tthis._currentStepIndex.set(0);\n\t\tthis._fistStepIndex.set(0);\n\t\tthis._lastStepIndex.set(0);\n\t\tthis._isTransitioning.set(false);\n\t}\n}\n","import { CommonModule } from '@angular/common';\nimport { ChangeDetectionStrategy, Component, computed, input } from '@angular/core';\nimport { cn } from '@sixbell-telco/sdk/utils/cn';\n\nexport type WizardActionsAligmentProps = 'left' | 'right' | 'center';\n\n@Component({\n\tselector: 'st-wizard-actions',\n\timports: [CommonModule],\n\ttemplateUrl: './wizard-actions.component.html',\n\tchangeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class WizardActionsComponent {\n\t// Base table properties\n\talignment = input<WizardActionsAligmentProps>('left');\n\n\tcomponentClass = computed(() => {\n\t\treturn cn('font-body flex flex-wrap items-center gap-2 leading-normal text-pretty', {\n\t\t\t'justify-start': this.alignment() === 'left',\n\t\t\t'justify-end': this.alignment() === 'right',\n\t\t\t'justify-center': this.alignment() === 'center',\n\t\t});\n\t});\n}\n","<div [class]=\"componentClass()\">\n\t<ng-content></ng-content>\n</div>\n","import { booleanAttribute, Component, computed, inject, input } from '@angular/core';\nimport { takeUntilDestroyed, toObservable } from '@angular/core/rxjs-interop';\nimport { cn } from '@sixbell-telco/sdk/utils/cn';\nimport { WizardService } from '../services/wizard.service';\n\n/**\n * Component wrapper for individual wizard step content with validation integration.\n *\n * @remarks\n * Manages content visibility and validation state synchronization with the wizard service.\n * Automatically handles:\n * - Step activation status\n * - Validation state propagation\n * - Fade animations\n * - Destruction cleanup\n *\n * @example\n * ```html\n * <st-wizard-content\n * [stepIndex]=\"0\"\n * [isValid]=\"form.valid\"\n * >\n * <!-- Step content -->\n * </st-wizard-content>\n * ```\n */\n@Component({\n\tselector: 'st-wizard-content',\n\timports: [],\n\ttemplateUrl: './wizard-content.component.html',\n})\nexport class WizardContentComponent {\n\t/** @internal Injected wizard state service */\n\twizardService = inject(WizardService);\n\n\t/**\n\t * Position index in the wizard sequence (0-based)\n\t * @default 0\n\t */\n\tstepIndex = input(0);\n\n\t/**\n\t * Current validation state of the step\n\t * @default false\n\t * @remarks Updates wizard service automatically when changed\n\t */\n\tisValid = input(false, { transform: booleanAttribute });\n\n\t/**\n\t * Computed status from wizard service\n\t * @internal\n\t */\n\tstatus = computed(() => this.wizardService.steps()[this.stepIndex()].status);\n\n\t/**\n\t * Observable version of isValid input\n\t * @internal\n\t */\n\tprivate isValid$ = toObservable(this.isValid);\n\n\t/**\n\t * Current active step index from service\n\t * @internal\n\t */\n\tcurrentStep = computed(() => this.wizardService.currentStepIndex());\n\n\t/**\n\t * Checks if this content's step is currently active\n\t * @returns {boolean} True if stepIndex matches current active step\n\t * @internal\n\t */\n\tisStepActive = computed(() => this.stepIndex() === this.wizardService.currentStepIndex());\n\n\t/**\n\t * Computed CSS classes for content container\n\t * @returns {string} Animation classes\n\t * @internal\n\t */\n\tcomponentClass = computed(() => cn('animate-fade-in animate-duration-300 font-body leading-normal text-pretty'));\n\n\t/**\n\t * Sets up validation state synchronization\n\t * @remarks Uses takeUntilDestroyed for automatic cleanup\n\t */\n\tconstructor() {\n\t\tthis.isValid$.pipe(takeUntilDestroyed()).subscribe((isValid) => {\n\t\t\tthis.wizardService.updateStepIsValid(this.stepIndex(), isValid);\n\t\t});\n\t}\n}\n","@if (this.isStepActive()) {\n\t<div [class]=\"componentClass()\">\n\t\t<ng-content></ng-content>\n\t</div>\n}\n","import { NgTemplateOutlet } from '@angular/common';\nimport { booleanAttribute, ChangeDetectionStrategy, Component, computed, inject, input, linkedSignal, output } from '@angular/core';\nimport { _, TranslatePipe } from '@ngx-translate/core';\nimport { IconComponent } from '@sixbell-telco/sdk/components/icon';\nimport { TextDirective } from '@sixbell-telco/sdk/directives/text';\nimport { WizardService, WizardStepStatus } from '../services/wizard.service';\n\n/**\n * Step indicator styles of `st-wizard`.\n * - `rail`: vertical list on one continuous track that fills as steps complete\n * - `checklist`: vertical header (\"Step n of N\"), progress bar and a compact checklist\n * - `segments`: horizontal segments that fill, with the step name under each\n */\nexport type WizardIndicator = 'rail' | 'checklist' | 'segments';\n\n/** Vertical gap between rail rows, in px (`gap-1`); the track and highlight geometry depend on it. */\nconst RAIL_ROW_GAP = 4;\n\n/** Placeholder used to split the translated \"Step {{index}} of {{total}}\" around the number, so the number can roll. */\nconst INDEX_MARK = '⁣';\n\nconst STATE_KEYS: Record<WizardStepStatus, string> = {\n\tcompleted: _('sdk.wizard.wizardMarker.completed'),\n\t'in progress': _('sdk.wizard.wizardWrapper.currentStep'),\n\tpending: _('sdk.wizard.wizardWrapper.upNext'),\n\terror: _('sdk.wizard.wizardMarker.error'),\n};\n\n/**\n * Step indicator rendered by `st-wizard` (internal).\n *\n * @remarks\n * Reads the steps and the current index from {@link WizardService}. The current step (`aria-current=\"step\"`)\n * follows the service index at once; each circle follows the step status, which the service applies after\n * its 300ms delay, so the track fill reaches the next circle as it activates.\n * State-bound elements are recreated when their state changes, which replays their one-shot animation.\n * @internal\n */\n@Component({\n\tselector: 'st-wizard-indicator',\n\ttemplateUrl: './wizard-indicator.component.html',\n\timports: [NgTemplateOutlet, TranslatePipe, TextDirective, IconComponent],\n\tchangeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class WizardIndicatorComponent {\n\t/** @internal */\n\twizardService = inject(WizardService);\n\n\t/** Indicator style to render */\n\tindicator = input.required<WizardIndicator>();\n\n\t/** Whether completed checklist steps can be clicked to go back */\n\tcanGoBack = input(true, { transform: booleanAttribute });\n\n\t/** Emits the index of a completed step the user picked to go back to */\n\tstepSelect = output<number>();\n\n\t/** @internal */\n\treadonly indexMark = INDEX_MARK;\n\n\t/** @internal Number of steps */\n\tcount = computed(() => this.wizardService.steps().length);\n\n\t/** @internal Current step index */\n\tcurrent = computed(() => this.wizardService.currentStepIndex());\n\n\t/** @internal Direction of the last step change, so the number rolls the way the user moved */\n\tdirection = linkedSignal<number, 'forward' | 'back'>({\n\t\tsource: this.current,\n\t\tcomputation: (index, previous) => (previous && index < previous.source ? 'back' : 'forward'),\n\t});\n\n\t/** @internal Current step label */\n\tcurrentLabel = computed(() => this.wizardService.steps()[this.current()]?.label ?? '');\n\n\t/** @internal Progress in percent: 0 on the first step, 100 on the last */\n\tprogress = computed(() => {\n\t\tconst n = this.count();\n\t\treturn n <= 1 ? 100 : Math.min(100, Math.max(0, (this.current() / (n - 1)) * 100));\n\t});\n\n\t/** @internal Height of one rail row (rows share one height) */\n\trailRowHeight = computed(() => `calc((100% - ${(this.count() - 1) * RAIL_ROW_GAP}px) / ${Math.max(1, this.count())})`);\n\n\t/** @internal Track inset from the top and bottom: half a row, so it starts and ends on the circle centres */\n\trailTrackInset = computed(() => `calc((100% - ${(this.count() - 1) * RAIL_ROW_GAP}px) / ${Math.max(1, this.count() * 2)})`);\n\n\t/** @internal Moves the shared highlight onto the current row */\n\trailHighlightTransform = computed(() => `translateY(calc(${this.current()} * (100% + ${RAIL_ROW_GAP}px)))`);\n\n\t/** @internal Segment grid columns */\n\tsegmentColumns = computed(() => `repeat(${Math.max(1, this.count())}, minmax(0, 1fr))`);\n\n\t/**\n\t * Translation key of the state line for a status\n\t * @internal\n\t */\n\tstateKey(status: WizardStepStatus): string {\n\t\treturn STATE_KEYS[status] ?? STATE_KEYS.pending;\n\t}\n\n\t/**\n\t * Splits a translated \"Step {{index}} of {{total}}\" rendered with {@link INDEX_MARK} into the text before and after the number\n\t * @internal\n\t */\n\tsplitAtIndex(text: string): [string, string] {\n\t\tconst at = text.indexOf(INDEX_MARK);\n\t\treturn at < 0 ? [text, ''] : [text.slice(0, at), text.slice(at + INDEX_MARK.length)];\n\t}\n\n\t/**\n\t * Segment fill in percent: full when done or failed, half on the current step\n\t * @internal\n\t */\n\tsegmentFill(status: WizardStepStatus): number {\n\t\tif (status === 'completed' || status === 'error') return 100;\n\t\treturn status === 'in progress' ? 50 : 0;\n\t}\n\n\t/**\n\t * Whether a checklist row is a button that goes back to its step\n\t * @internal\n\t */\n\tisSelectable(index: number, status: WizardStepStatus): boolean {\n\t\treturn this.canGoBack() && status === 'completed' && index < this.current();\n\t}\n}\n","@let stepsVar = wizardService.steps();\n@let currentVar = current();\n@let countVar = count();\n\n<!-- Check that draws itself; replayed whenever its parent is recreated -->\n<ng-template #checkIcon let-size>\n\t<svg\n\t\t[class]=\"size\"\n\t\tviewBox=\"0 0 16 16\"\n\t\tfill=\"none\"\n\t\tstroke=\"currentColor\"\n\t\tstroke-width=\"2.4\"\n\t\tstroke-linecap=\"round\"\n\t\tstroke-linejoin=\"round\"\n\t\taria-hidden=\"true\"\n\t\tfocusable=\"false\"\n\t>\n\t\t<path class=\"wizard-check-path animate-wizard-check motion-reduce:animate-none\" pathLength=\"1\" d=\"M3.5 8.5l3 3 6-7\" />\n\t</svg>\n</ng-template>\n\n@switch (indicator()) {\n\t@case ('checklist') {\n\t\t@let stepParts = splitAtIndex('sdk.wizard.wizardWrapper.stepOf' | translate: { index: indexMark, total: countVar });\n\t\t<div class=\"flex flex-col gap-3\" data-indicator=\"checklist\">\n\t\t\t<div class=\"flex items-baseline justify-between gap-3\">\n\t\t\t\t<span class=\"relative min-w-0 overflow-hidden\">\n\t\t\t\t\t@for (label of [currentLabel()]; track label) {\n\t\t\t\t\t\t<span stText=\"7\" stTextColor=\"base\" stTextWeight=\"bold\" class=\"animate-wizard-rise block motion-reduce:animate-none\">{{ label }}</span>\n\t\t\t\t\t}\n\t\t\t\t</span>\n\t\t\t\t<span stText=\"10\" stTextColor=\"base-secondary\" stTextWeight=\"medium\" class=\"shrink-0 whitespace-nowrap tabular-nums\" data-step-count\n\t\t\t\t\t>{{ stepParts[0]\n\t\t\t\t\t}}<span class=\"inline-flex overflow-hidden align-bottom\">\n\t\t\t\t\t\t@for (n of [currentVar + 1]; track n) {\n\t\t\t\t\t\t\t<span\n\t\t\t\t\t\t\t\tclass=\"inline-block motion-reduce:animate-none\"\n\t\t\t\t\t\t\t\t[class.animate-wizard-roll]=\"direction() === 'forward'\"\n\t\t\t\t\t\t\t\t[class.animate-wizard-roll-back]=\"direction() === 'back'\"\n\t\t\t\t\t\t\t\t>{{ n }}</span\n\t\t\t\t\t\t\t>\n\t\t\t\t\t\t}</span\n\t\t\t\t\t>{{ stepParts[1] }}</span\n\t\t\t\t>\n\t\t\t</div>\n\t\t\t<span class=\"bg-base-300 rounded-selector block h-1.5 overflow-hidden\" aria-hidden=\"true\">\n\t\t\t\t<span\n\t\t\t\t\tclass=\"bg-primary rounded-selector ease-out-back block h-full transition-[width] duration-450 motion-reduce:transition-none\"\n\t\t\t\t\tdata-progress\n\t\t\t\t\t[style.width.%]=\"progress()\"\n\t\t\t\t></span>\n\t\t\t</span>\n\t\t\t<ol class=\"flex flex-col gap-1\">\n\t\t\t\t@for (step of stepsVar; track $index; let i = $index) {\n\t\t\t\t\t@let isCurrent = $index === currentVar;\n\t\t\t\t\t<li [attr.aria-current]=\"isCurrent ? 'step' : null\">\n\t\t\t\t\t\t@if (isSelectable($index, step.status)) {\n\t\t\t\t\t\t\t<button\n\t\t\t\t\t\t\t\ttype=\"button\"\n\t\t\t\t\t\t\t\tclass=\"rounded-field hover:bg-primary-soft focus-visible:outline-primary flex min-h-9 w-full cursor-pointer items-center gap-3 px-2 py-2 text-start transition-colors duration-200 focus-visible:outline-2 focus-visible:outline-offset-2 motion-reduce:transition-none\"\n\t\t\t\t\t\t\t\t(click)=\"stepSelect.emit($index)\"\n\t\t\t\t\t\t\t>\n\t\t\t\t\t\t\t\t<ng-container *ngTemplateOutlet=\"checklistRow; context: { $implicit: step, current: isCurrent }\"></ng-container>\n\t\t\t\t\t\t\t</button>\n\t\t\t\t\t\t} @else {\n\t\t\t\t\t\t\t<div\n\t\t\t\t\t\t\t\tclass=\"rounded-field flex min-h-9 items-center gap-3 px-2 py-2 transition-colors duration-200 motion-reduce:transition-none\"\n\t\t\t\t\t\t\t\t[class.bg-primary-soft]=\"isCurrent\"\n\t\t\t\t\t\t\t>\n\t\t\t\t\t\t\t\t<ng-container *ngTemplateOutlet=\"checklistRow; context: { $implicit: step, current: isCurrent }\"></ng-container>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t}\n\t\t\t\t\t</li>\n\t\t\t\t}\n\t\t\t</ol>\n\t\t</div>\n\t}\n\n\t@case ('segments') {\n\t\t@let currentStepVar = stepsVar[currentVar];\n\t\t<div class=\"flex flex-col gap-2\" data-indicator=\"segments\">\n\t\t\t<ol class=\"grid gap-2\" [style.grid-template-columns]=\"segmentColumns()\">\n\t\t\t\t@for (step of stepsVar; track $index; let i = $index) {\n\t\t\t\t\t@let isCurrent = $index === currentVar;\n\t\t\t\t\t<li class=\"flex min-w-0 flex-col gap-2\" [attr.aria-current]=\"isCurrent ? 'step' : null\">\n\t\t\t\t\t\t<span class=\"bg-base-300 rounded-selector relative block h-1 overflow-hidden\" aria-hidden=\"true\">\n\t\t\t\t\t\t\t<span\n\t\t\t\t\t\t\t\tclass=\"rounded-selector relative block h-full overflow-hidden transition-[width,background-color] duration-400 ease-out motion-reduce:transition-none\"\n\t\t\t\t\t\t\t\tdata-segment-fill\n\t\t\t\t\t\t\t\t[class.bg-success]=\"step.status === 'completed'\"\n\t\t\t\t\t\t\t\t[class.bg-primary]=\"step.status === 'in progress'\"\n\t\t\t\t\t\t\t\t[class.bg-error]=\"step.status === 'error'\"\n\t\t\t\t\t\t\t\t[style.width.%]=\"segmentFill(step.status)\"\n\t\t\t\t\t\t\t>\n\t\t\t\t\t\t\t\t@if (step.status === 'in progress') {\n\t\t\t\t\t\t\t\t\t<span class=\"wizard-sweep-highlight animate-wizard-sweep absolute inset-0 motion-reduce:hidden\"></span>\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t</span>\n\t\t\t\t\t\t<span class=\"flex min-w-0 flex-col max-[400px]:sr-only\" data-segment-label>\n\t\t\t\t\t\t\t<span\n\t\t\t\t\t\t\t\tstText=\"10\"\n\t\t\t\t\t\t\t\tstTextColor=\"base-secondary\"\n\t\t\t\t\t\t\t\t[stTextWeight]=\"isCurrent ? 'bold' : 'medium'\"\n\t\t\t\t\t\t\t\tclass=\"tracking-wide uppercase tabular-nums\"\n\t\t\t\t\t\t\t\t>{{ 'sdk.wizard.wizardWrapper.step' | translate: { index: $index + 1 } }}</span\n\t\t\t\t\t\t\t>\n\t\t\t\t\t\t\t@for (s of [step.status]; track s) {\n\t\t\t\t\t\t\t\t<span\n\t\t\t\t\t\t\t\t\tstText=\"9\"\n\t\t\t\t\t\t\t\t\t[stTextColor]=\"step.status === 'pending' ? 'base-secondary' : 'base'\"\n\t\t\t\t\t\t\t\t\t[stTextWeight]=\"isCurrent ? 'semibold' : 'medium'\"\n\t\t\t\t\t\t\t\t\tclass=\"wrap-anywhere motion-reduce:animate-none\"\n\t\t\t\t\t\t\t\t\t[class.animate-wizard-rise]=\"isCurrent\"\n\t\t\t\t\t\t\t\t\t>{{ step.label }}</span\n\t\t\t\t\t\t\t\t>\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t<span class=\"sr-only\">{{ stateKey(step.status) | translate }}</span>\n\t\t\t\t\t\t</span>\n\t\t\t\t\t</li>\n\t\t\t\t}\n\t\t\t</ol>\n\t\t\t<!-- Below 400px only the current step's label shows -->\n\t\t\t<div class=\"hidden min-w-0 flex-col max-[400px]:flex\" aria-hidden=\"true\" data-segment-current>\n\t\t\t\t<span stText=\"10\" stTextColor=\"base-secondary\" stTextWeight=\"bold\" class=\"tracking-wide uppercase tabular-nums\">{{\n\t\t\t\t\t'sdk.wizard.wizardWrapper.stepOf' | translate: { index: currentVar + 1, total: countVar }\n\t\t\t\t}}</span>\n\t\t\t\t@for (label of [currentStepVar?.label]; track label) {\n\t\t\t\t\t<span stText=\"9\" stTextColor=\"base\" stTextWeight=\"semibold\" class=\"animate-wizard-rise wrap-anywhere motion-reduce:animate-none\">{{\n\t\t\t\t\t\tlabel\n\t\t\t\t\t}}</span>\n\t\t\t\t}\n\t\t\t</div>\n\t\t</div>\n\t}\n\n\t@default {\n\t\t<div class=\"relative\" data-indicator=\"rail\">\n\t\t\t<!-- Shared highlight: slides between rows instead of fading in place -->\n\t\t\t<span\n\t\t\t\tclass=\"bg-primary-soft rounded-field ease-out-back pointer-events-none absolute inset-x-0 top-0 transition-transform duration-400 motion-reduce:transition-none\"\n\t\t\t\taria-hidden=\"true\"\n\t\t\t\tdata-rail-highlight\n\t\t\t\t[style.height]=\"railRowHeight()\"\n\t\t\t\t[style.transform]=\"railHighlightTransform()\"\n\t\t\t></span>\n\t\t\t<!-- One continuous track on the circle centres (row padding 8px + half the 32px column = 24px) -->\n\t\t\t<span\n\t\t\t\tclass=\"bg-base-content-muted rounded-selector pointer-events-none absolute left-[23px] w-0.5\"\n\t\t\t\taria-hidden=\"true\"\n\t\t\t\tdata-rail-track\n\t\t\t\t[style.top]=\"railTrackInset()\"\n\t\t\t\t[style.bottom]=\"railTrackInset()\"\n\t\t\t>\n\t\t\t\t<span\n\t\t\t\t\tclass=\"bg-success rounded-selector absolute inset-x-0 top-0 block transition-[height] duration-450 ease-out motion-reduce:transition-none\"\n\t\t\t\t\tdata-rail-fill\n\t\t\t\t\t[style.height.%]=\"progress()\"\n\t\t\t\t></span>\n\t\t\t</span>\n\t\t\t<ol class=\"relative grid auto-rows-fr gap-1\">\n\t\t\t\t@for (step of stepsVar; track $index; let i = $index) {\n\t\t\t\t\t<li\n\t\t\t\t\t\tclass=\"relative grid grid-cols-[2rem_minmax(0,1fr)] items-center gap-3 px-2 py-2\"\n\t\t\t\t\t\t[attr.aria-current]=\"$index === currentVar ? 'step' : null\"\n\t\t\t\t\t>\n\t\t\t\t\t\t<span class=\"grid size-8 place-items-center\" data-rail-circle>\n\t\t\t\t\t\t\t@for (s of [step.status]; track s) {\n\t\t\t\t\t\t\t\t@switch (s) {\n\t\t\t\t\t\t\t\t\t@case ('completed') {\n\t\t\t\t\t\t\t\t\t\t<span\n\t\t\t\t\t\t\t\t\t\t\tclass=\"bg-success border-success text-success-content animate-wizard-pop grid size-7 place-items-center rounded-full border-2 motion-reduce:animate-none\"\n\t\t\t\t\t\t\t\t\t\t>\n\t\t\t\t\t\t\t\t\t\t\t<ng-container *ngTemplateOutlet=\"checkIcon; context: { $implicit: 'size-3.5' }\"></ng-container>\n\t\t\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t@case ('in progress') {\n\t\t\t\t\t\t\t\t\t\t<span\n\t\t\t\t\t\t\t\t\t\t\tclass=\"border-primary text-primary bg-base-100 animate-wizard-ring relative grid size-7 scale-108 place-items-center rounded-full border-2 motion-reduce:animate-none\"\n\t\t\t\t\t\t\t\t\t\t>\n\t\t\t\t\t\t\t\t\t\t\t<span class=\"animate-wizard-halo absolute -inset-0.5 rounded-full motion-reduce:hidden\" aria-hidden=\"true\"></span>\n\t\t\t\t\t\t\t\t\t\t\t<ng-container *ngTemplateOutlet=\"stepMark; context: { $implicit: step, index: i }\"></ng-container>\n\t\t\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t@case ('error') {\n\t\t\t\t\t\t\t\t\t\t<span\n\t\t\t\t\t\t\t\t\t\t\tclass=\"bg-error border-error text-error-content animate-wizard-pop grid size-7 place-items-center rounded-full border-2 motion-reduce:animate-none\"\n\t\t\t\t\t\t\t\t\t\t>\n\t\t\t\t\t\t\t\t\t\t\t<ng-container *ngTemplateOutlet=\"stepMark; context: { $implicit: step, index: i }\"></ng-container>\n\t\t\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t@default {\n\t\t\t\t\t\t\t\t\t\t<span\n\t\t\t\t\t\t\t\t\t\t\tclass=\"border-base-content-muted bg-base-100 text-base-content-secondary grid size-7 place-items-center rounded-full border-2\"\n\t\t\t\t\t\t\t\t\t\t>\n\t\t\t\t\t\t\t\t\t\t\t<ng-container *ngTemplateOutlet=\"stepMark; context: { $implicit: step, index: i }\"></ng-container>\n\t\t\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t</span>\n\t\t\t\t\t\t<span class=\"flex min-w-0 flex-col\">\n\t\t\t\t\t\t\t<span stText=\"8\" stTextColor=\"base\" [stTextWeight]=\"$index === currentVar ? 'bold' : 'semibold'\" class=\"wrap-anywhere\">{{\n\t\t\t\t\t\t\t\tstep.label\n\t\t\t\t\t\t\t}}</span>\n\t\t\t\t\t\t\t@for (s of [step.status]; track s) {\n\t\t\t\t\t\t\t\t<span\n\t\t\t\t\t\t\t\t\tstText=\"10\"\n\t\t\t\t\t\t\t\t\tstTextColor=\"base-secondary\"\n\t\t\t\t\t\t\t\t\tstTextWeight=\"medium\"\n\t\t\t\t\t\t\t\t\tclass=\"animate-wizard-rise motion-reduce:animate-none\"\n\t\t\t\t\t\t\t\t\tdata-state-line\n\t\t\t\t\t\t\t\t\t>{{ stateKey(s) | translate }}</span\n\t\t\t\t\t\t\t\t>\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t</span>\n\t\t\t\t\t</li>\n\t\t\t\t}\n\t\t\t</ol>\n\t\t</div>\n\t}\n}\n\n<!-- Step number, or the step icon when one is set -->\n<ng-template #stepMark let-step let-index=\"index\">\n\t@if (step.icon) {\n\t\t<st-icon [icon]=\"step.icon\" color=\"inherit\" size=\"auto\"></st-icon>\n\t} @else {\n\t\t<span stText=\"10\" stTextColor=\"inherit\" stTextWeight=\"bold\" class=\"tabular-nums\">{{ index + 1 }}</span>\n\t}\n</ng-template>\n\n<!-- Checklist row content -->\n<ng-template #checklistRow let-step let-isCurrent=\"current\">\n\t<span class=\"grid size-5 shrink-0 place-items-center\" aria-hidden=\"true\">\n\t\t@for (s of [step.status]; track s) {\n\t\t\t@switch (s) {\n\t\t\t\t@case ('completed') {\n\t\t\t\t\t<span\n\t\t\t\t\t\tclass=\"bg-success border-success text-success-content animate-wizard-pop grid size-4.5 place-items-center rounded-full border-2 motion-reduce:animate-none\"\n\t\t\t\t\t>\n\t\t\t\t\t\t<ng-container *ngTemplateOutlet=\"checkIcon; context: { $implicit: 'size-3' }\"></ng-container>\n\t\t\t\t\t</span>\n\t\t\t\t}\n\t\t\t\t@case ('in progress') {\n\t\t\t\t\t<span\n\t\t\t\t\t\tclass=\"border-primary bg-base-100 animate-wizard-ring relative grid size-4.5 place-items-center rounded-full border-2 motion-reduce:animate-none\"\n\t\t\t\t\t>\n\t\t\t\t\t\t<span class=\"animate-wizard-halo absolute -inset-0.5 rounded-full motion-reduce:hidden\"></span>\n\t\t\t\t\t</span>\n\t\t\t\t}\n\t\t\t\t@case ('error') {\n\t\t\t\t\t<span class=\"bg-error border-error animate-wizard-pop grid size-4.5 rounded-full border-2 motion-reduce:animate-none\"></span>\n\t\t\t\t}\n\t\t\t\t@default {\n\t\t\t\t\t<span class=\"border-base-300 bg-base-100 grid size-4.5 rounded-full border-2\"></span>\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t</span>\n\t<span\n\t\tstText=\"9\"\n\t\t[stTextColor]=\"step.status === 'pending' && !isCurrent ? 'base-secondary' : 'base'\"\n\t\t[stTextWeight]=\"isCurrent ? 'bold' : 'medium'\"\n\t\tclass=\"min-w-0 flex-1 wrap-anywhere\"\n\t\t>{{ step.label }}<span class=\"sr-only\">, {{ stateKey(step.status) | translate }}</span></span\n\t>\n\t@if (step.meta) {\n\t\t<span class=\"sr-only\">, </span>\n\t\t<span stText=\"10\" stTextColor=\"base-secondary\" class=\"shrink-0 tabular-nums\" data-step-meta>{{ step.meta }}</span>\n\t}\n</ng-template>\n","import { NgClass } from '@angular/common';\nimport { booleanAttribute, Component, computed, contentChildren, inject, input, output } from '@angular/core';\nimport { matChevronLeftOutline, matChevronRightOutline, matKeyboardReturnOutline, matSaveOutline } from '@ng-icons/material-icons/outline';\nimport { TranslatePipe } from '@ngx-translate/core';\nimport { ButtonComponent } from '@sixbell-telco/sdk/components/button';\nimport { IconComponent } from '@sixbell-telco/sdk/components/icon';\nimport { WizardService } from '../services/wizard.service';\nimport { WizardContentComponent } from '../wizard-content/wizard-content.component';\nimport { WizardIndicator, WizardIndicatorComponent } from '../wizard-indicator/wizard-indicator.component';\n\nexport type { WizardIndicator } from '../wizard-indicator/wizard-indicator.component';\n\n/**\n * Layout direction variants for the wizard component\n * @typedef {'vertical' | 'horizontal'} WizardVariantProps\n */\nexport type WizardVariantProps = 'vertical' | 'horizontal';\n\n/**\n * A container component for multi-step workflows with navigation controls and layout management.\n *\n * @remarks\n * Integrates with WizardService for state management and provides template structure for wizard steps.\n * Supports both horizontal and vertical layouts with customizable navigation controls.\n *\n * @example\n * ```html\n * <!-- Basic horizontal wizard -->\n * <st-wizard>\n * <st-wizard-content [stepIndex]=\"0\" name=\"Step 1\" [isValid]=\"true\">\n * <!-- Step content -->\n * </st-wizard-content>\n * <st-wizard-content [stepIndex]=\"1\" name=\"Step 2\">\n * <!-- Step content -->\n * </st-wizard-content>\n * </st-wizard>\n *\n * <!-- Vertical wizard with external controls -->\n * <st-wizard variant=\"vertical\" [showControls]=\"false\">\n * <!-- Step contents -->\n * </st-wizard>\n * <div class=\"controls\">\n * <st-button variant=\"secondary\" [outline]=\"true\" (click)=\"handlePrevious()\">Previous</st-button>\n * <st-button variant=\"primary\" (click)=\"handleNext()\">Next</st-button>\n * </div>\n * ```\n */\n@Component({\n\tselector: 'st-wizard',\n\ttemplateUrl: './wizard-wrapper.component.html',\n\timports: [WizardIndicatorComponent, ButtonComponent, NgClass, TranslatePipe, IconComponent],\n})\nexport class WizardWrapperComponent {\n\t/**\n\t * Injected wizard state management service instance\n\t * @internal\n\t */\n\twizardService = inject(WizardService);\n\n\t/**\n\t * Controls the layout direction of the wizard steps\n\t * @default 'horizontal'\n\t * @example\n\t * <st-wizard variant=\"vertical\">...</st-wizard>\n\t */\n\tvariant = input<WizardVariantProps>('horizontal');\n\n\t/**\n\t * Step indicator style. When unset it follows `variant`: vertical shows `rail`, horizontal shows `segments`.\n\t * `segments` sits above the content; `rail` and `checklist` sit in a side column.\n\t * In `checklist`, completed steps are buttons that go back to that step (emitting `previous`), except while `loading`.\n\t * @default undefined (from `variant`)\n\t * @example\n\t * <st-wizard variant=\"vertical\" indicator=\"checklist\">...</st-wizard>\n\t */\n\tindicator = input<WizardIndicator | undefined>(undefined);\n\n\t/**\n\t * Indicator in use: the `indicator` input, or the default for `variant`\n\t * @internal\n\t */\n\tresolvedIndicator = computed<WizardIndicator>(() => this.indicator() ?? (this.variant() === 'vertical' ? 'rail' : 'segments'));\n\n\t/**\n\t * Add a card style to the wizard\n\t * @default false\n\t * @example\n\t * <st-wizard [card]=\"true\">...</st-wizard>\n\t */\n\tcard = input(false, { transform: booleanAttribute });\n\n\t/**\n\t * Query list of contained wizard content components\n\t * @internal\n\t */\n\tcontents = contentChildren(WizardContentComponent);\n\n\t/**\n\t * Controls visibility of built-in navigation controls\n\t * @default true\n\t * @example\n\t * <st-wizard [showControls]=\"false\">...</st-wizard>\n\t */\n\tshowControls = input(true, { transform: booleanAttribute });\n\n\t/**\n\t * Event emitted when the back button is clicked\n\t * @example\n\t * <st-wizard (back)=\"handleCancel()\">...</st-wizard>\n\t */\n\tback = output<void>();\n\n\t/**\n\t * Event emitted when navigating to the previous step\n\t * @example\n\t * <st-wizard (previous)=\"logStepChange('previous')\">...</st-wizard>\n\t */\n\tprevious = output<void>();\n\n\t/**\n\t * Event emitted when navigating to the next valid step\n\t * @example\n\t * <st-wizard (next)=\"logStepChange('next')\">...</st-wizard>\n\t */\n\tnext = output<void>();\n\n\t/**\n\t * Event emitted when all steps are completed\n\t * @example\n\t * <st-wizard (complete)=\"showCompletionModal()\">...</st-wizard>\n\t */\n\tcomplete = output<void>();\n\n\t/**\n\t * Controls visibility of the loading spinner for completition button\n\t * @default false\n\t * @example\n\t * <st-wizard [loading]=\"true\">...</st-wizard>\n\t */\n\tloading = input(false, { transform: booleanAttribute });\n\n\t/**\n\t * Id(s) of the element(s) that describe the built-in Next/End button, rendered as its `aria-describedby`.\n\t * Point it at a notice that explains why the step cannot continue, so screen readers announce it with the button.\n\t *\n\t * @example\n\t * <p id=\"next-blocked\">Pick at least one product to continue.</p>\n\t * <st-wizard nextDescribedBy=\"next-blocked\">...</st-wizard>\n\t */\n\tnextDescribedBy = input<string | null | undefined>();\n\n\t// Icon definitions\n\t/** @internal Material design chevron left icon */\n\ticonChevronLeft = matChevronLeftOutline;\n\t/** @internal Material design chevron right icon */\n\ticonChevronRight = matChevronRightOutline;\n\t/** @internal Material design return arrow icon */\n\ticonReturn = matKeyboardReturnOutline;\n\t/** @internal Material design save/floppy disk icon */\n\ticonSave = matSaveOutline;\n\n\t/**\n\t * Handles back navigation and emits onBack event\n\t * @emits back\n\t * @example\n\t * // Template\n\t * <button (click)=\"handleBack()\">Cancel</button>\n\t *\n\t * // Component\n\t * handleBack() {\n\t * this.back.emit();\n\t * }\n\t */\n\thandleBack() {\n\t\tthis.back.emit();\n\t}\n\n\t/**\n\t * Navigates to previous step and emits previous event\n\t * @emits previous\n\t * @example\n\t * // Manually trigger previous step\n\t * previousStep() {\n\t * this.wizardService.previousStep();\n\t * this.previous.emit();\n\t * }\n\t */\n\thandlePrevious() {\n\t\tconst from = this.wizardService.currentStepIndex();\n\t\tthis.wizardService.previousStep();\n\t\tif (this.wizardService.currentStepIndex() !== from) {\n\t\t\tthis.previous.emit();\n\t\t}\n\t}\n\n\t/**\n\t * Navigates to next valid step and emits next event\n\t * @emits next\n\t * @example\n\t * // Custom next step handler\n\t * handleNext() {\n\t * if (form.valid) {\n\t * this.wizardService.nextStep();\n\t * this.next.emit();\n\t * }\n\t * }\n\t */\n\thandleNext() {\n\t\t// Only a real move emits: an invalid step stays (a click can reach the host of the disabled button)\n\t\tconst from = this.wizardService.currentStepIndex();\n\t\tthis.wizardService.nextStep();\n\t\tif (this.wizardService.currentStepIndex() !== from) {\n\t\t\tthis.next.emit();\n\t\t}\n\t}\n\n\t/**\n\t * Goes back to a completed step picked in the indicator and emits previous\n\t * @param {number} index - Step to go back to; ignored unless it is before the current step\n\t * @emits previous\n\t * @internal\n\t */\n\thandleStepSelect(index: number) {\n\t\tif (this.loading() || index < 0 || index >= this.wizardService.currentStepIndex()) return;\n\t\tthis.wizardService.gotoStep(index);\n\t\tthis.previous.emit();\n\t}\n\n\t/**\n\t * Completes wizard flow and emits complete event\n\t * @emits complete\n\t * @example\n\t * // Final step handler\n\t * handleComplete() {\n\t * if (allStepsValid) {\n\t * this.complete.emit();\n\t * }\n\t * }\n\t */\n\thandleComplete() {\n\t\tthis.complete.emit();\n\t}\n}\n","@let indicatorVar = resolvedIndicator();\n@let stackedVar = indicatorVar === 'segments';\n\n<div [class]=\"stackedVar ? 'flex flex-col gap-6' : 'flex gap-6'\" [ngClass]=\"{ 'rounded-box bg-base-200 shadow-overlay p-6': card() && stackedVar }\">\n\t<!-- Steps -->\n\t<st-wizard-indicator\n\t\t[class]=\"stackedVar ? 'block w-full' : 'block h-min w-60 shrink-0'\"\n\t\t[ngClass]=\"{ 'rounded-box bg-base-200 shadow-overlay p-4': card() && !stackedVar }\"\n\t\t[indicator]=\"indicatorVar\"\n\t\t[canGoBack]=\"!loading()\"\n\t\t(stepSelect)=\"handleStepSelect($event)\"\n\t></st-wizard-indicator>\n\n\t<div class=\"flex min-w-0 flex-1 flex-col gap-6\" [ngClass]=\"{ 'rounded-box bg-base-200 shadow-overlay p-6': card() && !stackedVar }\">\n\t\t<!-- Content -->\n\t\t<div>\n\t\t\t<ng-content></ng-content>\n\t\t</div>\n\n\t\t<!-- Actions -->\n\t\t@if (this.showControls()) {\n\t\t\t<div class=\"flex flex-wrap items-center gap-3\">\n\t\t\t\t@if (wizardService.isCurrentStepFirst()) {\n\t\t\t\t\t<st-button variant=\"secondary\" [outline]=\"true\" [icon]=\"iconReturn\" (click)=\"handleBack()\">{{\n\t\t\t\t\t\t'sdk.wizard.wizardWrapper.back' | translate\n\t\t\t\t\t}}</st-button>\n\t\t\t\t} @else {\n\t\t\t\t\t<st-button [icon]=\"iconChevronLeft\" variant=\"secondary\" [outline]=\"true\" (click)=\"handlePrevious()\">{{\n\t\t\t\t\t\t'sdk.wizard.wizardWrapper.previous' | translate\n\t\t\t\t\t}}</st-button>\n\t\t\t\t}\n\t\t\t\t@if (wizardService.isCurrentStepLast()) {\n\t\t\t\t\t<st-button\n\t\t\t\t\t\tvariant=\"primary\"\n\t\t\t\t\t\t[ariaDescribedBy]=\"nextDescribedBy()\"\n\t\t\t\t\t\t(click)=\"handleComplete()\"\n\t\t\t\t\t\t[disabled]=\"loading() || !wizardService.areAllStepsValid()\"\n\t\t\t\t\t\t[loader]=\"loading()\"\n\t\t\t\t\t>\n\t\t\t\t\t\t@if (!loading()) {\n\t\t\t\t\t\t\t<st-icon [icon]=\"iconSave\"></st-icon>\n\n\t\t\t\t\t\t\t{{ 'sdk.wizard.wizardWrapper.end' | translate }}\n\t\t\t\t\t\t}\n\t\t\t\t\t</st-button>\n\t\t\t\t} @else {\n\t\t\t\t\t<st-button\n\t\t\t\t\t\tvariant=\"primary\"\n\t\t\t\t\t\t[icon]=\"iconChevronRight\"\n\t\t\t\t\t\ticonPosition=\"right\"\n\t\t\t\t\t\t[ariaDescribedBy]=\"nextDescribedBy()\"\n\t\t\t\t\t\t[disabled]=\"!wizardService.currentStep().isValid\"\n\t\t\t\t\t\t(click)=\"handleNext()\"\n\t\t\t\t\t\t>{{ 'sdk.wizard.wizardWrapper.next' | translate }}</st-button\n\t\t\t\t\t>\n\t\t\t\t}\n\t\t\t</div>\n\t\t} @else {\n\t\t\t<ng-content select=\"st-wizard-actions\"></ng-content>\n\t\t}\n\t</div>\n</div>\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;;;;;;;;;;AAEA;;;;AAIG;AACI,MAAM,kBAAkB,GAAG;AACjC,IAAA,WAAW,EAAE,aAAa;AAC1B,IAAA,OAAO,EAAE,SAAS;AAClB,IAAA,SAAS,EAAE,WAAW;AACtB,IAAA,KAAK,EAAE,OAAO;;AAmCf;;;AAGG;MAIU,aAAa,CAAA;;;AAGR,IAAA,MAAM,GAAG,MAAM,CAAqB,EAAE,CAAC;;AAEvC,IAAA,iBAAiB,GAAG,MAAM,CAAS,CAAC,CAAC;;AAErC,IAAA,cAAc,GAAG,MAAM,CAAS,CAAC,CAAC;;AAElC,IAAA,cAAc,GAAG,MAAM,CAAS,CAAC,CAAC;;AAElC,IAAA,gBAAgB,GAAG,MAAM,CAAU,KAAK,CAAC;;;AAGnD,IAAA,KAAK,GAAG,IAAI,CAAC,MAAM,CAAC,UAAU,EAAE;AAEvC;;;AAGG;AACI,IAAA,gBAAgB,GAAG,IAAI,CAAC,iBAAiB,CAAC,UAAU,EAAE;AAC7D;;;AAGG;AACI,IAAA,WAAW,GAAG,QAAQ,CAAC,MAAM,IAAI,CAAC,KAAK,EAAE,CAAC,IAAI,CAAC,gBAAgB,EAAE,CAAC,CAAC;AAE1E;;;AAGG;IACI,UAAU,GAAG,QAAQ,CAAC,MAAM,IAAI,CAAC,KAAK,EAAE,CAAC,MAAM,CAAC,CAAC,IAAI,KAAK,IAAI,CAAC,OAAO,CAAC,CAAC;AAC/E;;;AAGG;IACI,gBAAgB,GAAG,QAAQ,CAAC,MAAM,IAAI,CAAC,UAAU,EAAE,CAAC,MAAM,KAAK,IAAI,CAAC,KAAK,EAAE,CAAC,MAAM,CAAC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A,IAAA,EAAE,aAAa,kDAAE,aAAa,EAAA,QAAA,EAAA,SAAA,EAAA,MAAA,EAAA,CAAA,OAAA,EAAA,MAAA,EAAA,MAAA,EAAA,WAAA,CAAA,EAAA,CAAA,EAAA,CAAA;;4FAE9E,sBAAsB,EAAA,UAAA,EAAA,CAAA;kBALlC,SAAS;+BACC,WAAW,EAAA,OAAA,EAEZ,CAAC,wBAAwB,EAAE,eAAe,EAAE,OAAO,EAAE,aAAa,EAAE,aAAa,CAAC,EAAA,QAAA,EAAA,w5EAAA,EAAA;;;AElD5F;;AAEG;;;;"}
@@ -32,7 +32,10 @@ const textPresets = cva([], {
32
32
  },
33
33
  color: {
34
34
  base: 'text-base-content',
35
- 'base-placeholder': 'text-neutral',
35
+ 'base-secondary': 'text-base-content-secondary',
36
+ 'base-muted': 'text-base-content-muted',
37
+ /** @deprecated use `base-muted`; removed in the next major. */
38
+ 'base-placeholder': 'text-base-content-muted',
36
39
  primary: 'text-primary',
37
40
  secondary: 'text-secondary',
38
41
  accent: 'text-accent',
@@ -1 +1 @@
1
- {"version":3,"file":"sixbell-telco-sdk-directives-text.mjs","sources":["../../../projects/sdk/directives/text/src/text.directive.ts","../../../projects/sdk/directives/text/sixbell-telco-sdk-directives-text.ts"],"sourcesContent":["import { computed, Directive, ElementRef, inject, input } from '@angular/core';\nimport { cn } from '@sixbell-telco/sdk/utils/cn';\nimport { cva } from 'class-variance-authority';\n\n/**\n * @internal\n * CSS class generator for text presets using Major Second scale (1.125 ratio, 14px base).\n * Each preset bundles font-size, line-height, letter-spacing, font-family, and a default font-weight.\n */\nconst textPresets = cva([], {\n\tvariants: {\n\t\tpreset: {\n\t\t\t'1': ['text-[28.38px]', 'text-balance', 'font-heading', 'leading-tight', 'tracking-wide', 'font-bold'],\n\t\t\t'2': ['text-[25.23px]', 'text-balance', 'font-heading', 'leading-tight', 'tracking-wide', 'font-bold'],\n\t\t\t'3': ['text-[22.43px]', 'text-balance', 'font-heading', 'leading-tight', 'tracking-wide', 'font-semibold'],\n\t\t\t'4': ['text-[19.93px]', 'text-balance', 'font-heading', 'leading-snug', 'tracking-normal', 'font-semibold'],\n\t\t\t'5': ['text-[17.72px]', 'text-balance', 'font-heading', 'leading-snug', 'tracking-normal', 'font-medium'],\n\t\t\t'6': ['text-[15.75px]', 'text-pretty', 'font-body', 'leading-normal', 'tracking-normal', 'font-medium'],\n\t\t\t'7': ['text-[14px]', 'text-pretty', 'font-body', 'leading-normal', 'tracking-tight', 'font-normal'],\n\t\t\t'8': ['text-[12.44px]', 'text-pretty', 'font-body', 'leading-normal', 'tracking-tight', 'font-normal'],\n\t\t\t'9': ['text-[11.06px]', 'text-pretty', 'font-body', 'leading-normal', 'tracking-tight', 'font-normal'],\n\t\t\t'10': ['text-[9.83px]', 'text-pretty', 'font-body', 'leading-normal', 'tracking-normal', 'font-normal'],\n\t\t},\n\t\tweight: {\n\t\t\tbold: 'font-bold',\n\t\t\tsemibold: 'font-semibold',\n\t\t\tmedium: 'font-medium',\n\t\t\tnormal: 'font-normal',\n\t\t\tlight: 'font-light',\n\t\t\tinherit: 'font-inherit',\n\t\t},\n\t\tcolor: {\n\t\t\tbase: 'text-base-content',\n\t\t\t'base-placeholder': 'text-neutral',\n\t\t\tprimary: 'text-primary',\n\t\t\tsecondary: 'text-secondary',\n\t\t\taccent: 'text-accent',\n\t\t\tinherit: 'text-inherit',\n\t\t},\n\t\toverflow: {\n\t\t\tclip: 'text-clip',\n\t\t\tellipsis: 'text-ellipsis',\n\t\t\ttruncate: ['truncate', 'text-nowrap'],\n\t\t},\n\t\tlineClamp: {\n\t\t\t'1': 'line-clamp-1',\n\t\t\t'2': 'line-clamp-2',\n\t\t\t'3': 'line-clamp-3',\n\t\t\t'4': 'line-clamp-4',\n\t\t\t'5': 'line-clamp-5',\n\t\t\t'6': 'line-clamp-6',\n\t\t\tnone: 'line-clamp-none',\n\t\t},\n\t},\n\tcompoundVariants: [],\n\tdefaultVariants: {\n\t\tpreset: '7',\n\t\tcolor: 'inherit',\n\t\toverflow: 'clip',\n\t\tlineClamp: undefined,\n\t\tweight: 'normal',\n\t},\n});\n\n/** Numbered text preset (1 = largest, 10 = smallest) */\nexport type TextPreset = '1' | '2' | '3' | '4' | '5' | '6' | '7' | '8' | '9' | '10' | null | undefined;\n\n/** Font weight options for text */\nexport type TextWeight = 'bold' | 'semibold' | 'medium' | 'normal' | 'light' | 'inherit' | null | undefined;\n\n/** Text color variants */\nexport type TextColor = 'base' | 'base-placeholder' | 'primary' | 'secondary' | 'accent' | 'inherit' | null | undefined;\n\n/** Text overflow handling methods */\nexport type TextOverflow = 'clip' | 'ellipsis' | 'truncate' | null | undefined;\n\n/** Line clamp options (number of visible lines) */\nexport type TextLineClamp = '1' | '2' | '3' | '4' | '5' | '6' | 'none' | null | undefined;\n\n/** Configuration object for text styles */\nexport type TextProps = {\n\tpreset?: TextPreset;\n\tweight?: TextWeight;\n\tcolor?: TextColor;\n\toverflow?: TextOverflow;\n\tlineClamp?: TextLineClamp;\n};\n\n/**\n * A directive for applying consistent, preset-based typography styles using Tailwind CSS.\n *\n * Uses a numbered preset system (1-10) based on a Major Second scale (1.125 ratio, 14px base).\n * Each preset bundles sensible defaults for font-size, line-height, letter-spacing, and font-weight.\n * Weight, color, and overflow can be overridden independently.\n *\n * External Tailwind classes on the host element are automatically merged via `cn()`,\n * so they override conflicting directive defaults (e.g., `class=\"text-error\"` overrides the\n * default `text-base-content` color).\n *\n * @example\n * ```html\n * <!-- Basic: preset for styling, HTML tag for semantics -->\n * <h2 stText=\"3\">Section Title</h2>\n *\n * <!-- External class overrides directive default color -->\n * <h1 stText=\"1\" class=\"mb-4 text-primary\">Hero Title</h1>\n *\n * <!-- Explicit directive color -->\n * <p stText=\"7\" stTextWeight=\"bold\" stTextColor=\"primary\">Body text</p>\n *\n * <!-- Small label -->\n * <span stText=\"9\" class=\"uppercase tracking-wider\">Label</span>\n * ```\n *\n * @publicApi\n */\n@Directive({\n\tselector: '[stText]',\n\tstandalone: true,\n\thost: {\n\t\t'[class]': 'computedClasses()',\n\t},\n})\nexport class TextDirective {\n\t/**\n\t * Text preset (1 = largest, 10 = smallest).\n\t * Each preset bundles defaults for font-size, line-height, letter-spacing, and font-weight.\n\t * @defaultValue '7' (14px body text)\n\t */\n\tstText = input<TextPreset>('7');\n\n\t/**\n\t * Override the preset default font weight.\n\t * @defaultValue 'normal' (preset default weight)\n\t */\n\tstTextWeight = input<TextWeight>('normal');\n\n\t/**\n\t * Text color variant.\n\t * @defaultValue 'inherit' (text-inherit)\n\t */\n\tstTextColor = input<TextColor>('inherit');\n\n\t/**\n\t * Text overflow handling.\n\t * @defaultValue 'clip'\n\t */\n\tstTextOverflow = input<TextOverflow>('clip');\n\n\t/**\n\t * Line clamp — limits visible text to a given number of lines.\n\t * When not set, no line-clamp class is applied.\n\t */\n\tstTextLineClamp = input<TextLineClamp>(undefined);\n\n\t/**\n\t * Extra CSS classes merged after directive classes via `cn()`.\n\t * Useful for programmatic overrides (e.g., forwarded from a wrapper component).\n\t * Conflicting utilities in `stTextClass` win over directive defaults.\n\t */\n\tstTextClass = input<string>('');\n\n\t/** @internal Static classes captured from the host element before the first render. */\n\tprivate readonly hostStaticClasses = inject(ElementRef).nativeElement.getAttribute('class') ?? '';\n\n\t/** @internal Computed CSS class string merged via host binding */\n\tprotected computedClasses = computed(() => {\n\t\tconst weight = this.stTextWeight();\n\t\tconst color = this.stTextColor();\n\t\tconst lineClamp = this.stTextLineClamp();\n\t\treturn cn(\n\t\t\ttextPresets({\n\t\t\t\tpreset: this.stText(),\n\t\t\t\t...(weight ? { weight } : {}),\n\t\t\t\t...(color ? { color } : {}),\n\t\t\t\t...(lineClamp ? { lineClamp } : {}),\n\t\t\t\toverflow: this.stTextOverflow(),\n\t\t\t}),\n\t\t\tthis.stTextClass(),\n\t\t\tthis.hostStaticClasses,\n\t\t);\n\t});\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;;;;AAIA;;;;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s","sources":["../../../projects/sdk/directives/text/src/text.directive.ts","../../../projects/sdk/directives/text/sixbell-telco-sdk-directives-text.ts"],"sourcesContent":["import { computed, Directive, ElementRef, inject, input } from '@angular/core';\nimport { cn } from '@sixbell-telco/sdk/utils/cn';\nimport { cva } from 'class-variance-authority';\n\n/**\n * @internal\n * CSS class generator for text presets using Major Second scale (1.125 ratio, 14px base).\n * Each preset bundles font-size, line-height, letter-spacing, font-family, and a default font-weight.\n */\nconst textPresets = cva([], {\n\tvariants: {\n\t\tpreset: {\n\t\t\t'1': ['text-[28.38px]', 'text-balance', 'font-heading', 'leading-tight', 'tracking-wide', 'font-bold'],\n\t\t\t'2': ['text-[25.23px]', 'text-balance', 'font-heading', 'leading-tight', 'tracking-wide', 'font-bold'],\n\t\t\t'3': ['text-[22.43px]', 'text-balance', 'font-heading', 'leading-tight', 'tracking-wide', 'font-semibold'],\n\t\t\t'4': ['text-[19.93px]', 'text-balance', 'font-heading', 'leading-snug', 'tracking-normal', 'font-semibold'],\n\t\t\t'5': ['text-[17.72px]', 'text-balance', 'font-heading', 'leading-snug', 'tracking-normal', 'font-medium'],\n\t\t\t'6': ['text-[15.75px]', 'text-pretty', 'font-body', 'leading-normal', 'tracking-normal', 'font-medium'],\n\t\t\t'7': ['text-[14px]', 'text-pretty', 'font-body', 'leading-normal', 'tracking-tight', 'font-normal'],\n\t\t\t'8': ['text-[12.44px]', 'text-pretty', 'font-body', 'leading-normal', 'tracking-tight', 'font-normal'],\n\t\t\t'9': ['text-[11.06px]', 'text-pretty', 'font-body', 'leading-normal', 'tracking-tight', 'font-normal'],\n\t\t\t'10': ['text-[9.83px]', 'text-pretty', 'font-body', 'leading-normal', 'tracking-normal', 'font-normal'],\n\t\t},\n\t\tweight: {\n\t\t\tbold: 'font-bold',\n\t\t\tsemibold: 'font-semibold',\n\t\t\tmedium: 'font-medium',\n\t\t\tnormal: 'font-normal',\n\t\t\tlight: 'font-light',\n\t\t\tinherit: 'font-inherit',\n\t\t},\n\t\tcolor: {\n\t\t\tbase: 'text-base-content',\n\t\t\t'base-secondary': 'text-base-content-secondary',\n\t\t\t'base-muted': 'text-base-content-muted',\n\t\t\t/** @deprecated use `base-muted`; removed in the next major. */\n\t\t\t'base-placeholder': 'text-base-content-muted',\n\t\t\tprimary: 'text-primary',\n\t\t\tsecondary: 'text-secondary',\n\t\t\taccent: 'text-accent',\n\t\t\tinherit: 'text-inherit',\n\t\t},\n\t\toverflow: {\n\t\t\tclip: 'text-clip',\n\t\t\tellipsis: 'text-ellipsis',\n\t\t\ttruncate: ['truncate', 'text-nowrap'],\n\t\t},\n\t\tlineClamp: {\n\t\t\t'1': 'line-clamp-1',\n\t\t\t'2': 'line-clamp-2',\n\t\t\t'3': 'line-clamp-3',\n\t\t\t'4': 'line-clamp-4',\n\t\t\t'5': 'line-clamp-5',\n\t\t\t'6': 'line-clamp-6',\n\t\t\tnone: 'line-clamp-none',\n\t\t},\n\t},\n\tcompoundVariants: [],\n\tdefaultVariants: {\n\t\tpreset: '7',\n\t\tcolor: 'inherit',\n\t\toverflow: 'clip',\n\t\tlineClamp: undefined,\n\t\tweight: 'normal',\n\t},\n});\n\n/** Numbered text preset (1 = largest, 10 = smallest) */\nexport type TextPreset = '1' | '2' | '3' | '4' | '5' | '6' | '7' | '8' | '9' | '10' | null | undefined;\n\n/** Font weight options for text */\nexport type TextWeight = 'bold' | 'semibold' | 'medium' | 'normal' | 'light' | 'inherit' | null | undefined;\n\n/**\n * Text color variants. The content scale is `base` > `base-secondary` > `base-muted` (theme tokens `base-content`,\n * `base-content-secondary`, `base-content-muted`); `base-placeholder` is a deprecated alias of `base-muted`.\n * `primary`, `secondary` and `accent` are the brand colours.\n */\nexport type TextColor =\n\t'base' | 'base-secondary' | 'base-muted' | 'base-placeholder' | 'primary' | 'secondary' | 'accent' | 'inherit' | null | undefined;\n\n/** Text overflow handling methods */\nexport type TextOverflow = 'clip' | 'ellipsis' | 'truncate' | null | undefined;\n\n/** Line clamp options (number of visible lines) */\nexport type TextLineClamp = '1' | '2' | '3' | '4' | '5' | '6' | 'none' | null | undefined;\n\n/** Configuration object for text styles */\nexport type TextProps = {\n\tpreset?: TextPreset;\n\tweight?: TextWeight;\n\tcolor?: TextColor;\n\toverflow?: TextOverflow;\n\tlineClamp?: TextLineClamp;\n};\n\n/**\n * A directive for applying consistent, preset-based typography styles using Tailwind CSS.\n *\n * Uses a numbered preset system (1-10) based on a Major Second scale (1.125 ratio, 14px base).\n * Each preset bundles sensible defaults for font-size, line-height, letter-spacing, and font-weight.\n * Weight, color, and overflow can be overridden independently.\n *\n * External Tailwind classes on the host element are automatically merged via `cn()`,\n * so they override conflicting directive defaults (e.g., `class=\"text-error\"` overrides the\n * default `text-base-content` color).\n *\n * @example\n * ```html\n * <!-- Basic: preset for styling, HTML tag for semantics -->\n * <h2 stText=\"3\">Section Title</h2>\n *\n * <!-- External class overrides directive default color -->\n * <h1 stText=\"1\" class=\"mb-4 text-primary\">Hero Title</h1>\n *\n * <!-- Explicit directive color -->\n * <p stText=\"7\" stTextWeight=\"bold\" stTextColor=\"primary\">Body text</p>\n *\n * <!-- Small label -->\n * <span stText=\"9\" class=\"uppercase tracking-wider\">Label</span>\n * ```\n *\n * @publicApi\n */\n@Directive({\n\tselector: '[stText]',\n\tstandalone: true,\n\thost: {\n\t\t'[class]': 'computedClasses()',\n\t},\n})\nexport class TextDirective {\n\t/**\n\t * Text preset (1 = largest, 10 = smallest).\n\t * Each preset bundles defaults for font-size, line-height, letter-spacing, and font-weight.\n\t * @defaultValue '7' (14px body text)\n\t */\n\tstText = input<TextPreset>('7');\n\n\t/**\n\t * Override the preset default font weight.\n\t * @defaultValue 'normal' (preset default weight)\n\t */\n\tstTextWeight = input<TextWeight>('normal');\n\n\t/**\n\t * Text color variant.\n\t * @defaultValue 'inherit' (text-inherit)\n\t */\n\tstTextColor = input<TextColor>('inherit');\n\n\t/**\n\t * Text overflow handling.\n\t * @defaultValue 'clip'\n\t */\n\tstTextOverflow = input<TextOverflow>('clip');\n\n\t/**\n\t * Line clamp — limits visible text to a given number of lines.\n\t * When not set, no line-clamp class is applied.\n\t */\n\tstTextLineClamp = input<TextLineClamp>(undefined);\n\n\t/**\n\t * Extra CSS classes merged after directive classes via `cn()`.\n\t * Useful for programmatic overrides (e.g., forwarded from a wrapper component).\n\t * Conflicting utilities in `stTextClass` win over directive defaults.\n\t */\n\tstTextClass = input<string>('');\n\n\t/** @internal Static classes captured from the host element before the first render. */\n\tprivate readonly hostStaticClasses = inject(ElementRef).nativeElement.getAttribute('class') ?? '';\n\n\t/** @internal Computed CSS class string merged via host binding */\n\tprotected computedClasses = computed(() => {\n\t\tconst weight = this.stTextWeight();\n\t\tconst color = this.stTextColor();\n\t\tconst lineClamp = this.stTextLineClamp();\n\t\treturn cn(\n\t\t\ttextPresets({\n\t\t\t\tpreset: this.stText(),\n\t\t\t\t...(weight ? { weight } : {}),\n\t\t\t\t...(color ? { color } : {}),\n\t\t\t\t...(lineClamp ? { lineClamp } : {}),\n\t\t\t\toverflow: this.stTextOverflow(),\n\t\t\t}),\n\t\t\tthis.stTextClass(),\n\t\t\tthis.hostStaticClasses,\n\t\t);\n\t});\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;;;;AAIA;;;;AAIG;AACH,MAAM,WAAW,GAAG,GAAG,CAAC,EAAE,EAAE;AAC3B,IAAA,QAAQ,EAAE;AACT,QAAA,MAAM,EAAE;AACP,YAAA,GAAG,EAAE,CAAC,gBAAgB,EAAE,cAAc,EAAE,cAAc,EAAE,eAAe,EAAE,eAAe,EAAE,WAAW,CAAC;AACtG,YAAA,GAAG,EAAE,CAAC,gBAAgB,EAAE,cAAc,EAAE,cAAc,EAAE,eAAe,EAAE,eAAe,EAAE,WAAW,CAAC;AACtG,YAAA,GAAG,EAAE,CAAC,gBAAgB,EAAE,cAAc,EAAE,cAAc,EAAE,eAAe,EAAE,eAAe,EAAE,eAAe,CAAC;AAC1G,YAAA,GAAG,E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AAA,IAAA,EAAA,EAAA,cAAA,EAAA,EAAA,iBAAA,EAAA,gBAAA,EAAA,UAAA,EAAA,gBAAA,EAAA,QAAA,EAAA,IAAA,EAAA,UAAA,EAAA,KAAA,EAAA,iBAAA,EAAA,IAAA,EAAA,EAAA,eAAA,EAAA,EAAA,iBAAA,EAAA,iBAAA,EAAA,UAAA,EAAA,iBAAA,EAAA,QAAA,EAAA,IAAA,EAAA,UAAA,EAAA,KAAA,EAAA,iBAAA,EAAA,IAAA,EAAA,EAAA,WAAA,EAAA,EAAA,iBAAA,EAAA,aAAA,EAAA,UAAA,EAAA,aAAA,EAAA,QAAA,EAAA,IAAA,EAAA,UAAA,EAAA,KAAA,EAAA,iBAAA,EAAA,IAAA,EAAA,EAAA,EAAA,IAAA,EAAA,EAAA,UAAA,EAAA,EAAA,OAAA,EAAA,mBAAA,EAAA,EAAA,EAAA,QAAA,EAAA,EAAA,EAAA,CAAA;;4FAAb,aAAa,EAAA,UAAA,EAAA,CAAA;kBAPzB,SAAS;AAAC,YAAA,IAAA,EAAA,CAAA;AACV,oBAAA,QAAQ,EAAE,UAAU;AACpB,oBAAA,UAAU,EAAE,IAAI;AAChB,oBAAA,IAAI,EAAE;AACL,wBAAA,SAAS,EAAE,mBAAmB;AAC9B,qBAAA;AACD,iBAAA;;;AClID;;AAEG;;;;"}
@@ -12,7 +12,7 @@ import { ThemeDomService } from '@sixbell-telco/sdk/utils/theme';
12
12
  class TruncatePopoverComponent {
13
13
  text = input('');
14
14
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.25", ngImport: i0, type: TruncatePopoverComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
15
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "19.2.25", type: TruncatePopoverComponent, isStandalone: true, selector: "st-truncate-popover", inputs: { text: { classPropertyName: "text", publicName: "text", isSignal: true, isRequired: false, transformFunction: null } }, host: { attributes: { "aria-hidden": "true", "data-st-truncate-popover": "" }, classAttribute: "font-body bg-base-300 text-base-content border-base-content/10 rounded-box block max-h-72 max-w-[min(28rem,calc(100vw-1rem))] overflow-y-auto overscroll-contain border px-3 py-2 text-sm leading-normal wrap-break-word shadow-sm motion-safe:animate-fade-in motion-safe:animate-duration-150" }, ngImport: i0, template: '{{ text() }}', isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush });
15
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "19.2.25", type: TruncatePopoverComponent, isStandalone: true, selector: "st-truncate-popover", inputs: { text: { classPropertyName: "text", publicName: "text", isSignal: true, isRequired: false, transformFunction: null } }, host: { attributes: { "aria-hidden": "true", "data-st-truncate-popover": "" }, classAttribute: "font-body bg-base-300 text-base-content border-base-content/10 rounded-box block max-h-72 max-w-[min(28rem,calc(100vw-1rem))] overflow-y-auto overscroll-contain border px-3 py-2 text-sm leading-normal wrap-break-word shadow-overlay motion-safe:animate-fade-in motion-safe:animate-duration-150" }, ngImport: i0, template: '{{ text() }}', isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush });
16
16
  }
17
17
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.25", ngImport: i0, type: TruncatePopoverComponent, decorators: [{
18
18
  type: Component,
@@ -23,7 +23,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.25", ngImpo
23
23
  host: {
24
24
  'aria-hidden': 'true',
25
25
  'data-st-truncate-popover': '',
26
- class: 'font-body bg-base-300 text-base-content border-base-content/10 rounded-box block max-h-72 max-w-[min(28rem,calc(100vw-1rem))] overflow-y-auto overscroll-contain border px-3 py-2 text-sm leading-normal wrap-break-word shadow-sm motion-safe:animate-fade-in motion-safe:animate-duration-150',
26
+ class: 'font-body bg-base-300 text-base-content border-base-content/10 rounded-box block max-h-72 max-w-[min(28rem,calc(100vw-1rem))] overflow-y-auto overscroll-contain border px-3 py-2 text-sm leading-normal wrap-break-word shadow-overlay motion-safe:animate-fade-in motion-safe:animate-duration-150',
27
27
  },
28
28
  template: '{{ text() }}',
29
29
  }]
@@ -1 +1 @@
1
- {"version":3,"file":"sixbell-telco-sdk-directives-truncate.mjs","sources":["../../../projects/sdk/directives/truncate/src/truncate-popover.component.ts","../../../projects/sdk/directives/truncate/src/truncate.directive.ts","../../../projects/sdk/directives/truncate/sixbell-telco-sdk-directives-truncate.ts"],"sourcesContent":["import { ChangeDetectionStrategy, Component, input } from '@angular/core';\n\n/**\n * @internal\n * Visual-only surface that shows the full text of a truncated `stTruncate` host.\n * The host keeps the full text in the accessibility tree, so this copy is hidden from assistive technology.\n */\n@Component({\n\tselector: 'st-truncate-popover',\n\tstandalone: true,\n\tchangeDetection: ChangeDetectionStrategy.OnPush,\n\thost: {\n\t\t'aria-hidden': 'true',\n\t\t'data-st-truncate-popover': '',\n\t\tclass:\n\t\t\t'font-body bg-base-300 text-base-content border-base-content/10 rounded-box block max-h-72 max-w-[min(28rem,calc(100vw-1rem))] overflow-y-auto overscroll-contain border px-3 py-2 text-sm leading-normal wrap-break-word shadow-sm motion-safe:animate-fade-in motion-safe:animate-duration-150',\n\t},\n\ttemplate: '{{ text() }}',\n})\nexport class TruncatePopoverComponent {\n\treadonly text = input('');\n}\n","import { ConnectedPosition, Overlay, OverlayRef } from '@angular/cdk/overlay';\nimport { ComponentPortal } from '@angular/cdk/portal';\nimport {\n\tafterNextRender,\n\tbooleanAttribute,\n\tComponentRef,\n\tcomputed,\n\tDestroyRef,\n\tDirective,\n\teffect,\n\tElementRef,\n\tinject,\n\tinput,\n\tnumberAttribute,\n\tRenderer2,\n\tRendererStyleFlags2,\n\tsignal,\n} from '@angular/core';\nimport { ThemeDomService } from '@sixbell-telco/sdk/utils/theme';\nimport { TruncatePopoverComponent } from './truncate-popover.component';\n\nconst focusableSelector = 'a[href], area[href], button, input, select, textarea, summary, [contenteditable=\"true\"], [tabindex]';\n/**\n * Ancestors that make a focusable descendant a nested interactive control (axe `nested-interactive`):\n * native controls, positive or zero tabindex, and the roles whose children are presentational.\n * `tabindex=\"-1\"` containers (dialog containers, skip-link targets) are not interactive.\n */\nconst interactiveAncestorSelector = [\n\t'button',\n\t'a[href]',\n\t'area[href]',\n\t'input',\n\t'select',\n\t'textarea',\n\t'summary',\n\t'[contenteditable=\"true\"]',\n\t'[tabindex]:not([tabindex^=\"-\"])',\n\t...['button', 'checkbox', 'radio', 'switch', 'tab', 'option', 'menuitem', 'menuitemcheckbox', 'menuitemradio', 'slider', 'link'].map(\n\t\t(role) => `[role=\"${role}\"]`,\n\t),\n].join(', ');\n\nconst popoverPositions: ConnectedPosition[] = [\n\t{ originX: 'start', originY: 'bottom', overlayX: 'start', overlayY: 'top', offsetY: 4 },\n\t{ originX: 'start', originY: 'top', overlayX: 'start', overlayY: 'bottom', offsetY: -4 },\n\t{ originX: 'end', originY: 'bottom', overlayX: 'end', overlayY: 'top', offsetY: 4 },\n\t{ originX: 'end', originY: 'top', overlayX: 'end', overlayY: 'bottom', offsetY: -4 },\n];\n\nconst normalizeText = (value: string | null | undefined): string => (value ?? '').replace(/\\s+/g, ' ').trim();\n\n/**\n * Truncates overflowing text with an ellipsis and reveals the full text in a popover,\n * only while the text is actually cut off.\n *\n * @remarks\n * - Single line by default; `stTruncateLines` > 1 clamps to that many lines.\n * - Overflow is measured on the host itself, re-checked on resize, text changes and web-font load.\n * Measuring only runs in the browser, so it is SSR-safe.\n * - The popover opens on hover (after `stTruncateOpenDelay`), on keyboard focus and on touch tap.\n * It is hoverable, stays open while hovered or focused, and closes on Escape, blur or pointer leave\n * (WCAG 1.4.13 Content on Hover or Focus).\n * - The host keeps its full text in the accessibility tree (CSS truncation hides nothing from screen\n * readers), so the popover is `aria-hidden` and nothing is announced twice.\n * - A truncated, non-focusable host becomes a tab stop (`tabindex=\"0\"`) so keyboard users can reveal the\n * hidden text (WCAG 2.1.1). Text that fits is never made focusable, nor is text inside an interactive\n * ancestor (no nested tab stops); `stTruncateFocusable=\"false\"` opts out, for example in dense tables.\n * - The host needs a constrained width: give a flex or grid child `min-w-0`.\n *\n * @example\n * ```html\n * <p stTruncate>{{ product.description }}</p>\n * <h1 stText=\"3\" stTruncate>{{ title }}</h1>\n * <td><span stTruncate [stTruncateLines]=\"2\">{{ row.notes }}</span></td>\n * ```\n *\n * @publicApi\n */\n@Directive({\n\tselector: '[stTruncate]',\n\tstandalone: true,\n\texportAs: 'stTruncate',\n\thost: {\n\t\t'[attr.data-truncated]': 'truncated() ? \"\" : null',\n\t\t'(mouseenter)': 'onPointerEnter()',\n\t\t'(mouseleave)': 'onPointerLeave()',\n\t\t'(focus)': 'onFocus()',\n\t\t'(blur)': 'onBlur()',\n\t\t'(pointerdown)': 'onPointerDown($event)',\n\t},\n})\nexport class TruncateDirective {\n\t/**\n\t * Number of visible lines before the text is cut off.\n\t * @defaultValue 1\n\t */\n\treadonly stTruncateLines = input(1, { transform: numberAttribute });\n\n\t/**\n\t * Hover delay in milliseconds before the popover opens. Focus and touch open it immediately.\n\t * @defaultValue 200\n\t */\n\treadonly stTruncateOpenDelay = input(200, { transform: numberAttribute });\n\n\t/**\n\t * Delay in milliseconds before the popover closes after the pointer leaves, so the pointer can move onto it.\n\t * @defaultValue 120\n\t */\n\treadonly stTruncateCloseDelay = input(120, { transform: numberAttribute });\n\n\t/**\n\t * Whether a truncated, non-focusable host becomes a tab stop so keyboard users can reveal the full text.\n\t * Set it to `false` in dense tables where the row or another control already exposes the text.\n\t * The host never becomes a tab stop inside an interactive ancestor (button, link, form control, `tabindex` ≥ 0, or a role such as checkbox or tab).\n\t * @defaultValue true\n\t */\n\treadonly stTruncateFocusable = input(true, { transform: booleanAttribute });\n\n\tprivate readonly truncatedState = signal(false);\n\tprivate readonly openState = signal(false);\n\n\t/** Whether the text currently overflows its box. */\n\treadonly truncated = this.truncatedState.asReadonly();\n\n\t/** Whether the full-text popover is open. */\n\treadonly isOpen = this.openState.asReadonly();\n\n\tprivate readonly lines = computed(() => {\n\t\tconst lines = Math.floor(this.stTruncateLines());\n\t\treturn Number.isFinite(lines) && lines > 1 ? lines : 1;\n\t});\n\n\tprivate readonly host = inject<ElementRef<HTMLElement>>(ElementRef).nativeElement;\n\tprivate readonly renderer = inject(Renderer2);\n\tprivate readonly overlay = inject(Overlay);\n\tprivate readonly themeDom = inject(ThemeDomService);\n\tprivate readonly destroyRef = inject(DestroyRef);\n\n\tprivate readonly nativelyFocusable = this.host.matches(focusableSelector);\n\tprivate overlayRef: OverlayRef | null = null;\n\tprivate popoverRef: ComponentRef<TruncatePopoverComponent> | null = null;\n\tprivate openTimer: ReturnType<typeof setTimeout> | null = null;\n\tprivate closeTimer: ReturnType<typeof setTimeout> | null = null;\n\tprivate pointerOverHost = false;\n\tprivate pointerOverPopover = false;\n\tprivate focused = false;\n\tprivate destroyed = false;\n\tprivate rendered = false;\n\tprivate inlineHost = false;\n\n\tconstructor() {\n\t\teffect(() => this.applyTruncationStyles(this.lines()));\n\n\t\teffect(() => {\n\t\t\tconst truncated = this.truncated();\n\t\t\tif (!this.nativelyFocusable) {\n\t\t\t\tif (truncated && this.stTruncateFocusable() && !this.hasInteractiveAncestor()) this.renderer.setAttribute(this.host, 'tabindex', '0');\n\t\t\t\telse this.renderer.removeAttribute(this.host, 'tabindex');\n\t\t\t}\n\t\t\tif (!truncated) this.close();\n\t\t});\n\n\t\tafterNextRender(() => {\n\t\t\tthis.rendered = true;\n\t\t\tif (getComputedStyle(this.host).display === 'inline') {\n\t\t\t\tthis.inlineHost = true;\n\t\t\t\tthis.applyTruncationStyles(this.lines());\n\t\t\t}\n\t\t\tthis.observe();\n\t\t\tthis.measure();\n\t\t});\n\n\t\tthis.destroyRef.onDestroy(() => {\n\t\t\tthis.destroyed = true;\n\t\t\tthis.clearTimers();\n\t\t\tthis.overlayRef?.dispose();\n\t\t\tthis.overlayRef = null;\n\t\t\tthis.popoverRef = null;\n\t\t});\n\t}\n\n\t/** Re-measures the host. Call it after a layout change the directive cannot observe. */\n\tmeasure(): void {\n\t\tif (this.destroyed || !this.rendered) return;\n\t\tconst overflow = this.lines() === 1 ? this.host.scrollWidth - this.host.clientWidth : this.host.scrollHeight - this.host.clientHeight;\n\t\tthis.truncatedState.set(overflow > 1);\n\t\tthis.popoverRef?.setInput('text', this.fullText());\n\t}\n\n\t/** Opens the popover now, if the text is truncated. */\n\topen(): void {\n\t\tthis.clearTimers();\n\t\tif (!this.truncated() || this.openState()) return;\n\t\tconst overlayRef = this.overlayRef ?? this.createOverlay();\n\t\tconst popoverRef = overlayRef.attach(new ComponentPortal(TruncatePopoverComponent));\n\t\tpopoverRef.setInput('text', this.fullText());\n\t\tconst popover = popoverRef.location.nativeElement as HTMLElement;\n\t\tthis.themeDom.inheritTheme(this.host, popover);\n\t\tpopover.addEventListener('mouseenter', () => {\n\t\t\tthis.pointerOverPopover = true;\n\t\t\tthis.clearTimers();\n\t\t});\n\t\tpopover.addEventListener('mouseleave', () => {\n\t\t\tthis.pointerOverPopover = false;\n\t\t\tthis.scheduleClose();\n\t\t});\n\t\tthis.popoverRef = popoverRef;\n\t\tthis.openState.set(true);\n\t\toverlayRef.updatePosition();\n\t}\n\n\t/** Closes the popover now. */\n\tclose(): void {\n\t\tthis.clearTimers();\n\t\tthis.pointerOverPopover = false;\n\t\tif (!this.openState()) return;\n\t\tthis.overlayRef?.detach();\n\t\tthis.popoverRef = null;\n\t\tthis.openState.set(false);\n\t}\n\n\tprotected onPointerEnter(): void {\n\t\tthis.pointerOverHost = true;\n\t\tif (this.openState()) {\n\t\t\tthis.clearTimers();\n\t\t\treturn;\n\t\t}\n\t\tif (!this.truncated()) return;\n\t\tthis.clearTimers();\n\t\tthis.openTimer = setTimeout(() => this.open(), Math.max(0, this.stTruncateOpenDelay()));\n\t}\n\n\tprotected onPointerLeave(): void {\n\t\tthis.pointerOverHost = false;\n\t\tif (this.openTimer) {\n\t\t\tclearTimeout(this.openTimer);\n\t\t\tthis.openTimer = null;\n\t\t}\n\t\tthis.scheduleClose();\n\t}\n\n\tprotected onFocus(): void {\n\t\tthis.focused = true;\n\t\tthis.open();\n\t}\n\n\tprotected onBlur(): void {\n\t\tthis.focused = false;\n\t\tif (!this.pointerOverHost && !this.pointerOverPopover) this.close();\n\t}\n\n\tprotected onPointerDown(event: PointerEvent): void {\n\t\tif (event.pointerType === 'touch') this.open();\n\t}\n\n\tprivate scheduleClose(): void {\n\t\tif (!this.openState() || this.focused) return;\n\t\tif (this.closeTimer) clearTimeout(this.closeTimer);\n\t\tthis.closeTimer = setTimeout(\n\t\t\t() => {\n\t\t\t\tthis.closeTimer = null;\n\t\t\t\tif (!this.pointerOverHost && !this.pointerOverPopover && !this.focused) this.close();\n\t\t\t},\n\t\t\tMath.max(0, this.stTruncateCloseDelay()),\n\t\t);\n\t}\n\n\tprivate createOverlay(): OverlayRef {\n\t\tconst overlayRef = this.overlay.create({\n\t\t\tpositionStrategy: this.overlay.position().flexibleConnectedTo(this.host).withPositions(popoverPositions).withPush(true).withViewportMargin(8),\n\t\t\tscrollStrategy: this.overlay.scrollStrategies.reposition(),\n\t\t});\n\t\toverlayRef.keydownEvents().subscribe((event) => {\n\t\t\tif (event.key === 'Escape') {\n\t\t\t\tevent.preventDefault();\n\t\t\t\tthis.close();\n\t\t\t}\n\t\t});\n\t\toverlayRef.outsidePointerEvents().subscribe((event) => {\n\t\t\tif (!(event.target instanceof Node) || !this.host.contains(event.target)) this.close();\n\t\t});\n\t\tthis.overlayRef = overlayRef;\n\t\treturn overlayRef;\n\t}\n\n\tprivate observe(): void {\n\t\tif (typeof ResizeObserver !== 'undefined') {\n\t\t\tconst resizeObserver = new ResizeObserver(() => this.measure());\n\t\t\tresizeObserver.observe(this.host);\n\t\t\tthis.destroyRef.onDestroy(() => resizeObserver.disconnect());\n\t\t}\n\t\tif (typeof MutationObserver !== 'undefined') {\n\t\t\tconst mutationObserver = new MutationObserver(() => this.measure());\n\t\t\tmutationObserver.observe(this.host, { characterData: true, childList: true, subtree: true });\n\t\t\tthis.destroyRef.onDestroy(() => mutationObserver.disconnect());\n\t\t}\n\t\tconst fonts = (this.host.ownerDocument as Document & { fonts?: FontFaceSet }).fonts;\n\t\tvoid fonts?.ready.then(() => this.measure());\n\t}\n\n\tprivate applyTruncationStyles(lines: number): void {\n\t\tconst dashCase = RendererStyleFlags2.DashCase;\n\t\tconst style = (name: string, value: string | null) => {\n\t\t\tif (value === null) this.renderer.removeStyle(this.host, name, dashCase);\n\t\t\telse this.renderer.setStyle(this.host, name, value, dashCase);\n\t\t};\n\t\tconst singleLine = lines === 1;\n\t\tstyle('overflow', 'hidden');\n\t\tstyle('min-width', '0');\n\t\tstyle('text-overflow', singleLine ? 'ellipsis' : null);\n\t\tstyle('white-space', singleLine ? 'nowrap' : null);\n\t\tconst singleLineDisplay = this.inlineHost ? 'inline-block' : null;\n\t\tstyle('display', singleLine ? singleLineDisplay : '-webkit-box');\n\t\tstyle('max-width', this.inlineHost ? '100%' : null);\n\t\tstyle('vertical-align', this.inlineHost ? 'bottom' : null);\n\t\tstyle('-webkit-box-orient', singleLine ? null : 'vertical');\n\t\tstyle('-webkit-line-clamp', singleLine ? null : String(lines));\n\t\tstyle('overflow-wrap', singleLine ? null : 'anywhere');\n\t\tqueueMicrotask(() => this.measure());\n\t}\n\n\tprivate hasInteractiveAncestor(): boolean {\n\t\treturn !!this.host.parentElement?.closest(interactiveAncestorSelector);\n\t}\n\n\tprivate fullText(): string {\n\t\treturn normalizeText(this.host.textContent);\n\t}\n\n\tprivate clearTimers(): void {\n\t\tif (this.openTimer) clearTimeout(this.openTimer);\n\t\tif (this.closeTimer) clearTimeout(this.closeTimer);\n\t\tthis.openTimer = null;\n\t\tthis.closeTimer = null;\n\t}\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;;;;;AAEA;;;;AAIG;MAaU,wBAAwB,CAAA;AAC3B,IAAA,IAAI,GAAG,KAAK,CAAC,EAAE,CAAC;wGADb,wBAAwB,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EA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,WAAA,EAAA,MAAA,EAAA,UAAA,EAAA,aAAA,EAAA,uBAAA,EAAA,EAAA,UAAA,EAAA,EAAA,qBAAA,EAAA,2BAAA,EAAA,EAAA,EAAA,QAAA,EAAA,CAAA,YAAA,CAAA,EAAA,QAAA,EAAA,EAAA,EAAA,CAAA;;4FAAjB,iBAAiB,EAAA,UAAA,EAAA,CAAA;kBAb7B,SAAS;AAAC,YAAA,IAAA,EAAA,CAAA;AACV,oBAAA,QAAQ,EAAE,cAAc;AACxB,oBAAA,UAAU,EAAE,IAAI;AAChB,oBAAA,QAAQ,EAAE,YAAY;AACtB,oBAAA,IAAI,EAAE;AACL,wBAAA,uBAAuB,EAAE,yBAAyB;AAClD,wBAAA,cAAc,EAAE,kBAAkB;AAClC,wBAAA,cAAc,EAAE,kBAAkB;AAClC,wBAAA,SAAS,EAAE,WAAW;AACtB,wBAAA,QAAQ,EAAE,UAAU;AACpB,wBAAA,eAAe,EAAE,uBAAuB;AACxC,qBAAA;AACD,iBAAA;;;AC1FD;;AAEG;;;;"}
1
+ {"version":3,"file":"sixbell-telco-sdk-directives-truncate.mjs","sources":["../../../projects/sdk/directives/truncate/src/truncate-popover.component.ts","../../../projects/sdk/directives/truncate/src/truncate.directive.ts","../../../projects/sdk/directives/truncate/sixbell-telco-sdk-directives-truncate.ts"],"sourcesContent":["import { ChangeDetectionStrategy, Component, input } from '@angular/core';\n\n/**\n * @internal\n * Visual-only surface that shows the full text of a truncated `stTruncate` host.\n * The host keeps the full text in the accessibility tree, so this copy is hidden from assistive technology.\n */\n@Component({\n\tselector: 'st-truncate-popover',\n\tstandalone: true,\n\tchangeDetection: ChangeDetectionStrategy.OnPush,\n\thost: {\n\t\t'aria-hidden': 'true',\n\t\t'data-st-truncate-popover': '',\n\t\tclass:\n\t\t\t'font-body bg-base-300 text-base-content border-base-content/10 rounded-box block max-h-72 max-w-[min(28rem,calc(100vw-1rem))] overflow-y-auto overscroll-contain border px-3 py-2 text-sm leading-normal wrap-break-word shadow-overlay motion-safe:animate-fade-in motion-safe:animate-duration-150',\n\t},\n\ttemplate: '{{ text() }}',\n})\nexport class TruncatePopoverComponent {\n\treadonly text = input('');\n}\n","import { ConnectedPosition, Overlay, OverlayRef } from '@angular/cdk/overlay';\nimport { ComponentPortal } from '@angular/cdk/portal';\nimport {\n\tafterNextRender,\n\tbooleanAttribute,\n\tComponentRef,\n\tcomputed,\n\tDestroyRef,\n\tDirective,\n\teffect,\n\tElementRef,\n\tinject,\n\tinput,\n\tnumberAttribute,\n\tRenderer2,\n\tRendererStyleFlags2,\n\tsignal,\n} from '@angular/core';\nimport { ThemeDomService } from '@sixbell-telco/sdk/utils/theme';\nimport { TruncatePopoverComponent } from './truncate-popover.component';\n\nconst focusableSelector = 'a[href], area[href], button, input, select, textarea, summary, [contenteditable=\"true\"], [tabindex]';\n/**\n * Ancestors that make a focusable descendant a nested interactive control (axe `nested-interactive`):\n * native controls, positive or zero tabindex, and the roles whose children are presentational.\n * `tabindex=\"-1\"` containers (dialog containers, skip-link targets) are not interactive.\n */\nconst interactiveAncestorSelector = [\n\t'button',\n\t'a[href]',\n\t'area[href]',\n\t'input',\n\t'select',\n\t'textarea',\n\t'summary',\n\t'[contenteditable=\"true\"]',\n\t'[tabindex]:not([tabindex^=\"-\"])',\n\t...['button', 'checkbox', 'radio', 'switch', 'tab', 'option', 'menuitem', 'menuitemcheckbox', 'menuitemradio', 'slider', 'link'].map(\n\t\t(role) => `[role=\"${role}\"]`,\n\t),\n].join(', ');\n\nconst popoverPositions: ConnectedPosition[] = [\n\t{ originX: 'start', originY: 'bottom', overlayX: 'start', overlayY: 'top', offsetY: 4 },\n\t{ originX: 'start', originY: 'top', overlayX: 'start', overlayY: 'bottom', offsetY: -4 },\n\t{ originX: 'end', originY: 'bottom', overlayX: 'end', overlayY: 'top', offsetY: 4 },\n\t{ originX: 'end', originY: 'top', overlayX: 'end', overlayY: 'bottom', offsetY: -4 },\n];\n\nconst normalizeText = (value: string | null | undefined): string => (value ?? '').replace(/\\s+/g, ' ').trim();\n\n/**\n * Truncates overflowing text with an ellipsis and reveals the full text in a popover,\n * only while the text is actually cut off.\n *\n * @remarks\n * - Single line by default; `stTruncateLines` > 1 clamps to that many lines.\n * - Overflow is measured on the host itself, re-checked on resize, text changes and web-font load.\n * Measuring only runs in the browser, so it is SSR-safe.\n * - The popover opens on hover (after `stTruncateOpenDelay`), on keyboard focus and on touch tap.\n * It is hoverable, stays open while hovered or focused, and closes on Escape, blur or pointer leave\n * (WCAG 1.4.13 Content on Hover or Focus).\n * - The host keeps its full text in the accessibility tree (CSS truncation hides nothing from screen\n * readers), so the popover is `aria-hidden` and nothing is announced twice.\n * - A truncated, non-focusable host becomes a tab stop (`tabindex=\"0\"`) so keyboard users can reveal the\n * hidden text (WCAG 2.1.1). Text that fits is never made focusable, nor is text inside an interactive\n * ancestor (no nested tab stops); `stTruncateFocusable=\"false\"` opts out, for example in dense tables.\n * - The host needs a constrained width: give a flex or grid child `min-w-0`.\n *\n * @example\n * ```html\n * <p stTruncate>{{ product.description }}</p>\n * <h1 stText=\"3\" stTruncate>{{ title }}</h1>\n * <td><span stTruncate [stTruncateLines]=\"2\">{{ row.notes }}</span></td>\n * ```\n *\n * @publicApi\n */\n@Directive({\n\tselector: '[stTruncate]',\n\tstandalone: true,\n\texportAs: 'stTruncate',\n\thost: {\n\t\t'[attr.data-truncated]': 'truncated() ? \"\" : null',\n\t\t'(mouseenter)': 'onPointerEnter()',\n\t\t'(mouseleave)': 'onPointerLeave()',\n\t\t'(focus)': 'onFocus()',\n\t\t'(blur)': 'onBlur()',\n\t\t'(pointerdown)': 'onPointerDown($event)',\n\t},\n})\nexport class TruncateDirective {\n\t/**\n\t * Number of visible lines before the text is cut off.\n\t * @defaultValue 1\n\t */\n\treadonly stTruncateLines = input(1, { transform: numberAttribute });\n\n\t/**\n\t * Hover delay in milliseconds before the popover opens. Focus and touch open it immediately.\n\t * @defaultValue 200\n\t */\n\treadonly stTruncateOpenDelay = input(200, { transform: numberAttribute });\n\n\t/**\n\t * Delay in milliseconds before the popover closes after the pointer leaves, so the pointer can move onto it.\n\t * @defaultValue 120\n\t */\n\treadonly stTruncateCloseDelay = input(120, { transform: numberAttribute });\n\n\t/**\n\t * Whether a truncated, non-focusable host becomes a tab stop so keyboard users can reveal the full text.\n\t * Set it to `false` in dense tables where the row or another control already exposes the text.\n\t * The host never becomes a tab stop inside an interactive ancestor (button, link, form control, `tabindex` ≥ 0, or a role such as checkbox or tab).\n\t * @defaultValue true\n\t */\n\treadonly stTruncateFocusable = input(true, { transform: booleanAttribute });\n\n\tprivate readonly truncatedState = signal(false);\n\tprivate readonly openState = signal(false);\n\n\t/** Whether the text currently overflows its box. */\n\treadonly truncated = this.truncatedState.asReadonly();\n\n\t/** Whether the full-text popover is open. */\n\treadonly isOpen = this.openState.asReadonly();\n\n\tprivate readonly lines = computed(() => {\n\t\tconst lines = Math.floor(this.stTruncateLines());\n\t\treturn Number.isFinite(lines) && lines > 1 ? lines : 1;\n\t});\n\n\tprivate readonly host = inject<ElementRef<HTMLElement>>(ElementRef).nativeElement;\n\tprivate readonly renderer = inject(Renderer2);\n\tprivate readonly overlay = inject(Overlay);\n\tprivate readonly themeDom = inject(ThemeDomService);\n\tprivate readonly destroyRef = inject(DestroyRef);\n\n\tprivate readonly nativelyFocusable = this.host.matches(focusableSelector);\n\tprivate overlayRef: OverlayRef | null = null;\n\tprivate popoverRef: ComponentRef<TruncatePopoverComponent> | null = null;\n\tprivate openTimer: ReturnType<typeof setTimeout> | null = null;\n\tprivate closeTimer: ReturnType<typeof setTimeout> | null = null;\n\tprivate pointerOverHost = false;\n\tprivate pointerOverPopover = false;\n\tprivate focused = false;\n\tprivate destroyed = false;\n\tprivate rendered = false;\n\tprivate inlineHost = false;\n\n\tconstructor() {\n\t\teffect(() => this.applyTruncationStyles(this.lines()));\n\n\t\teffect(() => {\n\t\t\tconst truncated = this.truncated();\n\t\t\tif (!this.nativelyFocusable) {\n\t\t\t\tif (truncated && this.stTruncateFocusable() && !this.hasInteractiveAncestor()) this.renderer.setAttribute(this.host, 'tabindex', '0');\n\t\t\t\telse this.renderer.removeAttribute(this.host, 'tabindex');\n\t\t\t}\n\t\t\tif (!truncated) this.close();\n\t\t});\n\n\t\tafterNextRender(() => {\n\t\t\tthis.rendered = true;\n\t\t\tif (getComputedStyle(this.host).display === 'inline') {\n\t\t\t\tthis.inlineHost = true;\n\t\t\t\tthis.applyTruncationStyles(this.lines());\n\t\t\t}\n\t\t\tthis.observe();\n\t\t\tthis.measure();\n\t\t});\n\n\t\tthis.destroyRef.onDestroy(() => {\n\t\t\tthis.destroyed = true;\n\t\t\tthis.clearTimers();\n\t\t\tthis.overlayRef?.dispose();\n\t\t\tthis.overlayRef = null;\n\t\t\tthis.popoverRef = null;\n\t\t});\n\t}\n\n\t/** Re-measures the host. Call it after a layout change the directive cannot observe. */\n\tmeasure(): void {\n\t\tif (this.destroyed || !this.rendered) return;\n\t\tconst overflow = this.lines() === 1 ? this.host.scrollWidth - this.host.clientWidth : this.host.scrollHeight - this.host.clientHeight;\n\t\tthis.truncatedState.set(overflow > 1);\n\t\tthis.popoverRef?.setInput('text', this.fullText());\n\t}\n\n\t/** Opens the popover now, if the text is truncated. */\n\topen(): void {\n\t\tthis.clearTimers();\n\t\tif (!this.truncated() || this.openState()) return;\n\t\tconst overlayRef = this.overlayRef ?? this.createOverlay();\n\t\tconst popoverRef = overlayRef.attach(new ComponentPortal(TruncatePopoverComponent));\n\t\tpopoverRef.setInput('text', this.fullText());\n\t\tconst popover = popoverRef.location.nativeElement as HTMLElement;\n\t\tthis.themeDom.inheritTheme(this.host, popover);\n\t\tpopover.addEventListener('mouseenter', () => {\n\t\t\tthis.pointerOverPopover = true;\n\t\t\tthis.clearTimers();\n\t\t});\n\t\tpopover.addEventListener('mouseleave', () => {\n\t\t\tthis.pointerOverPopover = false;\n\t\t\tthis.scheduleClose();\n\t\t});\n\t\tthis.popoverRef = popoverRef;\n\t\tthis.openState.set(true);\n\t\toverlayRef.updatePosition();\n\t}\n\n\t/** Closes the popover now. */\n\tclose(): void {\n\t\tthis.clearTimers();\n\t\tthis.pointerOverPopover = false;\n\t\tif (!this.openState()) return;\n\t\tthis.overlayRef?.detach();\n\t\tthis.popoverRef = null;\n\t\tthis.openState.set(false);\n\t}\n\n\tprotected onPointerEnter(): void {\n\t\tthis.pointerOverHost = true;\n\t\tif (this.openState()) {\n\t\t\tthis.clearTimers();\n\t\t\treturn;\n\t\t}\n\t\tif (!this.truncated()) return;\n\t\tthis.clearTimers();\n\t\tthis.openTimer = setTimeout(() => this.open(), Math.max(0, this.stTruncateOpenDelay()));\n\t}\n\n\tprotected onPointerLeave(): void {\n\t\tthis.pointerOverHost = false;\n\t\tif (this.openTimer) {\n\t\t\tclearTimeout(this.openTimer);\n\t\t\tthis.openTimer = null;\n\t\t}\n\t\tthis.scheduleClose();\n\t}\n\n\tprotected onFocus(): void {\n\t\tthis.focused = true;\n\t\tthis.open();\n\t}\n\n\tprotected onBlur(): void {\n\t\tthis.focused = false;\n\t\tif (!this.pointerOverHost && !this.pointerOverPopover) this.close();\n\t}\n\n\tprotected onPointerDown(event: PointerEvent): void {\n\t\tif (event.pointerType === 'touch') this.open();\n\t}\n\n\tprivate scheduleClose(): void {\n\t\tif (!this.openState() || this.focused) return;\n\t\tif (this.closeTimer) clearTimeout(this.closeTimer);\n\t\tthis.closeTimer = setTimeout(\n\t\t\t() => {\n\t\t\t\tthis.closeTimer = null;\n\t\t\t\tif (!this.pointerOverHost && !this.pointerOverPopover && !this.focused) this.close();\n\t\t\t},\n\t\t\tMath.max(0, this.stTruncateCloseDelay()),\n\t\t);\n\t}\n\n\tprivate createOverlay(): OverlayRef {\n\t\tconst overlayRef = this.overlay.create({\n\t\t\tpositionStrategy: this.overlay.position().flexibleConnectedTo(this.host).withPositions(popoverPositions).withPush(true).withViewportMargin(8),\n\t\t\tscrollStrategy: this.overlay.scrollStrategies.reposition(),\n\t\t});\n\t\toverlayRef.keydownEvents().subscribe((event) => {\n\t\t\tif (event.key === 'Escape') {\n\t\t\t\tevent.preventDefault();\n\t\t\t\tthis.close();\n\t\t\t}\n\t\t});\n\t\toverlayRef.outsidePointerEvents().subscribe((event) => {\n\t\t\tif (!(event.target instanceof Node) || !this.host.contains(event.target)) this.close();\n\t\t});\n\t\tthis.overlayRef = overlayRef;\n\t\treturn overlayRef;\n\t}\n\n\tprivate observe(): void {\n\t\tif (typeof ResizeObserver !== 'undefined') {\n\t\t\tconst resizeObserver = new ResizeObserver(() => this.measure());\n\t\t\tresizeObserver.observe(this.host);\n\t\t\tthis.destroyRef.onDestroy(() => resizeObserver.disconnect());\n\t\t}\n\t\tif (typeof MutationObserver !== 'undefined') {\n\t\t\tconst mutationObserver = new MutationObserver(() => this.measure());\n\t\t\tmutationObserver.observe(this.host, { characterData: true, childList: true, subtree: true });\n\t\t\tthis.destroyRef.onDestroy(() => mutationObserver.disconnect());\n\t\t}\n\t\tconst fonts = (this.host.ownerDocument as Document & { fonts?: FontFaceSet }).fonts;\n\t\tvoid fonts?.ready.then(() => this.measure());\n\t}\n\n\tprivate applyTruncationStyles(lines: number): void {\n\t\tconst dashCase = RendererStyleFlags2.DashCase;\n\t\tconst style = (name: string, value: string | null) => {\n\t\t\tif (value === null) this.renderer.removeStyle(this.host, name, dashCase);\n\t\t\telse this.renderer.setStyle(this.host, name, value, dashCase);\n\t\t};\n\t\tconst singleLine = lines === 1;\n\t\tstyle('overflow', 'hidden');\n\t\tstyle('min-width', '0');\n\t\tstyle('text-overflow', singleLine ? 'ellipsis' : null);\n\t\tstyle('white-space', singleLine ? 'nowrap' : null);\n\t\tconst singleLineDisplay = this.inlineHost ? 'inline-block' : null;\n\t\tstyle('display', singleLine ? singleLineDisplay : '-webkit-box');\n\t\tstyle('max-width', this.inlineHost ? '100%' : null);\n\t\tstyle('vertical-align', this.inlineHost ? 'bottom' : null);\n\t\tstyle('-webkit-box-orient', singleLine ? null : 'vertical');\n\t\tstyle('-webkit-line-clamp', singleLine ? null : String(lines));\n\t\tstyle('overflow-wrap', singleLine ? null : 'anywhere');\n\t\tqueueMicrotask(() => this.measure());\n\t}\n\n\tprivate hasInteractiveAncestor(): boolean {\n\t\treturn !!this.host.parentElement?.closest(interactiveAncestorSelector);\n\t}\n\n\tprivate fullText(): string {\n\t\treturn normalizeText(this.host.textContent);\n\t}\n\n\tprivate clearTimers(): void {\n\t\tif (this.openTimer) clearTimeout(this.openTimer);\n\t\tif (this.closeTimer) clearTimeout(this.closeTimer);\n\t\tthis.openTimer = null;\n\t\tthis.closeTimer = null;\n\t}\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;;;;;AAEA;;;;AAIG;MAaU,wBAAwB,CAAA;AAC3B,IAAA,IAAI,GAAG,KAAK,CAAC,EAAE,CAAC;wGADb,wBAAwB,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA;AAAxB,IAAA,OAAA,IAAA,GAAA,EAAA,CAAA,oBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,SAAA,EAAA,IAAA,EAAA,wBAAwB,ylBAF1B,cAAc,EAAA,QAAA,EAAA,IAAA,EAAA,eAAA,EAAA,EAAA,CAAA,uBAAA,CAAA,MAAA,EAAA,CAAA;;4FAEZ,wBAAwB,EAAA,UAAA,EAAA,CAAA;kBAZpC,SAAS;AAAC,YAAA,IAAA,EAAA,CAAA;AACV,oBAAA,QAAQ,EAAE,qBAAqB;AAC/B,oBAAA,UAAU,EAAE,IAAI;oBAChB,eAAe,EAAE,uBAAuB,CAAC,MAAM;AAC/C,oBAAA,IAAI,EAAE;AACL,wBAAA,aAAa,EAAE,MAAM;AACrB,wBAAA,0BAA0B,EAAE,EAAE;AAC9B,wBAAA,KAAK,EACJ,sSAAsS;AACvS,qBAAA;AACD,oBAAA,QAAQ,EAAE,cAAc;AACxB,iBAAA;;;ACGD,MAAM,iBA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